xlkit-demo 0.0.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/dist/assets/index-Btwfb27P.css +1 -0
- package/dist/assets/index-DpFtiGxh.js +86 -0
- package/dist/index.html +22 -0
- package/index.html +12 -0
- package/main.tsx +114 -0
- package/package.json +23 -0
- package/tsconfig.json +21 -0
- package/vite.config.ts +18 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
(function(){const M=document.createElement("link").relList;if(M&&M.supports&&M.supports("modulepreload"))return;for(const _ of document.querySelectorAll('link[rel="modulepreload"]'))y(_);new MutationObserver(_=>{for(const d of _)if(d.type==="childList")for(const a of d.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&y(a)}).observe(document,{childList:!0,subtree:!0});function r(_){const d={};return _.integrity&&(d.integrity=_.integrity),_.referrerPolicy&&(d.referrerPolicy=_.referrerPolicy),_.crossOrigin==="use-credentials"?d.credentials="include":_.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function y(_){if(_.ep)return;_.ep=!0;const d=r(_);fetch(_.href,d)}})();function A1(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}var Wu={exports:{}},fa={};var Qd;function M1(){if(Qd)return fa;Qd=1;var w=Symbol.for("react.transitional.element"),M=Symbol.for("react.fragment");function r(y,_,d){var a=null;if(d!==void 0&&(a=""+d),_.key!==void 0&&(a=""+_.key),"key"in _){d={};for(var l in _)l!=="key"&&(d[l]=_[l])}else d=_;return _=d.ref,{$$typeof:w,type:y,key:a,ref:_!==void 0?_:null,props:d}}return fa.Fragment=M,fa.jsx=r,fa.jsxs=r,fa}var Jd;function C1(){return Jd||(Jd=1,Wu.exports=M1()),Wu.exports}var $t=C1(),Qu={},ha={},tp;function O1(){if(tp)return ha;tp=1,ha.byteLength=l,ha.toByteArray=e,ha.fromByteArray=u;for(var w=[],M=[],r=typeof Uint8Array<"u"?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,d=y.length;_<d;++_)w[_]=y[_],M[y.charCodeAt(_)]=_;M[45]=62,M[95]=63;function a(o){var p=o.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.indexOf("=");m===-1&&(m=p);var f=m===p?0:4-m%4;return[m,f]}function l(o){var p=a(o),m=p[0],f=p[1];return(m+f)*3/4-f}function i(o,p,m){return(p+m)*3/4-m}function e(o){var p,m=a(o),f=m[0],v=m[1],b=new r(i(o,f,v)),T=0,C=v>0?f-4:f,I;for(I=0;I<C;I+=4)p=M[o.charCodeAt(I)]<<18|M[o.charCodeAt(I+1)]<<12|M[o.charCodeAt(I+2)]<<6|M[o.charCodeAt(I+3)],b[T++]=p>>16&255,b[T++]=p>>8&255,b[T++]=p&255;return v===2&&(p=M[o.charCodeAt(I)]<<2|M[o.charCodeAt(I+1)]>>4,b[T++]=p&255),v===1&&(p=M[o.charCodeAt(I)]<<10|M[o.charCodeAt(I+1)]<<4|M[o.charCodeAt(I+2)]>>2,b[T++]=p>>8&255,b[T++]=p&255),b}function s(o){return w[o>>18&63]+w[o>>12&63]+w[o>>6&63]+w[o&63]}function c(o,p,m){for(var f,v=[],b=p;b<m;b+=3)f=(o[b]<<16&16711680)+(o[b+1]<<8&65280)+(o[b+2]&255),v.push(s(f));return v.join("")}function u(o){for(var p,m=o.length,f=m%3,v=[],b=16383,T=0,C=m-f;T<C;T+=b)v.push(c(o,T,T+b>C?C:T+b));return f===1?(p=o[m-1],v.push(w[p>>2]+w[p<<4&63]+"==")):f===2&&(p=(o[m-2]<<8)+o[m-1],v.push(w[p>>10]+w[p>>4&63]+w[p<<2&63]+"=")),v.join("")}return ha}var Ao={};var ep;function R1(){return ep||(ep=1,Ao.read=function(w,M,r,y,_){var d,a,l=_*8-y-1,i=(1<<l)-1,e=i>>1,s=-7,c=r?_-1:0,u=r?-1:1,o=w[M+c];for(c+=u,d=o&(1<<-s)-1,o>>=-s,s+=l;s>0;d=d*256+w[M+c],c+=u,s-=8);for(a=d&(1<<-s)-1,d>>=-s,s+=y;s>0;a=a*256+w[M+c],c+=u,s-=8);if(d===0)d=1-e;else{if(d===i)return a?NaN:(o?-1:1)*(1/0);a=a+Math.pow(2,y),d=d-e}return(o?-1:1)*a*Math.pow(2,d-y)},Ao.write=function(w,M,r,y,_,d){var a,l,i,e=d*8-_-1,s=(1<<e)-1,c=s>>1,u=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,o=y?0:d-1,p=y?1:-1,m=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(l=isNaN(M)?1:0,a=s):(a=Math.floor(Math.log(M)/Math.LN2),M*(i=Math.pow(2,-a))<1&&(a--,i*=2),a+c>=1?M+=u/i:M+=u*Math.pow(2,1-c),M*i>=2&&(a++,i/=2),a+c>=s?(l=0,a=s):a+c>=1?(l=(M*i-1)*Math.pow(2,_),a=a+c):(l=M*Math.pow(2,c-1)*Math.pow(2,_),a=0));_>=8;w[r+o]=l&255,o+=p,l/=256,_-=8);for(a=a<<_|l,e+=_;e>0;w[r+o]=a&255,o+=p,a/=256,e-=8);w[r+o-p]|=m*128}),Ao}var rp;function j1(){return rp||(rp=1,(function(w){const M=O1(),r=R1(),y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;w.Buffer=l,w.SlowBuffer=b,w.INSPECT_MAX_BYTES=50;const _=2147483647;w.kMaxLength=_,l.TYPED_ARRAY_SUPPORT=d(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const et=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(et,G),et.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function a(et){if(et>_)throw new RangeError('The value "'+et+'" is invalid for option "size"');const G=new Uint8Array(et);return Object.setPrototypeOf(G,l.prototype),G}function l(et,G,Q){if(typeof et=="number"){if(typeof G=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(et)}return i(et,G,Q)}l.poolSize=8192;function i(et,G,Q){if(typeof et=="string")return u(et,G);if(ArrayBuffer.isView(et))return p(et);if(et==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);if(St(et,ArrayBuffer)||et&&St(et.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(St(et,SharedArrayBuffer)||et&&St(et.buffer,SharedArrayBuffer)))return m(et,G,Q);if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ot=et.valueOf&&et.valueOf();if(ot!=null&&ot!==et)return l.from(ot,G,Q);const ft=f(et);if(ft)return ft;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof et[Symbol.toPrimitive]=="function")return l.from(et[Symbol.toPrimitive]("string"),G,Q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et)}l.from=function(et,G,Q){return i(et,G,Q)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function e(et){if(typeof et!="number")throw new TypeError('"size" argument must be of type number');if(et<0)throw new RangeError('The value "'+et+'" is invalid for option "size"')}function s(et,G,Q){return e(et),et<=0?a(et):G!==void 0?typeof Q=="string"?a(et).fill(G,Q):a(et).fill(G):a(et)}l.alloc=function(et,G,Q){return s(et,G,Q)};function c(et){return e(et),a(et<0?0:v(et)|0)}l.allocUnsafe=function(et){return c(et)},l.allocUnsafeSlow=function(et){return c(et)};function u(et,G){if((typeof G!="string"||G==="")&&(G="utf8"),!l.isEncoding(G))throw new TypeError("Unknown encoding: "+G);const Q=T(et,G)|0;let ot=a(Q);const ft=ot.write(et,G);return ft!==Q&&(ot=ot.slice(0,ft)),ot}function o(et){const G=et.length<0?0:v(et.length)|0,Q=a(G);for(let ot=0;ot<G;ot+=1)Q[ot]=et[ot]&255;return Q}function p(et){if(St(et,Uint8Array)){const G=new Uint8Array(et);return m(G.buffer,G.byteOffset,G.byteLength)}return o(et)}function m(et,G,Q){if(G<0||et.byteLength<G)throw new RangeError('"offset" is outside of buffer bounds');if(et.byteLength<G+(Q||0))throw new RangeError('"length" is outside of buffer bounds');let ot;return G===void 0&&Q===void 0?ot=new Uint8Array(et):Q===void 0?ot=new Uint8Array(et,G):ot=new Uint8Array(et,G,Q),Object.setPrototypeOf(ot,l.prototype),ot}function f(et){if(l.isBuffer(et)){const G=v(et.length)|0,Q=a(G);return Q.length===0||et.copy(Q,0,0,G),Q}if(et.length!==void 0)return typeof et.length!="number"||Ot(et.length)?a(0):o(et);if(et.type==="Buffer"&&Array.isArray(et.data))return o(et.data)}function v(et){if(et>=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return et|0}function b(et){return+et!=et&&(et=0),l.alloc(+et)}l.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==l.prototype},l.compare=function(G,Q){if(St(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),St(Q,Uint8Array)&&(Q=l.from(Q,Q.offset,Q.byteLength)),!l.isBuffer(G)||!l.isBuffer(Q))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Q)return 0;let ot=G.length,ft=Q.length;for(let vt=0,wt=Math.min(ot,ft);vt<wt;++vt)if(G[vt]!==Q[vt]){ot=G[vt],ft=Q[vt];break}return ot<ft?-1:ft<ot?1:0},l.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(G,Q){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return l.alloc(0);let ot;if(Q===void 0)for(Q=0,ot=0;ot<G.length;++ot)Q+=G[ot].length;const ft=l.allocUnsafe(Q);let vt=0;for(ot=0;ot<G.length;++ot){let wt=G[ot];if(St(wt,Uint8Array))vt+wt.length>ft.length?(l.isBuffer(wt)||(wt=l.from(wt)),wt.copy(ft,vt)):Uint8Array.prototype.set.call(ft,wt,vt);else if(l.isBuffer(wt))wt.copy(ft,vt);else throw new TypeError('"list" argument must be an Array of Buffers');vt+=wt.length}return ft};function T(et,G){if(l.isBuffer(et))return et.length;if(ArrayBuffer.isView(et)||St(et,ArrayBuffer))return et.byteLength;if(typeof et!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof et);const Q=et.length,ot=arguments.length>2&&arguments[2]===!0;if(!ot&&Q===0)return 0;let ft=!1;for(;;)switch(G){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":return st(et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return xt(et).length;default:if(ft)return ot?-1:st(et).length;G=(""+G).toLowerCase(),ft=!0}}l.byteLength=T;function C(et,G,Q){let ot=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0,G>>>=0,Q<=G))return"";for(et||(et="utf8");;)switch(et){case"hex":return E(this,G,Q);case"utf8":case"utf-8":return z(this,G,Q);case"ascii":return x(this,G,Q);case"latin1":case"binary":return S(this,G,Q);case"base64":return R(this,G,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,G,Q);default:if(ot)throw new TypeError("Unknown encoding: "+et);et=(et+"").toLowerCase(),ot=!0}}l.prototype._isBuffer=!0;function I(et,G,Q){const ot=et[G];et[G]=et[Q],et[Q]=ot}l.prototype.swap16=function(){const G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;Q<G;Q+=2)I(this,Q,Q+1);return this},l.prototype.swap32=function(){const G=this.length;if(G%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Q=0;Q<G;Q+=4)I(this,Q,Q+3),I(this,Q+1,Q+2);return this},l.prototype.swap64=function(){const G=this.length;if(G%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Q=0;Q<G;Q+=8)I(this,Q,Q+7),I(this,Q+1,Q+6),I(this,Q+2,Q+5),I(this,Q+3,Q+4);return this},l.prototype.toString=function(){const G=this.length;return G===0?"":arguments.length===0?z(this,0,G):C.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(G){if(!l.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:l.compare(this,G)===0},l.prototype.inspect=function(){let G="";const Q=w.INSPECT_MAX_BYTES;return G=this.toString("hex",0,Q).replace(/(.{2})/g,"$1 ").trim(),this.length>Q&&(G+=" ... "),"<Buffer "+G+">"},y&&(l.prototype[y]=l.prototype.inspect),l.prototype.compare=function(G,Q,ot,ft,vt){if(St(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),!l.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(Q===void 0&&(Q=0),ot===void 0&&(ot=G?G.length:0),ft===void 0&&(ft=0),vt===void 0&&(vt=this.length),Q<0||ot>G.length||ft<0||vt>this.length)throw new RangeError("out of range index");if(ft>=vt&&Q>=ot)return 0;if(ft>=vt)return-1;if(Q>=ot)return 1;if(Q>>>=0,ot>>>=0,ft>>>=0,vt>>>=0,this===G)return 0;let wt=vt-ft,Nt=ot-Q;const Pt=Math.min(wt,Nt),qt=this.slice(ft,vt),Vt=G.slice(Q,ot);for(let Qt=0;Qt<Pt;++Qt)if(qt[Qt]!==Vt[Qt]){wt=qt[Qt],Nt=Vt[Qt];break}return wt<Nt?-1:Nt<wt?1:0};function H(et,G,Q,ot,ft){if(et.length===0)return-1;if(typeof Q=="string"?(ot=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,Ot(Q)&&(Q=ft?0:et.length-1),Q<0&&(Q=et.length+Q),Q>=et.length){if(ft)return-1;Q=et.length-1}else if(Q<0)if(ft)Q=0;else return-1;if(typeof G=="string"&&(G=l.from(G,ot)),l.isBuffer(G))return G.length===0?-1:Z(et,G,Q,ot,ft);if(typeof G=="number")return G=G&255,typeof Uint8Array.prototype.indexOf=="function"?ft?Uint8Array.prototype.indexOf.call(et,G,Q):Uint8Array.prototype.lastIndexOf.call(et,G,Q):Z(et,[G],Q,ot,ft);throw new TypeError("val must be string, number or Buffer")}function Z(et,G,Q,ot,ft){let vt=1,wt=et.length,Nt=G.length;if(ot!==void 0&&(ot=String(ot).toLowerCase(),ot==="ucs2"||ot==="ucs-2"||ot==="utf16le"||ot==="utf-16le")){if(et.length<2||G.length<2)return-1;vt=2,wt/=2,Nt/=2,Q/=2}function Pt(Vt,Qt){return vt===1?Vt[Qt]:Vt.readUInt16BE(Qt*vt)}let qt;if(ft){let Vt=-1;for(qt=Q;qt<wt;qt++)if(Pt(et,qt)===Pt(G,Vt===-1?0:qt-Vt)){if(Vt===-1&&(Vt=qt),qt-Vt+1===Nt)return Vt*vt}else Vt!==-1&&(qt-=qt-Vt),Vt=-1}else for(Q+Nt>wt&&(Q=wt-Nt),qt=Q;qt>=0;qt--){let Vt=!0;for(let Qt=0;Qt<Nt;Qt++)if(Pt(et,qt+Qt)!==Pt(G,Qt)){Vt=!1;break}if(Vt)return qt}return-1}l.prototype.includes=function(G,Q,ot){return this.indexOf(G,Q,ot)!==-1},l.prototype.indexOf=function(G,Q,ot){return H(this,G,Q,ot,!0)},l.prototype.lastIndexOf=function(G,Q,ot){return H(this,G,Q,ot,!1)};function P(et,G,Q,ot){Q=Number(Q)||0;const ft=et.length-Q;ot?(ot=Number(ot),ot>ft&&(ot=ft)):ot=ft;const vt=G.length;ot>vt/2&&(ot=vt/2);let wt;for(wt=0;wt<ot;++wt){const Nt=parseInt(G.substr(wt*2,2),16);if(Ot(Nt))return wt;et[Q+wt]=Nt}return wt}function q(et,G,Q,ot){return _t(st(G,et.length-Q),et,Q,ot)}function V(et,G,Q,ot){return _t(dt(G),et,Q,ot)}function W(et,G,Q,ot){return _t(xt(G),et,Q,ot)}function $(et,G,Q,ot){return _t(ht(G,et.length-Q),et,Q,ot)}l.prototype.write=function(G,Q,ot,ft){if(Q===void 0)ft="utf8",ot=this.length,Q=0;else if(ot===void 0&&typeof Q=="string")ft=Q,ot=this.length,Q=0;else if(isFinite(Q))Q=Q>>>0,isFinite(ot)?(ot=ot>>>0,ft===void 0&&(ft="utf8")):(ft=ot,ot=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const vt=this.length-Q;if((ot===void 0||ot>vt)&&(ot=vt),G.length>0&&(ot<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ft||(ft="utf8");let wt=!1;for(;;)switch(ft){case"hex":return P(this,G,Q,ot);case"utf8":case"utf-8":return q(this,G,Q,ot);case"ascii":case"latin1":case"binary":return V(this,G,Q,ot);case"base64":return W(this,G,Q,ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,G,Q,ot);default:if(wt)throw new TypeError("Unknown encoding: "+ft);ft=(""+ft).toLowerCase(),wt=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(et,G,Q){return G===0&&Q===et.length?M.fromByteArray(et):M.fromByteArray(et.slice(G,Q))}function z(et,G,Q){Q=Math.min(et.length,Q);const ot=[];let ft=G;for(;ft<Q;){const vt=et[ft];let wt=null,Nt=vt>239?4:vt>223?3:vt>191?2:1;if(ft+Nt<=Q){let Pt,qt,Vt,Qt;switch(Nt){case 1:vt<128&&(wt=vt);break;case 2:Pt=et[ft+1],(Pt&192)===128&&(Qt=(vt&31)<<6|Pt&63,Qt>127&&(wt=Qt));break;case 3:Pt=et[ft+1],qt=et[ft+2],(Pt&192)===128&&(qt&192)===128&&(Qt=(vt&15)<<12|(Pt&63)<<6|qt&63,Qt>2047&&(Qt<55296||Qt>57343)&&(wt=Qt));break;case 4:Pt=et[ft+1],qt=et[ft+2],Vt=et[ft+3],(Pt&192)===128&&(qt&192)===128&&(Vt&192)===128&&(Qt=(vt&15)<<18|(Pt&63)<<12|(qt&63)<<6|Vt&63,Qt>65535&&Qt<1114112&&(wt=Qt))}}wt===null?(wt=65533,Nt=1):wt>65535&&(wt-=65536,ot.push(wt>>>10&1023|55296),wt=56320|wt&1023),ot.push(wt),ft+=Nt}return g(ot)}const A=4096;function g(et){const G=et.length;if(G<=A)return String.fromCharCode.apply(String,et);let Q="",ot=0;for(;ot<G;)Q+=String.fromCharCode.apply(String,et.slice(ot,ot+=A));return Q}function x(et,G,Q){let ot="";Q=Math.min(et.length,Q);for(let ft=G;ft<Q;++ft)ot+=String.fromCharCode(et[ft]&127);return ot}function S(et,G,Q){let ot="";Q=Math.min(et.length,Q);for(let ft=G;ft<Q;++ft)ot+=String.fromCharCode(et[ft]);return ot}function E(et,G,Q){const ot=et.length;(!G||G<0)&&(G=0),(!Q||Q<0||Q>ot)&&(Q=ot);let ft="";for(let vt=G;vt<Q;++vt)ft+=Rt[et[vt]];return ft}function O(et,G,Q){const ot=et.slice(G,Q);let ft="";for(let vt=0;vt<ot.length-1;vt+=2)ft+=String.fromCharCode(ot[vt]+ot[vt+1]*256);return ft}l.prototype.slice=function(G,Q){const ot=this.length;G=~~G,Q=Q===void 0?ot:~~Q,G<0?(G+=ot,G<0&&(G=0)):G>ot&&(G=ot),Q<0?(Q+=ot,Q<0&&(Q=0)):Q>ot&&(Q=ot),Q<G&&(Q=G);const ft=this.subarray(G,Q);return Object.setPrototypeOf(ft,l.prototype),ft};function j(et,G,Q){if(et%1!==0||et<0)throw new RangeError("offset is not uint");if(et+G>Q)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(G,Q,ot){G=G>>>0,Q=Q>>>0,ot||j(G,Q,this.length);let ft=this[G],vt=1,wt=0;for(;++wt<Q&&(vt*=256);)ft+=this[G+wt]*vt;return ft},l.prototype.readUintBE=l.prototype.readUIntBE=function(G,Q,ot){G=G>>>0,Q=Q>>>0,ot||j(G,Q,this.length);let ft=this[G+--Q],vt=1;for(;Q>0&&(vt*=256);)ft+=this[G+--Q]*vt;return ft},l.prototype.readUint8=l.prototype.readUInt8=function(G,Q){return G=G>>>0,Q||j(G,1,this.length),this[G]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(G,Q){return G=G>>>0,Q||j(G,2,this.length),this[G]|this[G+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(G,Q){return G=G>>>0,Q||j(G,2,this.length),this[G]<<8|this[G+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},l.prototype.readBigUInt64LE=Ft(function(G){G=G>>>0,it(G,"offset");const Q=this[G],ot=this[G+7];(Q===void 0||ot===void 0)&<(G,this.length-8);const ft=Q+this[++G]*2**8+this[++G]*2**16+this[++G]*2**24,vt=this[++G]+this[++G]*2**8+this[++G]*2**16+ot*2**24;return BigInt(ft)+(BigInt(vt)<<BigInt(32))}),l.prototype.readBigUInt64BE=Ft(function(G){G=G>>>0,it(G,"offset");const Q=this[G],ot=this[G+7];(Q===void 0||ot===void 0)&<(G,this.length-8);const ft=Q*2**24+this[++G]*2**16+this[++G]*2**8+this[++G],vt=this[++G]*2**24+this[++G]*2**16+this[++G]*2**8+ot;return(BigInt(ft)<<BigInt(32))+BigInt(vt)}),l.prototype.readIntLE=function(G,Q,ot){G=G>>>0,Q=Q>>>0,ot||j(G,Q,this.length);let ft=this[G],vt=1,wt=0;for(;++wt<Q&&(vt*=256);)ft+=this[G+wt]*vt;return vt*=128,ft>=vt&&(ft-=Math.pow(2,8*Q)),ft},l.prototype.readIntBE=function(G,Q,ot){G=G>>>0,Q=Q>>>0,ot||j(G,Q,this.length);let ft=Q,vt=1,wt=this[G+--ft];for(;ft>0&&(vt*=256);)wt+=this[G+--ft]*vt;return vt*=128,wt>=vt&&(wt-=Math.pow(2,8*Q)),wt},l.prototype.readInt8=function(G,Q){return G=G>>>0,Q||j(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},l.prototype.readInt16LE=function(G,Q){G=G>>>0,Q||j(G,2,this.length);const ot=this[G]|this[G+1]<<8;return ot&32768?ot|4294901760:ot},l.prototype.readInt16BE=function(G,Q){G=G>>>0,Q||j(G,2,this.length);const ot=this[G+1]|this[G]<<8;return ot&32768?ot|4294901760:ot},l.prototype.readInt32LE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},l.prototype.readInt32BE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},l.prototype.readBigInt64LE=Ft(function(G){G=G>>>0,it(G,"offset");const Q=this[G],ot=this[G+7];(Q===void 0||ot===void 0)&<(G,this.length-8);const ft=this[G+4]+this[G+5]*2**8+this[G+6]*2**16+(ot<<24);return(BigInt(ft)<<BigInt(32))+BigInt(Q+this[++G]*2**8+this[++G]*2**16+this[++G]*2**24)}),l.prototype.readBigInt64BE=Ft(function(G){G=G>>>0,it(G,"offset");const Q=this[G],ot=this[G+7];(Q===void 0||ot===void 0)&<(G,this.length-8);const ft=(Q<<24)+this[++G]*2**16+this[++G]*2**8+this[++G];return(BigInt(ft)<<BigInt(32))+BigInt(this[++G]*2**24+this[++G]*2**16+this[++G]*2**8+ot)}),l.prototype.readFloatLE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),r.read(this,G,!0,23,4)},l.prototype.readFloatBE=function(G,Q){return G=G>>>0,Q||j(G,4,this.length),r.read(this,G,!1,23,4)},l.prototype.readDoubleLE=function(G,Q){return G=G>>>0,Q||j(G,8,this.length),r.read(this,G,!0,52,8)},l.prototype.readDoubleBE=function(G,Q){return G=G>>>0,Q||j(G,8,this.length),r.read(this,G,!1,52,8)};function B(et,G,Q,ot,ft,vt){if(!l.isBuffer(et))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>ft||G<vt)throw new RangeError('"value" argument is out of bounds');if(Q+ot>et.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(G,Q,ot,ft){if(G=+G,Q=Q>>>0,ot=ot>>>0,!ft){const Nt=Math.pow(2,8*ot)-1;B(this,G,Q,ot,Nt,0)}let vt=1,wt=0;for(this[Q]=G&255;++wt<ot&&(vt*=256);)this[Q+wt]=G/vt&255;return Q+ot},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(G,Q,ot,ft){if(G=+G,Q=Q>>>0,ot=ot>>>0,!ft){const Nt=Math.pow(2,8*ot)-1;B(this,G,Q,ot,Nt,0)}let vt=ot-1,wt=1;for(this[Q+vt]=G&255;--vt>=0&&(wt*=256);)this[Q+vt]=G/wt&255;return Q+ot},l.prototype.writeUint8=l.prototype.writeUInt8=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,1,255,0),this[Q]=G&255,Q+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,2,65535,0),this[Q]=G&255,this[Q+1]=G>>>8,Q+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,2,65535,0),this[Q]=G>>>8,this[Q+1]=G&255,Q+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,4,4294967295,0),this[Q+3]=G>>>24,this[Q+2]=G>>>16,this[Q+1]=G>>>8,this[Q]=G&255,Q+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,4,4294967295,0),this[Q]=G>>>24,this[Q+1]=G>>>16,this[Q+2]=G>>>8,this[Q+3]=G&255,Q+4};function Y(et,G,Q,ot,ft){ut(G,ot,ft,et,Q,7);let vt=Number(G&BigInt(4294967295));et[Q++]=vt,vt=vt>>8,et[Q++]=vt,vt=vt>>8,et[Q++]=vt,vt=vt>>8,et[Q++]=vt;let wt=Number(G>>BigInt(32)&BigInt(4294967295));return et[Q++]=wt,wt=wt>>8,et[Q++]=wt,wt=wt>>8,et[Q++]=wt,wt=wt>>8,et[Q++]=wt,Q}function K(et,G,Q,ot,ft){ut(G,ot,ft,et,Q,7);let vt=Number(G&BigInt(4294967295));et[Q+7]=vt,vt=vt>>8,et[Q+6]=vt,vt=vt>>8,et[Q+5]=vt,vt=vt>>8,et[Q+4]=vt;let wt=Number(G>>BigInt(32)&BigInt(4294967295));return et[Q+3]=wt,wt=wt>>8,et[Q+2]=wt,wt=wt>>8,et[Q+1]=wt,wt=wt>>8,et[Q]=wt,Q+8}l.prototype.writeBigUInt64LE=Ft(function(G,Q=0){return Y(this,G,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Ft(function(G,Q=0){return K(this,G,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(G,Q,ot,ft){if(G=+G,Q=Q>>>0,!ft){const Pt=Math.pow(2,8*ot-1);B(this,G,Q,ot,Pt-1,-Pt)}let vt=0,wt=1,Nt=0;for(this[Q]=G&255;++vt<ot&&(wt*=256);)G<0&&Nt===0&&this[Q+vt-1]!==0&&(Nt=1),this[Q+vt]=(G/wt>>0)-Nt&255;return Q+ot},l.prototype.writeIntBE=function(G,Q,ot,ft){if(G=+G,Q=Q>>>0,!ft){const Pt=Math.pow(2,8*ot-1);B(this,G,Q,ot,Pt-1,-Pt)}let vt=ot-1,wt=1,Nt=0;for(this[Q+vt]=G&255;--vt>=0&&(wt*=256);)G<0&&Nt===0&&this[Q+vt+1]!==0&&(Nt=1),this[Q+vt]=(G/wt>>0)-Nt&255;return Q+ot},l.prototype.writeInt8=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,1,127,-128),G<0&&(G=255+G+1),this[Q]=G&255,Q+1},l.prototype.writeInt16LE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,2,32767,-32768),this[Q]=G&255,this[Q+1]=G>>>8,Q+2},l.prototype.writeInt16BE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,2,32767,-32768),this[Q]=G>>>8,this[Q+1]=G&255,Q+2},l.prototype.writeInt32LE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,4,2147483647,-2147483648),this[Q]=G&255,this[Q+1]=G>>>8,this[Q+2]=G>>>16,this[Q+3]=G>>>24,Q+4},l.prototype.writeInt32BE=function(G,Q,ot){return G=+G,Q=Q>>>0,ot||B(this,G,Q,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Q]=G>>>24,this[Q+1]=G>>>16,this[Q+2]=G>>>8,this[Q+3]=G&255,Q+4},l.prototype.writeBigInt64LE=Ft(function(G,Q=0){return Y(this,G,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Ft(function(G,Q=0){return K(this,G,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(et,G,Q,ot,ft,vt){if(Q+ot>et.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function U(et,G,Q,ot,ft){return G=+G,Q=Q>>>0,ft||nt(et,G,Q,4),r.write(et,G,Q,ot,23,4),Q+4}l.prototype.writeFloatLE=function(G,Q,ot){return U(this,G,Q,!0,ot)},l.prototype.writeFloatBE=function(G,Q,ot){return U(this,G,Q,!1,ot)};function J(et,G,Q,ot,ft){return G=+G,Q=Q>>>0,ft||nt(et,G,Q,8),r.write(et,G,Q,ot,52,8),Q+8}l.prototype.writeDoubleLE=function(G,Q,ot){return J(this,G,Q,!0,ot)},l.prototype.writeDoubleBE=function(G,Q,ot){return J(this,G,Q,!1,ot)},l.prototype.copy=function(G,Q,ot,ft){if(!l.isBuffer(G))throw new TypeError("argument should be a Buffer");if(ot||(ot=0),!ft&&ft!==0&&(ft=this.length),Q>=G.length&&(Q=G.length),Q||(Q=0),ft>0&&ft<ot&&(ft=ot),ft===ot||G.length===0||this.length===0)return 0;if(Q<0)throw new RangeError("targetStart out of bounds");if(ot<0||ot>=this.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("sourceEnd out of bounds");ft>this.length&&(ft=this.length),G.length-Q<ft-ot&&(ft=G.length-Q+ot);const vt=ft-ot;return this===G&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Q,ot,ft):Uint8Array.prototype.set.call(G,this.subarray(ot,ft),Q),vt},l.prototype.fill=function(G,Q,ot,ft){if(typeof G=="string"){if(typeof Q=="string"?(ft=Q,Q=0,ot=this.length):typeof ot=="string"&&(ft=ot,ot=this.length),ft!==void 0&&typeof ft!="string")throw new TypeError("encoding must be a string");if(typeof ft=="string"&&!l.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);if(G.length===1){const wt=G.charCodeAt(0);(ft==="utf8"&&wt<128||ft==="latin1")&&(G=wt)}}else typeof G=="number"?G=G&255:typeof G=="boolean"&&(G=Number(G));if(Q<0||this.length<Q||this.length<ot)throw new RangeError("Out of range index");if(ot<=Q)return this;Q=Q>>>0,ot=ot===void 0?this.length:ot>>>0,G||(G=0);let vt;if(typeof G=="number")for(vt=Q;vt<ot;++vt)this[vt]=G;else{const wt=l.isBuffer(G)?G:l.from(G,ft),Nt=wt.length;if(Nt===0)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(vt=0;vt<ot-Q;++vt)this[vt+Q]=wt[vt%Nt]}return this};const L={};function N(et,G,Q){L[et]=class extends Q{constructor(){super(),Object.defineProperty(this,"message",{value:G.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${et}]`,this.stack,delete this.name}get code(){return et}set code(ft){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ft,writable:!0})}toString(){return`${this.name} [${et}]: ${this.message}`}}}N("ERR_BUFFER_OUT_OF_BOUNDS",function(et){return et?`${et} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(et,G){return`The "${et}" argument must be of type number. Received type ${typeof G}`},TypeError),N("ERR_OUT_OF_RANGE",function(et,G,Q){let ot=`The value of "${et}" is out of range.`,ft=Q;return Number.isInteger(Q)&&Math.abs(Q)>2**32?ft=X(String(Q)):typeof Q=="bigint"&&(ft=String(Q),(Q>BigInt(2)**BigInt(32)||Q<-(BigInt(2)**BigInt(32)))&&(ft=X(ft)),ft+="n"),ot+=` It must be ${G}. Received ${ft}`,ot},RangeError);function X(et){let G="",Q=et.length;const ot=et[0]==="-"?1:0;for(;Q>=ot+4;Q-=3)G=`_${et.slice(Q-3,Q)}${G}`;return`${et.slice(0,Q)}${G}`}function rt(et,G,Q){it(G,"offset"),(et[G]===void 0||et[G+Q]===void 0)&<(G,et.length-(Q+1))}function ut(et,G,Q,ot,ft,vt){if(et>Q||et<G){const wt=typeof G=="bigint"?"n":"";let Nt;throw G===0||G===BigInt(0)?Nt=`>= 0${wt} and < 2${wt} ** ${(vt+1)*8}${wt}`:Nt=`>= -(2${wt} ** ${(vt+1)*8-1}${wt}) and < 2 ** ${(vt+1)*8-1}${wt}`,new L.ERR_OUT_OF_RANGE("value",Nt,et)}rt(ot,ft,vt)}function it(et,G){if(typeof et!="number")throw new L.ERR_INVALID_ARG_TYPE(G,"number",et)}function lt(et,G,Q){throw Math.floor(et)!==et?(it(et,Q),new L.ERR_OUT_OF_RANGE("offset","an integer",et)):G<0?new L.ERR_BUFFER_OUT_OF_BOUNDS:new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${G}`,et)}const gt=/[^+/0-9A-Za-z-_]/g;function bt(et){if(et=et.split("=")[0],et=et.trim().replace(gt,""),et.length<2)return"";for(;et.length%4!==0;)et=et+"=";return et}function st(et,G){G=G||1/0;let Q;const ot=et.length;let ft=null;const vt=[];for(let wt=0;wt<ot;++wt){if(Q=et.charCodeAt(wt),Q>55295&&Q<57344){if(!ft){if(Q>56319){(G-=3)>-1&&vt.push(239,191,189);continue}else if(wt+1===ot){(G-=3)>-1&&vt.push(239,191,189);continue}ft=Q;continue}if(Q<56320){(G-=3)>-1&&vt.push(239,191,189),ft=Q;continue}Q=(ft-55296<<10|Q-56320)+65536}else ft&&(G-=3)>-1&&vt.push(239,191,189);if(ft=null,Q<128){if((G-=1)<0)break;vt.push(Q)}else if(Q<2048){if((G-=2)<0)break;vt.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((G-=3)<0)break;vt.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((G-=4)<0)break;vt.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return vt}function dt(et){const G=[];for(let Q=0;Q<et.length;++Q)G.push(et.charCodeAt(Q)&255);return G}function ht(et,G){let Q,ot,ft;const vt=[];for(let wt=0;wt<et.length&&!((G-=2)<0);++wt)Q=et.charCodeAt(wt),ot=Q>>8,ft=Q%256,vt.push(ft),vt.push(ot);return vt}function xt(et){return M.toByteArray(bt(et))}function _t(et,G,Q,ot){let ft;for(ft=0;ft<ot&&!(ft+Q>=G.length||ft>=et.length);++ft)G[ft+Q]=et[ft];return ft}function St(et,G){return et instanceof G||et!=null&&et.constructor!=null&&et.constructor.name!=null&&et.constructor.name===G.name}function Ot(et){return et!==et}const Rt=(function(){const et="0123456789abcdef",G=new Array(256);for(let Q=0;Q<16;++Q){const ot=Q*16;for(let ft=0;ft<16;++ft)G[ot+ft]=et[Q]+et[ft]}return G})();function Ft(et){return typeof BigInt>"u"?Kt:et}function Kt(){throw new Error("BigInt not supported")}})(Qu)),Qu}var N1=j1(),Ju={exports:{}},ge={};var np;function z1(){if(np)return ge;np=1;var w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),e=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),c=Symbol.for("react.activity"),u=Symbol.iterator;function o(j){return j===null||typeof j!="object"?null:(j=u&&j[u]||j["@@iterator"],typeof j=="function"?j:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,f={};function v(j,B,Y){this.props=j,this.context=B,this.refs=f,this.updater=Y||p}v.prototype.isReactComponent={},v.prototype.setState=function(j,B){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,B,"setState")},v.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function b(){}b.prototype=v.prototype;function T(j,B,Y){this.props=j,this.context=B,this.refs=f,this.updater=Y||p}var C=T.prototype=new b;C.constructor=T,m(C,v.prototype),C.isPureReactComponent=!0;var I=Array.isArray;function H(){}var Z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function q(j,B,Y){var K=Y.ref;return{$$typeof:w,type:j,key:B,ref:K!==void 0?K:null,props:Y}}function V(j,B){return q(j.type,B,j.props)}function W(j){return typeof j=="object"&&j!==null&&j.$$typeof===w}function $(j){var B={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Y){return B[Y]})}var R=/\/+/g;function z(j,B){return typeof j=="object"&&j!==null&&j.key!=null?$(""+j.key):B.toString(36)}function A(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(H,H):(j.status="pending",j.then(function(B){j.status==="pending"&&(j.status="fulfilled",j.value=B)},function(B){j.status==="pending"&&(j.status="rejected",j.reason=B)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function g(j,B,Y,K,nt){var U=typeof j;(U==="undefined"||U==="boolean")&&(j=null);var J=!1;if(j===null)J=!0;else switch(U){case"bigint":case"string":case"number":J=!0;break;case"object":switch(j.$$typeof){case w:case M:J=!0;break;case s:return J=j._init,g(J(j._payload),B,Y,K,nt)}}if(J)return nt=nt(j),J=K===""?"."+z(j,0):K,I(nt)?(Y="",J!=null&&(Y=J.replace(R,"$&/")+"/"),g(nt,B,Y,"",function(X){return X})):nt!=null&&(W(nt)&&(nt=V(nt,Y+(nt.key==null||j&&j.key===nt.key?"":(""+nt.key).replace(R,"$&/")+"/")+J)),B.push(nt)),1;J=0;var L=K===""?".":K+":";if(I(j))for(var N=0;N<j.length;N++)K=j[N],U=L+z(K,N),J+=g(K,B,Y,U,nt);else if(N=o(j),typeof N=="function")for(j=N.call(j),N=0;!(K=j.next()).done;)K=K.value,U=L+z(K,N++),J+=g(K,B,Y,U,nt);else if(U==="object"){if(typeof j.then=="function")return g(A(j),B,Y,K,nt);throw B=String(j),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return J}function x(j,B,Y){if(j==null)return j;var K=[],nt=0;return g(j,K,"","",function(U){return B.call(Y,U,nt++)}),K}function S(j){if(j._status===-1){var B=j._result;B=B(),B.then(function(Y){(j._status===0||j._status===-1)&&(j._status=1,j._result=Y)},function(Y){(j._status===0||j._status===-1)&&(j._status=2,j._result=Y)}),j._status===-1&&(j._status=0,j._result=B)}if(j._status===1)return j._result.default;throw j._result}var E=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},O={map:x,forEach:function(j,B,Y){x(j,function(){B.apply(this,arguments)},Y)},count:function(j){var B=0;return x(j,function(){B++}),B},toArray:function(j){return x(j,function(B){return B})||[]},only:function(j){if(!W(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ge.Activity=c,ge.Children=O,ge.Component=v,ge.Fragment=r,ge.Profiler=_,ge.PureComponent=T,ge.StrictMode=y,ge.Suspense=i,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ge.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Z.H.useMemoCache(j)}},ge.cache=function(j){return function(){return j.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(j,B,Y){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var K=m({},j.props),nt=j.key;if(B!=null)for(U in B.key!==void 0&&(nt=""+B.key),B)!P.call(B,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&B.ref===void 0||(K[U]=B[U]);var U=arguments.length-2;if(U===1)K.children=Y;else if(1<U){for(var J=Array(U),L=0;L<U;L++)J[L]=arguments[L+2];K.children=J}return q(j.type,nt,K)},ge.createContext=function(j){return j={$$typeof:a,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},ge.createElement=function(j,B,Y){var K,nt={},U=null;if(B!=null)for(K in B.key!==void 0&&(U=""+B.key),B)P.call(B,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(nt[K]=B[K]);var J=arguments.length-2;if(J===1)nt.children=Y;else if(1<J){for(var L=Array(J),N=0;N<J;N++)L[N]=arguments[N+2];nt.children=L}if(j&&j.defaultProps)for(K in J=j.defaultProps,J)nt[K]===void 0&&(nt[K]=J[K]);return q(j,U,nt)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(j){return{$$typeof:l,render:j}},ge.isValidElement=W,ge.lazy=function(j){return{$$typeof:s,_payload:{_status:-1,_result:j},_init:S}},ge.memo=function(j,B){return{$$typeof:e,type:j,compare:B===void 0?null:B}},ge.startTransition=function(j){var B=Z.T,Y={};Z.T=Y;try{var K=j(),nt=Z.S;nt!==null&&nt(Y,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(H,E)}catch(U){E(U)}finally{B!==null&&Y.types!==null&&(B.types=Y.types),Z.T=B}},ge.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ge.use=function(j){return Z.H.use(j)},ge.useActionState=function(j,B,Y){return Z.H.useActionState(j,B,Y)},ge.useCallback=function(j,B){return Z.H.useCallback(j,B)},ge.useContext=function(j){return Z.H.useContext(j)},ge.useDebugValue=function(){},ge.useDeferredValue=function(j,B){return Z.H.useDeferredValue(j,B)},ge.useEffect=function(j,B){return Z.H.useEffect(j,B)},ge.useEffectEvent=function(j){return Z.H.useEffectEvent(j)},ge.useId=function(){return Z.H.useId()},ge.useImperativeHandle=function(j,B,Y){return Z.H.useImperativeHandle(j,B,Y)},ge.useInsertionEffect=function(j,B){return Z.H.useInsertionEffect(j,B)},ge.useLayoutEffect=function(j,B){return Z.H.useLayoutEffect(j,B)},ge.useMemo=function(j,B){return Z.H.useMemo(j,B)},ge.useOptimistic=function(j,B){return Z.H.useOptimistic(j,B)},ge.useReducer=function(j,B,Y){return Z.H.useReducer(j,B,Y)},ge.useRef=function(j){return Z.H.useRef(j)},ge.useState=function(j){return Z.H.useState(j)},ge.useSyncExternalStore=function(j,B,Y){return Z.H.useSyncExternalStore(j,B,Y)},ge.useTransition=function(){return Z.H.useTransition()},ge.version="19.2.3",ge}var ip;function hc(){return ip||(ip=1,Ju.exports=z1()),Ju.exports}var Hp=hc(),tc={exports:{}},da={},ec={exports:{}},rc={};var sp;function B1(){return sp||(sp=1,(function(w){function M(g,x){var S=g.length;g.push(x);t:for(;0<S;){var E=S-1>>>1,O=g[E];if(0<_(O,x))g[E]=x,g[S]=O,S=E;else break t}}function r(g){return g.length===0?null:g[0]}function y(g){if(g.length===0)return null;var x=g[0],S=g.pop();if(S!==x){g[0]=S;t:for(var E=0,O=g.length,j=O>>>1;E<j;){var B=2*(E+1)-1,Y=g[B],K=B+1,nt=g[K];if(0>_(Y,S))K<O&&0>_(nt,Y)?(g[E]=nt,g[K]=S,E=K):(g[E]=Y,g[B]=S,E=B);else if(K<O&&0>_(nt,S))g[E]=nt,g[K]=S,E=K;else break t}}return x}function _(g,x){var S=g.sortIndex-x.sortIndex;return S!==0?S:g.id-x.id}if(w.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;w.unstable_now=function(){return d.now()}}else{var a=Date,l=a.now();w.unstable_now=function(){return a.now()-l}}var i=[],e=[],s=1,c=null,u=3,o=!1,p=!1,m=!1,f=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(g){for(var x=r(e);x!==null;){if(x.callback===null)y(e);else if(x.startTime<=g)y(e),x.sortIndex=x.expirationTime,M(i,x);else break;x=r(e)}}function I(g){if(m=!1,C(g),!p)if(r(i)!==null)p=!0,H||(H=!0,$());else{var x=r(e);x!==null&&A(I,x.startTime-g)}}var H=!1,Z=-1,P=5,q=-1;function V(){return f?!0:!(w.unstable_now()-q<P)}function W(){if(f=!1,H){var g=w.unstable_now();q=g;var x=!0;try{t:{p=!1,m&&(m=!1,b(Z),Z=-1),o=!0;var S=u;try{e:{for(C(g),c=r(i);c!==null&&!(c.expirationTime>g&&V());){var E=c.callback;if(typeof E=="function"){c.callback=null,u=c.priorityLevel;var O=E(c.expirationTime<=g);if(g=w.unstable_now(),typeof O=="function"){c.callback=O,C(g),x=!0;break e}c===r(i)&&y(i),C(g)}else y(i);c=r(i)}if(c!==null)x=!0;else{var j=r(e);j!==null&&A(I,j.startTime-g),x=!1}}break t}finally{c=null,u=S,o=!1}x=void 0}}finally{x?$():H=!1}}}var $;if(typeof T=="function")$=function(){T(W)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,z=R.port2;R.port1.onmessage=W,$=function(){z.postMessage(null)}}else $=function(){v(W,0)};function A(g,x){Z=v(function(){g(w.unstable_now())},x)}w.unstable_IdlePriority=5,w.unstable_ImmediatePriority=1,w.unstable_LowPriority=4,w.unstable_NormalPriority=3,w.unstable_Profiling=null,w.unstable_UserBlockingPriority=2,w.unstable_cancelCallback=function(g){g.callback=null},w.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<g?Math.floor(1e3/g):5},w.unstable_getCurrentPriorityLevel=function(){return u},w.unstable_next=function(g){switch(u){case 1:case 2:case 3:var x=3;break;default:x=u}var S=u;u=x;try{return g()}finally{u=S}},w.unstable_requestPaint=function(){f=!0},w.unstable_runWithPriority=function(g,x){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var S=u;u=g;try{return x()}finally{u=S}},w.unstable_scheduleCallback=function(g,x,S){var E=w.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?E+S:E):S=E,g){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=S+O,g={id:s++,callback:x,priorityLevel:g,startTime:S,expirationTime:O,sortIndex:-1},S>E?(g.sortIndex=S,M(e,g),r(i)===null&&g===r(e)&&(m?(b(Z),Z=-1):m=!0,A(I,S-E))):(g.sortIndex=O,M(i,g),p||o||(p=!0,H||(H=!0,$()))),g},w.unstable_shouldYield=V,w.unstable_wrapCallback=function(g){var x=u;return function(){var S=u;u=x;try{return g.apply(this,arguments)}finally{u=S}}}})(rc)),rc}var ap;function D1(){return ap||(ap=1,ec.exports=B1()),ec.exports}var nc={exports:{}},Rr={};var op;function I1(){if(op)return Rr;op=1;var w=hc();function M(i){var e="https://react.dev/errors/"+i;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)e+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+i+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var y={d:{f:r,r:function(){throw Error(M(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},_=Symbol.for("react.portal");function d(i,e,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:c==null?null:""+c,children:i,containerInfo:e,implementation:s}}var a=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(i,e){if(i==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return Rr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Rr.createPortal=function(i,e){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(M(299));return d(i,e,null,s)},Rr.flushSync=function(i){var e=a.T,s=y.p;try{if(a.T=null,y.p=2,i)return i()}finally{a.T=e,y.p=s,y.d.f()}},Rr.preconnect=function(i,e){typeof i=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,y.d.C(i,e))},Rr.prefetchDNS=function(i){typeof i=="string"&&y.d.D(i)},Rr.preinit=function(i,e){if(typeof i=="string"&&e&&typeof e.as=="string"){var s=e.as,c=l(s,e.crossOrigin),u=typeof e.integrity=="string"?e.integrity:void 0,o=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;s==="style"?y.d.S(i,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:c,integrity:u,fetchPriority:o}):s==="script"&&y.d.X(i,{crossOrigin:c,integrity:u,fetchPriority:o,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},Rr.preinitModule=function(i,e){if(typeof i=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var s=l(e.as,e.crossOrigin);y.d.M(i,{crossOrigin:s,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&y.d.M(i)},Rr.preload=function(i,e){if(typeof i=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var s=e.as,c=l(s,e.crossOrigin);y.d.L(i,s,{crossOrigin:c,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},Rr.preloadModule=function(i,e){if(typeof i=="string")if(e){var s=l(e.as,e.crossOrigin);y.d.m(i,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:s,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else y.d.m(i)},Rr.requestFormReset=function(i){y.d.r(i)},Rr.unstable_batchedUpdates=function(i,e){return i(e)},Rr.useFormState=function(i,e,s){return a.H.useFormState(i,e,s)},Rr.useFormStatus=function(){return a.H.useHostTransitionStatus()},Rr.version="19.2.3",Rr}var lp;function L1(){if(lp)return nc.exports;lp=1;function w(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(w)}catch(M){console.error(M)}}return w(),nc.exports=I1(),nc.exports}var up;function U1(){if(up)return da;up=1;var w=D1(),M=hc(),r=L1();function y(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)n+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function _(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var n=t,h=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(h=n.return),t=n.return;while(t)}return n.tag===3?h:null}function a(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function l(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function i(t){if(d(t)!==t)throw Error(y(188))}function e(t){var n=t.alternate;if(!n){if(n=d(t),n===null)throw Error(y(188));return n!==t?null:t}for(var h=t,k=n;;){var D=h.return;if(D===null)break;var F=D.alternate;if(F===null){if(k=D.return,k!==null){h=k;continue}break}if(D.child===F.child){for(F=D.child;F;){if(F===h)return i(D),t;if(F===k)return i(D),n;F=F.sibling}throw Error(y(188))}if(h.return!==k.return)h=D,k=F;else{for(var tt=!1,at=D.child;at;){if(at===h){tt=!0,h=D,k=F;break}if(at===k){tt=!0,k=D,h=F;break}at=at.sibling}if(!tt){for(at=F.child;at;){if(at===h){tt=!0,h=F,k=D;break}if(at===k){tt=!0,k=F,h=D;break}at=at.sibling}if(!tt)throw Error(y(189))}}if(h.alternate!==k)throw Error(y(190))}if(h.tag!==3)throw Error(y(188));return h.stateNode.current===h?t:n}function s(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=s(t),n!==null)return n;t=t.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function $(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var R=Symbol.for("react.client.reference");function z(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===R?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case m:return"Fragment";case v:return"Profiler";case f:return"StrictMode";case I:return"Suspense";case H:return"SuspenseList";case q:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case p:return"Portal";case T:return t.displayName||"Context";case b:return(t._context.displayName||"Context")+".Consumer";case C:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return n=t.displayName||null,n!==null?n:z(t.type)||"Memo";case P:n=t._payload,t=t._init;try{return z(t(n))}catch{}}return null}var A=Array.isArray,g=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S={pending:!1,data:null,method:null,action:null},E=[],O=-1;function j(t){return{current:t}}function B(t){0>O||(t.current=E[O],E[O]=null,O--)}function Y(t,n){O++,E[O]=t.current,t.current=n}var K=j(null),nt=j(null),U=j(null),J=j(null);function L(t,n){switch(Y(U,n),Y(nt,t),Y(K,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?_d(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=_d(n),t=xd(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(K),Y(K,t)}function N(){B(K),B(nt),B(U)}function X(t){t.memoizedState!==null&&Y(J,t);var n=K.current,h=xd(n,t.type);n!==h&&(Y(nt,t),Y(K,h))}function rt(t){nt.current===t&&(B(K),B(nt)),J.current===t&&(B(J),oa._currentValue=S)}var ut,it;function lt(t){if(ut===void 0)try{throw Error()}catch(h){var n=h.stack.trim().match(/\n( *(at )?)/);ut=n&&n[1]||"",it=-1<h.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ut+t+it}var gt=!1;function bt(t,n){if(!t||gt)return"";gt=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var k={DetermineComponentFrameRoot:function(){try{if(n){var Ut=function(){throw Error()};if(Object.defineProperty(Ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ut,[])}catch(jt){var Ct=jt}Reflect.construct(t,[],Ut)}else{try{Ut.call()}catch(jt){Ct=jt}t.call(Ut.prototype)}}else{try{throw Error()}catch(jt){Ct=jt}(Ut=t())&&typeof Ut.catch=="function"&&Ut.catch(function(){})}}catch(jt){if(jt&&Ct&&typeof jt.stack=="string")return[jt.stack,Ct.stack]}return[null,null]}};k.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(k.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(k.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var F=k.DetermineComponentFrameRoot(),tt=F[0],at=F[1];if(tt&&at){var pt=tt.split(`
|
|
4
|
+
`),Mt=at.split(`
|
|
5
|
+
`);for(D=k=0;k<pt.length&&!pt[k].includes("DetermineComponentFrameRoot");)k++;for(;D<Mt.length&&!Mt[D].includes("DetermineComponentFrameRoot");)D++;if(k===pt.length||D===Mt.length)for(k=pt.length-1,D=Mt.length-1;1<=k&&0<=D&&pt[k]!==Mt[D];)D--;for(;1<=k&&0<=D;k--,D--)if(pt[k]!==Mt[D]){if(k!==1||D!==1)do if(k--,D--,0>D||pt[k]!==Mt[D]){var It=`
|
|
6
|
+
`+pt[k].replace(" at new "," at ");return t.displayName&&It.includes("<anonymous>")&&(It=It.replace("<anonymous>",t.displayName)),It}while(1<=k&&0<=D);break}}}finally{gt=!1,Error.prepareStackTrace=h}return(h=t?t.displayName||t.name:"")?lt(h):""}function st(t,n){switch(t.tag){case 26:case 27:case 5:return lt(t.type);case 16:return lt("Lazy");case 13:return t.child!==n&&n!==null?lt("Suspense Fallback"):lt("Suspense");case 19:return lt("SuspenseList");case 0:case 15:return bt(t.type,!1);case 11:return bt(t.type.render,!1);case 1:return bt(t.type,!0);case 31:return lt("Activity");default:return""}}function dt(t){try{var n="",h=null;do n+=st(t,h),h=t,t=t.return;while(t);return n}catch(k){return`
|
|
7
|
+
Error generating stack: `+k.message+`
|
|
8
|
+
`+k.stack}}var ht=Object.prototype.hasOwnProperty,xt=w.unstable_scheduleCallback,_t=w.unstable_cancelCallback,St=w.unstable_shouldYield,Ot=w.unstable_requestPaint,Rt=w.unstable_now,Ft=w.unstable_getCurrentPriorityLevel,Kt=w.unstable_ImmediatePriority,et=w.unstable_UserBlockingPriority,G=w.unstable_NormalPriority,Q=w.unstable_LowPriority,ot=w.unstable_IdlePriority,ft=w.log,vt=w.unstable_setDisableYieldValue,wt=null,Nt=null;function Pt(t){if(typeof ft=="function"&&vt(t),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(wt,t)}catch{}}var qt=Math.clz32?Math.clz32:Fe,Vt=Math.log,Qt=Math.LN2;function Fe(t){return t>>>=0,t===0?32:31-(Vt(t)/Qt|0)|0}var ie=256,ke=262144,ye=4194304;function oe(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pe(t,n,h){var k=t.pendingLanes;if(k===0)return 0;var D=0,F=t.suspendedLanes,tt=t.pingedLanes;t=t.warmLanes;var at=k&134217727;return at!==0?(k=at&~F,k!==0?D=oe(k):(tt&=at,tt!==0?D=oe(tt):h||(h=at&~t,h!==0&&(D=oe(h))))):(at=k&~F,at!==0?D=oe(at):tt!==0?D=oe(tt):h||(h=k&~t,h!==0&&(D=oe(h)))),D===0?0:n!==0&&n!==D&&(n&F)===0&&(F=D&-D,h=n&-n,F>=h||F===32&&(h&4194048)!==0)?n:D}function Se(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function fe(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Te(){var t=ye;return ye<<=1,(ye&62914560)===0&&(ye=4194304),t}function He(t){for(var n=[],h=0;31>h;h++)n.push(t);return n}function le(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ie(t,n,h,k,D,F){var tt=t.pendingLanes;t.pendingLanes=h,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=h,t.entangledLanes&=h,t.errorRecoveryDisabledLanes&=h,t.shellSuspendCounter=0;var at=t.entanglements,pt=t.expirationTimes,Mt=t.hiddenUpdates;for(h=tt&~h;0<h;){var It=31-qt(h),Ut=1<<It;at[It]=0,pt[It]=-1;var Ct=Mt[It];if(Ct!==null)for(Mt[It]=null,It=0;It<Ct.length;It++){var jt=Ct[It];jt!==null&&(jt.lane&=-536870913)}h&=~Ut}k!==0&&$e(t,k,0),F!==0&&D===0&&t.tag!==0&&(t.suspendedLanes|=F&~(tt&~n))}function $e(t,n,h){t.pendingLanes|=n,t.suspendedLanes&=~n;var k=31-qt(n);t.entangledLanes|=n,t.entanglements[k]=t.entanglements[k]|1073741824|h&261930}function me(t,n){var h=t.entangledLanes|=n;for(t=t.entanglements;h;){var k=31-qt(h),D=1<<k;D&n|t[k]&n&&(t[k]|=n),h&=~D}}function mt(t,n){var h=n&-n;return h=(h&42)!==0?1:kt(h),(h&(t.suspendedLanes|n))!==0?0:h}function kt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Bt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gt(){var t=x.p;return t!==0?t:(t=window.event,t===void 0?32:Zd(t.type))}function ae(t,n){var h=x.p;try{return x.p=t,n()}finally{x.p=h}}var Xt=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Xt,Wt="__reactProps$"+Xt,ee="__reactContainer$"+Xt,de="__reactEvents$"+Xt,pe="__reactListeners$"+Xt,we="__reactHandles$"+Xt,nr="__reactResources$"+Xt,qe="__reactMarker$"+Xt;function lr(t){delete t[Jt],delete t[Wt],delete t[de],delete t[pe],delete t[we]}function rr(t){var n=t[Jt];if(n)return n;for(var h=t.parentNode;h;){if(n=h[ee]||h[Jt]){if(h=n.alternate,n.child!==null||h!==null&&h.child!==null)for(t=Cd(t);t!==null;){if(h=t[Jt])return h;t=Cd(t)}return n}t=h,h=t.parentNode}return null}function dr(t){if(t=t[Jt]||t[ee]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function ct(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(y(33))}function Tt(t){var n=t[nr];return n||(n=t[nr]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function zt(t){t[qe]=!0}var Ht=new Set,re={};function Zt(t,n){Yt(t,n),Yt(t+"Capture",n)}function Yt(t,n){for(re[t]=n,t=0;t<n.length;t++)Ht.add(n[t])}var Ae=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),be={},ve={};function ue(t){return ht.call(ve,t)?!0:ht.call(be,t)?!1:Ae.test(t)?ve[t]=!0:(be[t]=!0,!1)}function ze(t,n,h){if(ue(n))if(h===null)t.removeAttribute(n);else{switch(typeof h){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var k=n.toLowerCase().slice(0,5);if(k!=="data-"&&k!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+h)}}function Be(t,n,h){if(h===null)t.removeAttribute(n);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+h)}}function Ee(t,n,h,k){if(k===null)t.removeAttribute(h);else{switch(typeof k){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(h);return}t.setAttributeNS(n,h,""+k)}}function Re(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function pr(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Er(t,n,h){var k=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof k<"u"&&typeof k.get=="function"&&typeof k.set=="function"){var D=k.get,F=k.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return D.call(this)},set:function(tt){h=""+tt,F.call(this,tt)}}),Object.defineProperty(t,n,{enumerable:k.enumerable}),{getValue:function(){return h},setValue:function(tt){h=""+tt},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function jr(t){if(!t._valueTracker){var n=pr(t)?"checked":"value";t._valueTracker=Er(t,n,""+t[n])}}function pn(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var h=n.getValue(),k="";return t&&(k=pr(t)?t.checked?"true":"false":t.value),t=k,t!==h?(n.setValue(t),!0):!1}function un(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Pn=/[\n"\\]/g;function _r(t){return t.replace(Pn,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Le(t,n,h,k,D,F,tt,at){t.name="",tt!=null&&typeof tt!="function"&&typeof tt!="symbol"&&typeof tt!="boolean"?t.type=tt:t.removeAttribute("type"),n!=null?tt==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Re(n)):t.value!==""+Re(n)&&(t.value=""+Re(n)):tt!=="submit"&&tt!=="reset"||t.removeAttribute("value"),n!=null?Qr(t,tt,Re(n)):h!=null?Qr(t,tt,Re(h)):k!=null&&t.removeAttribute("value"),D==null&&F!=null&&(t.defaultChecked=!!F),D!=null&&(t.checked=D&&typeof D!="function"&&typeof D!="symbol"),at!=null&&typeof at!="function"&&typeof at!="symbol"&&typeof at!="boolean"?t.name=""+Re(at):t.removeAttribute("name")}function Me(t,n,h,k,D,F,tt,at){if(F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(t.type=F),n!=null||h!=null){if(!(F!=="submit"&&F!=="reset"||n!=null)){jr(t);return}h=h!=null?""+Re(h):"",n=n!=null?""+Re(n):h,at||n===t.value||(t.value=n),t.defaultValue=n}k=k??D,k=typeof k!="function"&&typeof k!="symbol"&&!!k,t.checked=at?t.checked:!!k,t.defaultChecked=!!k,tt!=null&&typeof tt!="function"&&typeof tt!="symbol"&&typeof tt!="boolean"&&(t.name=tt),jr(t)}function Qr(t,n,h){n==="number"&&un(t.ownerDocument)===t||t.defaultValue===""+h||(t.defaultValue=""+h)}function Dr(t,n,h,k){if(t=t.options,n){n={};for(var D=0;D<h.length;D++)n["$"+h[D]]=!0;for(h=0;h<t.length;h++)D=n.hasOwnProperty("$"+t[h].value),t[h].selected!==D&&(t[h].selected=D),D&&k&&(t[h].defaultSelected=!0)}else{for(h=""+Re(h),n=null,D=0;D<t.length;D++){if(t[D].value===h){t[D].selected=!0,k&&(t[D].defaultSelected=!0);return}n!==null||t[D].disabled||(n=t[D])}n!==null&&(n.selected=!0)}}function wi(t,n,h){if(n!=null&&(n=""+Re(n),n!==t.value&&(t.value=n),h==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=h!=null?""+Re(h):""}function Cr(t,n,h,k){if(n==null){if(k!=null){if(h!=null)throw Error(y(92));if(A(k)){if(1<k.length)throw Error(y(93));k=k[0]}h=k}h==null&&(h=""),n=h}h=Re(n),t.defaultValue=h,k=t.textContent,k===h&&k!==""&&k!==null&&(t.value=k),jr(t)}function Or(t,n){if(n){var h=t.firstChild;if(h&&h===t.lastChild&&h.nodeType===3){h.nodeValue=n;return}}t.textContent=n}var mn=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Hn(t,n,h){var k=n.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?k?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":k?t.setProperty(n,h):typeof h!="number"||h===0||mn.has(n)?n==="float"?t.cssFloat=h:t[n]=(""+h).trim():t[n]=h+"px"}function _i(t,n,h){if(n!=null&&typeof n!="object")throw Error(y(62));if(t=t.style,h!=null){for(var k in h)!h.hasOwnProperty(k)||n!=null&&n.hasOwnProperty(k)||(k.indexOf("--")===0?t.setProperty(k,""):k==="float"?t.cssFloat="":t[k]="");for(var D in n)k=n[D],n.hasOwnProperty(D)&&h[D]!==k&&Hn(t,D,k)}else for(var F in n)n.hasOwnProperty(F)&&Hn(t,F,n[F])}function bn(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ga=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sn(t){return ga.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $r(){}var qn=null;function $n(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var En=null,cn=null;function xi(t){var n=dr(t);if(n&&(t=n.stateNode)){var h=t[Wt]||null;t:switch(t=n.stateNode,n.type){case"input":if(Le(t,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),n=h.name,h.type==="radio"&&n!=null){for(h=t;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+_r(""+n)+'"][type="radio"]'),n=0;n<h.length;n++){var k=h[n];if(k!==t&&k.form===t.form){var D=k[Wt]||null;if(!D)throw Error(y(90));Le(k,D.value,D.defaultValue,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name)}}for(n=0;n<h.length;n++)k=h[n],k.form===t.form&&pn(k)}break t;case"textarea":wi(t,h.value,h.defaultValue);break t;case"select":n=h.value,n!=null&&Dr(t,!!h.multiple,n,!1)}}}var Ko=!1;function wc(t,n,h){if(Ko)return t(n,h);Ko=!0;try{var k=t(n);return k}finally{if(Ko=!1,(En!==null||cn!==null)&&(io(),En&&(n=En,t=cn,cn=En=null,xi(n),t)))for(n=0;n<t.length;n++)xi(t[n])}}function Es(t,n){var h=t.stateNode;if(h===null)return null;var k=h[Wt]||null;if(k===null)return null;h=k[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(k=!k.disabled)||(t=t.type,k=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!k;break t;default:t=!1}if(t)return null;if(h&&typeof h!="function")throw Error(y(231,n,typeof h));return h}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(kn)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{Wo=!1}var Zn=null,Qo=null,ya=null;function _c(){if(ya)return ya;var t,n=Qo,h=n.length,k,D="value"in Zn?Zn.value:Zn.textContent,F=D.length;for(t=0;t<h&&n[t]===D[t];t++);var tt=h-t;for(k=1;k<=tt&&n[h-k]===D[F-k];k++);return ya=D.slice(t,1<k?1-k:void 0)}function va(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function wa(){return!0}function xc(){return!1}function Ir(t){function n(h,k,D,F,tt){this._reactName=h,this._targetInst=D,this.type=k,this.nativeEvent=F,this.target=tt,this.currentTarget=null;for(var at in t)t.hasOwnProperty(at)&&(h=t[at],this[at]=h?h(F):F[at]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?wa:xc,this.isPropagationStopped=xc,this}return c(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=wa)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),n}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_a=Ir(Si),Ts=c({},Si,{view:0,detail:0}),k0=Ir(Ts),Jo,tl,As,xa=c({},Ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rl,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==As&&(As&&t.type==="mousemove"?(Jo=t.screenX-As.screenX,tl=t.screenY-As.screenY):tl=Jo=0,As=t),Jo)},movementY:function(t){return"movementY"in t?t.movementY:tl}}),Sc=Ir(xa),T0=c({},xa,{dataTransfer:0}),A0=Ir(T0),M0=c({},Ts,{relatedTarget:0}),el=Ir(M0),C0=c({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),O0=Ir(C0),R0=c({},Si,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),j0=Ir(R0),N0=c({},Si,{data:0}),Ec=Ir(N0),z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},D0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I0(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=D0[t])?!!n[t]:!1}function rl(){return I0}var L0=c({},Ts,{key:function(t){if(t.key){var n=z0[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=va(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?B0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rl,charCode:function(t){return t.type==="keypress"?va(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?va(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),U0=Ir(L0),F0=c({},xa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kc=Ir(F0),P0=c({},Ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rl}),H0=Ir(P0),q0=c({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),$0=Ir(q0),Z0=c({},xa,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),V0=Ir(Z0),X0=c({},Si,{newState:0,oldState:0}),Y0=Ir(X0),G0=[9,13,27,32],nl=kn&&"CompositionEvent"in window,Ms=null;kn&&"documentMode"in document&&(Ms=document.documentMode);var K0=kn&&"TextEvent"in window&&!Ms,Tc=kn&&(!nl||Ms&&8<Ms&&11>=Ms),Ac=" ",Mc=!1;function Cc(t,n){switch(t){case"keyup":return G0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Hi=!1;function W0(t,n){switch(t){case"compositionend":return Oc(n);case"keypress":return n.which!==32?null:(Mc=!0,Ac);case"textInput":return t=n.data,t===Ac&&Mc?null:t;default:return null}}function Q0(t,n){if(Hi)return t==="compositionend"||!nl&&Cc(t,n)?(t=_c(),ya=Qo=Zn=null,Hi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Tc&&n.locale!=="ko"?null:n.data;default:return null}}var J0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!J0[t.type]:n==="textarea"}function jc(t,n,h,k){En?cn?cn.push(k):cn=[k]:En=k,n=fo(n,"onChange"),0<n.length&&(h=new _a("onChange","change",null,h,k),t.push({event:h,listeners:n}))}var Cs=null,Os=null;function tm(t){md(t,0)}function Sa(t){var n=ct(t);if(pn(n))return t}function Nc(t,n){if(t==="change")return n}var zc=!1;if(kn){var il;if(kn){var sl="oninput"in document;if(!sl){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),sl=typeof Bc.oninput=="function"}il=sl}else il=!1;zc=il&&(!document.documentMode||9<document.documentMode)}function Dc(){Cs&&(Cs.detachEvent("onpropertychange",Ic),Os=Cs=null)}function Ic(t){if(t.propertyName==="value"&&Sa(Os)){var n=[];jc(n,Os,t,$n(t)),wc(tm,n)}}function em(t,n,h){t==="focusin"?(Dc(),Cs=n,Os=h,Cs.attachEvent("onpropertychange",Ic)):t==="focusout"&&Dc()}function rm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Sa(Os)}function nm(t,n){if(t==="click")return Sa(n)}function im(t,n){if(t==="input"||t==="change")return Sa(n)}function sm(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Zr=typeof Object.is=="function"?Object.is:sm;function Rs(t,n){if(Zr(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var h=Object.keys(t),k=Object.keys(n);if(h.length!==k.length)return!1;for(k=0;k<h.length;k++){var D=h[k];if(!ht.call(n,D)||!Zr(t[D],n[D]))return!1}return!0}function Lc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Uc(t,n){var h=Lc(t);t=0;for(var k;h;){if(h.nodeType===3){if(k=t+h.textContent.length,t<=n&&k>=n)return{node:h,offset:n-t};t=k}t:{for(;h;){if(h.nextSibling){h=h.nextSibling;break t}h=h.parentNode}h=void 0}h=Lc(h)}}function Fc(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Fc(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Pc(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=un(t.document);n instanceof t.HTMLIFrameElement;){try{var h=typeof n.contentWindow.location.href=="string"}catch{h=!1}if(h)t=n.contentWindow;else break;n=un(t.document)}return n}function al(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var am=kn&&"documentMode"in document&&11>=document.documentMode,qi=null,ol=null,js=null,ll=!1;function Hc(t,n,h){var k=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;ll||qi==null||qi!==un(k)||(k=qi,"selectionStart"in k&&al(k)?k={start:k.selectionStart,end:k.selectionEnd}:(k=(k.ownerDocument&&k.ownerDocument.defaultView||window).getSelection(),k={anchorNode:k.anchorNode,anchorOffset:k.anchorOffset,focusNode:k.focusNode,focusOffset:k.focusOffset}),js&&Rs(js,k)||(js=k,k=fo(ol,"onSelect"),0<k.length&&(n=new _a("onSelect","select",null,n,h),t.push({event:n,listeners:k}),n.target=qi)))}function Ei(t,n){var h={};return h[t.toLowerCase()]=n.toLowerCase(),h["Webkit"+t]="webkit"+n,h["Moz"+t]="moz"+n,h}var $i={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},ul={},qc={};kn&&(qc=document.createElement("div").style,"AnimationEvent"in window||(delete $i.animationend.animation,delete $i.animationiteration.animation,delete $i.animationstart.animation),"TransitionEvent"in window||delete $i.transitionend.transition);function ki(t){if(ul[t])return ul[t];if(!$i[t])return t;var n=$i[t],h;for(h in n)if(n.hasOwnProperty(h)&&h in qc)return ul[t]=n[h];return t}var $c=ki("animationend"),Zc=ki("animationiteration"),Vc=ki("animationstart"),om=ki("transitionrun"),lm=ki("transitionstart"),um=ki("transitioncancel"),Xc=ki("transitionend"),Yc=new Map,cl="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cl.push("scrollEnd");function fn(t,n){Yc.set(t,n),Zt(n,[t])}var Ea=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Jr=[],Zi=0,fl=0;function ka(){for(var t=Zi,n=fl=Zi=0;n<t;){var h=Jr[n];Jr[n++]=null;var k=Jr[n];Jr[n++]=null;var D=Jr[n];Jr[n++]=null;var F=Jr[n];if(Jr[n++]=null,k!==null&&D!==null){var tt=k.pending;tt===null?D.next=D:(D.next=tt.next,tt.next=D),k.pending=D}F!==0&&Gc(h,D,F)}}function Ta(t,n,h,k){Jr[Zi++]=t,Jr[Zi++]=n,Jr[Zi++]=h,Jr[Zi++]=k,fl|=k,t.lanes|=k,t=t.alternate,t!==null&&(t.lanes|=k)}function hl(t,n,h,k){return Ta(t,n,h,k),Aa(t)}function Ti(t,n){return Ta(t,null,null,n),Aa(t)}function Gc(t,n,h){t.lanes|=h;var k=t.alternate;k!==null&&(k.lanes|=h);for(var D=!1,F=t.return;F!==null;)F.childLanes|=h,k=F.alternate,k!==null&&(k.childLanes|=h),F.tag===22&&(t=F.stateNode,t===null||t._visibility&1||(D=!0)),t=F,F=F.return;return t.tag===3?(F=t.stateNode,D&&n!==null&&(D=31-qt(h),t=F.hiddenUpdates,k=t[D],k===null?t[D]=[n]:k.push(n),n.lane=h|536870912),F):null}function Aa(t){if(50<ta)throw ta=0,_u=null,Error(y(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Vi={};function cm(t,n,h,k){this.tag=t,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=k,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(t,n,h,k){return new cm(t,n,h,k)}function dl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tn(t,n){var h=t.alternate;return h===null?(h=Vr(t.tag,n,t.key,t.mode),h.elementType=t.elementType,h.type=t.type,h.stateNode=t.stateNode,h.alternate=t,t.alternate=h):(h.pendingProps=n,h.type=t.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=t.flags&65011712,h.childLanes=t.childLanes,h.lanes=t.lanes,h.child=t.child,h.memoizedProps=t.memoizedProps,h.memoizedState=t.memoizedState,h.updateQueue=t.updateQueue,n=t.dependencies,h.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},h.sibling=t.sibling,h.index=t.index,h.ref=t.ref,h.refCleanup=t.refCleanup,h}function Kc(t,n){t.flags&=65011714;var h=t.alternate;return h===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=h.childLanes,t.lanes=h.lanes,t.child=h.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=h.memoizedProps,t.memoizedState=h.memoizedState,t.updateQueue=h.updateQueue,t.type=h.type,n=h.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Ma(t,n,h,k,D,F){var tt=0;if(k=t,typeof t=="function")dl(t)&&(tt=1);else if(typeof t=="string")tt=m1(t,h,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case q:return t=Vr(31,h,n,D),t.elementType=q,t.lanes=F,t;case m:return Ai(h.children,D,F,n);case f:tt=8,D|=24;break;case v:return t=Vr(12,h,n,D|2),t.elementType=v,t.lanes=F,t;case I:return t=Vr(13,h,n,D),t.elementType=I,t.lanes=F,t;case H:return t=Vr(19,h,n,D),t.elementType=H,t.lanes=F,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:tt=10;break t;case b:tt=9;break t;case C:tt=11;break t;case Z:tt=14;break t;case P:tt=16,k=null;break t}tt=29,h=Error(y(130,t===null?"null":typeof t,"")),k=null}return n=Vr(tt,h,n,D),n.elementType=t,n.type=k,n.lanes=F,n}function Ai(t,n,h,k){return t=Vr(7,t,k,n),t.lanes=h,t}function pl(t,n,h){return t=Vr(6,t,null,n),t.lanes=h,t}function Wc(t){var n=Vr(18,null,null,0);return n.stateNode=t,n}function ml(t,n,h){return n=Vr(4,t.children!==null?t.children:[],t.key,n),n.lanes=h,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Qc=new WeakMap;function tn(t,n){if(typeof t=="object"&&t!==null){var h=Qc.get(t);return h!==void 0?h:(n={value:t,source:n,stack:dt(n)},Qc.set(t,n),n)}return{value:t,source:n,stack:dt(n)}}var Xi=[],Yi=0,Ca=null,Ns=0,en=[],rn=0,Vn=null,yn=1,vn="";function An(t,n){Xi[Yi++]=Ns,Xi[Yi++]=Ca,Ca=t,Ns=n}function Jc(t,n,h){en[rn++]=yn,en[rn++]=vn,en[rn++]=Vn,Vn=t;var k=yn;t=vn;var D=32-qt(k)-1;k&=~(1<<D),h+=1;var F=32-qt(n)+D;if(30<F){var tt=D-D%5;F=(k&(1<<tt)-1).toString(32),k>>=tt,D-=tt,yn=1<<32-qt(n)+D|h<<D|k,vn=F+t}else yn=1<<F|h<<D|k,vn=t}function bl(t){t.return!==null&&(An(t,1),Jc(t,1,0))}function gl(t){for(;t===Ca;)Ca=Xi[--Yi],Xi[Yi]=null,Ns=Xi[--Yi],Xi[Yi]=null;for(;t===Vn;)Vn=en[--rn],en[rn]=null,vn=en[--rn],en[rn]=null,yn=en[--rn],en[rn]=null}function tf(t,n){en[rn++]=yn,en[rn++]=vn,en[rn++]=Vn,yn=n.id,vn=n.overflow,Vn=t}var kr=null,ir=null,De=!1,Xn=null,nn=!1,yl=Error(y(519));function Yn(t){var n=Error(y(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zs(tn(n,t)),yl}function ef(t){var n=t.stateNode,h=t.type,k=t.memoizedProps;switch(n[Jt]=t,n[Wt]=k,h){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(h=0;h<ra.length;h++)Oe(ra[h],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Oe("invalid",n),Me(n,k.value,k.defaultValue,k.checked,k.defaultChecked,k.type,k.name,!0);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),Cr(n,k.value,k.defaultValue,k.children)}h=k.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||n.textContent===""+h||k.suppressHydrationWarning===!0||vd(n.textContent,h)?(k.popover!=null&&(Oe("beforetoggle",n),Oe("toggle",n)),k.onScroll!=null&&Oe("scroll",n),k.onScrollEnd!=null&&Oe("scrollend",n),k.onClick!=null&&(n.onclick=$r),n=!0):n=!1,n||Yn(t,!0)}function rf(t){for(kr=t.return;kr;)switch(kr.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:kr=kr.return}}function Gi(t){if(t!==kr)return!1;if(!De)return rf(t),De=!0,!1;var n=t.tag,h;if((h=n!==3&&n!==27)&&((h=n===5)&&(h=t.type,h=!(h!=="form"&&h!=="button")||Du(t.type,t.memoizedProps)),h=!h),h&&ir&&Yn(t),rf(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(y(317));ir=Md(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(y(317));ir=Md(t)}else n===27?(n=ir,li(t.type)?(t=Pu,Pu=null,ir=t):ir=n):ir=kr?an(t.stateNode.nextSibling):null;return!0}function Mi(){ir=kr=null,De=!1}function vl(){var t=Xn;return t!==null&&(Pr===null?Pr=t:Pr.push.apply(Pr,t),Xn=null),t}function zs(t){Xn===null?Xn=[t]:Xn.push(t)}var wl=j(null),Ci=null,Mn=null;function Gn(t,n,h){Y(wl,n._currentValue),n._currentValue=h}function Cn(t){t._currentValue=wl.current,B(wl)}function _l(t,n,h){for(;t!==null;){var k=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,k!==null&&(k.childLanes|=n)):k!==null&&(k.childLanes&n)!==n&&(k.childLanes|=n),t===h)break;t=t.return}}function xl(t,n,h,k){var D=t.child;for(D!==null&&(D.return=t);D!==null;){var F=D.dependencies;if(F!==null){var tt=D.child;F=F.firstContext;t:for(;F!==null;){var at=F;F=D;for(var pt=0;pt<n.length;pt++)if(at.context===n[pt]){F.lanes|=h,at=F.alternate,at!==null&&(at.lanes|=h),_l(F.return,h,t),k||(tt=null);break t}F=at.next}}else if(D.tag===18){if(tt=D.return,tt===null)throw Error(y(341));tt.lanes|=h,F=tt.alternate,F!==null&&(F.lanes|=h),_l(tt,h,t),tt=null}else tt=D.child;if(tt!==null)tt.return=D;else for(tt=D;tt!==null;){if(tt===t){tt=null;break}if(D=tt.sibling,D!==null){D.return=tt.return,tt=D;break}tt=tt.return}D=tt}}function Ki(t,n,h,k){t=null;for(var D=n,F=!1;D!==null;){if(!F){if((D.flags&524288)!==0)F=!0;else if((D.flags&262144)!==0)break}if(D.tag===10){var tt=D.alternate;if(tt===null)throw Error(y(387));if(tt=tt.memoizedProps,tt!==null){var at=D.type;Zr(D.pendingProps.value,tt.value)||(t!==null?t.push(at):t=[at])}}else if(D===J.current){if(tt=D.alternate,tt===null)throw Error(y(387));tt.memoizedState.memoizedState!==D.memoizedState.memoizedState&&(t!==null?t.push(oa):t=[oa])}D=D.return}t!==null&&xl(n,t,h,k),n.flags|=262144}function Oa(t){for(t=t.firstContext;t!==null;){if(!Zr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oi(t){Ci=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Tr(t){return nf(Ci,t)}function Ra(t,n){return Ci===null&&Oi(t),nf(t,n)}function nf(t,n){var h=n._currentValue;if(n={context:n,memoizedValue:h,next:null},Mn===null){if(t===null)throw Error(y(308));Mn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Mn=Mn.next=n;return h}var fm=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(h,k){t.push(k)}};this.abort=function(){n.aborted=!0,t.forEach(function(h){return h()})}},hm=w.unstable_scheduleCallback,dm=w.unstable_NormalPriority,gr={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sl(){return{controller:new fm,data:new Map,refCount:0}}function Bs(t){t.refCount--,t.refCount===0&&hm(dm,function(){t.controller.abort()})}var Ds=null,El=0,Wi=0,Qi=null;function pm(t,n){if(Ds===null){var h=Ds=[];El=0,Wi=Au(),Qi={status:"pending",value:void 0,then:function(k){h.push(k)}}}return El++,n.then(sf,sf),n}function sf(){if(--El===0&&Ds!==null){Qi!==null&&(Qi.status="fulfilled");var t=Ds;Ds=null,Wi=0,Qi=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function mm(t,n){var h=[],k={status:"pending",value:null,reason:null,then:function(D){h.push(D)}};return t.then(function(){k.status="fulfilled",k.value=n;for(var D=0;D<h.length;D++)(0,h[D])(n)},function(D){for(k.status="rejected",k.reason=D,D=0;D<h.length;D++)(0,h[D])(void 0)}),k}var af=g.S;g.S=function(t,n){qh=Rt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&pm(t,n),af!==null&&af(t,n)};var Ri=j(null);function kl(){var t=Ri.current;return t!==null?t:tr.pooledCache}function ja(t,n){n===null?Y(Ri,Ri.current):Y(Ri,n.pool)}function of(){var t=kl();return t===null?null:{parent:gr._currentValue,pool:t}}var Ji=Error(y(460)),Tl=Error(y(474)),Na=Error(y(542)),za={then:function(){}};function lf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function uf(t,n,h){switch(h=t[h],h===void 0?t.push(n):h!==n&&(n.then($r,$r),n=h),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ff(t),t;default:if(typeof n.status=="string")n.then($r,$r);else{if(t=tr,t!==null&&100<t.shellSuspendCounter)throw Error(y(482));t=n,t.status="pending",t.then(function(k){if(n.status==="pending"){var D=n;D.status="fulfilled",D.value=k}},function(k){if(n.status==="pending"){var D=n;D.status="rejected",D.reason=k}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ff(t),t}throw Ni=n,Ji}}function ji(t){try{var n=t._init;return n(t._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Ni=h,Ji):h}}var Ni=null;function cf(){if(Ni===null)throw Error(y(459));var t=Ni;return Ni=null,t}function ff(t){if(t===Ji||t===Na)throw Error(y(483))}var ts=null,Is=0;function Ba(t){var n=Is;return Is+=1,ts===null&&(ts=[]),uf(ts,t,n)}function Ls(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Da(t,n){throw n.$$typeof===u?Error(y(525)):(t=Object.prototype.toString.call(n),Error(y(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function hf(t){function n(Et,yt){if(t){var At=Et.deletions;At===null?(Et.deletions=[yt],Et.flags|=16):At.push(yt)}}function h(Et,yt){if(!t)return null;for(;yt!==null;)n(Et,yt),yt=yt.sibling;return null}function k(Et){for(var yt=new Map;Et!==null;)Et.key!==null?yt.set(Et.key,Et):yt.set(Et.index,Et),Et=Et.sibling;return yt}function D(Et,yt){return Et=Tn(Et,yt),Et.index=0,Et.sibling=null,Et}function F(Et,yt,At){return Et.index=At,t?(At=Et.alternate,At!==null?(At=At.index,At<yt?(Et.flags|=67108866,yt):At):(Et.flags|=67108866,yt)):(Et.flags|=1048576,yt)}function tt(Et){return t&&Et.alternate===null&&(Et.flags|=67108866),Et}function at(Et,yt,At,Lt){return yt===null||yt.tag!==6?(yt=pl(At,Et.mode,Lt),yt.return=Et,yt):(yt=D(yt,At),yt.return=Et,yt)}function pt(Et,yt,At,Lt){var ce=At.type;return ce===m?It(Et,yt,At.props.children,Lt,At.key):yt!==null&&(yt.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===P&&ji(ce)===yt.type)?(yt=D(yt,At.props),Ls(yt,At),yt.return=Et,yt):(yt=Ma(At.type,At.key,At.props,null,Et.mode,Lt),Ls(yt,At),yt.return=Et,yt)}function Mt(Et,yt,At,Lt){return yt===null||yt.tag!==4||yt.stateNode.containerInfo!==At.containerInfo||yt.stateNode.implementation!==At.implementation?(yt=ml(At,Et.mode,Lt),yt.return=Et,yt):(yt=D(yt,At.children||[]),yt.return=Et,yt)}function It(Et,yt,At,Lt,ce){return yt===null||yt.tag!==7?(yt=Ai(At,Et.mode,Lt,ce),yt.return=Et,yt):(yt=D(yt,At),yt.return=Et,yt)}function Ut(Et,yt,At){if(typeof yt=="string"&&yt!==""||typeof yt=="number"||typeof yt=="bigint")return yt=pl(""+yt,Et.mode,At),yt.return=Et,yt;if(typeof yt=="object"&&yt!==null){switch(yt.$$typeof){case o:return At=Ma(yt.type,yt.key,yt.props,null,Et.mode,At),Ls(At,yt),At.return=Et,At;case p:return yt=ml(yt,Et.mode,At),yt.return=Et,yt;case P:return yt=ji(yt),Ut(Et,yt,At)}if(A(yt)||$(yt))return yt=Ai(yt,Et.mode,At,null),yt.return=Et,yt;if(typeof yt.then=="function")return Ut(Et,Ba(yt),At);if(yt.$$typeof===T)return Ut(Et,Ra(Et,yt),At);Da(Et,yt)}return null}function Ct(Et,yt,At,Lt){var ce=yt!==null?yt.key:null;if(typeof At=="string"&&At!==""||typeof At=="number"||typeof At=="bigint")return ce!==null?null:at(Et,yt,""+At,Lt);if(typeof At=="object"&&At!==null){switch(At.$$typeof){case o:return At.key===ce?pt(Et,yt,At,Lt):null;case p:return At.key===ce?Mt(Et,yt,At,Lt):null;case P:return At=ji(At),Ct(Et,yt,At,Lt)}if(A(At)||$(At))return ce!==null?null:It(Et,yt,At,Lt,null);if(typeof At.then=="function")return Ct(Et,yt,Ba(At),Lt);if(At.$$typeof===T)return Ct(Et,yt,Ra(Et,At),Lt);Da(Et,At)}return null}function jt(Et,yt,At,Lt,ce){if(typeof Lt=="string"&&Lt!==""||typeof Lt=="number"||typeof Lt=="bigint")return Et=Et.get(At)||null,at(yt,Et,""+Lt,ce);if(typeof Lt=="object"&&Lt!==null){switch(Lt.$$typeof){case o:return Et=Et.get(Lt.key===null?At:Lt.key)||null,pt(yt,Et,Lt,ce);case p:return Et=Et.get(Lt.key===null?At:Lt.key)||null,Mt(yt,Et,Lt,ce);case P:return Lt=ji(Lt),jt(Et,yt,At,Lt,ce)}if(A(Lt)||$(Lt))return Et=Et.get(At)||null,It(yt,Et,Lt,ce,null);if(typeof Lt.then=="function")return jt(Et,yt,At,Ba(Lt),ce);if(Lt.$$typeof===T)return jt(Et,yt,At,Ra(yt,Lt),ce);Da(yt,Lt)}return null}function te(Et,yt,At,Lt){for(var ce=null,Ze=null,ne=yt,xe=yt=0,Ne=null;ne!==null&&xe<At.length;xe++){ne.index>xe?(Ne=ne,ne=null):Ne=ne.sibling;var Ve=Ct(Et,ne,At[xe],Lt);if(Ve===null){ne===null&&(ne=Ne);break}t&&ne&&Ve.alternate===null&&n(Et,ne),yt=F(Ve,yt,xe),Ze===null?ce=Ve:Ze.sibling=Ve,Ze=Ve,ne=Ne}if(xe===At.length)return h(Et,ne),De&&An(Et,xe),ce;if(ne===null){for(;xe<At.length;xe++)ne=Ut(Et,At[xe],Lt),ne!==null&&(yt=F(ne,yt,xe),Ze===null?ce=ne:Ze.sibling=ne,Ze=ne);return De&&An(Et,xe),ce}for(ne=k(ne);xe<At.length;xe++)Ne=jt(ne,Et,xe,At[xe],Lt),Ne!==null&&(t&&Ne.alternate!==null&&ne.delete(Ne.key===null?xe:Ne.key),yt=F(Ne,yt,xe),Ze===null?ce=Ne:Ze.sibling=Ne,Ze=Ne);return t&&ne.forEach(function(di){return n(Et,di)}),De&&An(Et,xe),ce}function he(Et,yt,At,Lt){if(At==null)throw Error(y(151));for(var ce=null,Ze=null,ne=yt,xe=yt=0,Ne=null,Ve=At.next();ne!==null&&!Ve.done;xe++,Ve=At.next()){ne.index>xe?(Ne=ne,ne=null):Ne=ne.sibling;var di=Ct(Et,ne,Ve.value,Lt);if(di===null){ne===null&&(ne=Ne);break}t&&ne&&di.alternate===null&&n(Et,ne),yt=F(di,yt,xe),Ze===null?ce=di:Ze.sibling=di,Ze=di,ne=Ne}if(Ve.done)return h(Et,ne),De&&An(Et,xe),ce;if(ne===null){for(;!Ve.done;xe++,Ve=At.next())Ve=Ut(Et,Ve.value,Lt),Ve!==null&&(yt=F(Ve,yt,xe),Ze===null?ce=Ve:Ze.sibling=Ve,Ze=Ve);return De&&An(Et,xe),ce}for(ne=k(ne);!Ve.done;xe++,Ve=At.next())Ve=jt(ne,Et,xe,Ve.value,Lt),Ve!==null&&(t&&Ve.alternate!==null&&ne.delete(Ve.key===null?xe:Ve.key),yt=F(Ve,yt,xe),Ze===null?ce=Ve:Ze.sibling=Ve,Ze=Ve);return t&&ne.forEach(function(T1){return n(Et,T1)}),De&&An(Et,xe),ce}function Qe(Et,yt,At,Lt){if(typeof At=="object"&&At!==null&&At.type===m&&At.key===null&&(At=At.props.children),typeof At=="object"&&At!==null){switch(At.$$typeof){case o:t:{for(var ce=At.key;yt!==null;){if(yt.key===ce){if(ce=At.type,ce===m){if(yt.tag===7){h(Et,yt.sibling),Lt=D(yt,At.props.children),Lt.return=Et,Et=Lt;break t}}else if(yt.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===P&&ji(ce)===yt.type){h(Et,yt.sibling),Lt=D(yt,At.props),Ls(Lt,At),Lt.return=Et,Et=Lt;break t}h(Et,yt);break}else n(Et,yt);yt=yt.sibling}At.type===m?(Lt=Ai(At.props.children,Et.mode,Lt,At.key),Lt.return=Et,Et=Lt):(Lt=Ma(At.type,At.key,At.props,null,Et.mode,Lt),Ls(Lt,At),Lt.return=Et,Et=Lt)}return tt(Et);case p:t:{for(ce=At.key;yt!==null;){if(yt.key===ce)if(yt.tag===4&&yt.stateNode.containerInfo===At.containerInfo&&yt.stateNode.implementation===At.implementation){h(Et,yt.sibling),Lt=D(yt,At.children||[]),Lt.return=Et,Et=Lt;break t}else{h(Et,yt);break}else n(Et,yt);yt=yt.sibling}Lt=ml(At,Et.mode,Lt),Lt.return=Et,Et=Lt}return tt(Et);case P:return At=ji(At),Qe(Et,yt,At,Lt)}if(A(At))return te(Et,yt,At,Lt);if($(At)){if(ce=$(At),typeof ce!="function")throw Error(y(150));return At=ce.call(At),he(Et,yt,At,Lt)}if(typeof At.then=="function")return Qe(Et,yt,Ba(At),Lt);if(At.$$typeof===T)return Qe(Et,yt,Ra(Et,At),Lt);Da(Et,At)}return typeof At=="string"&&At!==""||typeof At=="number"||typeof At=="bigint"?(At=""+At,yt!==null&&yt.tag===6?(h(Et,yt.sibling),Lt=D(yt,At),Lt.return=Et,Et=Lt):(h(Et,yt),Lt=pl(At,Et.mode,Lt),Lt.return=Et,Et=Lt),tt(Et)):h(Et,yt)}return function(Et,yt,At,Lt){try{Is=0;var ce=Qe(Et,yt,At,Lt);return ts=null,ce}catch(ne){if(ne===Ji||ne===Na)throw ne;var Ze=Vr(29,ne,null,Et.mode);return Ze.lanes=Lt,Ze.return=Et,Ze}}}var zi=hf(!0),df=hf(!1),Kn=!1;function Al(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ml(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Wn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(t,n,h){var k=t.updateQueue;if(k===null)return null;if(k=k.shared,(Xe&2)!==0){var D=k.pending;return D===null?n.next=n:(n.next=D.next,D.next=n),k.pending=n,n=Aa(t),Gc(t,null,h),n}return Ta(t,k,n,h),Aa(t)}function Us(t,n,h){if(n=n.updateQueue,n!==null&&(n=n.shared,(h&4194048)!==0)){var k=n.lanes;k&=t.pendingLanes,h|=k,n.lanes=h,me(t,h)}}function Cl(t,n){var h=t.updateQueue,k=t.alternate;if(k!==null&&(k=k.updateQueue,h===k)){var D=null,F=null;if(h=h.firstBaseUpdate,h!==null){do{var tt={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};F===null?D=F=tt:F=F.next=tt,h=h.next}while(h!==null);F===null?D=F=n:F=F.next=n}else D=F=n;h={baseState:k.baseState,firstBaseUpdate:D,lastBaseUpdate:F,shared:k.shared,callbacks:k.callbacks},t.updateQueue=h;return}t=h.lastBaseUpdate,t===null?h.firstBaseUpdate=n:t.next=n,h.lastBaseUpdate=n}var Ol=!1;function Fs(){if(Ol){var t=Qi;if(t!==null)throw t}}function Ps(t,n,h,k){Ol=!1;var D=t.updateQueue;Kn=!1;var F=D.firstBaseUpdate,tt=D.lastBaseUpdate,at=D.shared.pending;if(at!==null){D.shared.pending=null;var pt=at,Mt=pt.next;pt.next=null,tt===null?F=Mt:tt.next=Mt,tt=pt;var It=t.alternate;It!==null&&(It=It.updateQueue,at=It.lastBaseUpdate,at!==tt&&(at===null?It.firstBaseUpdate=Mt:at.next=Mt,It.lastBaseUpdate=pt))}if(F!==null){var Ut=D.baseState;tt=0,It=Mt=pt=null,at=F;do{var Ct=at.lane&-536870913,jt=Ct!==at.lane;if(jt?(je&Ct)===Ct:(k&Ct)===Ct){Ct!==0&&Ct===Wi&&(Ol=!0),It!==null&&(It=It.next={lane:0,tag:at.tag,payload:at.payload,callback:null,next:null});t:{var te=t,he=at;Ct=n;var Qe=h;switch(he.tag){case 1:if(te=he.payload,typeof te=="function"){Ut=te.call(Qe,Ut,Ct);break t}Ut=te;break t;case 3:te.flags=te.flags&-65537|128;case 0:if(te=he.payload,Ct=typeof te=="function"?te.call(Qe,Ut,Ct):te,Ct==null)break t;Ut=c({},Ut,Ct);break t;case 2:Kn=!0}}Ct=at.callback,Ct!==null&&(t.flags|=64,jt&&(t.flags|=8192),jt=D.callbacks,jt===null?D.callbacks=[Ct]:jt.push(Ct))}else jt={lane:Ct,tag:at.tag,payload:at.payload,callback:at.callback,next:null},It===null?(Mt=It=jt,pt=Ut):It=It.next=jt,tt|=Ct;if(at=at.next,at===null){if(at=D.shared.pending,at===null)break;jt=at,at=jt.next,jt.next=null,D.lastBaseUpdate=jt,D.shared.pending=null}}while(!0);It===null&&(pt=Ut),D.baseState=pt,D.firstBaseUpdate=Mt,D.lastBaseUpdate=It,F===null&&(D.shared.lanes=0),ni|=tt,t.lanes=tt,t.memoizedState=Ut}}function pf(t,n){if(typeof t!="function")throw Error(y(191,t));t.call(n)}function mf(t,n){var h=t.callbacks;if(h!==null)for(t.callbacks=null,t=0;t<h.length;t++)pf(h[t],n)}var es=j(null),Ia=j(0);function bf(t,n){t=Ln,Y(Ia,t),Y(es,n),Ln=t|n.baseLanes}function Rl(){Y(Ia,Ln),Y(es,es.current)}function jl(){Ln=Ia.current,B(es),B(Ia)}var Xr=j(null),sn=null;function Jn(t){var n=t.alternate;Y(mr,mr.current&1),Y(Xr,t),sn===null&&(n===null||es.current!==null||n.memoizedState!==null)&&(sn=t)}function Nl(t){Y(mr,mr.current),Y(Xr,t),sn===null&&(sn=t)}function gf(t){t.tag===22?(Y(mr,mr.current),Y(Xr,t),sn===null&&(sn=t)):ti()}function ti(){Y(mr,mr.current),Y(Xr,Xr.current)}function Yr(t){B(Xr),sn===t&&(sn=null),B(mr)}var mr=j(0);function La(t){for(var n=t;n!==null;){if(n.tag===13){var h=n.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Uu(h)||Fu(h)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var On=0,_e=null,Ke=null,yr=null,Ua=!1,rs=!1,Bi=!1,Fa=0,Hs=0,ns=null,bm=0;function fr(){throw Error(y(321))}function zl(t,n){if(n===null)return!1;for(var h=0;h<n.length&&h<t.length;h++)if(!Zr(t[h],n[h]))return!1;return!0}function Bl(t,n,h,k,D,F){return On=F,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,g.H=t===null||t.memoizedState===null?th:Kl,Bi=!1,F=h(k,D),Bi=!1,rs&&(F=vf(n,h,k,D)),yf(t),F}function yf(t){g.H=Zs;var n=Ke!==null&&Ke.next!==null;if(On=0,yr=Ke=_e=null,Ua=!1,Hs=0,ns=null,n)throw Error(y(300));t===null||vr||(t=t.dependencies,t!==null&&Oa(t)&&(vr=!0))}function vf(t,n,h,k){_e=t;var D=0;do{if(rs&&(ns=null),Hs=0,rs=!1,25<=D)throw Error(y(301));if(D+=1,yr=Ke=null,t.updateQueue!=null){var F=t.updateQueue;F.lastEffect=null,F.events=null,F.stores=null,F.memoCache!=null&&(F.memoCache.index=0)}g.H=eh,F=n(h,k)}while(rs);return F}function gm(){var t=g.H,n=t.useState()[0];return n=typeof n.then=="function"?qs(n):n,t=t.useState()[0],(Ke!==null?Ke.memoizedState:null)!==t&&(_e.flags|=1024),n}function Dl(){var t=Fa!==0;return Fa=0,t}function Il(t,n,h){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h}function Ll(t){if(Ua){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Ua=!1}On=0,yr=Ke=_e=null,rs=!1,Hs=Fa=0,ns=null}function Nr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yr===null?_e.memoizedState=yr=t:yr=yr.next=t,yr}function br(){if(Ke===null){var t=_e.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var n=yr===null?_e.memoizedState:yr.next;if(n!==null)yr=n,Ke=t;else{if(t===null)throw _e.alternate===null?Error(y(467)):Error(y(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},yr===null?_e.memoizedState=yr=t:yr=yr.next=t}return yr}function Pa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qs(t){var n=Hs;return Hs+=1,ns===null&&(ns=[]),t=uf(ns,t,n),n=_e,(yr===null?n.memoizedState:yr.next)===null&&(n=n.alternate,g.H=n===null||n.memoizedState===null?th:Kl),t}function Ha(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return qs(t);if(t.$$typeof===T)return Tr(t)}throw Error(y(438,String(t)))}function Ul(t){var n=null,h=_e.updateQueue;if(h!==null&&(n=h.memoCache),n==null){var k=_e.alternate;k!==null&&(k=k.updateQueue,k!==null&&(k=k.memoCache,k!=null&&(n={data:k.data.map(function(D){return D.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),h===null&&(h=Pa(),_e.updateQueue=h),h.memoCache=n,h=n.data[n.index],h===void 0)for(h=n.data[n.index]=Array(t),k=0;k<t;k++)h[k]=V;return n.index++,h}function Rn(t,n){return typeof n=="function"?n(t):n}function qa(t){var n=br();return Fl(n,Ke,t)}function Fl(t,n,h){var k=t.queue;if(k===null)throw Error(y(311));k.lastRenderedReducer=h;var D=t.baseQueue,F=k.pending;if(F!==null){if(D!==null){var tt=D.next;D.next=F.next,F.next=tt}n.baseQueue=D=F,k.pending=null}if(F=t.baseState,D===null)t.memoizedState=F;else{n=D.next;var at=tt=null,pt=null,Mt=n,It=!1;do{var Ut=Mt.lane&-536870913;if(Ut!==Mt.lane?(je&Ut)===Ut:(On&Ut)===Ut){var Ct=Mt.revertLane;if(Ct===0)pt!==null&&(pt=pt.next={lane:0,revertLane:0,gesture:null,action:Mt.action,hasEagerState:Mt.hasEagerState,eagerState:Mt.eagerState,next:null}),Ut===Wi&&(It=!0);else if((On&Ct)===Ct){Mt=Mt.next,Ct===Wi&&(It=!0);continue}else Ut={lane:0,revertLane:Mt.revertLane,gesture:null,action:Mt.action,hasEagerState:Mt.hasEagerState,eagerState:Mt.eagerState,next:null},pt===null?(at=pt=Ut,tt=F):pt=pt.next=Ut,_e.lanes|=Ct,ni|=Ct;Ut=Mt.action,Bi&&h(F,Ut),F=Mt.hasEagerState?Mt.eagerState:h(F,Ut)}else Ct={lane:Ut,revertLane:Mt.revertLane,gesture:Mt.gesture,action:Mt.action,hasEagerState:Mt.hasEagerState,eagerState:Mt.eagerState,next:null},pt===null?(at=pt=Ct,tt=F):pt=pt.next=Ct,_e.lanes|=Ut,ni|=Ut;Mt=Mt.next}while(Mt!==null&&Mt!==n);if(pt===null?tt=F:pt.next=at,!Zr(F,t.memoizedState)&&(vr=!0,It&&(h=Qi,h!==null)))throw h;t.memoizedState=F,t.baseState=tt,t.baseQueue=pt,k.lastRenderedState=F}return D===null&&(k.lanes=0),[t.memoizedState,k.dispatch]}function Pl(t){var n=br(),h=n.queue;if(h===null)throw Error(y(311));h.lastRenderedReducer=t;var k=h.dispatch,D=h.pending,F=n.memoizedState;if(D!==null){h.pending=null;var tt=D=D.next;do F=t(F,tt.action),tt=tt.next;while(tt!==D);Zr(F,n.memoizedState)||(vr=!0),n.memoizedState=F,n.baseQueue===null&&(n.baseState=F),h.lastRenderedState=F}return[F,k]}function wf(t,n,h){var k=_e,D=br(),F=De;if(F){if(h===void 0)throw Error(y(407));h=h()}else h=n();var tt=!Zr((Ke||D).memoizedState,h);if(tt&&(D.memoizedState=h,vr=!0),D=D.queue,$l(Sf.bind(null,k,D,t),[t]),D.getSnapshot!==n||tt||yr!==null&&yr.memoizedState.tag&1){if(k.flags|=2048,is(9,{destroy:void 0},xf.bind(null,k,D,h,n),null),tr===null)throw Error(y(349));F||(On&127)!==0||_f(k,n,h)}return h}function _f(t,n,h){t.flags|=16384,t={getSnapshot:n,value:h},n=_e.updateQueue,n===null?(n=Pa(),_e.updateQueue=n,n.stores=[t]):(h=n.stores,h===null?n.stores=[t]:h.push(t))}function xf(t,n,h,k){n.value=h,n.getSnapshot=k,Ef(n)&&kf(t)}function Sf(t,n,h){return h(function(){Ef(n)&&kf(t)})}function Ef(t){var n=t.getSnapshot;t=t.value;try{var h=n();return!Zr(t,h)}catch{return!0}}function kf(t){var n=Ti(t,2);n!==null&&Hr(n,t,2)}function Hl(t){var n=Nr();if(typeof t=="function"){var h=t;if(t=h(),Bi){Pt(!0);try{h()}finally{Pt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:t},n}function Tf(t,n,h,k){return t.baseState=h,Fl(t,Ke,typeof k=="function"?k:Rn)}function ym(t,n,h,k,D){if(Va(t))throw Error(y(485));if(t=n.action,t!==null){var F={payload:D,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(tt){F.listeners.push(tt)}};g.T!==null?h(!0):F.isTransition=!1,k(F),h=n.pending,h===null?(F.next=n.pending=F,Af(n,F)):(F.next=h.next,n.pending=h.next=F)}}function Af(t,n){var h=n.action,k=n.payload,D=t.state;if(n.isTransition){var F=g.T,tt={};g.T=tt;try{var at=h(D,k),pt=g.S;pt!==null&&pt(tt,at),Mf(t,n,at)}catch(Mt){ql(t,n,Mt)}finally{F!==null&&tt.types!==null&&(F.types=tt.types),g.T=F}}else try{F=h(D,k),Mf(t,n,F)}catch(Mt){ql(t,n,Mt)}}function Mf(t,n,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(k){Cf(t,n,k)},function(k){return ql(t,n,k)}):Cf(t,n,h)}function Cf(t,n,h){n.status="fulfilled",n.value=h,Of(n),t.state=h,n=t.pending,n!==null&&(h=n.next,h===n?t.pending=null:(h=h.next,n.next=h,Af(t,h)))}function ql(t,n,h){var k=t.pending;if(t.pending=null,k!==null){k=k.next;do n.status="rejected",n.reason=h,Of(n),n=n.next;while(n!==k)}t.action=null}function Of(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Rf(t,n){return n}function jf(t,n){if(De){var h=tr.formState;if(h!==null){t:{var k=_e;if(De){if(ir){e:{for(var D=ir,F=nn;D.nodeType!==8;){if(!F){D=null;break e}if(D=an(D.nextSibling),D===null){D=null;break e}}F=D.data,D=F==="F!"||F==="F"?D:null}if(D){ir=an(D.nextSibling),k=D.data==="F!";break t}}Yn(k)}k=!1}k&&(n=h[0])}}return h=Nr(),h.memoizedState=h.baseState=n,k={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rf,lastRenderedState:n},h.queue=k,h=Wf.bind(null,_e,k),k.dispatch=h,k=Hl(!1),F=Gl.bind(null,_e,!1,k.queue),k=Nr(),D={state:n,dispatch:null,action:t,pending:null},k.queue=D,h=ym.bind(null,_e,D,F,h),D.dispatch=h,k.memoizedState=t,[n,h,!1]}function Nf(t){var n=br();return zf(n,Ke,t)}function zf(t,n,h){if(n=Fl(t,n,Rf)[0],t=qa(Rn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var k=qs(n)}catch(tt){throw tt===Ji?Na:tt}else k=n;n=br();var D=n.queue,F=D.dispatch;return h!==n.memoizedState&&(_e.flags|=2048,is(9,{destroy:void 0},vm.bind(null,D,h),null)),[k,F,t]}function vm(t,n){t.action=n}function Bf(t){var n=br(),h=Ke;if(h!==null)return zf(n,h,t);br(),n=n.memoizedState,h=br();var k=h.queue.dispatch;return h.memoizedState=t,[n,k,!1]}function is(t,n,h,k){return t={tag:t,create:h,deps:k,inst:n,next:null},n=_e.updateQueue,n===null&&(n=Pa(),_e.updateQueue=n),h=n.lastEffect,h===null?n.lastEffect=t.next=t:(k=h.next,h.next=t,t.next=k,n.lastEffect=t),t}function Df(){return br().memoizedState}function $a(t,n,h,k){var D=Nr();_e.flags|=t,D.memoizedState=is(1|n,{destroy:void 0},h,k===void 0?null:k)}function Za(t,n,h,k){var D=br();k=k===void 0?null:k;var F=D.memoizedState.inst;Ke!==null&&k!==null&&zl(k,Ke.memoizedState.deps)?D.memoizedState=is(n,F,h,k):(_e.flags|=t,D.memoizedState=is(1|n,F,h,k))}function If(t,n){$a(8390656,8,t,n)}function $l(t,n){Za(2048,8,t,n)}function wm(t){_e.flags|=4;var n=_e.updateQueue;if(n===null)n=Pa(),_e.updateQueue=n,n.events=[t];else{var h=n.events;h===null?n.events=[t]:h.push(t)}}function Lf(t){var n=br().memoizedState;return wm({ref:n,nextImpl:t}),function(){if((Xe&2)!==0)throw Error(y(440));return n.impl.apply(void 0,arguments)}}function Uf(t,n){return Za(4,2,t,n)}function Ff(t,n){return Za(4,4,t,n)}function Pf(t,n){if(typeof n=="function"){t=t();var h=n(t);return function(){typeof h=="function"?h():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Hf(t,n,h){h=h!=null?h.concat([t]):null,Za(4,4,Pf.bind(null,n,t),h)}function Zl(){}function qf(t,n){var h=br();n=n===void 0?null:n;var k=h.memoizedState;return n!==null&&zl(n,k[1])?k[0]:(h.memoizedState=[t,n],t)}function $f(t,n){var h=br();n=n===void 0?null:n;var k=h.memoizedState;if(n!==null&&zl(n,k[1]))return k[0];if(k=t(),Bi){Pt(!0);try{t()}finally{Pt(!1)}}return h.memoizedState=[k,n],k}function Vl(t,n,h){return h===void 0||(On&1073741824)!==0&&(je&261930)===0?t.memoizedState=n:(t.memoizedState=h,t=Zh(),_e.lanes|=t,ni|=t,h)}function Zf(t,n,h,k){return Zr(h,n)?h:es.current!==null?(t=Vl(t,h,k),Zr(t,n)||(vr=!0),t):(On&42)===0||(On&1073741824)!==0&&(je&261930)===0?(vr=!0,t.memoizedState=h):(t=Zh(),_e.lanes|=t,ni|=t,n)}function Vf(t,n,h,k,D){var F=x.p;x.p=F!==0&&8>F?F:8;var tt=g.T,at={};g.T=at,Gl(t,!1,n,h);try{var pt=D(),Mt=g.S;if(Mt!==null&&Mt(at,pt),pt!==null&&typeof pt=="object"&&typeof pt.then=="function"){var It=mm(pt,k);$s(t,n,It,Wr(t))}else $s(t,n,k,Wr(t))}catch(Ut){$s(t,n,{then:function(){},status:"rejected",reason:Ut},Wr())}finally{x.p=F,tt!==null&&at.types!==null&&(tt.types=at.types),g.T=tt}}function _m(){}function Xl(t,n,h,k){if(t.tag!==5)throw Error(y(476));var D=Xf(t).queue;Vf(t,D,n,S,h===null?_m:function(){return Yf(t),h(k)})}function Xf(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:S,baseState:S,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:S},next:null};var h={};return n.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:h},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Yf(t){var n=Xf(t);n.next===null&&(n=t.alternate.memoizedState),$s(t,n.next.queue,{},Wr())}function Yl(){return Tr(oa)}function Gf(){return br().memoizedState}function Kf(){return br().memoizedState}function xm(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var h=Wr();t=Wn(h);var k=Qn(n,t,h);k!==null&&(Hr(k,n,h),Us(k,n,h)),n={cache:Sl()},t.payload=n;return}n=n.return}}function Sm(t,n,h){var k=Wr();h={lane:k,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Va(t)?Qf(n,h):(h=hl(t,n,h,k),h!==null&&(Hr(h,t,k),Jf(h,n,k)))}function Wf(t,n,h){var k=Wr();$s(t,n,h,k)}function $s(t,n,h,k){var D={lane:k,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(Va(t))Qf(n,D);else{var F=t.alternate;if(t.lanes===0&&(F===null||F.lanes===0)&&(F=n.lastRenderedReducer,F!==null))try{var tt=n.lastRenderedState,at=F(tt,h);if(D.hasEagerState=!0,D.eagerState=at,Zr(at,tt))return Ta(t,n,D,0),tr===null&&ka(),!1}catch{}if(h=hl(t,n,D,k),h!==null)return Hr(h,t,k),Jf(h,n,k),!0}return!1}function Gl(t,n,h,k){if(k={lane:2,revertLane:Au(),gesture:null,action:k,hasEagerState:!1,eagerState:null,next:null},Va(t)){if(n)throw Error(y(479))}else n=hl(t,h,k,2),n!==null&&Hr(n,t,2)}function Va(t){var n=t.alternate;return t===_e||n!==null&&n===_e}function Qf(t,n){rs=Ua=!0;var h=t.pending;h===null?n.next=n:(n.next=h.next,h.next=n),t.pending=n}function Jf(t,n,h){if((h&4194048)!==0){var k=n.lanes;k&=t.pendingLanes,h|=k,n.lanes=h,me(t,h)}}var Zs={readContext:Tr,use:Ha,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useLayoutEffect:fr,useInsertionEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useSyncExternalStore:fr,useId:fr,useHostTransitionStatus:fr,useFormState:fr,useActionState:fr,useOptimistic:fr,useMemoCache:fr,useCacheRefresh:fr};Zs.useEffectEvent=fr;var th={readContext:Tr,use:Ha,useCallback:function(t,n){return Nr().memoizedState=[t,n===void 0?null:n],t},useContext:Tr,useEffect:If,useImperativeHandle:function(t,n,h){h=h!=null?h.concat([t]):null,$a(4194308,4,Pf.bind(null,n,t),h)},useLayoutEffect:function(t,n){return $a(4194308,4,t,n)},useInsertionEffect:function(t,n){$a(4,2,t,n)},useMemo:function(t,n){var h=Nr();n=n===void 0?null:n;var k=t();if(Bi){Pt(!0);try{t()}finally{Pt(!1)}}return h.memoizedState=[k,n],k},useReducer:function(t,n,h){var k=Nr();if(h!==void 0){var D=h(n);if(Bi){Pt(!0);try{h(n)}finally{Pt(!1)}}}else D=n;return k.memoizedState=k.baseState=D,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:D},k.queue=t,t=t.dispatch=Sm.bind(null,_e,t),[k.memoizedState,t]},useRef:function(t){var n=Nr();return t={current:t},n.memoizedState=t},useState:function(t){t=Hl(t);var n=t.queue,h=Wf.bind(null,_e,n);return n.dispatch=h,[t.memoizedState,h]},useDebugValue:Zl,useDeferredValue:function(t,n){var h=Nr();return Vl(h,t,n)},useTransition:function(){var t=Hl(!1);return t=Vf.bind(null,_e,t.queue,!0,!1),Nr().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,h){var k=_e,D=Nr();if(De){if(h===void 0)throw Error(y(407));h=h()}else{if(h=n(),tr===null)throw Error(y(349));(je&127)!==0||_f(k,n,h)}D.memoizedState=h;var F={value:h,getSnapshot:n};return D.queue=F,If(Sf.bind(null,k,F,t),[t]),k.flags|=2048,is(9,{destroy:void 0},xf.bind(null,k,F,h,n),null),h},useId:function(){var t=Nr(),n=tr.identifierPrefix;if(De){var h=vn,k=yn;h=(k&~(1<<32-qt(k)-1)).toString(32)+h,n="_"+n+"R_"+h,h=Fa++,0<h&&(n+="H"+h.toString(32)),n+="_"}else h=bm++,n="_"+n+"r_"+h.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Yl,useFormState:jf,useActionState:jf,useOptimistic:function(t){var n=Nr();n.memoizedState=n.baseState=t;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=h,n=Gl.bind(null,_e,!0,h),h.dispatch=n,[t,n]},useMemoCache:Ul,useCacheRefresh:function(){return Nr().memoizedState=xm.bind(null,_e)},useEffectEvent:function(t){var n=Nr(),h={impl:t};return n.memoizedState=h,function(){if((Xe&2)!==0)throw Error(y(440));return h.impl.apply(void 0,arguments)}}},Kl={readContext:Tr,use:Ha,useCallback:qf,useContext:Tr,useEffect:$l,useImperativeHandle:Hf,useInsertionEffect:Uf,useLayoutEffect:Ff,useMemo:$f,useReducer:qa,useRef:Df,useState:function(){return qa(Rn)},useDebugValue:Zl,useDeferredValue:function(t,n){var h=br();return Zf(h,Ke.memoizedState,t,n)},useTransition:function(){var t=qa(Rn)[0],n=br().memoizedState;return[typeof t=="boolean"?t:qs(t),n]},useSyncExternalStore:wf,useId:Gf,useHostTransitionStatus:Yl,useFormState:Nf,useActionState:Nf,useOptimistic:function(t,n){var h=br();return Tf(h,Ke,t,n)},useMemoCache:Ul,useCacheRefresh:Kf};Kl.useEffectEvent=Lf;var eh={readContext:Tr,use:Ha,useCallback:qf,useContext:Tr,useEffect:$l,useImperativeHandle:Hf,useInsertionEffect:Uf,useLayoutEffect:Ff,useMemo:$f,useReducer:Pl,useRef:Df,useState:function(){return Pl(Rn)},useDebugValue:Zl,useDeferredValue:function(t,n){var h=br();return Ke===null?Vl(h,t,n):Zf(h,Ke.memoizedState,t,n)},useTransition:function(){var t=Pl(Rn)[0],n=br().memoizedState;return[typeof t=="boolean"?t:qs(t),n]},useSyncExternalStore:wf,useId:Gf,useHostTransitionStatus:Yl,useFormState:Bf,useActionState:Bf,useOptimistic:function(t,n){var h=br();return Ke!==null?Tf(h,Ke,t,n):(h.baseState=t,[t,h.queue.dispatch])},useMemoCache:Ul,useCacheRefresh:Kf};eh.useEffectEvent=Lf;function Wl(t,n,h,k){n=t.memoizedState,h=h(k,n),h=h==null?n:c({},n,h),t.memoizedState=h,t.lanes===0&&(t.updateQueue.baseState=h)}var Ql={enqueueSetState:function(t,n,h){t=t._reactInternals;var k=Wr(),D=Wn(k);D.payload=n,h!=null&&(D.callback=h),n=Qn(t,D,k),n!==null&&(Hr(n,t,k),Us(n,t,k))},enqueueReplaceState:function(t,n,h){t=t._reactInternals;var k=Wr(),D=Wn(k);D.tag=1,D.payload=n,h!=null&&(D.callback=h),n=Qn(t,D,k),n!==null&&(Hr(n,t,k),Us(n,t,k))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var h=Wr(),k=Wn(h);k.tag=2,n!=null&&(k.callback=n),n=Qn(t,k,h),n!==null&&(Hr(n,t,h),Us(n,t,h))}};function rh(t,n,h,k,D,F,tt){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(k,F,tt):n.prototype&&n.prototype.isPureReactComponent?!Rs(h,k)||!Rs(D,F):!0}function nh(t,n,h,k){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(h,k),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(h,k),n.state!==t&&Ql.enqueueReplaceState(n,n.state,null)}function Di(t,n){var h=n;if("ref"in n){h={};for(var k in n)k!=="ref"&&(h[k]=n[k])}if(t=t.defaultProps){h===n&&(h=c({},h));for(var D in t)h[D]===void 0&&(h[D]=t[D])}return h}function ih(t){Ea(t)}function sh(t){console.error(t)}function ah(t){Ea(t)}function Xa(t,n){try{var h=t.onUncaughtError;h(n.value,{componentStack:n.stack})}catch(k){setTimeout(function(){throw k})}}function oh(t,n,h){try{var k=t.onCaughtError;k(h.value,{componentStack:h.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(D){setTimeout(function(){throw D})}}function Jl(t,n,h){return h=Wn(h),h.tag=3,h.payload={element:null},h.callback=function(){Xa(t,n)},h}function lh(t){return t=Wn(t),t.tag=3,t}function uh(t,n,h,k){var D=h.type.getDerivedStateFromError;if(typeof D=="function"){var F=k.value;t.payload=function(){return D(F)},t.callback=function(){oh(n,h,k)}}var tt=h.stateNode;tt!==null&&typeof tt.componentDidCatch=="function"&&(t.callback=function(){oh(n,h,k),typeof D!="function"&&(ii===null?ii=new Set([this]):ii.add(this));var at=k.stack;this.componentDidCatch(k.value,{componentStack:at!==null?at:""})})}function Em(t,n,h,k,D){if(h.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){if(n=h.alternate,n!==null&&Ki(n,h,D,!0),h=Xr.current,h!==null){switch(h.tag){case 31:case 13:return sn===null?so():h.alternate===null&&hr===0&&(hr=3),h.flags&=-257,h.flags|=65536,h.lanes=D,k===za?h.flags|=16384:(n=h.updateQueue,n===null?h.updateQueue=new Set([k]):n.add(k),Eu(t,k,D)),!1;case 22:return h.flags|=65536,k===za?h.flags|=16384:(n=h.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([k])},h.updateQueue=n):(h=n.retryQueue,h===null?n.retryQueue=new Set([k]):h.add(k)),Eu(t,k,D)),!1}throw Error(y(435,h.tag))}return Eu(t,k,D),so(),!1}if(De)return n=Xr.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=D,k!==yl&&(t=Error(y(422),{cause:k}),zs(tn(t,h)))):(k!==yl&&(n=Error(y(423),{cause:k}),zs(tn(n,h))),t=t.current.alternate,t.flags|=65536,D&=-D,t.lanes|=D,k=tn(k,h),D=Jl(t.stateNode,k,D),Cl(t,D),hr!==4&&(hr=2)),!1;var F=Error(y(520),{cause:k});if(F=tn(F,h),Js===null?Js=[F]:Js.push(F),hr!==4&&(hr=2),n===null)return!0;k=tn(k,h),h=n;do{switch(h.tag){case 3:return h.flags|=65536,t=D&-D,h.lanes|=t,t=Jl(h.stateNode,k,t),Cl(h,t),!1;case 1:if(n=h.type,F=h.stateNode,(h.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(ii===null||!ii.has(F))))return h.flags|=65536,D&=-D,h.lanes|=D,D=lh(D),uh(D,t,h,k),Cl(h,D),!1}h=h.return}while(h!==null);return!1}var tu=Error(y(461)),vr=!1;function Ar(t,n,h,k){n.child=t===null?df(n,null,h,k):zi(n,t.child,h,k)}function ch(t,n,h,k,D){h=h.render;var F=n.ref;if("ref"in k){var tt={};for(var at in k)at!=="ref"&&(tt[at]=k[at])}else tt=k;return Oi(n),k=Bl(t,n,h,tt,F,D),at=Dl(),t!==null&&!vr?(Il(t,n,D),jn(t,n,D)):(De&&at&&bl(n),n.flags|=1,Ar(t,n,k,D),n.child)}function fh(t,n,h,k,D){if(t===null){var F=h.type;return typeof F=="function"&&!dl(F)&&F.defaultProps===void 0&&h.compare===null?(n.tag=15,n.type=F,hh(t,n,F,k,D)):(t=Ma(h.type,null,k,n,n.mode,D),t.ref=n.ref,t.return=n,n.child=t)}if(F=t.child,!lu(t,D)){var tt=F.memoizedProps;if(h=h.compare,h=h!==null?h:Rs,h(tt,k)&&t.ref===n.ref)return jn(t,n,D)}return n.flags|=1,t=Tn(F,k),t.ref=n.ref,t.return=n,n.child=t}function hh(t,n,h,k,D){if(t!==null){var F=t.memoizedProps;if(Rs(F,k)&&t.ref===n.ref)if(vr=!1,n.pendingProps=k=F,lu(t,D))(t.flags&131072)!==0&&(vr=!0);else return n.lanes=t.lanes,jn(t,n,D)}return eu(t,n,h,k,D)}function dh(t,n,h,k){var D=k.children,F=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),k.mode==="hidden"){if((n.flags&128)!==0){if(F=F!==null?F.baseLanes|h:h,t!==null){for(k=n.child=t.child,D=0;k!==null;)D=D|k.lanes|k.childLanes,k=k.sibling;k=D&~F}else k=0,n.child=null;return ph(t,n,F,h,k)}if((h&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&ja(n,F!==null?F.cachePool:null),F!==null?bf(n,F):Rl(),gf(n);else return k=n.lanes=536870912,ph(t,n,F!==null?F.baseLanes|h:h,h,k)}else F!==null?(ja(n,F.cachePool),bf(n,F),ti(),n.memoizedState=null):(t!==null&&ja(n,null),Rl(),ti());return Ar(t,n,D,h),n.child}function Vs(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function ph(t,n,h,k,D){var F=kl();return F=F===null?null:{parent:gr._currentValue,pool:F},n.memoizedState={baseLanes:h,cachePool:F},t!==null&&ja(n,null),Rl(),gf(n),t!==null&&Ki(t,n,k,!0),n.childLanes=D,null}function Ya(t,n){return n=Ka({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function mh(t,n,h){return zi(n,t.child,null,h),t=Ya(n,n.pendingProps),t.flags|=2,Yr(n),n.memoizedState=null,t}function km(t,n,h){var k=n.pendingProps,D=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(De){if(k.mode==="hidden")return t=Ya(n,k),n.lanes=536870912,Vs(null,t);if(Nl(n),(t=ir)?(t=Ad(t,nn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Vn!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},h=Wc(t),h.return=n,n.child=h,kr=n,ir=null)):t=null,t===null)throw Yn(n);return n.lanes=536870912,null}return Ya(n,k)}var F=t.memoizedState;if(F!==null){var tt=F.dehydrated;if(Nl(n),D)if(n.flags&256)n.flags&=-257,n=mh(t,n,h);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(y(558));else if(vr||Ki(t,n,h,!1),D=(h&t.childLanes)!==0,vr||D){if(k=tr,k!==null&&(tt=mt(k,h),tt!==0&&tt!==F.retryLane))throw F.retryLane=tt,Ti(t,tt),Hr(k,t,tt),tu;so(),n=mh(t,n,h)}else t=F.treeContext,ir=an(tt.nextSibling),kr=n,De=!0,Xn=null,nn=!1,t!==null&&tf(n,t),n=Ya(n,k),n.flags|=4096;return n}return t=Tn(t.child,{mode:k.mode,children:k.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Ga(t,n){var h=n.ref;if(h===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(y(284));(t===null||t.ref!==h)&&(n.flags|=4194816)}}function eu(t,n,h,k,D){return Oi(n),h=Bl(t,n,h,k,void 0,D),k=Dl(),t!==null&&!vr?(Il(t,n,D),jn(t,n,D)):(De&&k&&bl(n),n.flags|=1,Ar(t,n,h,D),n.child)}function bh(t,n,h,k,D,F){return Oi(n),n.updateQueue=null,h=vf(n,k,h,D),yf(t),k=Dl(),t!==null&&!vr?(Il(t,n,F),jn(t,n,F)):(De&&k&&bl(n),n.flags|=1,Ar(t,n,h,F),n.child)}function gh(t,n,h,k,D){if(Oi(n),n.stateNode===null){var F=Vi,tt=h.contextType;typeof tt=="object"&&tt!==null&&(F=Tr(tt)),F=new h(k,F),n.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,F.updater=Ql,n.stateNode=F,F._reactInternals=n,F=n.stateNode,F.props=k,F.state=n.memoizedState,F.refs={},Al(n),tt=h.contextType,F.context=typeof tt=="object"&&tt!==null?Tr(tt):Vi,F.state=n.memoizedState,tt=h.getDerivedStateFromProps,typeof tt=="function"&&(Wl(n,h,tt,k),F.state=n.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof F.getSnapshotBeforeUpdate=="function"||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(tt=F.state,typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount(),tt!==F.state&&Ql.enqueueReplaceState(F,F.state,null),Ps(n,k,F,D),Fs(),F.state=n.memoizedState),typeof F.componentDidMount=="function"&&(n.flags|=4194308),k=!0}else if(t===null){F=n.stateNode;var at=n.memoizedProps,pt=Di(h,at);F.props=pt;var Mt=F.context,It=h.contextType;tt=Vi,typeof It=="object"&&It!==null&&(tt=Tr(It));var Ut=h.getDerivedStateFromProps;It=typeof Ut=="function"||typeof F.getSnapshotBeforeUpdate=="function",at=n.pendingProps!==at,It||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(at||Mt!==tt)&&nh(n,F,k,tt),Kn=!1;var Ct=n.memoizedState;F.state=Ct,Ps(n,k,F,D),Fs(),Mt=n.memoizedState,at||Ct!==Mt||Kn?(typeof Ut=="function"&&(Wl(n,h,Ut,k),Mt=n.memoizedState),(pt=Kn||rh(n,h,pt,k,Ct,Mt,tt))?(It||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(n.flags|=4194308)):(typeof F.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=k,n.memoizedState=Mt),F.props=k,F.state=Mt,F.context=tt,k=pt):(typeof F.componentDidMount=="function"&&(n.flags|=4194308),k=!1)}else{F=n.stateNode,Ml(t,n),tt=n.memoizedProps,It=Di(h,tt),F.props=It,Ut=n.pendingProps,Ct=F.context,Mt=h.contextType,pt=Vi,typeof Mt=="object"&&Mt!==null&&(pt=Tr(Mt)),at=h.getDerivedStateFromProps,(Mt=typeof at=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(tt!==Ut||Ct!==pt)&&nh(n,F,k,pt),Kn=!1,Ct=n.memoizedState,F.state=Ct,Ps(n,k,F,D),Fs();var jt=n.memoizedState;tt!==Ut||Ct!==jt||Kn||t!==null&&t.dependencies!==null&&Oa(t.dependencies)?(typeof at=="function"&&(Wl(n,h,at,k),jt=n.memoizedState),(It=Kn||rh(n,h,It,k,Ct,jt,pt)||t!==null&&t.dependencies!==null&&Oa(t.dependencies))?(Mt||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(k,jt,pt),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(k,jt,pt)),typeof F.componentDidUpdate=="function"&&(n.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof F.componentDidUpdate!="function"||tt===t.memoizedProps&&Ct===t.memoizedState||(n.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||tt===t.memoizedProps&&Ct===t.memoizedState||(n.flags|=1024),n.memoizedProps=k,n.memoizedState=jt),F.props=k,F.state=jt,F.context=pt,k=It):(typeof F.componentDidUpdate!="function"||tt===t.memoizedProps&&Ct===t.memoizedState||(n.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||tt===t.memoizedProps&&Ct===t.memoizedState||(n.flags|=1024),k=!1)}return F=k,Ga(t,n),k=(n.flags&128)!==0,F||k?(F=n.stateNode,h=k&&typeof h.getDerivedStateFromError!="function"?null:F.render(),n.flags|=1,t!==null&&k?(n.child=zi(n,t.child,null,D),n.child=zi(n,null,h,D)):Ar(t,n,h,D),n.memoizedState=F.state,t=n.child):t=jn(t,n,D),t}function yh(t,n,h,k){return Mi(),n.flags|=256,Ar(t,n,h,k),n.child}var ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nu(t){return{baseLanes:t,cachePool:of()}}function iu(t,n,h){return t=t!==null?t.childLanes&~h:0,n&&(t|=Kr),t}function vh(t,n,h){var k=n.pendingProps,D=!1,F=(n.flags&128)!==0,tt;if((tt=F)||(tt=t!==null&&t.memoizedState===null?!1:(mr.current&2)!==0),tt&&(D=!0,n.flags&=-129),tt=(n.flags&32)!==0,n.flags&=-33,t===null){if(De){if(D?Jn(n):ti(),(t=ir)?(t=Ad(t,nn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Vn!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},h=Wc(t),h.return=n,n.child=h,kr=n,ir=null)):t=null,t===null)throw Yn(n);return Fu(t)?n.lanes=32:n.lanes=536870912,null}var at=k.children;return k=k.fallback,D?(ti(),D=n.mode,at=Ka({mode:"hidden",children:at},D),k=Ai(k,D,h,null),at.return=n,k.return=n,at.sibling=k,n.child=at,k=n.child,k.memoizedState=nu(h),k.childLanes=iu(t,tt,h),n.memoizedState=ru,Vs(null,k)):(Jn(n),su(n,at))}var pt=t.memoizedState;if(pt!==null&&(at=pt.dehydrated,at!==null)){if(F)n.flags&256?(Jn(n),n.flags&=-257,n=au(t,n,h)):n.memoizedState!==null?(ti(),n.child=t.child,n.flags|=128,n=null):(ti(),at=k.fallback,D=n.mode,k=Ka({mode:"visible",children:k.children},D),at=Ai(at,D,h,null),at.flags|=2,k.return=n,at.return=n,k.sibling=at,n.child=k,zi(n,t.child,null,h),k=n.child,k.memoizedState=nu(h),k.childLanes=iu(t,tt,h),n.memoizedState=ru,n=Vs(null,k));else if(Jn(n),Fu(at)){if(tt=at.nextSibling&&at.nextSibling.dataset,tt)var Mt=tt.dgst;tt=Mt,k=Error(y(419)),k.stack="",k.digest=tt,zs({value:k,source:null,stack:null}),n=au(t,n,h)}else if(vr||Ki(t,n,h,!1),tt=(h&t.childLanes)!==0,vr||tt){if(tt=tr,tt!==null&&(k=mt(tt,h),k!==0&&k!==pt.retryLane))throw pt.retryLane=k,Ti(t,k),Hr(tt,t,k),tu;Uu(at)||so(),n=au(t,n,h)}else Uu(at)?(n.flags|=192,n.child=t.child,n=null):(t=pt.treeContext,ir=an(at.nextSibling),kr=n,De=!0,Xn=null,nn=!1,t!==null&&tf(n,t),n=su(n,k.children),n.flags|=4096);return n}return D?(ti(),at=k.fallback,D=n.mode,pt=t.child,Mt=pt.sibling,k=Tn(pt,{mode:"hidden",children:k.children}),k.subtreeFlags=pt.subtreeFlags&65011712,Mt!==null?at=Tn(Mt,at):(at=Ai(at,D,h,null),at.flags|=2),at.return=n,k.return=n,k.sibling=at,n.child=k,Vs(null,k),k=n.child,at=t.child.memoizedState,at===null?at=nu(h):(D=at.cachePool,D!==null?(pt=gr._currentValue,D=D.parent!==pt?{parent:pt,pool:pt}:D):D=of(),at={baseLanes:at.baseLanes|h,cachePool:D}),k.memoizedState=at,k.childLanes=iu(t,tt,h),n.memoizedState=ru,Vs(t.child,k)):(Jn(n),h=t.child,t=h.sibling,h=Tn(h,{mode:"visible",children:k.children}),h.return=n,h.sibling=null,t!==null&&(tt=n.deletions,tt===null?(n.deletions=[t],n.flags|=16):tt.push(t)),n.child=h,n.memoizedState=null,h)}function su(t,n){return n=Ka({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Ka(t,n){return t=Vr(22,t,null,n),t.lanes=0,t}function au(t,n,h){return zi(n,t.child,null,h),t=su(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function wh(t,n,h){t.lanes|=n;var k=t.alternate;k!==null&&(k.lanes|=n),_l(t.return,n,h)}function ou(t,n,h,k,D,F){var tt=t.memoizedState;tt===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:k,tail:h,tailMode:D,treeForkCount:F}:(tt.isBackwards=n,tt.rendering=null,tt.renderingStartTime=0,tt.last=k,tt.tail=h,tt.tailMode=D,tt.treeForkCount=F)}function _h(t,n,h){var k=n.pendingProps,D=k.revealOrder,F=k.tail;k=k.children;var tt=mr.current,at=(tt&2)!==0;if(at?(tt=tt&1|2,n.flags|=128):tt&=1,Y(mr,tt),Ar(t,n,k,h),k=De?Ns:0,!at&&t!==null&&(t.flags&128)!==0)t:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wh(t,h,n);else if(t.tag===19)wh(t,h,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break t;for(;t.sibling===null;){if(t.return===null||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(D){case"forwards":for(h=n.child,D=null;h!==null;)t=h.alternate,t!==null&&La(t)===null&&(D=h),h=h.sibling;h=D,h===null?(D=n.child,n.child=null):(D=h.sibling,h.sibling=null),ou(n,!1,D,h,F,k);break;case"backwards":case"unstable_legacy-backwards":for(h=null,D=n.child,n.child=null;D!==null;){if(t=D.alternate,t!==null&&La(t)===null){n.child=D;break}t=D.sibling,D.sibling=h,h=D,D=t}ou(n,!0,h,null,F,k);break;case"together":ou(n,!1,null,null,void 0,k);break;default:n.memoizedState=null}return n.child}function jn(t,n,h){if(t!==null&&(n.dependencies=t.dependencies),ni|=n.lanes,(h&n.childLanes)===0)if(t!==null){if(Ki(t,n,h,!1),(h&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(y(153));if(n.child!==null){for(t=n.child,h=Tn(t,t.pendingProps),n.child=h,h.return=n;t.sibling!==null;)t=t.sibling,h=h.sibling=Tn(t,t.pendingProps),h.return=n;h.sibling=null}return n.child}function lu(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Oa(t)))}function Tm(t,n,h){switch(n.tag){case 3:L(n,n.stateNode.containerInfo),Gn(n,gr,t.memoizedState.cache),Mi();break;case 27:case 5:X(n);break;case 4:L(n,n.stateNode.containerInfo);break;case 10:Gn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Nl(n),null;break;case 13:var k=n.memoizedState;if(k!==null)return k.dehydrated!==null?(Jn(n),n.flags|=128,null):(h&n.child.childLanes)!==0?vh(t,n,h):(Jn(n),t=jn(t,n,h),t!==null?t.sibling:null);Jn(n);break;case 19:var D=(t.flags&128)!==0;if(k=(h&n.childLanes)!==0,k||(Ki(t,n,h,!1),k=(h&n.childLanes)!==0),D){if(k)return _h(t,n,h);n.flags|=128}if(D=n.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),Y(mr,mr.current),k)break;return null;case 22:return n.lanes=0,dh(t,n,h,n.pendingProps);case 24:Gn(n,gr,t.memoizedState.cache)}return jn(t,n,h)}function xh(t,n,h){if(t!==null)if(t.memoizedProps!==n.pendingProps)vr=!0;else{if(!lu(t,h)&&(n.flags&128)===0)return vr=!1,Tm(t,n,h);vr=(t.flags&131072)!==0}else vr=!1,De&&(n.flags&1048576)!==0&&Jc(n,Ns,n.index);switch(n.lanes=0,n.tag){case 16:t:{var k=n.pendingProps;if(t=ji(n.elementType),n.type=t,typeof t=="function")dl(t)?(k=Di(t,k),n.tag=1,n=gh(null,n,t,k,h)):(n.tag=0,n=eu(null,n,t,k,h));else{if(t!=null){var D=t.$$typeof;if(D===C){n.tag=11,n=ch(null,n,t,k,h);break t}else if(D===Z){n.tag=14,n=fh(null,n,t,k,h);break t}}throw n=z(t)||t,Error(y(306,n,""))}}return n;case 0:return eu(t,n,n.type,n.pendingProps,h);case 1:return k=n.type,D=Di(k,n.pendingProps),gh(t,n,k,D,h);case 3:t:{if(L(n,n.stateNode.containerInfo),t===null)throw Error(y(387));k=n.pendingProps;var F=n.memoizedState;D=F.element,Ml(t,n),Ps(n,k,null,h);var tt=n.memoizedState;if(k=tt.cache,Gn(n,gr,k),k!==F.cache&&xl(n,[gr],h,!0),Fs(),k=tt.element,F.isDehydrated)if(F={element:k,isDehydrated:!1,cache:tt.cache},n.updateQueue.baseState=F,n.memoizedState=F,n.flags&256){n=yh(t,n,k,h);break t}else if(k!==D){D=tn(Error(y(424)),n),zs(D),n=yh(t,n,k,h);break t}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ir=an(t.firstChild),kr=n,De=!0,Xn=null,nn=!0,h=df(n,null,k,h),n.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Mi(),k===D){n=jn(t,n,h);break t}Ar(t,n,k,h)}n=n.child}return n;case 26:return Ga(t,n),t===null?(h=Nd(n.type,null,n.pendingProps,null))?n.memoizedState=h:De||(h=n.type,t=n.pendingProps,k=ho(U.current).createElement(h),k[Jt]=n,k[Wt]=t,Mr(k,h,t),zt(k),n.stateNode=k):n.memoizedState=Nd(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return X(n),t===null&&De&&(k=n.stateNode=Od(n.type,n.pendingProps,U.current),kr=n,nn=!0,D=ir,li(n.type)?(Pu=D,ir=an(k.firstChild)):ir=D),Ar(t,n,n.pendingProps.children,h),Ga(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&De&&((D=k=ir)&&(k=r1(k,n.type,n.pendingProps,nn),k!==null?(n.stateNode=k,kr=n,ir=an(k.firstChild),nn=!1,D=!0):D=!1),D||Yn(n)),X(n),D=n.type,F=n.pendingProps,tt=t!==null?t.memoizedProps:null,k=F.children,Du(D,F)?k=null:tt!==null&&Du(D,tt)&&(n.flags|=32),n.memoizedState!==null&&(D=Bl(t,n,gm,null,null,h),oa._currentValue=D),Ga(t,n),Ar(t,n,k,h),n.child;case 6:return t===null&&De&&((t=h=ir)&&(h=n1(h,n.pendingProps,nn),h!==null?(n.stateNode=h,kr=n,ir=null,t=!0):t=!1),t||Yn(n)),null;case 13:return vh(t,n,h);case 4:return L(n,n.stateNode.containerInfo),k=n.pendingProps,t===null?n.child=zi(n,null,k,h):Ar(t,n,k,h),n.child;case 11:return ch(t,n,n.type,n.pendingProps,h);case 7:return Ar(t,n,n.pendingProps,h),n.child;case 8:return Ar(t,n,n.pendingProps.children,h),n.child;case 12:return Ar(t,n,n.pendingProps.children,h),n.child;case 10:return k=n.pendingProps,Gn(n,n.type,k.value),Ar(t,n,k.children,h),n.child;case 9:return D=n.type._context,k=n.pendingProps.children,Oi(n),D=Tr(D),k=k(D),n.flags|=1,Ar(t,n,k,h),n.child;case 14:return fh(t,n,n.type,n.pendingProps,h);case 15:return hh(t,n,n.type,n.pendingProps,h);case 19:return _h(t,n,h);case 31:return km(t,n,h);case 22:return dh(t,n,h,n.pendingProps);case 24:return Oi(n),k=Tr(gr),t===null?(D=kl(),D===null&&(D=tr,F=Sl(),D.pooledCache=F,F.refCount++,F!==null&&(D.pooledCacheLanes|=h),D=F),n.memoizedState={parent:k,cache:D},Al(n),Gn(n,gr,D)):((t.lanes&h)!==0&&(Ml(t,n),Ps(n,null,null,h),Fs()),D=t.memoizedState,F=n.memoizedState,D.parent!==k?(D={parent:k,cache:k},n.memoizedState=D,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=D),Gn(n,gr,k)):(k=F.cache,Gn(n,gr,k),k!==D.cache&&xl(n,[gr],h,!0))),Ar(t,n,n.pendingProps.children,h),n.child;case 29:throw n.pendingProps}throw Error(y(156,n.tag))}function Nn(t){t.flags|=4}function uu(t,n,h,k,D){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(D&335544128)===D)if(t.stateNode.complete)t.flags|=8192;else if(Gh())t.flags|=8192;else throw Ni=za,Tl}else t.flags&=-16777217}function Sh(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ld(n))if(Gh())t.flags|=8192;else throw Ni=za,Tl}function Wa(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Te():536870912,t.lanes|=n,ls|=n)}function Xs(t,n){if(!De)switch(t.tailMode){case"hidden":n=t.tail;for(var h=null;n!==null;)n.alternate!==null&&(h=n),n=n.sibling;h===null?t.tail=null:h.sibling=null;break;case"collapsed":h=t.tail;for(var k=null;h!==null;)h.alternate!==null&&(k=h),h=h.sibling;k===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:k.sibling=null}}function sr(t){var n=t.alternate!==null&&t.alternate.child===t.child,h=0,k=0;if(n)for(var D=t.child;D!==null;)h|=D.lanes|D.childLanes,k|=D.subtreeFlags&65011712,k|=D.flags&65011712,D.return=t,D=D.sibling;else for(D=t.child;D!==null;)h|=D.lanes|D.childLanes,k|=D.subtreeFlags,k|=D.flags,D.return=t,D=D.sibling;return t.subtreeFlags|=k,t.childLanes=h,n}function Am(t,n,h){var k=n.pendingProps;switch(gl(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sr(n),null;case 1:return sr(n),null;case 3:return h=n.stateNode,k=null,t!==null&&(k=t.memoizedState.cache),n.memoizedState.cache!==k&&(n.flags|=2048),Cn(gr),N(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(t===null||t.child===null)&&(Gi(n)?Nn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,vl())),sr(n),null;case 26:var D=n.type,F=n.memoizedState;return t===null?(Nn(n),F!==null?(sr(n),Sh(n,F)):(sr(n),uu(n,D,null,k,h))):F?F!==t.memoizedState?(Nn(n),sr(n),Sh(n,F)):(sr(n),n.flags&=-16777217):(t=t.memoizedProps,t!==k&&Nn(n),sr(n),uu(n,D,t,k,h)),null;case 27:if(rt(n),h=U.current,D=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==k&&Nn(n);else{if(!k){if(n.stateNode===null)throw Error(y(166));return sr(n),null}t=K.current,Gi(n)?ef(n):(t=Od(D,k,h),n.stateNode=t,Nn(n))}return sr(n),null;case 5:if(rt(n),D=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==k&&Nn(n);else{if(!k){if(n.stateNode===null)throw Error(y(166));return sr(n),null}if(F=K.current,Gi(n))ef(n);else{var tt=ho(U.current);switch(F){case 1:F=tt.createElementNS("http://www.w3.org/2000/svg",D);break;case 2:F=tt.createElementNS("http://www.w3.org/1998/Math/MathML",D);break;default:switch(D){case"svg":F=tt.createElementNS("http://www.w3.org/2000/svg",D);break;case"math":F=tt.createElementNS("http://www.w3.org/1998/Math/MathML",D);break;case"script":F=tt.createElement("div"),F.innerHTML="<script><\/script>",F=F.removeChild(F.firstChild);break;case"select":F=typeof k.is=="string"?tt.createElement("select",{is:k.is}):tt.createElement("select"),k.multiple?F.multiple=!0:k.size&&(F.size=k.size);break;default:F=typeof k.is=="string"?tt.createElement(D,{is:k.is}):tt.createElement(D)}}F[Jt]=n,F[Wt]=k;t:for(tt=n.child;tt!==null;){if(tt.tag===5||tt.tag===6)F.appendChild(tt.stateNode);else if(tt.tag!==4&&tt.tag!==27&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===n)break t;for(;tt.sibling===null;){if(tt.return===null||tt.return===n)break t;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}n.stateNode=F;t:switch(Mr(F,D,k),D){case"button":case"input":case"select":case"textarea":k=!!k.autoFocus;break t;case"img":k=!0;break t;default:k=!1}k&&Nn(n)}}return sr(n),uu(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,h),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==k&&Nn(n);else{if(typeof k!="string"&&n.stateNode===null)throw Error(y(166));if(t=U.current,Gi(n)){if(t=n.stateNode,h=n.memoizedProps,k=null,D=kr,D!==null)switch(D.tag){case 27:case 5:k=D.memoizedProps}t[Jt]=n,t=!!(t.nodeValue===h||k!==null&&k.suppressHydrationWarning===!0||vd(t.nodeValue,h)),t||Yn(n,!0)}else t=ho(t).createTextNode(k),t[Jt]=n,n.stateNode=t}return sr(n),null;case 31:if(h=n.memoizedState,t===null||t.memoizedState!==null){if(k=Gi(n),h!==null){if(t===null){if(!k)throw Error(y(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(y(557));t[Jt]=n}else Mi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;sr(n),t=!1}else h=vl(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),t=!0;if(!t)return n.flags&256?(Yr(n),n):(Yr(n),null);if((n.flags&128)!==0)throw Error(y(558))}return sr(n),null;case 13:if(k=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(D=Gi(n),k!==null&&k.dehydrated!==null){if(t===null){if(!D)throw Error(y(318));if(D=n.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(y(317));D[Jt]=n}else Mi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;sr(n),D=!1}else D=vl(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=D),D=!0;if(!D)return n.flags&256?(Yr(n),n):(Yr(n),null)}return Yr(n),(n.flags&128)!==0?(n.lanes=h,n):(h=k!==null,t=t!==null&&t.memoizedState!==null,h&&(k=n.child,D=null,k.alternate!==null&&k.alternate.memoizedState!==null&&k.alternate.memoizedState.cachePool!==null&&(D=k.alternate.memoizedState.cachePool.pool),F=null,k.memoizedState!==null&&k.memoizedState.cachePool!==null&&(F=k.memoizedState.cachePool.pool),F!==D&&(k.flags|=2048)),h!==t&&h&&(n.child.flags|=8192),Wa(n,n.updateQueue),sr(n),null);case 4:return N(),t===null&&Ru(n.stateNode.containerInfo),sr(n),null;case 10:return Cn(n.type),sr(n),null;case 19:if(B(mr),k=n.memoizedState,k===null)return sr(n),null;if(D=(n.flags&128)!==0,F=k.rendering,F===null)if(D)Xs(k,!1);else{if(hr!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(F=La(t),F!==null){for(n.flags|=128,Xs(k,!1),t=F.updateQueue,n.updateQueue=t,Wa(n,t),n.subtreeFlags=0,t=h,h=n.child;h!==null;)Kc(h,t),h=h.sibling;return Y(mr,mr.current&1|2),De&&An(n,k.treeForkCount),n.child}t=t.sibling}k.tail!==null&&Rt()>ro&&(n.flags|=128,D=!0,Xs(k,!1),n.lanes=4194304)}else{if(!D)if(t=La(F),t!==null){if(n.flags|=128,D=!0,t=t.updateQueue,n.updateQueue=t,Wa(n,t),Xs(k,!0),k.tail===null&&k.tailMode==="hidden"&&!F.alternate&&!De)return sr(n),null}else 2*Rt()-k.renderingStartTime>ro&&h!==536870912&&(n.flags|=128,D=!0,Xs(k,!1),n.lanes=4194304);k.isBackwards?(F.sibling=n.child,n.child=F):(t=k.last,t!==null?t.sibling=F:n.child=F,k.last=F)}return k.tail!==null?(t=k.tail,k.rendering=t,k.tail=t.sibling,k.renderingStartTime=Rt(),t.sibling=null,h=mr.current,Y(mr,D?h&1|2:h&1),De&&An(n,k.treeForkCount),t):(sr(n),null);case 22:case 23:return Yr(n),jl(),k=n.memoizedState!==null,t!==null?t.memoizedState!==null!==k&&(n.flags|=8192):k&&(n.flags|=8192),k?(h&536870912)!==0&&(n.flags&128)===0&&(sr(n),n.subtreeFlags&6&&(n.flags|=8192)):sr(n),h=n.updateQueue,h!==null&&Wa(n,h.retryQueue),h=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(h=t.memoizedState.cachePool.pool),k=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(k=n.memoizedState.cachePool.pool),k!==h&&(n.flags|=2048),t!==null&&B(Ri),null;case 24:return h=null,t!==null&&(h=t.memoizedState.cache),n.memoizedState.cache!==h&&(n.flags|=2048),Cn(gr),sr(n),null;case 25:return null;case 30:return null}throw Error(y(156,n.tag))}function Mm(t,n){switch(gl(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Cn(gr),N(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return rt(n),null;case 31:if(n.memoizedState!==null){if(Yr(n),n.alternate===null)throw Error(y(340));Mi()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Yr(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Mi()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return B(mr),null;case 4:return N(),null;case 10:return Cn(n.type),null;case 22:case 23:return Yr(n),jl(),t!==null&&B(Ri),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Cn(gr),null;case 25:return null;default:return null}}function Eh(t,n){switch(gl(n),n.tag){case 3:Cn(gr),N();break;case 26:case 27:case 5:rt(n);break;case 4:N();break;case 31:n.memoizedState!==null&&Yr(n);break;case 13:Yr(n);break;case 19:B(mr);break;case 10:Cn(n.type);break;case 22:case 23:Yr(n),jl(),t!==null&&B(Ri);break;case 24:Cn(gr)}}function Ys(t,n){try{var h=n.updateQueue,k=h!==null?h.lastEffect:null;if(k!==null){var D=k.next;h=D;do{if((h.tag&t)===t){k=void 0;var F=h.create,tt=h.inst;k=F(),tt.destroy=k}h=h.next}while(h!==D)}}catch(at){Ge(n,n.return,at)}}function ei(t,n,h){try{var k=n.updateQueue,D=k!==null?k.lastEffect:null;if(D!==null){var F=D.next;k=F;do{if((k.tag&t)===t){var tt=k.inst,at=tt.destroy;if(at!==void 0){tt.destroy=void 0,D=n;var pt=h,Mt=at;try{Mt()}catch(It){Ge(D,pt,It)}}}k=k.next}while(k!==F)}}catch(It){Ge(n,n.return,It)}}function kh(t){var n=t.updateQueue;if(n!==null){var h=t.stateNode;try{mf(n,h)}catch(k){Ge(t,t.return,k)}}}function Th(t,n,h){h.props=Di(t.type,t.memoizedProps),h.state=t.memoizedState;try{h.componentWillUnmount()}catch(k){Ge(t,n,k)}}function Gs(t,n){try{var h=t.ref;if(h!==null){switch(t.tag){case 26:case 27:case 5:var k=t.stateNode;break;case 30:k=t.stateNode;break;default:k=t.stateNode}typeof h=="function"?t.refCleanup=h(k):h.current=k}}catch(D){Ge(t,n,D)}}function wn(t,n){var h=t.ref,k=t.refCleanup;if(h!==null)if(typeof k=="function")try{k()}catch(D){Ge(t,n,D)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(D){Ge(t,n,D)}else h.current=null}function Ah(t){var n=t.type,h=t.memoizedProps,k=t.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":h.autoFocus&&k.focus();break t;case"img":h.src?k.src=h.src:h.srcSet&&(k.srcset=h.srcSet)}}catch(D){Ge(t,t.return,D)}}function cu(t,n,h){try{var k=t.stateNode;Km(k,t.type,h,n),k[Wt]=n}catch(D){Ge(t,t.return,D)}}function Mh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&li(t.type)||t.tag===4}function fu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Mh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&li(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hu(t,n,h){var k=t.tag;if(k===5||k===6)t=t.stateNode,n?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(t,n):(n=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,n.appendChild(t),h=h._reactRootContainer,h!=null||n.onclick!==null||(n.onclick=$r));else if(k!==4&&(k===27&&li(t.type)&&(h=t.stateNode,n=null),t=t.child,t!==null))for(hu(t,n,h),t=t.sibling;t!==null;)hu(t,n,h),t=t.sibling}function Qa(t,n,h){var k=t.tag;if(k===5||k===6)t=t.stateNode,n?h.insertBefore(t,n):h.appendChild(t);else if(k!==4&&(k===27&&li(t.type)&&(h=t.stateNode),t=t.child,t!==null))for(Qa(t,n,h),t=t.sibling;t!==null;)Qa(t,n,h),t=t.sibling}function Ch(t){var n=t.stateNode,h=t.memoizedProps;try{for(var k=t.type,D=n.attributes;D.length;)n.removeAttributeNode(D[0]);Mr(n,k,h),n[Jt]=t,n[Wt]=h}catch(F){Ge(t,t.return,F)}}var zn=!1,wr=!1,du=!1,Oh=typeof WeakSet=="function"?WeakSet:Set,Sr=null;function Cm(t,n){if(t=t.containerInfo,zu=wo,t=Pc(t),al(t)){if("selectionStart"in t)var h={start:t.selectionStart,end:t.selectionEnd};else t:{h=(h=t.ownerDocument)&&h.defaultView||window;var k=h.getSelection&&h.getSelection();if(k&&k.rangeCount!==0){h=k.anchorNode;var D=k.anchorOffset,F=k.focusNode;k=k.focusOffset;try{h.nodeType,F.nodeType}catch{h=null;break t}var tt=0,at=-1,pt=-1,Mt=0,It=0,Ut=t,Ct=null;e:for(;;){for(var jt;Ut!==h||D!==0&&Ut.nodeType!==3||(at=tt+D),Ut!==F||k!==0&&Ut.nodeType!==3||(pt=tt+k),Ut.nodeType===3&&(tt+=Ut.nodeValue.length),(jt=Ut.firstChild)!==null;)Ct=Ut,Ut=jt;for(;;){if(Ut===t)break e;if(Ct===h&&++Mt===D&&(at=tt),Ct===F&&++It===k&&(pt=tt),(jt=Ut.nextSibling)!==null)break;Ut=Ct,Ct=Ut.parentNode}Ut=jt}h=at===-1||pt===-1?null:{start:at,end:pt}}else h=null}h=h||{start:0,end:0}}else h=null;for(Bu={focusedElem:t,selectionRange:h},wo=!1,Sr=n;Sr!==null;)if(n=Sr,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Sr=t;else for(;Sr!==null;){switch(n=Sr,F=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(h=0;h<t.length;h++)D=t[h],D.ref.impl=D.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&F!==null){t=void 0,h=n,D=F.memoizedProps,F=F.memoizedState,k=h.stateNode;try{var te=Di(h.type,D);t=k.getSnapshotBeforeUpdate(te,F),k.__reactInternalSnapshotBeforeUpdate=t}catch(he){Ge(h,h.return,he)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,h=t.nodeType,h===9)Lu(t);else if(h===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(y(163))}if(t=n.sibling,t!==null){t.return=n.return,Sr=t;break}Sr=n.return}}function Rh(t,n,h){var k=h.flags;switch(h.tag){case 0:case 11:case 15:Dn(t,h),k&4&&Ys(5,h);break;case 1:if(Dn(t,h),k&4)if(t=h.stateNode,n===null)try{t.componentDidMount()}catch(tt){Ge(h,h.return,tt)}else{var D=Di(h.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(D,n,t.__reactInternalSnapshotBeforeUpdate)}catch(tt){Ge(h,h.return,tt)}}k&64&&kh(h),k&512&&Gs(h,h.return);break;case 3:if(Dn(t,h),k&64&&(t=h.updateQueue,t!==null)){if(n=null,h.child!==null)switch(h.child.tag){case 27:case 5:n=h.child.stateNode;break;case 1:n=h.child.stateNode}try{mf(t,n)}catch(tt){Ge(h,h.return,tt)}}break;case 27:n===null&&k&4&&Ch(h);case 26:case 5:Dn(t,h),n===null&&k&4&&Ah(h),k&512&&Gs(h,h.return);break;case 12:Dn(t,h);break;case 31:Dn(t,h),k&4&&zh(t,h);break;case 13:Dn(t,h),k&4&&Bh(t,h),k&64&&(t=h.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(h=Lm.bind(null,h),i1(t,h))));break;case 22:if(k=h.memoizedState!==null||zn,!k){n=n!==null&&n.memoizedState!==null||wr,D=zn;var F=wr;zn=k,(wr=n)&&!F?In(t,h,(h.subtreeFlags&8772)!==0):Dn(t,h),zn=D,wr=F}break;case 30:break;default:Dn(t,h)}}function jh(t){var n=t.alternate;n!==null&&(t.alternate=null,jh(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&lr(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ar=null,Lr=!1;function Bn(t,n,h){for(h=h.child;h!==null;)Nh(t,n,h),h=h.sibling}function Nh(t,n,h){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(wt,h)}catch{}switch(h.tag){case 26:wr||wn(h,n),Bn(t,n,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:wr||wn(h,n);var k=ar,D=Lr;li(h.type)&&(ar=h.stateNode,Lr=!1),Bn(t,n,h),ia(h.stateNode),ar=k,Lr=D;break;case 5:wr||wn(h,n);case 6:if(k=ar,D=Lr,ar=null,Bn(t,n,h),ar=k,Lr=D,ar!==null)if(Lr)try{(ar.nodeType===9?ar.body:ar.nodeName==="HTML"?ar.ownerDocument.body:ar).removeChild(h.stateNode)}catch(F){Ge(h,n,F)}else try{ar.removeChild(h.stateNode)}catch(F){Ge(h,n,F)}break;case 18:ar!==null&&(Lr?(t=ar,kd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,h.stateNode),bs(t)):kd(ar,h.stateNode));break;case 4:k=ar,D=Lr,ar=h.stateNode.containerInfo,Lr=!0,Bn(t,n,h),ar=k,Lr=D;break;case 0:case 11:case 14:case 15:ei(2,h,n),wr||ei(4,h,n),Bn(t,n,h);break;case 1:wr||(wn(h,n),k=h.stateNode,typeof k.componentWillUnmount=="function"&&Th(h,n,k)),Bn(t,n,h);break;case 21:Bn(t,n,h);break;case 22:wr=(k=wr)||h.memoizedState!==null,Bn(t,n,h),wr=k;break;default:Bn(t,n,h)}}function zh(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{bs(t)}catch(h){Ge(n,n.return,h)}}}function Bh(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{bs(t)}catch(h){Ge(n,n.return,h)}}function Om(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Oh),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Oh),n;default:throw Error(y(435,t.tag))}}function Ja(t,n){var h=Om(t);n.forEach(function(k){if(!h.has(k)){h.add(k);var D=Um.bind(null,t,k);k.then(D,D)}})}function Ur(t,n){var h=n.deletions;if(h!==null)for(var k=0;k<h.length;k++){var D=h[k],F=t,tt=n,at=tt;t:for(;at!==null;){switch(at.tag){case 27:if(li(at.type)){ar=at.stateNode,Lr=!1;break t}break;case 5:ar=at.stateNode,Lr=!1;break t;case 3:case 4:ar=at.stateNode.containerInfo,Lr=!0;break t}at=at.return}if(ar===null)throw Error(y(160));Nh(F,tt,D),ar=null,Lr=!1,F=D.alternate,F!==null&&(F.return=null),D.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Dh(n,t),n=n.sibling}var hn=null;function Dh(t,n){var h=t.alternate,k=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ur(n,t),Fr(t),k&4&&(ei(3,t,t.return),Ys(3,t),ei(5,t,t.return));break;case 1:Ur(n,t),Fr(t),k&512&&(wr||h===null||wn(h,h.return)),k&64&&zn&&(t=t.updateQueue,t!==null&&(k=t.callbacks,k!==null&&(h=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=h===null?k:h.concat(k))));break;case 26:var D=hn;if(Ur(n,t),Fr(t),k&512&&(wr||h===null||wn(h,h.return)),k&4){var F=h!==null?h.memoizedState:null;if(k=t.memoizedState,h===null)if(k===null)if(t.stateNode===null){t:{k=t.type,h=t.memoizedProps,D=D.ownerDocument||D;e:switch(k){case"title":F=D.getElementsByTagName("title")[0],(!F||F[qe]||F[Jt]||F.namespaceURI==="http://www.w3.org/2000/svg"||F.hasAttribute("itemprop"))&&(F=D.createElement(k),D.head.insertBefore(F,D.querySelector("head > title"))),Mr(F,k,h),F[Jt]=t,zt(F),k=F;break t;case"link":var tt=Dd("link","href",D).get(k+(h.href||""));if(tt){for(var at=0;at<tt.length;at++)if(F=tt[at],F.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&F.getAttribute("rel")===(h.rel==null?null:h.rel)&&F.getAttribute("title")===(h.title==null?null:h.title)&&F.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){tt.splice(at,1);break e}}F=D.createElement(k),Mr(F,k,h),D.head.appendChild(F);break;case"meta":if(tt=Dd("meta","content",D).get(k+(h.content||""))){for(at=0;at<tt.length;at++)if(F=tt[at],F.getAttribute("content")===(h.content==null?null:""+h.content)&&F.getAttribute("name")===(h.name==null?null:h.name)&&F.getAttribute("property")===(h.property==null?null:h.property)&&F.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&F.getAttribute("charset")===(h.charSet==null?null:h.charSet)){tt.splice(at,1);break e}}F=D.createElement(k),Mr(F,k,h),D.head.appendChild(F);break;default:throw Error(y(468,k))}F[Jt]=t,zt(F),k=F}t.stateNode=k}else Id(D,t.type,t.stateNode);else t.stateNode=Bd(D,k,t.memoizedProps);else F!==k?(F===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):F.count--,k===null?Id(D,t.type,t.stateNode):Bd(D,k,t.memoizedProps)):k===null&&t.stateNode!==null&&cu(t,t.memoizedProps,h.memoizedProps)}break;case 27:Ur(n,t),Fr(t),k&512&&(wr||h===null||wn(h,h.return)),h!==null&&k&4&&cu(t,t.memoizedProps,h.memoizedProps);break;case 5:if(Ur(n,t),Fr(t),k&512&&(wr||h===null||wn(h,h.return)),t.flags&32){D=t.stateNode;try{Or(D,"")}catch(te){Ge(t,t.return,te)}}k&4&&t.stateNode!=null&&(D=t.memoizedProps,cu(t,D,h!==null?h.memoizedProps:D)),k&1024&&(du=!0);break;case 6:if(Ur(n,t),Fr(t),k&4){if(t.stateNode===null)throw Error(y(162));k=t.memoizedProps,h=t.stateNode;try{h.nodeValue=k}catch(te){Ge(t,t.return,te)}}break;case 3:if(bo=null,D=hn,hn=po(n.containerInfo),Ur(n,t),hn=D,Fr(t),k&4&&h!==null&&h.memoizedState.isDehydrated)try{bs(n.containerInfo)}catch(te){Ge(t,t.return,te)}du&&(du=!1,Ih(t));break;case 4:k=hn,hn=po(t.stateNode.containerInfo),Ur(n,t),Fr(t),hn=k;break;case 12:Ur(n,t),Fr(t);break;case 31:Ur(n,t),Fr(t),k&4&&(k=t.updateQueue,k!==null&&(t.updateQueue=null,Ja(t,k)));break;case 13:Ur(n,t),Fr(t),t.child.flags&8192&&t.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(eo=Rt()),k&4&&(k=t.updateQueue,k!==null&&(t.updateQueue=null,Ja(t,k)));break;case 22:D=t.memoizedState!==null;var pt=h!==null&&h.memoizedState!==null,Mt=zn,It=wr;if(zn=Mt||D,wr=It||pt,Ur(n,t),wr=It,zn=Mt,Fr(t),k&8192)t:for(n=t.stateNode,n._visibility=D?n._visibility&-2:n._visibility|1,D&&(h===null||pt||zn||wr||Ii(t)),h=null,n=t;;){if(n.tag===5||n.tag===26){if(h===null){pt=h=n;try{if(F=pt.stateNode,D)tt=F.style,typeof tt.setProperty=="function"?tt.setProperty("display","none","important"):tt.display="none";else{at=pt.stateNode;var Ut=pt.memoizedProps.style,Ct=Ut!=null&&Ut.hasOwnProperty("display")?Ut.display:null;at.style.display=Ct==null||typeof Ct=="boolean"?"":(""+Ct).trim()}}catch(te){Ge(pt,pt.return,te)}}}else if(n.tag===6){if(h===null){pt=n;try{pt.stateNode.nodeValue=D?"":pt.memoizedProps}catch(te){Ge(pt,pt.return,te)}}}else if(n.tag===18){if(h===null){pt=n;try{var jt=pt.stateNode;D?Td(jt,!0):Td(pt.stateNode,!1)}catch(te){Ge(pt,pt.return,te)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break t;for(;n.sibling===null;){if(n.return===null||n.return===t)break t;h===n&&(h=null),n=n.return}h===n&&(h=null),n.sibling.return=n.return,n=n.sibling}k&4&&(k=t.updateQueue,k!==null&&(h=k.retryQueue,h!==null&&(k.retryQueue=null,Ja(t,h))));break;case 19:Ur(n,t),Fr(t),k&4&&(k=t.updateQueue,k!==null&&(t.updateQueue=null,Ja(t,k)));break;case 30:break;case 21:break;default:Ur(n,t),Fr(t)}}function Fr(t){var n=t.flags;if(n&2){try{for(var h,k=t.return;k!==null;){if(Mh(k)){h=k;break}k=k.return}if(h==null)throw Error(y(160));switch(h.tag){case 27:var D=h.stateNode,F=fu(t);Qa(t,F,D);break;case 5:var tt=h.stateNode;h.flags&32&&(Or(tt,""),h.flags&=-33);var at=fu(t);Qa(t,at,tt);break;case 3:case 4:var pt=h.stateNode.containerInfo,Mt=fu(t);hu(t,Mt,pt);break;default:throw Error(y(161))}}catch(It){Ge(t,t.return,It)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Ih(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Ih(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Dn(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Rh(t,n.alternate,n),n=n.sibling}function Ii(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ei(4,n,n.return),Ii(n);break;case 1:wn(n,n.return);var h=n.stateNode;typeof h.componentWillUnmount=="function"&&Th(n,n.return,h),Ii(n);break;case 27:ia(n.stateNode);case 26:case 5:wn(n,n.return),Ii(n);break;case 22:n.memoizedState===null&&Ii(n);break;case 30:Ii(n);break;default:Ii(n)}t=t.sibling}}function In(t,n,h){for(h=h&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var k=n.alternate,D=t,F=n,tt=F.flags;switch(F.tag){case 0:case 11:case 15:In(D,F,h),Ys(4,F);break;case 1:if(In(D,F,h),k=F,D=k.stateNode,typeof D.componentDidMount=="function")try{D.componentDidMount()}catch(Mt){Ge(k,k.return,Mt)}if(k=F,D=k.updateQueue,D!==null){var at=k.stateNode;try{var pt=D.shared.hiddenCallbacks;if(pt!==null)for(D.shared.hiddenCallbacks=null,D=0;D<pt.length;D++)pf(pt[D],at)}catch(Mt){Ge(k,k.return,Mt)}}h&&tt&64&&kh(F),Gs(F,F.return);break;case 27:Ch(F);case 26:case 5:In(D,F,h),h&&k===null&&tt&4&&Ah(F),Gs(F,F.return);break;case 12:In(D,F,h);break;case 31:In(D,F,h),h&&tt&4&&zh(D,F);break;case 13:In(D,F,h),h&&tt&4&&Bh(D,F);break;case 22:F.memoizedState===null&&In(D,F,h),Gs(F,F.return);break;case 30:break;default:In(D,F,h)}n=n.sibling}}function pu(t,n){var h=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(h=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==h&&(t!=null&&t.refCount++,h!=null&&Bs(h))}function mu(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Bs(t))}function dn(t,n,h,k){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Lh(t,n,h,k),n=n.sibling}function Lh(t,n,h,k){var D=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n,h,k),D&2048&&Ys(9,n);break;case 1:dn(t,n,h,k);break;case 3:dn(t,n,h,k),D&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Bs(t)));break;case 12:if(D&2048){dn(t,n,h,k),t=n.stateNode;try{var F=n.memoizedProps,tt=F.id,at=F.onPostCommit;typeof at=="function"&&at(tt,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(pt){Ge(n,n.return,pt)}}else dn(t,n,h,k);break;case 31:dn(t,n,h,k);break;case 13:dn(t,n,h,k);break;case 23:break;case 22:F=n.stateNode,tt=n.alternate,n.memoizedState!==null?F._visibility&2?dn(t,n,h,k):Ks(t,n):F._visibility&2?dn(t,n,h,k):(F._visibility|=2,ss(t,n,h,k,(n.subtreeFlags&10256)!==0||!1)),D&2048&&pu(tt,n);break;case 24:dn(t,n,h,k),D&2048&&mu(n.alternate,n);break;default:dn(t,n,h,k)}}function ss(t,n,h,k,D){for(D=D&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var F=t,tt=n,at=h,pt=k,Mt=tt.flags;switch(tt.tag){case 0:case 11:case 15:ss(F,tt,at,pt,D),Ys(8,tt);break;case 23:break;case 22:var It=tt.stateNode;tt.memoizedState!==null?It._visibility&2?ss(F,tt,at,pt,D):Ks(F,tt):(It._visibility|=2,ss(F,tt,at,pt,D)),D&&Mt&2048&&pu(tt.alternate,tt);break;case 24:ss(F,tt,at,pt,D),D&&Mt&2048&&mu(tt.alternate,tt);break;default:ss(F,tt,at,pt,D)}n=n.sibling}}function Ks(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var h=t,k=n,D=k.flags;switch(k.tag){case 22:Ks(h,k),D&2048&&pu(k.alternate,k);break;case 24:Ks(h,k),D&2048&&mu(k.alternate,k);break;default:Ks(h,k)}n=n.sibling}}var Ws=8192;function as(t,n,h){if(t.subtreeFlags&Ws)for(t=t.child;t!==null;)Uh(t,n,h),t=t.sibling}function Uh(t,n,h){switch(t.tag){case 26:as(t,n,h),t.flags&Ws&&t.memoizedState!==null&&b1(h,hn,t.memoizedState,t.memoizedProps);break;case 5:as(t,n,h);break;case 3:case 4:var k=hn;hn=po(t.stateNode.containerInfo),as(t,n,h),hn=k;break;case 22:t.memoizedState===null&&(k=t.alternate,k!==null&&k.memoizedState!==null?(k=Ws,Ws=16777216,as(t,n,h),Ws=k):as(t,n,h));break;default:as(t,n,h)}}function Fh(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Qs(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var h=0;h<n.length;h++){var k=n[h];Sr=k,Hh(k,t)}Fh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ph(t),t=t.sibling}function Ph(t){switch(t.tag){case 0:case 11:case 15:Qs(t),t.flags&2048&&ei(9,t,t.return);break;case 3:Qs(t);break;case 12:Qs(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,to(t)):Qs(t);break;default:Qs(t)}}function to(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var h=0;h<n.length;h++){var k=n[h];Sr=k,Hh(k,t)}Fh(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ei(8,n,n.return),to(n);break;case 22:h=n.stateNode,h._visibility&2&&(h._visibility&=-3,to(n));break;default:to(n)}t=t.sibling}}function Hh(t,n){for(;Sr!==null;){var h=Sr;switch(h.tag){case 0:case 11:case 15:ei(8,h,n);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var k=h.memoizedState.cachePool.pool;k!=null&&k.refCount++}break;case 24:Bs(h.memoizedState.cache)}if(k=h.child,k!==null)k.return=h,Sr=k;else t:for(h=t;Sr!==null;){k=Sr;var D=k.sibling,F=k.return;if(jh(k),k===h){Sr=null;break t}if(D!==null){D.return=F,Sr=D;break t}Sr=F}}}var Rm={getCacheForType:function(t){var n=Tr(gr),h=n.data.get(t);return h===void 0&&(h=t(),n.data.set(t,h)),h},cacheSignal:function(){return Tr(gr).controller.signal}},jm=typeof WeakMap=="function"?WeakMap:Map,Xe=0,tr=null,Ce=null,je=0,Ye=0,Gr=null,ri=!1,os=!1,bu=!1,Ln=0,hr=0,ni=0,Li=0,gu=0,Kr=0,ls=0,Js=null,Pr=null,yu=!1,eo=0,qh=0,ro=1/0,no=null,ii=null,xr=0,si=null,us=null,Un=0,vu=0,wu=null,$h=null,ta=0,_u=null;function Wr(){return(Xe&2)!==0&&je!==0?je&-je:g.T!==null?Au():Gt()}function Zh(){if(Kr===0)if((je&536870912)===0||De){var t=ke;ke<<=1,(ke&3932160)===0&&(ke=262144),Kr=t}else Kr=536870912;return t=Xr.current,t!==null&&(t.flags|=32),Kr}function Hr(t,n,h){(t===tr&&(Ye===2||Ye===9)||t.cancelPendingCommit!==null)&&(cs(t,0),ai(t,je,Kr,!1)),le(t,h),((Xe&2)===0||t!==tr)&&(t===tr&&((Xe&2)===0&&(Li|=h),hr===4&&ai(t,je,Kr,!1)),_n(t))}function Vh(t,n,h){if((Xe&6)!==0)throw Error(y(327));var k=!h&&(n&127)===0&&(n&t.expiredLanes)===0||Se(t,n),D=k?Bm(t,n):Su(t,n,!0),F=k;do{if(D===0){os&&!k&&ai(t,n,0,!1);break}else{if(h=t.current.alternate,F&&!Nm(h)){D=Su(t,n,!1),F=!1;continue}if(D===2){if(F=n,t.errorRecoveryDisabledLanes&F)var tt=0;else tt=t.pendingLanes&-536870913,tt=tt!==0?tt:tt&536870912?536870912:0;if(tt!==0){n=tt;t:{var at=t;D=Js;var pt=at.current.memoizedState.isDehydrated;if(pt&&(cs(at,tt).flags|=256),tt=Su(at,tt,!1),tt!==2){if(bu&&!pt){at.errorRecoveryDisabledLanes|=F,Li|=F,D=4;break t}F=Pr,Pr=D,F!==null&&(Pr===null?Pr=F:Pr.push.apply(Pr,F))}D=tt}if(F=!1,D!==2)continue}}if(D===1){cs(t,0),ai(t,n,0,!0);break}t:{switch(k=t,F=D,F){case 0:case 1:throw Error(y(345));case 4:if((n&4194048)!==n)break;case 6:ai(k,n,Kr,!ri);break t;case 2:Pr=null;break;case 3:case 5:break;default:throw Error(y(329))}if((n&62914560)===n&&(D=eo+300-Rt(),10<D)){if(ai(k,n,Kr,!ri),Pe(k,0,!0)!==0)break t;Un=n,k.timeoutHandle=Sd(Xh.bind(null,k,h,Pr,no,yu,n,Kr,Li,ls,ri,F,"Throttled",-0,0),D);break t}Xh(k,h,Pr,no,yu,n,Kr,Li,ls,ri,F,null,-0,0)}}break}while(!0);_n(t)}function Xh(t,n,h,k,D,F,tt,at,pt,Mt,It,Ut,Ct,jt){if(t.timeoutHandle=-1,Ut=n.subtreeFlags,Ut&8192||(Ut&16785408)===16785408){Ut={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$r},Uh(n,F,Ut);var te=(F&62914560)===F?eo-Rt():(F&4194048)===F?qh-Rt():0;if(te=g1(Ut,te),te!==null){Un=F,t.cancelPendingCommit=te(ed.bind(null,t,n,F,h,k,D,tt,at,pt,It,Ut,null,Ct,jt)),ai(t,F,tt,!Mt);return}}ed(t,n,F,h,k,D,tt,at,pt)}function Nm(t){for(var n=t;;){var h=n.tag;if((h===0||h===11||h===15)&&n.flags&16384&&(h=n.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var k=0;k<h.length;k++){var D=h[k],F=D.getSnapshot;D=D.value;try{if(!Zr(F(),D))return!1}catch{return!1}}if(h=n.child,n.subtreeFlags&16384&&h!==null)h.return=n,n=h;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ai(t,n,h,k){n&=~gu,n&=~Li,t.suspendedLanes|=n,t.pingedLanes&=~n,k&&(t.warmLanes|=n),k=t.expirationTimes;for(var D=n;0<D;){var F=31-qt(D),tt=1<<F;k[F]=-1,D&=~tt}h!==0&&$e(t,h,n)}function io(){return(Xe&6)===0?(ea(0),!1):!0}function xu(){if(Ce!==null){if(Ye===0)var t=Ce.return;else t=Ce,Mn=Ci=null,Ll(t),ts=null,Is=0,t=Ce;for(;t!==null;)Eh(t.alternate,t),t=t.return;Ce=null}}function cs(t,n){var h=t.timeoutHandle;h!==-1&&(t.timeoutHandle=-1,Jm(h)),h=t.cancelPendingCommit,h!==null&&(t.cancelPendingCommit=null,h()),Un=0,xu(),tr=t,Ce=h=Tn(t.current,null),je=n,Ye=0,Gr=null,ri=!1,os=Se(t,n),bu=!1,ls=Kr=gu=Li=ni=hr=0,Pr=Js=null,yu=!1,(n&8)!==0&&(n|=n&32);var k=t.entangledLanes;if(k!==0)for(t=t.entanglements,k&=n;0<k;){var D=31-qt(k),F=1<<D;n|=t[D],k&=~F}return Ln=n,ka(),h}function Yh(t,n){_e=null,g.H=Zs,n===Ji||n===Na?(n=cf(),Ye=3):n===Tl?(n=cf(),Ye=4):Ye=n===tu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Gr=n,Ce===null&&(hr=1,Xa(t,tn(n,t.current)))}function Gh(){var t=Xr.current;return t===null?!0:(je&4194048)===je?sn===null:(je&62914560)===je||(je&536870912)!==0?t===sn:!1}function Kh(){var t=g.H;return g.H=Zs,t===null?Zs:t}function Wh(){var t=g.A;return g.A=Rm,t}function so(){hr=4,ri||(je&4194048)!==je&&Xr.current!==null||(os=!0),(ni&134217727)===0&&(Li&134217727)===0||tr===null||ai(tr,je,Kr,!1)}function Su(t,n,h){var k=Xe;Xe|=2;var D=Kh(),F=Wh();(tr!==t||je!==n)&&(no=null,cs(t,n)),n=!1;var tt=hr;t:do try{if(Ye!==0&&Ce!==null){var at=Ce,pt=Gr;switch(Ye){case 8:xu(),tt=6;break t;case 3:case 2:case 9:case 6:Xr.current===null&&(n=!0);var Mt=Ye;if(Ye=0,Gr=null,fs(t,at,pt,Mt),h&&os){tt=0;break t}break;default:Mt=Ye,Ye=0,Gr=null,fs(t,at,pt,Mt)}}zm(),tt=hr;break}catch(It){Yh(t,It)}while(!0);return n&&t.shellSuspendCounter++,Mn=Ci=null,Xe=k,g.H=D,g.A=F,Ce===null&&(tr=null,je=0,ka()),tt}function zm(){for(;Ce!==null;)Qh(Ce)}function Bm(t,n){var h=Xe;Xe|=2;var k=Kh(),D=Wh();tr!==t||je!==n?(no=null,ro=Rt()+500,cs(t,n)):os=Se(t,n);t:do try{if(Ye!==0&&Ce!==null){n=Ce;var F=Gr;e:switch(Ye){case 1:Ye=0,Gr=null,fs(t,n,F,1);break;case 2:case 9:if(lf(F)){Ye=0,Gr=null,Jh(n);break}n=function(){Ye!==2&&Ye!==9||tr!==t||(Ye=7),_n(t)},F.then(n,n);break t;case 3:Ye=7;break t;case 4:Ye=5;break t;case 7:lf(F)?(Ye=0,Gr=null,Jh(n)):(Ye=0,Gr=null,fs(t,n,F,7));break;case 5:var tt=null;switch(Ce.tag){case 26:tt=Ce.memoizedState;case 5:case 27:var at=Ce;if(tt?Ld(tt):at.stateNode.complete){Ye=0,Gr=null;var pt=at.sibling;if(pt!==null)Ce=pt;else{var Mt=at.return;Mt!==null?(Ce=Mt,ao(Mt)):Ce=null}break e}}Ye=0,Gr=null,fs(t,n,F,5);break;case 6:Ye=0,Gr=null,fs(t,n,F,6);break;case 8:xu(),hr=6;break t;default:throw Error(y(462))}}Dm();break}catch(It){Yh(t,It)}while(!0);return Mn=Ci=null,g.H=k,g.A=D,Xe=h,Ce!==null?0:(tr=null,je=0,ka(),hr)}function Dm(){for(;Ce!==null&&!St();)Qh(Ce)}function Qh(t){var n=xh(t.alternate,t,Ln);t.memoizedProps=t.pendingProps,n===null?ao(t):Ce=n}function Jh(t){var n=t,h=n.alternate;switch(n.tag){case 15:case 0:n=bh(h,n,n.pendingProps,n.type,void 0,je);break;case 11:n=bh(h,n,n.pendingProps,n.type.render,n.ref,je);break;case 5:Ll(n);default:Eh(h,n),n=Ce=Kc(n,Ln),n=xh(h,n,Ln)}t.memoizedProps=t.pendingProps,n===null?ao(t):Ce=n}function fs(t,n,h,k){Mn=Ci=null,Ll(n),ts=null,Is=0;var D=n.return;try{if(Em(t,D,n,h,je)){hr=1,Xa(t,tn(h,t.current)),Ce=null;return}}catch(F){if(D!==null)throw Ce=D,F;hr=1,Xa(t,tn(h,t.current)),Ce=null;return}n.flags&32768?(De||k===1?t=!0:os||(je&536870912)!==0?t=!1:(ri=t=!0,(k===2||k===9||k===3||k===6)&&(k=Xr.current,k!==null&&k.tag===13&&(k.flags|=16384))),td(n,t)):ao(n)}function ao(t){var n=t;do{if((n.flags&32768)!==0){td(n,ri);return}t=n.return;var h=Am(n.alternate,n,Ln);if(h!==null){Ce=h;return}if(n=n.sibling,n!==null){Ce=n;return}Ce=n=t}while(n!==null);hr===0&&(hr=5)}function td(t,n){do{var h=Mm(t.alternate,t);if(h!==null){h.flags&=32767,Ce=h;return}if(h=t.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!n&&(t=t.sibling,t!==null)){Ce=t;return}Ce=t=h}while(t!==null);hr=6,Ce=null}function ed(t,n,h,k,D,F,tt,at,pt){t.cancelPendingCommit=null;do oo();while(xr!==0);if((Xe&6)!==0)throw Error(y(327));if(n!==null){if(n===t.current)throw Error(y(177));if(F=n.lanes|n.childLanes,F|=fl,Ie(t,h,F,tt,at,pt),t===tr&&(Ce=tr=null,je=0),us=n,si=t,Un=h,vu=F,wu=D,$h=k,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Fm(G,function(){return ad(),null})):(t.callbackNode=null,t.callbackPriority=0),k=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||k){k=g.T,g.T=null,D=x.p,x.p=2,tt=Xe,Xe|=4;try{Cm(t,n,h)}finally{Xe=tt,x.p=D,g.T=k}}xr=1,rd(),nd(),id()}}function rd(){if(xr===1){xr=0;var t=si,n=us,h=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||h){h=g.T,g.T=null;var k=x.p;x.p=2;var D=Xe;Xe|=4;try{Dh(n,t);var F=Bu,tt=Pc(t.containerInfo),at=F.focusedElem,pt=F.selectionRange;if(tt!==at&&at&&at.ownerDocument&&Fc(at.ownerDocument.documentElement,at)){if(pt!==null&&al(at)){var Mt=pt.start,It=pt.end;if(It===void 0&&(It=Mt),"selectionStart"in at)at.selectionStart=Mt,at.selectionEnd=Math.min(It,at.value.length);else{var Ut=at.ownerDocument||document,Ct=Ut&&Ut.defaultView||window;if(Ct.getSelection){var jt=Ct.getSelection(),te=at.textContent.length,he=Math.min(pt.start,te),Qe=pt.end===void 0?he:Math.min(pt.end,te);!jt.extend&&he>Qe&&(tt=Qe,Qe=he,he=tt);var Et=Uc(at,he),yt=Uc(at,Qe);if(Et&&yt&&(jt.rangeCount!==1||jt.anchorNode!==Et.node||jt.anchorOffset!==Et.offset||jt.focusNode!==yt.node||jt.focusOffset!==yt.offset)){var At=Ut.createRange();At.setStart(Et.node,Et.offset),jt.removeAllRanges(),he>Qe?(jt.addRange(At),jt.extend(yt.node,yt.offset)):(At.setEnd(yt.node,yt.offset),jt.addRange(At))}}}}for(Ut=[],jt=at;jt=jt.parentNode;)jt.nodeType===1&&Ut.push({element:jt,left:jt.scrollLeft,top:jt.scrollTop});for(typeof at.focus=="function"&&at.focus(),at=0;at<Ut.length;at++){var Lt=Ut[at];Lt.element.scrollLeft=Lt.left,Lt.element.scrollTop=Lt.top}}wo=!!zu,Bu=zu=null}finally{Xe=D,x.p=k,g.T=h}}t.current=n,xr=2}}function nd(){if(xr===2){xr=0;var t=si,n=us,h=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||h){h=g.T,g.T=null;var k=x.p;x.p=2;var D=Xe;Xe|=4;try{Rh(t,n.alternate,n)}finally{Xe=D,x.p=k,g.T=h}}xr=3}}function id(){if(xr===4||xr===3){xr=0,Ot();var t=si,n=us,h=Un,k=$h;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?xr=5:(xr=0,us=si=null,sd(t,t.pendingLanes));var D=t.pendingLanes;if(D===0&&(ii=null),Bt(h),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(wt,n,void 0,(n.current.flags&128)===128)}catch{}if(k!==null){n=g.T,D=x.p,x.p=2,g.T=null;try{for(var F=t.onRecoverableError,tt=0;tt<k.length;tt++){var at=k[tt];F(at.value,{componentStack:at.stack})}}finally{g.T=n,x.p=D}}(Un&3)!==0&&oo(),_n(t),D=t.pendingLanes,(h&261930)!==0&&(D&42)!==0?t===_u?ta++:(ta=0,_u=t):ta=0,ea(0)}}function sd(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Bs(n)))}function oo(){return rd(),nd(),id(),ad()}function ad(){if(xr!==5)return!1;var t=si,n=vu;vu=0;var h=Bt(Un),k=g.T,D=x.p;try{x.p=32>h?32:h,g.T=null,h=wu,wu=null;var F=si,tt=Un;if(xr=0,us=si=null,Un=0,(Xe&6)!==0)throw Error(y(331));var at=Xe;if(Xe|=4,Ph(F.current),Lh(F,F.current,tt,h),Xe=at,ea(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(wt,F)}catch{}return!0}finally{x.p=D,g.T=k,sd(t,n)}}function od(t,n,h){n=tn(h,n),n=Jl(t.stateNode,n,2),t=Qn(t,n,2),t!==null&&(le(t,2),_n(t))}function Ge(t,n,h){if(t.tag===3)od(t,t,h);else for(;n!==null;){if(n.tag===3){od(n,t,h);break}else if(n.tag===1){var k=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof k.componentDidCatch=="function"&&(ii===null||!ii.has(k))){t=tn(h,t),h=lh(2),k=Qn(n,h,2),k!==null&&(uh(h,k,n,t),le(k,2),_n(k));break}}n=n.return}}function Eu(t,n,h){var k=t.pingCache;if(k===null){k=t.pingCache=new jm;var D=new Set;k.set(n,D)}else D=k.get(n),D===void 0&&(D=new Set,k.set(n,D));D.has(h)||(bu=!0,D.add(h),t=Im.bind(null,t,n,h),n.then(t,t))}function Im(t,n,h){var k=t.pingCache;k!==null&&k.delete(n),t.pingedLanes|=t.suspendedLanes&h,t.warmLanes&=~h,tr===t&&(je&h)===h&&(hr===4||hr===3&&(je&62914560)===je&&300>Rt()-eo?(Xe&2)===0&&cs(t,0):gu|=h,ls===je&&(ls=0)),_n(t)}function ld(t,n){n===0&&(n=Te()),t=Ti(t,n),t!==null&&(le(t,n),_n(t))}function Lm(t){var n=t.memoizedState,h=0;n!==null&&(h=n.retryLane),ld(t,h)}function Um(t,n){var h=0;switch(t.tag){case 31:case 13:var k=t.stateNode,D=t.memoizedState;D!==null&&(h=D.retryLane);break;case 19:k=t.stateNode;break;case 22:k=t.stateNode._retryCache;break;default:throw Error(y(314))}k!==null&&k.delete(n),ld(t,h)}function Fm(t,n){return xt(t,n)}var lo=null,hs=null,ku=!1,uo=!1,Tu=!1,oi=0;function _n(t){t!==hs&&t.next===null&&(hs===null?lo=hs=t:hs=hs.next=t),uo=!0,ku||(ku=!0,Hm())}function ea(t,n){if(!Tu&&uo){Tu=!0;do for(var h=!1,k=lo;k!==null;){if(t!==0){var D=k.pendingLanes;if(D===0)var F=0;else{var tt=k.suspendedLanes,at=k.pingedLanes;F=(1<<31-qt(42|t)+1)-1,F&=D&~(tt&~at),F=F&201326741?F&201326741|1:F?F|2:0}F!==0&&(h=!0,hd(k,F))}else F=je,F=Pe(k,k===tr?F:0,k.cancelPendingCommit!==null||k.timeoutHandle!==-1),(F&3)===0||Se(k,F)||(h=!0,hd(k,F));k=k.next}while(h);Tu=!1}}function Pm(){ud()}function ud(){uo=ku=!1;var t=0;oi!==0&&Qm()&&(t=oi);for(var n=Rt(),h=null,k=lo;k!==null;){var D=k.next,F=cd(k,n);F===0?(k.next=null,h===null?lo=D:h.next=D,D===null&&(hs=h)):(h=k,(t!==0||(F&3)!==0)&&(uo=!0)),k=D}xr!==0&&xr!==5||ea(t),oi!==0&&(oi=0)}function cd(t,n){for(var h=t.suspendedLanes,k=t.pingedLanes,D=t.expirationTimes,F=t.pendingLanes&-62914561;0<F;){var tt=31-qt(F),at=1<<tt,pt=D[tt];pt===-1?((at&h)===0||(at&k)!==0)&&(D[tt]=fe(at,n)):pt<=n&&(t.expiredLanes|=at),F&=~at}if(n=tr,h=je,h=Pe(t,t===n?h:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),k=t.callbackNode,h===0||t===n&&(Ye===2||Ye===9)||t.cancelPendingCommit!==null)return k!==null&&k!==null&&_t(k),t.callbackNode=null,t.callbackPriority=0;if((h&3)===0||Se(t,h)){if(n=h&-h,n===t.callbackPriority)return n;switch(k!==null&&_t(k),Bt(h)){case 2:case 8:h=et;break;case 32:h=G;break;case 268435456:h=ot;break;default:h=G}return k=fd.bind(null,t),h=xt(h,k),t.callbackPriority=n,t.callbackNode=h,n}return k!==null&&k!==null&&_t(k),t.callbackPriority=2,t.callbackNode=null,2}function fd(t,n){if(xr!==0&&xr!==5)return t.callbackNode=null,t.callbackPriority=0,null;var h=t.callbackNode;if(oo()&&t.callbackNode!==h)return null;var k=je;return k=Pe(t,t===tr?k:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),k===0?null:(Vh(t,k,n),cd(t,Rt()),t.callbackNode!=null&&t.callbackNode===h?fd.bind(null,t):null)}function hd(t,n){if(oo())return null;Vh(t,n,!0)}function Hm(){t1(function(){(Xe&6)!==0?xt(Kt,Pm):ud()})}function Au(){if(oi===0){var t=Wi;t===0&&(t=ie,ie<<=1,(ie&261888)===0&&(ie=256)),oi=t}return oi}function dd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Sn(""+t)}function pd(t,n){var h=n.ownerDocument.createElement("input");return h.name=n.name,h.value=n.value,t.id&&h.setAttribute("form",t.id),n.parentNode.insertBefore(h,n),t=new FormData(t),h.parentNode.removeChild(h),t}function qm(t,n,h,k,D){if(n==="submit"&&h&&h.stateNode===D){var F=dd((D[Wt]||null).action),tt=k.submitter;tt&&(n=(n=tt[Wt]||null)?dd(n.formAction):tt.getAttribute("formAction"),n!==null&&(F=n,tt=null));var at=new _a("action","action",null,k,D);t.push({event:at,listeners:[{instance:null,listener:function(){if(k.defaultPrevented){if(oi!==0){var pt=tt?pd(D,tt):new FormData(D);Xl(h,{pending:!0,data:pt,method:D.method,action:F},null,pt)}}else typeof F=="function"&&(at.preventDefault(),pt=tt?pd(D,tt):new FormData(D),Xl(h,{pending:!0,data:pt,method:D.method,action:F},F,pt))},currentTarget:D}]})}}for(var Mu=0;Mu<cl.length;Mu++){var Cu=cl[Mu],$m=Cu.toLowerCase(),Zm=Cu[0].toUpperCase()+Cu.slice(1);fn($m,"on"+Zm)}fn($c,"onAnimationEnd"),fn(Zc,"onAnimationIteration"),fn(Vc,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(om,"onTransitionRun"),fn(lm,"onTransitionStart"),fn(um,"onTransitionCancel"),fn(Xc,"onTransitionEnd"),Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"]),Zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ra="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Vm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ra));function md(t,n){n=(n&4)!==0;for(var h=0;h<t.length;h++){var k=t[h],D=k.event;k=k.listeners;t:{var F=void 0;if(n)for(var tt=k.length-1;0<=tt;tt--){var at=k[tt],pt=at.instance,Mt=at.currentTarget;if(at=at.listener,pt!==F&&D.isPropagationStopped())break t;F=at,D.currentTarget=Mt;try{F(D)}catch(It){Ea(It)}D.currentTarget=null,F=pt}else for(tt=0;tt<k.length;tt++){if(at=k[tt],pt=at.instance,Mt=at.currentTarget,at=at.listener,pt!==F&&D.isPropagationStopped())break t;F=at,D.currentTarget=Mt;try{F(D)}catch(It){Ea(It)}D.currentTarget=null,F=pt}}}}function Oe(t,n){var h=n[de];h===void 0&&(h=n[de]=new Set);var k=t+"__bubble";h.has(k)||(bd(n,t,2,!1),h.add(k))}function Ou(t,n,h){var k=0;n&&(k|=4),bd(h,t,k,n)}var co="_reactListening"+Math.random().toString(36).slice(2);function Ru(t){if(!t[co]){t[co]=!0,Ht.forEach(function(h){h!=="selectionchange"&&(Vm.has(h)||Ou(h,!1,t),Ou(h,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[co]||(n[co]=!0,Ou("selectionchange",!1,n))}}function bd(t,n,h,k){switch(Zd(n)){case 2:var D=w1;break;case 8:D=_1;break;default:D=Vu}h=D.bind(null,n,h,t),D=void 0,!Wo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(D=!0),k?D!==void 0?t.addEventListener(n,h,{capture:!0,passive:D}):t.addEventListener(n,h,!0):D!==void 0?t.addEventListener(n,h,{passive:D}):t.addEventListener(n,h,!1)}function ju(t,n,h,k,D){var F=k;if((n&1)===0&&(n&2)===0&&k!==null)t:for(;;){if(k===null)return;var tt=k.tag;if(tt===3||tt===4){var at=k.stateNode.containerInfo;if(at===D)break;if(tt===4)for(tt=k.return;tt!==null;){var pt=tt.tag;if((pt===3||pt===4)&&tt.stateNode.containerInfo===D)return;tt=tt.return}for(;at!==null;){if(tt=rr(at),tt===null)return;if(pt=tt.tag,pt===5||pt===6||pt===26||pt===27){k=F=tt;continue t}at=at.parentNode}}k=k.return}wc(function(){var Mt=F,It=$n(h),Ut=[];t:{var Ct=Yc.get(t);if(Ct!==void 0){var jt=_a,te=t;switch(t){case"keypress":if(va(h)===0)break t;case"keydown":case"keyup":jt=U0;break;case"focusin":te="focus",jt=el;break;case"focusout":te="blur",jt=el;break;case"beforeblur":case"afterblur":jt=el;break;case"click":if(h.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":jt=Sc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":jt=A0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":jt=H0;break;case $c:case Zc:case Vc:jt=O0;break;case Xc:jt=$0;break;case"scroll":case"scrollend":jt=k0;break;case"wheel":jt=V0;break;case"copy":case"cut":case"paste":jt=j0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":jt=kc;break;case"toggle":case"beforetoggle":jt=Y0}var he=(n&4)!==0,Qe=!he&&(t==="scroll"||t==="scrollend"),Et=he?Ct!==null?Ct+"Capture":null:Ct;he=[];for(var yt=Mt,At;yt!==null;){var Lt=yt;if(At=Lt.stateNode,Lt=Lt.tag,Lt!==5&&Lt!==26&&Lt!==27||At===null||Et===null||(Lt=Es(yt,Et),Lt!=null&&he.push(na(yt,Lt,At))),Qe)break;yt=yt.return}0<he.length&&(Ct=new jt(Ct,te,null,h,It),Ut.push({event:Ct,listeners:he}))}}if((n&7)===0){t:{if(Ct=t==="mouseover"||t==="pointerover",jt=t==="mouseout"||t==="pointerout",Ct&&h!==qn&&(te=h.relatedTarget||h.fromElement)&&(rr(te)||te[ee]))break t;if((jt||Ct)&&(Ct=It.window===It?It:(Ct=It.ownerDocument)?Ct.defaultView||Ct.parentWindow:window,jt?(te=h.relatedTarget||h.toElement,jt=Mt,te=te?rr(te):null,te!==null&&(Qe=d(te),he=te.tag,te!==Qe||he!==5&&he!==27&&he!==6)&&(te=null)):(jt=null,te=Mt),jt!==te)){if(he=Sc,Lt="onMouseLeave",Et="onMouseEnter",yt="mouse",(t==="pointerout"||t==="pointerover")&&(he=kc,Lt="onPointerLeave",Et="onPointerEnter",yt="pointer"),Qe=jt==null?Ct:ct(jt),At=te==null?Ct:ct(te),Ct=new he(Lt,yt+"leave",jt,h,It),Ct.target=Qe,Ct.relatedTarget=At,Lt=null,rr(It)===Mt&&(he=new he(Et,yt+"enter",te,h,It),he.target=At,he.relatedTarget=Qe,Lt=he),Qe=Lt,jt&&te)e:{for(he=Xm,Et=jt,yt=te,At=0,Lt=Et;Lt;Lt=he(Lt))At++;Lt=0;for(var ce=yt;ce;ce=he(ce))Lt++;for(;0<At-Lt;)Et=he(Et),At--;for(;0<Lt-At;)yt=he(yt),Lt--;for(;At--;){if(Et===yt||yt!==null&&Et===yt.alternate){he=Et;break e}Et=he(Et),yt=he(yt)}he=null}else he=null;jt!==null&&gd(Ut,Ct,jt,he,!1),te!==null&&Qe!==null&&gd(Ut,Qe,te,he,!0)}}t:{if(Ct=Mt?ct(Mt):window,jt=Ct.nodeName&&Ct.nodeName.toLowerCase(),jt==="select"||jt==="input"&&Ct.type==="file")var Ze=Nc;else if(Rc(Ct))if(zc)Ze=im;else{Ze=rm;var ne=em}else jt=Ct.nodeName,!jt||jt.toLowerCase()!=="input"||Ct.type!=="checkbox"&&Ct.type!=="radio"?Mt&&bn(Mt.elementType)&&(Ze=Nc):Ze=nm;if(Ze&&(Ze=Ze(t,Mt))){jc(Ut,Ze,h,It);break t}ne&&ne(t,Ct,Mt),t==="focusout"&&Mt&&Ct.type==="number"&&Mt.memoizedProps.value!=null&&Qr(Ct,"number",Ct.value)}switch(ne=Mt?ct(Mt):window,t){case"focusin":(Rc(ne)||ne.contentEditable==="true")&&(qi=ne,ol=Mt,js=null);break;case"focusout":js=ol=qi=null;break;case"mousedown":ll=!0;break;case"contextmenu":case"mouseup":case"dragend":ll=!1,Hc(Ut,h,It);break;case"selectionchange":if(am)break;case"keydown":case"keyup":Hc(Ut,h,It)}var xe;if(nl)t:{switch(t){case"compositionstart":var Ne="onCompositionStart";break t;case"compositionend":Ne="onCompositionEnd";break t;case"compositionupdate":Ne="onCompositionUpdate";break t}Ne=void 0}else Hi?Cc(t,h)&&(Ne="onCompositionEnd"):t==="keydown"&&h.keyCode===229&&(Ne="onCompositionStart");Ne&&(Tc&&h.locale!=="ko"&&(Hi||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Hi&&(xe=_c()):(Zn=It,Qo="value"in Zn?Zn.value:Zn.textContent,Hi=!0)),ne=fo(Mt,Ne),0<ne.length&&(Ne=new Ec(Ne,t,null,h,It),Ut.push({event:Ne,listeners:ne}),xe?Ne.data=xe:(xe=Oc(h),xe!==null&&(Ne.data=xe)))),(xe=K0?W0(t,h):Q0(t,h))&&(Ne=fo(Mt,"onBeforeInput"),0<Ne.length&&(ne=new Ec("onBeforeInput","beforeinput",null,h,It),Ut.push({event:ne,listeners:Ne}),ne.data=xe)),qm(Ut,t,Mt,h,It)}md(Ut,n)})}function na(t,n,h){return{instance:t,listener:n,currentTarget:h}}function fo(t,n){for(var h=n+"Capture",k=[];t!==null;){var D=t,F=D.stateNode;if(D=D.tag,D!==5&&D!==26&&D!==27||F===null||(D=Es(t,h),D!=null&&k.unshift(na(t,D,F)),D=Es(t,n),D!=null&&k.push(na(t,D,F))),t.tag===3)return k;t=t.return}return[]}function Xm(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function gd(t,n,h,k,D){for(var F=n._reactName,tt=[];h!==null&&h!==k;){var at=h,pt=at.alternate,Mt=at.stateNode;if(at=at.tag,pt!==null&&pt===k)break;at!==5&&at!==26&&at!==27||Mt===null||(pt=Mt,D?(Mt=Es(h,F),Mt!=null&&tt.unshift(na(h,Mt,pt))):D||(Mt=Es(h,F),Mt!=null&&tt.push(na(h,Mt,pt)))),h=h.return}tt.length!==0&&t.push({event:n,listeners:tt})}var Ym=/\r\n?/g,Gm=/\u0000|\uFFFD/g;function yd(t){return(typeof t=="string"?t:""+t).replace(Ym,`
|
|
9
|
+
`).replace(Gm,"")}function vd(t,n){return n=yd(n),yd(t)===n}function We(t,n,h,k,D,F){switch(h){case"children":typeof k=="string"?n==="body"||n==="textarea"&&k===""||Or(t,k):(typeof k=="number"||typeof k=="bigint")&&n!=="body"&&Or(t,""+k);break;case"className":Be(t,"class",k);break;case"tabIndex":Be(t,"tabindex",k);break;case"dir":case"role":case"viewBox":case"width":case"height":Be(t,h,k);break;case"style":_i(t,k,F);break;case"data":if(n!=="object"){Be(t,"data",k);break}case"src":case"href":if(k===""&&(n!=="a"||h!=="href")){t.removeAttribute(h);break}if(k==null||typeof k=="function"||typeof k=="symbol"||typeof k=="boolean"){t.removeAttribute(h);break}k=Sn(""+k),t.setAttribute(h,k);break;case"action":case"formAction":if(typeof k=="function"){t.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof F=="function"&&(h==="formAction"?(n!=="input"&&We(t,n,"name",D.name,D,null),We(t,n,"formEncType",D.formEncType,D,null),We(t,n,"formMethod",D.formMethod,D,null),We(t,n,"formTarget",D.formTarget,D,null)):(We(t,n,"encType",D.encType,D,null),We(t,n,"method",D.method,D,null),We(t,n,"target",D.target,D,null)));if(k==null||typeof k=="symbol"||typeof k=="boolean"){t.removeAttribute(h);break}k=Sn(""+k),t.setAttribute(h,k);break;case"onClick":k!=null&&(t.onclick=$r);break;case"onScroll":k!=null&&Oe("scroll",t);break;case"onScrollEnd":k!=null&&Oe("scrollend",t);break;case"dangerouslySetInnerHTML":if(k!=null){if(typeof k!="object"||!("__html"in k))throw Error(y(61));if(h=k.__html,h!=null){if(D.children!=null)throw Error(y(60));t.innerHTML=h}}break;case"multiple":t.multiple=k&&typeof k!="function"&&typeof k!="symbol";break;case"muted":t.muted=k&&typeof k!="function"&&typeof k!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(k==null||typeof k=="function"||typeof k=="boolean"||typeof k=="symbol"){t.removeAttribute("xlink:href");break}h=Sn(""+k),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":k!=null&&typeof k!="function"&&typeof k!="symbol"?t.setAttribute(h,""+k):t.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":k&&typeof k!="function"&&typeof k!="symbol"?t.setAttribute(h,""):t.removeAttribute(h);break;case"capture":case"download":k===!0?t.setAttribute(h,""):k!==!1&&k!=null&&typeof k!="function"&&typeof k!="symbol"?t.setAttribute(h,k):t.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":k!=null&&typeof k!="function"&&typeof k!="symbol"&&!isNaN(k)&&1<=k?t.setAttribute(h,k):t.removeAttribute(h);break;case"rowSpan":case"start":k==null||typeof k=="function"||typeof k=="symbol"||isNaN(k)?t.removeAttribute(h):t.setAttribute(h,k);break;case"popover":Oe("beforetoggle",t),Oe("toggle",t),ze(t,"popover",k);break;case"xlinkActuate":Ee(t,"http://www.w3.org/1999/xlink","xlink:actuate",k);break;case"xlinkArcrole":Ee(t,"http://www.w3.org/1999/xlink","xlink:arcrole",k);break;case"xlinkRole":Ee(t,"http://www.w3.org/1999/xlink","xlink:role",k);break;case"xlinkShow":Ee(t,"http://www.w3.org/1999/xlink","xlink:show",k);break;case"xlinkTitle":Ee(t,"http://www.w3.org/1999/xlink","xlink:title",k);break;case"xlinkType":Ee(t,"http://www.w3.org/1999/xlink","xlink:type",k);break;case"xmlBase":Ee(t,"http://www.w3.org/XML/1998/namespace","xml:base",k);break;case"xmlLang":Ee(t,"http://www.w3.org/XML/1998/namespace","xml:lang",k);break;case"xmlSpace":Ee(t,"http://www.w3.org/XML/1998/namespace","xml:space",k);break;case"is":ze(t,"is",k);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=gn.get(h)||h,ze(t,h,k))}}function Nu(t,n,h,k,D,F){switch(h){case"style":_i(t,k,F);break;case"dangerouslySetInnerHTML":if(k!=null){if(typeof k!="object"||!("__html"in k))throw Error(y(61));if(h=k.__html,h!=null){if(D.children!=null)throw Error(y(60));t.innerHTML=h}}break;case"children":typeof k=="string"?Or(t,k):(typeof k=="number"||typeof k=="bigint")&&Or(t,""+k);break;case"onScroll":k!=null&&Oe("scroll",t);break;case"onScrollEnd":k!=null&&Oe("scrollend",t);break;case"onClick":k!=null&&(t.onclick=$r);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!re.hasOwnProperty(h))t:{if(h[0]==="o"&&h[1]==="n"&&(D=h.endsWith("Capture"),n=h.slice(2,D?h.length-7:void 0),F=t[Wt]||null,F=F!=null?F[h]:null,typeof F=="function"&&t.removeEventListener(n,F,D),typeof k=="function")){typeof F!="function"&&F!==null&&(h in t?t[h]=null:t.hasAttribute(h)&&t.removeAttribute(h)),t.addEventListener(n,k,D);break t}h in t?t[h]=k:k===!0?t.setAttribute(h,""):ze(t,h,k)}}}function Mr(t,n,h){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",t),Oe("load",t);var k=!1,D=!1,F;for(F in h)if(h.hasOwnProperty(F)){var tt=h[F];if(tt!=null)switch(F){case"src":k=!0;break;case"srcSet":D=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(y(137,n));default:We(t,n,F,tt,h,null)}}D&&We(t,n,"srcSet",h.srcSet,h,null),k&&We(t,n,"src",h.src,h,null);return;case"input":Oe("invalid",t);var at=F=tt=D=null,pt=null,Mt=null;for(k in h)if(h.hasOwnProperty(k)){var It=h[k];if(It!=null)switch(k){case"name":D=It;break;case"type":tt=It;break;case"checked":pt=It;break;case"defaultChecked":Mt=It;break;case"value":F=It;break;case"defaultValue":at=It;break;case"children":case"dangerouslySetInnerHTML":if(It!=null)throw Error(y(137,n));break;default:We(t,n,k,It,h,null)}}Me(t,F,at,pt,Mt,tt,D,!1);return;case"select":Oe("invalid",t),k=tt=F=null;for(D in h)if(h.hasOwnProperty(D)&&(at=h[D],at!=null))switch(D){case"value":F=at;break;case"defaultValue":tt=at;break;case"multiple":k=at;default:We(t,n,D,at,h,null)}n=F,h=tt,t.multiple=!!k,n!=null?Dr(t,!!k,n,!1):h!=null&&Dr(t,!!k,h,!0);return;case"textarea":Oe("invalid",t),F=D=k=null;for(tt in h)if(h.hasOwnProperty(tt)&&(at=h[tt],at!=null))switch(tt){case"value":k=at;break;case"defaultValue":D=at;break;case"children":F=at;break;case"dangerouslySetInnerHTML":if(at!=null)throw Error(y(91));break;default:We(t,n,tt,at,h,null)}Cr(t,k,D,F);return;case"option":for(pt in h)h.hasOwnProperty(pt)&&(k=h[pt],k!=null)&&(pt==="selected"?t.selected=k&&typeof k!="function"&&typeof k!="symbol":We(t,n,pt,k,h,null));return;case"dialog":Oe("beforetoggle",t),Oe("toggle",t),Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":Oe("load",t);break;case"video":case"audio":for(k=0;k<ra.length;k++)Oe(ra[k],t);break;case"image":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"embed":case"source":case"link":Oe("error",t),Oe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Mt in h)if(h.hasOwnProperty(Mt)&&(k=h[Mt],k!=null))switch(Mt){case"children":case"dangerouslySetInnerHTML":throw Error(y(137,n));default:We(t,n,Mt,k,h,null)}return;default:if(bn(n)){for(It in h)h.hasOwnProperty(It)&&(k=h[It],k!==void 0&&Nu(t,n,It,k,h,void 0));return}}for(at in h)h.hasOwnProperty(at)&&(k=h[at],k!=null&&We(t,n,at,k,h,null))}function Km(t,n,h,k){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var D=null,F=null,tt=null,at=null,pt=null,Mt=null,It=null;for(jt in h){var Ut=h[jt];if(h.hasOwnProperty(jt)&&Ut!=null)switch(jt){case"checked":break;case"value":break;case"defaultValue":pt=Ut;default:k.hasOwnProperty(jt)||We(t,n,jt,null,k,Ut)}}for(var Ct in k){var jt=k[Ct];if(Ut=h[Ct],k.hasOwnProperty(Ct)&&(jt!=null||Ut!=null))switch(Ct){case"type":F=jt;break;case"name":D=jt;break;case"checked":Mt=jt;break;case"defaultChecked":It=jt;break;case"value":tt=jt;break;case"defaultValue":at=jt;break;case"children":case"dangerouslySetInnerHTML":if(jt!=null)throw Error(y(137,n));break;default:jt!==Ut&&We(t,n,Ct,jt,k,Ut)}}Le(t,tt,at,pt,Mt,It,F,D);return;case"select":jt=tt=at=Ct=null;for(F in h)if(pt=h[F],h.hasOwnProperty(F)&&pt!=null)switch(F){case"value":break;case"multiple":jt=pt;default:k.hasOwnProperty(F)||We(t,n,F,null,k,pt)}for(D in k)if(F=k[D],pt=h[D],k.hasOwnProperty(D)&&(F!=null||pt!=null))switch(D){case"value":Ct=F;break;case"defaultValue":at=F;break;case"multiple":tt=F;default:F!==pt&&We(t,n,D,F,k,pt)}n=at,h=tt,k=jt,Ct!=null?Dr(t,!!h,Ct,!1):!!k!=!!h&&(n!=null?Dr(t,!!h,n,!0):Dr(t,!!h,h?[]:"",!1));return;case"textarea":jt=Ct=null;for(at in h)if(D=h[at],h.hasOwnProperty(at)&&D!=null&&!k.hasOwnProperty(at))switch(at){case"value":break;case"children":break;default:We(t,n,at,null,k,D)}for(tt in k)if(D=k[tt],F=h[tt],k.hasOwnProperty(tt)&&(D!=null||F!=null))switch(tt){case"value":Ct=D;break;case"defaultValue":jt=D;break;case"children":break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(y(91));break;default:D!==F&&We(t,n,tt,D,k,F)}wi(t,Ct,jt);return;case"option":for(var te in h)Ct=h[te],h.hasOwnProperty(te)&&Ct!=null&&!k.hasOwnProperty(te)&&(te==="selected"?t.selected=!1:We(t,n,te,null,k,Ct));for(pt in k)Ct=k[pt],jt=h[pt],k.hasOwnProperty(pt)&&Ct!==jt&&(Ct!=null||jt!=null)&&(pt==="selected"?t.selected=Ct&&typeof Ct!="function"&&typeof Ct!="symbol":We(t,n,pt,Ct,k,jt));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in h)Ct=h[he],h.hasOwnProperty(he)&&Ct!=null&&!k.hasOwnProperty(he)&&We(t,n,he,null,k,Ct);for(Mt in k)if(Ct=k[Mt],jt=h[Mt],k.hasOwnProperty(Mt)&&Ct!==jt&&(Ct!=null||jt!=null))switch(Mt){case"children":case"dangerouslySetInnerHTML":if(Ct!=null)throw Error(y(137,n));break;default:We(t,n,Mt,Ct,k,jt)}return;default:if(bn(n)){for(var Qe in h)Ct=h[Qe],h.hasOwnProperty(Qe)&&Ct!==void 0&&!k.hasOwnProperty(Qe)&&Nu(t,n,Qe,void 0,k,Ct);for(It in k)Ct=k[It],jt=h[It],!k.hasOwnProperty(It)||Ct===jt||Ct===void 0&&jt===void 0||Nu(t,n,It,Ct,k,jt);return}}for(var Et in h)Ct=h[Et],h.hasOwnProperty(Et)&&Ct!=null&&!k.hasOwnProperty(Et)&&We(t,n,Et,null,k,Ct);for(Ut in k)Ct=k[Ut],jt=h[Ut],!k.hasOwnProperty(Ut)||Ct===jt||Ct==null&&jt==null||We(t,n,Ut,Ct,k,jt)}function wd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Wm(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,h=performance.getEntriesByType("resource"),k=0;k<h.length;k++){var D=h[k],F=D.transferSize,tt=D.initiatorType,at=D.duration;if(F&&at&&wd(tt)){for(tt=0,at=D.responseEnd,k+=1;k<h.length;k++){var pt=h[k],Mt=pt.startTime;if(Mt>at)break;var It=pt.transferSize,Ut=pt.initiatorType;It&&wd(Ut)&&(pt=pt.responseEnd,tt+=It*(pt<at?1:(at-Mt)/(pt-Mt)))}if(--k,n+=8*(F+tt)/(D.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var zu=null,Bu=null;function ho(t){return t.nodeType===9?t:t.ownerDocument}function _d(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xd(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Du(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Iu=null;function Qm(){var t=window.event;return t&&t.type==="popstate"?t===Iu?!1:(Iu=t,!0):(Iu=null,!1)}var Sd=typeof setTimeout=="function"?setTimeout:void 0,Jm=typeof clearTimeout=="function"?clearTimeout:void 0,Ed=typeof Promise=="function"?Promise:void 0,t1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ed<"u"?function(t){return Ed.resolve(null).then(t).catch(e1)}:Sd;function e1(t){setTimeout(function(){throw t})}function li(t){return t==="head"}function kd(t,n){var h=n,k=0;do{var D=h.nextSibling;if(t.removeChild(h),D&&D.nodeType===8)if(h=D.data,h==="/$"||h==="/&"){if(k===0){t.removeChild(D),bs(n);return}k--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")k++;else if(h==="html")ia(t.ownerDocument.documentElement);else if(h==="head"){h=t.ownerDocument.head,ia(h);for(var F=h.firstChild;F;){var tt=F.nextSibling,at=F.nodeName;F[qe]||at==="SCRIPT"||at==="STYLE"||at==="LINK"&&F.rel.toLowerCase()==="stylesheet"||h.removeChild(F),F=tt}}else h==="body"&&ia(t.ownerDocument.body);h=D}while(h);bs(n)}function Td(t,n){var h=t;t=0;do{var k=h.nextSibling;if(h.nodeType===1?n?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(n?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),k&&k.nodeType===8)if(h=k.data,h==="/$"){if(t===0)break;t--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||t++;h=k}while(h)}function Lu(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var h=n;switch(n=n.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Lu(h),lr(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}t.removeChild(h)}}function r1(t,n,h,k){for(;t.nodeType===1;){var D=h;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!k&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(k){if(!t[qe])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(F=t.getAttribute("rel"),F==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(F!==D.rel||t.getAttribute("href")!==(D.href==null||D.href===""?null:D.href)||t.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin)||t.getAttribute("title")!==(D.title==null?null:D.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(F=t.getAttribute("src"),(F!==(D.src==null?null:D.src)||t.getAttribute("type")!==(D.type==null?null:D.type)||t.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin))&&F&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var F=D.name==null?null:""+D.name;if(D.type==="hidden"&&t.getAttribute("name")===F)return t}else return t;if(t=an(t.nextSibling),t===null)break}return null}function n1(t,n,h){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!h||(t=an(t.nextSibling),t===null))return null;return t}function Ad(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=an(t.nextSibling),t===null))return null;return t}function Uu(t){return t.data==="$?"||t.data==="$~"}function Fu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function i1(t,n){var h=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||h.readyState!=="loading")n();else{var k=function(){n(),h.removeEventListener("DOMContentLoaded",k)};h.addEventListener("DOMContentLoaded",k),t._reactRetry=k}}function an(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var Pu=null;function Md(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var h=t.data;if(h==="/$"||h==="/&"){if(n===0)return an(t.nextSibling);n--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||n++}t=t.nextSibling}return null}function Cd(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var h=t.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(n===0)return t;n--}else h!=="/$"&&h!=="/&"||n++}t=t.previousSibling}return null}function Od(t,n,h){switch(n=ho(h),t){case"html":if(t=n.documentElement,!t)throw Error(y(452));return t;case"head":if(t=n.head,!t)throw Error(y(453));return t;case"body":if(t=n.body,!t)throw Error(y(454));return t;default:throw Error(y(451))}}function ia(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lr(t)}var on=new Map,Rd=new Set;function po(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fn=x.d;x.d={f:s1,r:a1,D:o1,C:l1,L:u1,m:c1,X:h1,S:f1,M:d1};function s1(){var t=Fn.f(),n=io();return t||n}function a1(t){var n=dr(t);n!==null&&n.tag===5&&n.type==="form"?Yf(n):Fn.r(t)}var ds=typeof document>"u"?null:document;function jd(t,n,h){var k=ds;if(k&&typeof n=="string"&&n){var D=_r(n);D='link[rel="'+t+'"][href="'+D+'"]',typeof h=="string"&&(D+='[crossorigin="'+h+'"]'),Rd.has(D)||(Rd.add(D),t={rel:t,crossOrigin:h,href:n},k.querySelector(D)===null&&(n=k.createElement("link"),Mr(n,"link",t),zt(n),k.head.appendChild(n)))}}function o1(t){Fn.D(t),jd("dns-prefetch",t,null)}function l1(t,n){Fn.C(t,n),jd("preconnect",t,n)}function u1(t,n,h){Fn.L(t,n,h);var k=ds;if(k&&t&&n){var D='link[rel="preload"][as="'+_r(n)+'"]';n==="image"&&h&&h.imageSrcSet?(D+='[imagesrcset="'+_r(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(D+='[imagesizes="'+_r(h.imageSizes)+'"]')):D+='[href="'+_r(t)+'"]';var F=D;switch(n){case"style":F=ps(t);break;case"script":F=ms(t)}on.has(F)||(t=c({rel:"preload",href:n==="image"&&h&&h.imageSrcSet?void 0:t,as:n},h),on.set(F,t),k.querySelector(D)!==null||n==="style"&&k.querySelector(sa(F))||n==="script"&&k.querySelector(aa(F))||(n=k.createElement("link"),Mr(n,"link",t),zt(n),k.head.appendChild(n)))}}function c1(t,n){Fn.m(t,n);var h=ds;if(h&&t){var k=n&&typeof n.as=="string"?n.as:"script",D='link[rel="modulepreload"][as="'+_r(k)+'"][href="'+_r(t)+'"]',F=D;switch(k){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":F=ms(t)}if(!on.has(F)&&(t=c({rel:"modulepreload",href:t},n),on.set(F,t),h.querySelector(D)===null)){switch(k){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(aa(F)))return}k=h.createElement("link"),Mr(k,"link",t),zt(k),h.head.appendChild(k)}}}function f1(t,n,h){Fn.S(t,n,h);var k=ds;if(k&&t){var D=Tt(k).hoistableStyles,F=ps(t);n=n||"default";var tt=D.get(F);if(!tt){var at={loading:0,preload:null};if(tt=k.querySelector(sa(F)))at.loading=5;else{t=c({rel:"stylesheet",href:t,"data-precedence":n},h),(h=on.get(F))&&Hu(t,h);var pt=tt=k.createElement("link");zt(pt),Mr(pt,"link",t),pt._p=new Promise(function(Mt,It){pt.onload=Mt,pt.onerror=It}),pt.addEventListener("load",function(){at.loading|=1}),pt.addEventListener("error",function(){at.loading|=2}),at.loading|=4,mo(tt,n,k)}tt={type:"stylesheet",instance:tt,count:1,state:at},D.set(F,tt)}}}function h1(t,n){Fn.X(t,n);var h=ds;if(h&&t){var k=Tt(h).hoistableScripts,D=ms(t),F=k.get(D);F||(F=h.querySelector(aa(D)),F||(t=c({src:t,async:!0},n),(n=on.get(D))&&qu(t,n),F=h.createElement("script"),zt(F),Mr(F,"link",t),h.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},k.set(D,F))}}function d1(t,n){Fn.M(t,n);var h=ds;if(h&&t){var k=Tt(h).hoistableScripts,D=ms(t),F=k.get(D);F||(F=h.querySelector(aa(D)),F||(t=c({src:t,async:!0,type:"module"},n),(n=on.get(D))&&qu(t,n),F=h.createElement("script"),zt(F),Mr(F,"link",t),h.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},k.set(D,F))}}function Nd(t,n,h,k){var D=(D=U.current)?po(D):null;if(!D)throw Error(y(446));switch(t){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(n=ps(h.href),h=Tt(D).hoistableStyles,k=h.get(n),k||(k={type:"style",instance:null,count:0,state:null},h.set(n,k)),k):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){t=ps(h.href);var F=Tt(D).hoistableStyles,tt=F.get(t);if(tt||(D=D.ownerDocument||D,tt={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},F.set(t,tt),(F=D.querySelector(sa(t)))&&!F._p&&(tt.instance=F,tt.state.loading=5),on.has(t)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},on.set(t,h),F||p1(D,t,h,tt.state))),n&&k===null)throw Error(y(528,""));return tt}if(n&&k!==null)throw Error(y(529,""));return null;case"script":return n=h.async,h=h.src,typeof h=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ms(h),h=Tt(D).hoistableScripts,k=h.get(n),k||(k={type:"script",instance:null,count:0,state:null},h.set(n,k)),k):{type:"void",instance:null,count:0,state:null};default:throw Error(y(444,t))}}function ps(t){return'href="'+_r(t)+'"'}function sa(t){return'link[rel="stylesheet"]['+t+"]"}function zd(t){return c({},t,{"data-precedence":t.precedence,precedence:null})}function p1(t,n,h,k){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?k.loading=1:(n=t.createElement("link"),k.preload=n,n.addEventListener("load",function(){return k.loading|=1}),n.addEventListener("error",function(){return k.loading|=2}),Mr(n,"link",h),zt(n),t.head.appendChild(n))}function ms(t){return'[src="'+_r(t)+'"]'}function aa(t){return"script[async]"+t}function Bd(t,n,h){if(n.count++,n.instance===null)switch(n.type){case"style":var k=t.querySelector('style[data-href~="'+_r(h.href)+'"]');if(k)return n.instance=k,zt(k),k;var D=c({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return k=(t.ownerDocument||t).createElement("style"),zt(k),Mr(k,"style",D),mo(k,h.precedence,t),n.instance=k;case"stylesheet":D=ps(h.href);var F=t.querySelector(sa(D));if(F)return n.state.loading|=4,n.instance=F,zt(F),F;k=zd(h),(D=on.get(D))&&Hu(k,D),F=(t.ownerDocument||t).createElement("link"),zt(F);var tt=F;return tt._p=new Promise(function(at,pt){tt.onload=at,tt.onerror=pt}),Mr(F,"link",k),n.state.loading|=4,mo(F,h.precedence,t),n.instance=F;case"script":return F=ms(h.src),(D=t.querySelector(aa(F)))?(n.instance=D,zt(D),D):(k=h,(D=on.get(F))&&(k=c({},h),qu(k,D)),t=t.ownerDocument||t,D=t.createElement("script"),zt(D),Mr(D,"link",k),t.head.appendChild(D),n.instance=D);case"void":return null;default:throw Error(y(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(k=n.instance,n.state.loading|=4,mo(k,h.precedence,t));return n.instance}function mo(t,n,h){for(var k=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),D=k.length?k[k.length-1]:null,F=D,tt=0;tt<k.length;tt++){var at=k[tt];if(at.dataset.precedence===n)F=at;else if(F!==D)break}F?F.parentNode.insertBefore(t,F.nextSibling):(n=h.nodeType===9?h.head:h,n.insertBefore(t,n.firstChild))}function Hu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function qu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var bo=null;function Dd(t,n,h){if(bo===null){var k=new Map,D=bo=new Map;D.set(h,k)}else D=bo,k=D.get(h),k||(k=new Map,D.set(h,k));if(k.has(t))return k;for(k.set(t,null),h=h.getElementsByTagName(t),D=0;D<h.length;D++){var F=h[D];if(!(F[qe]||F[Jt]||t==="link"&&F.getAttribute("rel")==="stylesheet")&&F.namespaceURI!=="http://www.w3.org/2000/svg"){var tt=F.getAttribute(n)||"";tt=t+tt;var at=k.get(tt);at?at.push(F):k.set(tt,[F])}}return k}function Id(t,n,h){t=t.ownerDocument||t,t.head.insertBefore(h,n==="title"?t.querySelector("head > title"):null)}function m1(t,n,h){if(h===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ld(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function b1(t,n,h,k){if(h.type==="stylesheet"&&(typeof k.media!="string"||matchMedia(k.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var D=ps(k.href),F=n.querySelector(sa(D));if(F){n=F._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=go.bind(t),n.then(t,t)),h.state.loading|=4,h.instance=F,zt(F);return}F=n.ownerDocument||n,k=zd(k),(D=on.get(D))&&Hu(k,D),F=F.createElement("link"),zt(F);var tt=F;tt._p=new Promise(function(at,pt){tt.onload=at,tt.onerror=pt}),Mr(F,"link",k),h.instance=F}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(h,n),(n=h.state.preload)&&(h.state.loading&3)===0&&(t.count++,h=go.bind(t),n.addEventListener("load",h),n.addEventListener("error",h))}}var $u=0;function g1(t,n){return t.stylesheets&&t.count===0&&vo(t,t.stylesheets),0<t.count||0<t.imgCount?function(h){var k=setTimeout(function(){if(t.stylesheets&&vo(t,t.stylesheets),t.unsuspend){var F=t.unsuspend;t.unsuspend=null,F()}},6e4+n);0<t.imgBytes&&$u===0&&($u=62500*Wm());var D=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&vo(t,t.stylesheets),t.unsuspend)){var F=t.unsuspend;t.unsuspend=null,F()}},(t.imgBytes>$u?50:800)+n);return t.unsuspend=h,function(){t.unsuspend=null,clearTimeout(k),clearTimeout(D)}}:null}function go(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yo=null;function vo(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yo=new Map,n.forEach(y1,t),yo=null,go.call(t))}function y1(t,n){if(!(n.state.loading&4)){var h=yo.get(t);if(h)var k=h.get(null);else{h=new Map,yo.set(t,h);for(var D=t.querySelectorAll("link[data-precedence],style[data-precedence]"),F=0;F<D.length;F++){var tt=D[F];(tt.nodeName==="LINK"||tt.getAttribute("media")!=="not all")&&(h.set(tt.dataset.precedence,tt),k=tt)}k&&h.set(null,k)}D=n.instance,tt=D.getAttribute("data-precedence"),F=h.get(tt)||k,F===k&&h.set(null,D),h.set(tt,D),this.count++,k=go.bind(this),D.addEventListener("load",k),D.addEventListener("error",k),F?F.parentNode.insertBefore(D,F.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(D,t.firstChild)),n.state.loading|=4}}var oa={$$typeof:T,Provider:null,Consumer:null,_currentValue:S,_currentValue2:S,_threadCount:0};function v1(t,n,h,k,D,F,tt,at,pt){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=He(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=He(0),this.hiddenUpdates=He(null),this.identifierPrefix=k,this.onUncaughtError=D,this.onCaughtError=F,this.onRecoverableError=tt,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pt,this.incompleteTransitions=new Map}function Ud(t,n,h,k,D,F,tt,at,pt,Mt,It,Ut){return t=new v1(t,n,h,tt,pt,Mt,It,Ut,at),n=1,F===!0&&(n|=24),F=Vr(3,null,null,n),t.current=F,F.stateNode=t,n=Sl(),n.refCount++,t.pooledCache=n,n.refCount++,F.memoizedState={element:k,isDehydrated:h,cache:n},Al(F),t}function Fd(t){return t?(t=Vi,t):Vi}function Pd(t,n,h,k,D,F){D=Fd(D),k.context===null?k.context=D:k.pendingContext=D,k=Wn(n),k.payload={element:h},F=F===void 0?null:F,F!==null&&(k.callback=F),h=Qn(t,k,n),h!==null&&(Hr(h,t,n),Us(h,t,n))}function Hd(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var h=t.retryLane;t.retryLane=h!==0&&h<n?h:n}}function Zu(t,n){Hd(t,n),(t=t.alternate)&&Hd(t,n)}function qd(t){if(t.tag===13||t.tag===31){var n=Ti(t,67108864);n!==null&&Hr(n,t,67108864),Zu(t,67108864)}}function $d(t){if(t.tag===13||t.tag===31){var n=Wr();n=kt(n);var h=Ti(t,n);h!==null&&Hr(h,t,n),Zu(t,n)}}var wo=!0;function w1(t,n,h,k){var D=g.T;g.T=null;var F=x.p;try{x.p=2,Vu(t,n,h,k)}finally{x.p=F,g.T=D}}function _1(t,n,h,k){var D=g.T;g.T=null;var F=x.p;try{x.p=8,Vu(t,n,h,k)}finally{x.p=F,g.T=D}}function Vu(t,n,h,k){if(wo){var D=Xu(k);if(D===null)ju(t,n,k,_o,h),Vd(t,k);else if(S1(D,t,n,h,k))k.stopPropagation();else if(Vd(t,k),n&4&&-1<x1.indexOf(t)){for(;D!==null;){var F=dr(D);if(F!==null)switch(F.tag){case 3:if(F=F.stateNode,F.current.memoizedState.isDehydrated){var tt=oe(F.pendingLanes);if(tt!==0){var at=F;for(at.pendingLanes|=2,at.entangledLanes|=2;tt;){var pt=1<<31-qt(tt);at.entanglements[1]|=pt,tt&=~pt}_n(F),(Xe&6)===0&&(ro=Rt()+500,ea(0))}}break;case 31:case 13:at=Ti(F,2),at!==null&&Hr(at,F,2),io(),Zu(F,2)}if(F=Xu(k),F===null&&ju(t,n,k,_o,h),F===D)break;D=F}D!==null&&k.stopPropagation()}else ju(t,n,k,null,h)}}function Xu(t){return t=$n(t),Yu(t)}var _o=null;function Yu(t){if(_o=null,t=rr(t),t!==null){var n=d(t);if(n===null)t=null;else{var h=n.tag;if(h===13){if(t=a(n),t!==null)return t;t=null}else if(h===31){if(t=l(n),t!==null)return t;t=null}else if(h===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return _o=t,null}function Zd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ft()){case Kt:return 2;case et:return 8;case G:case Q:return 32;case ot:return 268435456;default:return 32}default:return 32}}var Gu=!1,ui=null,ci=null,fi=null,la=new Map,ua=new Map,hi=[],x1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vd(t,n){switch(t){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":la.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ua.delete(n.pointerId)}}function ca(t,n,h,k,D,F){return t===null||t.nativeEvent!==F?(t={blockedOn:n,domEventName:h,eventSystemFlags:k,nativeEvent:F,targetContainers:[D]},n!==null&&(n=dr(n),n!==null&&qd(n)),t):(t.eventSystemFlags|=k,n=t.targetContainers,D!==null&&n.indexOf(D)===-1&&n.push(D),t)}function S1(t,n,h,k,D){switch(n){case"focusin":return ui=ca(ui,t,n,h,k,D),!0;case"dragenter":return ci=ca(ci,t,n,h,k,D),!0;case"mouseover":return fi=ca(fi,t,n,h,k,D),!0;case"pointerover":var F=D.pointerId;return la.set(F,ca(la.get(F)||null,t,n,h,k,D)),!0;case"gotpointercapture":return F=D.pointerId,ua.set(F,ca(ua.get(F)||null,t,n,h,k,D)),!0}return!1}function Xd(t){var n=rr(t.target);if(n!==null){var h=d(n);if(h!==null){if(n=h.tag,n===13){if(n=a(h),n!==null){t.blockedOn=n,ae(t.priority,function(){$d(h)});return}}else if(n===31){if(n=l(h),n!==null){t.blockedOn=n,ae(t.priority,function(){$d(h)});return}}else if(n===3&&h.stateNode.current.memoizedState.isDehydrated){t.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xo(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var h=Xu(t.nativeEvent);if(h===null){h=t.nativeEvent;var k=new h.constructor(h.type,h);qn=k,h.target.dispatchEvent(k),qn=null}else return n=dr(h),n!==null&&qd(n),t.blockedOn=h,!1;n.shift()}return!0}function Yd(t,n,h){xo(t)&&h.delete(n)}function E1(){Gu=!1,ui!==null&&xo(ui)&&(ui=null),ci!==null&&xo(ci)&&(ci=null),fi!==null&&xo(fi)&&(fi=null),la.forEach(Yd),ua.forEach(Yd)}function So(t,n){t.blockedOn===n&&(t.blockedOn=null,Gu||(Gu=!0,w.unstable_scheduleCallback(w.unstable_NormalPriority,E1)))}var Eo=null;function Gd(t){Eo!==t&&(Eo=t,w.unstable_scheduleCallback(w.unstable_NormalPriority,function(){Eo===t&&(Eo=null);for(var n=0;n<t.length;n+=3){var h=t[n],k=t[n+1],D=t[n+2];if(typeof k!="function"){if(Yu(k||h)===null)continue;break}var F=dr(h);F!==null&&(t.splice(n,3),n-=3,Xl(F,{pending:!0,data:D,method:h.method,action:k},k,D))}}))}function bs(t){function n(pt){return So(pt,t)}ui!==null&&So(ui,t),ci!==null&&So(ci,t),fi!==null&&So(fi,t),la.forEach(n),ua.forEach(n);for(var h=0;h<hi.length;h++){var k=hi[h];k.blockedOn===t&&(k.blockedOn=null)}for(;0<hi.length&&(h=hi[0],h.blockedOn===null);)Xd(h),h.blockedOn===null&&hi.shift();if(h=(t.ownerDocument||t).$$reactFormReplay,h!=null)for(k=0;k<h.length;k+=3){var D=h[k],F=h[k+1],tt=D[Wt]||null;if(typeof F=="function")tt||Gd(h);else if(tt){var at=null;if(F&&F.hasAttribute("formAction")){if(D=F,tt=F[Wt]||null)at=tt.formAction;else if(Yu(D)!==null)continue}else at=tt.action;typeof at=="function"?h[k+1]=at:(h.splice(k,3),k-=3),Gd(h)}}}function Kd(){function t(F){F.canIntercept&&F.info==="react-transition"&&F.intercept({handler:function(){return new Promise(function(tt){return D=tt})},focusReset:"manual",scroll:"manual"})}function n(){D!==null&&(D(),D=null),k||setTimeout(h,20)}function h(){if(!k&&!navigation.transition){var F=navigation.currentEntry;F&&F.url!=null&&navigation.navigate(F.url,{state:F.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var k=!1,D=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(h,100),function(){k=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),D!==null&&(D(),D=null)}}}function Ku(t){this._internalRoot=t}ko.prototype.render=Ku.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(y(409));var h=n.current,k=Wr();Pd(h,k,t,n,null,null)},ko.prototype.unmount=Ku.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Pd(t.current,2,null,t,null,null),io(),n[ee]=null}};function ko(t){this._internalRoot=t}ko.prototype.unstable_scheduleHydration=function(t){if(t){var n=Gt();t={blockedOn:null,target:t,priority:n};for(var h=0;h<hi.length&&n!==0&&n<hi[h].priority;h++);hi.splice(h,0,t),h===0&&Xd(t)}};var Wd=M.version;if(Wd!=="19.2.3")throw Error(y(527,Wd,"19.2.3"));x.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(y(188)):(t=Object.keys(t).join(","),Error(y(268,t)));return t=e(n),t=t!==null?s(t):null,t=t===null?null:t.stateNode,t};var k1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:g,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{wt=To.inject(k1),Nt=To}catch{}}return da.createRoot=function(t,n){if(!_(t))throw Error(y(299));var h=!1,k="",D=ih,F=sh,tt=ah;return n!=null&&(n.unstable_strictMode===!0&&(h=!0),n.identifierPrefix!==void 0&&(k=n.identifierPrefix),n.onUncaughtError!==void 0&&(D=n.onUncaughtError),n.onCaughtError!==void 0&&(F=n.onCaughtError),n.onRecoverableError!==void 0&&(tt=n.onRecoverableError)),n=Ud(t,1,!1,null,null,h,k,null,D,F,tt,Kd),t[ee]=n.current,Ru(t),new Ku(n)},da.hydrateRoot=function(t,n,h){if(!_(t))throw Error(y(299));var k=!1,D="",F=ih,tt=sh,at=ah,pt=null;return h!=null&&(h.unstable_strictMode===!0&&(k=!0),h.identifierPrefix!==void 0&&(D=h.identifierPrefix),h.onUncaughtError!==void 0&&(F=h.onUncaughtError),h.onCaughtError!==void 0&&(tt=h.onCaughtError),h.onRecoverableError!==void 0&&(at=h.onRecoverableError),h.formState!==void 0&&(pt=h.formState)),n=Ud(t,1,!0,n,h??null,k,D,pt,F,tt,at,Kd),n.context=Fd(null),h=n.current,k=Wr(),k=kt(k),D=Wn(k),D.callback=null,Qn(h,D,k),h=k,n.current.lanes=h,le(n,h),_n(n),t[ee]=n.current,Ru(t),new ko(n)},da.version="19.2.3",da}var cp;function F1(){if(cp)return tc.exports;cp=1;function w(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(w)}catch(M){console.error(M)}}return w(),tc.exports=U1(),tc.exports}var P1=F1();function Mo(w){throw new Error('Could not dynamically require "'+w+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ic={exports:{}};var fp;function H1(){return fp||(fp=1,(function(w,M){(function(r){w.exports=r()})((function(){return(function r(y,_,d){function a(e,s){if(!_[e]){if(!y[e]){var c=typeof Mo=="function"&&Mo;if(!s&&c)return c(e,!0);if(l)return l(e,!0);var u=new Error("Cannot find module '"+e+"'");throw u.code="MODULE_NOT_FOUND",u}var o=_[e]={exports:{}};y[e][0].call(o.exports,(function(p){return a(y[e][1][p]||p)}),o,o.exports,r,y,_,d)}return _[e].exports}for(var l=typeof Mo=="function"&&Mo,i=0;i<d.length;i++)a(d[i]);return a})({1:[function(r,y,_){const d=r("fs"),a=r("fast-csv"),l=r("dayjs/plugin/customParseFormat"),i=r("dayjs/plugin/utc"),e=r("dayjs").extend(l).extend(i),s=r("../utils/stream-buf"),{fs:{exists:c}}=r("../utils/utils"),u={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};y.exports=class{constructor(o){this.workbook=o,this.worksheet=null}async readFile(o,p){if(p=p||{},!await c(o))throw new Error("File not found: "+o);const m=d.createReadStream(o),f=await this.read(m,p);return m.close(),f}read(o,p){return p=p||{},new Promise((m,f)=>{const v=this.workbook.addWorksheet(p.sheetName),b=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],T=p.map||function(I){if(I==="")return null;const H=Number(I);if(!Number.isNaN(H)&&H!==1/0)return H;const Z=b.reduce((q,V)=>{if(q)return q;const W=e(I,V,!0);return W.isValid()?W:null},null);if(Z)return new Date(Z.valueOf());const P=u[I];return P!==void 0?P:I},C=a.parse(p.parserOptions).on("data",I=>{v.addRow(I.map(T))}).on("end",()=>{C.emit("worksheet",v)});C.on("worksheet",m).on("error",f),o.pipe(C)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(o,p){return new Promise((m,f)=>{p=p||{};const v=this.workbook.getWorksheet(p.sheetName||p.sheetId),b=a.format(p.formatterOptions);o.on("finish",()=>{m()}),b.on("error",f),b.pipe(o);const{dateFormat:T,dateUTC:C}=p,I=p.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return T?C?e.utc(P).format(T):e(P).format(T):C?e.utc(P).format():e(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),H=p.includeEmptyRows===void 0||p.includeEmptyRows;let Z=1;v&&v.eachRow((P,q)=>{if(H)for(;Z++<q-1;)b.write([]);const{values:V}=P;V.shift(),b.write(V.map(I)),Z=q}),b.end()})}writeFile(o,p){const m={encoding:(p=p||{}).encoding||"utf8"},f=d.createWriteStream(o,m);return this.write(f,p)}async writeBuffer(o){const p=new s;return await this.write(p,o),p.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(r,y,_){const d=r("../utils/col-cache");class a{constructor(i,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=i,e)if(typeof e=="string"){const c=d.decodeAddress(e);this.nativeCol=c.col+s,this.nativeColOff=0,this.nativeRow=c.row+s,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+s,this.row=e.row+s):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(i){return i instanceof a||i==null?i:new a(i)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(i){this.nativeCol=Math.floor(i),this.nativeColOff=Math.floor((i-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(i){this.nativeRow=Math.floor(i),this.nativeRowOff=Math.floor((i-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(i){this.nativeCol=i.nativeCol,this.nativeColOff=i.nativeColOff,this.nativeRow=i.nativeRow,this.nativeRowOff=i.nativeRowOff}}y.exports=a},{"../utils/col-cache":19}],3:[function(r,y,_){const d=r("../utils/col-cache"),a=r("../utils/under-dash"),l=r("./enums"),{slideFormula:i}=r("../utils/shared-formula"),e=r("./note");class s{constructor(o,p,m){if(!o||!p)throw new Error("A Cell needs a Row");this._row=o,this._column=p,d.validateAddress(m),this._address=m,this._value=c.create(s.Types.Null,this),this.style=this._mergeStyle(o.style,p.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(o){this.style.numFmt=o}get font(){return this.style.font}set font(o){this.style.font=o}get alignment(){return this.style.alignment}set alignment(o){this.style.alignment=o}get border(){return this.style.border}set border(o){this.style.border=o}get fill(){return this.style.fill}set fill(o){this.style.fill=o}get protection(){return this.style.protection}set protection(o){this.style.protection=o}_mergeStyle(o,p,m){const f=o&&o.numFmt||p&&p.numFmt;f&&(m.numFmt=f);const v=o&&o.font||p&&p.font;v&&(m.font=v);const b=o&&o.alignment||p&&p.alignment;b&&(m.alignment=b);const T=o&&o.border||p&&p.border;T&&(m.border=T);const C=o&&o.fill||p&&p.fill;C&&(m.fill=C);const I=o&&o.protection||p&&p.protection;return I&&(m.protection=I),m}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===s.Types.Merge}merge(o,p){this._value.release(),this._value=c.create(s.Types.Merge,this,o),p||(this.style=o.style)}unmerge(){this.type===s.Types.Merge&&(this._value.release(),this._value=c.create(s.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(o){return this._value.type===s.Types.Merge&&this._value.isMergedTo(o)}get master(){return this.type===s.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===s.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(o){this.type!==s.Types.Merge?(this._value.release(),this._value=c.create(c.getType(o),this,o)):this._value.master.value=o}get note(){return this._comment&&this._comment.note}set note(o){this._comment=new e(o)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(o){this.type===s.Types.String&&(this._value=c.create(s.Types.Hyperlink,this,{text:this._value.value,hyperlink:o}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:o}=this._row;return{sheetName:o.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(o){this.names=[o]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(o){const{definedNames:p}=this.workbook;p.removeAllNames(this.fullAddress),o.forEach(m=>{p.addEx(this.fullAddress,m)})}addName(o){this.workbook.definedNames.addEx(this.fullAddress,o)}removeName(o){this.workbook.definedNames.removeEx(this.fullAddress,o)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(o){this._dataValidations.add(this.address,o)}get model(){const{model:o}=this._value;return o.style=this.style,this._comment&&(o.comment=this._comment.model),o}set model(o){this._value.release(),this._value=c.create(o.type,this),this._value.model=o,o.comment&&o.comment.type==="note"&&(this._comment=e.fromModel(o.comment)),o.style?this.style=o.style:this.style={}}}s.Types=l.ValueType;const c={getType:u=>u==null?s.Types.Null:u instanceof String||typeof u=="string"?s.Types.String:typeof u=="number"?s.Types.Number:typeof u=="boolean"?s.Types.Boolean:u instanceof Date?s.Types.Date:u.text&&u.hyperlink?s.Types.Hyperlink:u.formula||u.sharedFormula?s.Types.Formula:u.richText?s.Types.RichText:u.sharedString?s.Types.SharedString:u.error?s.Types.Error:s.Types.JSON,types:[{t:s.Types.Null,f:class{constructor(u){this.model={address:u.address,type:s.Types.Null}}get value(){return null}set value(u){}get type(){return s.Types.Null}get effectiveType(){return s.Types.Null}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return""}release(){}toString(){return""}}},{t:s.Types.Number,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Number,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.Number}get effectiveType(){return s.Types.Number}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:s.Types.String,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.String,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.String}get effectiveType(){return s.Types.String}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:s.Types.Date,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Date,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.Date}get effectiveType(){return s.Types.Date}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:s.Types.Hyperlink,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Hyperlink,text:o?o.text:void 0,hyperlink:o?o.hyperlink:void 0},o&&o.tooltip&&(this.model.tooltip=o.tooltip)}get value(){const u={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(u.tooltip=this.model.tooltip),u}set value(u){this.model={text:u.text,hyperlink:u.hyperlink},u.tooltip&&(this.model.tooltip=u.tooltip)}get text(){return this.model.text}set text(u){this.model.text=u}get hyperlink(){return this.model.hyperlink}set hyperlink(u){this.model.hyperlink=u}get type(){return s.Types.Hyperlink}get effectiveType(){return s.Types.Hyperlink}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:s.Types.Formula,f:class{constructor(u,o){this.cell=u,this.model={address:u.address,type:s.Types.Formula,shareType:o?o.shareType:void 0,ref:o?o.ref:void 0,formula:o?o.formula:void 0,sharedFormula:o?o.sharedFormula:void 0,result:o?o.result:void 0}}_copyModel(u){const o={},p=m=>{const f=u[m];f&&(o[m]=f)};return p("formula"),p("result"),p("ref"),p("shareType"),p("sharedFormula"),o}get value(){return this._copyModel(this.model)}set value(u){this.model=this._copyModel(u)}validate(u){switch(c.getType(u)){case s.Types.Null:case s.Types.String:case s.Types.Number:case s.Types.Date:break;case s.Types.Hyperlink:case s.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(u){this.model.formula=u}get formulaType(){return this.model.formula?l.FormulaType.Master:this.model.sharedFormula?l.FormulaType.Shared:l.FormulaType.None}get result(){return this.model.result}set result(u){this.model.result=u}get type(){return s.Types.Formula}get effectiveType(){const u=this.model.result;return u==null?l.ValueType.Null:u instanceof String||typeof u=="string"?l.ValueType.String:typeof u=="number"?l.ValueType.Number:u instanceof Date?l.ValueType.Date:u.text&&u.hyperlink?l.ValueType.Hyperlink:u.formula?l.ValueType.Formula:l.ValueType.Null}get address(){return this.model.address}set address(u){this.model.address=u}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:u}=this.cell,o=u.findCell(this.model.sharedFormula);this._translatedFormula=o&&i(o.formula,o.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:s.Types.Merge,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Merge,master:o?o.address:void 0},this._master=o,o&&o.addMergeRef()}get value(){return this._master.value}set value(u){u instanceof s?(this._master&&this._master.releaseMergeRef(),u.addMergeRef(),this._master=u):this._master.value=u}isMergedTo(u){return u===this._master}get master(){return this._master}get type(){return s.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:s.Types.JSON,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.String,value:JSON.stringify(o),rawValue:o}}get value(){return this.model.rawValue}set value(u){this.model.rawValue=u,this.model.value=JSON.stringify(u)}get type(){return s.Types.String}get effectiveType(){return s.Types.String}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:s.Types.SharedString,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.SharedString,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.SharedString}get effectiveType(){return s.Types.SharedString}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:s.Types.RichText,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.String,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}toString(){return this.model.value.richText.map(u=>u.text).join("")}get type(){return s.Types.RichText}get effectiveType(){return s.Types.RichText}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:s.Types.Boolean,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Boolean,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.Boolean}get effectiveType(){return s.Types.Boolean}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:s.Types.Error,f:class{constructor(u,o){this.model={address:u.address,type:s.Types.Error,value:o}}get value(){return this.model.value}set value(u){this.model.value=u}get type(){return s.Types.Error}get effectiveType(){return s.Types.Error}get address(){return this.model.address}set address(u){this.model.address=u}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((u,o)=>(u[o.t]=o.f,u),[]),create(u,o,p){const m=this.types[u];if(!m)throw new Error("Could not create Value of type "+u);return new m(o,p)}};y.exports=s},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(r,y,_){const d=r("../utils/under-dash"),a=r("./enums"),l=r("../utils/col-cache");class i{constructor(s,c,u){this._worksheet=s,this._number=c,u!==!1&&(this.defn=u)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return l.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(s){s?(this.key=s.key,this.width=s.width!==void 0?s.width:9,this.outlineLevel=s.outlineLevel,s.style?this.style=s.style:this.style={},this.header=s.header,this._hidden=!!s.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(s){s!==void 0?(this._header=s,this.headers.forEach((c,u)=>{this._worksheet.getCell(u+1,this.number).value=c})):this._header=void 0}get key(){return this._key}set key(s){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=s,s&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(s){this._hidden=s}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(s){this._outlineLevel=s}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(s){return this.width===s.width&&this.hidden===s.hidden&&this.outlineLevel===s.outlineLevel&&d.isEqual(this.style,s.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const s=this.style;return!s||!(s.font||s.numFmt||s.alignment||s.border||s.fill||s.protection)}get headerCount(){return this.headers.length}eachCell(s,c){const u=this.number;c||(c=s,s=null),this._worksheet.eachRow(s,(o,p)=>{c(o.getCell(u),p)})}get values(){const s=[];return this.eachCell((c,u)=>{c&&c.type!==a.ValueType.Null&&(s[u]=c.value)}),s}set values(s){if(!s)return;const c=this.number;let u=0;s.hasOwnProperty("0")&&(u=1),s.forEach((o,p)=>{this._worksheet.getCell(p+u,c).value=o})}_applyStyle(s,c){return this.style[s]=c,this.eachCell(u=>{u[s]=c}),c}get numFmt(){return this.style.numFmt}set numFmt(s){this._applyStyle("numFmt",s)}get font(){return this.style.font}set font(s){this._applyStyle("font",s)}get alignment(){return this.style.alignment}set alignment(s){this._applyStyle("alignment",s)}get protection(){return this.style.protection}set protection(s){this._applyStyle("protection",s)}get border(){return this.style.border}set border(s){this._applyStyle("border",s)}get fill(){return this.style.fill}set fill(s){this._applyStyle("fill",s)}static toModel(s){const c=[];let u=null;return s&&s.forEach((o,p)=>{o.isDefault?u&&(u=null):u&&o.equivalentTo(u)?u.max=p+1:(u={min:p+1,max:p+1,width:o.width!==void 0?o.width:9,style:o.style,isCustomWidth:o.isCustomWidth,hidden:o.hidden,outlineLevel:o.outlineLevel,collapsed:o.collapsed},c.push(u))}),c.length?c:void 0}static fromModel(s,c){const u=[];let o=1,p=0;for(c=(c=c||[]).sort((function(m,f){return m.min-f.min}));p<c.length;){const m=c[p++];for(;o<m.min;)u.push(new i(s,o++));for(;o<=m.max;)u.push(new i(s,o++,m))}return u.length?u:null}}y.exports=i},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(r,y,_){y.exports=class{constructor(d){this.model=d||{}}add(d,a){return this.model[d]=a}find(d){return this.model[d]}remove(d){this.model[d]=void 0}}},{}],6:[function(r,y,_){const d=r("../utils/under-dash"),a=r("../utils/col-cache"),l=r("../utils/cell-matrix"),i=r("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;y.exports=class{constructor(){this.matrixMap={}}getMatrix(s){return this.matrixMap[s]||(this.matrixMap[s]=new l)}add(s,c){const u=a.decodeEx(s);this.addEx(u,c)}addEx(s,c){const u=this.getMatrix(c);if(s.top)for(let o=s.left;o<=s.right;o++)for(let p=s.top;p<=s.bottom;p++){const m={sheetName:s.sheetName,address:a.n2l(o)+p,row:p,col:o};u.addCellEx(m)}else u.addCellEx(s)}remove(s,c){const u=a.decodeEx(s);this.removeEx(u,c)}removeEx(s,c){this.getMatrix(c).removeCellEx(s)}removeAllNames(s){d.each(this.matrixMap,c=>{c.removeCellEx(s)})}forEach(s){d.each(this.matrixMap,(c,u)=>{c.forEach(o=>{s(u,o)})})}getNames(s){return this.getNamesEx(a.decodeEx(s))}getNamesEx(s){return d.map(this.matrixMap,(c,u)=>c.findCellEx(s)&&u).filter(Boolean)}_explore(s,c){c.mark=!1;const{sheetName:u}=c,o=new i(c.row,c.col,c.row,c.col,u);let p,m;function f(b,T){const C=s.findCellAt(u,b,c.col);return!(!C||!C.mark)&&(o[T]=b,C.mark=!1,!0)}for(m=c.row-1;f(m,"top");m--);for(m=c.row+1;f(m,"bottom");m++);function v(b,T){const C=[];for(m=o.top;m<=o.bottom;m++){const I=s.findCellAt(u,m,b);if(!I||!I.mark)return!1;C.push(I)}o[T]=b;for(let I=0;I<C.length;I++)C[I].mark=!1;return!0}for(p=c.col-1;v(p,"left");p--);for(p=c.col+1;v(p,"right");p++);return o}getRanges(s,c){return(c=c||this.matrixMap[s])?(c.forEach(u=>{u.mark=!0}),{name:s,ranges:c.map(u=>u.mark&&this._explore(c,u)).filter(Boolean).map(u=>u.$shortRange)}):{name:s,ranges:[]}}normaliseMatrix(s,c){s.forEachInSheet(c,(u,o,p)=>{u&&(u.row===o&&u.col===p||(u.row=o,u.col=p,u.address=a.n2l(p)+o))})}spliceRows(s,c,u,o){d.each(this.matrixMap,p=>{p.spliceRows(s,c,u,o),this.normaliseMatrix(p,s)})}spliceColumns(s,c,u,o){d.each(this.matrixMap,p=>{p.spliceColumns(s,c,u,o),this.normaliseMatrix(p,s)})}get model(){return d.map(this.matrixMap,(s,c)=>this.getRanges(c,s)).filter(s=>s.ranges.length)}set model(s){const c=this.matrixMap={};s.forEach(u=>{const o=c[u.name]=new l;u.ranges.forEach(p=>{e.test(p.split("!").pop()||"")&&o.addCell(p)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(r,y,_){y.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(r,y,_){const d=r("../utils/col-cache"),a=r("./anchor");y.exports=class{constructor(l,i){this.worksheet=l,this.model=i}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(l){let{type:i,imageId:e,range:s,hyperlinks:c}=l;if(this.type=i,this.imageId=e,i==="image")if(typeof s=="string"){const u=d.decode(s);this.range={tl:new a(this.worksheet,{col:u.left,row:u.top},-1),br:new a(this.worksheet,{col:u.right,row:u.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,s.tl,0),br:s.br&&new a(this.worksheet,s.br,0),ext:s.ext,editAs:s.editAs,hyperlinks:c||s.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(r,y,_){const d=r("../utils/under-dash");class a{constructor(i){this.note=i}get model(){let i=null;return typeof this.note==="string"?i={type:"note",note:{texts:[{text:this.note}]}}:i={type:"note",note:this.note},d.deepMerge({},a.DEFAULT_CONFIGS,i)}set model(i){const{note:e}=i,{texts:s}=e;s.length===1&&Object.keys(s[0]).length===1?this.note=s[0].text:this.note=e}static fromModel(i){const e=new a;return e.model=i,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},y.exports=a},{"../utils/under-dash":26}],10:[function(r,y,_){const d=r("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(i,e,s,c,u){if(arguments.length<4){const o=d.decodeAddress(i),p=d.decodeAddress(e);this.model={top:Math.min(o.row,p.row),left:Math.min(o.col,p.col),bottom:Math.max(o.row,p.row),right:Math.max(o.col,p.col),sheetName:s},this.setTLBR(o.row,o.col,p.row,p.col,u)}else this.model={top:Math.min(i,s),left:Math.min(e,c),bottom:Math.max(i,s),right:Math.max(e,c),sheetName:u}}decode(i){switch(i.length){case 5:this.setTLBR(i[0],i[1],i[2],i[3],i[4]);break;case 4:this.setTLBR(i[0],i[1],i[2],i[3]);break;case 3:this.setTLBR(i[0],i[1],i[2]);break;case 2:this.setTLBR(i[0],i[1]);break;case 1:{const e=i[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const s=d.decodeEx(e);s.top?this.model={top:s.top,left:s.left,bottom:s.bottom,right:s.right,sheetName:s.sheetName}:this.model={top:s.row,left:s.col,bottom:s.row,right:s.col,sheetName:s.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+i.length)}}get top(){return this.model.top||1}set top(i){this.model.top=i}get left(){return this.model.left||1}set left(i){this.model.left=i}get bottom(){return this.model.bottom||1}set bottom(i){this.model.bottom=i}get right(){return this.model.right||1}set right(i){this.model.right=i}get sheetName(){return this.model.sheetName}set sheetName(i){this.model.sheetName=i}get _serialisedSheetName(){const{sheetName:i}=this.model;return i?/^[a-zA-Z0-9]*$/.test(i)?i+"!":`'${i}'!`:""}expand(i,e,s,c){(!this.model.top||i<this.top)&&(this.top=i),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||s>this.bottom)&&(this.bottom=s),(!this.model.right||c>this.right)&&(this.right=c)}expandRow(i){if(i){const{dimensions:e,number:s}=i;e&&this.expand(s,e.min,s,e.max)}}expandToAddress(i){const e=d.decodeEx(i);this.expand(e.row,e.col,e.row,e.col)}get tl(){return d.n2l(this.left)+this.top}get $t$l(){return`$${d.n2l(this.left)}$${this.top}`}get br(){return d.n2l(this.right)+this.bottom}get $b$r(){return`$${d.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(i){return(!i.sheetName||!this.sheetName||i.sheetName===this.sheetName)&&!(i.bottom<this.top)&&!(i.top>this.bottom)&&!(i.right<this.left)&&!(i.left>this.right)}contains(i){const e=d.decodeEx(i);return this.containsEx(e)}containsEx(i){return(!i.sheetName||!this.sheetName||i.sheetName===this.sheetName)&&i.row>=this.top&&i.row<=this.bottom&&i.col>=this.left&&i.col<=this.right}forEachAddress(i){for(let e=this.left;e<=this.right;e++)for(let s=this.top;s<=this.bottom;s++)i(d.encodeAddress(s,e),s,e)}}y.exports=a},{"../utils/col-cache":19}],11:[function(r,y,_){const d=r("../utils/under-dash"),a=r("./enums"),l=r("../utils/col-cache"),i=r("./cell");y.exports=class{constructor(e,s){this._worksheet=e,this._number=s,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let s=this._cells[e.col-1];if(!s){const c=this._worksheet.getColumn(e.col);s=new i(this,c,e.address),this._cells[e.col-1]=s}return s}getCell(e){if(typeof e=="string"){const s=this._worksheet.getColumnKey(e);e=s?s.number:l.l2n(e)}return this._cells[e-1]||this.getCellEx({address:l.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,s){const c=e+s;for(var u=arguments.length,o=new Array(u>2?u-2:0),p=2;p<u;p++)o[p-2]=arguments[p];const m=o.length-s,f=this._cells.length;let v,b,T;if(m<0)for(v=e+o.length;v<=f;v++)T=this._cells[v-1],b=this._cells[v-m-1],b?(T=this.getCell(v),T.value=b.value,T.style=b.style,T._comment=b._comment):T&&(T.value=null,T.style={},T._comment=void 0);else if(m>0)for(v=f;v>=c;v--)b=this._cells[v-1],b?(T=this.getCell(v+m),T.value=b.value,T.style=b.style,T._comment=b._comment):this._cells[v+m-1]=void 0;for(v=0;v<o.length;v++)T=this.getCell(e+v),T.value=o[v],T.style={},T._comment=void 0}eachCell(e,s){if(s||(s=e,e=null),e&&e.includeEmpty){const c=this._cells.length;for(let u=1;u<=c;u++)s(this.getCell(u),u)}else this._cells.forEach((c,u)=>{c&&c.type!==a.ValueType.Null&&s(c,u+1)})}addPageBreak(e,s){const c=this._worksheet,u=Math.max(0,e-1)||0,o=Math.max(0,s-1)||16838,p={id:this._number,max:o,man:1};u&&(p.min=u),c.rowBreaks.push(p)}get values(){const e=[];return this._cells.forEach(s=>{s&&s.type!==a.ValueType.Null&&(e[s.col]=s.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let s=0;e.hasOwnProperty("0")&&(s=1),e.forEach((c,u)=>{c!==void 0&&(this.getCellEx({address:l.encodeAddress(this._number,u+s),row:this._number,col:u+s}).value=c)})}else this._worksheet.eachColumnKey((s,c)=>{e[c]!==void 0&&(this.getCellEx({address:l.encodeAddress(this._number,s.number),row:this._number,col:s.number}).value=e[c])})}get hasValues(){return d.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,s=0;return this._cells.forEach(c=>{c&&c.type!==a.ValueType.Null&&((!e||e>c.col)&&(e=c.col),s<c.col&&(s=c.col))}),e>0?{min:e,max:s}:null}_applyStyle(e,s){return this.style[e]=s,this._cells.forEach(c=>{c&&(c[e]=s)}),s}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let s=0,c=0;return this._cells.forEach(u=>{if(u){const o=u.model;o&&((!s||s>u.col)&&(s=u.col),c<u.col&&(c=u.col),e.push(o))}}),this.height||e.length?{cells:e,number:this.number,min:s,max:c,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let s;this._cells=[],e.cells.forEach(c=>{switch(c.type){case i.Types.Merge:break;default:{let u;if(c.address)u=l.decodeAddress(c.address);else if(s){const{row:o}=s,p=s.col+1;u={row:o,col:p,address:l.encodeAddress(o,p),$col$row:`$${l.n2l(p)}$${o}`}}s=u,this.getCellEx(u).model=c;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(r,y,_){const d=r("../utils/col-cache");class a{constructor(i,e,s){this.table=i,this.column=e,this.index=s}_set(i,e){this.table.cacheState(),this.column[i]=e}get name(){return this.column.name}set name(i){this._set("name",i)}get filterButton(){return this.column.filterButton}set filterButton(i){this.column.filterButton=i}get style(){return this.column.style}set style(i){this.column.style=i}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(i){this._set("totalsRowLabel",i)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(i){this._set("totalsRowFunction",i)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(i){this._set("totalsRowResult",i)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(i){this._set("totalsRowFormula",i)}}y.exports=class{constructor(l,i){this.worksheet=l,i&&(this.table=i,this.validate(),this.store())}getFormula(l){switch(l.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${l.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${l.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${l.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${l.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${l.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${l.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${l.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${l.name}])`;case"custom":return l.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+l.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:l}=this,i=(m,f,v)=>{m[f]===void 0&&(m[f]=v)};i(l,"headerRow",!0),i(l,"totalsRow",!1),i(l,"style",{}),i(l.style,"theme","TableStyleMedium2"),i(l.style,"showFirstColumn",!1),i(l.style,"showLastColumn",!1),i(l.style,"showRowStripes",!1),i(l.style,"showColumnStripes",!1);const e=(m,f)=>{if(!m)throw new Error(f)};e(l.ref,"Table must have ref"),e(l.columns,"Table must have column definitions"),e(l.rows,"Table must have row definitions"),l.tl=d.decodeAddress(l.ref);const{row:s,col:c}=l.tl;e(s>0,"Table must be on valid row"),e(c>0,"Table must be on valid col");const{width:u,filterHeight:o,tableHeight:p}=this;l.autoFilterRef=d.encode(s,c,s+o-1,c+u-1),l.tableRef=d.encode(s,c,s+p-1,c+u-1),l.columns.forEach((m,f)=>{e(m.name,`Column ${f} must have a name`),f===0?i(m,"totalsRowLabel","Total"):(i(m,"totalsRowFunction","none"),m.totalsRowFormula=this.getFormula(m))})}store(){const l=(o,p)=>{p&&Object.keys(p).forEach(m=>{o[m]=p[m]})},{worksheet:i,table:e}=this,{row:s,col:c}=e.tl;let u=0;if(e.headerRow){const o=i.getRow(s+u++);e.columns.forEach((p,m)=>{const{style:f,name:v}=p,b=o.getCell(c+m);b.value=v,l(b,f)})}if(e.rows.forEach(o=>{const p=i.getRow(s+u++);o.forEach((m,f)=>{const v=p.getCell(c+f);v.value=m,l(v,e.columns[f].style)})}),e.totalsRow){const o=i.getRow(s+u++);e.columns.forEach((p,m)=>{const f=o.getCell(c+m);if(m===0)f.value=p.totalsRowLabel;else{const v=this.getFormula(p);f.value=v?{formula:p.totalsRowFormula,result:p.totalsRowResult}:null}l(f,p.style)})}}load(l){const{table:i}=this,{row:e,col:s}=i.tl;let c=0;if(i.headerRow){const u=l.getRow(e+c++);i.columns.forEach((o,p)=>{u.getCell(s+p).value=o.name})}if(i.rows.forEach(u=>{const o=l.getRow(e+c++);u.forEach((p,m)=>{o.getCell(s+m).value=p})}),i.totalsRow){const u=l.getRow(e+c++);i.columns.forEach((o,p)=>{const m=u.getCell(s+p);p===0?m.value=o.totalsRowLabel:this.getFormula(o)&&(m.value={formula:o.totalsRowFormula,result:o.totalsRowResult})})}}get model(){return this.table}set model(l){this.table=l}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const l=d.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let i=0;i<this._cache.tableHeight;i++){const e=this.worksheet.getRow(l.row+i);for(let s=0;s<this._cache.width;s++)e.getCell(l.col+s).value=null}else{for(let i=this.tableHeight;i<this._cache.tableHeight;i++){const e=this.worksheet.getRow(l.row+i);for(let s=0;s<this._cache.width;s++)e.getCell(l.col+s).value=null}for(let i=0;i<this.tableHeight;i++){const e=this.worksheet.getRow(l.row+i);for(let s=this.width;s<this._cache.width;s++)e.getCell(l.col+s).value=null}}this.store()}addRow(l,i){this.cacheState(),i===void 0?this.table.rows.push(l):this.table.rows.splice(i,0,l)}removeRows(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(l,i)}getColumn(l){const i=this.table.columns[l];return new a(this,i,l)}addColumn(l,i,e){this.cacheState(),e===void 0?(this.table.columns.push(l),this.table.rows.forEach((s,c)=>{s.push(i[c])})):(this.table.columns.splice(e,0,l),this.table.rows.forEach((s,c)=>{s.splice(e,0,i[c])}))}removeColumns(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(l,i),this.table.rows.forEach(e=>{e.splice(l,i)})}_assign(l,i,e){this.cacheState(),l[i]=e}get ref(){return this.table.ref}set ref(l){this._assign(this.table,"ref",l)}get name(){return this.table.name}set name(l){this.table.name=l}get displayName(){return this.table.displyName||this.table.name}set displayNamename(l){this.table.displayName=l}get headerRow(){return this.table.headerRow}set headerRow(l){this._assign(this.table,"headerRow",l)}get totalsRow(){return this.table.totalsRow}set totalsRow(l){this._assign(this.table,"totalsRow",l)}get theme(){return this.table.style.name}set theme(l){this.table.style.name=l}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(l){this.table.style.showFirstColumn=l}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(l){this.table.style.showLastColumn=l}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(l){this.table.style.showRowStripes=l}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(l){this.table.style.showColumnStripes=l}}},{"../utils/col-cache":19}],13:[function(r,y,_){const d=r("./worksheet"),a=r("./defined-names"),l=r("../xlsx/xlsx"),i=r("../csv/csv");y.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new l(this)),this._xlsx}get csv(){return this._csv||(this._csv=new i(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,s){const c=this.nextId;s&&(typeof s=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),s={properties:{tabColor:{argb:s}}}):(s.argb||s.theme||s.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),s={properties:{tabColor:s}}));const u=this._worksheets.reduce((m,f)=>(f&&f.orderNo)>m?f.orderNo:m,0),o=Object.assign({},s,{id:c,name:e,orderNo:u+1,workbook:this}),p=new d(o);return this._worksheets[c]=p,p}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const s=this.getWorksheet(e);s&&s.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(s=>s&&s.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,s)=>e.orderNo-s.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(s=>{e(s,s.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const s=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),s}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(s=>{const{id:c,name:u,state:o}=s,p=e.sheets&&e.sheets.findIndex(m=>m.id===c);(this._worksheets[c]=new d({id:c,name:u,orderNo:p,state:o,workbook:this})).model=s}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(r,y,_){const d=r("../utils/under-dash"),a=r("../utils/col-cache"),l=r("./range"),i=r("./row"),e=r("./column"),s=r("./enums"),c=r("./image"),u=r("./table"),o=r("./data-validations"),p=r("../utils/encryptor"),{copyStyle:m}=r("../utils/copy-style");y.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},f.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new o,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const f=new l;return this._rows.forEach(v=>{if(v){const b=v.dimensions;b&&f.expand(v.number,b.min,v.number,b.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((T,C)=>{const I=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(T,I)},0);let v=1;const b=this._columns=[];f.forEach(T=>{const C=new e(this,v++,!1);b.push(C),C.defn=T})}getColumnKey(f){return this._keys[f]}setColumnKey(f,v){this._keys[f]=v}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){d.each(this._keys,f)}getColumn(f){if(typeof f=="string"){const v=this._keys[f];if(v)return v;f=a.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let v=this._columns.length+1;for(;v<=f;)this._columns.push(new e(this,v++))}return this._columns[f-1]}spliceColumns(f,v){const b=this._rows.length;for(var T=arguments.length,C=new Array(T>2?T-2:0),I=2;I<T;I++)C[I-2]=arguments[I];if(C.length>0)for(let q=0;q<b;q++){const V=[f,v];C.forEach($=>{V.push($[q]||null)});const W=this.getRow(q+1);W.splice.apply(W,V)}else this._rows.forEach(q=>{q&&q.splice(f,v)});const H=C.length-v,Z=f+v,P=this._columns.length;if(H<0)for(let q=f+C.length;q<=P;q++)this.getColumn(q).defn=this.getColumn(q-H).defn;else if(H>0)for(let q=P;q>=Z;q--)this.getColumn(q+H).defn=this.getColumn(q).defn;for(let q=f;q<f+C.length;q++)this.getColumn(q).defn=null;this.workbook.definedNames.spliceColumns(this.name,f,v,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let f=0;return this.eachRow(v=>{f=Math.max(f,v.cellCount)}),f}get actualColumnCount(){const f=[];let v=0;return this.eachRow(b=>{b.eachCell(T=>{let{col:C}=T;f[C]||(f[C]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const f=this._rows;let v=f.length;for(;v>0&&f[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,v){return this._rows.slice(f-1,f-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let v=this._rows[f-1];return v||(v=this._rows[f-1]=new i(this,f)),v}getRows(f,v){if(v<1)return;const b=[];for(let T=f;T<f+v;T++)b.push(this.getRow(T));return b}addRow(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=this._nextRow,T=this.getRow(b);return T.values=f,this._setStyleOption(b,v[0]==="i"?v:"n"),T}addRows(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=[];return f.forEach(T=>{b.push(this.addRow(T,v))}),b}insertRow(f,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,v),this._setStyleOption(f,b),this.getRow(f)}insertRows(f,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...v),b!=="n")for(let T=0;T<v.length;T++)b[0]==="o"&&this.findRow(v.length+f+T)!==void 0?this._copyStyle(v.length+f+T,f+T,b[1]==="+"):b[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f+T,b[1]==="+");return this.getRows(f,v.length)}_setStyleOption(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,v[1]==="+"):v[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,v[1]==="+")}_copyStyle(f,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const T=this.getRow(f),C=this.getRow(v);C.style=m(T.style),T.eachCell({includeEmpty:b},(I,H)=>{C.getCell(H).style=m(I.style)}),C.height=T.height}duplicateRow(f,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const T=this._rows[f-1],C=new Array(v).fill(T.values);this.spliceRows(f+1,b?0:v,...C);for(let I=0;I<v;I++){const H=this._rows[f+I];H.style=T.style,H.height=T.height,T.eachCell({includeEmpty:!0},(Z,P)=>{H.getCell(P).style=Z.style})}}spliceRows(f,v){const b=f+v;for(var T=arguments.length,C=new Array(T>2?T-2:0),I=2;I<T;I++)C[I-2]=arguments[I];const H=C.length,Z=H-v,P=this._rows.length;let q,V;if(Z<0)for(f===P&&(this._rows[P-1]=void 0),q=b;q<=P;q++)if(V=this._rows[q-1],V){const W=this.getRow(q+Z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},($,R)=>{W.getCell(R).style=$.style}),this._rows[q-1]=void 0}else this._rows[q+Z-1]=void 0;else if(Z>0)for(q=P;q>=b;q--)if(V=this._rows[q-1],V){const W=this.getRow(q+Z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},($,R)=>{if(W.getCell(R).style=$.style,$._value.constructor.name==="MergeValue"){const z=this.getRow($._row._number+H).getCell(R),A=$._value._master,g=this.getRow(A._row._number+H).getCell(A._column._number);z.merge(g)}})}else this._rows[q+Z-1]=void 0;for(q=0;q<H;q++){const W=this.getRow(f+q);W.style={},W.values=C[q]}this.workbook.definedNames.spliceRows(this.name,f,v,H)}eachRow(f,v){if(v||(v=f,f=void 0),f&&f.includeEmpty){const b=this._rows.length;for(let T=1;T<=b;T++)v(this.getRow(T),T)}else this._rows.forEach(b=>{b&&b.hasValues&&v(b,b.number)})}getSheetValues(){const f=[];return this._rows.forEach(v=>{v&&(f[v.number]=v.values)}),f}findCell(f,v){const b=a.getAddress(f,v),T=this._rows[b.row-1];return T?T.findCell(b.col):void 0}getCell(f,v){const b=a.getAddress(f,v);return this.getRow(b.row).getCellEx(b)}mergeCells(){for(var f=arguments.length,v=new Array(f),b=0;b<f;b++)v[b]=arguments[b];const T=new l(v);this._mergeCellsInternal(T)}mergeCellsWithoutStyle(){for(var f=arguments.length,v=new Array(f),b=0;b<f;b++)v[b]=arguments[b];const T=new l(v);this._mergeCellsInternal(T,!0)}_mergeCellsInternal(f,v){d.each(this._merges,T=>{if(T.intersects(f))throw new Error("Cannot merge already merged cells")});const b=this.getCell(f.top,f.left);for(let T=f.top;T<=f.bottom;T++)for(let C=f.left;C<=f.right;C++)(T>f.top||C>f.left)&&this.getCell(T,C).merge(b,v);this._merges[b.address]=f}_unMergeMaster(f){const v=this._merges[f.address];if(v){for(let b=v.top;b<=v.bottom;b++)for(let T=v.left;T<=v.right;T++)this.getCell(b,T).unmerge();delete this._merges[f.address]}}get hasMerges(){return d.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,v=new Array(f),b=0;b<f;b++)v[b]=arguments[b];const T=new l(v);for(let C=T.top;C<=T.bottom;C++)for(let I=T.left;I<=T.right;I++){const H=this.findCell(C,I);H&&(H.type===s.ValueType.Merge?this._unMergeMaster(H.master):this._merges[H.address]&&this._unMergeMaster(H))}}fillFormula(f,v,b){let T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=a.decode(f),{top:I,left:H,bottom:Z,right:P}=C,q=P-H+1,V=a.encodeAddress(I,H),W=T==="shared";let $;$=typeof b=="function"?b:Array.isArray(b)?Array.isArray(b[0])?(z,A)=>b[z-I][A-H]:(z,A)=>b[(z-I)*q+(A-H)]:()=>{};let R=!0;for(let z=I;z<=Z;z++)for(let A=H;A<=P;A++)R?(this.getCell(z,A).value={shareType:T,formula:v,ref:f,result:$(z,A)},R=!1):this.getCell(z,A).value=W?{sharedFormula:V,result:$(z,A)}:$(z,A)}addImage(f,v){const b={type:"image",imageId:f,range:v};this._media.push(new c(this,b))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){const v={type:"background",imageId:f};this._media.push(new c(this,v))}getBackgroundImageId(){const f=this._media.find(v=>v.type==="background");return f&&f.imageId}protect(f,v){return new Promise(b=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=p.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!f&&"spinCount"in v&&delete this.sheetProtection.spinCount),b()})}unprotect(){this.sheetProtection=null}addTable(f){const v=new u(this,f);return this.tables[f.name]=v,v}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){const f={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(T=>T.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(T=>T.model),conditionalFormattings:this.conditionalFormattings};f.cols=e.toModel(this.columns);const v=f.rows=[],b=f.dimensions=new l;return this._rows.forEach(T=>{const C=T&&T.model;C&&(b.expand(C.number,C.min,C.number,C.max),v.push(C))}),f.merges=[],d.each(this._merges,T=>{f.merges.push(T.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(v=>{const b=new i(this,v.number);this._rows[b.number-1]=b,b.model=v})}_parseMergeCells(f){d.each(f.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(f){this.name=f.name,this._columns=e.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new o(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(v=>new c(this,v)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((v,b)=>{const T=new u;return T.model=b,v[b.name]=T,v},{}),this.conditionalFormattings=f.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(r,y,_){r("core-js/modules/es.promise"),r("core-js/modules/es.promise.finally"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.keys"),r("core-js/modules/es.object.values"),r("core-js/modules/es.symbol"),r("core-js/modules/es.symbol.async-iterator"),r("core-js/modules/es.array.iterator"),r("core-js/modules/es.array.includes"),r("core-js/modules/es.array.find-index"),r("core-js/modules/es.array.find"),r("core-js/modules/es.string.from-code-point"),r("core-js/modules/es.string.includes"),r("core-js/modules/es.number.is-nan"),r("regenerator-runtime/runtime");const d={Workbook:r("./doc/workbook")},a=r("./doc/enums");Object.keys(a).forEach(l=>{d[l]=a[l]}),y.exports=d},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(r,y,_){const d=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");_.bufferToString=function(a){return typeof a=="string"?a:d?d.decode(a):a.toString()}},{}],17:[function(r,y,_){const d=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=r("buffer");_.stringToBuffer=function(l){return typeof l!="string"?l:d?a.from(d.encode(l).buffer):a.from(l)}},{buffer:220}],18:[function(r,y,_){const d=r("./under-dash"),a=r("./col-cache");y.exports=class{constructor(l){this.template=l,this.sheets={}}addCell(l){this.addCellEx(a.decodeEx(l))}getCell(l){return this.findCellEx(a.decodeEx(l),!0)}findCell(l){return this.findCellEx(a.decodeEx(l),!1)}findCellAt(l,i,e){const s=this.sheets[l],c=s&&s[i];return c&&c[e]}addCellEx(l){if(l.top)for(let i=l.top;i<=l.bottom;i++)for(let e=l.left;e<=l.right;e++)this.getCellAt(l.sheetName,i,e);else this.findCellEx(l,!0)}getCellEx(l){return this.findCellEx(l,!0)}findCellEx(l,i){const e=this.findSheet(l,i),s=this.findSheetRow(e,l,i);return this.findRowCell(s,l,i)}getCellAt(l,i,e){const s=this.sheets[l]||(this.sheets[l]=[]),c=s[i]||(s[i]=[]);return c[e]||(c[e]={sheetName:l,address:a.n2l(e)+i,row:i,col:e})}removeCellEx(l){const i=this.findSheet(l);if(!i)return;const e=this.findSheetRow(i,l);e&&delete e[l.col]}forEachInSheet(l,i){const e=this.sheets[l];e&&e.forEach((s,c)=>{s&&s.forEach((u,o)=>{u&&i(u,c,o)})})}forEach(l){d.each(this.sheets,(i,e)=>{this.forEachInSheet(e,l)})}map(l){const i=[];return this.forEach(e=>{i.push(l(e))}),i}findSheet(l,i){const e=l.sheetName;return this.sheets[e]?this.sheets[e]:i?this.sheets[e]=[]:void 0}findSheetRow(l,i,e){const{row:s}=i;return l&&l[s]?l[s]:e?l[s]=[]:void 0}findRowCell(l,i,e){const{col:s}=i;return l&&l[s]?l[s]:e?l[s]=this.template?Object.assign(i,JSON.parse(JSON.stringify(this.template))):i:void 0}spliceRows(l,i,e,s){const c=this.sheets[l];if(c){const u=[];for(let o=0;o<s;o++)u.push([]);c.splice(i,e,...u)}}spliceColumns(l,i,e,s){const c=this.sheets[l];if(c){const u=[];for(let o=0;o<s;o++)u.push(null);d.each(c,o=>{o.splice(i,e,...u)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(r,y,_){const d=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:l=>l<=26?1:l<=676?2:3,_fill(l){let i,e,s,c,u,o=1;if(l>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&l>=1){for(;o<=26;)i=this._dictionary[o-1],this._n2l[o]=i,this._l2n[i]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&l>=2){for(o=27;o<=702;)e=o-27,s=e%26,c=Math.floor(e/26),i=this._dictionary[c]+this._dictionary[s],this._n2l[o]=i,this._l2n[i]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&l>=3){for(o=703;o<=16384;)e=o-703,s=e%26,c=Math.floor(e/26)%26,u=Math.floor(e/676),i=this._dictionary[u]+this._dictionary[c]+this._dictionary[s],this._n2l[o]=i,this._l2n[i]=o,o++;this._l2nFill=3}},l2n(l){if(this._l2n[l]||this._fill(l.length),!this._l2n[l])throw new Error("Out of bounds. Invalid column letter: "+l);return this._l2n[l]},n2l(l){if(l<1||l>16384)throw new Error(l+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[l]||this._fill(this._level(l)),this._n2l[l]},_hash:{},validateAddress(l){if(!d.test(l))throw new Error("Invalid Address: "+l);return!0},decodeAddress(l){const i=l.length<5&&this._hash[l];if(i)return i;let e=!1,s="",c=0,u=!1,o="",p=0;for(let f,v=0;v<l.length;v++)if(f=l.charCodeAt(v),!u&&f>=65&&f<=90)e=!0,s+=l[v],c=26*c+f-64;else if(f>=48&&f<=57)u=!0,o+=l[v],p=10*p+f-48;else if(u&&e&&f!==36)break;if(e){if(c>16384)throw new Error("Out of bounds. Invalid column letter: "+s)}else c=void 0;u||(p=void 0);const m={address:l=s+o,col:c,row:p,$col$row:`$${s}$${o}`};return c<=100&&p<=100&&(this._hash[l]=m,this._hash[m.$col$row]=m),m},getAddress(l,i){if(i){const e=this.n2l(i)+l;return this.decodeAddress(e)}return this.decodeAddress(l)},decode(l){const i=l.split(":");if(i.length===2){const e=this.decodeAddress(i[0]),s=this.decodeAddress(i[1]),c={top:Math.min(e.row,s.row),left:Math.min(e.col,s.col),bottom:Math.max(e.row,s.row),right:Math.max(e.col,s.col)};return c.tl=this.n2l(c.left)+c.top,c.br=this.n2l(c.right)+c.bottom,c.dimensions=`${c.tl}:${c.br}`,c}return this.decodeAddress(l)},decodeEx(l){const i=l.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=i[1]||i[2],s=i[3],c=s.split(":");if(c.length>1){let o=this.decodeAddress(c[0]),p=this.decodeAddress(c[1]);const m=Math.min(o.row,p.row),f=Math.min(o.col,p.col),v=Math.max(o.row,p.row),b=Math.max(o.col,p.col);return o=this.n2l(f)+m,p=this.n2l(b)+v,{top:m,left:f,bottom:v,right:b,sheetName:e,tl:{address:o,col:f,row:m,$col$row:`$${this.n2l(f)}$${m}`,sheetName:e},br:{address:p,col:b,row:v,$col$row:`$${this.n2l(b)}$${v}`,sheetName:e},dimensions:`${o}:${p}`}}if(s.startsWith("#"))return e?{sheetName:e,error:s}:{error:s};const u=this.decodeAddress(s);return e?{sheetName:e,...u}:u},encodeAddress:(l,i)=>a.n2l(i)+l,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(l,i){const[e,s,,c,u]=l,[o,p]=i;return o>=e&&o<=c&&p>=s&&p<=u}};y.exports=a},{}],20:[function(r,y,_){const d=(l,i)=>({...l,...i.reduce((e,s)=>(l[s]&&(e[s]={...l[s]}),e),{})}),a=function(l,i,e){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];l[e]&&(i[e]=d(l[e],s))};_.copyStyle=l=>{if(!l)return l;if(i=l,Object.keys(i).length===0)return{};var i;const e={...l};return a(l,e,"font",["color"]),a(l,e,"alignment"),a(l,e,"protection"),l.border&&(a(l,e,"border"),a(l.border,e.border,"top",["color"]),a(l.border,e.border,"left",["color"]),a(l.border,e.border,"bottom",["color"]),a(l.border,e.border,"right",["color"]),a(l.border,e.border,"diagonal",["color"])),l.fill&&(a(l,e,"fill",["fgColor","bgColor","center"]),l.fill.stops&&(e.fill.stops=l.fill.stops.map(s=>d(s,["color"])))),e}},{}],21:[function(r,y,_){(function(d){(function(){const a=r("crypto"),l={hash(i){const e=a.createHash(i);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return e.update(d.concat(c)),e.digest()},convertPasswordToHash(i,e,s,c){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const u=d.from(i,"utf16le");let o=this.hash(e,d.from(s,"base64"),u);for(let p=0;p<c;p++){const m=d.alloc(4);m.writeUInt32LE(p,0),o=this.hash(e,o,m)}return o.toString("base64")},randomBytes:i=>a.randomBytes(i)};y.exports=l}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(r,y,_){const{SaxesParser:d}=r("saxes"),{PassThrough:a}=r("readable-stream"),{bufferToString:l}=r("./browser-buffer-decode");y.exports=async function*(i){i.pipe&&!i[Symbol.asyncIterator]&&(i=i.pipe(new a));const e=new d;let s;e.on("error",u=>{s=u});let c=[];e.on("opentag",u=>c.push({eventType:"opentag",value:u})),e.on("text",u=>c.push({eventType:"text",value:u})),e.on("closetag",u=>c.push({eventType:"closetag",value:u}));for await(const u of i){if(e.write(l(u)),s)throw s;yield c,c=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(r,y,_){const d=r("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,l=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;y.exports={slideFormula:function(i,e,s){const c=d.decode(e),u=d.decode(s);return i.replace(a,(o,p,m,f,v)=>{if(v)return o;const b=l.exec(f);if(b){const T=b[1],C=b[2].toUpperCase(),I=b[3],H=b[4];if(C.length>3||C.length===3&&C>"XFD")return o;let Z=d.l2n(C),P=parseInt(H,10);return T||(Z+=u.col-c.col),I||(P+=u.row-c.row),(p||"")+(T||"")+d.n2l(Z)+(I||"")+P}return o})}}},{"./col-cache":19}],24:[function(r,y,_){(function(d,a){(function(){const l=r("readable-stream"),i=r("./utils"),e=r("./string-buf");class s{constructor(f,v){this._data=f,this._encoding=v}get length(){return this.toBuffer().length}copy(f,v,b,T){return this.toBuffer().copy(f,v,b,T)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class c{constructor(f){this._data=f}get length(){return this._data.length}copy(f,v,b,T){return this._data._buf.copy(f,v,b,T)}toBuffer(){return this._data.toBuffer()}}class u{constructor(f){this._data=f}get length(){return this._data.length}copy(f,v,b,T){this._data.copy(f,v,b,T)}toBuffer(){return this._data}}class o{constructor(f){this.size=f,this.buffer=a.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const f=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let v;return f===0?null:f===void 0||f>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=a.alloc(f),this.buffer.copy(v,0,this.iRead,f),this.iRead+=f,v)}write(f,v,b){const T=Math.min(b,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,v,v+T),this.iWrite+=T,T}}const p=function(m){m=m||{},this.bufSize=m.bufSize||1048576,this.buffers=[],this.batch=m.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};i.inherits(p,l.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(m=>m.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const f=this.buffers[this.buffers.length-1];if(!f.full)return f}const m=new o(this.bufSize);return this.buffers.push(m),m},async _pipe(m){await Promise.all(this.pipes.map((function(f){return new Promise(v=>{f.write(m.toBuffer(),()=>{v()})})})))},_writeToBuffers(m){let f=0;const v=m.length;for(;f<v;)f+=this._getWritableBuffer().write(m,f,v-f)},async write(m,f,v){let b;if(f instanceof Function&&(v=f,f="utf8"),v=v||i.nop,m instanceof e)b=new c(m);else if(m instanceof a)b=new u(m);else{if(!(typeof m=="string"||m instanceof String||m instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");b=new s(m,f)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(b);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(b),d.nextTick(v)):(await this._pipe(b),v());else this.paused||this.emit("data",b.toBuffer()),this._writeToBuffers(b),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(m,f,v){const b=T=>{T?v(T):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};m?this.write(m,f,b):b()},read(m){let f;if(m){for(f=[];m&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],b=v.read(m);m-=b.length,f.push(b),v.eod&&v.full&&this.buffers.shift()}return a.concat(f)}return f=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],a.concat(f)},setEncoding(m){this.encoding=m},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(m){this.pipes.push(m),!this.paused&&this.buffers.length&&this.end()},unpipe(m){this.pipes=this.pipes.filter(f=>f!==m)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),y.exports=p}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(r,y,_){(function(d){(function(){y.exports=class{constructor(a){this._buf=d.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=d.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let l=2*this._buf.length;for(;l<a;)l*=2;const i=d.alloc(l);this._buf.copy(i,0),this._buf=i}addText(a){this._buffer=void 0;let l=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;l>=this._buf.length-4;)this._grow(this._inPos+a.length),l=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=l}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],26:[function(r,y,_){const{toString:d}=Object.prototype,a=/["&<>]/,l={each:function(i,e){i&&(Array.isArray(i)?i.forEach(e):Object.keys(i).forEach(s=>{e(i[s],s)}))},some:function(i,e){return!!i&&(Array.isArray(i)?i.some(e):Object.keys(i).some(s=>e(i[s],s)))},every:function(i,e){return!i||(Array.isArray(i)?i.every(e):Object.keys(i).every(s=>e(i[s],s)))},map:function(i,e){return i?Array.isArray(i)?i.map(e):Object.keys(i).map(s=>e(i[s],s)):[]},keyBy:(i,e)=>i.reduce((s,c)=>(s[c[e]]=c,s),{}),isEqual:function(i,e){const s=typeof i,c=typeof e,u=Array.isArray(i),o=Array.isArray(e);let p;if(s!==c)return!1;switch(typeof i){case"object":if(u||o)return!(!u||!o)&&i.length===e.length&&i.every((m,f)=>{const v=e[f];return l.isEqual(m,v)});if(i===null||e===null)return i===e;if(p=Object.keys(i),Object.keys(e).length!==p.length)return!1;for(const m of p)if(!e.hasOwnProperty(m))return!1;return l.every(i,(m,f)=>{const v=e[f];return l.isEqual(m,v)});default:return i===e}},escapeHtml(i){const e=a.exec(i);if(!e)return i;let s="",c="",u=0,o=e.index;for(;o<i.length;o++){switch(i.charAt(o)){case'"':c=""";break;case"&":c="&";break;case"'":c="'";break;case"<":c="<";break;case">":c=">";break;default:continue}u!==o&&(s+=i.substring(u,o)),u=o+1,s+=c}return u!==o?s+i.substring(u,o):s},strcmp:(i,e)=>i<e?-1:i>e?1:0,isUndefined:i=>d.call(i)==="[object Undefined]",isObject:i=>d.call(i)==="[object Object]",deepMerge(){const i=arguments[0]||{},{length:e}=arguments;let s,c,u;function o(p,m){s=i[m],u=Array.isArray(p),l.isObject(p)||u?(u?(u=!1,c=s&&Array.isArray(s)?s:[]):c=s&&l.isObject(s)?s:{},i[m]=l.deepMerge(c,p)):l.isUndefined(p)||(i[m]=p)}for(let p=0;p<e;p++)l.each(arguments[p],o);return i}};y.exports=l},{}],27:[function(r,y,_){(function(d,a){(function(){const l=r("fs"),i=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:s=>new Promise(c=>{d.setImmediate?a(()=>{c(s)}):setTimeout(()=>{c(s)},1)}),inherits:function(s,c,u,o){s.super_=c,o||(o=u,u=null),u&&Object.keys(u).forEach(m=>{Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(u,m))});const p={constructor:{value:s,enumerable:!1,writable:!1,configurable:!0}};o&&Object.keys(o).forEach(m=>{p[m]=Object.getOwnPropertyDescriptor(o,m)}),s.prototype=Object.create(c.prototype,p)},dateToExcel:(s,c)=>25569+s.getTime()/864e5-(c?1462:0),excelToDate(s,c){const u=Math.round(24*(s-25569+(c?1462:0))*3600*1e3);return new Date(u)},parsePath(s){const c=s.lastIndexOf("/");return{path:s.substring(0,c),name:s.substring(c+1)}},getRelsPath(s){const c=e.parsePath(s);return`${c.path}/_rels/${c.name}.rels`},xmlEncode(s){const c=i.exec(s);if(!c)return s;let u="",o="",p=0,m=c.index;for(;m<s.length;m++){const f=s.charCodeAt(m);switch(f){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;case 127:o="";break;default:if(f<=31&&(f<=8||f>=11&&f!==13)){o="";break}continue}p!==m&&(u+=s.substring(p,m)),p=m+1,o&&(u+=o)}return p!==m?u+s.substring(p,m):u},xmlDecode:s=>s.replace(/&([a-z]*);/g,c=>{switch(c){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return c}}),validInt(s){const c=parseInt(s,10);return Number.isNaN(c)?0:c},isDateFmt(s){return s?(s=(s=s.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:s=>new Promise(c=>{l.access(s,l.constants.F_OK,u=>{c(!u)})})},toIsoDateString:s=>s.toIsoString().subsstr(0,10),parseBoolean:s=>s===!0||s==="true"||s===1||s==="1"};y.exports=e}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{},r("timers").setImmediate)},{fs:216,timers:523}],28:[function(r,y,_){const d=r("./under-dash"),a=r("./utils");function l(s,c,u){s.push(` ${c}="${a.xmlEncode(u.toString())}"`)}function i(s,c){if(c){const u=[];d.each(c,(o,p)=>{o!==void 0&&l(u,p,o)}),s.push(u.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(c){const u=this._xml;u.push("<?xml"),i(u,c),u.push(`?>
|
|
10
|
+
`)}openNode(c,u){const o=this.tos,p=this._xml;o&&this.open&&p.push(">"),this._stack.push(c),p.push("<"),p.push(c),i(p,u),this.leaf=!0,this.open=!0}addAttribute(c,u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");u!==void 0&&l(this._xml,c,u)}addAttributes(c){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");i(this._xml,c)}writeText(c){const u=this._xml;this.open&&(u.push(">"),this.open=!1),this.leaf=!1,u.push(a.xmlEncode(c.toString()))}writeXml(c){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(c)}closeNode(){const c=this._stack.pop(),u=this._xml;this.leaf?u.push("/>"):(u.push("</"),u.push(c),u.push(">")),this.open=!1,this.leaf=!1}leafNode(c,u,o){this.openNode(c,u),o!==void 0&&this.writeText(o),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const c=this._rollbacks.pop();this._xml.length>c.xml&&this._xml.splice(c.xml,this._xml.length-c.xml),this._stack.length>c.stack&&this._stack.splice(c.stack,this._stack.length-c.stack),this.leaf=c.leaf,this.open=c.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},y.exports=e},{"./under-dash":26,"./utils":27}],29:[function(r,y,_){(function(d){(function(){const a=r("events"),l=r("jszip"),i=r("./stream-buf"),{stringToBuffer:e}=r("./browser-buffer-encode");class s extends a.EventEmitter{constructor(u){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},u),this.zip=new l,this.stream=new i}append(u,o){o.hasOwnProperty("base64")&&o.base64?this.zip.file(o.name,u,{base64:!0}):(d.browser&&typeof u=="string"&&(u=e(u)),this.zip.file(o.name,u))}async finalize(){const u=await this.zip.generateAsync(this.options);this.stream.end(u),this.emit("finish")}read(u){return this.stream.read(u)}setEncoding(u){return this.stream.setEncoding(u)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(u,o){return this.stream.pipe(u,o)}unpipe(u){return this.stream.unpipe(u)}unshift(u){return this.stream.unshift(u)}wrap(u){return this.stream.wrap(u)}}y.exports={ZipWriter:s}}).call(this)}).call(this,r("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(r,y,_){y.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(r,y,_){y.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(r,y,_){const d=r("../../utils/parse-sax"),a=r("../../utils/xml-stream");class l{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,s){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof l?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const s of e)for(const{eventType:c,value:u}of s)if(c==="opentag")this.parseOpen(u);else if(c==="text")this.parseText(u);else if(c==="closetag"&&!this.parseClose(u.name))return this.model;return this.model}async parseStream(e){return this.parse(d(e))}get xml(){return this.toXml(this.model)}toXml(e){const s=new a;return this.render(s,e),s.xml}static toAttribute(e,s){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(c)return s}else if(c||e!==s)return e.toString()}static toStringAttribute(e,s){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(e,s,c)}static toStringValue(e,s){return e===void 0?s:e}static toBoolAttribute(e,s){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(c)return s}else if(c||e!==s)return e?"1":"0"}static toBoolValue(e,s){return e===void 0?s:e==="1"}static toIntAttribute(e,s){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(e,s,c)}static toIntValue(e,s){return e===void 0?s:parseInt(e,10)}static toFloatAttribute(e,s){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(e,s,c)}static toFloatValue(e,s){return e===void 0?s:parseFloat(e)}}y.exports=l},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(r,y,_){const d=r("../base-xform"),a=r("../../../utils/col-cache");function l(e){try{return a.decodeEx(e),!0}catch{return!1}}function i(e){const s=[];let c=!1,u="";return e.split(",").forEach(o=>{if(!o)return;const p=(o.match(/'/g)||[]).length;if(!p)return void(c?u+=o+",":l(o)&&s.push(o));const m=p%2==0;!c&&m&&l(o)?s.push(o):c&&!m?(c=!1,l(u+o)&&s.push(u+o),u=""):(c=!0,u+=o+",")}),s}y.exports=class extends d{render(e,s){e.openNode("definedName",{name:s.name,localSheetId:s.localSheetId}),e.writeText(s.ranges.join(",")),e.closeNode()}parseOpen(e){return e.name==="definedName"?(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0):!1}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:i(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(r,y,_){const d=r("../../../utils/utils"),a=r("../base-xform");y.exports=class extends a{render(l,i){l.leafNode("sheet",{sheetId:i.id,name:i.name,state:i.state,"r:id":i.rId})}parseOpen(l){return l.name==="sheet"&&(this.model={name:d.xmlDecode(l.attributes.name),id:parseInt(l.attributes.sheetId,10),state:l.attributes.state,rId:l.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:l.fullCalcOnLoad?1:void 0})}parseOpen(a){return a.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){a.leafNode("workbookPr",{date1904:l.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){const i={xWindow:l.x||0,yWindow:l.y||0,windowWidth:l.width||12e3,windowHeight:l.height||24e3,firstSheet:l.firstSheet,activeTab:l.activeTab};l.visibility&&l.visibility!=="visible"&&(i.visibility=l.visibility),a.leafNode("workbookView",i)}parseOpen(a){if(a.name==="workbookView"){const l=this.model={},i=function(s,c,u){const o=c!==void 0?l[s]=c:u;o!==void 0&&(l[s]=o)},e=function(s,c,u){const o=c!==void 0?l[s]=parseInt(c,10):u;o!==void 0&&(l[s]=o)};return e("x",a.attributes.xWindow,0),e("y",a.attributes.yWindow,0),e("width",a.attributes.windowWidth,25e3),e("height",a.attributes.windowHeight,1e4),i("visibility",a.attributes.visibility,"visible"),e("activeTab",a.attributes.activeTab,void 0),e("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../../../utils/col-cache"),l=r("../../../utils/xml-stream"),i=r("../base-xform"),e=r("../static-xform"),s=r("../list-xform"),c=r("./defined-name-xform"),u=r("./sheet-xform"),o=r("./workbook-view-xform"),p=r("./workbook-properties-xform"),m=r("./workbook-calc-properties-xform");class f extends i{constructor(){super(),this.map={fileVersion:f.STATIC_XFORMS.fileVersion,workbookPr:new p,bookViews:new s({tag:"bookViews",count:!1,childXform:new o}),sheets:new s({tag:"sheets",count:!1,childXform:new u}),definedNames:new s({tag:"definedNames",count:!1,childXform:new c}),calcPr:new m}}prepare(b){b.sheets=b.worksheets;const T=[];let C=0;b.sheets.forEach(I=>{if(I.pageSetup&&I.pageSetup.printArea&&I.pageSetup.printArea.split("&&").forEach(H=>{const Z=H.split(":"),P={name:"_xlnm.Print_Area",ranges:[`'${I.name}'!$${Z[0]}:$${Z[1]}`],localSheetId:C};T.push(P)}),I.pageSetup&&(I.pageSetup.printTitlesRow||I.pageSetup.printTitlesColumn)){const H=[];if(I.pageSetup.printTitlesColumn){const P=I.pageSetup.printTitlesColumn.split(":");H.push(`'${I.name}'!$${P[0]}:$${P[1]}`)}if(I.pageSetup.printTitlesRow){const P=I.pageSetup.printTitlesRow.split(":");H.push(`'${I.name}'!$${P[0]}:$${P[1]}`)}const Z={name:"_xlnm.Print_Titles",ranges:H,localSheetId:C};T.push(Z)}C++}),T.length&&(b.definedNames=b.definedNames.concat(T)),(b.media||[]).forEach((I,H)=>{I.name=I.type+(H+1)})}render(b,T){b.openXml(l.StdDocAttributes),b.openNode("workbook",f.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(b),this.map.workbookPr.render(b,T.properties),this.map.bookViews.render(b,T.views),this.map.sheets.render(b,T.sheets),this.map.definedNames.render(b,T.definedNames),this.map.calcPr.render(b,T.calcProperties),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name==="workbook"||(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b==="workbook"?(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1):!0}reconcile(b){const T=(b.workbookRels||[]).reduce((P,q)=>(P[q.Id]=q,P),{}),C=[];let I,H=0;(b.sheets||[]).forEach(P=>{const q=T[P.rId];q&&(I=b.worksheetHash["xl/"+q.Target.replace(/^(\s|\/xl\/)+/,"")],I&&(I.name=P.name,I.id=P.id,I.state=P.state,C[H++]=I))});const Z=[];d.each(b.definedNames,P=>{if(P.name==="_xlnm.Print_Area"){if(I=C[P.localSheetId],I){I.pageSetup||(I.pageSetup={});const q=a.decodeEx(P.ranges[0]);I.pageSetup.printArea=I.pageSetup.printArea?`${I.pageSetup.printArea}&&${q.dimensions}`:q.dimensions}}else if(P.name==="_xlnm.Print_Titles"){if(I=C[P.localSheetId],I){I.pageSetup||(I.pageSetup={});const q=P.ranges.join(","),V=/\$/g,W=/\$\d+:\$\d+/,$=q.match(W);if($&&$.length){const A=$[0];I.pageSetup.printTitlesRow=A.replace(V,"")}const R=/\$[A-Z]+:\$[A-Z]+/,z=q.match(R);if(z&&z.length){const A=z[0];I.pageSetup.printTitlesColumn=A.replace(V,"")}}}else Z.push(P)}),b.definedNames=Z,b.media.forEach((P,q)=>{P.index=q})}}f.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},f.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},y.exports=f},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(r,y,_){const d=r("../strings/rich-text-xform"),a=r("../../../utils/utils"),l=r("../base-xform"),i=y.exports=function(e){this.model=e};a.inherits(i,l,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new d),this._richTextXform},render(e,s){s=s||this.model,e.openNode("comment",{ref:s.ref,authorId:0}),e.openNode("text"),s&&s.note&&s.note.texts&&s.note.texts.forEach(c=>{this.richTextXform.render(e,c)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../../../utils/utils"),l=r("../base-xform"),i=r("./comment-xform"),e=y.exports=function(){this.map={comment:new i}};a.inherits(e,l,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(s,c){c=c||this.model,s.openXml(d.StdDocAttributes),s.openNode("comments",e.COMMENTS_ATTRIBUTES),s.openNode("authors"),s.leafNode("author",null,"Author"),s.closeNode(),s.openNode("commentList"),c.comments.forEach(u=>{this.map.comment.render(s,u)}),s.closeNode(),s.closeNode()},parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(s),!0;default:return!1}},parseText(s){this.parser&&this.parser.parseText(s)},parseClose(s){switch(s){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(s),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,l,i){(l===i[2]||this.tag==="x:SizeWithCells"&&l===i[1])&&a.leafNode(this.tag)}parseOpen(a){return a.name===this.tag?(this.model={},this.model[this.tag]=!0,!0):!1}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,l){a.leafNode(this.tag,null,l)}parseOpen(a){return a.name===this.tag?(this.text="",!0):!1}parseText(a){this.text=a}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"x:Anchor"}getAnchorRect(a){const l=Math.floor(a.left),i=Math.floor(68*(a.left-l)),e=Math.floor(a.top),s=Math.floor(18*(a.top-e)),c=Math.floor(a.right),u=Math.floor(68*(a.right-c)),o=Math.floor(a.bottom);return[l,i,e,s,c,u,o,Math.floor(18*(a.bottom-o))]}getDefaultRect(a){const l=a.col,i=Math.max(a.row-2,0);return[l,6,i,14,l+2,2,i+4,16]}render(a,l){const i=l.anchor?this.getAnchorRect(l.anchor):this.getDefaultRect(l.refAddress);a.leafNode("x:Anchor",null,i.join(", "))}parseOpen(a){return a.name===this.tag?(this.text="",!0):!1}parseText(a){this.text=a}parseClose(){return!1}}},{"../base-xform":32}],44:[function(r,y,_){const d=r("../base-xform"),a=r("./vml-anchor-xform"),l=r("./style/vml-protection-xform"),i=r("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];y.exports=class extends d{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new l({tag:"x:Locked"}),"x:LockText":new l({tag:"x:LockText"}),"x:SizeWithCells":new i({tag:"x:SizeWithCells"}),"x:MoveWithCells":new i({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(s,c){const{protection:u,editAs:o}=c.note;s.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(s,o,e),this.map["x:SizeWithCells"].render(s,o,e),this.map["x:Anchor"].render(s,c),this.map["x:Locked"].render(s,u.locked),s.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(s,u.lockText),s.leafNode("x:Row",null,c.refAddress.row-1),s.leafNode("x:Column",null,c.refAddress.col-1),s.closeNode()}parseOpen(s){return s.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s===this.tag?(this.normalizeModel(),!1):!0}normalizeModel(){const s=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),c=Object.keys(s).length;this.model.editAs=e[c],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("./vml-shape-xform");class i extends a{constructor(){super(),this.map={"v:shape":new l}}get tag(){return"xml"}render(s,c){s.openXml(d.StdDocAttributes),s.openNode(this.tag,i.DRAWING_ATTRIBUTES),s.openNode("o:shapelayout",{"v:ext":"edit"}),s.leafNode("o:idmap",{"v:ext":"edit",data:1}),s.closeNode(),s.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),s.leafNode("v:stroke",{joinstyle:"miter"}),s.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),s.closeNode(),c.comments.forEach((u,o)=>{this.map["v:shape"].render(s,u,o)}),s.closeNode()}parseOpen(s){return this.parser?(this.parser.parseOpen(s),!0):(s.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0)}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):s!==this.tag}reconcile(s,c){s.anchors.forEach(u=>{u.br?this.map["xdr:twoCellAnchor"].reconcile(u,c):this.map["xdr:oneCellAnchor"].reconcile(u,c)})}}i.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},y.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(r,y,_){const d=r("../base-xform"),a=r("./vml-textbox-xform"),l=r("./vml-client-data-xform");class i extends d{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new l}}get tag(){return"v:shape"}render(s,c,u){s.openNode("v:shape",i.V_SHAPE_ATTRIBUTES(c,u)),s.leafNode("v:fill",{color2:"infoBackground [80]"}),s.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),s.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(s,c),this.map["x:ClientData"].render(s,c),s.closeNode()}parseOpen(s){return this.parser?(this.parser.parseOpen(s),!0):(s.name===this.tag?(this.reset(),this.model={margins:{insetmode:s.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0)}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s===this.tag?(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1):!0}}i.V_SHAPE_ATTRIBUTES=(e,s)=>({id:"_x0000_s"+(1025+s),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),y.exports=i},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"v:textbox"}conversionUnit(a,l,i){return`${parseFloat(a)*l.toFixed(2)}${i}`}reverseConversionUnit(a){return(a||"").split(",").map(l=>Number(parseFloat(this.conversionUnit(parseFloat(l),.1,"")).toFixed(2)))}render(a,l){const i={style:"mso-direction-alt:auto"};if(l&&l.note){let{inset:e}=l.note&&l.note.margins;Array.isArray(e)&&(e=e.map(s=>this.conversionUnit(s,10,"mm")).join(",")),e&&(i.inset=e)}a.openNode("v:textbox",i),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={inset:this.reverseConversionUnit(a.attributes.inset)}),!0}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],48:[function(r,y,_){const d=r("./base-xform");y.exports=class extends d{createNewModel(a){return{}}parseOpen(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}onParserClose(a,l){this.model[a]=l.model}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}},{"./base-xform":32}],49:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,l.length),a.closeNode(),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="HeadingPairs"}parseText(){}parseClose(a){return a!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:l.length,baseType:"lpstr"}),l.forEach(i=>{a.leafNode("vt:lpstr",void 0,i.name)}),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="TitlesOfParts"}parseText(){}parseClose(a){return a!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("../simple/string-xform"),i=r("./app-heading-pairs-xform"),e=r("./app-titles-of-parts-xform");class s extends a{constructor(){super(),this.map={Company:new l({tag:"Company"}),Manager:new l({tag:"Manager"}),HeadingPairs:new i,TitleOfParts:new e}}render(u,o){u.openXml(d.StdDocAttributes),u.openNode("Properties",s.PROPERTY_ATTRIBUTES),u.leafNode("Application",void 0,"Microsoft Excel"),u.leafNode("DocSecurity",void 0,"0"),u.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(u,o.worksheets),this.map.TitleOfParts.render(u,o.worksheets),this.map.Company.render(u,o.company||""),this.map.Manager.render(u,o.manager),u.leafNode("LinksUpToDate",void 0,"false"),u.leafNode("SharedDoc",void 0,"false"),u.leafNode("HyperlinksChanged",void 0,"false"),u.leafNode("AppVersion",void 0,"16.0300"),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name==="Properties"?!0:(this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u==="Properties"?(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1):!0}}s.DateFormat=function(c){return c.toISOString().replace(/[.]\d{3,6}/,"")},s.DateAttrs={"xsi:type":"dcterms:W3CDTF"},s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},y.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform");class l extends a{render(e,s){e.openXml(d.StdDocAttributes),e.openNode("Types",l.PROPERTY_ATTRIBUTES);const c={};(s.media||[]).forEach(u=>{if(u.type==="image"){const o=u.extension;c[o]||(c[o]=!0,e.leafNode("Default",{Extension:o,ContentType:"image/"+o}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),s.worksheets.forEach(u=>{const o=`/xl/worksheets/sheet${u.id}.xml`;e.leafNode("Override",{PartName:o,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),s.sharedStrings&&s.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),s.tables&&s.tables.forEach(u=>{e.leafNode("Override",{PartName:"/xl/tables/"+u.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),s.drawings&&s.drawings.forEach(u=>{e.leafNode("Override",{PartName:`/xl/drawings/${u.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),s.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),s.commentRefs.forEach(u=>{let{commentName:o}=u;e.leafNode("Override",{PartName:`/xl/${o}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},y.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("../simple/date-xform"),i=r("../simple/string-xform"),e=r("../simple/integer-xform");class s extends a{constructor(){super(),this.map={"dc:creator":new i({tag:"dc:creator"}),"dc:title":new i({tag:"dc:title"}),"dc:subject":new i({tag:"dc:subject"}),"dc:description":new i({tag:"dc:description"}),"dc:identifier":new i({tag:"dc:identifier"}),"dc:language":new i({tag:"dc:language"}),"cp:keywords":new i({tag:"cp:keywords"}),"cp:category":new i({tag:"cp:category"}),"cp:lastModifiedBy":new i({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new l({tag:"cp:lastPrinted",format:s.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new i({tag:"cp:version"}),"cp:contentStatus":new i({tag:"cp:contentStatus"}),"cp:contentType":new i({tag:"cp:contentType"}),"dcterms:created":new l({tag:"dcterms:created",attrs:s.DateAttrs,format:s.DateFormat}),"dcterms:modified":new l({tag:"dcterms:modified",attrs:s.DateAttrs,format:s.DateFormat})}}render(u,o){u.openXml(d.StdDocAttributes),u.openNode("cp:coreProperties",s.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(u,o.creator),this.map["dc:title"].render(u,o.title),this.map["dc:subject"].render(u,o.subject),this.map["dc:description"].render(u,o.description),this.map["dc:identifier"].render(u,o.identifier),this.map["dc:language"].render(u,o.language),this.map["cp:keywords"].render(u,o.keywords),this.map["cp:category"].render(u,o.category),this.map["cp:lastModifiedBy"].render(u,o.lastModifiedBy),this.map["cp:lastPrinted"].render(u,o.lastPrinted),this.map["cp:revision"].render(u,o.revision),this.map["cp:version"].render(u,o.version),this.map["cp:contentStatus"].render(u,o.contentStatus),this.map["cp:contentType"].render(u,o.contentType),this.map["dcterms:created"].render(u,o.created),this.map["dcterms:modified"].render(u,o.modified),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[u.name],this.parser)return this.parser.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+u)}}}s.DateFormat=function(c){return c.toISOString().replace(/[.]\d{3}/,"")},s.DateAttrs={"xsi:type":"dcterms:W3CDTF"},s.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},y.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{render(a,l){a.leafNode("Relationship",l)}parseOpen(a){return a.name==="Relationship"?(this.model=a.attributes,!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("./relationship-xform");class i extends a{constructor(){super(),this.map={Relationship:new l}}render(s,c){c=c||this._values,s.openXml(d.StdDocAttributes),s.openNode("Relationships",i.RELATIONSHIPS_ATTRIBUTES),c.forEach(u=>{this.map.Relationship.render(s,u)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[s.name],this.parser)return this.parser.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(s==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: "+s)}}i.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},y.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):(a.name===this.tag?(this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}}):(this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)),!0)}parseText(a){this.parser&&this.parser.parseText(a)}reconcilePicture(a,l){if(a&&a.rId){const i=l.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(i){const e=i[1],s=l.mediaIndex[e];return l.media[s]}}}}},{"../base-xform":32}],57:[function(r,y,_){const d=r("../base-xform"),a=r("./blip-xform");y.exports=class extends d{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(l,i){l.openNode(this.tag),this.map["a:blip"].render(l,i),l.openNode("a:stretch"),l.leafNode("a:fillRect"),l.closeNode(),l.closeNode()}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}parseText(){}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l===this.tag?(this.model=this.map["a:blip"].model,!1):!0}}},{"../base-xform":32,"./blip-xform":58}],58:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"a:blip"}render(a,l){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":l.rId,cstate:"print"})}parseOpen(a){return a.name===this.tag&&(this.model={rId:a.attributes["r:embed"]}),!0}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],59:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"xdr:cNvPicPr"}render(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],60:[function(r,y,_){const d=r("../base-xform"),a=r("./hlink-click-xform"),l=r("./ext-lst-xform");y.exports=class extends d{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new l}}get tag(){return"xdr:cNvPr"}render(i,e){i.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(i,e),this.map["a:extLst"].render(i,e),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):(i.name===this.tag?this.reset():(this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)),!0)}parseText(){}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser=void 0),!0):i===this.tag?(this.model=this.map["a:hlinkClick"].model,!1):!0}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(r,y,_){const d=r("../base-xform"),a=r("../simple/integer-xform");y.exports=class extends d{constructor(l){super(),this.tag=l.tag,this.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})}}render(l,i){l.openNode(this.tag),this.map["xdr:col"].render(l,i.nativeCol),this.map["xdr:colOff"].render(l,i.nativeColOff),this.map["xdr:row"].render(l,i.nativeRow),this.map["xdr:rowOff"].render(l,i.nativeRowOff),l.closeNode()}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l===this.tag?(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1):!0}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(r,y,_){const d=r("../../../utils/col-cache"),a=r("../../../utils/xml-stream"),l=r("../base-xform"),i=r("./two-cell-anchor-xform"),e=r("./one-cell-anchor-xform");class s extends l{constructor(){super(),this.map={"xdr:twoCellAnchor":new i,"xdr:oneCellAnchor":new e}}prepare(u){u.anchors.forEach((o,p)=>{o.anchorType=(function(m){return(typeof m.range=="string"?d.decode(m.range):m.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(o),this.map[o.anchorType].prepare(o,{index:p})})}get tag(){return"xdr:wsDr"}render(u,o){u.openXml(a.StdDocAttributes),u.openNode(this.tag,s.DRAWING_ATTRIBUTES),o.anchors.forEach(p=>{this.map[p.anchorType].render(u,p)}),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):u!==this.tag}reconcile(u,o){u.anchors.forEach(p=>{p.br?this.map["xdr:twoCellAnchor"].reconcile(p,o):this.map["xdr:oneCellAnchor"].reconcile(p,o)})}}s.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},y.exports=s},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"a:extLst"}render(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){return a!==this.tag}}},{"../base-xform":32}],64:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,l){a.openNode(this.tag);const i=Math.floor(9525*l.width),e=Math.floor(9525*l.height);a.addAttribute("cx",i),a.addAttribute("cy",e),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={width:parseInt(a.attributes.cx||"0",10)/9525,height:parseInt(a.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"a:hlinkClick"}render(a,l){l.hyperlinks&&l.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":l.hyperlinks.rId,tooltip:l.hyperlinks.tooltip})}parseOpen(a){return a.name===this.tag&&(this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}}),!0}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(r,y,_){const d=r("../base-xform"),a=r("./c-nv-pr-xform"),l=r("./c-nv-pic-pr-xform");y.exports=class extends d{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new l}}get tag(){return"xdr:nvPicPr"}render(i,e){i.openNode(this.tag),this.map["xdr:cNvPr"].render(i,e),this.map["xdr:cNvPicPr"].render(i,e),i.closeNode()}parseOpen(i){return this.parser?(this.parser.parseOpen(i),!0):(i.name===this.tag?this.reset():(this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)),!0)}parseText(){}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser=void 0),!0):i===this.tag?(this.model=this.map["xdr:cNvPr"].model,!1):!0}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(r,y,_){const d=r("./base-cell-anchor-xform"),a=r("../static-xform"),l=r("./cell-position-xform"),i=r("./ext-xform"),e=r("./pic-xform");y.exports=class extends d{constructor(){super(),this.map={"xdr:from":new l({tag:"xdr:from"}),"xdr:ext":new i({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(s,c){this.map["xdr:pic"].prepare(s.picture,c)}render(s,c){s.openNode(this.tag,{editAs:c.range.editAs||"oneCell"}),this.map["xdr:from"].render(s,c.range.tl),this.map["xdr:ext"].render(s,c.range.ext),this.map["xdr:pic"].render(s,c.picture),this.map["xdr:clientData"].render(s,{}),s.closeNode()}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(s,c){s.medium=this.reconcilePicture(s.picture,c)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(r,y,_){const d=r("../base-xform"),a=r("../static-xform"),l=r("./blip-fill-xform"),i=r("./nv-pic-pr-xform"),e=r("./sp-pr");y.exports=class extends d{constructor(){super(),this.map={"xdr:nvPicPr":new i,"xdr:blipFill":new l,"xdr:spPr":new a(e)}}get tag(){return"xdr:pic"}prepare(s,c){s.index=c.index+1}render(s,c){s.openNode(this.tag),this.map["xdr:nvPicPr"].render(s,c),this.map["xdr:blipFill"].render(s,c),this.map["xdr:spPr"].render(s,c),s.closeNode()}parseOpen(s){return this.parser?(this.parser.parseOpen(s),!0):(s.name===this.tag?this.reset():(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0)}parseText(){}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):s!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(r,y,_){y.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(r,y,_){const d=r("./base-cell-anchor-xform"),a=r("../static-xform"),l=r("./cell-position-xform"),i=r("./pic-xform");y.exports=class extends d{constructor(){super(),this.map={"xdr:from":new l({tag:"xdr:from"}),"xdr:to":new l({tag:"xdr:to"}),"xdr:pic":new i,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,s){this.map["xdr:pic"].prepare(e.picture,s)}render(e,s){e.openNode(this.tag,{editAs:s.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,s.range.tl),this.map["xdr:to"].render(e,s.range.br),this.map["xdr:pic"].render(e,s.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(e,s){e.medium=this.reconcilePicture(e.picture,s)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(r,y,_){const d=r("./base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.always=!!a.always,this.count=a.count,this.empty=a.empty,this.$count=a.$count||"count",this.$=a.$,this.childXform=a.childXform,this.maxItems=a.maxItems}prepare(a,l){const{childXform:i}=this;a&&a.forEach((e,s)=>{l.index=s,i.prepare(e,l)})}render(a,l){if(this.always||l&&l.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,l&&l.length||0);const{childXform:i}=this;(l||[]).forEach((e,s)=>{i.render(a,e,s)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(a,l){if(a){const{childXform:i}=this;a.forEach(e=>{i.reconcile(e,l)})}}}},{"./base-xform":32}],72:[function(r,y,_){const d=r("../../../utils/col-cache"),a=r("../base-xform");y.exports=class extends a{get tag(){return"autoFilter"}render(l,i){if(i)if(typeof i=="string")l.leafNode("autoFilter",{ref:i});else{const e=function(u){return typeof u=="string"?u:d.getAddress(u.row,u.column).address},s=e(i.from),c=e(i.to);s&&c&&l.leafNode("autoFilter",{ref:`${s}:${c}`})}}parseOpen(l){l.name==="autoFilter"&&(this.model=l.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(r,y,_){const d=r("../../../utils/utils"),a=r("../base-xform"),l=r("../../../doc/range"),i=r("../../../doc/enums"),e=r("../strings/rich-text-xform");function s(c){if(c==null)return i.ValueType.Null;if(c instanceof String||typeof c=="string")return i.ValueType.String;if(typeof c=="number")return i.ValueType.Number;if(typeof c=="boolean")return i.ValueType.Boolean;if(c instanceof Date)return i.ValueType.Date;if(c.text&&c.hyperlink)return i.ValueType.Hyperlink;if(c.formula)return i.ValueType.Formula;if(c.error)return i.ValueType.Error;throw new Error("I could not understand type of value")}y.exports=class extends a{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(c,u){const o=u.styles.addStyleModel(c.style||{},(function(p){return p.type===i.ValueType.Formula?s(p.result):p.type})(c));switch(o&&(c.styleId=o),c.comment&&u.comments.push({...c.comment,ref:c.address}),c.type){case i.ValueType.String:case i.ValueType.RichText:u.sharedStrings&&(c.ssId=u.sharedStrings.add(c.value));break;case i.ValueType.Date:u.date1904&&(c.date1904=!0);break;case i.ValueType.Hyperlink:u.sharedStrings&&c.text!==void 0&&c.text!==null&&(c.ssId=u.sharedStrings.add(c.text)),u.hyperlinks.push({address:c.address,target:c.hyperlink,tooltip:c.tooltip});break;case i.ValueType.Merge:u.merges.add(c);break;case i.ValueType.Formula:if(u.date1904&&(c.date1904=!0),c.shareType==="shared"&&(c.si=u.siFormulae++),c.formula)u.formulae[c.address]=c;else if(c.sharedFormula){const p=u.formulae[c.sharedFormula];if(!p)throw new Error("Shared Formula master must exist above and or left of clone for cell "+c.address);p.si===void 0?(p.shareType="shared",p.si=u.siFormulae++,p.range=new l(p.address,c.address)):p.range&&p.range.expandToAddress(c.address),c.si=p.si}}}renderFormula(c,u){let o=null;switch(u.shareType){case"shared":o={t:"shared",ref:u.ref||u.range.range,si:u.si};break;case"array":o={t:"array",ref:u.ref};break;default:u.si!==void 0&&(o={t:"shared",si:u.si})}switch(s(u.result)){case i.ValueType.Null:c.leafNode("f",o,u.formula);break;case i.ValueType.String:c.addAttribute("t","str"),c.leafNode("f",o,u.formula),c.leafNode("v",null,u.result);break;case i.ValueType.Number:c.leafNode("f",o,u.formula),c.leafNode("v",null,u.result);break;case i.ValueType.Boolean:c.addAttribute("t","b"),c.leafNode("f",o,u.formula),c.leafNode("v",null,u.result?1:0);break;case i.ValueType.Error:c.addAttribute("t","e"),c.leafNode("f",o,u.formula),c.leafNode("v",null,u.result.error);break;case i.ValueType.Date:c.leafNode("f",o,u.formula),c.leafNode("v",null,d.dateToExcel(u.result,u.date1904));break;default:throw new Error("I could not understand type of value")}}render(c,u){if(u.type!==i.ValueType.Null||u.styleId){switch(c.openNode("c"),c.addAttribute("r",u.address),u.styleId&&c.addAttribute("s",u.styleId),u.type){case i.ValueType.Null:break;case i.ValueType.Number:c.leafNode("v",null,u.value);break;case i.ValueType.Boolean:c.addAttribute("t","b"),c.leafNode("v",null,u.value?"1":"0");break;case i.ValueType.Error:c.addAttribute("t","e"),c.leafNode("v",null,u.value.error);break;case i.ValueType.String:case i.ValueType.RichText:u.ssId!==void 0?(c.addAttribute("t","s"),c.leafNode("v",null,u.ssId)):u.value&&u.value.richText?(c.addAttribute("t","inlineStr"),c.openNode("is"),u.value.richText.forEach(o=>{this.richTextXForm.render(c,o)}),c.closeNode("is")):(c.addAttribute("t","str"),c.leafNode("v",null,u.value));break;case i.ValueType.Date:c.leafNode("v",null,d.dateToExcel(u.value,u.date1904));break;case i.ValueType.Hyperlink:u.ssId!==void 0?(c.addAttribute("t","s"),c.leafNode("v",null,u.ssId)):(c.addAttribute("t","str"),c.leafNode("v",null,u.text));break;case i.ValueType.Formula:this.renderFormula(c,u);break;case i.ValueType.Merge:}c.closeNode()}}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"c":return this.model={address:c.attributes.r},this.t=c.attributes.t,c.attributes.s&&(this.model.styleId=parseInt(c.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=c.attributes.si,this.model.shareType=c.attributes.t,this.model.ref=c.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){if(this.parser)this.parser.parseText(c);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+c:c;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+c:c:this.model.value=this.model.value?this.model.value+c:c}}parseClose(c){switch(c){case"c":{const{model:u}=this;if(u.formula||u.shareType)u.type=i.ValueType.Formula,u.value&&(this.t==="str"?u.result=d.xmlDecode(u.value):this.t==="b"?u.result=parseInt(u.value,10)!==0:this.t==="e"?u.result={error:u.value}:u.result=parseFloat(u.value),u.value=void 0);else if(u.value!==void 0)switch(this.t){case"s":u.type=i.ValueType.String,u.value=parseInt(u.value,10);break;case"str":u.type=i.ValueType.String,u.value=d.xmlDecode(u.value);break;case"inlineStr":u.type=i.ValueType.String;break;case"b":u.type=i.ValueType.Boolean,u.value=parseInt(u.value,10)!==0;break;case"e":u.type=i.ValueType.Error,u.value={error:u.value};break;default:u.type=i.ValueType.Number,u.value=parseFloat(u.value)}else u.styleId?u.type=i.ValueType.Null:u.type=i.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(c),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(c),!0)}}reconcile(c,u){const o=c.styleId&&u.styles&&u.styles.getStyleModel(c.styleId);switch(o&&(c.style=o),c.styleId!==void 0&&(c.styleId=void 0),c.type){case i.ValueType.String:typeof c.value=="number"&&u.sharedStrings&&(c.value=u.sharedStrings.getString(c.value)),c.value.richText&&(c.type=i.ValueType.RichText);break;case i.ValueType.Number:o&&d.isDateFmt(o.numFmt)&&(c.type=i.ValueType.Date,c.value=d.excelToDate(c.value,u.date1904));break;case i.ValueType.Formula:c.result!==void 0&&o&&d.isDateFmt(o.numFmt)&&(c.result=d.excelToDate(c.result,u.date1904)),c.shareType==="shared"&&(c.ref?u.formulae[c.si]=c.address:(c.sharedFormula=u.formulae[c.si],delete c.shareType),delete c.si)}const p=u.hyperlinkMap[c.address];p&&(c.type===i.ValueType.Formula?(c.text=c.result,c.result=void 0):(c.text=c.value,c.value=void 0),c.type=i.ValueType.Hyperlink,c.hyperlink=p);const m=u.commentsMap&&u.commentsMap[c.address];m&&(c.comment=m)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{get tag(){return"x14:cfIcon"}render(a,l){a.leafNode(this.tag,{iconSet:l.iconSet,iconId:l.iconId})}parseOpen(a){let{attributes:l}=a;this.model={iconSet:l.iconSet,iconId:d.toIntValue(l.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(r,y,_){const{v4:d}=r("uuid"),a=r("../../base-xform"),l=r("../../composite-xform"),i=r("./databar-ext-xform"),e=r("./icon-set-ext-xform"),s={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class c extends l{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new i,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(o){return o.type==="dataBar"?i.isExt(o):!(o.type!=="iconSet"||!o.custom&&!s[o.iconSet])}prepare(o){c.isExt(o)&&(o.x14Id=`{${d()}}`.toUpperCase())}render(o,p){if(c.isExt(p))switch(p.type){case"dataBar":this.renderDataBar(o,p);break;case"iconSet":this.renderIconSet(o,p)}}renderDataBar(o,p){o.openNode(this.tag,{type:"dataBar",id:p.x14Id}),this.databarXform.render(o,p),o.closeNode()}renderIconSet(o,p){o.openNode(this.tag,{type:"iconSet",priority:p.priority,id:p.x14Id||`{${d()}}`}),this.iconSetXform.render(o,p),o.closeNode()}createNewModel(o){let{attributes:p}=o;return{type:p.type,x14Id:p.id,priority:a.toIntValue(p.priority)}}onParserClose(o,p){Object.assign(this.model,p.model)}}y.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(r,y,_){const d=r("../../composite-xform"),a=r("./f-ext-xform");y.exports=class extends d{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(l,i){l.openNode(this.tag,{type:i.type}),i.value!==void 0&&this.fExtXform.render(l,i.value),l.closeNode()}createNewModel(l){return{type:l.attributes.type}}onParserClose(l,i){l==="xm:f"&&(this.model.value=i.model?parseFloat(i.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(r,y,_){const d=r("../../composite-xform"),a=r("./sqref-ext-xform"),l=r("./cf-rule-ext-xform");y.exports=class extends d{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new l}}get tag(){return"x14:conditionalFormatting"}prepare(i,e){i.rules.forEach(s=>{this.cfRule.prepare(s,e)})}render(i,e){e.rules.some(l.isExt)&&(i.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(l.isExt).forEach(s=>this.cfRule.render(i,s)),this.sqRef.render(i,e.ref),i.closeNode())}createNewModel(){return{rules:[]}}onParserClose(i,e){switch(i){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(r,y,_){const d=r("../../composite-xform"),a=r("./cf-rule-ext-xform"),l=r("./conditional-formatting-ext-xform");y.exports=class extends d{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new l}}get tag(){return"x14:conditionalFormattings"}hasContent(i){return i.hasExtContent===void 0&&(i.hasExtContent=i.some(e=>e.rules.some(a.isExt))),i.hasExtContent}prepare(i,e){i.forEach(s=>{this.cfXform.prepare(s,e)})}render(i,e){this.hasContent(e)&&(i.openNode(this.tag),e.forEach(s=>this.cfXform.render(i,s)),i.closeNode())}createNewModel(){return[]}onParserClose(i,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(r,y,_){const d=r("../../base-xform"),a=r("../../composite-xform"),l=r("../../style/color-xform"),i=r("./cfvo-ext-xform");y.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new i,"x14:borderColor":this.borderColorXform=new l("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new l("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new l("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new l("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,s){e.openNode(this.tag,{minLength:d.toIntAttribute(s.minLength,0,!0),maxLength:d.toIntAttribute(s.maxLength,100,!0),border:d.toBoolAttribute(s.border,!1),gradient:d.toBoolAttribute(s.gradient,!0),negativeBarColorSameAsPositive:d.toBoolAttribute(s.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolAttribute(s.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toAttribute(s.axisPosition,"auto"),direction:d.toAttribute(s.direction,"leftToRight")}),s.cfvo.forEach(c=>{this.cfvoXform.render(e,c)}),this.borderColorXform.render(e,s.borderColor),this.negativeBorderColorXform.render(e,s.negativeBorderColor),this.negativeFillColorXform.render(e,s.negativeFillColor),this.axisColorXform.render(e,s.axisColor),e.closeNode()}createNewModel(e){let{attributes:s}=e;return{cfvo:[],minLength:d.toIntValue(s.minLength,0),maxLength:d.toIntValue(s.maxLength,100),border:d.toBoolValue(s.border,!1),gradient:d.toBoolValue(s.gradient,!0),negativeBarColorSameAsPositive:d.toBoolValue(s.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolValue(s.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toStringValue(s.axisPosition,"auto"),direction:d.toStringValue(s.direction,"leftToRight")}}onParserClose(e,s){const[,c]=e.split(":");c==="cfvo"?this.model.cfvo.push(s.model):this.model[c]=s.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{get tag(){return"xm:f"}render(a,l){a.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(r,y,_){const d=r("../../base-xform"),a=r("../../composite-xform"),l=r("./cfvo-ext-xform"),i=r("./cf-icon-ext-xform");y.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new l,"x14:cfIcon":this.cfIconXform=new i}}get tag(){return"x14:iconSet"}render(e,s){e.openNode(this.tag,{iconSet:d.toStringAttribute(s.iconSet),reverse:d.toBoolAttribute(s.reverse,!1),showValue:d.toBoolAttribute(s.showValue,!0),custom:d.toBoolAttribute(s.icons,!1)}),s.cfvo.forEach(c=>{this.cfvoXform.render(e,c)}),s.icons&&s.icons.forEach((c,u)=>{c.iconId=u,this.cfIconXform.render(e,c)}),e.closeNode()}createNewModel(e){let{attributes:s}=e;return{cfvo:[],iconSet:d.toStringValue(s.iconSet,"3TrafficLights"),reverse:d.toBoolValue(s.reverse,!1),showValue:d.toBoolValue(s.showValue,!0)}}onParserClose(e,s){const[,c]=e.split(":");switch(c){case"cfvo":this.model.cfvo.push(s.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(s.model);break;default:this.model[c]=s.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{get tag(){return"xm:sqref"}render(a,l){a.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(r,y,_){const d=r("../../base-xform"),a=r("../../composite-xform"),l=r("../../../../doc/range"),i=r("./databar-xform"),e=r("./ext-lst-ref-xform"),s=r("./formula-xform"),c=r("./color-scale-xform"),u=r("./icon-set-xform"),o={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},p=f=>{const{type:v,operator:b}=f;switch(v){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:v};default:return{type:v,operator:b}}};class m extends a{constructor(){super(),this.map={dataBar:this.databarXform=new i,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new s,colorScale:this.colorScaleXform=new c,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(v){return v.type!=="iconSet"||!v.custom&&!o[v.iconSet]}render(v,b){switch(b.type){case"expression":this.renderExpression(v,b);break;case"cellIs":this.renderCellIs(v,b);break;case"top10":this.renderTop10(v,b);break;case"aboveAverage":this.renderAboveAverage(v,b);break;case"dataBar":this.renderDataBar(v,b);break;case"colorScale":this.renderColorScale(v,b);break;case"iconSet":this.renderIconSet(v,b);break;case"containsText":this.renderText(v,b);break;case"timePeriod":this.renderTimePeriod(v,b)}}renderExpression(v,b){v.openNode(this.tag,{type:"expression",dxfId:b.dxfId,priority:b.priority}),this.formulaXform.render(v,b.formulae[0]),v.closeNode()}renderCellIs(v,b){v.openNode(this.tag,{type:"cellIs",dxfId:b.dxfId,priority:b.priority,operator:b.operator}),b.formulae.forEach(T=>{this.formulaXform.render(v,T)}),v.closeNode()}renderTop10(v,b){v.leafNode(this.tag,{type:"top10",dxfId:b.dxfId,priority:b.priority,percent:d.toBoolAttribute(b.percent,!1),bottom:d.toBoolAttribute(b.bottom,!1),rank:d.toIntValue(b.rank,10,!0)})}renderAboveAverage(v,b){v.leafNode(this.tag,{type:"aboveAverage",dxfId:b.dxfId,priority:b.priority,aboveAverage:d.toBoolAttribute(b.aboveAverage,!0)})}renderDataBar(v,b){v.openNode(this.tag,{type:"dataBar",priority:b.priority}),this.databarXform.render(v,b),this.extLstRefXform.render(v,b),v.closeNode()}renderColorScale(v,b){v.openNode(this.tag,{type:"colorScale",priority:b.priority}),this.colorScaleXform.render(v,b),v.closeNode()}renderIconSet(v,b){m.isPrimitive(b)&&(v.openNode(this.tag,{type:"iconSet",priority:b.priority}),this.iconSetXform.render(v,b),v.closeNode())}renderText(v,b){v.openNode(this.tag,{type:b.operator,dxfId:b.dxfId,priority:b.priority,operator:d.toStringAttribute(b.operator,"containsText")});const T=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const I=new l(C.ref),{tl:H}=I;switch(C.operator){case"containsText":return`NOT(ISERROR(SEARCH("${C.text}",${H})))`;case"containsBlanks":return`LEN(TRIM(${H}))=0`;case"notContainsBlanks":return`LEN(TRIM(${H}))>0`;case"containsErrors":return`ISERROR(${H})`;case"notContainsErrors":return`NOT(ISERROR(${H}))`;default:return}})(b);T&&this.formulaXform.render(v,T),v.closeNode()}renderTimePeriod(v,b){v.openNode(this.tag,{type:"timePeriod",dxfId:b.dxfId,priority:b.priority,timePeriod:b.timePeriod});const T=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const I=new l(C.ref),{tl:H}=I;switch(C.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${H},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${H},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${H},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${H},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${H},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${H},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${H},1)=TODAY()-1`;case"today":return`FLOOR(${H},1)=TODAY()`;case"tomorrow":return`FLOOR(${H},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${H},1)<=6,FLOOR(${H},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${H})=MONTH(EDATE(TODAY(),0-1)),YEAR(${H})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${H})=MONTH(TODAY()),YEAR(${H})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${H})=MONTH(EDATE(TODAY(),0+1)),YEAR(${H})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(b);T&&this.formulaXform.render(v,T),v.closeNode()}createNewModel(v){let{attributes:b}=v;return{...p(b),dxfId:d.toIntValue(b.dxfId),priority:d.toIntValue(b.priority),timePeriod:b.timePeriod,percent:d.toBoolValue(b.percent),bottom:d.toBoolValue(b.bottom),rank:d.toIntValue(b.rank),aboveAverage:d.toBoolValue(b.aboveAverage)}}onParserClose(v,b){switch(v){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,b.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(b.model)}}}y.exports=m},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{get tag(){return"cfvo"}render(a,l){a.leafNode(this.tag,{type:l.type,val:l.value})}parseOpen(a){this.model={type:a.attributes.type,value:d.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(r,y,_){const d=r("../../composite-xform"),a=r("../../style/color-xform"),l=r("./cfvo-xform");y.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new l,color:this.colorXform=new a}}get tag(){return"colorScale"}render(i,e){i.openNode(this.tag),e.cfvo.forEach(s=>{this.cfvoXform.render(i,s)}),e.color.forEach(s=>{this.colorXform.render(i,s)}),i.closeNode()}createNewModel(i){return{cfvo:[],color:[]}}onParserClose(i,e){this.model[i].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(r,y,_){const d=r("../../composite-xform"),a=r("./cf-rule-xform");y.exports=class extends d{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(l,i){i.rules.some(a.isPrimitive)&&(l.openNode(this.tag,{sqref:i.ref}),i.rules.forEach(e=>{a.isPrimitive(e)&&(e.ref=i.ref,this.map.cfRule.render(l,e))}),l.closeNode())}createNewModel(l){let{attributes:i}=l;return{ref:i.sqref,rules:[]}}onParserClose(l,i){this.model.rules.push(i.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(r,y,_){const d=r("../../base-xform"),a=r("./conditional-formatting-xform");y.exports=class extends d{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(l,i){let e=l.reduce((s,c)=>Math.max(s,...c.rules.map(u=>u.priority||0)),1);l.forEach(s=>{s.rules.forEach(c=>{c.priority||(c.priority=e++),c.style&&(c.dxfId=i.styles.addDxfStyle(c.style))})})}render(l,i){i.forEach(e=>{this.cfXform.render(l,e)})}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):l.name==="conditionalFormatting"?(this.parser=this.cfXform,this.parser.parseOpen(l),!0):!1}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return!!this.parser&&(!!this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(l,i){l.forEach(e=>{e.rules.forEach(s=>{s.dxfId!==void 0&&(s.style=i.styles.getDxfStyle(s.dxfId),delete s.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(r,y,_){const d=r("../../composite-xform"),a=r("../../style/color-xform"),l=r("./cfvo-xform");y.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new l,color:this.colorXform=new a}}get tag(){return"dataBar"}render(i,e){i.openNode(this.tag),e.cfvo.forEach(s=>{this.cfvoXform.render(i,s)}),this.colorXform.render(i,e.color),i.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(i,e){switch(i){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(r,y,_){const d=r("../../base-xform"),a=r("../../composite-xform");class l extends d{get tag(){return"x14:id"}render(s,c){s.leafNode(this.tag,null,c)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}class i extends a{constructor(){super(),this.map={"x14:id":this.idXform=new l}}get tag(){return"ext"}render(s,c){s.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(s,c.x14Id),s.closeNode()}createNewModel(){return{}}onParserClose(s,c){this.model.x14Id=c.model}}y.exports=class extends a{constructor(){super(),this.map={ext:new i}}get tag(){return"extLst"}render(e,s){e.openNode(this.tag),this.map.ext.render(e,s),e.closeNode()}createNewModel(){return{}}onParserClose(e,s){Object.assign(this.model,s.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(r,y,_){const d=r("../../base-xform");y.exports=class extends d{get tag(){return"formula"}render(a,l){a.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(r,y,_){const d=r("../../base-xform"),a=r("../../composite-xform"),l=r("./cfvo-xform");y.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new l}}get tag(){return"iconSet"}render(i,e){i.openNode(this.tag,{iconSet:d.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:d.toBoolAttribute(e.reverse,!1),showValue:d.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(s=>{this.cfvoXform.render(i,s)}),i.closeNode()}createNewModel(i){let{attributes:e}=i;return{iconSet:d.toStringValue(e.iconSet,"3TrafficLights"),reverse:d.toBoolValue(e.reverse),showValue:d.toBoolValue(e.showValue),cfvo:[]}}onParserClose(i,e){this.model[i].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(r,y,_){const d=r("../../../utils/utils"),a=r("../base-xform");y.exports=class extends a{get tag(){return"col"}prepare(l,i){const e=i.styles.addStyleModel(l.style||{});e&&(l.styleId=e)}render(l,i){l.openNode("col"),l.addAttribute("min",i.min),l.addAttribute("max",i.max),i.width&&l.addAttribute("width",i.width),i.styleId&&l.addAttribute("style",i.styleId),i.hidden&&l.addAttribute("hidden","1"),i.bestFit&&l.addAttribute("bestFit","1"),i.outlineLevel&&l.addAttribute("outlineLevel",i.outlineLevel),i.collapsed&&l.addAttribute("collapsed","1"),l.addAttribute("customWidth","1"),l.closeNode()}parseOpen(l){if(l.name==="col"){const i=this.model={min:parseInt(l.attributes.min||"0",10),max:parseInt(l.attributes.max||"0",10),width:l.attributes.width===void 0?void 0:parseFloat(l.attributes.width||"0")};return l.attributes.style&&(i.styleId=parseInt(l.attributes.style,10)),d.parseBoolean(l.attributes.hidden)&&(i.hidden=!0),d.parseBoolean(l.attributes.bestFit)&&(i.bestFit=!0),l.attributes.outlineLevel&&(i.outlineLevel=parseInt(l.attributes.outlineLevel,10)),d.parseBoolean(l.attributes.collapsed)&&(i.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(l,i){l.styleId&&(l.style=i.styles.getStyleModel(l.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../../../utils/utils"),l=r("../../../utils/col-cache"),i=r("../base-xform"),e=r("../../../doc/range");function s(u,o,p,m){const f=o[p];f!==void 0?u[p]=f:m!==void 0&&(u[p]=m)}function c(u,o,p,m){const f=o[p];f!==void 0&&(u[p]=a.parseBoolean(f))}y.exports=class extends i{get tag(){return"dataValidations"}render(u,o){const p=(function(m){const f=d.map(m,(T,C)=>({address:C,dataValidation:T,marked:!1})).sort((T,C)=>d.strcmp(T.address,C.address)),v=d.keyBy(f,"address"),b=(T,C,I)=>{for(let H=0;H<C;H++){const Z=l.encodeAddress(T.row+H,I);if(!m[Z]||!d.isEqual(m[T.address],m[Z]))return!1}return!0};return f.map(T=>{if(!T.marked){const C=l.decodeEx(T.address);if(C.dimensions)return v[C.dimensions].marked=!0,{...T.dataValidation,sqref:T.address};let I=1,H=l.encodeAddress(C.row+I,C.col);for(;m[H]&&d.isEqual(T.dataValidation,m[H]);)I++,H=l.encodeAddress(C.row+I,C.col);let Z=1;for(;b(C,I,C.col+Z);)Z++;for(let P=0;P<I;P++)for(let q=0;q<Z;q++)H=l.encodeAddress(C.row+P,C.col+q),v[H].marked=!0;if(I>1||Z>1){const P=C.row+(I-1),q=C.col+(Z-1);return{...T.dataValidation,sqref:`${T.address}:${l.encodeAddress(P,q)}`}}return{...T.dataValidation,sqref:T.address}}return null}).filter(Boolean)})(o);p.length&&(u.openNode("dataValidations",{count:p.length}),p.forEach(m=>{u.openNode("dataValidation"),m.type!=="any"&&(u.addAttribute("type",m.type),m.operator&&m.type!=="list"&&m.operator!=="between"&&u.addAttribute("operator",m.operator),m.allowBlank&&u.addAttribute("allowBlank","1")),m.showInputMessage&&u.addAttribute("showInputMessage","1"),m.promptTitle&&u.addAttribute("promptTitle",m.promptTitle),m.prompt&&u.addAttribute("prompt",m.prompt),m.showErrorMessage&&u.addAttribute("showErrorMessage","1"),m.errorStyle&&u.addAttribute("errorStyle",m.errorStyle),m.errorTitle&&u.addAttribute("errorTitle",m.errorTitle),m.error&&u.addAttribute("error",m.error),u.addAttribute("sqref",m.sqref),(m.formulae||[]).forEach((f,v)=>{u.openNode("formula"+(v+1)),m.type==="date"?u.writeText(a.dateToExcel(new Date(f))):u.writeText(f),u.closeNode()}),u.closeNode()}),u.closeNode())}parseOpen(u){switch(u.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=u.attributes.sqref;const o={type:u.attributes.type||"any",formulae:[]};switch(u.attributes.type&&c(o,u.attributes,"allowBlank"),c(o,u.attributes,"showInputMessage"),c(o,u.attributes,"showErrorMessage"),o.type){case"any":case"list":case"custom":break;default:s(o,u.attributes,"operator","between")}return s(o,u.attributes,"promptTitle"),s(o,u.attributes,"prompt"),s(o,u.attributes,"errorStyle"),s(o,u.attributes,"errorTitle"),s(o,u.attributes,"error"),this._dataValidation=o,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(u){this._formula&&this._formula.push(u)}parseClose(u){switch(u){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(o=>{o.includes(":")?new e(o).forEachAddress(p=>{this.model[p]=this._dataValidation}):this.model[o]=this._dataValidation}),!0;case"formula1":case"formula2":{let o=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":o=parseInt(o,10);break;case"decimal":o=parseFloat(o);break;case"date":o=a.excelToDate(parseFloat(o))}return this._dataValidation.formulae.push(o),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"dimension"}render(a,l){l&&a.leafNode("dimension",{ref:l})}parseOpen(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"drawing"}render(a,l){l&&a.leafNode(this.tag,{"r:id":l.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(r,y,_){const d=r("../composite-xform"),a=r("./cf-ext/conditional-formattings-ext-xform");class l extends d{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new a}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,s){this.conditionalFormattings.prepare(e.conditionalFormattings,s)}render(e,s){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,s.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,s){this.model[e]=s.model}}y.exports=class extends d{constructor(){super(),this.map={ext:this.ext=new l}}get tag(){return"extLst"}prepare(i,e){this.ext.prepare(i,e)}hasContent(i){return this.ext.hasContent(i)}render(i,e){this.hasContent(e)&&(i.openNode("extLst"),this.ext.render(i,e),i.closeNode())}createNewModel(){return{}}onParserClose(i,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"headerFooter"}render(a,l){if(l){a.addRollback();let i=!1;a.openNode("headerFooter"),l.differentFirst&&(a.addAttribute("differentFirst","1"),i=!0),l.differentOddEven&&(a.addAttribute("differentOddEven","1"),i=!0),l.oddHeader&&typeof l.oddHeader=="string"&&(a.leafNode("oddHeader",null,l.oddHeader),i=!0),l.oddFooter&&typeof l.oddFooter=="string"&&(a.leafNode("oddFooter",null,l.oddFooter),i=!0),l.evenHeader&&typeof l.evenHeader=="string"&&(a.leafNode("evenHeader",null,l.evenHeader),i=!0),l.evenFooter&&typeof l.evenFooter=="string"&&(a.leafNode("evenFooter",null,l.evenFooter),i=!0),l.firstHeader&&typeof l.firstHeader=="string"&&(a.leafNode("firstHeader",null,l.firstHeader),i=!0),l.firstFooter&&typeof l.firstFooter=="string"&&(a.leafNode("firstFooter",null,l.firstFooter),i=!0),i?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"hyperlink"}render(a,l){this.isInternalLink(l)?a.leafNode("hyperlink",{ref:l.address,"r:id":l.rId,tooltip:l.tooltip,location:l.target}):a.leafNode("hyperlink",{ref:l.address,"r:id":l.rId,tooltip:l.tooltip})}parseOpen(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},a.attributes.location&&(this.model.target=a.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(a){return a.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(a.target)}}},{"../base-xform":32}],99:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"mergeCell"}render(a,l){a.leafNode("mergeCell",{ref:l})}parseOpen(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../../../doc/range"),l=r("../../../utils/col-cache"),i=r("../../../doc/enums");y.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const s=`${e.master}:${e.address}`;this.merges[e.master]=new a(s)}}get mergeCells(){return d.map(this.merges,e=>e.range)}reconcile(e,s){d.each(e,c=>{const u=l.decode(c);for(let o=u.top;o<=u.bottom;o++){const p=s[o-1];for(let m=u.left;m<=u.right;m++){const f=p.cells[m-1];f?f.type===i.ValueType.Merge&&(f.master=u.tl):p.cells[m]={type:i.ValueType.Null,address:l.encodeAddress(o,m)}}}})}getMasterAddress(e){const s=this.hash[e];return s&&s.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(r,y,_){const d=r("../base-xform"),a=l=>l!==void 0;y.exports=class extends d{get tag(){return"outlinePr"}render(l,i){return!(!i||!a(i.summaryBelow)&&!a(i.summaryRight))&&(l.leafNode(this.tag,{summaryBelow:a(i.summaryBelow)?Number(i.summaryBelow):void 0,summaryRight:a(i.summaryRight)?Number(i.summaryRight):void 0}),!0)}parseOpen(l){return l.name===this.tag&&(this.model={summaryBelow:a(l.attributes.summaryBelow)?!!Number(l.attributes.summaryBelow):void 0,summaryRight:a(l.attributes.summaryRight)?!!Number(l.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"brk"}render(a,l){a.leafNode("brk",l)}parseOpen(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../base-xform");y.exports=class extends a{get tag(){return"pageMargins"}render(l,i){if(i){const e={left:i.left,right:i.right,top:i.top,bottom:i.bottom,header:i.header,footer:i.footer};d.some(e,s=>s!==void 0)&&l.leafNode(this.tag,e)}}parseOpen(l){return l.name===this.tag?(this.model={left:parseFloat(l.attributes.left||.7),right:parseFloat(l.attributes.right||.7),top:parseFloat(l.attributes.top||.75),bottom:parseFloat(l.attributes.bottom||.75),header:parseFloat(l.attributes.header||.3),footer:parseFloat(l.attributes.footer||.3)},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"pageSetUpPr"}render(a,l){return!(!l||!l.fitToPage)&&(a.leafNode(this.tag,{fitToPage:l.fitToPage?"1":void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../base-xform");function l(c){return c?"1":void 0}function i(c){if(c==="overThenDown")return c}function e(c){switch(c){case"atEnd":case"asDisplyed":return c;default:return}}function s(c){switch(c){case"dash":case"blank":case"NA":return c;default:return}}y.exports=class extends a{get tag(){return"pageSetup"}render(c,u){if(u){const o={paperSize:u.paperSize,orientation:u.orientation,horizontalDpi:u.horizontalDpi,verticalDpi:u.verticalDpi,pageOrder:i(u.pageOrder),blackAndWhite:l(u.blackAndWhite),draft:l(u.draft),cellComments:e(u.cellComments),errors:s(u.errors),scale:u.scale,fitToWidth:u.fitToWidth,fitToHeight:u.fitToHeight,firstPageNumber:u.firstPageNumber,useFirstPageNumber:l(u.firstPageNumber),usePrinterDefaults:l(u.usePrinterDefaults),copies:u.copies};d.some(o,p=>p!==void 0)&&c.leafNode(this.tag,o)}}parseOpen(c){if(c.name===this.tag)return this.model={paperSize:(u=c.attributes.paperSize,u!==void 0?parseInt(u,10):void 0),orientation:c.attributes.orientation||"portrait",horizontalDpi:parseInt(c.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(c.attributes.verticalDpi||"4294967295",10),pageOrder:c.attributes.pageOrder||"downThenOver",blackAndWhite:c.attributes.blackAndWhite==="1",draft:c.attributes.draft==="1",cellComments:c.attributes.cellComments||"None",errors:c.attributes.errors||"displayed",scale:parseInt(c.attributes.scale||"100",10),fitToWidth:parseInt(c.attributes.fitToWidth||"1",10),fitToHeight:parseInt(c.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(c.attributes.firstPageNumber||"1",10),useFirstPageNumber:c.attributes.useFirstPageNumber==="1",usePrinterDefaults:c.attributes.usePrinterDefaults==="1",copies:parseInt(c.attributes.copies||"1",10)},!0;return!1;var u}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"picture"}render(a,l){l&&a.leafNode(this.tag,{"r:id":l.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../base-xform");function l(i){return i?"1":void 0}y.exports=class extends a{get tag(){return"printOptions"}render(i,e){if(e){const s={headings:l(e.showRowColHeaders),gridLines:l(e.showGridLines),horizontalCentered:l(e.horizontalCentered),verticalCentered:l(e.verticalCentered)};d.some(s,c=>c!==void 0)&&i.leafNode(this.tag,s)}}parseOpen(i){return i.name===this.tag?(this.model={showRowColHeaders:i.attributes.headings==="1",showGridLines:i.attributes.gridLines==="1",horizontalCentered:i.attributes.horizontalCentered==="1",verticalCentered:i.attributes.verticalCentered==="1"},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(r,y,_){const d=r("./page-breaks-xform"),a=r("../list-xform");y.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new d})}render(l,i){if(i&&i.length){l.openNode(this.tag,this.$),this.count&&(l.addAttribute(this.$count,i.length),l.addAttribute("manualBreakCount",i.length));const{childXform:e}=this;i.forEach(s=>{e.render(l,s)}),l.closeNode()}else this.empty&&l.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(r,y,_){const d=r("../base-xform"),a=r("../../../utils/utils"),l=r("./cell-xform");y.exports=class extends d{constructor(i){super(),this.maxItems=i&&i.maxItems,this.map={c:new l}}get tag(){return"row"}prepare(i,e){const s=e.styles.addStyleModel(i.style);s&&(i.styleId=s);const c=this.map.c;i.cells.forEach(u=>{c.prepare(u,e)})}render(i,e,s){i.openNode("row"),i.addAttribute("r",e.number),e.height&&(i.addAttribute("ht",e.height),i.addAttribute("customHeight","1")),e.hidden&&i.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&i.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(i.addAttribute("s",e.styleId),i.addAttribute("customFormat","1")),i.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&i.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&i.addAttribute("collapsed","1");const c=this.map.c;e.cells.forEach(u=>{c.render(i,u,s)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;if(i.name==="row"){this.numRowsSeen+=1;const e=i.attributes.spans?i.attributes.spans.split(":").map(c=>parseInt(c,10)):[void 0,void 0],s=this.model={number:parseInt(i.attributes.r,10),min:e[0],max:e[1],cells:[]};return i.attributes.s&&(s.styleId=parseInt(i.attributes.s,10)),a.parseBoolean(i.attributes.hidden)&&(s.hidden=!0),a.parseBoolean(i.attributes.bestFit)&&(s.bestFit=!0),i.attributes.ht&&(s.height=parseFloat(i.attributes.ht)),i.attributes.outlineLevel&&(s.outlineLevel=parseInt(i.attributes.outlineLevel,10)),a.parseBoolean(i.attributes.collapsed)&&(s.collapsed=!0),!0}return this.parser=this.map[i.name],!!this.parser&&(this.parser.parseOpen(i),!0)}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser){if(!this.parser.parseClose(i)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(i,e){i.style=i.styleId?e.styles.getStyleModel(i.styleId):{},i.styleId!==void 0&&(i.styleId=void 0);const s=this.map.c;i.cells.forEach(c=>{s.reconcile(c,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../base-xform");y.exports=class extends a{get tag(){return"sheetFormatPr"}render(l,i){if(i){const e={defaultRowHeight:i.defaultRowHeight,outlineLevelRow:i.outlineLevelRow,outlineLevelCol:i.outlineLevelCol,"x14ac:dyDescent":i.dyDescent};i.defaultColWidth&&(e.defaultColWidth=i.defaultColWidth),i.defaultRowHeight&&i.defaultRowHeight===15||(e.customHeight="1"),d.some(e,s=>s!==void 0)&&l.leafNode("sheetFormatPr",e)}}parseOpen(l){return l.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(l.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(l.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(l.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(l.attributes.outlineLevelCol||"0",10)},l.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(l.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(r,y,_){const d=r("../base-xform"),a=r("../style/color-xform"),l=r("./page-setup-properties-xform"),i=r("./outline-properties-xform");y.exports=class extends d{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new l,outlinePr:new i}}get tag(){return"sheetPr"}render(e,s){if(s){e.addRollback(),e.openNode("sheetPr");let c=!1;c=this.map.tabColor.render(e,s.tabColor)||c,c=this.map.pageSetUpPr.render(e,s.pageSetup)||c,c=this.map.outlinePr.render(e,s.outlineProperties)||c,c?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../base-xform");function l(e,s){return e?s:void 0}function i(e,s){return e===s||void 0}y.exports=class extends a{get tag(){return"sheetProtection"}render(e,s){if(s){const c={sheet:l(s.sheet,"1"),selectLockedCells:s.selectLockedCells===!1?"1":void 0,selectUnlockedCells:s.selectUnlockedCells===!1?"1":void 0,formatCells:l(s.formatCells,"0"),formatColumns:l(s.formatColumns,"0"),formatRows:l(s.formatRows,"0"),insertColumns:l(s.insertColumns,"0"),insertRows:l(s.insertRows,"0"),insertHyperlinks:l(s.insertHyperlinks,"0"),deleteColumns:l(s.deleteColumns,"0"),deleteRows:l(s.deleteRows,"0"),sort:l(s.sort,"0"),autoFilter:l(s.autoFilter,"0"),pivotTables:l(s.pivotTables,"0")};s.sheet&&(c.algorithmName=s.algorithmName,c.hashValue=s.hashValue,c.saltValue=s.saltValue,c.spinCount=s.spinCount,c.objects=l(s.objects===!1,"1"),c.scenarios=l(s.scenarios===!1,"1")),d.some(c,u=>u!==void 0)&&e.leafNode(this.tag,c)}}parseOpen(e){return e.name===this.tag?(this.model={sheet:i(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:i(e.attributes.formatCells,"0"),formatColumns:i(e.attributes.formatColumns,"0"),formatRows:i(e.attributes.formatRows,"0"),insertColumns:i(e.attributes.insertColumns,"0"),insertRows:i(e.attributes.insertRows,"0"),insertHyperlinks:i(e.attributes.insertHyperlinks,"0"),deleteColumns:i(e.attributes.deleteColumns,"0"),deleteRows:i(e.attributes.deleteRows,"0"),sort:i(e.attributes.sort,"0"),autoFilter:i(e.attributes.autoFilter,"0"),pivotTables:i(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(r,y,_){const d=r("../../../utils/col-cache"),a=r("../base-xform"),l={frozen:"frozen",frozenSplit:"frozen",split:"split"};y.exports=class extends a{get tag(){return"sheetView"}prepare(i){switch(i.state){case"frozen":case"split":break;default:i.state="normal"}}render(i,e){i.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const s=function(m,f,v){v&&i.addAttribute(m,f)};let c,u,o,p;switch(s("rightToLeft","1",e.rightToLeft===!0),s("tabSelected","1",e.tabSelected),s("showRuler","0",e.showRuler===!1),s("showRowColHeaders","0",e.showRowColHeaders===!1),s("showGridLines","0",e.showGridLines===!1),s("zoomScale",e.zoomScale,e.zoomScale),s("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),s("view",e.style,e.style),e.state){case"frozen":u=e.xSplit||0,o=e.ySplit||0,c=e.topLeftCell||d.getAddress(o+1,u+1).address,p=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",i.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:c,activePane:p,state:"frozen"}),i.leafNode("selection",{pane:p,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),i.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),i.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&i.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}i.closeNode()}parseOpen(i){switch(i.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(i.attributes.workbookViewId,10),rightToLeft:i.attributes.rightToLeft==="1",tabSelected:i.attributes.tabSelected==="1",showRuler:i.attributes.showRuler!=="0",showRowColHeaders:i.attributes.showRowColHeaders!=="0",showGridLines:i.attributes.showGridLines!=="0",zoomScale:parseInt(i.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(i.attributes.zoomScaleNormal||"100",10),style:i.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(i.attributes.xSplit||"0",10),ySplit:parseInt(i.attributes.ySplit||"0",10),topLeftCell:i.attributes.topLeftCell,activePane:i.attributes.activePane||"topLeft",state:i.attributes.state},!0;case"selection":{const e=i.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:i.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(i){let e,s;return i==="sheetView"?(this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:l[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),s=this.selections[this.pane.activePane],s&&s.activeCell&&(e.activeCell=s.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},s=this.selections.topLeft,s&&s.activeCell&&(e.activeCell=s.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1):!0}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"tablePart"}render(a,l){l&&a.leafNode(this.tag,{"r:id":l.rId})}parseOpen(a){return a.name===this.tag?(this.model={rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../../../utils/col-cache"),l=r("../../../utils/xml-stream"),i=r("../../rel-type"),e=r("./merges"),s=r("../base-xform"),c=r("../list-xform"),u=r("./row-xform"),o=r("./col-xform"),p=r("./dimension-xform"),m=r("./hyperlink-xform"),f=r("./merge-cell-xform"),v=r("./data-validations-xform"),b=r("./sheet-properties-xform"),T=r("./sheet-format-properties-xform"),C=r("./sheet-view-xform"),I=r("./sheet-protection-xform"),H=r("./page-margins-xform"),Z=r("./page-setup-xform"),P=r("./print-options-xform"),q=r("./auto-filter-xform"),V=r("./picture-xform"),W=r("./drawing-xform"),$=r("./table-part-xform"),R=r("./row-breaks-xform"),z=r("./header-footer-xform"),A=r("./cf/conditional-formattings-xform"),g=r("./ext-lst-xform"),x=(E,O)=>{if(!O||!O.length)return E;if(!E||!E.length)return O;const j={},B={};return E.forEach(Y=>{j[Y.ref]=Y,Y.rules.forEach(K=>{const{x14Id:nt}=K;nt&&(B[nt]=K)})}),O.forEach(Y=>{Y.rules.forEach(K=>{const nt=B[K.x14Id];nt?((U,J)=>{Object.keys(J).forEach(L=>{const N=U[L],X=J[L];N===void 0&&X!==void 0&&(U[L]=X)})})(nt,K):j[Y.ref]?j[Y.ref].rules.push(K):E.push({ref:Y.ref,rules:[K]})})}),E};class S extends s{constructor(O){super();const{maxRows:j,maxCols:B,ignoreNodes:Y}=O||{};this.ignoreNodes=Y||[],this.map={sheetPr:new b,dimension:new p,sheetViews:new c({tag:"sheetViews",count:!1,childXform:new C}),sheetFormatPr:new T,cols:new c({tag:"cols",count:!1,childXform:new o}),sheetData:new c({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:B}),maxItems:j}),autoFilter:new q,mergeCells:new c({tag:"mergeCells",count:!0,childXform:new f}),rowBreaks:new R,hyperlinks:new c({tag:"hyperlinks",count:!1,childXform:new m}),pageMargins:new H,dataValidations:new v,pageSetup:new Z,headerFooter:new z,printOptions:new P,picture:new V,drawing:new W,sheetProtection:new I,tableParts:new c({tag:"tableParts",count:!0,childXform:new $}),conditionalFormatting:new A,extLst:new g}}prepare(O,j){j.merges=new e,O.hyperlinks=j.hyperlinks=[],O.comments=j.comments=[],j.formulae={},j.siFormulae=0,this.map.cols.prepare(O.cols,j),this.map.sheetData.prepare(O.rows,j),this.map.conditionalFormatting.prepare(O.conditionalFormattings,j),O.mergeCells=j.merges.mergeCells;const B=O.rels=[];function Y(U){return"rId"+(U.length+1)}if(O.hyperlinks.forEach(U=>{const J=Y(B);U.rId=J,B.push({Id:J,Type:i.Hyperlink,Target:U.target,TargetMode:"External"})}),O.comments.length>0){const U={Id:Y(B),Type:i.Comments,Target:`../comments${O.id}.xml`};B.push(U);const J={Id:Y(B),Type:i.VmlDrawing,Target:`../drawings/vmlDrawing${O.id}.vml`};B.push(J),O.comments.forEach(L=>{L.refAddress=a.decodeAddress(L.ref)}),j.commentRefs.push({commentName:"comments"+O.id,vmlDrawing:"vmlDrawing"+O.id})}const K=[];let nt;O.media.forEach(U=>{if(U.type==="background"){const J=Y(B);nt=j.media[U.imageId],B.push({Id:J,Type:i.Image,Target:`../media/${nt.name}.${nt.extension}`}),O.background={rId:J},O.image=j.media[U.imageId]}else if(U.type==="image"){let{drawing:J}=O;nt=j.media[U.imageId],J||(J=O.drawing={rId:Y(B),name:"drawing"+ ++j.drawingsCount,anchors:[],rels:[]},j.drawings.push(J),B.push({Id:J.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${J.name}.xml`}));let L=this.preImageId===U.imageId?K[U.imageId]:K[J.rels.length];L||(L=Y(J.rels),K[J.rels.length]=L,J.rels.push({Id:L,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${nt.name}.${nt.extension}`}));const N={picture:{rId:L},range:U.range};if(U.hyperlinks&&U.hyperlinks.hyperlink){const X=Y(J.rels);K[J.rels.length]=X,N.picture.hyperlinks={tooltip:U.hyperlinks.tooltip,rId:X},J.rels.push({Id:X,Type:i.Hyperlink,Target:U.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=U.imageId,J.anchors.push(N)}}),O.tables.forEach(U=>{const J=Y(B);U.rId=J,B.push({Id:J,Type:i.Table,Target:"../tables/"+U.target}),U.columns.forEach(L=>{const{style:N}=L;N&&(L.dxfId=j.styles.addDxfStyle(N))})}),this.map.extLst.prepare(O,j)}render(O,j){O.openXml(l.StdDocAttributes),O.openNode("worksheet",S.WORKSHEET_ATTRIBUTES);const B=j.properties?{defaultRowHeight:j.properties.defaultRowHeight,dyDescent:j.properties.dyDescent,outlineLevelCol:j.properties.outlineLevelCol,outlineLevelRow:j.properties.outlineLevelRow}:void 0;j.properties&&j.properties.defaultColWidth&&(B.defaultColWidth=j.properties.defaultColWidth);const Y={outlineProperties:j.properties&&j.properties.outlineProperties,tabColor:j.properties&&j.properties.tabColor,pageSetup:j.pageSetup&&j.pageSetup.fitToPage?{fitToPage:j.pageSetup.fitToPage}:void 0},K=j.pageSetup&&j.pageSetup.margins,nt={showRowColHeaders:j.pageSetup&&j.pageSetup.showRowColHeaders,showGridLines:j.pageSetup&&j.pageSetup.showGridLines,horizontalCentered:j.pageSetup&&j.pageSetup.horizontalCentered,verticalCentered:j.pageSetup&&j.pageSetup.verticalCentered},U=j.sheetProtection;this.map.sheetPr.render(O,Y),this.map.dimension.render(O,j.dimensions),this.map.sheetViews.render(O,j.views),this.map.sheetFormatPr.render(O,B),this.map.cols.render(O,j.cols),this.map.sheetData.render(O,j.rows),this.map.sheetProtection.render(O,U),this.map.autoFilter.render(O,j.autoFilter),this.map.mergeCells.render(O,j.mergeCells),this.map.conditionalFormatting.render(O,j.conditionalFormattings),this.map.dataValidations.render(O,j.dataValidations),this.map.hyperlinks.render(O,j.hyperlinks),this.map.printOptions.render(O,nt),this.map.pageMargins.render(O,K),this.map.pageSetup.render(O,j.pageSetup),this.map.headerFooter.render(O,j.headerFooter),this.map.rowBreaks.render(O,j.rowBreaks),this.map.drawing.render(O,j.drawing),this.map.picture.render(O,j.background),this.map.tableParts.render(O,j.tables),this.map.extLst.render(O,j),j.rels&&j.rels.forEach(J=>{J.Type===i.VmlDrawing&&O.leafNode("legacyDrawing",{"r:id":J.Id})}),O.closeNode()}parseOpen(O){return this.parser?(this.parser.parseOpen(O),!0):O.name==="worksheet"?(d.each(this.map,j=>{j.reset()}),!0):(this.map[O.name]&&!this.ignoreNodes.includes(O.name)&&(this.parser=this.map[O.name],this.parser.parseOpen(O)),!0)}parseText(O){this.parser&&this.parser.parseText(O)}parseClose(O){if(this.parser)return this.parser.parseClose(O)||(this.parser=void 0),!0;if(O==="worksheet"){const j=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(j.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(j.outlineProperties=this.map.sheetPr.model.outlineProperties);const B={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},Y=Object.assign(B,this.map.pageSetup.model,this.map.printOptions.model),K=x(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:j,views:this.map.sheetViews.model,pageSetup:Y,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:K},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}else return!0}reconcile(O,j){const B=(O.relationships||[]).reduce((K,nt)=>{if(K[nt.Id]=nt,nt.Type===i.Comments&&(O.comments=j.comments[nt.Target].comments),nt.Type===i.VmlDrawing&&O.comments&&O.comments.length){const U=j.vmlDrawings[nt.Target].comments;O.comments.forEach((J,L)=>{J.note=Object.assign({},J.note,U[L])})}return K},{});if(j.commentsMap=(O.comments||[]).reduce((K,nt)=>(nt.ref&&(K[nt.ref]=nt),K),{}),j.hyperlinkMap=(O.hyperlinks||[]).reduce((K,nt)=>(nt.rId&&(K[nt.address]=B[nt.rId].Target),K),{}),j.formulae={},O.rows=O.rows&&O.rows.filter(Boolean)||[],O.rows.forEach(K=>{K.cells=K.cells&&K.cells.filter(Boolean)||[]}),this.map.cols.reconcile(O.cols,j),this.map.sheetData.reconcile(O.rows,j),this.map.conditionalFormatting.reconcile(O.conditionalFormattings,j),O.media=[],O.drawing){const K=B[O.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(K){const nt=K[1];j.drawings[nt].anchors.forEach(U=>{if(U.medium){const J={type:"image",imageId:U.medium.index,range:U.range,hyperlinks:U.picture.hyperlinks};O.media.push(J)}})}}const Y=O.background&&B[O.background.rId];if(Y){const K=Y.Target.split("/media/")[1],nt=j.mediaIndex&&j.mediaIndex[K];nt!==void 0&&O.media.push({type:"background",imageId:nt})}O.tables=(O.tables||[]).map(K=>{const nt=B[K.rId];return j.tables[nt.Target]}),delete O.relationships,delete O.hyperlinks,delete O.comments}}S.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},y.exports=S},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,l){l&&(a.openNode(this.tag),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(l){try{return Number.isNaN(l.getTime())?"":l.toISOString()}catch{return""}},this._parse=a.parse||function(l){return new Date(l)}}render(a,l){l&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(l)):a.writeText(this._format(l)),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,l){(l||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,l):a.writeText(l),a.closeNode())}parseOpen(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,l){l!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,l):a.writeText(l),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(r,y,_){const d=r("./base-xform"),a=r("../../utils/xml-stream");y.exports=class extends d{constructor(l){super(),this._model=l}render(l){if(!this._xml){const i=new a;(function e(s,c){s.openNode(c.tag,c.$),c.c&&c.c.forEach(u=>{e(s,u)}),c.t&&s.writeText(c.t),s.closeNode()})(i,this._model),this._xml=i.xml}l.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(l){return l!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(r,y,_){const d=r("./text-xform"),a=r("./rich-text-xform"),l=r("../base-xform");y.exports=class extends l{constructor(){super(),this.map={r:new a,t:new d}}get tag(){return"rPh"}render(i,e){if(i.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r:s}=this.map;e.richText.forEach(c=>{s.render(i,c)})}else e&&this.map.t.render(i,e.text);i.closeNode()}parseOpen(i){const{name:e}=i;return this.parser?(this.parser.parseOpen(i),!0):e===this.tag?(this.model={sb:parseInt(i.attributes.sb,10),eb:parseInt(i.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(i),!0))}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser){if(!this.parser.parseClose(i)){switch(i){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return i!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(r,y,_){const d=r("./text-xform"),a=r("../style/font-xform"),l=r("../base-xform");class i extends l{constructor(s){super(),this.model=s}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new d)}get fontXform(){return this._fontXform||(this._fontXform=new a(i.FONT_OPTIONS))}render(s,c){c=c||this.model,s.openNode("r"),c.font&&this.fontXform.render(s,c.font),this.textXform.render(s,c.text),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(s),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){switch(s){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(s),!0}}}i.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},y.exports=i},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(r,y,_){const d=r("./text-xform"),a=r("./rich-text-xform"),l=r("./phonetic-text-xform"),i=r("../base-xform");y.exports=class extends i{constructor(e){super(),this.model=e,this.map={r:new a,t:new d,rPh:new l}}get tag(){return"si"}render(e,s){e.openNode(this.tag),s&&s.hasOwnProperty("richText")&&s.richText?s.richText.length?s.richText.forEach(c=>{this.map.r.render(e,c)}):this.map.t.render(e,""):s!=null&&this.map.t.render(e,s),e.closeNode()}parseOpen(e){const{name:s}=e;return this.parser?(this.parser.parseOpen(e),!0):s===this.tag?(this.model={},!0):(this.parser=this.map[s],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let s=this.model.richText;s||(s=this.model.richText=[]),s.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("./shared-string-xform");y.exports=class extends a{constructor(i){super(),this.model=i||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new l)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(i){return this.model.values[i]}add(i){return i.richText?this.addRichText(i):this.addText(i)}addText(i){let e=this.hash[i];return e===void 0&&(e=this.hash[i]=this.model.values.length,this.model.values.push(i)),this.model.count++,e}addRichText(i){const e=this.sharedStringXform.toXml(i);let s=this.rich[e];return s===void 0&&(s=this.rich[e]=this.model.values.length,this.model.values.push(i)),this.model.count++,s}render(i,e){e=e||this._values,i.openXml(d.StdDocAttributes),i.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const s=this.sharedStringXform;e.values.forEach(c=>{s.render(i,c)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(i),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(i))}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(i==="sst")return!1;throw new Error("Unexpected xml node in parseClose: "+i)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"t"}render(a,l){a.openNode("t"),/^\s|\n|\s$/.test(l)&&a.addAttribute("xml:space","preserve"),a.writeText(l),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,l)=>String.fromCharCode(parseInt(l,16)))}parseOpen(a){return a.name==="t"?(this._text=[],!0):!1}parseText(a){this._text.push(a)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(r,y,_){const d=r("../../../doc/enums"),a=r("../../../utils/utils"),l=r("../base-xform"),i={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((s,c)=>(s[c]=!0,s),{}),horizontal(s){return this.horizontalValues[s]?s:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((s,c)=>(s[c]=!0,s),{}),vertical(s){return s==="middle"?"center":this.verticalValues[s]?s:void 0},wrapText:s=>!!s||void 0,shrinkToFit:s=>!!s||void 0,textRotation(s){return s==="vertical"||(s=a.validInt(s))>=-90&&s<=90?s:void 0},indent:s=>(s=a.validInt(s),Math.max(0,s)),readingOrder(s){switch(s){case"ltr":return d.ReadingOrder.LeftToRight;case"rtl":return d.ReadingOrder.RightToLeft;default:return}}},e={toXml(s){if(s=i.textRotation(s)){if(s==="vertical")return 255;const c=Math.round(s);if(c>=0&&c<=90)return c;if(c<0&&c>=-90)return 90-c}},toModel(s){const c=a.validInt(s);if(c!==void 0){if(c===255)return"vertical";if(c>=0&&c<=90)return c;if(c>90&&c<=180)return 90-c}}};y.exports=class extends l{get tag(){return"alignment"}render(s,c){s.addRollback(),s.openNode("alignment");let u=!1;function o(p,m){m&&(s.addAttribute(p,m),u=!0)}o("horizontal",i.horizontal(c.horizontal)),o("vertical",i.vertical(c.vertical)),o("wrapText",!!i.wrapText(c.wrapText)&&"1"),o("shrinkToFit",!!i.shrinkToFit(c.shrinkToFit)&&"1"),o("indent",i.indent(c.indent)),o("textRotation",e.toXml(c.textRotation)),o("readingOrder",i.readingOrder(c.readingOrder)),s.closeNode(),u?s.commit():s.rollback()}parseOpen(s){const c={};let u=!1;function o(p,m,f){p&&(c[m]=f,u=!0)}o(s.attributes.horizontal,"horizontal",s.attributes.horizontal),o(s.attributes.vertical,"vertical",s.attributes.vertical==="center"?"middle":s.attributes.vertical),o(s.attributes.wrapText,"wrapText",a.parseBoolean(s.attributes.wrapText)),o(s.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(s.attributes.shrinkToFit)),o(s.attributes.indent,"indent",parseInt(s.attributes.indent,10)),o(s.attributes.textRotation,"textRotation",e.toModel(s.attributes.textRotation)),o(s.attributes.readingOrder,"readingOrder",s.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=u?c:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(r,y,_){const d=r("../base-xform"),a=r("../../../utils/utils"),l=r("./color-xform");class i extends d{constructor(s){super(),this.name=s,this.map={color:new l}}get tag(){return this.name}render(s,c,u){const o=c&&c.color||u||this.defaultColor;s.openNode(this.name),c&&c.style&&(s.addAttribute("style",c.style),o&&this.map.color.render(s,o)),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.name:{const{style:c}=s.attributes;return this.model=c?{style:c}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):(s===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(s){return i.validStyleValues[s]}}i.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,s)=>(e[s]=!0,e),{}),y.exports=class extends d{constructor(){super(),this.map={top:new i("top"),left:new i("left"),bottom:new i("bottom"),right:new i("right"),diagonal:new i("diagonal")}}render(e,s){const{color:c}=s;function u(o,p){o&&!o.color&&s.color&&(o={...o,color:s.color}),p.render(e,o,c)}e.openNode("border"),s.diagonal&&s.diagonal.style&&(s.diagonal.up&&e.addAttribute("diagonalUp","1"),s.diagonal.down&&e.addAttribute("diagonalDown","1")),u(s.left,this.map.left),u(s.right,this.map.right),u(s.top,this.map.top),u(s.bottom,this.map.bottom),u(s.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name==="border"?(this.reset(),this.diagonalUp=a.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const s=this.model={},c=function(u,o,p){o&&(p&&Object.assign(o,p),s[u]=o)};c("left",this.map.left.model),c("right",this.map.right.model),c("top",this.map.top.model),c("bottom",this.map.bottom.model),c("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,l){return!!l&&(a.openNode(this.name),l.argb?a.addAttribute("rgb",l.argb):l.theme!==void 0?(a.addAttribute("theme",l.theme),l.tint!==void 0&&a.addAttribute("tint",l.tint)):l.indexed!==void 0?a.addAttribute("indexed",l.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}parseOpen(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(r,y,_){const d=r("../base-xform"),a=r("./alignment-xform"),l=r("./border-xform"),i=r("./fill-xform"),e=r("./font-xform"),s=r("./numfmt-xform"),c=r("./protection-xform");y.exports=class extends d{constructor(){super(),this.map={alignment:new a,border:new l,fill:new i,font:new e,numFmt:new s,protection:new c}}get tag(){return"dxf"}render(u,o){if(u.openNode(this.tag),o.font&&this.map.font.render(u,o.font),o.numFmt&&o.numFmtId){const p={id:o.numFmtId,formatCode:o.numFmt};this.map.numFmt.render(u,p)}o.fill&&this.map.fill.render(u,o.fill),o.alignment&&this.map.alignment.render(u,o.alignment),o.border&&this.map.border.render(u,o.border),o.protection&&this.map.protection.render(u,o.protection),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name===this.tag?(this.reset(),!0):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u),!0)}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(r,y,_){const d=r("../base-xform"),a=r("./color-xform");class l extends d{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(u,o){u.openNode("stop"),u.addAttribute("position",o.position),this.map.color.render(u,o.color),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"stop":return this.model={position:parseFloat(u.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(u),!0;default:return!1}}parseText(){}parseClose(u){return!!this.parser&&(this.parser.parseClose(u)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class i extends d{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(u,o){u.openNode("patternFill"),u.addAttribute("patternType",o.pattern),o.fgColor&&this.map.fgColor.render(u,o.fgColor),o.bgColor&&this.map.bgColor.render(u,o.bgColor),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name==="patternFill"?(this.model={type:"pattern",pattern:u.attributes.patternType},!0):(this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(this.parser.parseClose(u)||(this.parser.model&&(this.model[u]=this.parser.model),this.parser=void 0),!0)}}class e extends d{constructor(){super(),this.map={stop:new l}}get name(){return"gradient"}get tag(){return"gradientFill"}render(u,o){switch(u.openNode("gradientFill"),o.gradient){case"angle":u.addAttribute("degree",o.degree);break;case"path":u.addAttribute("type","path"),o.center.left&&(u.addAttribute("left",o.center.left),o.center.right===void 0&&u.addAttribute("right",o.center.left)),o.center.right&&u.addAttribute("right",o.center.right),o.center.top&&(u.addAttribute("top",o.center.top),o.center.bottom===void 0&&u.addAttribute("bottom",o.center.top)),o.center.bottom&&u.addAttribute("bottom",o.center.bottom)}const p=this.map.stop;o.stops.forEach(m=>{p.render(u,m)}),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"gradientFill":{const o=this.model={stops:[]};return u.attributes.degree?(o.gradient="angle",o.degree=parseInt(u.attributes.degree,10)):u.attributes.type==="path"&&(o.gradient="path",o.center={left:u.attributes.left?parseFloat(u.attributes.left):0,top:u.attributes.top?parseFloat(u.attributes.top):0},u.attributes.right!==u.attributes.left&&(o.center.right=u.attributes.right?parseFloat(u.attributes.right):0),u.attributes.bottom!==u.attributes.top&&(o.center.bottom=u.attributes.bottom?parseFloat(u.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(this.parser.parseClose(u)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class s extends d{constructor(){super(),this.map={patternFill:new i,gradientFill:new e}}get tag(){return"fill"}render(u,o){switch(u.addRollback(),u.openNode("fill"),o.type){case"pattern":this.map.patternFill.render(u,o);break;case"gradient":this.map.gradientFill.render(u,o);break;default:return void u.rollback()}u.closeNode(),u.commit()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name==="fill"?(this.model={},!0):(this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(this.parser.parseClose(u)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(u){return s.validPatternValues[u]}}s.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((c,u)=>(c[u]=!0,c),{}),s.StopXform=l,s.PatternFillXform=i,s.GradientFillXform=e,y.exports=s},{"../base-xform":32,"./color-xform":128}],131:[function(r,y,_){const d=r("./color-xform"),a=r("../simple/boolean-xform"),l=r("../simple/integer-xform"),i=r("../simple/string-xform"),e=r("./underline-xform"),s=r("../../../utils/under-dash"),c=r("../base-xform");class u extends c{constructor(p){super(),this.options=p||u.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new l({tag:"charset",attr:"val"})},color:{prop:"color",xform:new d},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new l({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new i({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new i({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new l({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new i({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(p,m){const{map:f}=this;p.openNode(this.options.tagName),s.each(this.map,(v,b)=>{f[b].xform.render(p,m[v.prop])}),p.closeNode()}parseOpen(p){return this.parser?(this.parser.parseOpen(p),!0):this.map[p.name]?(this.parser=this.map[p.name].xform,this.parser.parseOpen(p)):p.name===this.options.tagName?(this.model={},!0):!1}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser&&!this.parser.parseClose(p)){const m=this.map[p];return this.parser.model&&(this.model[m.prop]=this.parser.model),this.parser=void 0,!0}return p!==this.options.tagName}}u.OPTIONS={tagName:"font",fontNameTag:"name"},y.exports=u},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(r,y,_){const d=r("../../../utils/under-dash"),a=r("../../defaultnumformats"),l=r("../base-xform"),i=(function(){const s={};return d.each(a,(c,u)=>{c.f&&(s[c.f]=parseInt(u,10))}),s})();class e extends l{constructor(c,u){super(),this.id=c,this.formatCode=u}get tag(){return"numFmt"}render(c,u){c.leafNode("numFmt",{numFmtId:u.id,formatCode:u.formatCode})}parseOpen(c){return c.name==="numFmt"?(this.model={id:parseInt(c.attributes.numFmtId,10),formatCode:c.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0):!1}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(s){return i[s]},e.getDefaultFmtCode=function(s){return a[s]&&a[s].f},y.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(r,y,_){const d=r("../base-xform"),a={boolean:(l,i)=>l===void 0?i:l};y.exports=class extends d{get tag(){return"protection"}render(l,i){l.addRollback(),l.openNode("protection");let e=!1;function s(c,u){u!==void 0&&(l.addAttribute(c,u),e=!0)}s("locked",a.boolean(i.locked,!0)?void 0:"0"),s("hidden",a.boolean(i.hidden,!1)?"1":void 0),l.closeNode(),e?l.commit():l.rollback()}parseOpen(l){const i={locked:l.attributes.locked!=="0",hidden:l.attributes.hidden==="1"},e=!i.locked||i.hidden;this.model=e?i:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(r,y,_){const d=r("../base-xform"),a=r("./alignment-xform"),l=r("./protection-xform");y.exports=class extends d{constructor(i){super(),this.xfId=!(!i||!i.xfId),this.map={alignment:new a,protection:new l}}get tag(){return"xf"}render(i,e){i.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&i.addAttribute("xfId",e.xfId||0),e.numFmtId&&i.addAttribute("applyNumberFormat","1"),e.fontId&&i.addAttribute("applyFont","1"),e.fillId&&i.addAttribute("applyFill","1"),e.borderId&&i.addAttribute("applyBorder","1"),e.alignment&&i.addAttribute("applyAlignment","1"),e.protection&&i.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(i,e.alignment),e.protection&&this.map.protection.render(i,e.protection),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"xf":return this.model={numFmtId:parseInt(i.attributes.numFmtId,10),fontId:parseInt(i.attributes.fontId,10),fillId:parseInt(i.attributes.fillId,10),borderId:parseInt(i.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(i.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(i),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(i),!0;default:return!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):i!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(r,y,_){const d=r("../../../doc/enums"),a=r("../../../utils/xml-stream"),l=r("../base-xform"),i=r("../static-xform"),e=r("../list-xform"),s=r("./font-xform"),c=r("./fill-xform"),u=r("./border-xform"),o=r("./numfmt-xform"),p=r("./style-xform"),m=r("./dxf-xform");class f extends l{constructor(b){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new o}),fonts:new e({tag:"fonts",count:!0,childXform:new s,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new c}),borders:new e({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new p}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new p({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new m}),numFmt:new o,font:new s,fill:new c,border:new u,style:new p({xfId:!0}),cellStyles:f.STATIC_XFORMS.cellStyles,tableStyles:f.STATIC_XFORMS.tableStyles,extLst:f.STATIC_XFORMS.extLst},b&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(b,T){T=T||this.model,b.openXml(a.StdDocAttributes),b.openNode("styleSheet",f.STYLESHEET_ATTRIBUTES),this.index?(T.numFmts&&T.numFmts.length&&(b.openNode("numFmts",{count:T.numFmts.length}),T.numFmts.forEach(C=>{b.writeXml(C)}),b.closeNode()),T.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),b.openNode("fonts",{count:T.fonts.length,"x14ac:knownFonts":1}),T.fonts.forEach(C=>{b.writeXml(C)}),b.closeNode(),b.openNode("fills",{count:T.fills.length}),T.fills.forEach(C=>{b.writeXml(C)}),b.closeNode(),b.openNode("borders",{count:T.borders.length}),T.borders.forEach(C=>{b.writeXml(C)}),b.closeNode(),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),b.openNode("cellXfs",{count:T.styles.length}),T.styles.forEach(C=>{b.writeXml(C)}),b.closeNode()):(this.map.numFmts.render(b,T.numFmts),this.map.fonts.render(b,T.fonts),this.map.fills.render(b,T.fills),this.map.borders.render(b,T.borders),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(b,T.styles)),f.STATIC_XFORMS.cellStyles.render(b),this.map.dxfs.render(b,T.dxfs),f.STATIC_XFORMS.tableStyles.render(b),f.STATIC_XFORMS.extLst.render(b),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):b.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"styleSheet":{this.model={};const T=(C,I)=>{I.model&&I.model.length&&(this.model[C]=I.model)};if(T("numFmts",this.map.numFmts),T("fonts",this.map.fonts),T("fills",this.map.fills),T("borders",this.map.borders),T("styles",this.map.cellXfs),T("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const C=this.index.numFmt;this.model.numFmts.forEach(I=>{C[I.id]=I.formatCode})}return!1}default:return!0}}addStyleModel(b,T){if(!b)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(b))return this.weakMap.get(b);const C={};if(T=T||d.ValueType.Number,b.numFmt)C.numFmtId=this._addNumFmtStr(b.numFmt);else switch(T){case d.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case d.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}b.font&&(C.fontId=this._addFont(b.font)),b.border&&(C.borderId=this._addBorder(b.border)),b.fill&&(C.fillId=this._addFill(b.fill)),b.alignment&&(C.alignment=b.alignment),b.protection&&(C.protection=b.protection);const I=this._addStyle(C);return this.weakMap&&this.weakMap.set(b,I),I}getStyleModel(b){const T=this.model.styles[b];if(!T)return null;let C=this.index.model[b];if(C)return C;if(C=this.index.model[b]={},T.numFmtId){const H=this.index.numFmt[T.numFmtId]||o.getDefaultFmtCode(T.numFmtId);H&&(C.numFmt=H)}function I(H,Z,P){if(P||P===0){const q=Z[P];q&&(C[H]=q)}}return I("font",this.model.fonts,T.fontId),I("border",this.model.borders,T.borderId),I("fill",this.model.fills,T.fillId),T.alignment&&(C.alignment=T.alignment),T.protection&&(C.protection=T.protection),C}addDxfStyle(b){return b.numFmt&&(b.numFmtId=this._addNumFmtStr(b.numFmt)),this.model.dxfs.push(b),this.model.dxfs.length-1}getDxfStyle(b){return this.model.dxfs[b]}_addStyle(b){const T=this.map.style.toXml(b);let C=this.index.style[T];return C===void 0&&(C=this.index.style[T]=this.model.styles.length,this.model.styles.push(T)),C}_addNumFmtStr(b){let T=o.getDefaultFmtId(b);if(T!==void 0||(T=this.index.numFmt[b],T!==void 0))return T;T=this.index.numFmt[b]=164+this.model.numFmts.length;const C=this.map.numFmt.toXml({id:T,formatCode:b});return this.model.numFmts.push(C),T}_addFont(b){const T=this.map.font.toXml(b);let C=this.index.font[T];return C===void 0&&(C=this.index.font[T]=this.model.fonts.length,this.model.fonts.push(T)),C}_addBorder(b){const T=this.map.border.toXml(b);let C=this.index.border[T];return C===void 0&&(C=this.index.border[T]=this.model.borders.length,this.model.borders.push(T)),C}_addFill(b){const T=this.map.fill.toXml(b);let C=this.index.fill[T];return C===void 0&&(C=this.index.fill[T]=this.model.fills.length,this.model.fills.push(T)),C}}f.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},f.STATIC_XFORMS={cellStyles:new i({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new i({tag:"dxfs",$:{count:0}}),tableStyles:new i({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new i({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},f.Mock=class extends f{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(v){return v.autodrain(),Promise.resolve()}addStyleModel(v,b){return b===d.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const v={numFmtId:o.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(v)}return this._dateStyleId}getStyleModel(){return{}}},y.exports=f},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(r,y,_){const d=r("../base-xform");class a extends d{constructor(i){super(),this.model=i}get tag(){return"u"}render(i,e){if((e=e||this.model)===!0)i.leafNode("u");else{const s=a.Attributes[e];s&&i.leafNode("u",s)}}parseOpen(i){i.name==="u"&&(this.model=i.attributes.val||!0)}parseText(){}parseClose(){return!1}}a.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},y.exports=a},{"../base-xform":32}],137:[function(r,y,_){const d=r("../base-xform"),a=r("./filter-column-xform");y.exports=class extends d{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(l){l.columns.forEach((i,e)=>{this.map.filterColumn.prepare(i,{index:e})})}render(l,i){return l.openNode(this.tag,{ref:i.autoFilterRef}),i.columns.forEach(e=>{this.map.filterColumn.render(l,e)}),l.closeNode(),!0}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:return this.model={autoFilterRef:l.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[l.name],this.parser)return this.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(l===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+l)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"customFilter"}render(a,l){a.leafNode(this.tag,{val:l.val,operator:l.operator})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val,operator:a.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(r,y,_){const d=r("../base-xform"),a=r("../list-xform"),l=r("./custom-filter-xform"),i=r("./filter-xform");y.exports=class extends d{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new l}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new i})}}get tag(){return"filterColumn"}prepare(e,s){e.colId=s.index.toString()}render(e,s){return s.customFilters?(e.openNode(this.tag,{colId:s.colId,hiddenButton:s.filterButton?"0":"1"}),this.map.customFilters.render(e,s.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:s.colId,hiddenButton:s.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:s}=e;switch(e.name){case this.tag:return this.model={filterButton:s.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e===this.tag?(this.model.customFilters=this.map.customFilters.model,!1):!0}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"filter"}render(a,l){a.leafNode(this.tag,{val:l.val})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"tableColumn"}prepare(a,l){a.id=l.index+1}render(a,l){return a.leafNode(this.tag,{id:l.id.toString(),name:l.name,totalsRowLabel:l.totalsRowLabel,totalsRowFunction:l.totalsRowFunction,dxfId:l.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:l}=a;return this.model={name:l.name,totalsRowLabel:l.totalsRowLabel,totalsRowFunction:l.totalsRowFunction,dxfId:l.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(r,y,_){const d=r("../base-xform");y.exports=class extends d{get tag(){return"tableStyleInfo"}render(a,l){return a.leafNode(this.tag,{name:l.theme?l.theme:void 0,showFirstColumn:l.showFirstColumn?"1":"0",showLastColumn:l.showLastColumn?"1":"0",showRowStripes:l.showRowStripes?"1":"0",showColumnStripes:l.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:l}=a;return this.model={theme:l.name?l.name:null,showFirstColumn:l.showFirstColumn==="1",showLastColumn:l.showLastColumn==="1",showRowStripes:l.showRowStripes==="1",showColumnStripes:l.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(r,y,_){const d=r("../../../utils/xml-stream"),a=r("../base-xform"),l=r("../list-xform"),i=r("./auto-filter-xform"),e=r("./table-column-xform"),s=r("./table-style-info-xform");class c extends a{constructor(){super(),this.map={autoFilter:new i,tableColumns:new l({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new s}}prepare(o,p){this.map.autoFilter.prepare(o),this.map.tableColumns.prepare(o.columns,p)}get tag(){return"table"}render(o,p){o.openXml(d.StdDocAttributes),o.openNode(this.tag,{...c.TABLE_ATTRIBUTES,id:p.id,name:p.name,displayName:p.displayName||p.name,ref:p.tableRef,totalsRowCount:p.totalsRow?"1":void 0,totalsRowShown:p.totalsRow?void 0:"1",headerRowCount:p.headerRow?"1":"0"}),this.map.autoFilter.render(o,p),this.map.tableColumns.render(o,p.columns),this.map.tableStyleInfo.render(o,p.style),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;const{name:p,attributes:m}=o;return p===this.tag?(this.reset(),this.model={name:m.name,displayName:m.displayName||m.name,tableRef:m.ref,totalsRow:m.totalsRowCount==="1",headerRow:m.headerRowCount==="1"}):(this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)),!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.parser=void 0),!0):o===this.tag?(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((p,m)=>{this.model.columns[m].filterButton=p.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1):!0}reconcile(o,p){o.columns.forEach(m=>{m.dxfId!==void 0&&(m.style=p.styles.getDxfStyle(m.dxfId))})}}c.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},y.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(r,y,_){(function(d,a){(function(){const l=r("fs"),i=r("jszip"),{PassThrough:e}=r("readable-stream"),s=r("../utils/zip-stream"),c=r("../utils/stream-buf"),u=r("../utils/utils"),o=r("../utils/xml-stream"),{bufferToString:p}=r("../utils/browser-buffer-decode"),m=r("./xform/style/styles-xform"),f=r("./xform/core/core-xform"),v=r("./xform/strings/shared-strings-xform"),b=r("./xform/core/relationships-xform"),T=r("./xform/core/content-types-xform"),C=r("./xform/core/app-xform"),I=r("./xform/book/workbook-xform"),H=r("./xform/sheet/worksheet-xform"),Z=r("./xform/drawing/drawing-xform"),P=r("./xform/table/table-xform"),q=r("./xform/comment/comments-xform"),V=r("./xform/comment/vml-notes-xform"),W=r("./xml/theme1");class ${constructor(z){this.workbook=z}async readFile(z,A){if(!await u.fs.exists(z))throw new Error("File not found: "+z);const g=l.createReadStream(z);try{const x=await this.read(g,A);return g.close(),x}catch(x){throw g.close(),x}}parseRels(z){return new b().parseStream(z)}parseWorkbook(z){return new I().parseStream(z)}parseSharedStrings(z){return new v().parseStream(z)}reconcile(z,A){const g=new I,x=new H(A),S=new Z,E=new P;g.reconcile(z);const O={media:z.media,mediaIndex:z.mediaIndex};Object.keys(z.drawings).forEach(Y=>{const K=z.drawings[Y],nt=z.drawingRels[Y];nt&&(O.rels=nt.reduce((U,J)=>(U[J.Id]=J,U),{}),(K.anchors||[]).forEach(U=>{const J=U.picture&&U.picture.hyperlinks;J&&O.rels[J.rId]&&(J.hyperlink=O.rels[J.rId].Target,delete J.rId)}),S.reconcile(K,O))});const j={styles:z.styles};Object.values(z.tables).forEach(Y=>{E.reconcile(Y,j)});const B={styles:z.styles,sharedStrings:z.sharedStrings,media:z.media,mediaIndex:z.mediaIndex,date1904:z.properties&&z.properties.date1904,drawings:z.drawings,comments:z.comments,tables:z.tables,vmlDrawings:z.vmlDrawings};z.worksheets.forEach(Y=>{Y.relationships=z.worksheetRels[Y.sheetNo],x.reconcile(Y,B)}),delete z.worksheetHash,delete z.worksheetRels,delete z.globalRels,delete z.sharedStrings,delete z.workbookRels,delete z.sheetDefs,delete z.styles,delete z.mediaIndex,delete z.drawings,delete z.drawingRels,delete z.vmlDrawings}async _processWorksheetEntry(z,A,g,x,S){const E=new H(x),O=await E.parseStream(z);O.sheetNo=g,A.worksheetHash[S]=O,A.worksheets.push(O)}async _processCommentEntry(z,A,g){const x=new q,S=await x.parseStream(z);A.comments[`../${g}.xml`]=S}async _processTableEntry(z,A,g){const x=new P,S=await x.parseStream(z);A.tables[`../tables/${g}.xml`]=S}async _processWorksheetRelsEntry(z,A,g){const x=new b,S=await x.parseStream(z);A.worksheetRels[g]=S}async _processMediaEntry(z,A,g){const x=g.lastIndexOf(".");if(x>=1){const S=g.substr(x+1),E=g.substr(0,x);await new Promise((O,j)=>{const B=new c;B.on("finish",()=>{A.mediaIndex[g]=A.media.length,A.mediaIndex[E]=A.media.length;const Y={type:"image",name:E,extension:S,buffer:B.toBuffer()};A.media.push(Y),O()}),z.on("error",Y=>{j(Y)}),z.pipe(B)})}}async _processDrawingEntry(z,A,g){const x=new Z,S=await x.parseStream(z);A.drawings[g]=S}async _processDrawingRelsEntry(z,A,g){const x=new b,S=await x.parseStream(z);A.drawingRels[g]=S}async _processVmlDrawingEntry(z,A,g){const x=new V,S=await x.parseStream(z);A.vmlDrawings[`../drawings/${g}.vml`]=S}async _processThemeEntry(z,A,g){await new Promise((x,S)=>{const E=new c;z.on("error",S),E.on("error",S),E.on("finish",()=>{A.themes[g]=E.read().toString(),x()}),z.pipe(E)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(z,A){!z[Symbol.asyncIterator]&&z.pipe&&(z=z.pipe(new e));const g=[];for await(const x of z)g.push(x);return this.load(a.concat(g),A)}async load(z,A){let g;g=A&&A.base64?a.from(z.toString(),"base64"):z;const x={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},S=await i.loadAsync(g);for(const E of Object.values(S.files))if(!E.dir){let O,j=E.name;if(j[0]==="/"&&(j=j.substr(1)),j.match(/xl\/media\//)||j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))O=new e,O.write(await E.async("nodebuffer"));else{let B;O=new e({writableObjectMode:!0,readableObjectMode:!0}),B=d.browser?p(await E.async("nodebuffer")):await E.async("string");const Y=16384;for(let K=0;K<B.length;K+=Y)O.write(B.substring(K,K+Y))}switch(O.end(),j){case"_rels/.rels":x.globalRels=await this.parseRels(O);break;case"xl/workbook.xml":{const B=await this.parseWorkbook(O);x.sheets=B.sheets,x.definedNames=B.definedNames,x.views=B.views,x.properties=B.properties,x.calcProperties=B.calcProperties;break}case"xl/_rels/workbook.xml.rels":x.workbookRels=await this.parseRels(O);break;case"xl/sharedStrings.xml":x.sharedStrings=new v,await x.sharedStrings.parseStream(O);break;case"xl/styles.xml":x.styles=new m,await x.styles.parseStream(O);break;case"docProps/app.xml":{const B=new C,Y=await B.parseStream(O);x.company=Y.company,x.manager=Y.manager;break}case"docProps/core.xml":{const B=new f,Y=await B.parseStream(O);Object.assign(x,Y);break}default:{let B=j.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(B){await this._processWorksheetEntry(O,x,B[1],A,j);break}if(B=j.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),B){await this._processWorksheetRelsEntry(O,x,B[1]);break}if(B=j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),B){await this._processThemeEntry(O,x,B[1]);break}if(B=j.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),B){await this._processMediaEntry(O,x,B[1]);break}if(B=j.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),B){await this._processDrawingEntry(O,x,B[1]);break}if(B=j.match(/xl\/(comments\d+)[.]xml/),B){await this._processCommentEntry(O,x,B[1]);break}if(B=j.match(/xl\/tables\/(table\d+)[.]xml/),B){await this._processTableEntry(O,x,B[1]);break}if(B=j.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),B){await this._processDrawingRelsEntry(O,x,B[1]);break}if(B=j.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),B){await this._processVmlDrawingEntry(O,x,B[1]);break}}}}return this.reconcile(x,A),this.workbook.model=x,this.workbook}async addMedia(z,A){await Promise.all(A.media.map(async g=>{if(g.type==="image"){const x=`xl/media/${g.name}.${g.extension}`;if(g.filename){const S=await(function(E,O){return new Promise((j,B)=>{l.readFile(E,O,(Y,K)=>{Y?B(Y):j(K)})})})(g.filename);return z.append(S,{name:x})}if(g.buffer)return z.append(g.buffer,{name:x});if(g.base64){const S=g.base64,E=S.substring(S.indexOf(",")+1);return z.append(E,{name:x,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(z,A){const g=new Z,x=new b;A.worksheets.forEach(S=>{const{drawing:E}=S;if(E){g.prepare(E,{});let O=g.toXml(E);z.append(O,{name:`xl/drawings/${E.name}.xml`}),O=x.toXml(E.rels),z.append(O,{name:`xl/drawings/_rels/${E.name}.xml.rels`})}})}addTables(z,A){const g=new P;A.worksheets.forEach(x=>{const{tables:S}=x;S.forEach(E=>{g.prepare(E,{});const O=g.toXml(E);z.append(O,{name:"xl/tables/"+E.target})})})}async addContentTypes(z,A){const g=new T().toXml(A);z.append(g,{name:"[Content_Types].xml"})}async addApp(z,A){const g=new C().toXml(A);z.append(g,{name:"docProps/app.xml"})}async addCore(z,A){const g=new f;z.append(g.toXml(A),{name:"docProps/core.xml"})}async addThemes(z,A){const g=A.themes||{theme1:W};Object.keys(g).forEach(x=>{const S=g[x],E=`xl/theme/${x}.xml`;z.append(S,{name:E})})}async addOfficeRels(z){const A=new b().toXml([{Id:"rId1",Type:$.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:$.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:$.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);z.append(A,{name:"_rels/.rels"})}async addWorkbookRels(z,A){let g=1;const x=[{Id:"rId"+g++,Type:$.RelType.Styles,Target:"styles.xml"},{Id:"rId"+g++,Type:$.RelType.Theme,Target:"theme/theme1.xml"}];A.sharedStrings.count&&x.push({Id:"rId"+g++,Type:$.RelType.SharedStrings,Target:"sharedStrings.xml"}),A.worksheets.forEach(E=>{E.rId="rId"+g++,x.push({Id:E.rId,Type:$.RelType.Worksheet,Target:`worksheets/sheet${E.id}.xml`})});const S=new b().toXml(x);z.append(S,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(z,A){A.sharedStrings&&A.sharedStrings.count&&z.append(A.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(z,A){const{xml:g}=A.styles;g&&z.append(g,{name:"xl/styles.xml"})}async addWorkbook(z,A){const g=new I;z.append(g.toXml(A),{name:"xl/workbook.xml"})}async addWorksheets(z,A){const g=new H,x=new b,S=new q,E=new V;A.worksheets.forEach(O=>{let j=new o;g.render(j,O),z.append(j.xml,{name:`xl/worksheets/sheet${O.id}.xml`}),O.rels&&O.rels.length&&(j=new o,x.render(j,O.rels),z.append(j.xml,{name:`xl/worksheets/_rels/sheet${O.id}.xml.rels`})),O.comments.length>0&&(j=new o,S.render(j,O),z.append(j.xml,{name:`xl/comments${O.id}.xml`}),j=new o,E.render(j,O),z.append(j.xml,{name:`xl/drawings/vmlDrawing${O.id}.vml`}))})}_finalize(z){return new Promise((A,g)=>{z.on("finish",()=>{A(this)}),z.on("error",g),z.finalize()})}prepareModel(z,A){z.creator=z.creator||"ExcelJS",z.lastModifiedBy=z.lastModifiedBy||"ExcelJS",z.created=z.created||new Date,z.modified=z.modified||new Date,z.useSharedStrings=A.useSharedStrings===void 0||A.useSharedStrings,z.useStyles=A.useStyles===void 0||A.useStyles,z.sharedStrings=new v,z.styles=z.useStyles?new m(!0):new m.Mock;const g=new I,x=new H;g.prepare(z);const S={sharedStrings:z.sharedStrings,styles:z.styles,date1904:z.properties.date1904,drawingsCount:0,media:z.media};S.drawings=z.drawings=[],S.commentRefs=z.commentRefs=[];let E=0;z.tables=[],z.worksheets.forEach(O=>{O.tables.forEach(j=>{E++,j.target=`table${E}.xml`,j.id=E,z.tables.push(j)}),x.prepare(O,S)})}async write(z,A){A=A||{};const{model:g}=this.workbook,x=new s.ZipWriter(A.zip);return x.pipe(z),this.prepareModel(g,A),await this.addContentTypes(x,g),await this.addOfficeRels(x,g),await this.addWorkbookRels(x,g),await this.addWorksheets(x,g),await this.addSharedStrings(x,g),await this.addDrawings(x,g),await this.addTables(x,g),await Promise.all([this.addThemes(x,g),this.addStyles(x,g)]),await this.addMedia(x,g),await Promise.all([this.addApp(x,g),this.addCore(x,g)]),await this.addWorkbook(x,g),this._finalize(x)}writeFile(z,A){const g=l.createWriteStream(z);return new Promise((x,S)=>{g.on("finish",()=>{x()}),g.on("error",E=>{S(E)}),this.write(g,A).then(()=>{g.end()}).catch(E=>{S(E)})})}async writeBuffer(z){const A=new c;return await this.write(A,z),A.read()}}$.RelType=r("./rel-type"),y.exports=$}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(r,y,_){y.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
11
|
+
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(r,y,_){(function(d){(function(){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvFormatterStream=void 0;const a=r("stream"),l=r("./formatter");class i extends a.Transform{constructor(s){super({writableObjectMode:s.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=s,this.rowFormatter=new l.RowFormatter(s),this.hasWrittenBOM=!s.writeBOM}transform(s){return this.rowFormatter.rowTransform=s,this}_transform(s,c,u){let o=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(s,(p,m)=>p?(o=!0,u(p)):(m&&m.forEach(f=>{this.push(d.from(f,"utf8"))}),o=!0,u()))}catch(p){if(o)throw p;u(p)}}_flush(s){this.rowFormatter.finish((c,u)=>c?s(c):(u&&u.forEach(o=>{this.push(d.from(o,"utf8"))}),s()))}}_.CsvFormatterStream=i}).call(this)}).call(this,r("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.FormatterOptions=void 0,_.FormatterOptions=class{constructor(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var a;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
|
12
|
+
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,d||{}),d?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),d?.quote===!0?this.quote='"':d?.quote===!1&&(this.quote=""),typeof d?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=d.writeHeaders)===null||a===void 0||a),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(r,y,_){var d=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_,"__esModule",{value:!0}),_.FieldFormatter=void 0;const a=d(r("lodash.isboolean")),l=d(r("lodash.isnil")),i=d(r("lodash.escaperegexp"));_.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const s=`[${e.delimiter}${i.default(e.rowDelimiter)}|\r|
|
|
13
|
+
]`;this.ESCAPE_REGEXP=new RegExp(s)}set headers(e){this._headers=e}shouldQuote(e,s){const c=s?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(c)?c:Array.isArray(c)?c[e]:this._headers!==null&&c[this._headers[e]]}format(e,s,c){const u=(""+(l.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:o}=this;return o.quote!==""&&u.indexOf(o.quote)!==-1?this.quoteField(u.replace(this.REPLACE_REGEXP,o.escapedQuote)):u.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(s,c)?this.quoteField(u):u}quoteField(e){const{quote:s}=this.formatterOptions;return`${s}${e}${s}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(r,y,_){var d=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(_,"__esModule",{value:!0}),_.RowFormatter=void 0;const a=d(r("lodash.isfunction")),l=d(r("lodash.isequal")),i=r("./FieldFormatter"),e=r("../types");class s{constructor(u){this.rowCount=0,this.formatterOptions=u,this.fieldFormatter=new i.FieldFormatter(u),this.headers=u.headers,this.shouldWriteHeaders=u.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),u.transform&&(this.rowTransform=u.transform)}static isRowHashArray(u){return!!Array.isArray(u)&&Array.isArray(u[0])&&u[0].length===2}static isRowArray(u){return Array.isArray(u)&&!this.isRowHashArray(u)}static gatherHeaders(u){return s.isRowHashArray(u)?u.map(o=>o[0]):Array.isArray(u)?u:Object.keys(u)}static createTransform(u){return e.isSyncTransform(u)?(o,p)=>{let m=null;try{m=u(o)}catch(f){return p(f)}return p(null,m)}:(o,p)=>{u(o,p)}}set rowTransform(u){if(!a.default(u))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(u)}format(u,o){this.callTransformer(u,(p,m)=>{if(p)return o(p);if(!u)return o(null);const f=[];if(m){const{shouldFormatColumns:v,headers:b}=this.checkHeaders(m);if(this.shouldWriteHeaders&&b&&!this.hasWrittenHeaders&&(f.push(this.formatColumns(b,!0)),this.hasWrittenHeaders=!0),v){const T=this.gatherColumns(m);f.push(this.formatColumns(T,!1))}}return o(null,f)})}finish(u){const o=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return u(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));o.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&o.push(this.formatterOptions.rowDelimiter),u(null,o)}checkHeaders(u){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const o=s.gatherHeaders(u);return this.headers=o,this.fieldFormatter.headers=o,this.shouldWriteHeaders?{shouldFormatColumns:!l.default(o,u),headers:o}:{shouldFormatColumns:!0,headers:null}}gatherColumns(u){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(u)?s.isRowHashArray(u)?this.headers.map((o,p)=>{const m=u[p];return m?m[1]:""}):s.isRowArray(u)&&!this.shouldWriteHeaders?u:this.headers.map((o,p)=>u[p]):this.headers.map(o=>u[o])}callTransformer(u,o){return this._rowTransform?this._rowTransform(u,o):o(null,u)}formatColumns(u,o){const p=u.map((f,v)=>this.fieldFormatter.format(f,v,o)).join(this.formatterOptions.delimiter),{rowCount:m}=this;return this.rowCount+=1,m?[this.formatterOptions.rowDelimiter,p].join(""):p}}_.RowFormatter=s},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.FieldFormatter=_.RowFormatter=void 0;var d=r("./RowFormatter");Object.defineProperty(_,"RowFormatter",{enumerable:!0,get:function(){return d.RowFormatter}});var a=r("./FieldFormatter");Object.defineProperty(_,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(r,y,_){(function(d){(function(){var a=Object.create?function(v,b,T,C){C===void 0&&(C=T),Object.defineProperty(v,C,{enumerable:!0,get:function(){return b[T]}})}:function(v,b,T,C){C===void 0&&(C=T),v[C]=b[T]},l=Object.create?function(v,b){Object.defineProperty(v,"default",{enumerable:!0,value:b})}:function(v,b){v.default=b},i=function(v){if(v&&v.__esModule)return v;var b={};if(v!=null)for(var T in v)T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)&&a(b,v,T);return l(b,v),b},e=function(v,b){for(var T in v)T==="default"||Object.prototype.hasOwnProperty.call(b,T)||a(b,v,T)};Object.defineProperty(_,"__esModule",{value:!0}),_.writeToPath=_.writeToString=_.writeToBuffer=_.writeToStream=_.write=_.format=_.FormatterOptions=_.CsvFormatterStream=void 0;const s=r("util"),c=r("stream"),u=i(r("fs")),o=r("./FormatterOptions"),p=r("./CsvFormatterStream");e(r("./types"),_);var m=r("./CsvFormatterStream");Object.defineProperty(_,"CsvFormatterStream",{enumerable:!0,get:function(){return m.CsvFormatterStream}});var f=r("./FormatterOptions");Object.defineProperty(_,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),_.format=v=>new p.CsvFormatterStream(new o.FormatterOptions(v)),_.write=(v,b)=>{const T=_.format(b),C=s.promisify((I,H)=>{T.write(I,void 0,H)});return v.reduce((I,H)=>I.then(()=>C(H)),Promise.resolve()).then(()=>T.end()).catch(I=>{T.emit("error",I)}),T},_.writeToStream=(v,b,T)=>_.write(b,T).pipe(v),_.writeToBuffer=function(v){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const T=[],C=new c.Writable({write(I,H,Z){T.push(I),Z()}});return new Promise((I,H)=>{C.on("error",H).on("finish",()=>I(d.concat(T))),_.write(v,b).pipe(C)})},_.writeToString=(v,b)=>_.writeToBuffer(v,b).then(T=>T.toString()),_.writeToPath=(v,b,T)=>{const C=u.createWriteStream(v,{encoding:"utf8"});return _.write(b,T).pipe(C)}}).call(this)}).call(this,r("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.isSyncTransform=void 0,_.isSyncTransform=d=>d.length===1},{}],153:[function(r,y,_){(function(d){(function(){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvParserStream=void 0;const a=r("string_decoder"),l=r("stream"),i=r("./transforms"),e=r("./parser");class s extends l.Transform{constructor(u){super({objectMode:u.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=u,this.parser=new e.Parser(u),this.headerTransformer=new i.HeaderTransformer(u),this.decoder=new a.StringDecoder(u.encoding),this.rowTransformerValidator=new i.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(u){return this.rowTransformerValidator.rowTransform=u,this}validate(u){return this.rowTransformerValidator.rowValidator=u,this}emit(u){if(u==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var o=arguments.length,p=new Array(o>1?o-1:0),m=1;m<o;m++)p[m-1]=arguments[m];return super.emit(u,...p)}_transform(u,o,p){if(this.hasHitRowLimit)return p();const m=s.wrapDoneCallback(p);try{const{lines:f}=this,v=f+this.decoder.write(u),b=this.parse(v,!0);return this.processRows(b,m)}catch(f){return m(f)}}_flush(u){const o=s.wrapDoneCallback(u);if(this.hasHitRowLimit)return o();try{const p=this.lines+this.decoder.end(),m=this.parse(p,!1);return this.processRows(m,o)}catch(p){return o(p)}}parse(u,o){if(!u)return[];const{line:p,rows:m}=this.parser.parse(u,o);return this.lines=p,m}processRows(u,o){const p=u.length,m=f=>{const v=C=>C?o(C):f%100!=0?m(f+1):void d(()=>m(f+1));if(this.checkAndEmitHeaders(),f>=p||this.hasHitRowLimit)return o();if(this.parsedLineCount+=1,this.shouldSkipLine)return v();const b=u[f];this.rowCount+=1,this.parsedRowCount+=1;const T=this.rowCount;return this.transformRow(b,(C,I)=>{if(C)return this.rowCount-=1,v(C);if(!I)return v(new Error("expected transform result"));if(I.isValid){if(I.row)return this.pushRow(I.row,v)}else this.emit("data-invalid",I.row,T,I.reason);return v()})};m(0)}transformRow(u,o){try{this.headerTransformer.transform(u,(p,m)=>p?o(p):m?m.isValid?m.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(m.row,o):this.skipRow(o):(this.rowCount-=1,this.parsedRowCount-=1,o(null,{row:null,isValid:!0})):this.shouldEmitRows?o(null,{isValid:!1,row:u}):this.skipRow(o):o(new Error("Expected result from header transform")))}catch(p){o(p)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(u){return this.rowCount-=1,u(null,{row:null,isValid:!0})}pushRow(u,o){try{this.parserOptions.objectMode?this.push(u):this.push(JSON.stringify(u)),o()}catch(p){o(p)}}static wrapDoneCallback(u){let o=!1;return function(p){if(p){if(o)throw p;return o=!0,void u(p)}for(var m=arguments.length,f=new Array(m>1?m-1:0),v=1;v<m;v++)f[v-1]=arguments[v];u(...f)}}}_.CsvParserStream=s}).call(this)}).call(this,r("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(r,y,_){var d=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_,"__esModule",{value:!0}),_.ParserOptions=void 0;const a=d(r("lodash.escaperegexp")),l=d(r("lodash.isnil"));_.ParserOptions=class{constructor(i){var e;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,i||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(e=this.escape)!==null&&e!==void 0?e:this.quote,this.supportsComments=!l.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(r,y,_){var d=Object.create?function(m,f,v,b){b===void 0&&(b=v),Object.defineProperty(m,b,{enumerable:!0,get:function(){return f[v]}})}:function(m,f,v,b){b===void 0&&(b=v),m[b]=f[v]},a=Object.create?function(m,f){Object.defineProperty(m,"default",{enumerable:!0,value:f})}:function(m,f){m.default=f},l=function(m){if(m&&m.__esModule)return m;var f={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&d(f,m,v);return a(f,m),f},i=function(m,f){for(var v in m)v==="default"||Object.prototype.hasOwnProperty.call(f,v)||d(f,m,v)};Object.defineProperty(_,"__esModule",{value:!0}),_.parseString=_.parseFile=_.parseStream=_.parse=_.ParserOptions=_.CsvParserStream=void 0;const e=l(r("fs")),s=r("stream"),c=r("./ParserOptions"),u=r("./CsvParserStream");i(r("./types"),_);var o=r("./CsvParserStream");Object.defineProperty(_,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}});var p=r("./ParserOptions");Object.defineProperty(_,"ParserOptions",{enumerable:!0,get:function(){return p.ParserOptions}}),_.parse=m=>new u.CsvParserStream(new c.ParserOptions(m)),_.parseStream=(m,f)=>m.pipe(new u.CsvParserStream(new c.ParserOptions(f))),_.parseFile=function(m){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.createReadStream(m).pipe(new u.CsvParserStream(new c.ParserOptions(f)))},_.parseString=(m,f)=>{const v=new s.Readable;return v.push(m),v.push(null),v.pipe(new u.CsvParserStream(new c.ParserOptions(f)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Parser=void 0;const d=r("./Scanner"),a=r("./RowParser"),l=r("./Token");class i{constructor(s){this.parserOptions=s,this.rowParser=new a.RowParser(this.parserOptions)}static removeBOM(s){return s&&s.charCodeAt(0)===65279?s.slice(1):s}parse(s,c){const u=new d.Scanner({line:i.removeBOM(s),parserOptions:this.parserOptions,hasMoreData:c});return this.parserOptions.supportsComments?this.parseWithComments(u):this.parseWithoutComments(u)}parseWithoutComments(s){const c=[];let u=!0;for(;u;)u=this.parseRow(s,c);return{line:s.line,rows:c}}parseWithComments(s){const{parserOptions:c}=this,u=[];for(let o=s.nextCharacterToken;o!==null;o=s.nextCharacterToken)if(l.Token.isTokenComment(o,c)){if(s.advancePastLine()===null)return{line:s.lineFromCursor,rows:u};if(!s.hasMoreCharacters)return{line:s.lineFromCursor,rows:u};s.truncateToCursor()}else if(!this.parseRow(s,u))break;return{line:s.line,rows:u}}parseRow(s,c){if(!s.nextNonSpaceToken)return!1;const u=this.rowParser.parse(s);return u!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(u)||c.push(u),!0)}}_.Parser=i},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.RowParser=void 0;const d=r("./column"),a=r("./Token");_.RowParser=class{constructor(l){this.parserOptions=l,this.columnParser=new d.ColumnParser(l)}static isEmptyRow(l){return l.join("").replace(/\s+/g,"")===""}parse(l){const{parserOptions:i}=this,{hasMoreData:e}=l,s=l,c=[];let u=this.getStartToken(s,c);for(;u;){if(a.Token.isTokenRowDelimiter(u))return s.advancePastToken(u),!s.hasMoreCharacters&&a.Token.isTokenCarriageReturn(u,i)&&e?null:(s.truncateToCursor(),c);if(!this.shouldSkipColumnParse(s,u,c)){const o=this.columnParser.parse(s);if(o===null)return null;c.push(o)}u=s.nextNonSpaceToken}return e?null:(s.truncateToCursor(),c)}getStartToken(l,i){const e=l.nextNonSpaceToken;return e!==null&&a.Token.isTokenDelimiter(e,this.parserOptions)?(i.push(""),l.nextNonSpaceToken):e}shouldSkipColumnParse(l,i,e){const{parserOptions:s}=this;if(a.Token.isTokenDelimiter(i,s)){l.advancePastToken(i);const c=l.nextCharacterToken;if(!l.hasMoreCharacters||c!==null&&a.Token.isTokenRowDelimiter(c)||c!==null&&a.Token.isTokenDelimiter(c,s))return e.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Scanner=void 0;const d=r("./Token"),a=/((?:\r\n)|\n|\r)/;_.Scanner=class{constructor(l){this.cursor=0,this.line=l.line,this.lineLength=this.line.length,this.parserOptions=l.parserOptions,this.hasMoreData=l.hasMoreData,this.cursor=l.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:l}=this,i=this.parserOptions.NEXT_TOKEN_REGEXP;if(l.search(i)===-1)return null;const e=i.exec(l);if(e==null)return null;const s=e[1],c=this.cursor+(e.index||0);return new d.Token({token:s,startCursor:c,endCursor:c+s.length-1})}get nextCharacterToken(){const{cursor:l,lineLength:i}=this;return i<=l?null:new d.Token({token:this.line[l],startCursor:l,endCursor:l})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const l=a.exec(this.lineFromCursor);return l?(this.cursor+=(l.index||0)+l[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(l){return this.cursor=l,this}advanceToToken(l){return this.cursor=l.startCursor,this}advancePastToken(l){return this.cursor=l.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Token=void 0,_.Token=class{constructor(d){this.token=d.token,this.startCursor=d.startCursor,this.endCursor=d.endCursor}static isTokenRowDelimiter(d){const a=d.token;return a==="\r"||a===`
|
|
14
|
+
`||a===`\r
|
|
15
|
+
`}static isTokenCarriageReturn(d,a){return d.token===a.carriageReturn}static isTokenComment(d,a){return a.supportsComments&&!!d&&d.token===a.comment}static isTokenEscapeCharacter(d,a){return d.token===a.escapeChar}static isTokenQuote(d,a){return d.token===a.quote}static isTokenDelimiter(d,a){return d.token===a.delimiter}}},{}],160:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnFormatter=void 0,_.ColumnFormatter=class{constructor(d){d.trim?this.format=a=>a.trim():d.ltrim?this.format=a=>a.trimLeft():d.rtrim?this.format=a=>a.trimRight():this.format=a=>a}}},{}],161:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnParser=void 0;const d=r("./NonQuotedColumnParser"),a=r("./QuotedColumnParser"),l=r("../Token");_.ColumnParser=class{constructor(i){this.parserOptions=i,this.quotedColumnParser=new a.QuotedColumnParser(i),this.nonQuotedColumnParser=new d.NonQuotedColumnParser(i)}parse(i){const{nextNonSpaceToken:e}=i;return e!==null&&l.Token.isTokenQuote(e,this.parserOptions)?(i.advanceToToken(e),this.quotedColumnParser.parse(i)):this.nonQuotedColumnParser.parse(i)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.NonQuotedColumnParser=void 0;const d=r("./ColumnFormatter"),a=r("../Token");_.NonQuotedColumnParser=class{constructor(l){this.parserOptions=l,this.columnFormatter=new d.ColumnFormatter(l)}parse(l){if(!l.hasMoreCharacters)return null;const{parserOptions:i}=this,e=[];let s=l.nextCharacterToken;for(;s&&!a.Token.isTokenDelimiter(s,i)&&!a.Token.isTokenRowDelimiter(s);s=l.nextCharacterToken)e.push(s.token),l.advancePastToken(s);return this.columnFormatter.format(e.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.QuotedColumnParser=void 0;const d=r("./ColumnFormatter"),a=r("../Token");_.QuotedColumnParser=class{constructor(l){this.parserOptions=l,this.columnFormatter=new d.ColumnFormatter(l)}parse(l){if(!l.hasMoreCharacters)return null;const i=l.cursor,{foundClosingQuote:e,col:s}=this.gatherDataBetweenQuotes(l);if(!e){if(l.advanceTo(i),!l.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${l.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(l),s}gatherDataBetweenQuotes(l){const{parserOptions:i}=this;let e=!1,s=!1;const c=[];let u=l.nextCharacterToken;for(;!s&&u!==null;u=l.nextCharacterToken){const o=a.Token.isTokenQuote(u,i);if(!e&&o)e=!0;else if(e)if(a.Token.isTokenEscapeCharacter(u,i)){l.advancePastToken(u);const p=l.nextCharacterToken;p!==null&&(a.Token.isTokenQuote(p,i)||a.Token.isTokenEscapeCharacter(p,i))?(c.push(p.token),u=p):o?s=!0:c.push(u.token)}else o?s=!0:c.push(u.token);l.advancePastToken(u)}return{col:this.columnFormatter.format(c.join("")),foundClosingQuote:s}}checkForMalformedColumn(l){const{parserOptions:i}=this,{nextNonSpaceToken:e}=l;if(e){const s=a.Token.isTokenDelimiter(e,i),c=a.Token.isTokenRowDelimiter(e);if(!s&&!c){const u=l.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${i.escapedDelimiter}' OR new line got: '${e.token}'. at '${u}`)}l.advanceToToken(e)}else l.hasMoreData||l.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnFormatter=_.QuotedColumnParser=_.NonQuotedColumnParser=_.ColumnParser=void 0;var d=r("./ColumnParser");Object.defineProperty(_,"ColumnParser",{enumerable:!0,get:function(){return d.ColumnParser}});var a=r("./NonQuotedColumnParser");Object.defineProperty(_,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var l=r("./QuotedColumnParser");Object.defineProperty(_,"QuotedColumnParser",{enumerable:!0,get:function(){return l.QuotedColumnParser}});var i=r("./ColumnFormatter");Object.defineProperty(_,"ColumnFormatter",{enumerable:!0,get:function(){return i.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.QuotedColumnParser=_.NonQuotedColumnParser=_.ColumnParser=_.Token=_.Scanner=_.RowParser=_.Parser=void 0;var d=r("./Parser");Object.defineProperty(_,"Parser",{enumerable:!0,get:function(){return d.Parser}});var a=r("./RowParser");Object.defineProperty(_,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var l=r("./Scanner");Object.defineProperty(_,"Scanner",{enumerable:!0,get:function(){return l.Scanner}});var i=r("./Token");Object.defineProperty(_,"Token",{enumerable:!0,get:function(){return i.Token}});var e=r("./column");Object.defineProperty(_,"ColumnParser",{enumerable:!0,get:function(){return e.ColumnParser}}),Object.defineProperty(_,"NonQuotedColumnParser",{enumerable:!0,get:function(){return e.NonQuotedColumnParser}}),Object.defineProperty(_,"QuotedColumnParser",{enumerable:!0,get:function(){return e.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(r,y,_){var d=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(_,"__esModule",{value:!0}),_.HeaderTransformer=void 0;const a=d(r("lodash.isundefined")),l=d(r("lodash.isfunction")),i=d(r("lodash.uniq")),e=d(r("lodash.groupby"));_.HeaderTransformer=class{constructor(s){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=s,s.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(s.headers)?this.setHeaders(s.headers):l.default(s.headers)&&(this.headersTransform=s.headers)}transform(s,c){return this.shouldMapRow(s)?c(null,this.processRow(s)):c(null,{row:null,isValid:!0})}shouldMapRow(s){const{parserOptions:c}=this;if(!this.headersTransform&&c.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(s)){if(this.headersTransform)this.setHeaders(this.headersTransform(s));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(s)}return!1}return!0}processRow(s){if(!this.headers)return{row:s,isValid:!0};const{parserOptions:c}=this;if(!c.discardUnmappedColumns&&s.length>this.headersLength){if(!c.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${s.length}`);return{row:s,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${s.length}`}}return c.strictColumnHandling&&s.length<this.headersLength?{row:s,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${s.length}`}:{row:this.mapHeaders(s),isValid:!0}}mapHeaders(s){const c={},{headers:u,headersLength:o}=this;for(let p=0;p<o;p+=1){const m=u[p];if(!a.default(m)){const f=s[p];a.default(f)?c[m]="":c[m]=f}}return c}setHeaders(s){var c;const u=s.filter(o=>!!o);if(i.default(u).length!==u.length){const o=e.default(u),p=Object.keys(o).filter(m=>o[m].length>1);throw new Error("Duplicate headers found "+JSON.stringify(p))}this.headers=s,this.receivedHeaders=!0,this.headersLength=((c=this.headers)===null||c===void 0?void 0:c.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(r,y,_){var d=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_,"__esModule",{value:!0}),_.RowTransformerValidator=void 0;const a=d(r("lodash.isfunction")),l=r("../types");class i{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(s){return l.isSyncTransform(s)?(c,u)=>{let o=null;try{o=s(c)}catch(p){return u(p)}return u(null,o)}:s}static createValidator(s){return l.isSyncValidate(s)?(c,u)=>{u(null,{row:c,isValid:s(c)})}:(c,u)=>{s(c,(o,p,m)=>o?u(o):u(null,p?{row:c,isValid:p,reason:m}:{row:c,isValid:!1,reason:m}))}}set rowTransform(s){if(!a.default(s))throw new TypeError("The transform should be a function");this._rowTransform=i.createTransform(s)}set rowValidator(s){if(!a.default(s))throw new TypeError("The validate should be a function");this._rowValidator=i.createValidator(s)}transformAndValidate(s,c){return this.callTransformer(s,(u,o)=>u?c(u):o?this.callValidator(o,(p,m)=>p?c(p):m&&!m.isValid?c(null,{row:o,isValid:!1,reason:m.reason}):c(null,{row:o,isValid:!0})):c(null,{row:null,isValid:!0}))}callTransformer(s,c){return this._rowTransform?this._rowTransform(s,c):c(null,s)}callValidator(s,c){return this._rowValidator?this._rowValidator(s,c):c(null,{row:s,isValid:!0})}}_.RowTransformerValidator=i},{"../types":169,"lodash.isfunction":446}],168:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.HeaderTransformer=_.RowTransformerValidator=void 0;var d=r("./RowTransformerValidator");Object.defineProperty(_,"RowTransformerValidator",{enumerable:!0,get:function(){return d.RowTransformerValidator}});var a=r("./HeaderTransformer");Object.defineProperty(_,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.isSyncValidate=_.isSyncTransform=void 0,_.isSyncTransform=d=>d.length===1,_.isSyncValidate=d=>d.length===1},{}],170:[function(r,y,_){const d=_;d.bignum=r("bn.js"),d.define=r("./asn1/api").define,d.base=r("./asn1/base"),d.constants=r("./asn1/constants"),d.decoders=r("./asn1/decoders"),d.encoders=r("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(r,y,_){const d=r("./encoders"),a=r("./decoders"),l=r("inherits");function i(e,s){this.name=e,this.body=s,this.decoders={},this.encoders={}}_.define=function(e,s){return new i(e,s)},i.prototype._createNamed=function(e){const s=this.name;function c(u){this._initNamed(u,s)}return l(c,e),c.prototype._initNamed=function(u,o){e.call(this,u,o)},new c(this)},i.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a[e])),this.decoders[e]},i.prototype.decode=function(e,s,c){return this._getDecoder(s).decode(e,c)},i.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(d[e])),this.encoders[e]},i.prototype.encode=function(e,s,c){return this._getEncoder(s).encode(e,c)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(r,y,_){const d=r("inherits"),a=r("../base/reporter").Reporter,l=r("safer-buffer").Buffer;function i(s,c){a.call(this,c),l.isBuffer(s)?(this.base=s,this.offset=0,this.length=s.length):this.error("Input not Buffer")}function e(s,c){if(Array.isArray(s))this.length=0,this.value=s.map((function(u){return e.isEncoderBuffer(u)||(u=new e(u,c)),this.length+=u.length,u}),this);else if(typeof s=="number"){if(!(0<=s&&s<=255))return c.error("non-byte EncoderBuffer value");this.value=s,this.length=1}else if(typeof s=="string")this.value=s,this.length=l.byteLength(s);else{if(!l.isBuffer(s))return c.error("Unsupported type: "+typeof s);this.value=s,this.length=s.length}}d(i,a),_.DecoderBuffer=i,i.isDecoderBuffer=function(s){return s instanceof i?!0:typeof s=="object"&&l.isBuffer(s.base)&&s.constructor.name==="DecoderBuffer"&&typeof s.offset=="number"&&typeof s.length=="number"&&typeof s.save=="function"&&typeof s.restore=="function"&&typeof s.isEmpty=="function"&&typeof s.readUInt8=="function"&&typeof s.skip=="function"&&typeof s.raw=="function"},i.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},i.prototype.restore=function(s){const c=new i(this.base);return c.offset=s.offset,c.length=this.offset,this.offset=s.offset,a.prototype.restore.call(this,s.reporter),c},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(s){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(s||"DecoderBuffer overrun")},i.prototype.skip=function(s,c){if(!(this.offset+s<=this.length))return this.error(c||"DecoderBuffer overrun");const u=new i(this.base);return u._reporterState=this._reporterState,u.offset=this.offset,u.length=this.offset+s,this.offset+=s,u},i.prototype.raw=function(s){return this.base.slice(s?s.offset:this.offset,this.length)},_.EncoderBuffer=e,e.isEncoderBuffer=function(s){return s instanceof e?!0:typeof s=="object"&&s.constructor.name==="EncoderBuffer"&&typeof s.length=="number"&&typeof s.join=="function"},e.prototype.join=function(s,c){return s||(s=l.alloc(this.length)),c||(c=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(u){u.join(s,c),c+=u.length})):(typeof this.value=="number"?s[c]=this.value:typeof this.value=="string"?s.write(this.value,c):l.isBuffer(this.value)&&this.value.copy(s,c),c+=this.length)),s}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(r,y,_){const d=_;d.Reporter=r("./reporter").Reporter,d.DecoderBuffer=r("./buffer").DecoderBuffer,d.EncoderBuffer=r("./buffer").EncoderBuffer,d.Node=r("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(r,y,_){const d=r("../base/reporter").Reporter,a=r("../base/buffer").EncoderBuffer,l=r("../base/buffer").DecoderBuffer,i=r("minimalistic-assert"),e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e);function c(o,p,m){const f={};this._baseState=f,f.name=m,f.enc=o,f.parent=p||null,f.children=null,f.tag=null,f.args=null,f.reverseArgs=null,f.choice=null,f.optional=!1,f.any=!1,f.obj=!1,f.use=null,f.useDecoder=null,f.key=null,f.default=null,f.explicit=null,f.implicit=null,f.contains=null,f.parent||(f.children=[],this._wrap())}y.exports=c;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const o=this._baseState,p={};u.forEach((function(f){p[f]=o[f]}));const m=new this.constructor(p.parent);return m._baseState=p,m},c.prototype._wrap=function(){const o=this._baseState;s.forEach((function(p){this[p]=function(){const m=new this.constructor(this);return o.children.push(m),m[p].apply(m,arguments)}}),this)},c.prototype._init=function(o){const p=this._baseState;i(p.parent===null),o.call(this),p.children=p.children.filter((function(m){return m._baseState.parent===this}),this),i.equal(p.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(o){const p=this._baseState,m=o.filter((function(f){return f instanceof this.constructor}),this);o=o.filter((function(f){return!(f instanceof this.constructor)}),this),m.length!==0&&(i(p.children===null),p.children=m,m.forEach((function(f){f._baseState.parent=this}),this)),o.length!==0&&(i(p.args===null),p.args=o,p.reverseArgs=o.map((function(f){if(typeof f!="object"||f.constructor!==Object)return f;const v={};return Object.keys(f).forEach((function(b){b==(0|b)&&(b|=0);const T=f[b];v[T]=b})),v})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(o){c.prototype[o]=function(){const p=this._baseState;throw new Error(o+" not implemented for encoding: "+p.enc)}})),e.forEach((function(o){c.prototype[o]=function(){const p=this._baseState,m=Array.prototype.slice.call(arguments);return i(p.tag===null),p.tag=o,this._useArgs(m),this}})),c.prototype.use=function(o){i(o);const p=this._baseState;return i(p.use===null),p.use=o,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(o){const p=this._baseState;return i(p.default===null),p.default=o,p.optional=!0,this},c.prototype.explicit=function(o){const p=this._baseState;return i(p.explicit===null&&p.implicit===null),p.explicit=o,this},c.prototype.implicit=function(o){const p=this._baseState;return i(p.explicit===null&&p.implicit===null),p.implicit=o,this},c.prototype.obj=function(){const o=this._baseState,p=Array.prototype.slice.call(arguments);return o.obj=!0,p.length!==0&&this._useArgs(p),this},c.prototype.key=function(o){const p=this._baseState;return i(p.key===null),p.key=o,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(o){const p=this._baseState;return i(p.choice===null),p.choice=o,this._useArgs(Object.keys(o).map((function(m){return o[m]}))),this},c.prototype.contains=function(o){const p=this._baseState;return i(p.use===null),p.contains=o,this},c.prototype._decode=function(o,p){const m=this._baseState;if(m.parent===null)return o.wrapResult(m.children[0]._decode(o,p));let f,v=m.default,b=!0,T=null;if(m.key!==null&&(T=o.enterKey(m.key)),m.optional){let C=null;if(m.explicit!==null?C=m.explicit:m.implicit!==null?C=m.implicit:m.tag!==null&&(C=m.tag),C!==null||m.any){if(b=this._peekTag(o,C,m.any),o.isError(b))return b}else{const I=o.save();try{m.choice===null?this._decodeGeneric(m.tag,o,p):this._decodeChoice(o,p),b=!0}catch{b=!1}o.restore(I)}}if(m.obj&&b&&(f=o.enterObject()),b){if(m.explicit!==null){const I=this._decodeTag(o,m.explicit);if(o.isError(I))return I;o=I}const C=o.offset;if(m.use===null&&m.choice===null){let I;m.any&&(I=o.save());const H=this._decodeTag(o,m.implicit!==null?m.implicit:m.tag,m.any);if(o.isError(H))return H;m.any?v=o.raw(I):o=H}if(p&&p.track&&m.tag!==null&&p.track(o.path(),C,o.length,"tagged"),p&&p.track&&m.tag!==null&&p.track(o.path(),o.offset,o.length,"content"),m.any||(v=m.choice===null?this._decodeGeneric(m.tag,o,p):this._decodeChoice(o,p)),o.isError(v))return v;if(m.any||m.choice!==null||m.children===null||m.children.forEach((function(I){I._decode(o,p)})),m.contains&&(m.tag==="octstr"||m.tag==="bitstr")){const I=new l(v);v=this._getUse(m.contains,o._reporterState.obj)._decode(I,p)}}return m.obj&&b&&(v=o.leaveObject(f)),m.key===null||v===null&&b!==!0?T!==null&&o.exitKey(T):o.leaveKey(T,m.key,v),v},c.prototype._decodeGeneric=function(o,p,m){const f=this._baseState;return o==="seq"||o==="set"?null:o==="seqof"||o==="setof"?this._decodeList(p,o,f.args[0],m):/str$/.test(o)?this._decodeStr(p,o,m):o==="objid"&&f.args?this._decodeObjid(p,f.args[0],f.args[1],m):o==="objid"?this._decodeObjid(p,null,null,m):o==="gentime"||o==="utctime"?this._decodeTime(p,o,m):o==="null_"?this._decodeNull(p,m):o==="bool"?this._decodeBool(p,m):o==="objDesc"?this._decodeStr(p,o,m):o==="int"||o==="enum"?this._decodeInt(p,f.args&&f.args[0],m):f.use!==null?this._getUse(f.use,p._reporterState.obj)._decode(p,m):p.error("unknown tag: "+o)},c.prototype._getUse=function(o,p){const m=this._baseState;return m.useDecoder=this._use(o,p),i(m.useDecoder._baseState.parent===null),m.useDecoder=m.useDecoder._baseState.children[0],m.implicit!==m.useDecoder._baseState.implicit&&(m.useDecoder=m.useDecoder.clone(),m.useDecoder._baseState.implicit=m.implicit),m.useDecoder},c.prototype._decodeChoice=function(o,p){const m=this._baseState;let f=null,v=!1;return Object.keys(m.choice).some((function(b){const T=o.save(),C=m.choice[b];try{const I=C._decode(o,p);if(o.isError(I))return!1;f={type:b,value:I},v=!0}catch{return o.restore(T),!1}return!0}),this),v?f:o.error("Choice not matched")},c.prototype._createEncoderBuffer=function(o){return new a(o,this.reporter)},c.prototype._encode=function(o,p,m){const f=this._baseState;if(f.default!==null&&f.default===o)return;const v=this._encodeValue(o,p,m);return v===void 0||this._skipDefault(v,p,m)?void 0:v},c.prototype._encodeValue=function(o,p,m){const f=this._baseState;if(f.parent===null)return f.children[0]._encode(o,p||new d);let v=null;if(this.reporter=p,f.optional&&o===void 0){if(f.default===null)return;o=f.default}let b=null,T=!1;if(f.any)v=this._createEncoderBuffer(o);else if(f.choice)v=this._encodeChoice(o,p);else if(f.contains)b=this._getUse(f.contains,m)._encode(o,p),T=!0;else if(f.children)b=f.children.map((function(C){if(C._baseState.tag==="null_")return C._encode(null,p,o);if(C._baseState.key===null)return p.error("Child should have a key");const I=p.enterKey(C._baseState.key);if(typeof o!="object")return p.error("Child expected, but input is not object");const H=C._encode(o[C._baseState.key],p,o);return p.leaveKey(I),H}),this).filter((function(C){return C})),b=this._createEncoderBuffer(b);else if(f.tag==="seqof"||f.tag==="setof"){if(!f.args||f.args.length!==1)return p.error("Too many args for : "+f.tag);if(!Array.isArray(o))return p.error("seqof/setof, but data is not Array");const C=this.clone();C._baseState.implicit=null,b=this._createEncoderBuffer(o.map((function(I){const H=this._baseState;return this._getUse(H.args[0],o)._encode(I,p)}),C))}else f.use!==null?v=this._getUse(f.use,m)._encode(o,p):(b=this._encodePrimitive(f.tag,o),T=!0);if(!f.any&&f.choice===null){const C=f.implicit!==null?f.implicit:f.tag,I=f.implicit===null?"universal":"context";C===null?f.use===null&&p.error("Tag could be omitted only for .use()"):f.use===null&&(v=this._encodeComposite(C,T,I,b))}return f.explicit!==null&&(v=this._encodeComposite(f.explicit,!1,"context",v)),v},c.prototype._encodeChoice=function(o,p){const m=this._baseState,f=m.choice[o.type];return f||i(!1,o.type+" not found in "+JSON.stringify(Object.keys(m.choice))),f._encode(o.value,p)},c.prototype._encodePrimitive=function(o,p){const m=this._baseState;if(/str$/.test(o))return this._encodeStr(p,o);if(o==="objid"&&m.args)return this._encodeObjid(p,m.reverseArgs[0],m.args[1]);if(o==="objid")return this._encodeObjid(p,null,null);if(o==="gentime"||o==="utctime")return this._encodeTime(p,o);if(o==="null_")return this._encodeNull();if(o==="int"||o==="enum")return this._encodeInt(p,m.args&&m.reverseArgs[0]);if(o==="bool")return this._encodeBool(p);if(o==="objDesc")return this._encodeStr(p,o);throw new Error("Unsupported tag: "+o)},c.prototype._isNumstr=function(o){return/^[0-9 ]*$/.test(o)},c.prototype._isPrintstr=function(o){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(o)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(r,y,_){const d=r("inherits");function a(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}function l(i,e){this.path=i,this.rethrow(e)}_.Reporter=a,a.prototype.isError=function(i){return i instanceof l},a.prototype.save=function(){const i=this._reporterState;return{obj:i.obj,pathLen:i.path.length}},a.prototype.restore=function(i){const e=this._reporterState;e.obj=i.obj,e.path=e.path.slice(0,i.pathLen)},a.prototype.enterKey=function(i){return this._reporterState.path.push(i)},a.prototype.exitKey=function(i){const e=this._reporterState;e.path=e.path.slice(0,i-1)},a.prototype.leaveKey=function(i,e,s){const c=this._reporterState;this.exitKey(i),c.obj!==null&&(c.obj[e]=s)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){const i=this._reporterState,e=i.obj;return i.obj={},e},a.prototype.leaveObject=function(i){const e=this._reporterState,s=e.obj;return e.obj=i,s},a.prototype.error=function(i){let e;const s=this._reporterState,c=i instanceof l;if(e=c?i:new l(s.path.map((function(u){return"["+JSON.stringify(u)+"]"})).join(""),i.message||i,i.stack),!s.options.partial)throw e;return c||s.errors.push(e),e},a.prototype.wrapResult=function(i){const e=this._reporterState;return e.options.partial?{result:this.isError(i)?null:i,errors:e.errors}:i},d(l,Error),l.prototype.rethrow=function(i){if(this.message=i+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,l),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(r,y,_){function d(a){const l={};return Object.keys(a).forEach((function(i){(0|i)==i&&(i|=0);const e=a[i];l[e]=i})),l}_.tagClass={0:"universal",1:"application",2:"context",3:"private"},_.tagClassByName=d(_.tagClass),_.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},_.tagByName=d(_.tag)},{}],177:[function(r,y,_){const d=_;d._reverse=function(a){const l={};return Object.keys(a).forEach((function(i){(0|i)==i&&(i|=0);const e=a[i];l[e]=i})),l},d.der=r("./der")},{"./der":176}],178:[function(r,y,_){const d=r("inherits"),a=r("bn.js"),l=r("../base/buffer").DecoderBuffer,i=r("../base/node"),e=r("../constants/der");function s(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new c,this.tree._init(p.body)}function c(p){i.call(this,"der",p)}function u(p,m){let f=p.readUInt8(m);if(p.isError(f))return f;const v=e.tagClass[f>>6],b=(32&f)==0;if((31&f)==31){let T=f;for(f=0;(128&T)==128;){if(T=p.readUInt8(m),p.isError(T))return T;f<<=7,f|=127&T}}else f&=31;return{cls:v,primitive:b,tag:f,tagStr:e.tag[f]}}function o(p,m,f){let v=p.readUInt8(f);if(p.isError(v))return v;if(!m&&v===128)return null;if((128&v)==0)return v;const b=127&v;if(b>4)return p.error("length octect is too long");v=0;for(let T=0;T<b;T++){v<<=8;const C=p.readUInt8(f);if(p.isError(C))return C;v|=C}return v}y.exports=s,s.prototype.decode=function(p,m){return l.isDecoderBuffer(p)||(p=new l(p,m)),this.tree._decode(p,m)},d(c,i),c.prototype._peekTag=function(p,m,f){if(p.isEmpty())return!1;const v=p.save(),b=u(p,'Failed to peek tag: "'+m+'"');return p.isError(b)?b:(p.restore(v),b.tag===m||b.tagStr===m||b.tagStr+"of"===m||f)},c.prototype._decodeTag=function(p,m,f){const v=u(p,'Failed to decode tag of "'+m+'"');if(p.isError(v))return v;let b=o(p,v.primitive,'Failed to get length of "'+m+'"');if(p.isError(b))return b;if(!f&&v.tag!==m&&v.tagStr!==m&&v.tagStr+"of"!==m)return p.error('Failed to match tag: "'+m+'"');if(v.primitive||b!==null)return p.skip(b,'Failed to match body of: "'+m+'"');const T=p.save(),C=this._skipUntilEnd(p,'Failed to skip indefinite length body: "'+this.tag+'"');return p.isError(C)?C:(b=p.offset-T.offset,p.restore(T),p.skip(b,'Failed to match body of: "'+m+'"'))},c.prototype._skipUntilEnd=function(p,m){for(;;){const f=u(p,m);if(p.isError(f))return f;const v=o(p,f.primitive,m);if(p.isError(v))return v;let b;if(b=f.primitive||v!==null?p.skip(v):this._skipUntilEnd(p,m),p.isError(b))return b;if(f.tagStr==="end")break}},c.prototype._decodeList=function(p,m,f,v){const b=[];for(;!p.isEmpty();){const T=this._peekTag(p,"end");if(p.isError(T))return T;const C=f.decode(p,"der",v);if(p.isError(C)&&T)break;b.push(C)}return b},c.prototype._decodeStr=function(p,m){if(m==="bitstr"){const f=p.readUInt8();return p.isError(f)?f:{unused:f,data:p.raw()}}if(m==="bmpstr"){const f=p.raw();if(f.length%2==1)return p.error("Decoding of string type: bmpstr length mismatch");let v="";for(let b=0;b<f.length/2;b++)v+=String.fromCharCode(f.readUInt16BE(2*b));return v}if(m==="numstr"){const f=p.raw().toString("ascii");return this._isNumstr(f)?f:p.error("Decoding of string type: numstr unsupported characters")}if(m==="octstr"||m==="objDesc")return p.raw();if(m==="printstr"){const f=p.raw().toString("ascii");return this._isPrintstr(f)?f:p.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(m)?p.raw().toString():p.error("Decoding of string type: "+m+" unsupported")},c.prototype._decodeObjid=function(p,m,f){let v;const b=[];let T=0,C=0;for(;!p.isEmpty();)C=p.readUInt8(),T<<=7,T|=127&C,(128&C)==0&&(b.push(T),T=0);128&C&&b.push(T);const I=b[0]/40|0,H=b[0]%40;if(v=f?b:[I,H].concat(b.slice(1)),m){let Z=m[v.join(" ")];Z===void 0&&(Z=m[v.join(".")]),Z!==void 0&&(v=Z)}return v},c.prototype._decodeTime=function(p,m){const f=p.raw().toString();let v,b,T,C,I,H;if(m==="gentime")v=0|f.slice(0,4),b=0|f.slice(4,6),T=0|f.slice(6,8),C=0|f.slice(8,10),I=0|f.slice(10,12),H=0|f.slice(12,14);else{if(m!=="utctime")return p.error("Decoding "+m+" time is not supported yet");v=0|f.slice(0,2),b=0|f.slice(2,4),T=0|f.slice(4,6),C=0|f.slice(6,8),I=0|f.slice(8,10),H=0|f.slice(10,12),v=v<70?2e3+v:1900+v}return Date.UTC(v,b-1,T,C,I,H,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(p){const m=p.readUInt8();return p.isError(m)?m:m!==0},c.prototype._decodeInt=function(p,m){const f=p.raw();let v=new a(f);return m&&(v=m[v.toString(10)]||v),v},c.prototype._use=function(p,m){return typeof p=="function"&&(p=p(m)),p._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(r,y,_){const d=_;d.der=r("./der"),d.pem=r("./pem")},{"./der":178,"./pem":180}],180:[function(r,y,_){const d=r("inherits"),a=r("safer-buffer").Buffer,l=r("./der");function i(e){l.call(this,e),this.enc="pem"}d(i,l),y.exports=i,i.prototype.decode=function(e,s){const c=e.toString().split(/[\r\n]+/g),u=s.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,m=-1;for(let b=0;b<c.length;b++){const T=c[b].match(o);if(T!==null&&T[2]===u){if(p!==-1){if(T[1]!=="END")break;m=b;break}if(T[1]!=="BEGIN")break;p=b}}if(p===-1||m===-1)throw new Error("PEM section not found for: "+u);const f=c.slice(p+1,m).join("");f.replace(/[^a-z0-9+/=]+/gi,"");const v=a.from(f,"base64");return l.prototype.decode.call(this,v,s)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(r,y,_){const d=r("inherits"),a=r("safer-buffer").Buffer,l=r("../base/node"),i=r("../constants/der");function e(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new s,this.tree._init(u.body)}function s(u){l.call(this,"der",u)}function c(u){return u<10?"0"+u:u}y.exports=e,e.prototype.encode=function(u,o){return this.tree._encode(u,o).join()},d(s,l),s.prototype._encodeComposite=function(u,o,p,m){const f=(function(T,C,I,H){let Z;if(T==="seqof"?T="seq":T==="setof"&&(T="set"),i.tagByName.hasOwnProperty(T))Z=i.tagByName[T];else{if(typeof T!="number"||(0|T)!==T)return H.error("Unknown tag: "+T);Z=T}return Z>=31?H.error("Multi-octet tag encoding unsupported"):(C||(Z|=32),Z|=i.tagClassByName[I||"universal"]<<6,Z)})(u,o,p,this.reporter);if(m.length<128){const T=a.alloc(2);return T[0]=f,T[1]=m.length,this._createEncoderBuffer([T,m])}let v=1;for(let T=m.length;T>=256;T>>=8)v++;const b=a.alloc(2+v);b[0]=f,b[1]=128|v;for(let T=1+v,C=m.length;C>0;T--,C>>=8)b[T]=255&C;return this._createEncoderBuffer([b,m])},s.prototype._encodeStr=function(u,o){if(o==="bitstr")return this._createEncoderBuffer([0|u.unused,u.data]);if(o==="bmpstr"){const p=a.alloc(2*u.length);for(let m=0;m<u.length;m++)p.writeUInt16BE(u.charCodeAt(m),2*m);return this._createEncoderBuffer(p)}return o==="numstr"?this._isNumstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: numstr supports only digits and space"):o==="printstr"?this._isPrintstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(o)||o==="objDesc"?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: "+o+" unsupported")},s.prototype._encodeObjid=function(u,o,p){if(typeof u=="string"){if(!o)return this.reporter.error("string objid given, but no values map found");if(!o.hasOwnProperty(u))return this.reporter.error("objid not found in values map");u=o[u].split(/[\s.]+/g);for(let b=0;b<u.length;b++)u[b]|=0}else if(Array.isArray(u)){u=u.slice();for(let b=0;b<u.length;b++)u[b]|=0}if(!Array.isArray(u))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(u));if(!p){if(u[1]>=40)return this.reporter.error("Second objid identifier OOB");u.splice(0,2,40*u[0]+u[1])}let m=0;for(let b=0;b<u.length;b++){let T=u[b];for(m++;T>=128;T>>=7)m++}const f=a.alloc(m);let v=f.length-1;for(let b=u.length-1;b>=0;b--){let T=u[b];for(f[v--]=127&T;(T>>=7)>0;)f[v--]=128|127&T}return this._createEncoderBuffer(f)},s.prototype._encodeTime=function(u,o){let p;const m=new Date(u);return o==="gentime"?p=[c(m.getUTCFullYear()),c(m.getUTCMonth()+1),c(m.getUTCDate()),c(m.getUTCHours()),c(m.getUTCMinutes()),c(m.getUTCSeconds()),"Z"].join(""):o==="utctime"?p=[c(m.getUTCFullYear()%100),c(m.getUTCMonth()+1),c(m.getUTCDate()),c(m.getUTCHours()),c(m.getUTCMinutes()),c(m.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+o+" time is not supported yet"),this._encodeStr(p,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(u,o){if(typeof u=="string"){if(!o)return this.reporter.error("String int or enum given, but no values map");if(!o.hasOwnProperty(u))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(u));u=o[u]}if(typeof u!="number"&&!a.isBuffer(u)){const f=u.toArray();!u.sign&&128&f[0]&&f.unshift(0),u=a.from(f)}if(a.isBuffer(u)){let f=u.length;u.length===0&&f++;const v=a.alloc(f);return u.copy(v),u.length===0&&(v[0]=0),this._createEncoderBuffer(v)}if(u<128)return this._createEncoderBuffer(u);if(u<256)return this._createEncoderBuffer([0,u]);let p=1;for(let f=u;f>=256;f>>=8)p++;const m=new Array(p);for(let f=m.length-1;f>=0;f--)m[f]=255&u,u>>=8;return 128&m[0]&&m.unshift(0),this._createEncoderBuffer(a.from(m))},s.prototype._encodeBool=function(u){return this._createEncoderBuffer(u?255:0)},s.prototype._use=function(u,o){return typeof u=="function"&&(u=u(o)),u._getEncoder("der").tree},s.prototype._skipDefault=function(u,o,p){const m=this._baseState;let f;if(m.default===null)return!1;const v=u.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,o,p).join()),v.length!==m.defaultBuffer.length)return!1;for(f=0;f<v.length;f++)if(v[f]!==m.defaultBuffer[f])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(r,y,_){const d=_;d.der=r("./der"),d.pem=r("./pem")},{"./der":181,"./pem":183}],183:[function(r,y,_){const d=r("inherits"),a=r("./der");function l(i){a.call(this,i),this.enc="pem"}d(l,a),y.exports=l,l.prototype.encode=function(i,e){const s=a.prototype.encode.call(this,i).toString("base64"),c=["-----BEGIN "+e.label+"-----"];for(let u=0;u<s.length;u+=64)c.push(s.slice(u,u+64));return c.push("-----END "+e.label+"-----"),c.join(`
|
|
16
|
+
`)}},{"./der":181,inherits:440}],184:[function(r,y,_){(function(d,a){function l(R,z){if(!R)throw new Error(z||"Assertion failed")}function i(R,z){R.super_=z;var A=function(){};A.prototype=z.prototype,R.prototype=new A,R.prototype.constructor=R}function e(R,z,A){if(e.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&(z!=="le"&&z!=="be"||(A=z,z=10),this._init(R||0,z||10,A||"be"))}var s;typeof d=="object"?d.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{s=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:r("buffer").Buffer}catch{}function c(R,z){var A=R.charCodeAt(z);return A>=65&&A<=70?A-55:A>=97&&A<=102?A-87:A-48&15}function u(R,z,A){var g=c(R,A);return A-1>=z&&(g|=c(R,A-1)<<4),g}function o(R,z,A,g){for(var x=0,S=Math.min(R.length,A),E=z;E<S;E++){var O=R.charCodeAt(E)-48;x*=g,x+=O>=49?O-49+10:O>=17?O-17+10:O}return x}e.isBN=function(R){return R instanceof e||R!==null&&typeof R=="object"&&R.constructor.wordSize===e.wordSize&&Array.isArray(R.words)},e.max=function(R,z){return R.cmp(z)>0?R:z},e.min=function(R,z){return R.cmp(z)<0?R:z},e.prototype._init=function(R,z,A){if(typeof R=="number")return this._initNumber(R,z,A);if(typeof R=="object")return this._initArray(R,z,A);z==="hex"&&(z=16),l(z===(0|z)&&z>=2&&z<=36);var g=0;(R=R.toString().replace(/\s+/g,""))[0]==="-"&&(g++,this.negative=1),g<R.length&&(z===16?this._parseHex(R,g,A):(this._parseBase(R,z,g),A==="le"&&this._initArray(this.toArray(),z,A)))},e.prototype._initNumber=function(R,z,A){R<0&&(this.negative=1,R=-R),R<67108864?(this.words=[67108863&R],this.length=1):R<4503599627370496?(this.words=[67108863&R,R/67108864&67108863],this.length=2):(l(R<9007199254740992),this.words=[67108863&R,R/67108864&67108863,1],this.length=3),A==="le"&&this._initArray(this.toArray(),z,A)},e.prototype._initArray=function(R,z,A){if(l(typeof R.length=="number"),R.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(R.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var x,S,E=0;if(A==="be")for(g=R.length-1,x=0;g>=0;g-=3)S=R[g]|R[g-1]<<8|R[g-2]<<16,this.words[x]|=S<<E&67108863,this.words[x+1]=S>>>26-E&67108863,(E+=24)>=26&&(E-=26,x++);else if(A==="le")for(g=0,x=0;g<R.length;g+=3)S=R[g]|R[g+1]<<8|R[g+2]<<16,this.words[x]|=S<<E&67108863,this.words[x+1]=S>>>26-E&67108863,(E+=24)>=26&&(E-=26,x++);return this.strip()},e.prototype._parseHex=function(R,z,A){this.length=Math.ceil((R.length-z)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var x,S=0,E=0;if(A==="be")for(g=R.length-1;g>=z;g-=2)x=u(R,z,g)<<S,this.words[E]|=67108863&x,S>=18?(S-=18,E+=1,this.words[E]|=x>>>26):S+=8;else for(g=(R.length-z)%2==0?z+1:z;g<R.length;g+=2)x=u(R,z,g)<<S,this.words[E]|=67108863&x,S>=18?(S-=18,E+=1,this.words[E]|=x>>>26):S+=8;this.strip()},e.prototype._parseBase=function(R,z,A){this.words=[0],this.length=1;for(var g=0,x=1;x<=67108863;x*=z)g++;g--,x=x/z|0;for(var S=R.length-A,E=S%g,O=Math.min(S,S-E)+A,j=0,B=A;B<O;B+=g)j=o(R,B,B+g,z),this.imuln(x),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j);if(E!==0){var Y=1;for(j=o(R,B,R.length,z),B=0;B<E;B++)Y*=z;this.imuln(Y),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j)}this.strip()},e.prototype.copy=function(R){R.words=new Array(this.length);for(var z=0;z<this.length;z++)R.words[z]=this.words[z];R.length=this.length,R.negative=this.negative,R.red=this.red},e.prototype.clone=function(){var R=new e(null);return this.copy(R),R},e.prototype._expand=function(R){for(;this.length<R;)this.words[this.length++]=0;return this},e.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},e.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function v(R,z,A){A.negative=z.negative^R.negative;var g=R.length+z.length|0;A.length=g,g=g-1|0;var x=0|R.words[0],S=0|z.words[0],E=x*S,O=67108863&E,j=E/67108864|0;A.words[0]=O;for(var B=1;B<g;B++){for(var Y=j>>>26,K=67108863&j,nt=Math.min(B,z.length-1),U=Math.max(0,B-R.length+1);U<=nt;U++){var J=B-U|0;Y+=(E=(x=0|R.words[J])*(S=0|z.words[U])+K)/67108864|0,K=67108863&E}A.words[B]=0|K,j=0|Y}return j!==0?A.words[B]=0|j:A.length--,A.strip()}e.prototype.toString=function(R,z){var A;if(z=0|z||1,(R=R||10)===16||R==="hex"){A="";for(var g=0,x=0,S=0;S<this.length;S++){var E=this.words[S],O=(16777215&(E<<g|x)).toString(16);A=(x=E>>>24-g&16777215)!==0||S!==this.length-1?p[6-O.length]+O+A:O+A,(g+=2)>=26&&(g-=26,S--)}for(x!==0&&(A=x.toString(16)+A);A.length%z!=0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(R===(0|R)&&R>=2&&R<=36){var j=m[R],B=f[R];A="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var K=Y.modn(B).toString(R);A=(Y=Y.idivn(B)).isZero()?K+A:p[j-K.length]+K+A}for(this.isZero()&&(A="0"+A);A.length%z!=0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}l(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var R=this.words[0];return this.length===2?R+=67108864*this.words[1]:this.length===3&&this.words[2]===1?R+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-R:R},e.prototype.toJSON=function(){return this.toString(16)},e.prototype.toBuffer=function(R,z){return l(s!==void 0),this.toArrayLike(s,R,z)},e.prototype.toArray=function(R,z){return this.toArrayLike(Array,R,z)},e.prototype.toArrayLike=function(R,z,A){var g=this.byteLength(),x=A||Math.max(1,g);l(g<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var S,E,O=z==="le",j=new R(x),B=this.clone();if(O){for(E=0;!B.isZero();E++)S=B.andln(255),B.iushrn(8),j[E]=S;for(;E<x;E++)j[E]=0}else{for(E=0;E<x-g;E++)j[E]=0;for(E=0;!B.isZero();E++)S=B.andln(255),B.iushrn(8),j[x-E-1]=S}return j},Math.clz32?e.prototype._countBits=function(R){return 32-Math.clz32(R)}:e.prototype._countBits=function(R){var z=R,A=0;return z>=4096&&(A+=13,z>>>=13),z>=64&&(A+=7,z>>>=7),z>=8&&(A+=4,z>>>=4),z>=2&&(A+=2,z>>>=2),A+z},e.prototype._zeroBits=function(R){if(R===0)return 26;var z=R,A=0;return(8191&z)==0&&(A+=13,z>>>=13),(127&z)==0&&(A+=7,z>>>=7),(15&z)==0&&(A+=4,z>>>=4),(3&z)==0&&(A+=2,z>>>=2),(1&z)==0&&A++,A},e.prototype.bitLength=function(){var R=this.words[this.length-1],z=this._countBits(R);return 26*(this.length-1)+z},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var R=0,z=0;z<this.length;z++){var A=this._zeroBits(this.words[z]);if(R+=A,A!==26)break}return R},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(R){return this.negative!==0?this.abs().inotn(R).iaddn(1):this.clone()},e.prototype.fromTwos=function(R){return this.testn(R-1)?this.notn(R).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(R){for(;this.length<R.length;)this.words[this.length++]=0;for(var z=0;z<R.length;z++)this.words[z]=this.words[z]|R.words[z];return this.strip()},e.prototype.ior=function(R){return l((this.negative|R.negative)==0),this.iuor(R)},e.prototype.or=function(R){return this.length>R.length?this.clone().ior(R):R.clone().ior(this)},e.prototype.uor=function(R){return this.length>R.length?this.clone().iuor(R):R.clone().iuor(this)},e.prototype.iuand=function(R){var z;z=this.length>R.length?R:this;for(var A=0;A<z.length;A++)this.words[A]=this.words[A]&R.words[A];return this.length=z.length,this.strip()},e.prototype.iand=function(R){return l((this.negative|R.negative)==0),this.iuand(R)},e.prototype.and=function(R){return this.length>R.length?this.clone().iand(R):R.clone().iand(this)},e.prototype.uand=function(R){return this.length>R.length?this.clone().iuand(R):R.clone().iuand(this)},e.prototype.iuxor=function(R){var z,A;this.length>R.length?(z=this,A=R):(z=R,A=this);for(var g=0;g<A.length;g++)this.words[g]=z.words[g]^A.words[g];if(this!==z)for(;g<z.length;g++)this.words[g]=z.words[g];return this.length=z.length,this.strip()},e.prototype.ixor=function(R){return l((this.negative|R.negative)==0),this.iuxor(R)},e.prototype.xor=function(R){return this.length>R.length?this.clone().ixor(R):R.clone().ixor(this)},e.prototype.uxor=function(R){return this.length>R.length?this.clone().iuxor(R):R.clone().iuxor(this)},e.prototype.inotn=function(R){l(typeof R=="number"&&R>=0);var z=0|Math.ceil(R/26),A=R%26;this._expand(z),A>0&&z--;for(var g=0;g<z;g++)this.words[g]=67108863&~this.words[g];return A>0&&(this.words[g]=~this.words[g]&67108863>>26-A),this.strip()},e.prototype.notn=function(R){return this.clone().inotn(R)},e.prototype.setn=function(R,z){l(typeof R=="number"&&R>=0);var A=R/26|0,g=R%26;return this._expand(A+1),this.words[A]=z?this.words[A]|1<<g:this.words[A]&~(1<<g),this.strip()},e.prototype.iadd=function(R){var z,A,g;if(this.negative!==0&&R.negative===0)return this.negative=0,z=this.isub(R),this.negative^=1,this._normSign();if(this.negative===0&&R.negative!==0)return R.negative=0,z=this.isub(R),R.negative=1,z._normSign();this.length>R.length?(A=this,g=R):(A=R,g=this);for(var x=0,S=0;S<g.length;S++)z=(0|A.words[S])+(0|g.words[S])+x,this.words[S]=67108863&z,x=z>>>26;for(;x!==0&&S<A.length;S++)z=(0|A.words[S])+x,this.words[S]=67108863&z,x=z>>>26;if(this.length=A.length,x!==0)this.words[this.length]=x,this.length++;else if(A!==this)for(;S<A.length;S++)this.words[S]=A.words[S];return this},e.prototype.add=function(R){var z;return R.negative!==0&&this.negative===0?(R.negative=0,z=this.sub(R),R.negative^=1,z):R.negative===0&&this.negative!==0?(this.negative=0,z=R.sub(this),this.negative=1,z):this.length>R.length?this.clone().iadd(R):R.clone().iadd(this)},e.prototype.isub=function(R){if(R.negative!==0){R.negative=0;var z=this.iadd(R);return R.negative=1,z._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(R),this.negative=1,this._normSign();var A,g,x=this.cmp(R);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;x>0?(A=this,g=R):(A=R,g=this);for(var S=0,E=0;E<g.length;E++)S=(z=(0|A.words[E])-(0|g.words[E])+S)>>26,this.words[E]=67108863&z;for(;S!==0&&E<A.length;E++)S=(z=(0|A.words[E])+S)>>26,this.words[E]=67108863&z;if(S===0&&E<A.length&&A!==this)for(;E<A.length;E++)this.words[E]=A.words[E];return this.length=Math.max(this.length,E),A!==this&&(this.negative=1),this.strip()},e.prototype.sub=function(R){return this.clone().isub(R)};var b=function(R,z,A){var g,x,S,E=R.words,O=z.words,j=A.words,B=0,Y=0|E[0],K=8191&Y,nt=Y>>>13,U=0|E[1],J=8191&U,L=U>>>13,N=0|E[2],X=8191&N,rt=N>>>13,ut=0|E[3],it=8191&ut,lt=ut>>>13,gt=0|E[4],bt=8191>,st=gt>>>13,dt=0|E[5],ht=8191&dt,xt=dt>>>13,_t=0|E[6],St=8191&_t,Ot=_t>>>13,Rt=0|E[7],Ft=8191&Rt,Kt=Rt>>>13,et=0|E[8],G=8191&et,Q=et>>>13,ot=0|E[9],ft=8191&ot,vt=ot>>>13,wt=0|O[0],Nt=8191&wt,Pt=wt>>>13,qt=0|O[1],Vt=8191&qt,Qt=qt>>>13,Fe=0|O[2],ie=8191&Fe,ke=Fe>>>13,ye=0|O[3],oe=8191&ye,Pe=ye>>>13,Se=0|O[4],fe=8191&Se,Te=Se>>>13,He=0|O[5],le=8191&He,Ie=He>>>13,$e=0|O[6],me=8191&$e,mt=$e>>>13,kt=0|O[7],Bt=8191&kt,Gt=kt>>>13,ae=0|O[8],Xt=8191&ae,Jt=ae>>>13,Wt=0|O[9],ee=8191&Wt,de=Wt>>>13;A.negative=R.negative^z.negative,A.length=19;var pe=(B+(g=Math.imul(K,Nt))|0)+((8191&(x=(x=Math.imul(K,Pt))+Math.imul(nt,Nt)|0))<<13)|0;B=((S=Math.imul(nt,Pt))+(x>>>13)|0)+(pe>>>26)|0,pe&=67108863,g=Math.imul(J,Nt),x=(x=Math.imul(J,Pt))+Math.imul(L,Nt)|0,S=Math.imul(L,Pt);var we=(B+(g=g+Math.imul(K,Vt)|0)|0)+((8191&(x=(x=x+Math.imul(K,Qt)|0)+Math.imul(nt,Vt)|0))<<13)|0;B=((S=S+Math.imul(nt,Qt)|0)+(x>>>13)|0)+(we>>>26)|0,we&=67108863,g=Math.imul(X,Nt),x=(x=Math.imul(X,Pt))+Math.imul(rt,Nt)|0,S=Math.imul(rt,Pt),g=g+Math.imul(J,Vt)|0,x=(x=x+Math.imul(J,Qt)|0)+Math.imul(L,Vt)|0,S=S+Math.imul(L,Qt)|0;var nr=(B+(g=g+Math.imul(K,ie)|0)|0)+((8191&(x=(x=x+Math.imul(K,ke)|0)+Math.imul(nt,ie)|0))<<13)|0;B=((S=S+Math.imul(nt,ke)|0)+(x>>>13)|0)+(nr>>>26)|0,nr&=67108863,g=Math.imul(it,Nt),x=(x=Math.imul(it,Pt))+Math.imul(lt,Nt)|0,S=Math.imul(lt,Pt),g=g+Math.imul(X,Vt)|0,x=(x=x+Math.imul(X,Qt)|0)+Math.imul(rt,Vt)|0,S=S+Math.imul(rt,Qt)|0,g=g+Math.imul(J,ie)|0,x=(x=x+Math.imul(J,ke)|0)+Math.imul(L,ie)|0,S=S+Math.imul(L,ke)|0;var qe=(B+(g=g+Math.imul(K,oe)|0)|0)+((8191&(x=(x=x+Math.imul(K,Pe)|0)+Math.imul(nt,oe)|0))<<13)|0;B=((S=S+Math.imul(nt,Pe)|0)+(x>>>13)|0)+(qe>>>26)|0,qe&=67108863,g=Math.imul(bt,Nt),x=(x=Math.imul(bt,Pt))+Math.imul(st,Nt)|0,S=Math.imul(st,Pt),g=g+Math.imul(it,Vt)|0,x=(x=x+Math.imul(it,Qt)|0)+Math.imul(lt,Vt)|0,S=S+Math.imul(lt,Qt)|0,g=g+Math.imul(X,ie)|0,x=(x=x+Math.imul(X,ke)|0)+Math.imul(rt,ie)|0,S=S+Math.imul(rt,ke)|0,g=g+Math.imul(J,oe)|0,x=(x=x+Math.imul(J,Pe)|0)+Math.imul(L,oe)|0,S=S+Math.imul(L,Pe)|0;var lr=(B+(g=g+Math.imul(K,fe)|0)|0)+((8191&(x=(x=x+Math.imul(K,Te)|0)+Math.imul(nt,fe)|0))<<13)|0;B=((S=S+Math.imul(nt,Te)|0)+(x>>>13)|0)+(lr>>>26)|0,lr&=67108863,g=Math.imul(ht,Nt),x=(x=Math.imul(ht,Pt))+Math.imul(xt,Nt)|0,S=Math.imul(xt,Pt),g=g+Math.imul(bt,Vt)|0,x=(x=x+Math.imul(bt,Qt)|0)+Math.imul(st,Vt)|0,S=S+Math.imul(st,Qt)|0,g=g+Math.imul(it,ie)|0,x=(x=x+Math.imul(it,ke)|0)+Math.imul(lt,ie)|0,S=S+Math.imul(lt,ke)|0,g=g+Math.imul(X,oe)|0,x=(x=x+Math.imul(X,Pe)|0)+Math.imul(rt,oe)|0,S=S+Math.imul(rt,Pe)|0,g=g+Math.imul(J,fe)|0,x=(x=x+Math.imul(J,Te)|0)+Math.imul(L,fe)|0,S=S+Math.imul(L,Te)|0;var rr=(B+(g=g+Math.imul(K,le)|0)|0)+((8191&(x=(x=x+Math.imul(K,Ie)|0)+Math.imul(nt,le)|0))<<13)|0;B=((S=S+Math.imul(nt,Ie)|0)+(x>>>13)|0)+(rr>>>26)|0,rr&=67108863,g=Math.imul(St,Nt),x=(x=Math.imul(St,Pt))+Math.imul(Ot,Nt)|0,S=Math.imul(Ot,Pt),g=g+Math.imul(ht,Vt)|0,x=(x=x+Math.imul(ht,Qt)|0)+Math.imul(xt,Vt)|0,S=S+Math.imul(xt,Qt)|0,g=g+Math.imul(bt,ie)|0,x=(x=x+Math.imul(bt,ke)|0)+Math.imul(st,ie)|0,S=S+Math.imul(st,ke)|0,g=g+Math.imul(it,oe)|0,x=(x=x+Math.imul(it,Pe)|0)+Math.imul(lt,oe)|0,S=S+Math.imul(lt,Pe)|0,g=g+Math.imul(X,fe)|0,x=(x=x+Math.imul(X,Te)|0)+Math.imul(rt,fe)|0,S=S+Math.imul(rt,Te)|0,g=g+Math.imul(J,le)|0,x=(x=x+Math.imul(J,Ie)|0)+Math.imul(L,le)|0,S=S+Math.imul(L,Ie)|0;var dr=(B+(g=g+Math.imul(K,me)|0)|0)+((8191&(x=(x=x+Math.imul(K,mt)|0)+Math.imul(nt,me)|0))<<13)|0;B=((S=S+Math.imul(nt,mt)|0)+(x>>>13)|0)+(dr>>>26)|0,dr&=67108863,g=Math.imul(Ft,Nt),x=(x=Math.imul(Ft,Pt))+Math.imul(Kt,Nt)|0,S=Math.imul(Kt,Pt),g=g+Math.imul(St,Vt)|0,x=(x=x+Math.imul(St,Qt)|0)+Math.imul(Ot,Vt)|0,S=S+Math.imul(Ot,Qt)|0,g=g+Math.imul(ht,ie)|0,x=(x=x+Math.imul(ht,ke)|0)+Math.imul(xt,ie)|0,S=S+Math.imul(xt,ke)|0,g=g+Math.imul(bt,oe)|0,x=(x=x+Math.imul(bt,Pe)|0)+Math.imul(st,oe)|0,S=S+Math.imul(st,Pe)|0,g=g+Math.imul(it,fe)|0,x=(x=x+Math.imul(it,Te)|0)+Math.imul(lt,fe)|0,S=S+Math.imul(lt,Te)|0,g=g+Math.imul(X,le)|0,x=(x=x+Math.imul(X,Ie)|0)+Math.imul(rt,le)|0,S=S+Math.imul(rt,Ie)|0,g=g+Math.imul(J,me)|0,x=(x=x+Math.imul(J,mt)|0)+Math.imul(L,me)|0,S=S+Math.imul(L,mt)|0;var ct=(B+(g=g+Math.imul(K,Bt)|0)|0)+((8191&(x=(x=x+Math.imul(K,Gt)|0)+Math.imul(nt,Bt)|0))<<13)|0;B=((S=S+Math.imul(nt,Gt)|0)+(x>>>13)|0)+(ct>>>26)|0,ct&=67108863,g=Math.imul(G,Nt),x=(x=Math.imul(G,Pt))+Math.imul(Q,Nt)|0,S=Math.imul(Q,Pt),g=g+Math.imul(Ft,Vt)|0,x=(x=x+Math.imul(Ft,Qt)|0)+Math.imul(Kt,Vt)|0,S=S+Math.imul(Kt,Qt)|0,g=g+Math.imul(St,ie)|0,x=(x=x+Math.imul(St,ke)|0)+Math.imul(Ot,ie)|0,S=S+Math.imul(Ot,ke)|0,g=g+Math.imul(ht,oe)|0,x=(x=x+Math.imul(ht,Pe)|0)+Math.imul(xt,oe)|0,S=S+Math.imul(xt,Pe)|0,g=g+Math.imul(bt,fe)|0,x=(x=x+Math.imul(bt,Te)|0)+Math.imul(st,fe)|0,S=S+Math.imul(st,Te)|0,g=g+Math.imul(it,le)|0,x=(x=x+Math.imul(it,Ie)|0)+Math.imul(lt,le)|0,S=S+Math.imul(lt,Ie)|0,g=g+Math.imul(X,me)|0,x=(x=x+Math.imul(X,mt)|0)+Math.imul(rt,me)|0,S=S+Math.imul(rt,mt)|0,g=g+Math.imul(J,Bt)|0,x=(x=x+Math.imul(J,Gt)|0)+Math.imul(L,Bt)|0,S=S+Math.imul(L,Gt)|0;var Tt=(B+(g=g+Math.imul(K,Xt)|0)|0)+((8191&(x=(x=x+Math.imul(K,Jt)|0)+Math.imul(nt,Xt)|0))<<13)|0;B=((S=S+Math.imul(nt,Jt)|0)+(x>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(ft,Nt),x=(x=Math.imul(ft,Pt))+Math.imul(vt,Nt)|0,S=Math.imul(vt,Pt),g=g+Math.imul(G,Vt)|0,x=(x=x+Math.imul(G,Qt)|0)+Math.imul(Q,Vt)|0,S=S+Math.imul(Q,Qt)|0,g=g+Math.imul(Ft,ie)|0,x=(x=x+Math.imul(Ft,ke)|0)+Math.imul(Kt,ie)|0,S=S+Math.imul(Kt,ke)|0,g=g+Math.imul(St,oe)|0,x=(x=x+Math.imul(St,Pe)|0)+Math.imul(Ot,oe)|0,S=S+Math.imul(Ot,Pe)|0,g=g+Math.imul(ht,fe)|0,x=(x=x+Math.imul(ht,Te)|0)+Math.imul(xt,fe)|0,S=S+Math.imul(xt,Te)|0,g=g+Math.imul(bt,le)|0,x=(x=x+Math.imul(bt,Ie)|0)+Math.imul(st,le)|0,S=S+Math.imul(st,Ie)|0,g=g+Math.imul(it,me)|0,x=(x=x+Math.imul(it,mt)|0)+Math.imul(lt,me)|0,S=S+Math.imul(lt,mt)|0,g=g+Math.imul(X,Bt)|0,x=(x=x+Math.imul(X,Gt)|0)+Math.imul(rt,Bt)|0,S=S+Math.imul(rt,Gt)|0,g=g+Math.imul(J,Xt)|0,x=(x=x+Math.imul(J,Jt)|0)+Math.imul(L,Xt)|0,S=S+Math.imul(L,Jt)|0;var zt=(B+(g=g+Math.imul(K,ee)|0)|0)+((8191&(x=(x=x+Math.imul(K,de)|0)+Math.imul(nt,ee)|0))<<13)|0;B=((S=S+Math.imul(nt,de)|0)+(x>>>13)|0)+(zt>>>26)|0,zt&=67108863,g=Math.imul(ft,Vt),x=(x=Math.imul(ft,Qt))+Math.imul(vt,Vt)|0,S=Math.imul(vt,Qt),g=g+Math.imul(G,ie)|0,x=(x=x+Math.imul(G,ke)|0)+Math.imul(Q,ie)|0,S=S+Math.imul(Q,ke)|0,g=g+Math.imul(Ft,oe)|0,x=(x=x+Math.imul(Ft,Pe)|0)+Math.imul(Kt,oe)|0,S=S+Math.imul(Kt,Pe)|0,g=g+Math.imul(St,fe)|0,x=(x=x+Math.imul(St,Te)|0)+Math.imul(Ot,fe)|0,S=S+Math.imul(Ot,Te)|0,g=g+Math.imul(ht,le)|0,x=(x=x+Math.imul(ht,Ie)|0)+Math.imul(xt,le)|0,S=S+Math.imul(xt,Ie)|0,g=g+Math.imul(bt,me)|0,x=(x=x+Math.imul(bt,mt)|0)+Math.imul(st,me)|0,S=S+Math.imul(st,mt)|0,g=g+Math.imul(it,Bt)|0,x=(x=x+Math.imul(it,Gt)|0)+Math.imul(lt,Bt)|0,S=S+Math.imul(lt,Gt)|0,g=g+Math.imul(X,Xt)|0,x=(x=x+Math.imul(X,Jt)|0)+Math.imul(rt,Xt)|0,S=S+Math.imul(rt,Jt)|0;var Ht=(B+(g=g+Math.imul(J,ee)|0)|0)+((8191&(x=(x=x+Math.imul(J,de)|0)+Math.imul(L,ee)|0))<<13)|0;B=((S=S+Math.imul(L,de)|0)+(x>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ft,ie),x=(x=Math.imul(ft,ke))+Math.imul(vt,ie)|0,S=Math.imul(vt,ke),g=g+Math.imul(G,oe)|0,x=(x=x+Math.imul(G,Pe)|0)+Math.imul(Q,oe)|0,S=S+Math.imul(Q,Pe)|0,g=g+Math.imul(Ft,fe)|0,x=(x=x+Math.imul(Ft,Te)|0)+Math.imul(Kt,fe)|0,S=S+Math.imul(Kt,Te)|0,g=g+Math.imul(St,le)|0,x=(x=x+Math.imul(St,Ie)|0)+Math.imul(Ot,le)|0,S=S+Math.imul(Ot,Ie)|0,g=g+Math.imul(ht,me)|0,x=(x=x+Math.imul(ht,mt)|0)+Math.imul(xt,me)|0,S=S+Math.imul(xt,mt)|0,g=g+Math.imul(bt,Bt)|0,x=(x=x+Math.imul(bt,Gt)|0)+Math.imul(st,Bt)|0,S=S+Math.imul(st,Gt)|0,g=g+Math.imul(it,Xt)|0,x=(x=x+Math.imul(it,Jt)|0)+Math.imul(lt,Xt)|0,S=S+Math.imul(lt,Jt)|0;var re=(B+(g=g+Math.imul(X,ee)|0)|0)+((8191&(x=(x=x+Math.imul(X,de)|0)+Math.imul(rt,ee)|0))<<13)|0;B=((S=S+Math.imul(rt,de)|0)+(x>>>13)|0)+(re>>>26)|0,re&=67108863,g=Math.imul(ft,oe),x=(x=Math.imul(ft,Pe))+Math.imul(vt,oe)|0,S=Math.imul(vt,Pe),g=g+Math.imul(G,fe)|0,x=(x=x+Math.imul(G,Te)|0)+Math.imul(Q,fe)|0,S=S+Math.imul(Q,Te)|0,g=g+Math.imul(Ft,le)|0,x=(x=x+Math.imul(Ft,Ie)|0)+Math.imul(Kt,le)|0,S=S+Math.imul(Kt,Ie)|0,g=g+Math.imul(St,me)|0,x=(x=x+Math.imul(St,mt)|0)+Math.imul(Ot,me)|0,S=S+Math.imul(Ot,mt)|0,g=g+Math.imul(ht,Bt)|0,x=(x=x+Math.imul(ht,Gt)|0)+Math.imul(xt,Bt)|0,S=S+Math.imul(xt,Gt)|0,g=g+Math.imul(bt,Xt)|0,x=(x=x+Math.imul(bt,Jt)|0)+Math.imul(st,Xt)|0,S=S+Math.imul(st,Jt)|0;var Zt=(B+(g=g+Math.imul(it,ee)|0)|0)+((8191&(x=(x=x+Math.imul(it,de)|0)+Math.imul(lt,ee)|0))<<13)|0;B=((S=S+Math.imul(lt,de)|0)+(x>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,g=Math.imul(ft,fe),x=(x=Math.imul(ft,Te))+Math.imul(vt,fe)|0,S=Math.imul(vt,Te),g=g+Math.imul(G,le)|0,x=(x=x+Math.imul(G,Ie)|0)+Math.imul(Q,le)|0,S=S+Math.imul(Q,Ie)|0,g=g+Math.imul(Ft,me)|0,x=(x=x+Math.imul(Ft,mt)|0)+Math.imul(Kt,me)|0,S=S+Math.imul(Kt,mt)|0,g=g+Math.imul(St,Bt)|0,x=(x=x+Math.imul(St,Gt)|0)+Math.imul(Ot,Bt)|0,S=S+Math.imul(Ot,Gt)|0,g=g+Math.imul(ht,Xt)|0,x=(x=x+Math.imul(ht,Jt)|0)+Math.imul(xt,Xt)|0,S=S+Math.imul(xt,Jt)|0;var Yt=(B+(g=g+Math.imul(bt,ee)|0)|0)+((8191&(x=(x=x+Math.imul(bt,de)|0)+Math.imul(st,ee)|0))<<13)|0;B=((S=S+Math.imul(st,de)|0)+(x>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,g=Math.imul(ft,le),x=(x=Math.imul(ft,Ie))+Math.imul(vt,le)|0,S=Math.imul(vt,Ie),g=g+Math.imul(G,me)|0,x=(x=x+Math.imul(G,mt)|0)+Math.imul(Q,me)|0,S=S+Math.imul(Q,mt)|0,g=g+Math.imul(Ft,Bt)|0,x=(x=x+Math.imul(Ft,Gt)|0)+Math.imul(Kt,Bt)|0,S=S+Math.imul(Kt,Gt)|0,g=g+Math.imul(St,Xt)|0,x=(x=x+Math.imul(St,Jt)|0)+Math.imul(Ot,Xt)|0,S=S+Math.imul(Ot,Jt)|0;var Ae=(B+(g=g+Math.imul(ht,ee)|0)|0)+((8191&(x=(x=x+Math.imul(ht,de)|0)+Math.imul(xt,ee)|0))<<13)|0;B=((S=S+Math.imul(xt,de)|0)+(x>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,g=Math.imul(ft,me),x=(x=Math.imul(ft,mt))+Math.imul(vt,me)|0,S=Math.imul(vt,mt),g=g+Math.imul(G,Bt)|0,x=(x=x+Math.imul(G,Gt)|0)+Math.imul(Q,Bt)|0,S=S+Math.imul(Q,Gt)|0,g=g+Math.imul(Ft,Xt)|0,x=(x=x+Math.imul(Ft,Jt)|0)+Math.imul(Kt,Xt)|0,S=S+Math.imul(Kt,Jt)|0;var be=(B+(g=g+Math.imul(St,ee)|0)|0)+((8191&(x=(x=x+Math.imul(St,de)|0)+Math.imul(Ot,ee)|0))<<13)|0;B=((S=S+Math.imul(Ot,de)|0)+(x>>>13)|0)+(be>>>26)|0,be&=67108863,g=Math.imul(ft,Bt),x=(x=Math.imul(ft,Gt))+Math.imul(vt,Bt)|0,S=Math.imul(vt,Gt),g=g+Math.imul(G,Xt)|0,x=(x=x+Math.imul(G,Jt)|0)+Math.imul(Q,Xt)|0,S=S+Math.imul(Q,Jt)|0;var ve=(B+(g=g+Math.imul(Ft,ee)|0)|0)+((8191&(x=(x=x+Math.imul(Ft,de)|0)+Math.imul(Kt,ee)|0))<<13)|0;B=((S=S+Math.imul(Kt,de)|0)+(x>>>13)|0)+(ve>>>26)|0,ve&=67108863,g=Math.imul(ft,Xt),x=(x=Math.imul(ft,Jt))+Math.imul(vt,Xt)|0,S=Math.imul(vt,Jt);var ue=(B+(g=g+Math.imul(G,ee)|0)|0)+((8191&(x=(x=x+Math.imul(G,de)|0)+Math.imul(Q,ee)|0))<<13)|0;B=((S=S+Math.imul(Q,de)|0)+(x>>>13)|0)+(ue>>>26)|0,ue&=67108863;var ze=(B+(g=Math.imul(ft,ee))|0)+((8191&(x=(x=Math.imul(ft,de))+Math.imul(vt,ee)|0))<<13)|0;return B=((S=Math.imul(vt,de))+(x>>>13)|0)+(ze>>>26)|0,ze&=67108863,j[0]=pe,j[1]=we,j[2]=nr,j[3]=qe,j[4]=lr,j[5]=rr,j[6]=dr,j[7]=ct,j[8]=Tt,j[9]=zt,j[10]=Ht,j[11]=re,j[12]=Zt,j[13]=Yt,j[14]=Ae,j[15]=be,j[16]=ve,j[17]=ue,j[18]=ze,B!==0&&(j[19]=B,A.length++),A};function T(R,z,A){return new C().mulp(R,z,A)}function C(R,z){this.x=R,this.y=z}Math.imul||(b=v),e.prototype.mulTo=function(R,z){var A=this.length+R.length;return this.length===10&&R.length===10?b(this,R,z):A<63?v(this,R,z):A<1024?(function(g,x,S){S.negative=x.negative^g.negative,S.length=g.length+x.length;for(var E=0,O=0,j=0;j<S.length-1;j++){var B=O;O=0;for(var Y=67108863&E,K=Math.min(j,x.length-1),nt=Math.max(0,j-g.length+1);nt<=K;nt++){var U=j-nt,J=(0|g.words[U])*(0|x.words[nt]),L=67108863&J;Y=67108863&(L=L+Y|0),O+=(B=(B=B+(J/67108864|0)|0)+(L>>>26)|0)>>>26,B&=67108863}S.words[j]=Y,E=B,B=O}return E!==0?S.words[j]=E:S.length--,S.strip()})(this,R,z):T(this,R,z)},C.prototype.makeRBT=function(R){for(var z=new Array(R),A=e.prototype._countBits(R)-1,g=0;g<R;g++)z[g]=this.revBin(g,A,R);return z},C.prototype.revBin=function(R,z,A){if(R===0||R===A-1)return R;for(var g=0,x=0;x<z;x++)g|=(1&R)<<z-x-1,R>>=1;return g},C.prototype.permute=function(R,z,A,g,x,S){for(var E=0;E<S;E++)g[E]=z[R[E]],x[E]=A[R[E]]},C.prototype.transform=function(R,z,A,g,x,S){this.permute(S,R,z,A,g,x);for(var E=1;E<x;E<<=1)for(var O=E<<1,j=Math.cos(2*Math.PI/O),B=Math.sin(2*Math.PI/O),Y=0;Y<x;Y+=O)for(var K=j,nt=B,U=0;U<E;U++){var J=A[Y+U],L=g[Y+U],N=A[Y+U+E],X=g[Y+U+E],rt=K*N-nt*X;X=K*X+nt*N,N=rt,A[Y+U]=J+N,g[Y+U]=L+X,A[Y+U+E]=J-N,g[Y+U+E]=L-X,U!==O&&(rt=j*K-B*nt,nt=j*nt+B*K,K=rt)}},C.prototype.guessLen13b=function(R,z){var A=1|Math.max(z,R),g=1&A,x=0;for(A=A/2|0;A;A>>>=1)x++;return 1<<x+1+g},C.prototype.conjugate=function(R,z,A){if(!(A<=1))for(var g=0;g<A/2;g++){var x=R[g];R[g]=R[A-g-1],R[A-g-1]=x,x=z[g],z[g]=-z[A-g-1],z[A-g-1]=-x}},C.prototype.normalize13b=function(R,z){for(var A=0,g=0;g<z/2;g++){var x=8192*Math.round(R[2*g+1]/z)+Math.round(R[2*g]/z)+A;R[g]=67108863&x,A=x<67108864?0:x/67108864|0}return R},C.prototype.convert13b=function(R,z,A,g){for(var x=0,S=0;S<z;S++)x+=0|R[S],A[2*S]=8191&x,x>>>=13,A[2*S+1]=8191&x,x>>>=13;for(S=2*z;S<g;++S)A[S]=0;l(x===0),l((-8192&x)==0)},C.prototype.stub=function(R){for(var z=new Array(R),A=0;A<R;A++)z[A]=0;return z},C.prototype.mulp=function(R,z,A){var g=2*this.guessLen13b(R.length,z.length),x=this.makeRBT(g),S=this.stub(g),E=new Array(g),O=new Array(g),j=new Array(g),B=new Array(g),Y=new Array(g),K=new Array(g),nt=A.words;nt.length=g,this.convert13b(R.words,R.length,E,g),this.convert13b(z.words,z.length,B,g),this.transform(E,S,O,j,g,x),this.transform(B,S,Y,K,g,x);for(var U=0;U<g;U++){var J=O[U]*Y[U]-j[U]*K[U];j[U]=O[U]*K[U]+j[U]*Y[U],O[U]=J}return this.conjugate(O,j,g),this.transform(O,j,nt,S,g,x),this.conjugate(nt,S,g),this.normalize13b(nt,g),A.negative=R.negative^z.negative,A.length=R.length+z.length,A.strip()},e.prototype.mul=function(R){var z=new e(null);return z.words=new Array(this.length+R.length),this.mulTo(R,z)},e.prototype.mulf=function(R){var z=new e(null);return z.words=new Array(this.length+R.length),T(this,R,z)},e.prototype.imul=function(R){return this.clone().mulTo(R,this)},e.prototype.imuln=function(R){l(typeof R=="number"),l(R<67108864);for(var z=0,A=0;A<this.length;A++){var g=(0|this.words[A])*R,x=(67108863&g)+(67108863&z);z>>=26,z+=g/67108864|0,z+=x>>>26,this.words[A]=67108863&x}return z!==0&&(this.words[A]=z,this.length++),this},e.prototype.muln=function(R){return this.clone().imuln(R)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(R){var z=(function(S){for(var E=new Array(S.bitLength()),O=0;O<E.length;O++){var j=O/26|0,B=O%26;E[O]=(S.words[j]&1<<B)>>>B}return E})(R);if(z.length===0)return new e(1);for(var A=this,g=0;g<z.length&&z[g]===0;g++,A=A.sqr());if(++g<z.length)for(var x=A.sqr();g<z.length;g++,x=x.sqr())z[g]!==0&&(A=A.mul(x));return A},e.prototype.iushln=function(R){l(typeof R=="number"&&R>=0);var z,A=R%26,g=(R-A)/26,x=67108863>>>26-A<<26-A;if(A!==0){var S=0;for(z=0;z<this.length;z++){var E=this.words[z]&x,O=(0|this.words[z])-E<<A;this.words[z]=O|S,S=E>>>26-A}S&&(this.words[z]=S,this.length++)}if(g!==0){for(z=this.length-1;z>=0;z--)this.words[z+g]=this.words[z];for(z=0;z<g;z++)this.words[z]=0;this.length+=g}return this.strip()},e.prototype.ishln=function(R){return l(this.negative===0),this.iushln(R)},e.prototype.iushrn=function(R,z,A){var g;l(typeof R=="number"&&R>=0),g=z?(z-z%26)/26:0;var x=R%26,S=Math.min((R-x)/26,this.length),E=67108863^67108863>>>x<<x,O=A;if(g-=S,g=Math.max(0,g),O){for(var j=0;j<S;j++)O.words[j]=this.words[j];O.length=S}if(S!==0)if(this.length>S)for(this.length-=S,j=0;j<this.length;j++)this.words[j]=this.words[j+S];else this.words[0]=0,this.length=1;var B=0;for(j=this.length-1;j>=0&&(B!==0||j>=g);j--){var Y=0|this.words[j];this.words[j]=B<<26-x|Y>>>x,B=Y&E}return O&&B!==0&&(O.words[O.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},e.prototype.ishrn=function(R,z,A){return l(this.negative===0),this.iushrn(R,z,A)},e.prototype.shln=function(R){return this.clone().ishln(R)},e.prototype.ushln=function(R){return this.clone().iushln(R)},e.prototype.shrn=function(R){return this.clone().ishrn(R)},e.prototype.ushrn=function(R){return this.clone().iushrn(R)},e.prototype.testn=function(R){l(typeof R=="number"&&R>=0);var z=R%26,A=(R-z)/26,g=1<<z;return!(this.length<=A)&&!!(this.words[A]&g)},e.prototype.imaskn=function(R){l(typeof R=="number"&&R>=0);var z=R%26,A=(R-z)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(z!==0&&A++,this.length=Math.min(A,this.length),z!==0){var g=67108863^67108863>>>z<<z;this.words[this.length-1]&=g}return this.strip()},e.prototype.maskn=function(R){return this.clone().imaskn(R)},e.prototype.iaddn=function(R){return l(typeof R=="number"),l(R<67108864),R<0?this.isubn(-R):this.negative!==0?this.length===1&&(0|this.words[0])<R?(this.words[0]=R-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(R),this.negative=1,this):this._iaddn(R)},e.prototype._iaddn=function(R){this.words[0]+=R;for(var z=0;z<this.length&&this.words[z]>=67108864;z++)this.words[z]-=67108864,z===this.length-1?this.words[z+1]=1:this.words[z+1]++;return this.length=Math.max(this.length,z+1),this},e.prototype.isubn=function(R){if(l(typeof R=="number"),l(R<67108864),R<0)return this.iaddn(-R);if(this.negative!==0)return this.negative=0,this.iaddn(R),this.negative=1,this;if(this.words[0]-=R,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var z=0;z<this.length&&this.words[z]<0;z++)this.words[z]+=67108864,this.words[z+1]-=1;return this.strip()},e.prototype.addn=function(R){return this.clone().iaddn(R)},e.prototype.subn=function(R){return this.clone().isubn(R)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(R,z,A){var g,x,S=R.length+A;this._expand(S);var E=0;for(g=0;g<R.length;g++){x=(0|this.words[g+A])+E;var O=(0|R.words[g])*z;E=((x-=67108863&O)>>26)-(O/67108864|0),this.words[g+A]=67108863&x}for(;g<this.length-A;g++)E=(x=(0|this.words[g+A])+E)>>26,this.words[g+A]=67108863&x;if(E===0)return this.strip();for(l(E===-1),E=0,g=0;g<this.length;g++)E=(x=-(0|this.words[g])+E)>>26,this.words[g]=67108863&x;return this.negative=1,this.strip()},e.prototype._wordDiv=function(R,z){var A=(this.length,R.length),g=this.clone(),x=R,S=0|x.words[x.length-1];(A=26-this._countBits(S))!==0&&(x=x.ushln(A),g.iushln(A),S=0|x.words[x.length-1]);var E,O=g.length-x.length;if(z!=="mod"){(E=new e(null)).length=O+1,E.words=new Array(E.length);for(var j=0;j<E.length;j++)E.words[j]=0}var B=g.clone()._ishlnsubmul(x,1,O);B.negative===0&&(g=B,E&&(E.words[O]=1));for(var Y=O-1;Y>=0;Y--){var K=67108864*(0|g.words[x.length+Y])+(0|g.words[x.length+Y-1]);for(K=Math.min(K/S|0,67108863),g._ishlnsubmul(x,K,Y);g.negative!==0;)K--,g.negative=0,g._ishlnsubmul(x,1,Y),g.isZero()||(g.negative^=1);E&&(E.words[Y]=K)}return E&&E.strip(),g.strip(),z!=="div"&&A!==0&&g.iushrn(A),{div:E||null,mod:g}},e.prototype.divmod=function(R,z,A){return l(!R.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&R.negative===0?(S=this.neg().divmod(R,z),z!=="mod"&&(g=S.div.neg()),z!=="div"&&(x=S.mod.neg(),A&&x.negative!==0&&x.iadd(R)),{div:g,mod:x}):this.negative===0&&R.negative!==0?(S=this.divmod(R.neg(),z),z!=="mod"&&(g=S.div.neg()),{div:g,mod:S.mod}):(this.negative&R.negative)!=0?(S=this.neg().divmod(R.neg(),z),z!=="div"&&(x=S.mod.neg(),A&&x.negative!==0&&x.isub(R)),{div:S.div,mod:x}):R.length>this.length||this.cmp(R)<0?{div:new e(0),mod:this}:R.length===1?z==="div"?{div:this.divn(R.words[0]),mod:null}:z==="mod"?{div:null,mod:new e(this.modn(R.words[0]))}:{div:this.divn(R.words[0]),mod:new e(this.modn(R.words[0]))}:this._wordDiv(R,z);var g,x,S},e.prototype.div=function(R){return this.divmod(R,"div",!1).div},e.prototype.mod=function(R){return this.divmod(R,"mod",!1).mod},e.prototype.umod=function(R){return this.divmod(R,"mod",!0).mod},e.prototype.divRound=function(R){var z=this.divmod(R);if(z.mod.isZero())return z.div;var A=z.div.negative!==0?z.mod.isub(R):z.mod,g=R.ushrn(1),x=R.andln(1),S=A.cmp(g);return S<0||x===1&&S===0?z.div:z.div.negative!==0?z.div.isubn(1):z.div.iaddn(1)},e.prototype.modn=function(R){l(R<=67108863);for(var z=(1<<26)%R,A=0,g=this.length-1;g>=0;g--)A=(z*A+(0|this.words[g]))%R;return A},e.prototype.idivn=function(R){l(R<=67108863);for(var z=0,A=this.length-1;A>=0;A--){var g=(0|this.words[A])+67108864*z;this.words[A]=g/R|0,z=g%R}return this.strip()},e.prototype.divn=function(R){return this.clone().idivn(R)},e.prototype.egcd=function(R){l(R.negative===0),l(!R.isZero());var z=this,A=R.clone();z=z.negative!==0?z.umod(R):z.clone();for(var g=new e(1),x=new e(0),S=new e(0),E=new e(1),O=0;z.isEven()&&A.isEven();)z.iushrn(1),A.iushrn(1),++O;for(var j=A.clone(),B=z.clone();!z.isZero();){for(var Y=0,K=1;(z.words[0]&K)==0&&Y<26;++Y,K<<=1);if(Y>0)for(z.iushrn(Y);Y-- >0;)(g.isOdd()||x.isOdd())&&(g.iadd(j),x.isub(B)),g.iushrn(1),x.iushrn(1);for(var nt=0,U=1;(A.words[0]&U)==0&&nt<26;++nt,U<<=1);if(nt>0)for(A.iushrn(nt);nt-- >0;)(S.isOdd()||E.isOdd())&&(S.iadd(j),E.isub(B)),S.iushrn(1),E.iushrn(1);z.cmp(A)>=0?(z.isub(A),g.isub(S),x.isub(E)):(A.isub(z),S.isub(g),E.isub(x))}return{a:S,b:E,gcd:A.iushln(O)}},e.prototype._invmp=function(R){l(R.negative===0),l(!R.isZero());var z=this,A=R.clone();z=z.negative!==0?z.umod(R):z.clone();for(var g,x=new e(1),S=new e(0),E=A.clone();z.cmpn(1)>0&&A.cmpn(1)>0;){for(var O=0,j=1;(z.words[0]&j)==0&&O<26;++O,j<<=1);if(O>0)for(z.iushrn(O);O-- >0;)x.isOdd()&&x.iadd(E),x.iushrn(1);for(var B=0,Y=1;(A.words[0]&Y)==0&&B<26;++B,Y<<=1);if(B>0)for(A.iushrn(B);B-- >0;)S.isOdd()&&S.iadd(E),S.iushrn(1);z.cmp(A)>=0?(z.isub(A),x.isub(S)):(A.isub(z),S.isub(x))}return(g=z.cmpn(1)===0?x:S).cmpn(0)<0&&g.iadd(R),g},e.prototype.gcd=function(R){if(this.isZero())return R.abs();if(R.isZero())return this.abs();var z=this.clone(),A=R.clone();z.negative=0,A.negative=0;for(var g=0;z.isEven()&&A.isEven();g++)z.iushrn(1),A.iushrn(1);for(;;){for(;z.isEven();)z.iushrn(1);for(;A.isEven();)A.iushrn(1);var x=z.cmp(A);if(x<0){var S=z;z=A,A=S}else if(x===0||A.cmpn(1)===0)break;z.isub(A)}return A.iushln(g)},e.prototype.invm=function(R){return this.egcd(R).a.umod(R)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(R){return this.words[0]&R},e.prototype.bincn=function(R){l(typeof R=="number");var z=R%26,A=(R-z)/26,g=1<<z;if(this.length<=A)return this._expand(A+1),this.words[A]|=g,this;for(var x=g,S=A;x!==0&&S<this.length;S++){var E=0|this.words[S];x=(E+=x)>>>26,E&=67108863,this.words[S]=E}return x!==0&&(this.words[S]=x,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(R){var z,A=R<0;if(this.negative!==0&&!A)return-1;if(this.negative===0&&A)return 1;if(this.strip(),this.length>1)z=1;else{A&&(R=-R),l(R<=67108863,"Number is too big");var g=0|this.words[0];z=g===R?0:g<R?-1:1}return this.negative!==0?0|-z:z},e.prototype.cmp=function(R){if(this.negative!==0&&R.negative===0)return-1;if(this.negative===0&&R.negative!==0)return 1;var z=this.ucmp(R);return this.negative!==0?0|-z:z},e.prototype.ucmp=function(R){if(this.length>R.length)return 1;if(this.length<R.length)return-1;for(var z=0,A=this.length-1;A>=0;A--){var g=0|this.words[A],x=0|R.words[A];if(g!==x){g<x?z=-1:g>x&&(z=1);break}}return z},e.prototype.gtn=function(R){return this.cmpn(R)===1},e.prototype.gt=function(R){return this.cmp(R)===1},e.prototype.gten=function(R){return this.cmpn(R)>=0},e.prototype.gte=function(R){return this.cmp(R)>=0},e.prototype.ltn=function(R){return this.cmpn(R)===-1},e.prototype.lt=function(R){return this.cmp(R)===-1},e.prototype.lten=function(R){return this.cmpn(R)<=0},e.prototype.lte=function(R){return this.cmp(R)<=0},e.prototype.eqn=function(R){return this.cmpn(R)===0},e.prototype.eq=function(R){return this.cmp(R)===0},e.red=function(R){return new W(R)},e.prototype.toRed=function(R){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),R.convertTo(this)._forceRed(R)},e.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(R){return this.red=R,this},e.prototype.forceRed=function(R){return l(!this.red,"Already a number in reduction context"),this._forceRed(R)},e.prototype.redAdd=function(R){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,R)},e.prototype.redIAdd=function(R){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,R)},e.prototype.redSub=function(R){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,R)},e.prototype.redISub=function(R){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,R)},e.prototype.redShl=function(R){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,R)},e.prototype.redMul=function(R){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.mul(this,R)},e.prototype.redIMul=function(R){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.imul(this,R)},e.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(R){return l(this.red&&!R.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,R)};var I={k256:null,p224:null,p192:null,p25519:null};function H(R,z){this.name=R,this.p=new e(z,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function Z(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){H.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function q(){H.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function V(){H.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(R){if(typeof R=="string"){var z=e._prime(R);this.m=z.p,this.prime=z}else l(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}function $(R){W.call(this,R),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}H.prototype._tmp=function(){var R=new e(null);return R.words=new Array(Math.ceil(this.n/13)),R},H.prototype.ireduce=function(R){var z,A=R;do this.split(A,this.tmp),z=(A=(A=this.imulK(A)).iadd(this.tmp)).bitLength();while(z>this.n);var g=z<this.n?-1:A.ucmp(this.p);return g===0?(A.words[0]=0,A.length=1):g>0?A.isub(this.p):A.strip!==void 0?A.strip():A._strip(),A},H.prototype.split=function(R,z){R.iushrn(this.n,0,z)},H.prototype.imulK=function(R){return R.imul(this.k)},i(Z,H),Z.prototype.split=function(R,z){for(var A=Math.min(R.length,9),g=0;g<A;g++)z.words[g]=R.words[g];if(z.length=A,R.length<=9)return R.words[0]=0,void(R.length=1);var x=R.words[9];for(z.words[z.length++]=4194303&x,g=10;g<R.length;g++){var S=0|R.words[g];R.words[g-10]=(4194303&S)<<4|x>>>22,x=S}x>>>=22,R.words[g-10]=x,x===0&&R.length>10?R.length-=10:R.length-=9},Z.prototype.imulK=function(R){R.words[R.length]=0,R.words[R.length+1]=0,R.length+=2;for(var z=0,A=0;A<R.length;A++){var g=0|R.words[A];z+=977*g,R.words[A]=67108863&z,z=64*g+(z/67108864|0)}return R.words[R.length-1]===0&&(R.length--,R.words[R.length-1]===0&&R.length--),R},i(P,H),i(q,H),i(V,H),V.prototype.imulK=function(R){for(var z=0,A=0;A<R.length;A++){var g=19*(0|R.words[A])+z,x=67108863&g;g>>>=26,R.words[A]=x,z=g}return z!==0&&(R.words[R.length++]=z),R},e._prime=function(R){if(I[R])return I[R];var z;if(R==="k256")z=new Z;else if(R==="p224")z=new P;else if(R==="p192")z=new q;else{if(R!=="p25519")throw new Error("Unknown prime "+R);z=new V}return I[R]=z,z},W.prototype._verify1=function(R){l(R.negative===0,"red works only with positives"),l(R.red,"red works only with red numbers")},W.prototype._verify2=function(R,z){l((R.negative|z.negative)==0,"red works only with positives"),l(R.red&&R.red===z.red,"red works only with red numbers")},W.prototype.imod=function(R){return this.prime?this.prime.ireduce(R)._forceRed(this):R.umod(this.m)._forceRed(this)},W.prototype.neg=function(R){return R.isZero()?R.clone():this.m.sub(R)._forceRed(this)},W.prototype.add=function(R,z){this._verify2(R,z);var A=R.add(z);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},W.prototype.iadd=function(R,z){this._verify2(R,z);var A=R.iadd(z);return A.cmp(this.m)>=0&&A.isub(this.m),A},W.prototype.sub=function(R,z){this._verify2(R,z);var A=R.sub(z);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},W.prototype.isub=function(R,z){this._verify2(R,z);var A=R.isub(z);return A.cmpn(0)<0&&A.iadd(this.m),A},W.prototype.shl=function(R,z){return this._verify1(R),this.imod(R.ushln(z))},W.prototype.imul=function(R,z){return this._verify2(R,z),this.imod(R.imul(z))},W.prototype.mul=function(R,z){return this._verify2(R,z),this.imod(R.mul(z))},W.prototype.isqr=function(R){return this.imul(R,R.clone())},W.prototype.sqr=function(R){return this.mul(R,R)},W.prototype.sqrt=function(R){if(R.isZero())return R.clone();var z=this.m.andln(3);if(l(z%2==1),z===3){var A=this.m.add(new e(1)).iushrn(2);return this.pow(R,A)}for(var g=this.m.subn(1),x=0;!g.isZero()&&g.andln(1)===0;)x++,g.iushrn(1);l(!g.isZero());var S=new e(1).toRed(this),E=S.redNeg(),O=this.m.subn(1).iushrn(1),j=this.m.bitLength();for(j=new e(2*j*j).toRed(this);this.pow(j,O).cmp(E)!==0;)j.redIAdd(E);for(var B=this.pow(j,g),Y=this.pow(R,g.addn(1).iushrn(1)),K=this.pow(R,g),nt=x;K.cmp(S)!==0;){for(var U=K,J=0;U.cmp(S)!==0;J++)U=U.redSqr();l(J<nt);var L=this.pow(B,new e(1).iushln(nt-J-1));Y=Y.redMul(L),B=L.redSqr(),K=K.redMul(B),nt=J}return Y},W.prototype.invm=function(R){var z=R._invmp(this.m);return z.negative!==0?(z.negative=0,this.imod(z).redNeg()):this.imod(z)},W.prototype.pow=function(R,z){if(z.isZero())return new e(1).toRed(this);if(z.cmpn(1)===0)return R.clone();var A=new Array(16);A[0]=new e(1).toRed(this),A[1]=R;for(var g=2;g<A.length;g++)A[g]=this.mul(A[g-1],R);var x=A[0],S=0,E=0,O=z.bitLength()%26;for(O===0&&(O=26),g=z.length-1;g>=0;g--){for(var j=z.words[g],B=O-1;B>=0;B--){var Y=j>>B&1;x!==A[0]&&(x=this.sqr(x)),Y!==0||S!==0?(S<<=1,S|=Y,(++E===4||g===0&&B===0)&&(x=this.mul(x,A[S]),E=0,S=0)):E=0}O=26}return x},W.prototype.convertTo=function(R){var z=R.umod(this.m);return z===R?z.clone():z},W.prototype.convertFrom=function(R){var z=R.clone();return z.red=null,z},e.mont=function(R){return new $(R)},i($,W),$.prototype.convertTo=function(R){return this.imod(R.ushln(this.shift))},$.prototype.convertFrom=function(R){var z=this.imod(R.mul(this.rinv));return z.red=null,z},$.prototype.imul=function(R,z){if(R.isZero()||z.isZero())return R.words[0]=0,R.length=1,R;var A=R.imul(z),g=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=A.isub(g).iushrn(this.shift),S=x;return x.cmp(this.m)>=0?S=x.isub(this.m):x.cmpn(0)<0&&(S=x.iadd(this.m)),S._forceRed(this)},$.prototype.mul=function(R,z){if(R.isZero()||z.isZero())return new e(0)._forceRed(this);var A=R.mul(z),g=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=A.isub(g).iushrn(this.shift),S=x;return x.cmp(this.m)>=0?S=x.isub(this.m):x.cmpn(0)<0&&(S=x.iadd(this.m)),S._forceRed(this)},$.prototype.invm=function(R){return this.imod(R._invmp(this.m).mul(this.r2))._forceRed(this)}})(y===void 0||y)},{buffer:188}],185:[function(r,y,_){_.byteLength=function(o){var p=c(o),m=p[0],f=p[1];return 3*(m+f)/4-f},_.toByteArray=function(o){var p,m,f=c(o),v=f[0],b=f[1],T=new l((function(H,Z,P){return 3*(Z+P)/4-P})(0,v,b)),C=0,I=b>0?v-4:v;for(m=0;m<I;m+=4)p=a[o.charCodeAt(m)]<<18|a[o.charCodeAt(m+1)]<<12|a[o.charCodeAt(m+2)]<<6|a[o.charCodeAt(m+3)],T[C++]=p>>16&255,T[C++]=p>>8&255,T[C++]=255&p;return b===2&&(p=a[o.charCodeAt(m)]<<2|a[o.charCodeAt(m+1)]>>4,T[C++]=255&p),b===1&&(p=a[o.charCodeAt(m)]<<10|a[o.charCodeAt(m+1)]<<4|a[o.charCodeAt(m+2)]>>2,T[C++]=p>>8&255,T[C++]=255&p),T},_.fromByteArray=function(o){for(var p,m=o.length,f=m%3,v=[],b=0,T=m-f;b<T;b+=16383)v.push(u(o,b,b+16383>T?T:b+16383));return f===1?(p=o[m-1],v.push(d[p>>2]+d[p<<4&63]+"==")):f===2&&(p=(o[m-2]<<8)+o[m-1],v.push(d[p>>10]+d[p>>4&63]+d[p<<2&63]+"=")),v.join("")};for(var d=[],a=[],l=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,s=i.length;e<s;++e)d[e]=i[e],a[i.charCodeAt(e)]=e;function c(o){var p=o.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.indexOf("=");return m===-1&&(m=p),[m,m===p?0:4-m%4]}function u(o,p,m){for(var f,v,b=[],T=p;T<m;T+=3)f=(o[T]<<16&16711680)+(o[T+1]<<8&65280)+(255&o[T+2]),b.push(d[(v=f)>>18&63]+d[v>>12&63]+d[v>>6&63]+d[63&v]);return b.join("")}a[45]=62,a[95]=63},{}],186:[function(r,y,_){(function(d,a){function l(A,g){if(!A)throw new Error(g||"Assertion failed")}function i(A,g){A.super_=g;var x=function(){};x.prototype=g.prototype,A.prototype=new x,A.prototype.constructor=A}function e(A,g,x){if(e.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(g!=="le"&&g!=="be"||(x=g,g=10),this._init(A||0,g||10,x||"be"))}var s;typeof d=="object"?d.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{s=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:r("buffer").Buffer}catch{}function c(A,g){var x=A.charCodeAt(g);return x>=48&&x<=57?x-48:x>=65&&x<=70?x-55:x>=97&&x<=102?x-87:void l(!1,"Invalid character in "+A)}function u(A,g,x){var S=c(A,x);return x-1>=g&&(S|=c(A,x-1)<<4),S}function o(A,g,x,S){for(var E=0,O=0,j=Math.min(A.length,x),B=g;B<j;B++){var Y=A.charCodeAt(B)-48;E*=S,O=Y>=49?Y-49+10:Y>=17?Y-17+10:Y,l(Y>=0&&O<S,"Invalid character"),E+=O}return E}function p(A,g){A.words=g.words,A.length=g.length,A.negative=g.negative,A.red=g.red}if(e.isBN=function(A){return A instanceof e||A!==null&&typeof A=="object"&&A.constructor.wordSize===e.wordSize&&Array.isArray(A.words)},e.max=function(A,g){return A.cmp(g)>0?A:g},e.min=function(A,g){return A.cmp(g)<0?A:g},e.prototype._init=function(A,g,x){if(typeof A=="number")return this._initNumber(A,g,x);if(typeof A=="object")return this._initArray(A,g,x);g==="hex"&&(g=16),l(g===(0|g)&&g>=2&&g<=36);var S=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(S++,this.negative=1),S<A.length&&(g===16?this._parseHex(A,S,x):(this._parseBase(A,g,S),x==="le"&&this._initArray(this.toArray(),g,x)))},e.prototype._initNumber=function(A,g,x){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(l(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),x==="le"&&this._initArray(this.toArray(),g,x)},e.prototype._initArray=function(A,g,x){if(l(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var E,O,j=0;if(x==="be")for(S=A.length-1,E=0;S>=0;S-=3)O=A[S]|A[S-1]<<8|A[S-2]<<16,this.words[E]|=O<<j&67108863,this.words[E+1]=O>>>26-j&67108863,(j+=24)>=26&&(j-=26,E++);else if(x==="le")for(S=0,E=0;S<A.length;S+=3)O=A[S]|A[S+1]<<8|A[S+2]<<16,this.words[E]|=O<<j&67108863,this.words[E+1]=O>>>26-j&67108863,(j+=24)>=26&&(j-=26,E++);return this._strip()},e.prototype._parseHex=function(A,g,x){this.length=Math.ceil((A.length-g)/6),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var E,O=0,j=0;if(x==="be")for(S=A.length-1;S>=g;S-=2)E=u(A,g,S)<<O,this.words[j]|=67108863&E,O>=18?(O-=18,j+=1,this.words[j]|=E>>>26):O+=8;else for(S=(A.length-g)%2==0?g+1:g;S<A.length;S+=2)E=u(A,g,S)<<O,this.words[j]|=67108863&E,O>=18?(O-=18,j+=1,this.words[j]|=E>>>26):O+=8;this._strip()},e.prototype._parseBase=function(A,g,x){this.words=[0],this.length=1;for(var S=0,E=1;E<=67108863;E*=g)S++;S--,E=E/g|0;for(var O=A.length-x,j=O%S,B=Math.min(O,O-j)+x,Y=0,K=x;K<B;K+=S)Y=o(A,K,K+S,g),this.imuln(E),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y);if(j!==0){var nt=1;for(Y=o(A,K,A.length,g),K=0;K<j;K++)nt*=g;this.imuln(nt),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y)}this._strip()},e.prototype.copy=function(A){A.words=new Array(this.length);for(var g=0;g<this.length;g++)A.words[g]=this.words[g];A.length=this.length,A.negative=this.negative,A.red=this.red},e.prototype._move=function(A){p(A,this)},e.prototype.clone=function(){var A=new e(null);return this.copy(A),A},e.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{e.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{e.prototype.inspect=m}else e.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];e.prototype.toString=function(A,g){var x;if(g=0|g||1,(A=A||10)===16||A==="hex"){x="";for(var S=0,E=0,O=0;O<this.length;O++){var j=this.words[O],B=(16777215&(j<<S|E)).toString(16);E=j>>>24-S&16777215,(S+=2)>=26&&(S-=26,O--),x=E!==0||O!==this.length-1?f[6-B.length]+B+x:B+x}for(E!==0&&(x=E.toString(16)+x);x.length%g!=0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(A===(0|A)&&A>=2&&A<=36){var Y=v[A],K=b[A];x="";var nt=this.clone();for(nt.negative=0;!nt.isZero();){var U=nt.modrn(K).toString(A);x=(nt=nt.idivn(K)).isZero()?U+x:f[Y-U.length]+U+x}for(this.isZero()&&(x="0"+x);x.length%g!=0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}l(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},e.prototype.toJSON=function(){return this.toString(16,2)},s&&(e.prototype.toBuffer=function(A,g){return this.toArrayLike(s,A,g)}),e.prototype.toArray=function(A,g){return this.toArrayLike(Array,A,g)};function T(A,g,x){x.negative=g.negative^A.negative;var S=A.length+g.length|0;x.length=S,S=S-1|0;var E=0|A.words[0],O=0|g.words[0],j=E*O,B=67108863&j,Y=j/67108864|0;x.words[0]=B;for(var K=1;K<S;K++){for(var nt=Y>>>26,U=67108863&Y,J=Math.min(K,g.length-1),L=Math.max(0,K-A.length+1);L<=J;L++){var N=K-L|0;nt+=(j=(E=0|A.words[N])*(O=0|g.words[L])+U)/67108864|0,U=67108863&j}x.words[K]=0|U,Y=0|nt}return Y!==0?x.words[K]=0|Y:x.length--,x._strip()}e.prototype.toArrayLike=function(A,g,x){this._strip();var S=this.byteLength(),E=x||Math.max(1,S);l(S<=E,"byte array longer than desired length"),l(E>0,"Requested array length <= 0");var O=(function(j,B){return j.allocUnsafe?j.allocUnsafe(B):new j(B)})(A,E);return this["_toArrayLike"+(g==="le"?"LE":"BE")](O,S),O},e.prototype._toArrayLikeLE=function(A,g){for(var x=0,S=0,E=0,O=0;E<this.length;E++){var j=this.words[E]<<O|S;A[x++]=255&j,x<A.length&&(A[x++]=j>>8&255),x<A.length&&(A[x++]=j>>16&255),O===6?(x<A.length&&(A[x++]=j>>24&255),S=0,O=0):(S=j>>>24,O+=2)}if(x<A.length)for(A[x++]=S;x<A.length;)A[x++]=0},e.prototype._toArrayLikeBE=function(A,g){for(var x=A.length-1,S=0,E=0,O=0;E<this.length;E++){var j=this.words[E]<<O|S;A[x--]=255&j,x>=0&&(A[x--]=j>>8&255),x>=0&&(A[x--]=j>>16&255),O===6?(x>=0&&(A[x--]=j>>24&255),S=0,O=0):(S=j>>>24,O+=2)}if(x>=0)for(A[x--]=S;x>=0;)A[x--]=0},Math.clz32?e.prototype._countBits=function(A){return 32-Math.clz32(A)}:e.prototype._countBits=function(A){var g=A,x=0;return g>=4096&&(x+=13,g>>>=13),g>=64&&(x+=7,g>>>=7),g>=8&&(x+=4,g>>>=4),g>=2&&(x+=2,g>>>=2),x+g},e.prototype._zeroBits=function(A){if(A===0)return 26;var g=A,x=0;return(8191&g)==0&&(x+=13,g>>>=13),(127&g)==0&&(x+=7,g>>>=7),(15&g)==0&&(x+=4,g>>>=4),(3&g)==0&&(x+=2,g>>>=2),(1&g)==0&&x++,x},e.prototype.bitLength=function(){var A=this.words[this.length-1],g=this._countBits(A);return 26*(this.length-1)+g},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,g=0;g<this.length;g++){var x=this._zeroBits(this.words[g]);if(A+=x,x!==26)break}return A},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},e.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var g=0;g<A.length;g++)this.words[g]=this.words[g]|A.words[g];return this._strip()},e.prototype.ior=function(A){return l((this.negative|A.negative)==0),this.iuor(A)},e.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},e.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},e.prototype.iuand=function(A){var g;g=this.length>A.length?A:this;for(var x=0;x<g.length;x++)this.words[x]=this.words[x]&A.words[x];return this.length=g.length,this._strip()},e.prototype.iand=function(A){return l((this.negative|A.negative)==0),this.iuand(A)},e.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},e.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},e.prototype.iuxor=function(A){var g,x;this.length>A.length?(g=this,x=A):(g=A,x=this);for(var S=0;S<x.length;S++)this.words[S]=g.words[S]^x.words[S];if(this!==g)for(;S<g.length;S++)this.words[S]=g.words[S];return this.length=g.length,this._strip()},e.prototype.ixor=function(A){return l((this.negative|A.negative)==0),this.iuxor(A)},e.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},e.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},e.prototype.inotn=function(A){l(typeof A=="number"&&A>=0);var g=0|Math.ceil(A/26),x=A%26;this._expand(g),x>0&&g--;for(var S=0;S<g;S++)this.words[S]=67108863&~this.words[S];return x>0&&(this.words[S]=~this.words[S]&67108863>>26-x),this._strip()},e.prototype.notn=function(A){return this.clone().inotn(A)},e.prototype.setn=function(A,g){l(typeof A=="number"&&A>=0);var x=A/26|0,S=A%26;return this._expand(x+1),this.words[x]=g?this.words[x]|1<<S:this.words[x]&~(1<<S),this._strip()},e.prototype.iadd=function(A){var g,x,S;if(this.negative!==0&&A.negative===0)return this.negative=0,g=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,g=this.isub(A),A.negative=1,g._normSign();this.length>A.length?(x=this,S=A):(x=A,S=this);for(var E=0,O=0;O<S.length;O++)g=(0|x.words[O])+(0|S.words[O])+E,this.words[O]=67108863&g,E=g>>>26;for(;E!==0&&O<x.length;O++)g=(0|x.words[O])+E,this.words[O]=67108863&g,E=g>>>26;if(this.length=x.length,E!==0)this.words[this.length]=E,this.length++;else if(x!==this)for(;O<x.length;O++)this.words[O]=x.words[O];return this},e.prototype.add=function(A){var g;return A.negative!==0&&this.negative===0?(A.negative=0,g=this.sub(A),A.negative^=1,g):A.negative===0&&this.negative!==0?(this.negative=0,g=A.sub(this),this.negative=1,g):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},e.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var g=this.iadd(A);return A.negative=1,g._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var x,S,E=this.cmp(A);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(x=this,S=A):(x=A,S=this);for(var O=0,j=0;j<S.length;j++)O=(g=(0|x.words[j])-(0|S.words[j])+O)>>26,this.words[j]=67108863&g;for(;O!==0&&j<x.length;j++)O=(g=(0|x.words[j])+O)>>26,this.words[j]=67108863&g;if(O===0&&j<x.length&&x!==this)for(;j<x.length;j++)this.words[j]=x.words[j];return this.length=Math.max(this.length,j),x!==this&&(this.negative=1),this._strip()},e.prototype.sub=function(A){return this.clone().isub(A)};var C=function(A,g,x){var S,E,O,j=A.words,B=g.words,Y=x.words,K=0,nt=0|j[0],U=8191&nt,J=nt>>>13,L=0|j[1],N=8191&L,X=L>>>13,rt=0|j[2],ut=8191&rt,it=rt>>>13,lt=0|j[3],gt=8191<,bt=lt>>>13,st=0|j[4],dt=8191&st,ht=st>>>13,xt=0|j[5],_t=8191&xt,St=xt>>>13,Ot=0|j[6],Rt=8191&Ot,Ft=Ot>>>13,Kt=0|j[7],et=8191&Kt,G=Kt>>>13,Q=0|j[8],ot=8191&Q,ft=Q>>>13,vt=0|j[9],wt=8191&vt,Nt=vt>>>13,Pt=0|B[0],qt=8191&Pt,Vt=Pt>>>13,Qt=0|B[1],Fe=8191&Qt,ie=Qt>>>13,ke=0|B[2],ye=8191&ke,oe=ke>>>13,Pe=0|B[3],Se=8191&Pe,fe=Pe>>>13,Te=0|B[4],He=8191&Te,le=Te>>>13,Ie=0|B[5],$e=8191&Ie,me=Ie>>>13,mt=0|B[6],kt=8191&mt,Bt=mt>>>13,Gt=0|B[7],ae=8191&Gt,Xt=Gt>>>13,Jt=0|B[8],Wt=8191&Jt,ee=Jt>>>13,de=0|B[9],pe=8191&de,we=de>>>13;x.negative=A.negative^g.negative,x.length=19;var nr=(K+(S=Math.imul(U,qt))|0)+((8191&(E=(E=Math.imul(U,Vt))+Math.imul(J,qt)|0))<<13)|0;K=((O=Math.imul(J,Vt))+(E>>>13)|0)+(nr>>>26)|0,nr&=67108863,S=Math.imul(N,qt),E=(E=Math.imul(N,Vt))+Math.imul(X,qt)|0,O=Math.imul(X,Vt);var qe=(K+(S=S+Math.imul(U,Fe)|0)|0)+((8191&(E=(E=E+Math.imul(U,ie)|0)+Math.imul(J,Fe)|0))<<13)|0;K=((O=O+Math.imul(J,ie)|0)+(E>>>13)|0)+(qe>>>26)|0,qe&=67108863,S=Math.imul(ut,qt),E=(E=Math.imul(ut,Vt))+Math.imul(it,qt)|0,O=Math.imul(it,Vt),S=S+Math.imul(N,Fe)|0,E=(E=E+Math.imul(N,ie)|0)+Math.imul(X,Fe)|0,O=O+Math.imul(X,ie)|0;var lr=(K+(S=S+Math.imul(U,ye)|0)|0)+((8191&(E=(E=E+Math.imul(U,oe)|0)+Math.imul(J,ye)|0))<<13)|0;K=((O=O+Math.imul(J,oe)|0)+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,S=Math.imul(gt,qt),E=(E=Math.imul(gt,Vt))+Math.imul(bt,qt)|0,O=Math.imul(bt,Vt),S=S+Math.imul(ut,Fe)|0,E=(E=E+Math.imul(ut,ie)|0)+Math.imul(it,Fe)|0,O=O+Math.imul(it,ie)|0,S=S+Math.imul(N,ye)|0,E=(E=E+Math.imul(N,oe)|0)+Math.imul(X,ye)|0,O=O+Math.imul(X,oe)|0;var rr=(K+(S=S+Math.imul(U,Se)|0)|0)+((8191&(E=(E=E+Math.imul(U,fe)|0)+Math.imul(J,Se)|0))<<13)|0;K=((O=O+Math.imul(J,fe)|0)+(E>>>13)|0)+(rr>>>26)|0,rr&=67108863,S=Math.imul(dt,qt),E=(E=Math.imul(dt,Vt))+Math.imul(ht,qt)|0,O=Math.imul(ht,Vt),S=S+Math.imul(gt,Fe)|0,E=(E=E+Math.imul(gt,ie)|0)+Math.imul(bt,Fe)|0,O=O+Math.imul(bt,ie)|0,S=S+Math.imul(ut,ye)|0,E=(E=E+Math.imul(ut,oe)|0)+Math.imul(it,ye)|0,O=O+Math.imul(it,oe)|0,S=S+Math.imul(N,Se)|0,E=(E=E+Math.imul(N,fe)|0)+Math.imul(X,Se)|0,O=O+Math.imul(X,fe)|0;var dr=(K+(S=S+Math.imul(U,He)|0)|0)+((8191&(E=(E=E+Math.imul(U,le)|0)+Math.imul(J,He)|0))<<13)|0;K=((O=O+Math.imul(J,le)|0)+(E>>>13)|0)+(dr>>>26)|0,dr&=67108863,S=Math.imul(_t,qt),E=(E=Math.imul(_t,Vt))+Math.imul(St,qt)|0,O=Math.imul(St,Vt),S=S+Math.imul(dt,Fe)|0,E=(E=E+Math.imul(dt,ie)|0)+Math.imul(ht,Fe)|0,O=O+Math.imul(ht,ie)|0,S=S+Math.imul(gt,ye)|0,E=(E=E+Math.imul(gt,oe)|0)+Math.imul(bt,ye)|0,O=O+Math.imul(bt,oe)|0,S=S+Math.imul(ut,Se)|0,E=(E=E+Math.imul(ut,fe)|0)+Math.imul(it,Se)|0,O=O+Math.imul(it,fe)|0,S=S+Math.imul(N,He)|0,E=(E=E+Math.imul(N,le)|0)+Math.imul(X,He)|0,O=O+Math.imul(X,le)|0;var ct=(K+(S=S+Math.imul(U,$e)|0)|0)+((8191&(E=(E=E+Math.imul(U,me)|0)+Math.imul(J,$e)|0))<<13)|0;K=((O=O+Math.imul(J,me)|0)+(E>>>13)|0)+(ct>>>26)|0,ct&=67108863,S=Math.imul(Rt,qt),E=(E=Math.imul(Rt,Vt))+Math.imul(Ft,qt)|0,O=Math.imul(Ft,Vt),S=S+Math.imul(_t,Fe)|0,E=(E=E+Math.imul(_t,ie)|0)+Math.imul(St,Fe)|0,O=O+Math.imul(St,ie)|0,S=S+Math.imul(dt,ye)|0,E=(E=E+Math.imul(dt,oe)|0)+Math.imul(ht,ye)|0,O=O+Math.imul(ht,oe)|0,S=S+Math.imul(gt,Se)|0,E=(E=E+Math.imul(gt,fe)|0)+Math.imul(bt,Se)|0,O=O+Math.imul(bt,fe)|0,S=S+Math.imul(ut,He)|0,E=(E=E+Math.imul(ut,le)|0)+Math.imul(it,He)|0,O=O+Math.imul(it,le)|0,S=S+Math.imul(N,$e)|0,E=(E=E+Math.imul(N,me)|0)+Math.imul(X,$e)|0,O=O+Math.imul(X,me)|0;var Tt=(K+(S=S+Math.imul(U,kt)|0)|0)+((8191&(E=(E=E+Math.imul(U,Bt)|0)+Math.imul(J,kt)|0))<<13)|0;K=((O=O+Math.imul(J,Bt)|0)+(E>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,S=Math.imul(et,qt),E=(E=Math.imul(et,Vt))+Math.imul(G,qt)|0,O=Math.imul(G,Vt),S=S+Math.imul(Rt,Fe)|0,E=(E=E+Math.imul(Rt,ie)|0)+Math.imul(Ft,Fe)|0,O=O+Math.imul(Ft,ie)|0,S=S+Math.imul(_t,ye)|0,E=(E=E+Math.imul(_t,oe)|0)+Math.imul(St,ye)|0,O=O+Math.imul(St,oe)|0,S=S+Math.imul(dt,Se)|0,E=(E=E+Math.imul(dt,fe)|0)+Math.imul(ht,Se)|0,O=O+Math.imul(ht,fe)|0,S=S+Math.imul(gt,He)|0,E=(E=E+Math.imul(gt,le)|0)+Math.imul(bt,He)|0,O=O+Math.imul(bt,le)|0,S=S+Math.imul(ut,$e)|0,E=(E=E+Math.imul(ut,me)|0)+Math.imul(it,$e)|0,O=O+Math.imul(it,me)|0,S=S+Math.imul(N,kt)|0,E=(E=E+Math.imul(N,Bt)|0)+Math.imul(X,kt)|0,O=O+Math.imul(X,Bt)|0;var zt=(K+(S=S+Math.imul(U,ae)|0)|0)+((8191&(E=(E=E+Math.imul(U,Xt)|0)+Math.imul(J,ae)|0))<<13)|0;K=((O=O+Math.imul(J,Xt)|0)+(E>>>13)|0)+(zt>>>26)|0,zt&=67108863,S=Math.imul(ot,qt),E=(E=Math.imul(ot,Vt))+Math.imul(ft,qt)|0,O=Math.imul(ft,Vt),S=S+Math.imul(et,Fe)|0,E=(E=E+Math.imul(et,ie)|0)+Math.imul(G,Fe)|0,O=O+Math.imul(G,ie)|0,S=S+Math.imul(Rt,ye)|0,E=(E=E+Math.imul(Rt,oe)|0)+Math.imul(Ft,ye)|0,O=O+Math.imul(Ft,oe)|0,S=S+Math.imul(_t,Se)|0,E=(E=E+Math.imul(_t,fe)|0)+Math.imul(St,Se)|0,O=O+Math.imul(St,fe)|0,S=S+Math.imul(dt,He)|0,E=(E=E+Math.imul(dt,le)|0)+Math.imul(ht,He)|0,O=O+Math.imul(ht,le)|0,S=S+Math.imul(gt,$e)|0,E=(E=E+Math.imul(gt,me)|0)+Math.imul(bt,$e)|0,O=O+Math.imul(bt,me)|0,S=S+Math.imul(ut,kt)|0,E=(E=E+Math.imul(ut,Bt)|0)+Math.imul(it,kt)|0,O=O+Math.imul(it,Bt)|0,S=S+Math.imul(N,ae)|0,E=(E=E+Math.imul(N,Xt)|0)+Math.imul(X,ae)|0,O=O+Math.imul(X,Xt)|0;var Ht=(K+(S=S+Math.imul(U,Wt)|0)|0)+((8191&(E=(E=E+Math.imul(U,ee)|0)+Math.imul(J,Wt)|0))<<13)|0;K=((O=O+Math.imul(J,ee)|0)+(E>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,S=Math.imul(wt,qt),E=(E=Math.imul(wt,Vt))+Math.imul(Nt,qt)|0,O=Math.imul(Nt,Vt),S=S+Math.imul(ot,Fe)|0,E=(E=E+Math.imul(ot,ie)|0)+Math.imul(ft,Fe)|0,O=O+Math.imul(ft,ie)|0,S=S+Math.imul(et,ye)|0,E=(E=E+Math.imul(et,oe)|0)+Math.imul(G,ye)|0,O=O+Math.imul(G,oe)|0,S=S+Math.imul(Rt,Se)|0,E=(E=E+Math.imul(Rt,fe)|0)+Math.imul(Ft,Se)|0,O=O+Math.imul(Ft,fe)|0,S=S+Math.imul(_t,He)|0,E=(E=E+Math.imul(_t,le)|0)+Math.imul(St,He)|0,O=O+Math.imul(St,le)|0,S=S+Math.imul(dt,$e)|0,E=(E=E+Math.imul(dt,me)|0)+Math.imul(ht,$e)|0,O=O+Math.imul(ht,me)|0,S=S+Math.imul(gt,kt)|0,E=(E=E+Math.imul(gt,Bt)|0)+Math.imul(bt,kt)|0,O=O+Math.imul(bt,Bt)|0,S=S+Math.imul(ut,ae)|0,E=(E=E+Math.imul(ut,Xt)|0)+Math.imul(it,ae)|0,O=O+Math.imul(it,Xt)|0,S=S+Math.imul(N,Wt)|0,E=(E=E+Math.imul(N,ee)|0)+Math.imul(X,Wt)|0,O=O+Math.imul(X,ee)|0;var re=(K+(S=S+Math.imul(U,pe)|0)|0)+((8191&(E=(E=E+Math.imul(U,we)|0)+Math.imul(J,pe)|0))<<13)|0;K=((O=O+Math.imul(J,we)|0)+(E>>>13)|0)+(re>>>26)|0,re&=67108863,S=Math.imul(wt,Fe),E=(E=Math.imul(wt,ie))+Math.imul(Nt,Fe)|0,O=Math.imul(Nt,ie),S=S+Math.imul(ot,ye)|0,E=(E=E+Math.imul(ot,oe)|0)+Math.imul(ft,ye)|0,O=O+Math.imul(ft,oe)|0,S=S+Math.imul(et,Se)|0,E=(E=E+Math.imul(et,fe)|0)+Math.imul(G,Se)|0,O=O+Math.imul(G,fe)|0,S=S+Math.imul(Rt,He)|0,E=(E=E+Math.imul(Rt,le)|0)+Math.imul(Ft,He)|0,O=O+Math.imul(Ft,le)|0,S=S+Math.imul(_t,$e)|0,E=(E=E+Math.imul(_t,me)|0)+Math.imul(St,$e)|0,O=O+Math.imul(St,me)|0,S=S+Math.imul(dt,kt)|0,E=(E=E+Math.imul(dt,Bt)|0)+Math.imul(ht,kt)|0,O=O+Math.imul(ht,Bt)|0,S=S+Math.imul(gt,ae)|0,E=(E=E+Math.imul(gt,Xt)|0)+Math.imul(bt,ae)|0,O=O+Math.imul(bt,Xt)|0,S=S+Math.imul(ut,Wt)|0,E=(E=E+Math.imul(ut,ee)|0)+Math.imul(it,Wt)|0,O=O+Math.imul(it,ee)|0;var Zt=(K+(S=S+Math.imul(N,pe)|0)|0)+((8191&(E=(E=E+Math.imul(N,we)|0)+Math.imul(X,pe)|0))<<13)|0;K=((O=O+Math.imul(X,we)|0)+(E>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,S=Math.imul(wt,ye),E=(E=Math.imul(wt,oe))+Math.imul(Nt,ye)|0,O=Math.imul(Nt,oe),S=S+Math.imul(ot,Se)|0,E=(E=E+Math.imul(ot,fe)|0)+Math.imul(ft,Se)|0,O=O+Math.imul(ft,fe)|0,S=S+Math.imul(et,He)|0,E=(E=E+Math.imul(et,le)|0)+Math.imul(G,He)|0,O=O+Math.imul(G,le)|0,S=S+Math.imul(Rt,$e)|0,E=(E=E+Math.imul(Rt,me)|0)+Math.imul(Ft,$e)|0,O=O+Math.imul(Ft,me)|0,S=S+Math.imul(_t,kt)|0,E=(E=E+Math.imul(_t,Bt)|0)+Math.imul(St,kt)|0,O=O+Math.imul(St,Bt)|0,S=S+Math.imul(dt,ae)|0,E=(E=E+Math.imul(dt,Xt)|0)+Math.imul(ht,ae)|0,O=O+Math.imul(ht,Xt)|0,S=S+Math.imul(gt,Wt)|0,E=(E=E+Math.imul(gt,ee)|0)+Math.imul(bt,Wt)|0,O=O+Math.imul(bt,ee)|0;var Yt=(K+(S=S+Math.imul(ut,pe)|0)|0)+((8191&(E=(E=E+Math.imul(ut,we)|0)+Math.imul(it,pe)|0))<<13)|0;K=((O=O+Math.imul(it,we)|0)+(E>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,S=Math.imul(wt,Se),E=(E=Math.imul(wt,fe))+Math.imul(Nt,Se)|0,O=Math.imul(Nt,fe),S=S+Math.imul(ot,He)|0,E=(E=E+Math.imul(ot,le)|0)+Math.imul(ft,He)|0,O=O+Math.imul(ft,le)|0,S=S+Math.imul(et,$e)|0,E=(E=E+Math.imul(et,me)|0)+Math.imul(G,$e)|0,O=O+Math.imul(G,me)|0,S=S+Math.imul(Rt,kt)|0,E=(E=E+Math.imul(Rt,Bt)|0)+Math.imul(Ft,kt)|0,O=O+Math.imul(Ft,Bt)|0,S=S+Math.imul(_t,ae)|0,E=(E=E+Math.imul(_t,Xt)|0)+Math.imul(St,ae)|0,O=O+Math.imul(St,Xt)|0,S=S+Math.imul(dt,Wt)|0,E=(E=E+Math.imul(dt,ee)|0)+Math.imul(ht,Wt)|0,O=O+Math.imul(ht,ee)|0;var Ae=(K+(S=S+Math.imul(gt,pe)|0)|0)+((8191&(E=(E=E+Math.imul(gt,we)|0)+Math.imul(bt,pe)|0))<<13)|0;K=((O=O+Math.imul(bt,we)|0)+(E>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,S=Math.imul(wt,He),E=(E=Math.imul(wt,le))+Math.imul(Nt,He)|0,O=Math.imul(Nt,le),S=S+Math.imul(ot,$e)|0,E=(E=E+Math.imul(ot,me)|0)+Math.imul(ft,$e)|0,O=O+Math.imul(ft,me)|0,S=S+Math.imul(et,kt)|0,E=(E=E+Math.imul(et,Bt)|0)+Math.imul(G,kt)|0,O=O+Math.imul(G,Bt)|0,S=S+Math.imul(Rt,ae)|0,E=(E=E+Math.imul(Rt,Xt)|0)+Math.imul(Ft,ae)|0,O=O+Math.imul(Ft,Xt)|0,S=S+Math.imul(_t,Wt)|0,E=(E=E+Math.imul(_t,ee)|0)+Math.imul(St,Wt)|0,O=O+Math.imul(St,ee)|0;var be=(K+(S=S+Math.imul(dt,pe)|0)|0)+((8191&(E=(E=E+Math.imul(dt,we)|0)+Math.imul(ht,pe)|0))<<13)|0;K=((O=O+Math.imul(ht,we)|0)+(E>>>13)|0)+(be>>>26)|0,be&=67108863,S=Math.imul(wt,$e),E=(E=Math.imul(wt,me))+Math.imul(Nt,$e)|0,O=Math.imul(Nt,me),S=S+Math.imul(ot,kt)|0,E=(E=E+Math.imul(ot,Bt)|0)+Math.imul(ft,kt)|0,O=O+Math.imul(ft,Bt)|0,S=S+Math.imul(et,ae)|0,E=(E=E+Math.imul(et,Xt)|0)+Math.imul(G,ae)|0,O=O+Math.imul(G,Xt)|0,S=S+Math.imul(Rt,Wt)|0,E=(E=E+Math.imul(Rt,ee)|0)+Math.imul(Ft,Wt)|0,O=O+Math.imul(Ft,ee)|0;var ve=(K+(S=S+Math.imul(_t,pe)|0)|0)+((8191&(E=(E=E+Math.imul(_t,we)|0)+Math.imul(St,pe)|0))<<13)|0;K=((O=O+Math.imul(St,we)|0)+(E>>>13)|0)+(ve>>>26)|0,ve&=67108863,S=Math.imul(wt,kt),E=(E=Math.imul(wt,Bt))+Math.imul(Nt,kt)|0,O=Math.imul(Nt,Bt),S=S+Math.imul(ot,ae)|0,E=(E=E+Math.imul(ot,Xt)|0)+Math.imul(ft,ae)|0,O=O+Math.imul(ft,Xt)|0,S=S+Math.imul(et,Wt)|0,E=(E=E+Math.imul(et,ee)|0)+Math.imul(G,Wt)|0,O=O+Math.imul(G,ee)|0;var ue=(K+(S=S+Math.imul(Rt,pe)|0)|0)+((8191&(E=(E=E+Math.imul(Rt,we)|0)+Math.imul(Ft,pe)|0))<<13)|0;K=((O=O+Math.imul(Ft,we)|0)+(E>>>13)|0)+(ue>>>26)|0,ue&=67108863,S=Math.imul(wt,ae),E=(E=Math.imul(wt,Xt))+Math.imul(Nt,ae)|0,O=Math.imul(Nt,Xt),S=S+Math.imul(ot,Wt)|0,E=(E=E+Math.imul(ot,ee)|0)+Math.imul(ft,Wt)|0,O=O+Math.imul(ft,ee)|0;var ze=(K+(S=S+Math.imul(et,pe)|0)|0)+((8191&(E=(E=E+Math.imul(et,we)|0)+Math.imul(G,pe)|0))<<13)|0;K=((O=O+Math.imul(G,we)|0)+(E>>>13)|0)+(ze>>>26)|0,ze&=67108863,S=Math.imul(wt,Wt),E=(E=Math.imul(wt,ee))+Math.imul(Nt,Wt)|0,O=Math.imul(Nt,ee);var Be=(K+(S=S+Math.imul(ot,pe)|0)|0)+((8191&(E=(E=E+Math.imul(ot,we)|0)+Math.imul(ft,pe)|0))<<13)|0;K=((O=O+Math.imul(ft,we)|0)+(E>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ee=(K+(S=Math.imul(wt,pe))|0)+((8191&(E=(E=Math.imul(wt,we))+Math.imul(Nt,pe)|0))<<13)|0;return K=((O=Math.imul(Nt,we))+(E>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,Y[0]=nr,Y[1]=qe,Y[2]=lr,Y[3]=rr,Y[4]=dr,Y[5]=ct,Y[6]=Tt,Y[7]=zt,Y[8]=Ht,Y[9]=re,Y[10]=Zt,Y[11]=Yt,Y[12]=Ae,Y[13]=be,Y[14]=ve,Y[15]=ue,Y[16]=ze,Y[17]=Be,Y[18]=Ee,K!==0&&(Y[19]=K,x.length++),x};function I(A,g,x){x.negative=g.negative^A.negative,x.length=A.length+g.length;for(var S=0,E=0,O=0;O<x.length-1;O++){var j=E;E=0;for(var B=67108863&S,Y=Math.min(O,g.length-1),K=Math.max(0,O-A.length+1);K<=Y;K++){var nt=O-K,U=(0|A.words[nt])*(0|g.words[K]),J=67108863&U;B=67108863&(J=J+B|0),E+=(j=(j=j+(U/67108864|0)|0)+(J>>>26)|0)>>>26,j&=67108863}x.words[O]=B,S=j,j=E}return S!==0?x.words[O]=S:x.length--,x._strip()}function H(A,g,x){return I(A,g,x)}Math.imul||(C=T),e.prototype.mulTo=function(A,g){var x=this.length+A.length;return this.length===10&&A.length===10?C(this,A,g):x<63?T(this,A,g):x<1024?I(this,A,g):H(this,A,g)},e.prototype.mul=function(A){var g=new e(null);return g.words=new Array(this.length+A.length),this.mulTo(A,g)},e.prototype.mulf=function(A){var g=new e(null);return g.words=new Array(this.length+A.length),H(this,A,g)},e.prototype.imul=function(A){return this.clone().mulTo(A,this)},e.prototype.imuln=function(A){var g=A<0;g&&(A=-A),l(typeof A=="number"),l(A<67108864);for(var x=0,S=0;S<this.length;S++){var E=(0|this.words[S])*A,O=(67108863&E)+(67108863&x);x>>=26,x+=E/67108864|0,x+=O>>>26,this.words[S]=67108863&O}return x!==0&&(this.words[S]=x,this.length++),g?this.ineg():this},e.prototype.muln=function(A){return this.clone().imuln(A)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(A){var g=(function(O){for(var j=new Array(O.bitLength()),B=0;B<j.length;B++){var Y=B/26|0,K=B%26;j[B]=O.words[Y]>>>K&1}return j})(A);if(g.length===0)return new e(1);for(var x=this,S=0;S<g.length&&g[S]===0;S++,x=x.sqr());if(++S<g.length)for(var E=x.sqr();S<g.length;S++,E=E.sqr())g[S]!==0&&(x=x.mul(E));return x},e.prototype.iushln=function(A){l(typeof A=="number"&&A>=0);var g,x=A%26,S=(A-x)/26,E=67108863>>>26-x<<26-x;if(x!==0){var O=0;for(g=0;g<this.length;g++){var j=this.words[g]&E,B=(0|this.words[g])-j<<x;this.words[g]=B|O,O=j>>>26-x}O&&(this.words[g]=O,this.length++)}if(S!==0){for(g=this.length-1;g>=0;g--)this.words[g+S]=this.words[g];for(g=0;g<S;g++)this.words[g]=0;this.length+=S}return this._strip()},e.prototype.ishln=function(A){return l(this.negative===0),this.iushln(A)},e.prototype.iushrn=function(A,g,x){var S;l(typeof A=="number"&&A>=0),S=g?(g-g%26)/26:0;var E=A%26,O=Math.min((A-E)/26,this.length),j=67108863^67108863>>>E<<E,B=x;if(S-=O,S=Math.max(0,S),B){for(var Y=0;Y<O;Y++)B.words[Y]=this.words[Y];B.length=O}if(O!==0)if(this.length>O)for(this.length-=O,Y=0;Y<this.length;Y++)this.words[Y]=this.words[Y+O];else this.words[0]=0,this.length=1;var K=0;for(Y=this.length-1;Y>=0&&(K!==0||Y>=S);Y--){var nt=0|this.words[Y];this.words[Y]=K<<26-E|nt>>>E,K=nt&j}return B&&K!==0&&(B.words[B.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},e.prototype.ishrn=function(A,g,x){return l(this.negative===0),this.iushrn(A,g,x)},e.prototype.shln=function(A){return this.clone().ishln(A)},e.prototype.ushln=function(A){return this.clone().iushln(A)},e.prototype.shrn=function(A){return this.clone().ishrn(A)},e.prototype.ushrn=function(A){return this.clone().iushrn(A)},e.prototype.testn=function(A){l(typeof A=="number"&&A>=0);var g=A%26,x=(A-g)/26,S=1<<g;return!(this.length<=x)&&!!(this.words[x]&S)},e.prototype.imaskn=function(A){l(typeof A=="number"&&A>=0);var g=A%26,x=(A-g)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(g!==0&&x++,this.length=Math.min(x,this.length),g!==0){var S=67108863^67108863>>>g<<g;this.words[this.length-1]&=S}return this._strip()},e.prototype.maskn=function(A){return this.clone().imaskn(A)},e.prototype.iaddn=function(A){return l(typeof A=="number"),l(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<=A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},e.prototype._iaddn=function(A){this.words[0]+=A;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},e.prototype.isubn=function(A){if(l(typeof A=="number"),l(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},e.prototype.addn=function(A){return this.clone().iaddn(A)},e.prototype.subn=function(A){return this.clone().isubn(A)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(A,g,x){var S,E,O=A.length+x;this._expand(O);var j=0;for(S=0;S<A.length;S++){E=(0|this.words[S+x])+j;var B=(0|A.words[S])*g;j=((E-=67108863&B)>>26)-(B/67108864|0),this.words[S+x]=67108863&E}for(;S<this.length-x;S++)j=(E=(0|this.words[S+x])+j)>>26,this.words[S+x]=67108863&E;if(j===0)return this._strip();for(l(j===-1),j=0,S=0;S<this.length;S++)j=(E=-(0|this.words[S])+j)>>26,this.words[S]=67108863&E;return this.negative=1,this._strip()},e.prototype._wordDiv=function(A,g){var x=(this.length,A.length),S=this.clone(),E=A,O=0|E.words[E.length-1];(x=26-this._countBits(O))!==0&&(E=E.ushln(x),S.iushln(x),O=0|E.words[E.length-1]);var j,B=S.length-E.length;if(g!=="mod"){(j=new e(null)).length=B+1,j.words=new Array(j.length);for(var Y=0;Y<j.length;Y++)j.words[Y]=0}var K=S.clone()._ishlnsubmul(E,1,B);K.negative===0&&(S=K,j&&(j.words[B]=1));for(var nt=B-1;nt>=0;nt--){var U=67108864*(0|S.words[E.length+nt])+(0|S.words[E.length+nt-1]);for(U=Math.min(U/O|0,67108863),S._ishlnsubmul(E,U,nt);S.negative!==0;)U--,S.negative=0,S._ishlnsubmul(E,1,nt),S.isZero()||(S.negative^=1);j&&(j.words[nt]=U)}return j&&j._strip(),S._strip(),g!=="div"&&x!==0&&S.iushrn(x),{div:j||null,mod:S}},e.prototype.divmod=function(A,g,x){return l(!A.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&A.negative===0?(O=this.neg().divmod(A,g),g!=="mod"&&(S=O.div.neg()),g!=="div"&&(E=O.mod.neg(),x&&E.negative!==0&&E.iadd(A)),{div:S,mod:E}):this.negative===0&&A.negative!==0?(O=this.divmod(A.neg(),g),g!=="mod"&&(S=O.div.neg()),{div:S,mod:O.mod}):(this.negative&A.negative)!=0?(O=this.neg().divmod(A.neg(),g),g!=="div"&&(E=O.mod.neg(),x&&E.negative!==0&&E.isub(A)),{div:O.div,mod:E}):A.length>this.length||this.cmp(A)<0?{div:new e(0),mod:this}:A.length===1?g==="div"?{div:this.divn(A.words[0]),mod:null}:g==="mod"?{div:null,mod:new e(this.modrn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new e(this.modrn(A.words[0]))}:this._wordDiv(A,g);var S,E,O},e.prototype.div=function(A){return this.divmod(A,"div",!1).div},e.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},e.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},e.prototype.divRound=function(A){var g=this.divmod(A);if(g.mod.isZero())return g.div;var x=g.div.negative!==0?g.mod.isub(A):g.mod,S=A.ushrn(1),E=A.andln(1),O=x.cmp(S);return O<0||E===1&&O===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},e.prototype.modrn=function(A){var g=A<0;g&&(A=-A),l(A<=67108863);for(var x=(1<<26)%A,S=0,E=this.length-1;E>=0;E--)S=(x*S+(0|this.words[E]))%A;return g?-S:S},e.prototype.modn=function(A){return this.modrn(A)},e.prototype.idivn=function(A){var g=A<0;g&&(A=-A),l(A<=67108863);for(var x=0,S=this.length-1;S>=0;S--){var E=(0|this.words[S])+67108864*x;this.words[S]=E/A|0,x=E%A}return this._strip(),g?this.ineg():this},e.prototype.divn=function(A){return this.clone().idivn(A)},e.prototype.egcd=function(A){l(A.negative===0),l(!A.isZero());var g=this,x=A.clone();g=g.negative!==0?g.umod(A):g.clone();for(var S=new e(1),E=new e(0),O=new e(0),j=new e(1),B=0;g.isEven()&&x.isEven();)g.iushrn(1),x.iushrn(1),++B;for(var Y=x.clone(),K=g.clone();!g.isZero();){for(var nt=0,U=1;(g.words[0]&U)==0&&nt<26;++nt,U<<=1);if(nt>0)for(g.iushrn(nt);nt-- >0;)(S.isOdd()||E.isOdd())&&(S.iadd(Y),E.isub(K)),S.iushrn(1),E.iushrn(1);for(var J=0,L=1;(x.words[0]&L)==0&&J<26;++J,L<<=1);if(J>0)for(x.iushrn(J);J-- >0;)(O.isOdd()||j.isOdd())&&(O.iadd(Y),j.isub(K)),O.iushrn(1),j.iushrn(1);g.cmp(x)>=0?(g.isub(x),S.isub(O),E.isub(j)):(x.isub(g),O.isub(S),j.isub(E))}return{a:O,b:j,gcd:x.iushln(B)}},e.prototype._invmp=function(A){l(A.negative===0),l(!A.isZero());var g=this,x=A.clone();g=g.negative!==0?g.umod(A):g.clone();for(var S,E=new e(1),O=new e(0),j=x.clone();g.cmpn(1)>0&&x.cmpn(1)>0;){for(var B=0,Y=1;(g.words[0]&Y)==0&&B<26;++B,Y<<=1);if(B>0)for(g.iushrn(B);B-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var K=0,nt=1;(x.words[0]&nt)==0&&K<26;++K,nt<<=1);if(K>0)for(x.iushrn(K);K-- >0;)O.isOdd()&&O.iadd(j),O.iushrn(1);g.cmp(x)>=0?(g.isub(x),E.isub(O)):(x.isub(g),O.isub(E))}return(S=g.cmpn(1)===0?E:O).cmpn(0)<0&&S.iadd(A),S},e.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var g=this.clone(),x=A.clone();g.negative=0,x.negative=0;for(var S=0;g.isEven()&&x.isEven();S++)g.iushrn(1),x.iushrn(1);for(;;){for(;g.isEven();)g.iushrn(1);for(;x.isEven();)x.iushrn(1);var E=g.cmp(x);if(E<0){var O=g;g=x,x=O}else if(E===0||x.cmpn(1)===0)break;g.isub(x)}return x.iushln(S)},e.prototype.invm=function(A){return this.egcd(A).a.umod(A)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(A){return this.words[0]&A},e.prototype.bincn=function(A){l(typeof A=="number");var g=A%26,x=(A-g)/26,S=1<<g;if(this.length<=x)return this._expand(x+1),this.words[x]|=S,this;for(var E=S,O=x;E!==0&&O<this.length;O++){var j=0|this.words[O];E=(j+=E)>>>26,j&=67108863,this.words[O]=j}return E!==0&&(this.words[O]=E,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(A){var g,x=A<0;if(this.negative!==0&&!x)return-1;if(this.negative===0&&x)return 1;if(this._strip(),this.length>1)g=1;else{x&&(A=-A),l(A<=67108863,"Number is too big");var S=0|this.words[0];g=S===A?0:S<A?-1:1}return this.negative!==0?0|-g:g},e.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var g=this.ucmp(A);return this.negative!==0?0|-g:g},e.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var g=0,x=this.length-1;x>=0;x--){var S=0|this.words[x],E=0|A.words[x];if(S!==E){S<E?g=-1:S>E&&(g=1);break}}return g},e.prototype.gtn=function(A){return this.cmpn(A)===1},e.prototype.gt=function(A){return this.cmp(A)===1},e.prototype.gten=function(A){return this.cmpn(A)>=0},e.prototype.gte=function(A){return this.cmp(A)>=0},e.prototype.ltn=function(A){return this.cmpn(A)===-1},e.prototype.lt=function(A){return this.cmp(A)===-1},e.prototype.lten=function(A){return this.cmpn(A)<=0},e.prototype.lte=function(A){return this.cmp(A)<=0},e.prototype.eqn=function(A){return this.cmpn(A)===0},e.prototype.eq=function(A){return this.cmp(A)===0},e.red=function(A){return new R(A)},e.prototype.toRed=function(A){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},e.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(A){return this.red=A,this},e.prototype.forceRed=function(A){return l(!this.red,"Already a number in reduction context"),this._forceRed(A)},e.prototype.redAdd=function(A){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},e.prototype.redIAdd=function(A){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},e.prototype.redSub=function(A){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},e.prototype.redISub=function(A){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},e.prototype.redShl=function(A){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},e.prototype.redMul=function(A){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},e.prototype.redIMul=function(A){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},e.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(A){return l(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var Z={k256:null,p224:null,p192:null,p25519:null};function P(A,g){this.name=A,this.p=new e(g,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function q(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function V(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function W(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function $(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(A){if(typeof A=="string"){var g=e._prime(A);this.m=g.p,this.prime=g}else l(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function z(A){R.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}P.prototype._tmp=function(){var A=new e(null);return A.words=new Array(Math.ceil(this.n/13)),A},P.prototype.ireduce=function(A){var g,x=A;do this.split(x,this.tmp),g=(x=(x=this.imulK(x)).iadd(this.tmp)).bitLength();while(g>this.n);var S=g<this.n?-1:x.ucmp(this.p);return S===0?(x.words[0]=0,x.length=1):S>0?x.isub(this.p):x.strip!==void 0?x.strip():x._strip(),x},P.prototype.split=function(A,g){A.iushrn(this.n,0,g)},P.prototype.imulK=function(A){return A.imul(this.k)},i(q,P),q.prototype.split=function(A,g){for(var x=Math.min(A.length,9),S=0;S<x;S++)g.words[S]=A.words[S];if(g.length=x,A.length<=9)return A.words[0]=0,void(A.length=1);var E=A.words[9];for(g.words[g.length++]=4194303&E,S=10;S<A.length;S++){var O=0|A.words[S];A.words[S-10]=(4194303&O)<<4|E>>>22,E=O}E>>>=22,A.words[S-10]=E,E===0&&A.length>10?A.length-=10:A.length-=9},q.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var g=0,x=0;x<A.length;x++){var S=0|A.words[x];g+=977*S,A.words[x]=67108863&g,g=64*S+(g/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},i(V,P),i(W,P),i($,P),$.prototype.imulK=function(A){for(var g=0,x=0;x<A.length;x++){var S=19*(0|A.words[x])+g,E=67108863&S;S>>>=26,A.words[x]=E,g=S}return g!==0&&(A.words[A.length++]=g),A},e._prime=function(A){if(Z[A])return Z[A];var g;if(A==="k256")g=new q;else if(A==="p224")g=new V;else if(A==="p192")g=new W;else{if(A!=="p25519")throw new Error("Unknown prime "+A);g=new $}return Z[A]=g,g},R.prototype._verify1=function(A){l(A.negative===0,"red works only with positives"),l(A.red,"red works only with red numbers")},R.prototype._verify2=function(A,g){l((A.negative|g.negative)==0,"red works only with positives"),l(A.red&&A.red===g.red,"red works only with red numbers")},R.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):(p(A,A.umod(this.m)._forceRed(this)),A)},R.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},R.prototype.add=function(A,g){this._verify2(A,g);var x=A.add(g);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},R.prototype.iadd=function(A,g){this._verify2(A,g);var x=A.iadd(g);return x.cmp(this.m)>=0&&x.isub(this.m),x},R.prototype.sub=function(A,g){this._verify2(A,g);var x=A.sub(g);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},R.prototype.isub=function(A,g){this._verify2(A,g);var x=A.isub(g);return x.cmpn(0)<0&&x.iadd(this.m),x},R.prototype.shl=function(A,g){return this._verify1(A),this.imod(A.ushln(g))},R.prototype.imul=function(A,g){return this._verify2(A,g),this.imod(A.imul(g))},R.prototype.mul=function(A,g){return this._verify2(A,g),this.imod(A.mul(g))},R.prototype.isqr=function(A){return this.imul(A,A.clone())},R.prototype.sqr=function(A){return this.mul(A,A)},R.prototype.sqrt=function(A){if(A.isZero())return A.clone();var g=this.m.andln(3);if(l(g%2==1),g===3){var x=this.m.add(new e(1)).iushrn(2);return this.pow(A,x)}for(var S=this.m.subn(1),E=0;!S.isZero()&&S.andln(1)===0;)E++,S.iushrn(1);l(!S.isZero());var O=new e(1).toRed(this),j=O.redNeg(),B=this.m.subn(1).iushrn(1),Y=this.m.bitLength();for(Y=new e(2*Y*Y).toRed(this);this.pow(Y,B).cmp(j)!==0;)Y.redIAdd(j);for(var K=this.pow(Y,S),nt=this.pow(A,S.addn(1).iushrn(1)),U=this.pow(A,S),J=E;U.cmp(O)!==0;){for(var L=U,N=0;L.cmp(O)!==0;N++)L=L.redSqr();l(N<J);var X=this.pow(K,new e(1).iushln(J-N-1));nt=nt.redMul(X),K=X.redSqr(),U=U.redMul(K),J=N}return nt},R.prototype.invm=function(A){var g=A._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},R.prototype.pow=function(A,g){if(g.isZero())return new e(1).toRed(this);if(g.cmpn(1)===0)return A.clone();var x=new Array(16);x[0]=new e(1).toRed(this),x[1]=A;for(var S=2;S<x.length;S++)x[S]=this.mul(x[S-1],A);var E=x[0],O=0,j=0,B=g.bitLength()%26;for(B===0&&(B=26),S=g.length-1;S>=0;S--){for(var Y=g.words[S],K=B-1;K>=0;K--){var nt=Y>>K&1;E!==x[0]&&(E=this.sqr(E)),nt!==0||O!==0?(O<<=1,O|=nt,(++j===4||S===0&&K===0)&&(E=this.mul(E,x[O]),j=0,O=0)):j=0}B=26}return E},R.prototype.convertTo=function(A){var g=A.umod(this.m);return g===A?g.clone():g},R.prototype.convertFrom=function(A){var g=A.clone();return g.red=null,g},e.mont=function(A){return new z(A)},i(z,R),z.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},z.prototype.convertFrom=function(A){var g=this.imod(A.mul(this.rinv));return g.red=null,g},z.prototype.imul=function(A,g){if(A.isZero()||g.isZero())return A.words[0]=0,A.length=1,A;var x=A.imul(g),S=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=x.isub(S).iushrn(this.shift),O=E;return E.cmp(this.m)>=0?O=E.isub(this.m):E.cmpn(0)<0&&(O=E.iadd(this.m)),O._forceRed(this)},z.prototype.mul=function(A,g){if(A.isZero()||g.isZero())return new e(0)._forceRed(this);var x=A.mul(g),S=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=x.isub(S).iushrn(this.shift),O=E;return E.cmp(this.m)>=0?O=E.isub(this.m):E.cmpn(0)<0&&(O=E.iadd(this.m)),O._forceRed(this)},z.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(y===void 0||y)},{buffer:188}],187:[function(r,y,_){var d;function a(i){this.rand=i}if(y.exports=function(i){return d||(d=new a(null)),d.generate(i)},y.exports.Rand=a,a.prototype.generate=function(i){return this._rand(i)},a.prototype._rand=function(i){if(this.rand.getBytes)return this.rand.getBytes(i);for(var e=new Uint8Array(i),s=0;s<e.length;s++)e[s]=this.rand.getByte();return e},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(i){var e=new Uint8Array(i);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(i){var e=new Uint8Array(i);return self.msCrypto.getRandomValues(e),e}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var l=r("crypto");if(typeof l.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(i){return l.randomBytes(i)}}catch{}},{crypto:188}],188:[function(r,y,_){},{}],189:[function(r,y,_){var d=r("safe-buffer").Buffer;function a(u){d.isBuffer(u)||(u=d.from(u));for(var o=u.length/4|0,p=new Array(o),m=0;m<o;m++)p[m]=u.readUInt32BE(4*m);return p}function l(u){for(;0<u.length;u++)u[0]=0}function i(u,o,p,m,f){for(var v,b,T,C,I=p[0],H=p[1],Z=p[2],P=p[3],q=u[0]^o[0],V=u[1]^o[1],W=u[2]^o[2],$=u[3]^o[3],R=4,z=1;z<f;z++)v=I[q>>>24]^H[V>>>16&255]^Z[W>>>8&255]^P[255&$]^o[R++],b=I[V>>>24]^H[W>>>16&255]^Z[$>>>8&255]^P[255&q]^o[R++],T=I[W>>>24]^H[$>>>16&255]^Z[q>>>8&255]^P[255&V]^o[R++],C=I[$>>>24]^H[q>>>16&255]^Z[V>>>8&255]^P[255&W]^o[R++],q=v,V=b,W=T,$=C;return v=(m[q>>>24]<<24|m[V>>>16&255]<<16|m[W>>>8&255]<<8|m[255&$])^o[R++],b=(m[V>>>24]<<24|m[W>>>16&255]<<16|m[$>>>8&255]<<8|m[255&q])^o[R++],T=(m[W>>>24]<<24|m[$>>>16&255]<<16|m[q>>>8&255]<<8|m[255&V])^o[R++],C=(m[$>>>24]<<24|m[q>>>16&255]<<16|m[V>>>8&255]<<8|m[255&W])^o[R++],[v>>>=0,b>>>=0,T>>>=0,C>>>=0]}var e=[0,1,2,4,8,16,32,64,128,27,54],s=(function(){for(var u=new Array(256),o=0;o<256;o++)u[o]=o<128?o<<1:o<<1^283;for(var p=[],m=[],f=[[],[],[],[]],v=[[],[],[],[]],b=0,T=0,C=0;C<256;++C){var I=T^T<<1^T<<2^T<<3^T<<4;I=I>>>8^255&I^99,p[b]=I,m[I]=b;var H=u[b],Z=u[H],P=u[Z],q=257*u[I]^16843008*I;f[0][b]=q<<24|q>>>8,f[1][b]=q<<16|q>>>16,f[2][b]=q<<8|q>>>24,f[3][b]=q,q=16843009*P^65537*Z^257*H^16843008*b,v[0][I]=q<<24|q>>>8,v[1][I]=q<<16|q>>>16,v[2][I]=q<<8|q>>>24,v[3][I]=q,b===0?b=T=1:(b=H^u[u[u[P^H]]],T^=u[u[T]])}return{SBOX:p,INV_SBOX:m,SUB_MIX:f,INV_SUB_MIX:v}})();function c(u){this._key=a(u),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var u=this._key,o=u.length,p=o+6,m=4*(p+1),f=[],v=0;v<o;v++)f[v]=u[v];for(v=o;v<m;v++){var b=f[v-1];v%o==0?(b=b<<8|b>>>24,b=s.SBOX[b>>>24]<<24|s.SBOX[b>>>16&255]<<16|s.SBOX[b>>>8&255]<<8|s.SBOX[255&b],b^=e[v/o|0]<<24):o>6&&v%o==4&&(b=s.SBOX[b>>>24]<<24|s.SBOX[b>>>16&255]<<16|s.SBOX[b>>>8&255]<<8|s.SBOX[255&b]),f[v]=f[v-o]^b}for(var T=[],C=0;C<m;C++){var I=m-C,H=f[I-(C%4?0:4)];T[C]=C<4||I<=4?H:s.INV_SUB_MIX[0][s.SBOX[H>>>24]]^s.INV_SUB_MIX[1][s.SBOX[H>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[H>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&H]]}this._nRounds=p,this._keySchedule=f,this._invKeySchedule=T},c.prototype.encryptBlockRaw=function(u){return i(u=a(u),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(u){var o=this.encryptBlockRaw(u),p=d.allocUnsafe(16);return p.writeUInt32BE(o[0],0),p.writeUInt32BE(o[1],4),p.writeUInt32BE(o[2],8),p.writeUInt32BE(o[3],12),p},c.prototype.decryptBlock=function(u){var o=(u=a(u))[1];u[1]=u[3],u[3]=o;var p=i(u,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),m=d.allocUnsafe(16);return m.writeUInt32BE(p[0],0),m.writeUInt32BE(p[3],4),m.writeUInt32BE(p[2],8),m.writeUInt32BE(p[1],12),m},c.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},y.exports.AES=c},{"safe-buffer":494}],190:[function(r,y,_){var d=r("./aes"),a=r("safe-buffer").Buffer,l=r("cipher-base"),i=r("inherits"),e=r("./ghash"),s=r("buffer-xor"),c=r("./incr32");function u(o,p,m,f){l.call(this);var v=a.alloc(4,0);this._cipher=new d.AES(p);var b=this._cipher.encryptBlock(v);this._ghash=new e(b),m=(function(T,C,I){if(C.length===12)return T._finID=a.concat([C,a.from([0,0,0,1])]),a.concat([C,a.from([0,0,0,2])]);var H=new e(I),Z=C.length,P=Z%16;H.update(C),P&&(P=16-P,H.update(a.alloc(P,0))),H.update(a.alloc(8,0));var q=8*Z,V=a.alloc(8);V.writeUIntBE(q,0,8),H.update(V),T._finID=H.state;var W=a.from(T._finID);return c(W),W})(this,m,b),this._prev=a.from(m),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=f,this._alen=0,this._len=0,this._mode=o,this._authTag=null,this._called=!1}i(u,l),u.prototype._update=function(o){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=a.alloc(p,0),this._ghash.update(p))}this._called=!0;var m=this._mode.encrypt(this,o);return this._decrypt?this._ghash.update(o):this._ghash.update(m),this._len+=o.length,m},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var o=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(p,m){var f=0;p.length!==m.length&&f++;for(var v=Math.min(p.length,m.length),b=0;b<v;++b)f+=p[b]^m[b];return f})(o,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=o,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(o){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=o},u.prototype.setAAD=function(o){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(o),this._alen+=o.length},y.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(r,y,_){var d=r("./encrypter"),a=r("./decrypter"),l=r("./modes/list.json");_.createCipher=_.Cipher=d.createCipher,_.createCipheriv=_.Cipheriv=d.createCipheriv,_.createDecipher=_.Decipher=a.createDecipher,_.createDecipheriv=_.Decipheriv=a.createDecipheriv,_.listCiphers=_.getCiphers=function(){return Object.keys(l)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(r,y,_){var d=r("./authCipher"),a=r("safe-buffer").Buffer,l=r("./modes"),i=r("./streamCipher"),e=r("cipher-base"),s=r("./aes"),c=r("evp_bytestokey");function u(m,f,v){e.call(this),this._cache=new o,this._last=void 0,this._cipher=new s.AES(f),this._prev=a.from(v),this._mode=m,this._autopadding=!0}function o(){this.cache=a.allocUnsafe(0)}function p(m,f,v){var b=l[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=a.from(v)),b.mode!=="GCM"&&v.length!==b.iv)throw new TypeError("invalid iv length "+v.length);if(typeof f=="string"&&(f=a.from(f)),f.length!==b.key/8)throw new TypeError("invalid key length "+f.length);return b.type==="stream"?new i(b.module,f,v,!0):b.type==="auth"?new d(b.module,f,v,!0):new u(b.module,f,v)}r("inherits")(u,e),u.prototype._update=function(m){var f,v;this._cache.add(m);for(var b=[];f=this._cache.get(this._autopadding);)v=this._mode.decrypt(this,f),b.push(v);return a.concat(b)},u.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return(function(f){var v=f[15];if(v<1||v>16)throw new Error("unable to decrypt data");for(var b=-1;++b<v;)if(f[b+(16-v)]!==v)throw new Error("unable to decrypt data");if(v!==16)return f.slice(0,16-v)})(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},o.prototype.add=function(m){this.cache=a.concat([this.cache,m])},o.prototype.get=function(m){var f;if(m){if(this.cache.length>16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f}else if(this.cache.length>=16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f;return null},o.prototype.flush=function(){if(this.cache.length)return this.cache},_.createDecipher=function(m,f){var v=l[m.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var b=c(f,!1,v.key,v.iv);return p(m,b.key,b.iv)},_.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(r,y,_){var d=r("./modes"),a=r("./authCipher"),l=r("safe-buffer").Buffer,i=r("./streamCipher"),e=r("cipher-base"),s=r("./aes"),c=r("evp_bytestokey");function u(f,v,b){e.call(this),this._cache=new p,this._cipher=new s.AES(v),this._prev=l.from(b),this._mode=f,this._autopadding=!0}r("inherits")(u,e),u.prototype._update=function(f){var v,b;this._cache.add(f);for(var T=[];v=this._cache.get();)b=this._mode.encrypt(this,v),T.push(b);return l.concat(T)};var o=l.alloc(16,16);function p(){this.cache=l.allocUnsafe(0)}function m(f,v,b){var T=d[f.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=l.from(v)),v.length!==T.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=l.from(b)),T.mode!=="GCM"&&b.length!==T.iv)throw new TypeError("invalid iv length "+b.length);return T.type==="stream"?new i(T.module,v,b):T.type==="auth"?new a(T.module,v,b):new u(T.module,v,b)}u.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return f=this._mode.encrypt(this,f),this._cipher.scrub(),f;if(!f.equals(o))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this},p.prototype.add=function(f){this.cache=l.concat([this.cache,f])},p.prototype.get=function(){if(this.cache.length>15){var f=this.cache.slice(0,16);return this.cache=this.cache.slice(16),f}return null},p.prototype.flush=function(){for(var f=16-this.cache.length,v=l.allocUnsafe(f),b=-1;++b<f;)v.writeUInt8(f,b);return l.concat([this.cache,v])},_.createCipheriv=m,_.createCipher=function(f,v){var b=d[f.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var T=c(v,!1,b.key,b.iv);return m(f,T.key,T.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(r,y,_){var d=r("safe-buffer").Buffer,a=d.alloc(16,0);function l(e){var s=d.allocUnsafe(16);return s.writeUInt32BE(e[0]>>>0,0),s.writeUInt32BE(e[1]>>>0,4),s.writeUInt32BE(e[2]>>>0,8),s.writeUInt32BE(e[3]>>>0,12),s}function i(e){this.h=e,this.state=d.alloc(16,0),this.cache=d.allocUnsafe(0)}i.prototype.ghash=function(e){for(var s=-1;++s<e.length;)this.state[s]^=e[s];this._multiply()},i.prototype._multiply=function(){for(var e,s,c,u=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],p=-1;++p<128;){for((this.state[~~(p/8)]&1<<7-p%8)!=0&&(o[0]^=u[0],o[1]^=u[1],o[2]^=u[2],o[3]^=u[3]),c=(1&u[3])!=0,s=3;s>0;s--)u[s]=u[s]>>>1|(1&u[s-1])<<31;u[0]=u[0]>>>1,c&&(u[0]=u[0]^225<<24)}this.state=l(o)},i.prototype.update=function(e){var s;for(this.cache=d.concat([this.cache,e]);this.cache.length>=16;)s=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(s)},i.prototype.final=function(e,s){return this.cache.length&&this.ghash(d.concat([this.cache,a],16)),this.ghash(l([0,e,0,s])),this.state},y.exports=i},{"safe-buffer":494}],195:[function(r,y,_){y.exports=function(d){for(var a,l=d.length;l--;){if((a=d.readUInt8(l))!==255){a++,d.writeUInt8(a,l);break}d.writeUInt8(0,l)}}},{}],196:[function(r,y,_){var d=r("buffer-xor");_.encrypt=function(a,l){var i=d(l,a._prev);return a._prev=a._cipher.encryptBlock(i),a._prev},_.decrypt=function(a,l){var i=a._prev;a._prev=l;var e=a._cipher.decryptBlock(l);return d(e,i)}},{"buffer-xor":219}],197:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("buffer-xor");function l(i,e,s){var c=e.length,u=a(e,i._cache);return i._cache=i._cache.slice(c),i._prev=d.concat([i._prev,s?e:u]),u}_.encrypt=function(i,e,s){for(var c,u=d.allocUnsafe(0);e.length;){if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=d.allocUnsafe(0)),!(i._cache.length<=e.length)){u=d.concat([u,l(i,e,s)]);break}c=i._cache.length,u=d.concat([u,l(i,e.slice(0,c),s)]),e=e.slice(c)}return u}},{"buffer-xor":219,"safe-buffer":494}],198:[function(r,y,_){var d=r("safe-buffer").Buffer;function a(i,e,s){for(var c,u,o=-1,p=0;++o<8;)c=e&1<<7-o?128:0,p+=(128&(u=i._cipher.encryptBlock(i._prev)[0]^c))>>o%8,i._prev=l(i._prev,s?c:u);return p}function l(i,e){var s=i.length,c=-1,u=d.allocUnsafe(i.length);for(i=d.concat([i,d.from([e])]);++c<s;)u[c]=i[c]<<1|i[c+1]>>7;return u}_.encrypt=function(i,e,s){for(var c=e.length,u=d.allocUnsafe(c),o=-1;++o<c;)u[o]=a(i,e[o],s);return u}},{"safe-buffer":494}],199:[function(r,y,_){var d=r("safe-buffer").Buffer;function a(l,i,e){var s=l._cipher.encryptBlock(l._prev)[0]^i;return l._prev=d.concat([l._prev.slice(1),d.from([e?i:s])]),s}_.encrypt=function(l,i,e){for(var s=i.length,c=d.allocUnsafe(s),u=-1;++u<s;)c[u]=a(l,i[u],e);return c}},{"safe-buffer":494}],200:[function(r,y,_){var d=r("buffer-xor"),a=r("safe-buffer").Buffer,l=r("../incr32");function i(e){var s=e._cipher.encryptBlockRaw(e._prev);return l(e._prev),s}_.encrypt=function(e,s){var c=Math.ceil(s.length/16),u=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*c)]);for(var o=0;o<c;o++){var p=i(e),m=u+16*o;e._cache.writeUInt32BE(p[0],m+0),e._cache.writeUInt32BE(p[1],m+4),e._cache.writeUInt32BE(p[2],m+8),e._cache.writeUInt32BE(p[3],m+12)}var f=e._cache.slice(0,s.length);return e._cache=e._cache.slice(s.length),d(s,f)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(r,y,_){_.encrypt=function(d,a){return d._cipher.encryptBlock(a)},_.decrypt=function(d,a){return d._cipher.decryptBlock(a)}},{}],202:[function(r,y,_){var d={ECB:r("./ecb"),CBC:r("./cbc"),CFB:r("./cfb"),CFB8:r("./cfb8"),CFB1:r("./cfb1"),OFB:r("./ofb"),CTR:r("./ctr"),GCM:r("./ctr")},a=r("./list.json");for(var l in a)a[l].module=d[a[l].mode];y.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(r,y,_){y.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(r,y,_){(function(d){(function(){var a=r("buffer-xor");function l(i){return i._prev=i._cipher.encryptBlock(i._prev),i._prev}_.encrypt=function(i,e){for(;i._cache.length<e.length;)i._cache=d.concat([i._cache,l(i)]);var s=i._cache.slice(0,e.length);return i._cache=i._cache.slice(e.length),a(e,s)}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(r,y,_){var d=r("./aes"),a=r("safe-buffer").Buffer,l=r("cipher-base");function i(e,s,c,u){l.call(this),this._cipher=new d.AES(s),this._prev=a.from(c),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=u,this._mode=e}r("inherits")(i,l),i.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},y.exports=i},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(r,y,_){var d=r("browserify-des"),a=r("browserify-aes/browser"),l=r("browserify-aes/modes"),i=r("browserify-des/modes"),e=r("evp_bytestokey");function s(u,o,p){if(u=u.toLowerCase(),l[u])return a.createCipheriv(u,o,p);if(i[u])return new d({key:o,iv:p,mode:u});throw new TypeError("invalid suite type")}function c(u,o,p){if(u=u.toLowerCase(),l[u])return a.createDecipheriv(u,o,p);if(i[u])return new d({key:o,iv:p,mode:u,decrypt:!0});throw new TypeError("invalid suite type")}_.createCipher=_.Cipher=function(u,o){var p,m;if(u=u.toLowerCase(),l[u])p=l[u].key,m=l[u].iv;else{if(!i[u])throw new TypeError("invalid suite type");p=8*i[u].key,m=i[u].iv}var f=e(o,!1,p,m);return s(u,f.key,f.iv)},_.createCipheriv=_.Cipheriv=s,_.createDecipher=_.Decipher=function(u,o){var p,m;if(u=u.toLowerCase(),l[u])p=l[u].key,m=l[u].iv;else{if(!i[u])throw new TypeError("invalid suite type");p=8*i[u].key,m=i[u].iv}var f=e(o,!1,p,m);return c(u,f.key,f.iv)},_.createDecipheriv=_.Decipheriv=c,_.listCiphers=_.getCiphers=function(){return Object.keys(i).concat(a.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(r,y,_){var d=r("cipher-base"),a=r("des.js"),l=r("inherits"),i=r("safe-buffer").Buffer,e={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function s(c){d.call(this);var u,o=c.mode.toLowerCase(),p=e[o];u=c.decrypt?"decrypt":"encrypt";var m=c.key;i.isBuffer(m)||(m=i.from(m)),o!=="des-ede"&&o!=="des-ede-cbc"||(m=i.concat([m,m.slice(0,8)]));var f=c.iv;i.isBuffer(f)||(f=i.from(f)),this._des=p.create({key:m,iv:f,type:u})}e.des=e["des-cbc"],e.des3=e["des-ede3-cbc"],y.exports=s,l(s,d),s.prototype._update=function(c){return i.from(this._des.update(c))},s.prototype._final=function(){return i.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(r,y,_){_["des-ecb"]={key:8,iv:0},_["des-cbc"]=_.des={key:8,iv:8},_["des-ede3-cbc"]=_.des3={key:24,iv:8},_["des-ede3"]={key:24,iv:0},_["des-ede-cbc"]={key:16,iv:8},_["des-ede"]={key:16,iv:0}},{}],209:[function(r,y,_){(function(d){(function(){var a=r("bn.js"),l=r("randombytes");function i(s){var c,u=s.modulus.byteLength();do c=new a(l(u));while(c.cmp(s.modulus)>=0||!c.umod(s.prime1)||!c.umod(s.prime2));return c}function e(s,c){var u=(function(Z){var P=i(Z);return{blinder:P.toRed(a.mont(Z.modulus)).redPow(new a(Z.publicExponent)).fromRed(),unblinder:P.invm(Z.modulus)}})(c),o=c.modulus.byteLength(),p=new a(s).mul(u.blinder).umod(c.modulus),m=p.toRed(a.mont(c.prime1)),f=p.toRed(a.mont(c.prime2)),v=c.coefficient,b=c.prime1,T=c.prime2,C=m.redPow(c.exponent1).fromRed(),I=f.redPow(c.exponent2).fromRed(),H=C.isub(I).imul(v).umod(b).imul(T);return I.iadd(H).imul(u.unblinder).umod(c.modulus).toArrayLike(d,"be",o)}e.getr=i,y.exports=e}).call(this)}).call(this,r("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(r,y,_){y.exports=r("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(r,y,_){y.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(r,y,_){y.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("create-hash"),l=r("readable-stream"),i=r("inherits"),e=r("./sign"),s=r("./verify"),c=r("./algorithms.json");function u(f){l.Writable.call(this);var v=c[f];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=a(v.hash),this._tag=v.id,this._signType=v.sign}function o(f){l.Writable.call(this);var v=c[f];if(!v)throw new Error("Unknown message digest");this._hash=a(v.hash),this._tag=v.id,this._signType=v.sign}function p(f){return new u(f)}function m(f){return new o(f)}Object.keys(c).forEach((function(f){c[f].id=d.from(c[f].id,"hex"),c[f.toLowerCase()]=c[f]})),i(u,l.Writable),u.prototype._write=function(f,v,b){this._hash.update(f),b()},u.prototype.update=function(f,v){return typeof f=="string"&&(f=d.from(f,v)),this._hash.update(f),this},u.prototype.sign=function(f,v){this.end();var b=this._hash.digest(),T=e(b,f,this._hashType,this._signType,this._tag);return v?T.toString(v):T},i(o,l.Writable),o.prototype._write=function(f,v,b){this._hash.update(f),b()},o.prototype.update=function(f,v){return typeof f=="string"&&(f=d.from(f,v)),this._hash.update(f),this},o.prototype.verify=function(f,v,b){typeof v=="string"&&(v=d.from(v,b)),this.end();var T=this._hash.digest();return s(v,T,f,this._signType,this._tag)},y.exports={Sign:p,Verify:m,createSign:p,createVerify:m}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("create-hmac"),l=r("browserify-rsa"),i=r("elliptic").ec,e=r("bn.js"),s=r("parse-asn1"),c=r("./curves.json");function u(f,v,b,T){if((f=d.from(f.toArray())).length<v.byteLength()){var C=d.alloc(v.byteLength()-f.length);f=d.concat([C,f])}var I=b.length,H=(function(q,V){q=(q=o(q,V)).mod(V);var W=d.from(q.toArray());if(W.length<V.byteLength()){var $=d.alloc(V.byteLength()-W.length);W=d.concat([$,W])}return W})(b,v),Z=d.alloc(I);Z.fill(1);var P=d.alloc(I);return P=a(T,P).update(Z).update(d.from([0])).update(f).update(H).digest(),Z=a(T,P).update(Z).digest(),{k:P=a(T,P).update(Z).update(d.from([1])).update(f).update(H).digest(),v:Z=a(T,P).update(Z).digest()}}function o(f,v){var b=new e(f),T=(f.length<<3)-v.bitLength();return T>0&&b.ishrn(T),b}function p(f,v,b){var T,C;do{for(T=d.alloc(0);8*T.length<f.bitLength();)v.v=a(b,v.k).update(v.v).digest(),T=d.concat([T,v.v]);C=o(T,f),v.k=a(b,v.k).update(v.v).update(d.from([0])).digest(),v.v=a(b,v.k).update(v.v).digest()}while(C.cmp(f)!==-1);return C}function m(f,v,b,T){return f.toRed(e.mont(b)).redPow(v).fromRed().mod(T)}y.exports=function(f,v,b,T,C){var I=s(v);if(I.curve){if(T!=="ecdsa"&&T!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(q,V){var W=c[V.curve.join(".")];if(!W)throw new Error("unknown curve "+V.curve.join("."));var $=new i(W).keyFromPrivate(V.privateKey).sign(q);return d.from($.toDER())})(f,I)}if(I.type==="dsa"){if(T!=="dsa")throw new Error("wrong private key type");return(function(q,V,W){for(var $,R=V.params.priv_key,z=V.params.p,A=V.params.q,g=V.params.g,x=new e(0),S=o(q,A).mod(A),E=!1,O=u(R,A,q,W);E===!1;)$=p(A,O,W),x=m(g,$,z,A),(E=$.invm(A).imul(S.add(R.mul(x))).mod(A)).cmpn(0)===0&&(E=!1,x=new e(0));return(function(j,B){j=j.toArray(),B=B.toArray(),128&j[0]&&(j=[0].concat(j)),128&B[0]&&(B=[0].concat(B));var Y=[48,j.length+B.length+4,2,j.length];return Y=Y.concat(j,[2,B.length],B),d.from(Y)})(x,E)})(f,I,b)}if(T!=="rsa"&&T!=="ecdsa/rsa")throw new Error("wrong private key type");f=d.concat([C,f]);for(var H=I.modulus.byteLength(),Z=[0,1];f.length+Z.length+1<H;)Z.push(255);Z.push(0);for(var P=-1;++P<f.length;)Z.push(f[P]);return l(Z,I)},y.exports.getKey=u,y.exports.makeKey=p},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("bn.js"),l=r("elliptic").ec,i=r("parse-asn1"),e=r("./curves.json");function s(c,u){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(u)>=u)throw new Error("invalid sig")}y.exports=function(c,u,o,p,m){var f=i(o);if(f.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(Z,P,q){var V=e[q.data.algorithm.curve.join(".")];if(!V)throw new Error("unknown curve "+q.data.algorithm.curve.join("."));var W=new l(V),$=q.data.subjectPrivateKey.data;return W.verify(P,Z,$)})(c,u,f)}if(f.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return(function(Z,P,q){var V=q.data.p,W=q.data.q,$=q.data.g,R=q.data.pub_key,z=i.signature.decode(Z,"der"),A=z.s,g=z.r;s(A,W),s(g,W);var x=a.mont(V),S=A.invm(W);return $.toRed(x).redPow(new a(P).mul(S).mod(W)).fromRed().mul(R.toRed(x).redPow(g.mul(S).mod(W)).fromRed()).mod(V).mod(W).cmp(g)===0})(c,u,f)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");u=d.concat([m,u]);for(var v=f.modulus.byteLength(),b=[1],T=0;u.length+b.length+2<v;)b.push(255),T++;b.push(0);for(var C=-1;++C<u.length;)b.push(u[C]);b=d.from(b);var I=a.mont(f.modulus);c=(c=new a(c).toRed(I)).redPow(new a(f.publicExponent)),c=d.from(c.fromRed().toArray());var H=T<8?1:0;for(v=Math.min(c.length,b.length),c.length!==b.length&&(H=1),C=-1;++C<v;)H|=c[C]^b[C];return H===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(r,y,_){},{}],217:[function(r,y,_){var d=r("buffer"),a=d.Buffer;function l(e,s){for(var c in e)s[c]=e[c]}function i(e,s,c){return a(e,s,c)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?y.exports=d:(l(d,_),_.Buffer=i),l(a,i),i.from=function(e,s,c){if(typeof e=="number")throw new TypeError("Argument must not be a number");return a(e,s,c)},i.alloc=function(e,s,c){if(typeof e!="number")throw new TypeError("Argument must be a number");var u=a(e);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},i.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(e)}},{buffer:220}],218:[function(r,y,_){var d=r("safe-buffer").Buffer,a=d.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(f){var v;switch(this.encoding=(function(b){var T=(function(C){if(!C)return"utf8";for(var I;;)switch(C){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return C;default:if(I)return;C=(""+C).toLowerCase(),I=!0}})(b);if(typeof T!="string"&&(d.isEncoding===a||!a(b)))throw new Error("Unknown encoding: "+b);return T||b})(f),this.encoding){case"utf16le":this.text=s,this.end=c,v=4;break;case"utf8":this.fillLast=e,v=4;break;case"base64":this.text=u,this.end=o,v=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(v)}function i(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function e(f){var v=this.lastTotal-this.lastNeed,b=(function(T,C,I){if((192&C[0])!=128)return T.lastNeed=0,"�";if(T.lastNeed>1&&C.length>1){if((192&C[1])!=128)return T.lastNeed=1,"�";if(T.lastNeed>2&&C.length>2&&(192&C[2])!=128)return T.lastNeed=2,"�"}})(this,f);return b!==void 0?b:this.lastNeed<=f.length?(f.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,v,0,f.length),void(this.lastNeed-=f.length))}function s(f,v){if((f.length-v)%2==0){var b=f.toString("utf16le",v);if(b){var T=b.charCodeAt(b.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",v,f.length-1)}function c(f){var v=f&&f.length?this.write(f):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function u(f,v){var b=(f.length-v)%3;return b===0?f.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",v,f.length-b))}function o(f){var v=f&&f.length?this.write(f):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function p(f){return f.toString(this.encoding)}function m(f){return f&&f.length?this.write(f):""}_.StringDecoder=l,l.prototype.write=function(f){if(f.length===0)return"";var v,b;if(this.lastNeed){if((v=this.fillLast(f))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<f.length?v?v+this.text(f,b):this.text(f,b):v||""},l.prototype.end=function(f){var v=f&&f.length?this.write(f):"";return this.lastNeed?v+"�":v},l.prototype.text=function(f,v){var b=(function(C,I,H){var Z=I.length-1;if(Z<H)return 0;var P=i(I[Z]);return P>=0?(P>0&&(C.lastNeed=P-1),P):--Z<H||P===-2?0:(P=i(I[Z]))>=0?(P>0&&(C.lastNeed=P-2),P):--Z<H||P===-2?0:(P=i(I[Z]))>=0?(P>0&&(P===2?P=0:C.lastNeed=P-3),P):0})(this,f,v);if(!this.lastNeed)return f.toString("utf8",v);this.lastTotal=b;var T=f.length-(b-this.lastNeed);return f.copy(this.lastChar,0,T),f.toString("utf8",v,T)},l.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},{"safe-buffer":217}],219:[function(r,y,_){(function(d){(function(){y.exports=function(a,l){for(var i=Math.min(a.length,l.length),e=new d(i),s=0;s<i;++s)e[s]=a[s]^l[s];return e}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],220:[function(r,y,_){(function(d){(function(){var a=r("base64-js"),l=r("ieee754");_.Buffer=e,_.SlowBuffer=function(L){return+L!=L&&(L=0),e.alloc(+L)},_.INSPECT_MAX_BYTES=50;function i(L){if(L>2147483647)throw new RangeError('The value "'+L+'" is invalid for option "size"');var N=new Uint8Array(L);return N.__proto__=e.prototype,N}function e(L,N,X){if(typeof L=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(L)}return s(L,N,X)}function s(L,N,X){if(typeof L=="string")return(function(it,lt){if(typeof lt=="string"&<!==""||(lt="utf8"),!e.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);var gt=0|m(it,lt),bt=i(gt),st=bt.write(it,lt);return st!==gt&&(bt=bt.slice(0,st)),bt})(L,N);if(ArrayBuffer.isView(L))return o(L);if(L==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(U(L,ArrayBuffer)||L&&U(L.buffer,ArrayBuffer))return(function(it,lt,gt){if(lt<0||it.byteLength<lt)throw new RangeError('"offset" is outside of buffer bounds');if(it.byteLength<lt+(gt||0))throw new RangeError('"length" is outside of buffer bounds');var bt;return bt=lt===void 0&>===void 0?new Uint8Array(it):gt===void 0?new Uint8Array(it,lt):new Uint8Array(it,lt,gt),bt.__proto__=e.prototype,bt})(L,N,X);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var rt=L.valueOf&&L.valueOf();if(rt!=null&&rt!==L)return e.from(rt,N,X);var ut=(function(it){if(e.isBuffer(it)){var lt=0|p(it.length),gt=i(lt);return gt.length===0||it.copy(gt,0,0,lt),gt}if(it.length!==void 0)return typeof it.length!="number"||J(it.length)?i(0):o(it);if(it.type==="Buffer"&&Array.isArray(it.data))return o(it.data)})(L);if(ut)return ut;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return e.from(L[Symbol.toPrimitive]("string"),N,X);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function c(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function u(L){return c(L),i(L<0?0:0|p(L))}function o(L){for(var N=L.length<0?0:0|p(L.length),X=i(N),rt=0;rt<N;rt+=1)X[rt]=255&L[rt];return X}function p(L){if(L>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|L}function m(L,N){if(e.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||U(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var X=L.length,rt=arguments.length>2&&arguments[2]===!0;if(!rt&&X===0)return 0;for(var ut=!1;;)switch(N){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":return Y(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*X;case"hex":return X>>>1;case"base64":return K(L).length;default:if(ut)return rt?-1:Y(L).length;N=(""+N).toLowerCase(),ut=!0}}function f(L,N,X){var rt=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0)<=(N>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return z(this,N,X);case"utf8":case"utf-8":return W(this,N,X);case"ascii":return $(this,N,X);case"latin1":case"binary":return R(this,N,X);case"base64":return V(this,N,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,N,X);default:if(rt)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),rt=!0}}function v(L,N,X){var rt=L[N];L[N]=L[X],L[X]=rt}function b(L,N,X,rt,ut){if(L.length===0)return-1;if(typeof X=="string"?(rt=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),J(X=+X)&&(X=ut?0:L.length-1),X<0&&(X=L.length+X),X>=L.length){if(ut)return-1;X=L.length-1}else if(X<0){if(!ut)return-1;X=0}if(typeof N=="string"&&(N=e.from(N,rt)),e.isBuffer(N))return N.length===0?-1:T(L,N,X,rt,ut);if(typeof N=="number")return N&=255,typeof Uint8Array.prototype.indexOf=="function"?ut?Uint8Array.prototype.indexOf.call(L,N,X):Uint8Array.prototype.lastIndexOf.call(L,N,X):T(L,[N],X,rt,ut);throw new TypeError("val must be string, number or Buffer")}function T(L,N,X,rt,ut){var it,lt=1,gt=L.length,bt=N.length;if(rt!==void 0&&((rt=String(rt).toLowerCase())==="ucs2"||rt==="ucs-2"||rt==="utf16le"||rt==="utf-16le")){if(L.length<2||N.length<2)return-1;lt=2,gt/=2,bt/=2,X/=2}function st(_t,St){return lt===1?_t[St]:_t.readUInt16BE(St*lt)}if(ut){var dt=-1;for(it=X;it<gt;it++)if(st(L,it)===st(N,dt===-1?0:it-dt)){if(dt===-1&&(dt=it),it-dt+1===bt)return dt*lt}else dt!==-1&&(it-=it-dt),dt=-1}else for(X+bt>gt&&(X=gt-bt),it=X;it>=0;it--){for(var ht=!0,xt=0;xt<bt;xt++)if(st(L,it+xt)!==st(N,xt)){ht=!1;break}if(ht)return it}return-1}function C(L,N,X,rt){X=Number(X)||0;var ut=L.length-X;rt?(rt=Number(rt))>ut&&(rt=ut):rt=ut;var it=N.length;rt>it/2&&(rt=it/2);for(var lt=0;lt<rt;++lt){var gt=parseInt(N.substr(2*lt,2),16);if(J(gt))return lt;L[X+lt]=gt}return lt}function I(L,N,X,rt){return nt(Y(N,L.length-X),L,X,rt)}function H(L,N,X,rt){return nt((function(ut){for(var it=[],lt=0;lt<ut.length;++lt)it.push(255&ut.charCodeAt(lt));return it})(N),L,X,rt)}function Z(L,N,X,rt){return H(L,N,X,rt)}function P(L,N,X,rt){return nt(K(N),L,X,rt)}function q(L,N,X,rt){return nt((function(ut,it){for(var lt,gt,bt,st=[],dt=0;dt<ut.length&&!((it-=2)<0);++dt)lt=ut.charCodeAt(dt),gt=lt>>8,bt=lt%256,st.push(bt),st.push(gt);return st})(N,L.length-X),L,X,rt)}function V(L,N,X){return N===0&&X===L.length?a.fromByteArray(L):a.fromByteArray(L.slice(N,X))}function W(L,N,X){X=Math.min(L.length,X);for(var rt=[],ut=N;ut<X;){var it,lt,gt,bt,st=L[ut],dt=null,ht=st>239?4:st>223?3:st>191?2:1;if(ut+ht<=X)switch(ht){case 1:st<128&&(dt=st);break;case 2:(192&(it=L[ut+1]))==128&&(bt=(31&st)<<6|63&it)>127&&(dt=bt);break;case 3:it=L[ut+1],lt=L[ut+2],(192&it)==128&&(192<)==128&&(bt=(15&st)<<12|(63&it)<<6|63<)>2047&&(bt<55296||bt>57343)&&(dt=bt);break;case 4:it=L[ut+1],lt=L[ut+2],gt=L[ut+3],(192&it)==128&&(192<)==128&&(192>)==128&&(bt=(15&st)<<18|(63&it)<<12|(63<)<<6|63>)>65535&&bt<1114112&&(dt=bt)}dt===null?(dt=65533,ht=1):dt>65535&&(dt-=65536,rt.push(dt>>>10&1023|55296),dt=56320|1023&dt),rt.push(dt),ut+=ht}return(function(xt){var _t=xt.length;if(_t<=4096)return String.fromCharCode.apply(String,xt);for(var St="",Ot=0;Ot<_t;)St+=String.fromCharCode.apply(String,xt.slice(Ot,Ot+=4096));return St})(rt)}_.kMaxLength=2147483647,e.TYPED_ARRAY_SUPPORT=(function(){try{var L=new Uint8Array(1);return L.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},L.foo()===42}catch{return!1}})(),e.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(L,N,X){return s(L,N,X)},e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,e.alloc=function(L,N,X){return(function(rt,ut,it){return c(rt),rt<=0?i(rt):ut!==void 0?typeof it=="string"?i(rt).fill(ut,it):i(rt).fill(ut):i(rt)})(L,N,X)},e.allocUnsafe=function(L){return u(L)},e.allocUnsafeSlow=function(L){return u(L)},e.isBuffer=function(L){return L!=null&&L._isBuffer===!0&&L!==e.prototype},e.compare=function(L,N){if(U(L,Uint8Array)&&(L=e.from(L,L.offset,L.byteLength)),U(N,Uint8Array)&&(N=e.from(N,N.offset,N.byteLength)),!e.isBuffer(L)||!e.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(L===N)return 0;for(var X=L.length,rt=N.length,ut=0,it=Math.min(X,rt);ut<it;++ut)if(L[ut]!==N[ut]){X=L[ut],rt=N[ut];break}return X<rt?-1:rt<X?1:0},e.isEncoding=function(L){switch(String(L).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(L,N){if(!Array.isArray(L))throw new TypeError('"list" argument must be an Array of Buffers');if(L.length===0)return e.alloc(0);var X;if(N===void 0)for(N=0,X=0;X<L.length;++X)N+=L[X].length;var rt=e.allocUnsafe(N),ut=0;for(X=0;X<L.length;++X){var it=L[X];if(U(it,Uint8Array)&&(it=e.from(it)),!e.isBuffer(it))throw new TypeError('"list" argument must be an Array of Buffers');it.copy(rt,ut),ut+=it.length}return rt},e.byteLength=m,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N<L;N+=2)v(this,N,N+1);return this},e.prototype.swap32=function(){var L=this.length;if(L%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var N=0;N<L;N+=4)v(this,N,N+3),v(this,N+1,N+2);return this},e.prototype.swap64=function(){var L=this.length;if(L%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var N=0;N<L;N+=8)v(this,N,N+7),v(this,N+1,N+6),v(this,N+2,N+5),v(this,N+3,N+4);return this},e.prototype.toString=function(){var L=this.length;return L===0?"":arguments.length===0?W(this,0,L):f.apply(this,arguments)},e.prototype.toLocaleString=e.prototype.toString,e.prototype.equals=function(L){if(!e.isBuffer(L))throw new TypeError("Argument must be a Buffer");return this===L||e.compare(this,L)===0},e.prototype.inspect=function(){var L="",N=_.INSPECT_MAX_BYTES;return L=this.toString("hex",0,N).replace(/(.{2})/g,"$1 ").trim(),this.length>N&&(L+=" ... "),"<Buffer "+L+">"},e.prototype.compare=function(L,N,X,rt,ut){if(U(L,Uint8Array)&&(L=e.from(L,L.offset,L.byteLength)),!e.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(N===void 0&&(N=0),X===void 0&&(X=L?L.length:0),rt===void 0&&(rt=0),ut===void 0&&(ut=this.length),N<0||X>L.length||rt<0||ut>this.length)throw new RangeError("out of range index");if(rt>=ut&&N>=X)return 0;if(rt>=ut)return-1;if(N>=X)return 1;if(this===L)return 0;for(var it=(ut>>>=0)-(rt>>>=0),lt=(X>>>=0)-(N>>>=0),gt=Math.min(it,lt),bt=this.slice(rt,ut),st=L.slice(N,X),dt=0;dt<gt;++dt)if(bt[dt]!==st[dt]){it=bt[dt],lt=st[dt];break}return it<lt?-1:lt<it?1:0},e.prototype.includes=function(L,N,X){return this.indexOf(L,N,X)!==-1},e.prototype.indexOf=function(L,N,X){return b(this,L,N,X,!0)},e.prototype.lastIndexOf=function(L,N,X){return b(this,L,N,X,!1)},e.prototype.write=function(L,N,X,rt){if(N===void 0)rt="utf8",X=this.length,N=0;else if(X===void 0&&typeof N=="string")rt=N,X=this.length,N=0;else{if(!isFinite(N))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");N>>>=0,isFinite(X)?(X>>>=0,rt===void 0&&(rt="utf8")):(rt=X,X=void 0)}var ut=this.length-N;if((X===void 0||X>ut)&&(X=ut),L.length>0&&(X<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");rt||(rt="utf8");for(var it=!1;;)switch(rt){case"hex":return C(this,L,N,X);case"utf8":case"utf-8":return I(this,L,N,X);case"ascii":return H(this,L,N,X);case"latin1":case"binary":return Z(this,L,N,X);case"base64":return P(this,L,N,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,L,N,X);default:if(it)throw new TypeError("Unknown encoding: "+rt);rt=(""+rt).toLowerCase(),it=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(L,N,X){var rt="";X=Math.min(L.length,X);for(var ut=N;ut<X;++ut)rt+=String.fromCharCode(127&L[ut]);return rt}function R(L,N,X){var rt="";X=Math.min(L.length,X);for(var ut=N;ut<X;++ut)rt+=String.fromCharCode(L[ut]);return rt}function z(L,N,X){var rt=L.length;(!N||N<0)&&(N=0),(!X||X<0||X>rt)&&(X=rt);for(var ut="",it=N;it<X;++it)ut+=B(L[it]);return ut}function A(L,N,X){for(var rt=L.slice(N,X),ut="",it=0;it<rt.length;it+=2)ut+=String.fromCharCode(rt[it]+256*rt[it+1]);return ut}function g(L,N,X){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+N>X)throw new RangeError("Trying to access beyond buffer length")}function x(L,N,X,rt,ut,it){if(!e.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>ut||N<it)throw new RangeError('"value" argument is out of bounds');if(X+rt>L.length)throw new RangeError("Index out of range")}function S(L,N,X,rt,ut,it){if(X+rt>L.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function E(L,N,X,rt,ut){return N=+N,X>>>=0,ut||S(L,0,X,4),l.write(L,N,X,rt,23,4),X+4}function O(L,N,X,rt,ut){return N=+N,X>>>=0,ut||S(L,0,X,8),l.write(L,N,X,rt,52,8),X+8}e.prototype.slice=function(L,N){var X=this.length;(L=~~L)<0?(L+=X)<0&&(L=0):L>X&&(L=X),(N=N===void 0?X:~~N)<0?(N+=X)<0&&(N=0):N>X&&(N=X),N<L&&(N=L);var rt=this.subarray(L,N);return rt.__proto__=e.prototype,rt},e.prototype.readUIntLE=function(L,N,X){L>>>=0,N>>>=0,X||g(L,N,this.length);for(var rt=this[L],ut=1,it=0;++it<N&&(ut*=256);)rt+=this[L+it]*ut;return rt},e.prototype.readUIntBE=function(L,N,X){L>>>=0,N>>>=0,X||g(L,N,this.length);for(var rt=this[L+--N],ut=1;N>0&&(ut*=256);)rt+=this[L+--N]*ut;return rt},e.prototype.readUInt8=function(L,N){return L>>>=0,N||g(L,1,this.length),this[L]},e.prototype.readUInt16LE=function(L,N){return L>>>=0,N||g(L,2,this.length),this[L]|this[L+1]<<8},e.prototype.readUInt16BE=function(L,N){return L>>>=0,N||g(L,2,this.length),this[L]<<8|this[L+1]},e.prototype.readUInt32LE=function(L,N){return L>>>=0,N||g(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},e.prototype.readUInt32BE=function(L,N){return L>>>=0,N||g(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},e.prototype.readIntLE=function(L,N,X){L>>>=0,N>>>=0,X||g(L,N,this.length);for(var rt=this[L],ut=1,it=0;++it<N&&(ut*=256);)rt+=this[L+it]*ut;return rt>=(ut*=128)&&(rt-=Math.pow(2,8*N)),rt},e.prototype.readIntBE=function(L,N,X){L>>>=0,N>>>=0,X||g(L,N,this.length);for(var rt=N,ut=1,it=this[L+--rt];rt>0&&(ut*=256);)it+=this[L+--rt]*ut;return it>=(ut*=128)&&(it-=Math.pow(2,8*N)),it},e.prototype.readInt8=function(L,N){return L>>>=0,N||g(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},e.prototype.readInt16LE=function(L,N){L>>>=0,N||g(L,2,this.length);var X=this[L]|this[L+1]<<8;return 32768&X?4294901760|X:X},e.prototype.readInt16BE=function(L,N){L>>>=0,N||g(L,2,this.length);var X=this[L+1]|this[L]<<8;return 32768&X?4294901760|X:X},e.prototype.readInt32LE=function(L,N){return L>>>=0,N||g(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},e.prototype.readInt32BE=function(L,N){return L>>>=0,N||g(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},e.prototype.readFloatLE=function(L,N){return L>>>=0,N||g(L,4,this.length),l.read(this,L,!0,23,4)},e.prototype.readFloatBE=function(L,N){return L>>>=0,N||g(L,4,this.length),l.read(this,L,!1,23,4)},e.prototype.readDoubleLE=function(L,N){return L>>>=0,N||g(L,8,this.length),l.read(this,L,!0,52,8)},e.prototype.readDoubleBE=function(L,N){return L>>>=0,N||g(L,8,this.length),l.read(this,L,!1,52,8)},e.prototype.writeUIntLE=function(L,N,X,rt){L=+L,N>>>=0,X>>>=0,rt||x(this,L,N,X,Math.pow(2,8*X)-1,0);var ut=1,it=0;for(this[N]=255&L;++it<X&&(ut*=256);)this[N+it]=L/ut&255;return N+X},e.prototype.writeUIntBE=function(L,N,X,rt){L=+L,N>>>=0,X>>>=0,rt||x(this,L,N,X,Math.pow(2,8*X)-1,0);var ut=X-1,it=1;for(this[N+ut]=255&L;--ut>=0&&(it*=256);)this[N+ut]=L/it&255;return N+X},e.prototype.writeUInt8=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,1,255,0),this[N]=255&L,N+1},e.prototype.writeUInt16LE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,2,65535,0),this[N]=255&L,this[N+1]=L>>>8,N+2},e.prototype.writeUInt16BE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,2,65535,0),this[N]=L>>>8,this[N+1]=255&L,N+2},e.prototype.writeUInt32LE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,4,4294967295,0),this[N+3]=L>>>24,this[N+2]=L>>>16,this[N+1]=L>>>8,this[N]=255&L,N+4},e.prototype.writeUInt32BE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,4,4294967295,0),this[N]=L>>>24,this[N+1]=L>>>16,this[N+2]=L>>>8,this[N+3]=255&L,N+4},e.prototype.writeIntLE=function(L,N,X,rt){if(L=+L,N>>>=0,!rt){var ut=Math.pow(2,8*X-1);x(this,L,N,X,ut-1,-ut)}var it=0,lt=1,gt=0;for(this[N]=255&L;++it<X&&(lt*=256);)L<0&>===0&&this[N+it-1]!==0&&(gt=1),this[N+it]=(L/lt>>0)-gt&255;return N+X},e.prototype.writeIntBE=function(L,N,X,rt){if(L=+L,N>>>=0,!rt){var ut=Math.pow(2,8*X-1);x(this,L,N,X,ut-1,-ut)}var it=X-1,lt=1,gt=0;for(this[N+it]=255&L;--it>=0&&(lt*=256);)L<0&>===0&&this[N+it+1]!==0&&(gt=1),this[N+it]=(L/lt>>0)-gt&255;return N+X},e.prototype.writeInt8=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,1,127,-128),L<0&&(L=255+L+1),this[N]=255&L,N+1},e.prototype.writeInt16LE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,2,32767,-32768),this[N]=255&L,this[N+1]=L>>>8,N+2},e.prototype.writeInt16BE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,2,32767,-32768),this[N]=L>>>8,this[N+1]=255&L,N+2},e.prototype.writeInt32LE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,4,2147483647,-2147483648),this[N]=255&L,this[N+1]=L>>>8,this[N+2]=L>>>16,this[N+3]=L>>>24,N+4},e.prototype.writeInt32BE=function(L,N,X){return L=+L,N>>>=0,X||x(this,L,N,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[N]=L>>>24,this[N+1]=L>>>16,this[N+2]=L>>>8,this[N+3]=255&L,N+4},e.prototype.writeFloatLE=function(L,N,X){return E(this,L,N,!0,X)},e.prototype.writeFloatBE=function(L,N,X){return E(this,L,N,!1,X)},e.prototype.writeDoubleLE=function(L,N,X){return O(this,L,N,!0,X)},e.prototype.writeDoubleBE=function(L,N,X){return O(this,L,N,!1,X)},e.prototype.copy=function(L,N,X,rt){if(!e.isBuffer(L))throw new TypeError("argument should be a Buffer");if(X||(X=0),rt||rt===0||(rt=this.length),N>=L.length&&(N=L.length),N||(N=0),rt>0&&rt<X&&(rt=X),rt===X||L.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("Index out of range");if(rt<0)throw new RangeError("sourceEnd out of bounds");rt>this.length&&(rt=this.length),L.length-N<rt-X&&(rt=L.length-N+X);var ut=rt-X;if(this===L&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(N,X,rt);else if(this===L&&X<N&&N<rt)for(var it=ut-1;it>=0;--it)L[it+N]=this[it+X];else Uint8Array.prototype.set.call(L,this.subarray(X,rt),N);return ut},e.prototype.fill=function(L,N,X,rt){if(typeof L=="string"){if(typeof N=="string"?(rt=N,N=0,X=this.length):typeof X=="string"&&(rt=X,X=this.length),rt!==void 0&&typeof rt!="string")throw new TypeError("encoding must be a string");if(typeof rt=="string"&&!e.isEncoding(rt))throw new TypeError("Unknown encoding: "+rt);if(L.length===1){var ut=L.charCodeAt(0);(rt==="utf8"&&ut<128||rt==="latin1")&&(L=ut)}}else typeof L=="number"&&(L&=255);if(N<0||this.length<N||this.length<X)throw new RangeError("Out of range index");if(X<=N)return this;var it;if(N>>>=0,X=X===void 0?this.length:X>>>0,L||(L=0),typeof L=="number")for(it=N;it<X;++it)this[it]=L;else{var lt=e.isBuffer(L)?L:e.from(L,rt),gt=lt.length;if(gt===0)throw new TypeError('The value "'+L+'" is invalid for argument "value"');for(it=0;it<X-N;++it)this[it+N]=lt[it%gt]}return this};var j=/[^+/0-9A-Za-z-_]/g;function B(L){return L<16?"0"+L.toString(16):L.toString(16)}function Y(L,N){var X;N=N||1/0;for(var rt=L.length,ut=null,it=[],lt=0;lt<rt;++lt){if((X=L.charCodeAt(lt))>55295&&X<57344){if(!ut){if(X>56319){(N-=3)>-1&&it.push(239,191,189);continue}if(lt+1===rt){(N-=3)>-1&&it.push(239,191,189);continue}ut=X;continue}if(X<56320){(N-=3)>-1&&it.push(239,191,189),ut=X;continue}X=65536+(ut-55296<<10|X-56320)}else ut&&(N-=3)>-1&&it.push(239,191,189);if(ut=null,X<128){if((N-=1)<0)break;it.push(X)}else if(X<2048){if((N-=2)<0)break;it.push(X>>6|192,63&X|128)}else if(X<65536){if((N-=3)<0)break;it.push(X>>12|224,X>>6&63|128,63&X|128)}else{if(!(X<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;it.push(X>>18|240,X>>12&63|128,X>>6&63|128,63&X|128)}}return it}function K(L){return a.toByteArray((function(N){if((N=(N=N.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N})(L))}function nt(L,N,X,rt){for(var ut=0;ut<rt&&!(ut+X>=N.length||ut>=L.length);++ut)N[ut+X]=L[ut];return ut}function U(L,N){return L instanceof N||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===N.name}function J(L){return L!=L}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("stream").Transform,l=r("string_decoder").StringDecoder;function i(e){a.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r("inherits")(i,a),i.prototype.update=function(e,s,c){typeof e=="string"&&(e=d.from(e,s));var u=this._update(e);return this.hashMode?this:(c&&(u=this._toString(u,c)),u)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},i.prototype._transform=function(e,s,c){var u;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(o){u=o}finally{c(u)}},i.prototype._flush=function(e){var s;try{this.push(this.__final())}catch(c){s=c}e(s)},i.prototype._finalOrDigest=function(e){var s=this.__final()||d.alloc(0);return e&&(s=this._toString(s,e,!0)),s},i.prototype._toString=function(e,s,c){if(this._decoder||(this._decoder=new l(s),this._encoding=s),this._encoding!==s)throw new Error("can't switch encodings");var u=this._decoder.write(e);return c&&(u+=this._decoder.end()),u},y.exports=i},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(r,y,_){var d=r("../internals/is-callable"),a=r("../internals/try-to-string"),l=TypeError;y.exports=function(i){if(d(i))return i;throw new l(a(i)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(r,y,_){var d=r("../internals/is-constructor"),a=r("../internals/try-to-string"),l=TypeError;y.exports=function(i){if(d(i))return i;throw new l(a(i)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(r,y,_){var d=r("../internals/is-callable"),a=String,l=TypeError;y.exports=function(i){if(typeof i=="object"||d(i))return i;throw new l("Can't set "+a(i)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(r,y,_){var d=r("../internals/well-known-symbol"),a=r("../internals/object-create"),l=r("../internals/object-define-property").f,i=d("unscopables"),e=Array.prototype;e[i]===void 0&&l(e,i,{configurable:!0,value:a(null)}),y.exports=function(s){e[i][s]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(r,y,_){var d=r("../internals/object-is-prototype-of"),a=TypeError;y.exports=function(l,i){if(d(i,l))return l;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(r,y,_){var d=r("../internals/is-object"),a=String,l=TypeError;y.exports=function(i){if(d(i))return i;throw new l(a(i)+" is not an object")}},{"../internals/is-object":289}],228:[function(r,y,_){var d=r("../internals/to-indexed-object"),a=r("../internals/to-absolute-index"),l=r("../internals/length-of-array-like"),i=function(e){return function(s,c,u){var o,p=d(s),m=l(p),f=a(u,m);if(e&&c!=c){for(;m>f;)if((o=p[f++])!=o)return!0}else for(;m>f;f++)if((e||f in p)&&p[f]===c)return e||f||0;return!e&&-1}};y.exports={includes:i(!0),indexOf:i(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(r,y,_){var d=r("../internals/function-bind-context"),a=r("../internals/function-uncurry-this"),l=r("../internals/indexed-object"),i=r("../internals/to-object"),e=r("../internals/length-of-array-like"),s=r("../internals/array-species-create"),c=a([].push),u=function(o){var p=o===1,m=o===2,f=o===3,v=o===4,b=o===6,T=o===7,C=o===5||b;return function(I,H,Z,P){for(var q,V,W=i(I),$=l(W),R=d(H,Z),z=e($),A=0,g=P||s,x=p?g(I,z):m||T?g(I,0):void 0;z>A;A++)if((C||A in $)&&(V=R(q=$[A],A,W),o))if(p)x[A]=V;else if(V)switch(o){case 3:return!0;case 5:return q;case 6:return A;case 2:c(x,q)}else switch(o){case 4:return!1;case 7:c(x,q)}return b?-1:f||v?v:x}};y.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(r,y,_){var d=r("../internals/to-absolute-index"),a=r("../internals/length-of-array-like"),l=r("../internals/create-property"),i=Array,e=Math.max;y.exports=function(s,c,u){for(var o=a(s),p=d(c,o),m=d(u===void 0?o:u,o),f=i(e(m-p,0)),v=0;p<m;p++,v++)l(f,v,s[p]);return f.length=v,f}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(r,y,_){var d=r("../internals/function-uncurry-this");y.exports=d([].slice)},{"../internals/function-uncurry-this":268}],232:[function(r,y,_){var d=r("../internals/is-array"),a=r("../internals/is-constructor"),l=r("../internals/is-object"),i=r("../internals/well-known-symbol")("species"),e=Array;y.exports=function(s){var c;return d(s)&&(c=s.constructor,(a(c)&&(c===e||d(c.prototype))||l(c)&&(c=c[i])===null)&&(c=void 0)),c===void 0?e:c}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(r,y,_){var d=r("../internals/array-species-constructor");y.exports=function(a,l){return new(d(a))(l===0?0:l)}},{"../internals/array-species-constructor":232}],234:[function(r,y,_){var d=r("../internals/well-known-symbol")("iterator"),a=!1;try{var l=0,i={next:function(){return{done:!!l++}},return:function(){a=!0}};i[d]=function(){return this},Array.from(i,(function(){throw 2}))}catch{}y.exports=function(e,s){try{if(!s&&!a)return!1}catch{return!1}var c=!1;try{var u={};u[d]=function(){return{next:function(){return{done:c=!0}}}},e(u)}catch{}return c}},{"../internals/well-known-symbol":357}],235:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=d({}.toString),l=d("".slice);y.exports=function(i){return l(a(i),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(r,y,_){var d=r("../internals/to-string-tag-support"),a=r("../internals/is-callable"),l=r("../internals/classof-raw"),i=r("../internals/well-known-symbol")("toStringTag"),e=Object,s=l((function(){return arguments})())==="Arguments";y.exports=d?l:function(c){var u,o,p;return c===void 0?"Undefined":c===null?"Null":typeof(o=(function(m,f){try{return m[f]}catch{}})(u=e(c),i))=="string"?o:s?l(u):(p=l(u))==="Object"&&a(u.callee)?"Arguments":p}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(r,y,_){var d=r("../internals/has-own-property"),a=r("../internals/own-keys"),l=r("../internals/object-get-own-property-descriptor"),i=r("../internals/object-define-property");y.exports=function(e,s,c){for(var u=a(s),o=i.f,p=l.f,m=0;m<u.length;m++){var f=u[m];d(e,f)||c&&d(c,f)||o(e,f,p(s,f))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(r,y,_){var d=r("../internals/well-known-symbol")("match");y.exports=function(a){var l=/./;try{"/./"[a](l)}catch{try{return l[d]=!1,"/./"[a](l)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(r,y,_){var d=r("../internals/fails");y.exports=!d((function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}))},{"../internals/fails":260}],240:[function(r,y,_){y.exports=function(d,a){return{value:d,done:a}}},{}],241:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/object-define-property"),l=r("../internals/create-property-descriptor");y.exports=d?function(i,e,s){return a.f(i,e,l(1,s))}:function(i,e,s){return i[e]=s,i}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(r,y,_){y.exports=function(d,a){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:a}}},{}],243:[function(r,y,_){var d=r("../internals/to-property-key"),a=r("../internals/object-define-property"),l=r("../internals/create-property-descriptor");y.exports=function(i,e,s){var c=d(e);c in i?a.f(i,c,l(0,s)):i[c]=s}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(r,y,_){var d=r("../internals/make-built-in"),a=r("../internals/object-define-property");y.exports=function(l,i,e){return e.get&&d(e.get,i,{getter:!0}),e.set&&d(e.set,i,{setter:!0}),a.f(l,i,e)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(r,y,_){var d=r("../internals/is-callable"),a=r("../internals/object-define-property"),l=r("../internals/make-built-in"),i=r("../internals/define-global-property");y.exports=function(e,s,c,u){u||(u={});var o=u.enumerable,p=u.name!==void 0?u.name:s;if(d(c)&&l(c,p,u),u.global)o?e[s]=c:i(s,c);else{try{u.unsafe?e[s]&&(o=!0):delete e[s]}catch{}o?e[s]=c:a.f(e,s,{value:c,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(r,y,_){var d=r("../internals/global"),a=Object.defineProperty;y.exports=function(l,i){try{a(d,l,{value:i,configurable:!0,writable:!0})}catch{d[l]=i}return i}},{"../internals/global":274}],247:[function(r,y,_){var d=r("../internals/fails");y.exports=!d((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(r,y,_){var d=typeof document=="object"&&document.all,a=d===void 0&&d!==void 0;y.exports={all:d,IS_HTMLDDA:a}},{}],249:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/is-object"),l=d.document,i=a(l)&&a(l.createElement);y.exports=function(e){return i?l.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(r,y,_){var d=r("../internals/engine-is-deno"),a=r("../internals/engine-is-node");y.exports=!d&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(r,y,_){y.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(r,y,_){var d=r("../internals/engine-user-agent");y.exports=/ipad|iphone|ipod/i.test(d)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(r,y,_){var d=r("../internals/engine-user-agent");y.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},{"../internals/engine-user-agent":256}],254:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/classof-raw");y.exports=a(d.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(r,y,_){var d=r("../internals/engine-user-agent");y.exports=/web0s(?!.*chrome)/i.test(d)},{"../internals/engine-user-agent":256}],256:[function(r,y,_){y.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(r,y,_){var d,a,l=r("../internals/global"),i=r("../internals/engine-user-agent"),e=l.process,s=l.Deno,c=e&&e.versions||s&&s.version,u=c&&c.v8;u&&(a=(d=u.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!a&&i&&(!(d=i.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=i.match(/Chrome\/(\d+)/))&&(a=+d[1]),y.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(r,y,_){y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/object-get-own-property-descriptor").f,l=r("../internals/create-non-enumerable-property"),i=r("../internals/define-built-in"),e=r("../internals/define-global-property"),s=r("../internals/copy-constructor-properties"),c=r("../internals/is-forced");y.exports=function(u,o){var p,m,f,v,b,T=u.target,C=u.global,I=u.stat;if(p=C?d:I?d[T]||e(T,{}):(d[T]||{}).prototype)for(m in o){if(v=o[m],f=u.dontCallGetSet?(b=a(p,m))&&b.value:p[m],!c(C?m:T+(I?".":"#")+m,u.forced)&&f!==void 0){if(typeof v==typeof f)continue;s(v,f)}(u.sham||f&&f.sham)&&l(v,"sham",!0),i(p,m,v,u)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(r,y,_){y.exports=function(d){try{return!!d()}catch{return!0}}},{}],261:[function(r,y,_){var d=r("../internals/function-bind-native"),a=Function.prototype,l=a.apply,i=a.call;y.exports=typeof Reflect=="object"&&Reflect.apply||(d?i.bind(l):function(){return i.apply(l,arguments)})},{"../internals/function-bind-native":263}],262:[function(r,y,_){var d=r("../internals/function-uncurry-this-clause"),a=r("../internals/a-callable"),l=r("../internals/function-bind-native"),i=d(d.bind);y.exports=function(e,s){return a(e),s===void 0?e:l?i(e,s):function(){return e.apply(s,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(r,y,_){var d=r("../internals/fails");y.exports=!d((function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(r,y,_){var d=r("../internals/function-bind-native"),a=Function.prototype.call;y.exports=d?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/has-own-property"),l=Function.prototype,i=d&&Object.getOwnPropertyDescriptor,e=a(l,"name"),s=e&&(function(){}).name==="something",c=e&&(!d||d&&i(l,"name").configurable);y.exports={EXISTS:e,PROPER:s,CONFIGURABLE:c}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/a-callable");y.exports=function(l,i,e){try{return d(a(Object.getOwnPropertyDescriptor(l,i)[e]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(r,y,_){var d=r("../internals/classof-raw"),a=r("../internals/function-uncurry-this");y.exports=function(l){if(d(l)==="Function")return a(l)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(r,y,_){var d=r("../internals/function-bind-native"),a=Function.prototype,l=a.call,i=d&&a.bind.bind(l,l);y.exports=d?i:function(e){return function(){return l.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/is-callable"),l=function(i){return a(i)?i:void 0};y.exports=function(i,e){return arguments.length<2?l(d[i]):d[i]&&d[i][e]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(r,y,_){var d=r("../internals/classof"),a=r("../internals/get-method"),l=r("../internals/is-null-or-undefined"),i=r("../internals/iterators"),e=r("../internals/well-known-symbol")("iterator");y.exports=function(s){if(!l(s))return a(s,e)||a(s,"@@iterator")||i[d(s)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(r,y,_){var d=r("../internals/function-call"),a=r("../internals/a-callable"),l=r("../internals/an-object"),i=r("../internals/try-to-string"),e=r("../internals/get-iterator-method"),s=TypeError;y.exports=function(c,u){var o=arguments.length<2?e(c):u;if(a(o))return l(d(o,c));throw new s(i(c)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/is-array"),l=r("../internals/is-callable"),i=r("../internals/classof-raw"),e=r("../internals/to-string"),s=d([].push);y.exports=function(c){if(l(c))return c;if(a(c)){for(var u=c.length,o=[],p=0;p<u;p++){var m=c[p];typeof m=="string"?s(o,m):typeof m!="number"&&i(m)!=="Number"&&i(m)!=="String"||s(o,e(m))}var f=o.length,v=!0;return function(b,T){if(v)return v=!1,T;if(a(this))return T;for(var C=0;C<f;C++)if(o[C]===b)return T}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(r,y,_){var d=r("../internals/a-callable"),a=r("../internals/is-null-or-undefined");y.exports=function(l,i){var e=l[i];return a(e)?void 0:d(e)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(r,y,_){(function(d){(function(){var a=function(l){return l&&l.Math===Math&&l};y.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof d=="object"&&d)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/to-object"),l=d({}.hasOwnProperty);y.exports=Object.hasOwn||function(i,e){return l(a(i),e)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(r,y,_){y.exports={}},{}],277:[function(r,y,_){y.exports=function(d,a){try{arguments.length===1?console.error(d):console.error(d,a)}catch{}}},{}],278:[function(r,y,_){var d=r("../internals/get-built-in");y.exports=d("document","documentElement")},{"../internals/get-built-in":269}],279:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/fails"),l=r("../internals/document-create-element");y.exports=!d&&!a((function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/fails"),l=r("../internals/classof-raw"),i=Object,e=d("".split);y.exports=a((function(){return!i("z").propertyIsEnumerable(0)}))?function(s){return l(s)==="String"?e(s,""):i(s)}:i},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/is-callable"),l=r("../internals/shared-store"),i=d(Function.toString);a(l.inspectSource)||(l.inspectSource=function(e){return i(e)}),y.exports=l.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(r,y,_){var d,a,l,i=r("../internals/weak-map-basic-detection"),e=r("../internals/global"),s=r("../internals/is-object"),c=r("../internals/create-non-enumerable-property"),u=r("../internals/has-own-property"),o=r("../internals/shared-store"),p=r("../internals/shared-key"),m=r("../internals/hidden-keys"),f=e.TypeError,v=e.WeakMap;if(i||o.state){var b=o.state||(o.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,d=function(C,I){if(b.has(C))throw new f("Object already initialized");return I.facade=C,b.set(C,I),I},a=function(C){return b.get(C)||{}},l=function(C){return b.has(C)}}else{var T=p("state");m[T]=!0,d=function(C,I){if(u(C,T))throw new f("Object already initialized");return I.facade=C,c(C,T,I),I},a=function(C){return u(C,T)?C[T]:{}},l=function(C){return u(C,T)}}y.exports={set:d,get:a,has:l,enforce:function(C){return l(C)?a(C):d(C,{})},getterFor:function(C){return function(I){var H;if(!s(I)||(H=a(I)).type!==C)throw new f("Incompatible receiver, "+C+" required");return H}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(r,y,_){var d=r("../internals/well-known-symbol"),a=r("../internals/iterators"),l=d("iterator"),i=Array.prototype;y.exports=function(e){return e!==void 0&&(a.Array===e||i[l]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(r,y,_){var d=r("../internals/classof-raw");y.exports=Array.isArray||function(a){return d(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(r,y,_){var d=r("../internals/document-all"),a=d.all;y.exports=d.IS_HTMLDDA?function(l){return typeof l=="function"||l===a}:function(l){return typeof l=="function"}},{"../internals/document-all":248}],286:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/fails"),l=r("../internals/is-callable"),i=r("../internals/classof"),e=r("../internals/get-built-in"),s=r("../internals/inspect-source"),c=function(){},u=[],o=e("Reflect","construct"),p=/^\s*(?:class|function)\b/,m=d(p.exec),f=!p.test(c),v=function(T){if(!l(T))return!1;try{return o(c,u,T),!0}catch{return!1}},b=function(T){if(!l(T))return!1;switch(i(T)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!m(p,s(T))}catch{return!0}};b.sham=!0,y.exports=!o||a((function(){var T;return v(v.call)||!v(Object)||!v((function(){T=!0}))||T}))?b:v},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(r,y,_){var d=r("../internals/fails"),a=r("../internals/is-callable"),l=/#|\.prototype\./,i=function(o,p){var m=s[e(o)];return m===u||m!==c&&(a(p)?d(p):!!p)},e=i.normalize=function(o){return String(o).replace(l,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";y.exports=i},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(r,y,_){y.exports=function(d){return d==null}},{}],289:[function(r,y,_){var d=r("../internals/is-callable"),a=r("../internals/document-all"),l=a.all;y.exports=a.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:d(i)||i===l}:function(i){return typeof i=="object"?i!==null:d(i)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(r,y,_){y.exports=!1},{}],291:[function(r,y,_){var d=r("../internals/is-object"),a=r("../internals/classof-raw"),l=r("../internals/well-known-symbol")("match");y.exports=function(i){var e;return d(i)&&((e=i[l])!==void 0?!!e:a(i)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(r,y,_){var d=r("../internals/get-built-in"),a=r("../internals/is-callable"),l=r("../internals/object-is-prototype-of"),i=r("../internals/use-symbol-as-uid"),e=Object;y.exports=i?function(s){return typeof s=="symbol"}:function(s){var c=d("Symbol");return a(c)&&l(c.prototype,e(s))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(r,y,_){var d=r("../internals/function-bind-context"),a=r("../internals/function-call"),l=r("../internals/an-object"),i=r("../internals/try-to-string"),e=r("../internals/is-array-iterator-method"),s=r("../internals/length-of-array-like"),c=r("../internals/object-is-prototype-of"),u=r("../internals/get-iterator"),o=r("../internals/get-iterator-method"),p=r("../internals/iterator-close"),m=TypeError,f=function(b,T){this.stopped=b,this.result=T},v=f.prototype;y.exports=function(b,T,C){var I,H,Z,P,q,V,W,$=C&&C.that,R=!(!C||!C.AS_ENTRIES),z=!(!C||!C.IS_RECORD),A=!(!C||!C.IS_ITERATOR),g=!(!C||!C.INTERRUPTED),x=d(T,$),S=function(O){return I&&p(I,"normal",O),new f(!0,O)},E=function(O){return R?(l(O),g?x(O[0],O[1],S):x(O[0],O[1])):g?x(O,S):x(O)};if(z)I=b.iterator;else if(A)I=b;else{if(!(H=o(b)))throw new m(i(b)+" is not iterable");if(e(H)){for(Z=0,P=s(b);P>Z;Z++)if((q=E(b[Z]))&&c(v,q))return q;return new f(!1)}I=u(b,H)}for(V=z?b.next:I.next;!(W=a(V,I)).done;){try{q=E(W.value)}catch(O){p(I,"throw",O)}if(typeof q=="object"&&q&&c(v,q))return q}return new f(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(r,y,_){var d=r("../internals/function-call"),a=r("../internals/an-object"),l=r("../internals/get-method");y.exports=function(i,e,s){var c,u;a(i);try{if(!(c=l(i,"return"))){if(e==="throw")throw s;return s}c=d(c,i)}catch(o){u=!0,c=o}if(e==="throw")throw s;if(u)throw c;return a(c),s}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(r,y,_){var d=r("../internals/iterators-core").IteratorPrototype,a=r("../internals/object-create"),l=r("../internals/create-property-descriptor"),i=r("../internals/set-to-string-tag"),e=r("../internals/iterators"),s=function(){return this};y.exports=function(c,u,o,p){var m=u+" Iterator";return c.prototype=a(d,{next:l(+!p,o)}),i(c,m,!1,!0),e[m]=s,c}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-call"),l=r("../internals/is-pure"),i=r("../internals/function-name"),e=r("../internals/is-callable"),s=r("../internals/iterator-create-constructor"),c=r("../internals/object-get-prototype-of"),u=r("../internals/object-set-prototype-of"),o=r("../internals/set-to-string-tag"),p=r("../internals/create-non-enumerable-property"),m=r("../internals/define-built-in"),f=r("../internals/well-known-symbol"),v=r("../internals/iterators"),b=r("../internals/iterators-core"),T=i.PROPER,C=i.CONFIGURABLE,I=b.IteratorPrototype,H=b.BUGGY_SAFARI_ITERATORS,Z=f("iterator"),P=function(){return this};y.exports=function(q,V,W,$,R,z,A){s(W,V,$);var g,x,S,E=function(U){if(U===R&&K)return K;if(!H&&U&&U in B)return B[U];switch(U){case"keys":case"values":case"entries":return function(){return new W(this,U)}}return function(){return new W(this)}},O=V+" Iterator",j=!1,B=q.prototype,Y=B[Z]||B["@@iterator"]||R&&B[R],K=!H&&Y||E(R),nt=V==="Array"&&B.entries||Y;if(nt&&(g=c(nt.call(new q)))!==Object.prototype&&g.next&&(l||c(g)===I||(u?u(g,I):e(g[Z])||m(g,Z,P)),o(g,O,!0,!0),l&&(v[O]=P)),T&&R==="values"&&Y&&Y.name!=="values"&&(!l&&C?p(B,"name","values"):(j=!0,K=function(){return a(Y,this)})),R)if(x={values:E("values"),keys:z?K:E("keys"),entries:E("entries")},A)for(S in x)(H||j||!(S in B))&&m(B,S,x[S]);else d({target:V,proto:!0,forced:H||j},x);return l&&!A||B[Z]===K||m(B,Z,K,{name:R}),v[V]=K,x}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(r,y,_){var d,a,l,i=r("../internals/fails"),e=r("../internals/is-callable"),s=r("../internals/is-object"),c=r("../internals/object-create"),u=r("../internals/object-get-prototype-of"),o=r("../internals/define-built-in"),p=r("../internals/well-known-symbol"),m=r("../internals/is-pure"),f=p("iterator"),v=!1;[].keys&&("next"in(l=[].keys())?(a=u(u(l)))!==Object.prototype&&(d=a):v=!0),!s(d)||i((function(){var b={};return d[f].call(b)!==b}))?d={}:m&&(d=c(d)),e(d[f])||o(d,f,(function(){return this})),y.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:v}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(r,y,_){arguments[4][276][0].apply(_,arguments)},{dup:276}],299:[function(r,y,_){var d=r("../internals/to-length");y.exports=function(a){return d(a.length)}},{"../internals/to-length":343}],300:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/fails"),l=r("../internals/is-callable"),i=r("../internals/has-own-property"),e=r("../internals/descriptors"),s=r("../internals/function-name").CONFIGURABLE,c=r("../internals/inspect-source"),u=r("../internals/internal-state"),o=u.enforce,p=u.get,m=String,f=Object.defineProperty,v=d("".slice),b=d("".replace),T=d([].join),C=e&&!a((function(){return f((function(){}),"length",{value:8}).length!==8})),I=String(String).split("String"),H=y.exports=function(Z,P,q){v(m(P),0,7)==="Symbol("&&(P="["+b(m(P),/^Symbol\(([^)]*)\)/,"$1")+"]"),q&&q.getter&&(P="get "+P),q&&q.setter&&(P="set "+P),(!i(Z,"name")||s&&Z.name!==P)&&(e?f(Z,"name",{value:P,configurable:!0}):Z.name=P),C&&q&&i(q,"arity")&&Z.length!==q.arity&&f(Z,"length",{value:q.arity});try{q&&i(q,"constructor")&&q.constructor?e&&f(Z,"prototype",{writable:!1}):Z.prototype&&(Z.prototype=void 0)}catch{}var V=o(Z);return i(V,"source")||(V.source=T(I,typeof P=="string"?P:"")),Z};Function.prototype.toString=H((function(){return l(this)&&p(this).source||c(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(r,y,_){var d=Math.ceil,a=Math.floor;y.exports=Math.trunc||function(l){var i=+l;return(i>0?a:d)(i)}},{}],302:[function(r,y,_){var d,a,l,i,e,s=r("../internals/global"),c=r("../internals/function-bind-context"),u=r("../internals/object-get-own-property-descriptor").f,o=r("../internals/task").set,p=r("../internals/queue"),m=r("../internals/engine-is-ios"),f=r("../internals/engine-is-ios-pebble"),v=r("../internals/engine-is-webos-webkit"),b=r("../internals/engine-is-node"),T=s.MutationObserver||s.WebKitMutationObserver,C=s.document,I=s.process,H=s.Promise,Z=u(s,"queueMicrotask"),P=Z&&Z.value;if(!P){var q=new p,V=function(){var W,$;for(b&&(W=I.domain)&&W.exit();$=q.get();)try{$()}catch(R){throw q.head&&d(),R}W&&W.enter()};m||b||v||!T||!C?!f&&H&&H.resolve?((i=H.resolve(void 0)).constructor=H,e=c(i.then,i),d=function(){e(V)}):b?d=function(){I.nextTick(V)}:(o=c(o,s),d=function(){o(V)}):(a=!0,l=C.createTextNode(""),new T(V).observe(l,{characterData:!0}),d=function(){l.data=a=!a}),P=function(W){q.head||d(),q.add(W)}}y.exports=P},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(r,y,_){var d=r("../internals/a-callable"),a=TypeError,l=function(i){var e,s;this.promise=new i((function(c,u){if(e!==void 0||s!==void 0)throw new a("Bad Promise constructor");e=c,s=u})),this.resolve=d(e),this.reject=d(s)};y.exports.f=function(i){return new l(i)}},{"../internals/a-callable":222}],304:[function(r,y,_){var d=r("../internals/is-regexp"),a=TypeError;y.exports=function(l){if(d(l))throw new a("The method doesn't accept regular expressions");return l}},{"../internals/is-regexp":291}],305:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/function-uncurry-this"),l=r("../internals/function-call"),i=r("../internals/fails"),e=r("../internals/object-keys"),s=r("../internals/object-get-own-property-symbols"),c=r("../internals/object-property-is-enumerable"),u=r("../internals/to-object"),o=r("../internals/indexed-object"),p=Object.assign,m=Object.defineProperty,f=a([].concat);y.exports=!p||i((function(){if(d&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},b={},T=Symbol("assign detection");return v[T]=7,"abcdefghijklmnopqrst".split("").forEach((function(C){b[C]=C})),p({},v)[T]!==7||e(p({},b)).join("")!=="abcdefghijklmnopqrst"}))?function(v,b){for(var T=u(v),C=arguments.length,I=1,H=s.f,Z=c.f;C>I;)for(var P,q=o(arguments[I++]),V=H?f(e(q),H(q)):e(q),W=V.length,$=0;W>$;)P=V[$++],d&&!l(Z,q,P)||(T[P]=q[P]);return T}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(r,y,_){var d,a=r("../internals/an-object"),l=r("../internals/object-define-properties"),i=r("../internals/enum-bug-keys"),e=r("../internals/hidden-keys"),s=r("../internals/html"),c=r("../internals/document-create-element"),u=r("../internals/shared-key"),o=u("IE_PROTO"),p=function(){},m=function(b){return"<script>"+b+"<\/script>"},f=function(b){b.write(m("")),b.close();var T=b.parentWindow.Object;return b=null,T},v=function(){try{d=new ActiveXObject("htmlfile")}catch{}var b,T;v=typeof document<"u"?document.domain&&d?f(d):((T=c("iframe")).style.display="none",s.appendChild(T),T.src="javascript:",(b=T.contentWindow.document).open(),b.write(m("document.F=Object")),b.close(),b.F):f(d);for(var C=i.length;C--;)delete v.prototype[i[C]];return v()};e[o]=!0,y.exports=Object.create||function(b,T){var C;return b!==null?(p.prototype=a(b),C=new p,p.prototype=null,C[o]=b):C=v(),T===void 0?C:l.f(C,T)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/v8-prototype-define-bug"),l=r("../internals/object-define-property"),i=r("../internals/an-object"),e=r("../internals/to-indexed-object"),s=r("../internals/object-keys");_.f=d&&!a?Object.defineProperties:function(c,u){i(c);for(var o,p=e(u),m=s(u),f=m.length,v=0;f>v;)l.f(c,o=m[v++],p[o]);return c}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/ie8-dom-define"),l=r("../internals/v8-prototype-define-bug"),i=r("../internals/an-object"),e=r("../internals/to-property-key"),s=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;_.f=d?l?function(o,p,m){if(i(o),p=e(p),i(m),typeof o=="function"&&p==="prototype"&&"value"in m&&"writable"in m&&!m.writable){var f=u(o,p);f&&f.writable&&(o[p]=m.value,m={configurable:"configurable"in m?m.configurable:f.configurable,enumerable:"enumerable"in m?m.enumerable:f.enumerable,writable:!1})}return c(o,p,m)}:c:function(o,p,m){if(i(o),p=e(p),i(m),a)try{return c(o,p,m)}catch{}if("get"in m||"set"in m)throw new s("Accessors not supported");return"value"in m&&(o[p]=m.value),o}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/function-call"),l=r("../internals/object-property-is-enumerable"),i=r("../internals/create-property-descriptor"),e=r("../internals/to-indexed-object"),s=r("../internals/to-property-key"),c=r("../internals/has-own-property"),u=r("../internals/ie8-dom-define"),o=Object.getOwnPropertyDescriptor;_.f=d?o:function(p,m){if(p=e(p),m=s(m),u)try{return o(p,m)}catch{}if(c(p,m))return i(!a(l.f,p,m),p[m])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(r,y,_){var d=r("../internals/classof-raw"),a=r("../internals/to-indexed-object"),l=r("../internals/object-get-own-property-names").f,i=r("../internals/array-slice-simple"),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];y.exports.f=function(s){return e&&d(s)==="Window"?(function(c){try{return l(c)}catch{return i(e)}})(s):l(a(s))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(r,y,_){var d=r("../internals/object-keys-internal"),a=r("../internals/enum-bug-keys").concat("length","prototype");_.f=Object.getOwnPropertyNames||function(l){return d(l,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(r,y,_){_.f=Object.getOwnPropertySymbols},{}],313:[function(r,y,_){var d=r("../internals/has-own-property"),a=r("../internals/is-callable"),l=r("../internals/to-object"),i=r("../internals/shared-key"),e=r("../internals/correct-prototype-getter"),s=i("IE_PROTO"),c=Object,u=c.prototype;y.exports=e?c.getPrototypeOf:function(o){var p=l(o);if(d(p,s))return p[s];var m=p.constructor;return a(m)&&p instanceof m?m.prototype:p instanceof c?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(r,y,_){var d=r("../internals/function-uncurry-this");y.exports=d({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=r("../internals/has-own-property"),l=r("../internals/to-indexed-object"),i=r("../internals/array-includes").indexOf,e=r("../internals/hidden-keys"),s=d([].push);y.exports=function(c,u){var o,p=l(c),m=0,f=[];for(o in p)!a(e,o)&&a(p,o)&&s(f,o);for(;u.length>m;)a(p,o=u[m++])&&(~i(f,o)||s(f,o));return f}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(r,y,_){var d=r("../internals/object-keys-internal"),a=r("../internals/enum-bug-keys");y.exports=Object.keys||function(l){return d(l,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(r,y,_){var d={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!d.call({1:2},1);_.f=l?function(i){var e=a(this,i);return!!e&&e.enumerable}:d},{}],318:[function(r,y,_){var d=r("../internals/function-uncurry-this-accessor"),a=r("../internals/an-object"),l=r("../internals/a-possible-prototype");y.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var i,e=!1,s={};try{(i=d(Object.prototype,"__proto__","set"))(s,[]),e=s instanceof Array}catch{}return function(c,u){return a(c),l(u),e?i(c,u):c.__proto__=u,c}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/fails"),l=r("../internals/function-uncurry-this"),i=r("../internals/object-get-prototype-of"),e=r("../internals/object-keys"),s=r("../internals/to-indexed-object"),c=l(r("../internals/object-property-is-enumerable").f),u=l([].push),o=d&&a((function(){var m=Object.create(null);return m[2]=2,!c(m,2)})),p=function(m){return function(f){for(var v,b=s(f),T=e(b),C=o&&i(b)===null,I=T.length,H=0,Z=[];I>H;)v=T[H++],d&&!(C?v in b:c(b,v))||u(Z,m?[v,b[v]]:b[v]);return Z}};y.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(r,y,_){var d=r("../internals/function-call"),a=r("../internals/is-callable"),l=r("../internals/is-object"),i=TypeError;y.exports=function(e,s){var c,u;if(s==="string"&&a(c=e.toString)&&!l(u=d(c,e))||a(c=e.valueOf)&&!l(u=d(c,e))||s!=="string"&&a(c=e.toString)&&!l(u=d(c,e)))return u;throw new i("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(r,y,_){var d=r("../internals/get-built-in"),a=r("../internals/function-uncurry-this"),l=r("../internals/object-get-own-property-names"),i=r("../internals/object-get-own-property-symbols"),e=r("../internals/an-object"),s=a([].concat);y.exports=d("Reflect","ownKeys")||function(c){var u=l.f(e(c)),o=i.f;return o?s(u,o(c)):u}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(r,y,_){var d=r("../internals/global");y.exports=d},{"../internals/global":274}],323:[function(r,y,_){y.exports=function(d){try{return{error:!1,value:d()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/promise-native-constructor"),l=r("../internals/is-callable"),i=r("../internals/is-forced"),e=r("../internals/inspect-source"),s=r("../internals/well-known-symbol"),c=r("../internals/engine-is-browser"),u=r("../internals/engine-is-deno"),o=r("../internals/is-pure"),p=r("../internals/engine-v8-version"),m=a&&a.prototype,f=s("species"),v=!1,b=l(d.PromiseRejectionEvent),T=i("Promise",(function(){var C=e(a),I=C!==String(a);if(!I&&p===66||o&&(!m.catch||!m.finally))return!0;if(!p||p<51||!/native code/.test(C)){var H=new a((function(P){P(1)})),Z=function(P){P((function(){}),(function(){}))};if((H.constructor={})[f]=Z,!(v=H.then((function(){}))instanceof Z))return!0}return!I&&(c||u)&&!b}));y.exports={CONSTRUCTOR:T,REJECTION_EVENT:b,SUBCLASSING:v}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(r,y,_){var d=r("../internals/global");y.exports=d.Promise},{"../internals/global":274}],326:[function(r,y,_){var d=r("../internals/an-object"),a=r("../internals/is-object"),l=r("../internals/new-promise-capability");y.exports=function(i,e){if(d(i),a(e)&&e.constructor===i)return e;var s=l.f(i);return(0,s.resolve)(e),s.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(r,y,_){var d=r("../internals/promise-native-constructor"),a=r("../internals/check-correctness-of-iteration"),l=r("../internals/promise-constructor-detection").CONSTRUCTOR;y.exports=l||!a((function(i){d.all(i).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(r,y,_){var d=function(){this.head=null,this.tail=null};d.prototype={add:function(a){var l={item:a,next:null},i=this.tail;i?i.next=l:this.head=l,this.tail=l},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},y.exports=d},{}],329:[function(r,y,_){var d=r("../internals/is-null-or-undefined"),a=TypeError;y.exports=function(l){if(d(l))throw new a("Can't call method on "+l);return l}},{"../internals/is-null-or-undefined":288}],330:[function(r,y,_){var d=r("../internals/get-built-in"),a=r("../internals/define-built-in-accessor"),l=r("../internals/well-known-symbol"),i=r("../internals/descriptors"),e=l("species");y.exports=function(s){var c=d(s);i&&c&&!c[e]&&a(c,e,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(r,y,_){var d=r("../internals/object-define-property").f,a=r("../internals/has-own-property"),l=r("../internals/well-known-symbol")("toStringTag");y.exports=function(i,e,s){i&&!s&&(i=i.prototype),i&&!a(i,l)&&d(i,l,{configurable:!0,value:e})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(r,y,_){var d=r("../internals/shared"),a=r("../internals/uid"),l=d("keys");y.exports=function(i){return l[i]||(l[i]=a(i))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/define-global-property"),l=d["__core-js_shared__"]||a("__core-js_shared__",{});y.exports=l},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(r,y,_){var d=r("../internals/is-pure"),a=r("../internals/shared-store");(y.exports=function(l,i){return a[l]||(a[l]=i!==void 0?i:{})})("versions",[]).push({version:"3.33.0",mode:d?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(r,y,_){var d=r("../internals/an-object"),a=r("../internals/a-constructor"),l=r("../internals/is-null-or-undefined"),i=r("../internals/well-known-symbol")("species");y.exports=function(e,s){var c,u=d(e).constructor;return u===void 0||l(c=d(u)[i])?s:a(c)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(r,y,_){var d=r("../internals/engine-v8-version"),a=r("../internals/fails"),l=r("../internals/global").String;y.exports=!!Object.getOwnPropertySymbols&&!a((function(){var i=Symbol("symbol detection");return!l(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&d&&d<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(r,y,_){var d=r("../internals/function-call"),a=r("../internals/get-built-in"),l=r("../internals/well-known-symbol"),i=r("../internals/define-built-in");y.exports=function(){var e=a("Symbol"),s=e&&e.prototype,c=s&&s.valueOf,u=l("toPrimitive");s&&!s[u]&&i(s,u,(function(o){return d(c,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(r,y,_){var d=r("../internals/symbol-constructor-detection");y.exports=d&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(r,y,_){var d,a,l,i,e=r("../internals/global"),s=r("../internals/function-apply"),c=r("../internals/function-bind-context"),u=r("../internals/is-callable"),o=r("../internals/has-own-property"),p=r("../internals/fails"),m=r("../internals/html"),f=r("../internals/array-slice"),v=r("../internals/document-create-element"),b=r("../internals/validate-arguments-length"),T=r("../internals/engine-is-ios"),C=r("../internals/engine-is-node"),I=e.setImmediate,H=e.clearImmediate,Z=e.process,P=e.Dispatch,q=e.Function,V=e.MessageChannel,W=e.String,$=0,R={};p((function(){d=e.location}));var z=function(S){if(o(R,S)){var E=R[S];delete R[S],E()}},A=function(S){return function(){z(S)}},g=function(S){z(S.data)},x=function(S){e.postMessage(W(S),d.protocol+"//"+d.host)};I&&H||(I=function(S){b(arguments.length,1);var E=u(S)?S:q(S),O=f(arguments,1);return R[++$]=function(){s(E,void 0,O)},a($),$},H=function(S){delete R[S]},C?a=function(S){Z.nextTick(A(S))}:P&&P.now?a=function(S){P.now(A(S))}:V&&!T?(i=(l=new V).port2,l.port1.onmessage=g,a=c(i.postMessage,i)):e.addEventListener&&u(e.postMessage)&&!e.importScripts&&d&&d.protocol!=="file:"&&!p(x)?(a=x,e.addEventListener("message",g,!1)):a="onreadystatechange"in v("script")?function(S){m.appendChild(v("script")).onreadystatechange=function(){m.removeChild(this),z(S)}}:function(S){setTimeout(A(S),0)}),y.exports={set:I,clear:H}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(r,y,_){var d=r("../internals/to-integer-or-infinity"),a=Math.max,l=Math.min;y.exports=function(i,e){var s=d(i);return s<0?a(s+e,0):l(s,e)}},{"../internals/to-integer-or-infinity":342}],341:[function(r,y,_){var d=r("../internals/indexed-object"),a=r("../internals/require-object-coercible");y.exports=function(l){return d(a(l))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(r,y,_){var d=r("../internals/math-trunc");y.exports=function(a){var l=+a;return l!=l||l===0?0:d(l)}},{"../internals/math-trunc":301}],343:[function(r,y,_){var d=r("../internals/to-integer-or-infinity"),a=Math.min;y.exports=function(l){return l>0?a(d(l),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(r,y,_){var d=r("../internals/require-object-coercible"),a=Object;y.exports=function(l){return a(d(l))}},{"../internals/require-object-coercible":329}],345:[function(r,y,_){var d=r("../internals/function-call"),a=r("../internals/is-object"),l=r("../internals/is-symbol"),i=r("../internals/get-method"),e=r("../internals/ordinary-to-primitive"),s=r("../internals/well-known-symbol"),c=TypeError,u=s("toPrimitive");y.exports=function(o,p){if(!a(o)||l(o))return o;var m,f=i(o,u);if(f){if(p===void 0&&(p="default"),m=d(f,o,p),!a(m)||l(m))return m;throw new c("Can't convert object to primitive value")}return p===void 0&&(p="number"),e(o,p)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(r,y,_){var d=r("../internals/to-primitive"),a=r("../internals/is-symbol");y.exports=function(l){var i=d(l,"string");return a(i)?i:i+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(r,y,_){var d={};d[r("../internals/well-known-symbol")("toStringTag")]="z",y.exports=String(d)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(r,y,_){var d=r("../internals/classof"),a=String;y.exports=function(l){if(d(l)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(l)}},{"../internals/classof":236}],349:[function(r,y,_){var d=String;y.exports=function(a){try{return d(a)}catch{return"Object"}}},{}],350:[function(r,y,_){var d=r("../internals/function-uncurry-this"),a=0,l=Math.random(),i=d(1 .toString);y.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+i(++a+l,36)}},{"../internals/function-uncurry-this":268}],351:[function(r,y,_){var d=r("../internals/symbol-constructor-detection");y.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(r,y,_){var d=r("../internals/descriptors"),a=r("../internals/fails");y.exports=d&&a((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(r,y,_){var d=TypeError;y.exports=function(a,l){if(a<l)throw new d("Not enough arguments");return a}},{}],354:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/is-callable"),l=d.WeakMap;y.exports=a(l)&&/native code/.test(String(l))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(r,y,_){var d=r("../internals/path"),a=r("../internals/has-own-property"),l=r("../internals/well-known-symbol-wrapped"),i=r("../internals/object-define-property").f;y.exports=function(e){var s=d.Symbol||(d.Symbol={});a(s,e)||i(s,e,{value:l.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(r,y,_){var d=r("../internals/well-known-symbol");_.f=d},{"../internals/well-known-symbol":357}],357:[function(r,y,_){var d=r("../internals/global"),a=r("../internals/shared"),l=r("../internals/has-own-property"),i=r("../internals/uid"),e=r("../internals/symbol-constructor-detection"),s=r("../internals/use-symbol-as-uid"),c=d.Symbol,u=a("wks"),o=s?c.for||c:c&&c.withoutSetter||i;y.exports=function(p){return l(u,p)||(u[p]=e&&l(c,p)?c[p]:o("Symbol."+p)),u[p]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/array-iteration").findIndex,l=r("../internals/add-to-unscopables"),i=!0;"findIndex"in[]&&Array(1).findIndex((function(){i=!1})),d({target:"Array",proto:!0,forced:i},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),l("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/array-iteration").find,l=r("../internals/add-to-unscopables"),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),d({target:"Array",proto:!0,forced:i},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),l("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/array-includes").includes,l=r("../internals/fails"),i=r("../internals/add-to-unscopables");d({target:"Array",proto:!0,forced:l((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(r,y,_){var d=r("../internals/to-indexed-object"),a=r("../internals/add-to-unscopables"),l=r("../internals/iterators"),i=r("../internals/internal-state"),e=r("../internals/object-define-property").f,s=r("../internals/iterator-define"),c=r("../internals/create-iter-result-object"),u=r("../internals/is-pure"),o=r("../internals/descriptors"),p=i.set,m=i.getterFor("Array Iterator");y.exports=s(Array,"Array",(function(v,b){p(this,{type:"Array Iterator",target:d(v),index:0,kind:b})}),(function(){var v=m(this),b=v.target,T=v.kind,C=v.index++;if(!b||C>=b.length)return v.target=void 0,c(void 0,!0);switch(T){case"keys":return c(C,!1);case"values":return c(b[C],!1)}return c([C,b[C]],!1)}),"values");var f=l.Arguments=l.Array;if(a("keys"),a("values"),a("entries"),!u&&o&&f.name!=="values")try{e(f,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/get-built-in"),l=r("../internals/function-apply"),i=r("../internals/function-call"),e=r("../internals/function-uncurry-this"),s=r("../internals/fails"),c=r("../internals/is-callable"),u=r("../internals/is-symbol"),o=r("../internals/array-slice"),p=r("../internals/get-json-replacer-function"),m=r("../internals/symbol-constructor-detection"),f=String,v=a("JSON","stringify"),b=e(/./.exec),T=e("".charAt),C=e("".charCodeAt),I=e("".replace),H=e(1 .toString),Z=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,q=/^[\uDC00-\uDFFF]$/,V=!m||s((function(){var z=a("Symbol")("stringify detection");return v([z])!=="[null]"||v({a:z})!=="{}"||v(Object(z))!=="{}"})),W=s((function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'})),$=function(z,A){var g=o(arguments),x=p(A);if(c(x)||z!==void 0&&!u(z))return g[1]=function(S,E){if(c(x)&&(E=i(x,this,f(S),E)),!u(E))return E},l(v,null,g)},R=function(z,A,g){var x=T(g,A-1),S=T(g,A+1);return b(P,z)&&!b(q,S)||b(q,z)&&!b(P,x)?"\\u"+H(C(z,0),16):z};v&&d({target:"JSON",stat:!0,arity:3,forced:V||W},{stringify:function(z,A,g){var x=o(arguments),S=l(V?$:v,null,x);return W&&typeof S=="string"?I(S,Z,R):S}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(r,y,_){r("../internals/export")({target:"Number",stat:!0},{isNaN:function(d){return d!=d}})},{"../internals/export":259}],364:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/object-assign");d({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/symbol-constructor-detection"),l=r("../internals/fails"),i=r("../internals/object-get-own-property-symbols"),e=r("../internals/to-object");d({target:"Object",stat:!0,forced:!a||l((function(){i.f(1)}))},{getOwnPropertySymbols:function(s){var c=i.f;return c?c(e(s)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/to-object"),l=r("../internals/object-keys");d({target:"Object",stat:!0,forced:r("../internals/fails")((function(){l(1)}))},{keys:function(i){return l(a(i))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/object-to-array").values;d({target:"Object",stat:!0},{values:function(l){return a(l)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-call"),l=r("../internals/a-callable"),i=r("../internals/new-promise-capability"),e=r("../internals/perform"),s=r("../internals/iterate");d({target:"Promise",stat:!0,forced:r("../internals/promise-statics-incorrect-iteration")},{all:function(c){var u=this,o=i.f(u),p=o.resolve,m=o.reject,f=e((function(){var v=l(u.resolve),b=[],T=0,C=1;s(c,(function(I){var H=T++,Z=!1;C++,a(v,u,I).then((function(P){Z||(Z=!0,b[H]=P,--C||p(b))}),m)})),--C||p(b)}));return f.error&&m(f.value),o.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/is-pure"),l=r("../internals/promise-constructor-detection").CONSTRUCTOR,i=r("../internals/promise-native-constructor"),e=r("../internals/get-built-in"),s=r("../internals/is-callable"),c=r("../internals/define-built-in"),u=i&&i.prototype;if(d({target:"Promise",proto:!0,forced:l,real:!0},{catch:function(p){return this.then(void 0,p)}}),!a&&s(i)){var o=e("Promise").prototype.catch;u.catch!==o&&c(u,"catch",o,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(r,y,_){var d,a,l,i=r("../internals/export"),e=r("../internals/is-pure"),s=r("../internals/engine-is-node"),c=r("../internals/global"),u=r("../internals/function-call"),o=r("../internals/define-built-in"),p=r("../internals/object-set-prototype-of"),m=r("../internals/set-to-string-tag"),f=r("../internals/set-species"),v=r("../internals/a-callable"),b=r("../internals/is-callable"),T=r("../internals/is-object"),C=r("../internals/an-instance"),I=r("../internals/species-constructor"),H=r("../internals/task").set,Z=r("../internals/microtask"),P=r("../internals/host-report-errors"),q=r("../internals/perform"),V=r("../internals/queue"),W=r("../internals/internal-state"),$=r("../internals/promise-native-constructor"),R=r("../internals/promise-constructor-detection"),z=r("../internals/new-promise-capability"),A=R.CONSTRUCTOR,g=R.REJECTION_EVENT,x=R.SUBCLASSING,S=W.getterFor("Promise"),E=W.set,O=$&&$.prototype,j=$,B=O,Y=c.TypeError,K=c.document,nt=c.process,U=z.f,J=U,L=!!(K&&K.createEvent&&c.dispatchEvent),N=function(ht){var xt;return!(!T(ht)||!b(xt=ht.then))&&xt},X=function(ht,xt){var _t,St,Ot,Rt=xt.value,Ft=xt.state===1,Kt=Ft?ht.ok:ht.fail,et=ht.resolve,G=ht.reject,Q=ht.domain;try{Kt?(Ft||(xt.rejection===2&>(xt),xt.rejection=1),Kt===!0?_t=Rt:(Q&&Q.enter(),_t=Kt(Rt),Q&&(Q.exit(),Ot=!0)),_t===ht.promise?G(new Y("Promise-chain cycle")):(St=N(_t))?u(St,_t,et,G):et(_t)):G(Rt)}catch(ot){Q&&!Ot&&Q.exit(),G(ot)}},rt=function(ht,xt){ht.notified||(ht.notified=!0,Z((function(){for(var _t,St=ht.reactions;_t=St.get();)X(_t,ht);ht.notified=!1,xt&&!ht.rejection&&it(ht)})))},ut=function(ht,xt,_t){var St,Ot;L?((St=K.createEvent("Event")).promise=xt,St.reason=_t,St.initEvent(ht,!1,!0),c.dispatchEvent(St)):St={promise:xt,reason:_t},!g&&(Ot=c["on"+ht])?Ot(St):ht==="unhandledrejection"&&P("Unhandled promise rejection",_t)},it=function(ht){u(H,c,(function(){var xt,_t=ht.facade,St=ht.value;if(lt(ht)&&(xt=q((function(){s?nt.emit("unhandledRejection",St,_t):ut("unhandledrejection",_t,St)})),ht.rejection=s||lt(ht)?2:1,xt.error))throw xt.value}))},lt=function(ht){return ht.rejection!==1&&!ht.parent},gt=function(ht){u(H,c,(function(){var xt=ht.facade;s?nt.emit("rejectionHandled",xt):ut("rejectionhandled",xt,ht.value)}))},bt=function(ht,xt,_t){return function(St){ht(xt,St,_t)}},st=function(ht,xt,_t){ht.done||(ht.done=!0,_t&&(ht=_t),ht.value=xt,ht.state=2,rt(ht,!0))},dt=function(ht,xt,_t){if(!ht.done){ht.done=!0,_t&&(ht=_t);try{if(ht.facade===xt)throw new Y("Promise can't be resolved itself");var St=N(xt);St?Z((function(){var Ot={done:!1};try{u(St,xt,bt(dt,Ot,ht),bt(st,Ot,ht))}catch(Rt){st(Ot,Rt,ht)}})):(ht.value=xt,ht.state=1,rt(ht,!1))}catch(Ot){st({done:!1},Ot,ht)}}};if(A&&(B=(j=function(ht){C(this,B),v(ht),u(d,this);var xt=S(this);try{ht(bt(dt,xt),bt(st,xt))}catch(_t){st(xt,_t)}}).prototype,(d=function(ht){E(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:0,value:void 0})}).prototype=o(B,"then",(function(ht,xt){var _t=S(this),St=U(I(this,j));return _t.parent=!0,St.ok=!b(ht)||ht,St.fail=b(xt)&&xt,St.domain=s?nt.domain:void 0,_t.state===0?_t.reactions.add(St):Z((function(){X(St,_t)})),St.promise})),a=function(){var ht=new d,xt=S(ht);this.promise=ht,this.resolve=bt(dt,xt),this.reject=bt(st,xt)},z.f=U=function(ht){return ht===j||ht===void 0?new a(ht):J(ht)},!e&&b($)&&O!==Object.prototype)){l=O.then,x||o(O,"then",(function(ht,xt){var _t=this;return new j((function(St,Ot){u(l,_t,St,Ot)})).then(ht,xt)}),{unsafe:!0});try{delete O.constructor}catch{}p&&p(O,B)}i({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:j}),m(j,"Promise",!1,!0),f("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/is-pure"),l=r("../internals/promise-native-constructor"),i=r("../internals/fails"),e=r("../internals/get-built-in"),s=r("../internals/is-callable"),c=r("../internals/species-constructor"),u=r("../internals/promise-resolve"),o=r("../internals/define-built-in"),p=l&&l.prototype;if(d({target:"Promise",proto:!0,real:!0,forced:!!l&&i((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(f){var v=c(this,e("Promise")),b=s(f);return this.then(b?function(T){return u(v,f()).then((function(){return T}))}:f,b?function(T){return u(v,f()).then((function(){throw T}))}:f)}}),!a&&s(l)){var m=e("Promise").prototype.finally;p.finally!==m&&o(p,"finally",m,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(r,y,_){r("../modules/es.promise.constructor"),r("../modules/es.promise.all"),r("../modules/es.promise.catch"),r("../modules/es.promise.race"),r("../modules/es.promise.reject"),r("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-call"),l=r("../internals/a-callable"),i=r("../internals/new-promise-capability"),e=r("../internals/perform"),s=r("../internals/iterate");d({target:"Promise",stat:!0,forced:r("../internals/promise-statics-incorrect-iteration")},{race:function(c){var u=this,o=i.f(u),p=o.reject,m=e((function(){var f=l(u.resolve);s(c,(function(v){a(f,u,v).then(o.resolve,p)}))}));return m.error&&p(m.value),o.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-call"),l=r("../internals/new-promise-capability");d({target:"Promise",stat:!0,forced:r("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(i){var e=l.f(this);return a(e.reject,void 0,i),e.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/get-built-in"),l=r("../internals/is-pure"),i=r("../internals/promise-native-constructor"),e=r("../internals/promise-constructor-detection").CONSTRUCTOR,s=r("../internals/promise-resolve"),c=a("Promise"),u=l&&!e;d({target:"Promise",stat:!0,forced:l||e},{resolve:function(o){return s(u&&this===c?i:this,o)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-uncurry-this"),l=r("../internals/to-absolute-index"),i=RangeError,e=String.fromCharCode,s=String.fromCodePoint,c=a([].join);d({target:"String",stat:!0,arity:1,forced:!!s&&s.length!==1},{fromCodePoint:function(u){for(var o,p=[],m=arguments.length,f=0;m>f;){if(o=+arguments[f++],l(o,1114111)!==o)throw new i(o+" is not a valid code point");p[f]=o<65536?e(o):e(55296+((o-=65536)>>10),o%1024+56320)}return c(p,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/function-uncurry-this"),l=r("../internals/not-a-regexp"),i=r("../internals/require-object-coercible"),e=r("../internals/to-string"),s=r("../internals/correct-is-regexp-logic"),c=a("".indexOf);d({target:"String",proto:!0,forced:!s("includes")},{includes:function(u){return!!~c(e(i(this)),e(l(u)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(r,y,_){r("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/global"),l=r("../internals/function-call"),i=r("../internals/function-uncurry-this"),e=r("../internals/is-pure"),s=r("../internals/descriptors"),c=r("../internals/symbol-constructor-detection"),u=r("../internals/fails"),o=r("../internals/has-own-property"),p=r("../internals/object-is-prototype-of"),m=r("../internals/an-object"),f=r("../internals/to-indexed-object"),v=r("../internals/to-property-key"),b=r("../internals/to-string"),T=r("../internals/create-property-descriptor"),C=r("../internals/object-create"),I=r("../internals/object-keys"),H=r("../internals/object-get-own-property-names"),Z=r("../internals/object-get-own-property-names-external"),P=r("../internals/object-get-own-property-symbols"),q=r("../internals/object-get-own-property-descriptor"),V=r("../internals/object-define-property"),W=r("../internals/object-define-properties"),$=r("../internals/object-property-is-enumerable"),R=r("../internals/define-built-in"),z=r("../internals/define-built-in-accessor"),A=r("../internals/shared"),g=r("../internals/shared-key"),x=r("../internals/hidden-keys"),S=r("../internals/uid"),E=r("../internals/well-known-symbol"),O=r("../internals/well-known-symbol-wrapped"),j=r("../internals/well-known-symbol-define"),B=r("../internals/symbol-define-to-primitive"),Y=r("../internals/set-to-string-tag"),K=r("../internals/internal-state"),nt=r("../internals/array-iteration").forEach,U=g("hidden"),J=K.set,L=K.getterFor("Symbol"),N=Object.prototype,X=a.Symbol,rt=X&&X.prototype,ut=a.RangeError,it=a.TypeError,lt=a.QObject,gt=q.f,bt=V.f,st=Z.f,dt=$.f,ht=i([].push),xt=A("symbols"),_t=A("op-symbols"),St=A("wks"),Ot=!lt||!lt.prototype||!lt.prototype.findChild,Rt=function(wt,Nt,Pt){var qt=gt(N,Nt);qt&&delete N[Nt],bt(wt,Nt,Pt),qt&&wt!==N&&bt(N,Nt,qt)},Ft=s&&u((function(){return C(bt({},"a",{get:function(){return bt(this,"a",{value:7}).a}})).a!==7}))?Rt:bt,Kt=function(wt,Nt){var Pt=xt[wt]=C(rt);return J(Pt,{type:"Symbol",tag:wt,description:Nt}),s||(Pt.description=Nt),Pt},et=function(wt,Nt,Pt){wt===N&&et(_t,Nt,Pt),m(wt);var qt=v(Nt);return m(Pt),o(xt,qt)?(Pt.enumerable?(o(wt,U)&&wt[U][qt]&&(wt[U][qt]=!1),Pt=C(Pt,{enumerable:T(0,!1)})):(o(wt,U)||bt(wt,U,T(1,{})),wt[U][qt]=!0),Ft(wt,qt,Pt)):bt(wt,qt,Pt)},G=function(wt,Nt){m(wt);var Pt=f(Nt),qt=I(Pt).concat(vt(Pt));return nt(qt,(function(Vt){s&&!l(Q,Pt,Vt)||et(wt,Vt,Pt[Vt])})),wt},Q=function(wt){var Nt=v(wt),Pt=l(dt,this,Nt);return!(this===N&&o(xt,Nt)&&!o(_t,Nt))&&(!(Pt||!o(this,Nt)||!o(xt,Nt)||o(this,U)&&this[U][Nt])||Pt)},ot=function(wt,Nt){var Pt=f(wt),qt=v(Nt);if(Pt!==N||!o(xt,qt)||o(_t,qt)){var Vt=gt(Pt,qt);return!Vt||!o(xt,qt)||o(Pt,U)&&Pt[U][qt]||(Vt.enumerable=!0),Vt}},ft=function(wt){var Nt=st(f(wt)),Pt=[];return nt(Nt,(function(qt){o(xt,qt)||o(x,qt)||ht(Pt,qt)})),Pt},vt=function(wt){var Nt=wt===N,Pt=st(Nt?_t:f(wt)),qt=[];return nt(Pt,(function(Vt){!o(xt,Vt)||Nt&&!o(N,Vt)||ht(qt,xt[Vt])})),qt};c||(R(rt=(X=function(){if(p(rt,this))throw new it("Symbol is not a constructor");var wt=arguments.length&&arguments[0]!==void 0?b(arguments[0]):void 0,Nt=S(wt),Pt=function(qt){this===N&&l(Pt,_t,qt),o(this,U)&&o(this[U],Nt)&&(this[U][Nt]=!1);var Vt=T(1,qt);try{Ft(this,Nt,Vt)}catch(Qt){if(!(Qt instanceof ut))throw Qt;Rt(this,Nt,Vt)}};return s&&Ot&&Ft(N,Nt,{configurable:!0,set:Pt}),Kt(Nt,wt)}).prototype,"toString",(function(){return L(this).tag})),R(X,"withoutSetter",(function(wt){return Kt(S(wt),wt)})),$.f=Q,V.f=et,W.f=G,q.f=ot,H.f=Z.f=ft,P.f=vt,O.f=function(wt){return Kt(E(wt),wt)},s&&(z(rt,"description",{configurable:!0,get:function(){return L(this).description}}),e||R(N,"propertyIsEnumerable",Q,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:X}),nt(I(St),(function(wt){j(wt)})),d({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){Ot=!0},useSimple:function(){Ot=!1}}),d({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(wt,Nt){return Nt===void 0?C(wt):G(C(wt),Nt)},defineProperty:et,defineProperties:G,getOwnPropertyDescriptor:ot}),d({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),B(),Y(X,"Symbol"),x[U]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/get-built-in"),l=r("../internals/has-own-property"),i=r("../internals/to-string"),e=r("../internals/shared"),s=r("../internals/symbol-registry-detection"),c=e("string-to-symbol-registry"),u=e("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!s},{for:function(o){var p=i(o);if(l(c,p))return c[p];var m=a("Symbol")(p);return c[p]=m,u[m]=p,m}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(r,y,_){r("../modules/es.symbol.constructor"),r("../modules/es.symbol.for"),r("../modules/es.symbol.key-for"),r("../modules/es.json.stringify"),r("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(r,y,_){var d=r("../internals/export"),a=r("../internals/has-own-property"),l=r("../internals/is-symbol"),i=r("../internals/try-to-string"),e=r("../internals/shared"),s=r("../internals/symbol-registry-detection"),c=e("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!s},{keyFor:function(u){if(!l(u))throw new TypeError(i(u)+" is not a symbol");if(a(c,u))return c[u]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(r,y,_){function d(a){return Object.prototype.toString.call(a)}_.isArray=function(a){return Array.isArray?Array.isArray(a):d(a)==="[object Array]"},_.isBoolean=function(a){return typeof a=="boolean"},_.isNull=function(a){return a===null},_.isNullOrUndefined=function(a){return a==null},_.isNumber=function(a){return typeof a=="number"},_.isString=function(a){return typeof a=="string"},_.isSymbol=function(a){return typeof a=="symbol"},_.isUndefined=function(a){return a===void 0},_.isRegExp=function(a){return d(a)==="[object RegExp]"},_.isObject=function(a){return typeof a=="object"&&a!==null},_.isDate=function(a){return d(a)==="[object Date]"},_.isError=function(a){return d(a)==="[object Error]"||a instanceof Error},_.isFunction=function(a){return typeof a=="function"},_.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},_.isBuffer=r("buffer").Buffer.isBuffer},{buffer:220}],384:[function(r,y,_){(function(d){(function(){var a=r("elliptic"),l=r("bn.js");y.exports=function(c){return new e(c)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function e(c){this.curveType=i[c],this.curveType||(this.curveType={name:c}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function s(c,u,o){Array.isArray(c)||(c=c.toArray());var p=new d(c);if(o&&p.length<o){var m=new d(o-p.length);m.fill(0),p=d.concat([m,p])}return u?p.toString(u):p}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,e.prototype.generateKeys=function(c,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(c,u)},e.prototype.computeSecret=function(c,u,o){return u=u||"utf8",d.isBuffer(c)||(c=new d(c,u)),s(this.curve.keyFromPublic(c).getPublic().mul(this.keys.getPrivate()).getX(),o,this.curveType.byteLength)},e.prototype.getPublicKey=function(c,u){var o=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(o[o.length-1]%2?o[0]=7:o[0]=6),s(o,c)},e.prototype.getPrivateKey=function(c){return s(this.keys.getPrivate(),c)},e.prototype.setPublicKey=function(c,u){return u=u||"utf8",d.isBuffer(c)||(c=new d(c,u)),this.keys._importPublic(c),this},e.prototype.setPrivateKey=function(c,u){u=u||"utf8",d.isBuffer(c)||(c=new d(c,u));var o=new l(c);return o=o.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(o),this}}).call(this)}).call(this,r("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(r,y,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],386:[function(r,y,_){var d=r("inherits"),a=r("md5.js"),l=r("ripemd160"),i=r("sha.js"),e=r("cipher-base");function s(c){e.call(this,"digest"),this._hash=c}d(s,e),s.prototype._update=function(c){this._hash.update(c)},s.prototype._final=function(){return this._hash.digest()},y.exports=function(c){return(c=c.toLowerCase())==="md5"?new a:c==="rmd160"||c==="ripemd160"?new l:new s(i(c))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(r,y,_){var d=r("md5.js");y.exports=function(a){return new d().update(a).digest()}},{"md5.js":450}],388:[function(r,y,_){var d=r("inherits"),a=r("./legacy"),l=r("cipher-base"),i=r("safe-buffer").Buffer,e=r("create-hash/md5"),s=r("ripemd160"),c=r("sha.js"),u=i.alloc(128);function o(p,m){l.call(this,"digest"),typeof m=="string"&&(m=i.from(m));var f=p==="sha512"||p==="sha384"?128:64;this._alg=p,this._key=m,m.length>f?m=(p==="rmd160"?new s:c(p)).update(m).digest():m.length<f&&(m=i.concat([m,u],f));for(var v=this._ipad=i.allocUnsafe(f),b=this._opad=i.allocUnsafe(f),T=0;T<f;T++)v[T]=54^m[T],b[T]=92^m[T];this._hash=p==="rmd160"?new s:c(p),this._hash.update(v)}d(o,l),o.prototype._update=function(p){this._hash.update(p)},o.prototype._final=function(){var p=this._hash.digest();return(this._alg==="rmd160"?new s:c(this._alg)).update(this._opad).update(p).digest()},y.exports=function(p,m){return(p=p.toLowerCase())==="rmd160"||p==="ripemd160"?new o("rmd160",m):p==="md5"?new a(e,m):new o(p,m)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(r,y,_){var d=r("inherits"),a=r("safe-buffer").Buffer,l=r("cipher-base"),i=a.alloc(128);function e(s,c){l.call(this,"digest"),typeof c=="string"&&(c=a.from(c)),this._alg=s,this._key=c,c.length>64?c=s(c):c.length<64&&(c=a.concat([c,i],64));for(var u=this._ipad=a.allocUnsafe(64),o=this._opad=a.allocUnsafe(64),p=0;p<64;p++)u[p]=54^c[p],o[p]=92^c[p];this._hash=[u]}d(e,l),e.prototype._update=function(s){this._hash.push(s)},e.prototype._final=function(){var s=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,s]))},y.exports=e},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(r,y,_){_.randomBytes=_.rng=_.pseudoRandomBytes=_.prng=r("randombytes"),_.createHash=_.Hash=r("create-hash"),_.createHmac=_.Hmac=r("create-hmac");var d=r("browserify-sign/algos"),a=Object.keys(d),l=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);_.getHashes=function(){return l};var i=r("pbkdf2");_.pbkdf2=i.pbkdf2,_.pbkdf2Sync=i.pbkdf2Sync;var e=r("browserify-cipher");_.Cipher=e.Cipher,_.createCipher=e.createCipher,_.Cipheriv=e.Cipheriv,_.createCipheriv=e.createCipheriv,_.Decipher=e.Decipher,_.createDecipher=e.createDecipher,_.Decipheriv=e.Decipheriv,_.createDecipheriv=e.createDecipheriv,_.getCiphers=e.getCiphers,_.listCiphers=e.listCiphers;var s=r("diffie-hellman");_.DiffieHellmanGroup=s.DiffieHellmanGroup,_.createDiffieHellmanGroup=s.createDiffieHellmanGroup,_.getDiffieHellman=s.getDiffieHellman,_.createDiffieHellman=s.createDiffieHellman,_.DiffieHellman=s.DiffieHellman;var c=r("browserify-sign");_.createSign=c.createSign,_.Sign=c.Sign,_.createVerify=c.createVerify,_.Verify=c.Verify,_.createECDH=r("create-ecdh");var u=r("public-encrypt");_.publicEncrypt=u.publicEncrypt,_.privateEncrypt=u.privateEncrypt,_.publicDecrypt=u.publicDecrypt,_.privateDecrypt=u.privateDecrypt;var o=r("randomfill");_.randomFill=o.randomFill,_.randomFillSync=o.randomFillSync,_.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
17
|
+
`))},_.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(r,y,_){(function(d,a){typeof _=="object"&&y!==void 0?y.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs=a()})(void 0,(function(){var d=6e4,a=36e5,l="millisecond",i="second",e="minute",s="hour",c="day",u="week",o="month",p="quarter",m="year",f="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var x=["th","st","nd","rd"],S=g%100;return"["+g+(x[(S-20)%10]||x[S]||x[0])+"]"}},I=function(g,x,S){var E=String(g);return!E||E.length>=x?g:""+Array(x+1-E.length).join(S)+g},H={s:I,z:function(g){var x=-g.utcOffset(),S=Math.abs(x),E=Math.floor(S/60),O=S%60;return(x<=0?"+":"-")+I(E,2,"0")+":"+I(O,2,"0")},m:function g(x,S){if(x.date()<S.date())return-g(S,x);var E=12*(S.year()-x.year())+(S.month()-x.month()),O=x.clone().add(E,o),j=S-O<0,B=x.clone().add(E+(j?-1:1),o);return+(-(E+(S-O)/(j?O-B:B-O))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:o,y:m,w:u,d:c,D:f,h:s,m:e,s:i,ms:l,Q:p}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},Z="en",P={};P[Z]=C;var q="$isDayjsObject",V=function(g){return g instanceof z||!(!g||!g[q])},W=function g(x,S,E){var O;if(!x)return Z;if(typeof x=="string"){var j=x.toLowerCase();P[j]&&(O=j),S&&(P[j]=S,O=j);var B=x.split("-");if(!O&&B.length>1)return g(B[0])}else{var Y=x.name;P[Y]=x,O=Y}return!E&&O&&(Z=O),O||!E&&Z},$=function(g,x){if(V(g))return g.clone();var S=typeof x=="object"?x:{};return S.date=g,S.args=arguments,new z(S)},R=H;R.l=W,R.i=V,R.w=function(g,x){return $(g,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var z=(function(){function g(S){this.$L=W(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[q]=!0}var x=g.prototype;return x.parse=function(S){this.$d=(function(E){var O=E.date,j=E.utc;if(O===null)return new Date(NaN);if(R.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var B=O.match(b);if(B){var Y=B[2]-1||0,K=(B[7]||"0").substring(0,3);return j?new Date(Date.UTC(B[1],Y,B[3]||1,B[4]||0,B[5]||0,B[6]||0,K)):new Date(B[1],Y,B[3]||1,B[4]||0,B[5]||0,B[6]||0,K)}}return new Date(O)})(S),this.init()},x.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},x.$utils=function(){return R},x.isValid=function(){return this.$d.toString()!==v},x.isSame=function(S,E){var O=$(S);return this.startOf(E)<=O&&O<=this.endOf(E)},x.isAfter=function(S,E){return $(S)<this.startOf(E)},x.isBefore=function(S,E){return this.endOf(E)<$(S)},x.$g=function(S,E,O){return R.u(S)?this[E]:this.set(O,S)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(S,E){var O=this,j=!!R.u(E)||E,B=R.p(S),Y=function(rt,ut){var it=R.w(O.$u?Date.UTC(O.$y,ut,rt):new Date(O.$y,ut,rt),O);return j?it:it.endOf(c)},K=function(rt,ut){return R.w(O.toDate()[rt].apply(O.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(ut)),O)},nt=this.$W,U=this.$M,J=this.$D,L="set"+(this.$u?"UTC":"");switch(B){case m:return j?Y(1,0):Y(31,11);case o:return j?Y(1,U):Y(0,U+1);case u:var N=this.$locale().weekStart||0,X=(nt<N?nt+7:nt)-N;return Y(j?J-X:J+(6-X),U);case c:case f:return K(L+"Hours",0);case s:return K(L+"Minutes",1);case e:return K(L+"Seconds",2);case i:return K(L+"Milliseconds",3);default:return this.clone()}},x.endOf=function(S){return this.startOf(S,!1)},x.$set=function(S,E){var O,j=R.p(S),B="set"+(this.$u?"UTC":""),Y=(O={},O[c]=B+"Date",O[f]=B+"Date",O[o]=B+"Month",O[m]=B+"FullYear",O[s]=B+"Hours",O[e]=B+"Minutes",O[i]=B+"Seconds",O[l]=B+"Milliseconds",O)[j],K=j===c?this.$D+(E-this.$W):E;if(j===o||j===m){var nt=this.clone().set(f,1);nt.$d[Y](K),nt.init(),this.$d=nt.set(f,Math.min(this.$D,nt.daysInMonth())).$d}else Y&&this.$d[Y](K);return this.init(),this},x.set=function(S,E){return this.clone().$set(S,E)},x.get=function(S){return this[R.p(S)]()},x.add=function(S,E){var O,j=this;S=Number(S);var B=R.p(E),Y=function(U){var J=$(j);return R.w(J.date(J.date()+Math.round(U*S)),j)};if(B===o)return this.set(o,this.$M+S);if(B===m)return this.set(m,this.$y+S);if(B===c)return Y(1);if(B===u)return Y(7);var K=(O={},O[e]=d,O[s]=a,O[i]=1e3,O)[B]||1,nt=this.$d.getTime()+S*K;return R.w(nt,this)},x.subtract=function(S,E){return this.add(-1*S,E)},x.format=function(S){var E=this,O=this.$locale();if(!this.isValid())return O.invalidDate||v;var j=S||"YYYY-MM-DDTHH:mm:ssZ",B=R.z(this),Y=this.$H,K=this.$m,nt=this.$M,U=O.weekdays,J=O.months,L=O.meridiem,N=function(ut,it,lt,gt){return ut&&(ut[it]||ut(E,j))||lt[it].slice(0,gt)},X=function(ut){return R.s(Y%12||12,ut,"0")},rt=L||function(ut,it,lt){var gt=ut<12?"AM":"PM";return lt?gt.toLowerCase():gt};return j.replace(T,(function(ut,it){return it||(function(lt){switch(lt){case"YY":return String(E.$y).slice(-2);case"YYYY":return R.s(E.$y,4,"0");case"M":return nt+1;case"MM":return R.s(nt+1,2,"0");case"MMM":return N(O.monthsShort,nt,J,3);case"MMMM":return N(J,nt);case"D":return E.$D;case"DD":return R.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return N(O.weekdaysMin,E.$W,U,2);case"ddd":return N(O.weekdaysShort,E.$W,U,3);case"dddd":return U[E.$W];case"H":return String(Y);case"HH":return R.s(Y,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return rt(Y,K,!0);case"A":return rt(Y,K,!1);case"m":return String(K);case"mm":return R.s(K,2,"0");case"s":return String(E.$s);case"ss":return R.s(E.$s,2,"0");case"SSS":return R.s(E.$ms,3,"0");case"Z":return B}return null})(ut)||B.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(S,E,O){var j,B=this,Y=R.p(E),K=$(S),nt=(K.utcOffset()-this.utcOffset())*d,U=this-K,J=function(){return R.m(B,K)};switch(Y){case m:j=J()/12;break;case o:j=J();break;case p:j=J()/3;break;case u:j=(U-nt)/6048e5;break;case c:j=(U-nt)/864e5;break;case s:j=U/a;break;case e:j=U/d;break;case i:j=U/1e3;break;default:j=U}return O?j:R.a(j)},x.daysInMonth=function(){return this.endOf(o).$D},x.$locale=function(){return P[this.$L]},x.locale=function(S,E){if(!S)return this.$L;var O=this.clone(),j=W(S,E,!0);return j&&(O.$L=j),O},x.clone=function(){return R.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},g})(),A=z.prototype;return $.prototype=A,[["$ms",l],["$s",i],["$m",e],["$H",s],["$W",c],["$M",o],["$y",m],["$D",f]].forEach((function(g){A[g[1]]=function(x){return this.$g(x,g[0],g[1])}})),$.extend=function(g,x){return g.$i||(g(x,z,$),g.$i=!0),$},$.locale=W,$.isDayjs=V,$.unix=function(g){return $(1e3*g)},$.en=P[Z],$.Ls=P,$.p={},$}))},{}],392:[function(r,y,_){(function(d,a){typeof _=="object"&&y!==void 0?y.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_customParseFormat=a()})(void 0,(function(){var d={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,i=/\d\d?/,e=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(T){this[b]=+T}},o=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var C=T.match(/([+-]|\d\d)/g),I=60*C[1]+(+C[2]||0);return I===0?0:C[0]==="+"?-I:I})(b)}],p=function(b){var T=s[b];return T&&(T.indexOf?T:T.s.concat(T.f))},m=function(b,T){var C,I=s.meridiem;if(I){for(var H=1;H<=24;H+=1)if(b.indexOf(I(H,0,T))>-1){C=H>12;break}}else C=b===(T?"pm":"PM");return C},f={A:[e,function(b){this.afternoon=m(b,!1)}],a:[e,function(b){this.afternoon=m(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[l,u("day")],Do:[e,function(b){var T=s.ordinal,C=b.match(/\d+/);if(this.day=C[0],T)for(var I=1;I<=31;I+=1)T(I).replace(/\[|\]/g,"")===b&&(this.day=I)}],M:[i,u("month")],MM:[l,u("month")],MMM:[e,function(b){var T=p("months"),C=(p("monthsShort")||T.map((function(I){return I.slice(0,3)}))).indexOf(b)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[e,function(b){var T=p("months").indexOf(b)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:o,ZZ:o};function v(b){var T,C;T=b,C=s&&s.formats;for(var I=(b=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,R,z){var A=z&&z.toUpperCase();return R||C[z]||d[z]||C[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(g,x,S){return x||S.slice(1)}))}))).match(a),H=I.length,Z=0;Z<H;Z+=1){var P=I[Z],q=f[P],V=q&&q[0],W=q&&q[1];I[Z]=W?{regex:V,parser:W}:P.replace(/^\[|\]$/g,"")}return function($){for(var R={},z=0,A=0;z<H;z+=1){var g=I[z];if(typeof g=="string")A+=g.length;else{var x=g.regex,S=g.parser,E=$.slice(A),O=x.exec(E)[0];S.call(R,O),$=$.replace(O,"")}}return(function(j){var B=j.afternoon;if(B!==void 0){var Y=j.hours;B?Y<12&&(j.hours+=12):Y===12&&(j.hours=0),delete j.afternoon}})(R),R}}return function(b,T,C){C.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var I=T.prototype,H=I.parse;I.parse=function(Z){var P=Z.date,q=Z.utc,V=Z.args;this.$u=q;var W=V[1];if(typeof W=="string"){var $=V[2]===!0,R=V[3]===!0,z=$||R,A=V[2];R&&(A=V[2]),s=this.$locale(),!$&&A&&(s=C.Ls[A]),this.$d=(function(E,O,j){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*E);var B=v(O)(E),Y=B.year,K=B.month,nt=B.day,U=B.hours,J=B.minutes,L=B.seconds,N=B.milliseconds,X=B.zone,rt=new Date,ut=nt||(Y||K?1:rt.getDate()),it=Y||rt.getFullYear(),lt=0;Y&&!K||(lt=K>0?K-1:rt.getMonth());var gt=U||0,bt=J||0,st=L||0,dt=N||0;return X?new Date(Date.UTC(it,lt,ut,gt,bt,st,dt+60*X.offset*1e3)):j?new Date(Date.UTC(it,lt,ut,gt,bt,st,dt)):new Date(it,lt,ut,gt,bt,st,dt)}catch{return new Date("")}})(P,W,q),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),z&&P!=this.format(W)&&(this.$d=new Date("")),s={}}else if(W instanceof Array)for(var g=W.length,x=1;x<=g;x+=1){V[1]=W[x-1];var S=C.apply(this,V);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}x===g&&(this.$d=new Date(""))}else H.call(this,Z)}}}))},{}],393:[function(r,y,_){(function(d,a){typeof _=="object"&&y!==void 0?y.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_utc=a()})(void 0,(function(){var d="minute",a=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(i,e,s){var c=e.prototype;s.utc=function(b){var T={date:b,utc:!0,args:arguments};return new e(T)},c.utc=function(b){var T=s(this.toDate(),{locale:this.$L,utc:!0});return b?T.add(this.utcOffset(),d):T},c.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var o=c.init;c.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else o.call(this)};var p=c.utcOffset;c.utcOffset=function(b,T){var C=this.$utils().u;if(C(b))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof b=="string"&&(b=(function(P){P===void 0&&(P="");var q=P.match(a);if(!q)return null;var V=(""+q[0]).match(l)||["-",0,0],W=V[0],$=60*+V[1]+ +V[2];return $===0?0:W==="+"?$:-$})(b))===null)return this;var I=Math.abs(b)<=16?60*b:b,H=this;if(T)return H.$offset=I,H.$u=b===0,H;if(b!==0){var Z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(H=this.local().add(I+Z,d)).$offset=I,H.$x.$localOffset=Z}else H=this.utc();return H};var m=c.format;c.format=function(b){var T=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,T)},c.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var f=c.toDate;c.toDate=function(b){return b==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var v=c.diff;c.diff=function(b,T,C){if(b&&this.$u===b.$u)return v.call(this,b,T,C);var I=this.local(),H=s(b).local();return v.call(I,H,T,C)}}}))},{}],394:[function(r,y,_){_.utils=r("./des/utils"),_.Cipher=r("./des/cipher"),_.DES=r("./des/des"),_.CBC=r("./des/cbc"),_.EDE=r("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(r,y,_){var d=r("minimalistic-assert"),a=r("inherits"),l={};function i(e){d.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var s=0;s<this.iv.length;s++)this.iv[s]=e[s]}_.instantiate=function(e){function s(p){e.call(this,p),this._cbcInit()}a(s,e);for(var c=Object.keys(l),u=0;u<c.length;u++){var o=c[u];s.prototype[o]=l[o]}return s.create=function(p){return new s(p)},s},l._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},l._update=function(e,s,c,u){var o=this._cbcState,p=this.constructor.super_.prototype,m=o.iv;if(this.type==="encrypt"){for(var f=0;f<this.blockSize;f++)m[f]^=e[s+f];for(p._update.call(this,m,0,c,u),f=0;f<this.blockSize;f++)m[f]=c[u+f]}else{for(p._update.call(this,e,s,c,u),f=0;f<this.blockSize;f++)c[u+f]^=m[f];for(f=0;f<this.blockSize;f++)m[f]=e[s+f]}}},{inherits:440,"minimalistic-assert":453}],396:[function(r,y,_){var d=r("minimalistic-assert");function a(l){this.options=l,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=l.padding!==!1}y.exports=a,a.prototype._init=function(){},a.prototype.update=function(l){return l.length===0?[]:this.type==="decrypt"?this._updateDecrypt(l):this._updateEncrypt(l)},a.prototype._buffer=function(l,i){for(var e=Math.min(this.buffer.length-this.bufferOff,l.length-i),s=0;s<e;s++)this.buffer[this.bufferOff+s]=l[i+s];return this.bufferOff+=e,e},a.prototype._flushBuffer=function(l,i){return this._update(this.buffer,0,l,i),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(l){var i=0,e=0,s=(this.bufferOff+l.length)/this.blockSize|0,c=new Array(s*this.blockSize);this.bufferOff!==0&&(i+=this._buffer(l,i),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(c,e)));for(var u=l.length-(l.length-i)%this.blockSize;i<u;i+=this.blockSize)this._update(l,i,c,e),e+=this.blockSize;for(;i<l.length;i++,this.bufferOff++)this.buffer[this.bufferOff]=l[i];return c},a.prototype._updateDecrypt=function(l){for(var i=0,e=0,s=Math.ceil((this.bufferOff+l.length)/this.blockSize)-1,c=new Array(s*this.blockSize);s>0;s--)i+=this._buffer(l,i),e+=this._flushBuffer(c,e);return i+=this._buffer(l,i),c},a.prototype.final=function(l){var i,e;return l&&(i=this.update(l)),e=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),i?i.concat(e):e},a.prototype._pad=function(l,i){if(i===0)return!1;for(;i<l.length;)l[i++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var l=new Array(this.blockSize);return this._update(this.buffer,0,l,0),l},a.prototype._unpad=function(l){return l},a.prototype._finalDecrypt=function(){d.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var l=new Array(this.blockSize);return this._flushBuffer(l,0),this._unpad(l)}},{"minimalistic-assert":453}],397:[function(r,y,_){var d=r("minimalistic-assert"),a=r("inherits"),l=r("./utils"),i=r("./cipher");function e(){this.tmp=new Array(2),this.keys=null}function s(u){i.call(this,u);var o=new e;this._desState=o,this.deriveKeys(o,u.key)}a(s,i),y.exports=s,s.create=function(u){return new s(u)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(u,o){u.keys=new Array(32),d.equal(o.length,this.blockSize,"Invalid key length");var p=l.readUInt32BE(o,0),m=l.readUInt32BE(o,4);l.pc1(p,m,u.tmp,0),p=u.tmp[0],m=u.tmp[1];for(var f=0;f<u.keys.length;f+=2){var v=c[f>>>1];p=l.r28shl(p,v),m=l.r28shl(m,v),l.pc2(p,m,u.keys,f)}},s.prototype._update=function(u,o,p,m){var f=this._desState,v=l.readUInt32BE(u,o),b=l.readUInt32BE(u,o+4);l.ip(v,b,f.tmp,0),v=f.tmp[0],b=f.tmp[1],this.type==="encrypt"?this._encrypt(f,v,b,f.tmp,0):this._decrypt(f,v,b,f.tmp,0),v=f.tmp[0],b=f.tmp[1],l.writeUInt32BE(p,v,m),l.writeUInt32BE(p,b,m+4)},s.prototype._pad=function(u,o){if(this.padding===!1)return!1;for(var p=u.length-o,m=o;m<u.length;m++)u[m]=p;return!0},s.prototype._unpad=function(u){if(this.padding===!1)return u;for(var o=u[u.length-1],p=u.length-o;p<u.length;p++)d.equal(u[p],o);return u.slice(0,u.length-o)},s.prototype._encrypt=function(u,o,p,m,f){for(var v=o,b=p,T=0;T<u.keys.length;T+=2){var C=u.keys[T],I=u.keys[T+1];l.expand(b,u.tmp,0),C^=u.tmp[0],I^=u.tmp[1];var H=l.substitute(C,I),Z=b;b=(v^l.permute(H))>>>0,v=Z}l.rip(b,v,m,f)},s.prototype._decrypt=function(u,o,p,m,f){for(var v=p,b=o,T=u.keys.length-2;T>=0;T-=2){var C=u.keys[T],I=u.keys[T+1];l.expand(v,u.tmp,0),C^=u.tmp[0],I^=u.tmp[1];var H=l.substitute(C,I),Z=v;v=(b^l.permute(H))>>>0,b=Z}l.rip(v,b,m,f)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(r,y,_){var d=r("minimalistic-assert"),a=r("inherits"),l=r("./cipher"),i=r("./des");function e(c,u){d.equal(u.length,24,"Invalid key length");var o=u.slice(0,8),p=u.slice(8,16),m=u.slice(16,24);this.ciphers=c==="encrypt"?[i.create({type:"encrypt",key:o}),i.create({type:"decrypt",key:p}),i.create({type:"encrypt",key:m})]:[i.create({type:"decrypt",key:m}),i.create({type:"encrypt",key:p}),i.create({type:"decrypt",key:o})]}function s(c){l.call(this,c);var u=new e(this.type,this.options.key);this._edeState=u}a(s,l),y.exports=s,s.create=function(c){return new s(c)},s.prototype._update=function(c,u,o,p){var m=this._edeState;m.ciphers[0]._update(c,u,o,p),m.ciphers[1]._update(o,p,o,p),m.ciphers[2]._update(o,p,o,p)},s.prototype._pad=i.prototype._pad,s.prototype._unpad=i.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(r,y,_){_.readUInt32BE=function(i,e){return(i[0+e]<<24|i[1+e]<<16|i[2+e]<<8|i[3+e])>>>0},_.writeUInt32BE=function(i,e,s){i[0+s]=e>>>24,i[1+s]=e>>>16&255,i[2+s]=e>>>8&255,i[3+s]=255&e},_.ip=function(i,e,s,c){for(var u=0,o=0,p=6;p>=0;p-=2){for(var m=0;m<=24;m+=8)u<<=1,u|=e>>>m+p&1;for(m=0;m<=24;m+=8)u<<=1,u|=i>>>m+p&1}for(p=6;p>=0;p-=2){for(m=1;m<=25;m+=8)o<<=1,o|=e>>>m+p&1;for(m=1;m<=25;m+=8)o<<=1,o|=i>>>m+p&1}s[c+0]=u>>>0,s[c+1]=o>>>0},_.rip=function(i,e,s,c){for(var u=0,o=0,p=0;p<4;p++)for(var m=24;m>=0;m-=8)u<<=1,u|=e>>>m+p&1,u<<=1,u|=i>>>m+p&1;for(p=4;p<8;p++)for(m=24;m>=0;m-=8)o<<=1,o|=e>>>m+p&1,o<<=1,o|=i>>>m+p&1;s[c+0]=u>>>0,s[c+1]=o>>>0},_.pc1=function(i,e,s,c){for(var u=0,o=0,p=7;p>=5;p--){for(var m=0;m<=24;m+=8)u<<=1,u|=e>>m+p&1;for(m=0;m<=24;m+=8)u<<=1,u|=i>>m+p&1}for(m=0;m<=24;m+=8)u<<=1,u|=e>>m+p&1;for(p=1;p<=3;p++){for(m=0;m<=24;m+=8)o<<=1,o|=e>>m+p&1;for(m=0;m<=24;m+=8)o<<=1,o|=i>>m+p&1}for(m=0;m<=24;m+=8)o<<=1,o|=i>>m+p&1;s[c+0]=u>>>0,s[c+1]=o>>>0},_.r28shl=function(i,e){return i<<e&268435455|i>>>28-e};var d=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];_.pc2=function(i,e,s,c){for(var u=0,o=0,p=d.length>>>1,m=0;m<p;m++)u<<=1,u|=i>>>d[m]&1;for(m=p;m<d.length;m++)o<<=1,o|=e>>>d[m]&1;s[c+0]=u>>>0,s[c+1]=o>>>0},_.expand=function(i,e,s){var c=0,u=0;c=(1&i)<<5|i>>>27;for(var o=23;o>=15;o-=4)c<<=6,c|=i>>>o&63;for(o=11;o>=3;o-=4)u|=i>>>o&63,u<<=6;u|=(31&i)<<1|i>>>31,e[s+0]=c>>>0,e[s+1]=u>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];_.substitute=function(i,e){for(var s=0,c=0;c<4;c++)s<<=4,s|=a[64*c+(i>>>18-6*c&63)];for(c=0;c<4;c++)s<<=4,s|=a[256+64*c+(e>>>18-6*c&63)];return s>>>0};var l=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];_.permute=function(i){for(var e=0,s=0;s<l.length;s++)e<<=1,e|=i>>>l[s]&1;return e>>>0},_.padSplit=function(i,e,s){for(var c=i.toString(2);c.length<e;)c="0"+c;for(var u=[],o=0;o<e;o+=s)u.push(c.slice(o,o+s));return u.join(" ")}},{}],400:[function(r,y,_){(function(d){(function(){var a=r("./lib/generatePrime"),l=r("./lib/primes.json"),i=r("./lib/dh"),e={binary:!0,hex:!0,base64:!0};_.DiffieHellmanGroup=_.createDiffieHellmanGroup=_.getDiffieHellman=function(s){var c=new d(l[s].prime,"hex"),u=new d(l[s].gen,"hex");return new i(c,u)},_.createDiffieHellman=_.DiffieHellman=function s(c,u,o,p){return d.isBuffer(u)||e[u]===void 0?s(c,"binary",u,o):(u=u||"binary",p=p||"binary",o=o||new d([2]),d.isBuffer(o)||(o=new d(o,p)),typeof c=="number"?new i(a(c,o),o,!0):(d.isBuffer(c)||(c=new d(c,u)),new i(c,o,!0)))}}).call(this)}).call(this,r("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(r,y,_){(function(d){(function(){var a=r("bn.js"),l=new(r("miller-rabin")),i=new a(24),e=new a(11),s=new a(10),c=new a(3),u=new a(7),o=r("./generatePrime"),p=r("randombytes");function m(C,I){return I=I||"utf8",d.isBuffer(C)||(C=new d(C,I)),this._pub=new a(C),this}function f(C,I){return I=I||"utf8",d.isBuffer(C)||(C=new d(C,I)),this._priv=new a(C),this}y.exports=b;var v={};function b(C,I,H){this.setGenerator(I),this.__prime=new a(C),this._prime=a.mont(this.__prime),this._primeLen=C.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,H?(this.setPublicKey=m,this.setPrivateKey=f):this._primeCode=8}function T(C,I){var H=new d(C.toArray());return I?H.toString(I):H}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(C,I){var H=I.toString("hex"),Z=[H,C.toString(16)].join("_");if(Z in v)return v[Z];var P,q=0;if(C.isEven()||!o.simpleSieve||!o.fermatTest(C)||!l.test(C))return q+=1,q+=H==="02"||H==="05"?8:4,v[Z]=q,q;switch(l.test(C.shrn(1))||(q+=2),H){case"02":C.mod(i).cmp(e)&&(q+=8);break;case"05":(P=C.mod(s)).cmp(c)&&P.cmp(u)&&(q+=8);break;default:q+=4}return v[Z]=q,q})(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new a(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(C){var I=(C=(C=new a(C)).toRed(this._prime)).redPow(this._priv).fromRed(),H=new d(I.toArray()),Z=this.getPrime();if(H.length<Z.length){var P=new d(Z.length-H.length);P.fill(0),H=d.concat([P,H])}return H},b.prototype.getPublicKey=function(C){return T(this._pub,C)},b.prototype.getPrivateKey=function(C){return T(this._priv,C)},b.prototype.getPrime=function(C){return T(this.__prime,C)},b.prototype.getGenerator=function(C){return T(this._gen,C)},b.prototype.setGenerator=function(C,I){return I=I||"utf8",d.isBuffer(C)||(C=new d(C,I)),this.__gen=C,this._gen=new a(C),this}}).call(this)}).call(this,r("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(r,y,_){var d=r("randombytes");y.exports=C,C.simpleSieve=b,C.fermatTest=T;var a=r("bn.js"),l=new a(24),i=new(r("miller-rabin")),e=new a(1),s=new a(2),c=new a(5),u=(new a(16),new a(8),new a(10)),o=new a(3),p=(new a(7),new a(11)),m=new a(4),f=(new a(12),null);function v(){if(f!==null)return f;var I=[];I[0]=2;for(var H=1,Z=3;Z<1048576;Z+=2){for(var P=Math.ceil(Math.sqrt(Z)),q=0;q<H&&I[q]<=P&&Z%I[q]!=0;q++);H!==q&&I[q]<=P||(I[H++]=Z)}return f=I,I}function b(I){for(var H=v(),Z=0;Z<H.length;Z++)if(I.modn(H[Z])===0)return I.cmpn(H[Z])===0;return!0}function T(I){var H=a.mont(I);return s.toRed(H).redPow(I.subn(1)).fromRed().cmpn(1)===0}function C(I,H){if(I<16)return new a(H===2||H===5?[140,123]:[140,39]);var Z,P;for(H=new a(H);;){for(Z=new a(d(Math.ceil(I/8)));Z.bitLength()>I;)Z.ishrn(1);if(Z.isEven()&&Z.iadd(e),Z.testn(1)||Z.iadd(s),H.cmp(s)){if(!H.cmp(c))for(;Z.mod(u).cmp(o);)Z.iadd(m)}else for(;Z.mod(l).cmp(p);)Z.iadd(m);if(b(P=Z.shrn(1))&&b(Z)&&T(P)&&T(Z)&&i.test(P)&&i.test(Z))return Z}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(r,y,_){y.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(r,y,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],405:[function(r,y,_){var d=_;d.version=r("../package.json").version,d.utils=r("./elliptic/utils"),d.rand=r("brorand"),d.curve=r("./elliptic/curve"),d.curves=r("./elliptic/curves"),d.ec=r("./elliptic/ec"),d.eddsa=r("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(r,y,_){var d=r("bn.js"),a=r("../utils"),l=a.getNAF,i=a.getJSF,e=a.assert;function s(u,o){this.type=u,this.p=new d(o.p,16),this.red=o.prime?d.red(o.prime):d.mont(this.p),this.zero=new d(0).toRed(this.red),this.one=new d(1).toRed(this.red),this.two=new d(2).toRed(this.red),this.n=o.n&&new d(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var p=this.n&&this.p.div(this.n);!p||p.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(u,o){this.curve=u,this.type=o,this.precomputed=null}y.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(u,o){e(u.precomputed);var p=u._getDoubles(),m=l(o,1,this._bitLength),f=(1<<p.step+1)-(p.step%2==0?2:1);f/=3;var v,b,T=[];for(v=0;v<m.length;v+=p.step){b=0;for(var C=v+p.step-1;C>=v;C--)b=(b<<1)+m[C];T.push(b)}for(var I=this.jpoint(null,null,null),H=this.jpoint(null,null,null),Z=f;Z>0;Z--){for(v=0;v<T.length;v++)(b=T[v])===Z?H=H.mixedAdd(p.points[v]):b===-Z&&(H=H.mixedAdd(p.points[v].neg()));I=I.add(H)}return I.toP()},s.prototype._wnafMul=function(u,o){var p=4,m=u._getNAFPoints(p);p=m.wnd;for(var f=m.points,v=l(o,p,this._bitLength),b=this.jpoint(null,null,null),T=v.length-1;T>=0;T--){for(var C=0;T>=0&&v[T]===0;T--)C++;if(T>=0&&C++,b=b.dblp(C),T<0)break;var I=v[T];e(I!==0),b=u.type==="affine"?I>0?b.mixedAdd(f[I-1>>1]):b.mixedAdd(f[-I-1>>1].neg()):I>0?b.add(f[I-1>>1]):b.add(f[-I-1>>1].neg())}return u.type==="affine"?b.toP():b},s.prototype._wnafMulAdd=function(u,o,p,m,f){var v,b,T,C=this._wnafT1,I=this._wnafT2,H=this._wnafT3,Z=0;for(v=0;v<m;v++){var P=(T=o[v])._getNAFPoints(u);C[v]=P.wnd,I[v]=P.points}for(v=m-1;v>=1;v-=2){var q=v-1,V=v;if(C[q]===1&&C[V]===1){var W=[o[q],null,null,o[V]];o[q].y.cmp(o[V].y)===0?(W[1]=o[q].add(o[V]),W[2]=o[q].toJ().mixedAdd(o[V].neg())):o[q].y.cmp(o[V].y.redNeg())===0?(W[1]=o[q].toJ().mixedAdd(o[V]),W[2]=o[q].add(o[V].neg())):(W[1]=o[q].toJ().mixedAdd(o[V]),W[2]=o[q].toJ().mixedAdd(o[V].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],R=i(p[q],p[V]);for(Z=Math.max(R[0].length,Z),H[q]=new Array(Z),H[V]=new Array(Z),b=0;b<Z;b++){var z=0|R[0][b],A=0|R[1][b];H[q][b]=$[3*(z+1)+(A+1)],H[V][b]=0,I[q]=W}}else H[q]=l(p[q],C[q],this._bitLength),H[V]=l(p[V],C[V],this._bitLength),Z=Math.max(H[q].length,Z),Z=Math.max(H[V].length,Z)}var g=this.jpoint(null,null,null),x=this._wnafT4;for(v=Z;v>=0;v--){for(var S=0;v>=0;){var E=!0;for(b=0;b<m;b++)x[b]=0|H[b][v],x[b]!==0&&(E=!1);if(!E)break;S++,v--}if(v>=0&&S++,g=g.dblp(S),v<0)break;for(b=0;b<m;b++){var O=x[b];O!==0&&(O>0?T=I[b][O-1>>1]:O<0&&(T=I[b][-O-1>>1].neg()),g=T.type==="affine"?g.mixedAdd(T):g.add(T))}}for(v=0;v<m;v++)I[v]=null;return f?g:g.toP()},s.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},s.prototype.decodePoint=function(u,o){u=a.toArray(u,o);var p=this.p.byteLength();if((u[0]===4||u[0]===6||u[0]===7)&&u.length-1==2*p)return u[0]===6?e(u[u.length-1]%2==0):u[0]===7&&e(u[u.length-1]%2==1),this.point(u.slice(1,1+p),u.slice(1+p,1+2*p));if((u[0]===2||u[0]===3)&&u.length-1===p)return this.pointFromX(u.slice(1,1+p),u[0]===3);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(u){return this.encode(u,!0)},c.prototype._encode=function(u){var o=this.curve.p.byteLength(),p=this.getX().toArray("be",o);return u?[this.getY().isEven()?2:3].concat(p):[4].concat(p,this.getY().toArray("be",o))},c.prototype.encode=function(u,o){return a.encode(this._encode(o),u)},c.prototype.precompute=function(u){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,u),o.beta=this._getBeta(),this.precomputed=o,this},c.prototype._hasDoubles=function(u){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return!!o&&o.points.length>=Math.ceil((u.bitLength()+1)/o.step)},c.prototype._getDoubles=function(u,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],m=this,f=0;f<o;f+=u){for(var v=0;v<u;v++)m=m.dbl();p.push(m)}return{step:u,points:p}},c.prototype._getNAFPoints=function(u){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],p=(1<<u)-1,m=p===1?null:this.dbl(),f=1;f<p;f++)o[f]=o[f-1].add(m);return{wnd:u,points:o}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(u){for(var o=this,p=0;p<u;p++)o=o.dbl();return o}},{"../utils":419,"bn.js":420}],407:[function(r,y,_){var d=r("../utils"),a=r("bn.js"),l=r("inherits"),i=r("./base"),e=d.assert;function s(u){this.twisted=(0|u.a)!=1,this.mOneA=this.twisted&&(0|u.a)==-1,this.extended=this.mOneA,i.call(this,"edwards",u),this.a=new a(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|u.c)==1}function c(u,o,p,m,f){i.BasePoint.call(this,u,"projective"),o===null&&p===null&&m===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(o,16),this.y=new a(p,16),this.z=m?new a(m,16):this.curve.one,this.t=f&&new a(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}l(s,i),y.exports=s,s.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)},s.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)},s.prototype.jpoint=function(u,o,p,m){return this.point(u,o,p,m)},s.prototype.pointFromX=function(u,o){(u=new a(u,16)).red||(u=u.toRed(this.red));var p=u.redSqr(),m=this.c2.redSub(this.a.redMul(p)),f=this.one.redSub(this.c2.redMul(this.d).redMul(p)),v=m.redMul(f.redInvm()),b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var T=b.fromRed().isOdd();return(o&&!T||!o&&T)&&(b=b.redNeg()),this.point(u,b)},s.prototype.pointFromY=function(u,o){(u=new a(u,16)).red||(u=u.toRed(this.red));var p=u.redSqr(),m=p.redSub(this.c2),f=p.redMul(this.d).redMul(this.c2).redSub(this.a),v=m.redMul(f.redInvm());if(v.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,u)}var b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==o&&(b=b.redNeg()),this.point(b,u)},s.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var o=u.x.redSqr(),p=u.y.redSqr(),m=o.redMul(this.a).redAdd(p),f=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(p)));return m.cmp(f)===0},l(c,i.BasePoint),s.prototype.pointFromJSON=function(u){return c.fromJSON(this,u)},s.prototype.point=function(u,o,p,m){return new c(this,u,o,p,m)},c.fromJSON=function(u,o){return new c(u,o[0],o[1],o[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var u=this.x.redSqr(),o=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var m=this.curve._mulA(u),f=this.x.redAdd(this.y).redSqr().redISub(u).redISub(o),v=m.redAdd(o),b=v.redSub(p),T=m.redSub(o),C=f.redMul(b),I=v.redMul(T),H=f.redMul(T),Z=b.redMul(v);return this.curve.point(C,I,Z,H)},c.prototype._projDbl=function(){var u,o,p,m,f,v,b=this.x.redAdd(this.y).redSqr(),T=this.x.redSqr(),C=this.y.redSqr();if(this.curve.twisted){var I=(m=this.curve._mulA(T)).redAdd(C);this.zOne?(u=b.redSub(T).redSub(C).redMul(I.redSub(this.curve.two)),o=I.redMul(m.redSub(C)),p=I.redSqr().redSub(I).redSub(I)):(f=this.z.redSqr(),v=I.redSub(f).redISub(f),u=b.redSub(T).redISub(C).redMul(v),o=I.redMul(m.redSub(C)),p=I.redMul(v))}else m=T.redAdd(C),f=this.curve._mulC(this.z).redSqr(),v=m.redSub(f).redSub(f),u=this.curve._mulC(b.redISub(m)).redMul(v),o=this.curve._mulC(m).redMul(T.redISub(C)),p=m.redMul(v);return this.curve.point(u,o,p)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(u){var o=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),p=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),m=this.t.redMul(this.curve.dd).redMul(u.t),f=this.z.redMul(u.z.redAdd(u.z)),v=p.redSub(o),b=f.redSub(m),T=f.redAdd(m),C=p.redAdd(o),I=v.redMul(b),H=T.redMul(C),Z=v.redMul(C),P=b.redMul(T);return this.curve.point(I,H,P,Z)},c.prototype._projAdd=function(u){var o,p,m=this.z.redMul(u.z),f=m.redSqr(),v=this.x.redMul(u.x),b=this.y.redMul(u.y),T=this.curve.d.redMul(v).redMul(b),C=f.redSub(T),I=f.redAdd(T),H=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(v).redISub(b),Z=m.redMul(C).redMul(H);return this.curve.twisted?(o=m.redMul(I).redMul(b.redSub(this.curve._mulA(v))),p=C.redMul(I)):(o=m.redMul(I).redMul(b.redSub(v)),p=this.curve._mulC(C).redMul(I)),this.curve.point(Z,o,p)},c.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)},c.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)},c.prototype.mulAdd=function(u,o,p){return this.curve._wnafMulAdd(1,[this,o],[u,p],2,!1)},c.prototype.jmulAdd=function(u,o,p){return this.curve._wnafMulAdd(1,[this,o],[u,p],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0},c.prototype.eqXToP=function(u){var o=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var p=u.clone(),m=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(m),this.x.cmp(o)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(r,y,_){var d=_;d.base=r("./base"),d.short=r("./short"),d.mont=r("./mont"),d.edwards=r("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(r,y,_){var d=r("bn.js"),a=r("inherits"),l=r("./base"),i=r("../utils");function e(c){l.call(this,"mont",c),this.a=new d(c.a,16).toRed(this.red),this.b=new d(c.b,16).toRed(this.red),this.i4=new d(4).toRed(this.red).redInvm(),this.two=new d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(c,u,o){l.BasePoint.call(this,c,"projective"),u===null&&o===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new d(u,16),this.z=new d(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(e,l),y.exports=e,e.prototype.validate=function(c){var u=c.normalize().x,o=u.redSqr(),p=o.redMul(u).redAdd(o.redMul(this.a)).redAdd(u);return p.redSqrt().redSqr().cmp(p)===0},a(s,l.BasePoint),e.prototype.decodePoint=function(c,u){return this.point(i.toArray(c,u),1)},e.prototype.point=function(c,u){return new s(this,c,u)},e.prototype.pointFromJSON=function(c){return s.fromJSON(this,c)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(c,u){return new s(c,u[0],u[1]||c.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.z.cmpn(0)===0},s.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),u=this.x.redSub(this.z).redSqr(),o=c.redSub(u),p=c.redMul(u),m=o.redMul(u.redAdd(this.curve.a24.redMul(o)));return this.curve.point(p,m)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(c,u){var o=this.x.redAdd(this.z),p=this.x.redSub(this.z),m=c.x.redAdd(c.z),f=c.x.redSub(c.z).redMul(o),v=m.redMul(p),b=u.z.redMul(f.redAdd(v).redSqr()),T=u.x.redMul(f.redISub(v).redSqr());return this.curve.point(b,T)},s.prototype.mul=function(c){for(var u=c.clone(),o=this,p=this.curve.point(null,null),m=[];u.cmpn(0)!==0;u.iushrn(1))m.push(u.andln(1));for(var f=m.length-1;f>=0;f--)m[f]===0?(o=o.diffAdd(p,this),p=p.dbl()):(p=o.diffAdd(p,this),o=o.dbl());return p},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(r,y,_){var d=r("../utils"),a=r("bn.js"),l=r("inherits"),i=r("./base"),e=d.assert;function s(o){i.call(this,"short",o),this.a=new a(o.a,16).toRed(this.red),this.b=new a(o.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(o),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(o,p,m,f){i.BasePoint.call(this,o,"affine"),p===null&&m===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(p,16),this.y=new a(m,16),f&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(o,p,m,f){i.BasePoint.call(this,o,"jacobian"),p===null&&m===null&&f===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(p,16),this.y=new a(m,16),this.z=new a(f,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}l(s,i),y.exports=s,s.prototype._getEndomorphism=function(o){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var p,m;if(o.beta)p=new a(o.beta,16).toRed(this.red);else{var f=this._getEndoRoots(this.p);p=(p=f[0].cmp(f[1])<0?f[0]:f[1]).toRed(this.red)}if(o.lambda)m=new a(o.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(p))===0?m=v[0]:(m=v[1],e(this.g.mul(m).x.cmp(this.g.x.redMul(p))===0))}return{beta:p,lambda:m,basis:o.basis?o.basis.map((function(b){return{a:new a(b.a,16),b:new a(b.b,16)}})):this._getEndoBasis(m)}}},s.prototype._getEndoRoots=function(o){var p=o===this.p?this.red:a.mont(o),m=new a(2).toRed(p).redInvm(),f=m.redNeg(),v=new a(3).toRed(p).redNeg().redSqrt().redMul(m);return[f.redAdd(v).fromRed(),f.redSub(v).fromRed()]},s.prototype._getEndoBasis=function(o){for(var p,m,f,v,b,T,C,I,H,Z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=o,q=this.n.clone(),V=new a(1),W=new a(0),$=new a(0),R=new a(1),z=0;P.cmpn(0)!==0;){var A=q.div(P);I=q.sub(A.mul(P)),H=$.sub(A.mul(V));var g=R.sub(A.mul(W));if(!f&&I.cmp(Z)<0)p=C.neg(),m=V,f=I.neg(),v=H;else if(f&&++z==2)break;C=I,q=P,P=I,$=V,V=H,R=W,W=g}b=I.neg(),T=H;var x=f.sqr().add(v.sqr());return b.sqr().add(T.sqr()).cmp(x)>=0&&(b=p,T=m),f.negative&&(f=f.neg(),v=v.neg()),b.negative&&(b=b.neg(),T=T.neg()),[{a:f,b:v},{a:b,b:T}]},s.prototype._endoSplit=function(o){var p=this.endo.basis,m=p[0],f=p[1],v=f.b.mul(o).divRound(this.n),b=m.b.neg().mul(o).divRound(this.n),T=v.mul(m.a),C=b.mul(f.a),I=v.mul(m.b),H=b.mul(f.b);return{k1:o.sub(T).sub(C),k2:I.add(H).neg()}},s.prototype.pointFromX=function(o,p){(o=new a(o,16)).red||(o=o.toRed(this.red));var m=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),f=m.redSqrt();if(f.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var v=f.fromRed().isOdd();return(p&&!v||!p&&v)&&(f=f.redNeg()),this.point(o,f)},s.prototype.validate=function(o){if(o.inf)return!0;var p=o.x,m=o.y,f=this.a.redMul(p),v=p.redSqr().redMul(p).redIAdd(f).redIAdd(this.b);return m.redSqr().redISub(v).cmpn(0)===0},s.prototype._endoWnafMulAdd=function(o,p,m){for(var f=this._endoWnafT1,v=this._endoWnafT2,b=0;b<o.length;b++){var T=this._endoSplit(p[b]),C=o[b],I=C._getBeta();T.k1.negative&&(T.k1.ineg(),C=C.neg(!0)),T.k2.negative&&(T.k2.ineg(),I=I.neg(!0)),f[2*b]=C,f[2*b+1]=I,v[2*b]=T.k1,v[2*b+1]=T.k2}for(var H=this._wnafMulAdd(1,f,v,2*b,m),Z=0;Z<2*b;Z++)f[Z]=null,v[Z]=null;return H},l(c,i.BasePoint),s.prototype.point=function(o,p,m){return new c(this,o,p,m)},s.prototype.pointFromJSON=function(o,p){return c.fromJSON(this,o,p)},c.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var p=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var m=this.curve,f=function(v){return m.point(v.x.redMul(m.endo.beta),v.y)};o.beta=p,p.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(f)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(f)}}}return p}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(o,p,m){typeof p=="string"&&(p=JSON.parse(p));var f=o.point(p[0],p[1],m);if(!p[2])return f;function v(T){return o.point(T[0],T[1],m)}var b=p[2];return f.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[f].concat(b.doubles.points.map(v))},naf:b.naf&&{wnd:b.naf.wnd,points:[f].concat(b.naf.points.map(v))}},f},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var p=this.y.redSub(o.y);p.cmpn(0)!==0&&(p=p.redMul(this.x.redSub(o.x).redInvm()));var m=p.redSqr().redISub(this.x).redISub(o.x),f=p.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,f)},c.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,m=this.x.redSqr(),f=o.redInvm(),v=m.redAdd(m).redIAdd(m).redIAdd(p).redMul(f),b=v.redSqr().redISub(this.x.redAdd(this.x)),T=v.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,T)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(o){return o=new a(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)},c.prototype.mulAdd=function(o,p,m){var f=[this,p],v=[o,m];return this.curve.endo?this.curve._endoWnafMulAdd(f,v):this.curve._wnafMulAdd(1,f,v,2)},c.prototype.jmulAdd=function(o,p,m){var f=[this,p],v=[o,m];return this.curve.endo?this.curve._endoWnafMulAdd(f,v,!0):this.curve._wnafMulAdd(1,f,v,2,!0)},c.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)},c.prototype.neg=function(o){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var m=this.precomputed,f=function(v){return v.neg()};p.precomputed={naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(f)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(f)}}}return p},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(u,i.BasePoint),s.prototype.jpoint=function(o,p,m){return new u(this,o,p,m)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),p=o.redSqr(),m=this.x.redMul(p),f=this.y.redMul(p).redMul(o);return this.curve.point(m,f)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var p=o.z.redSqr(),m=this.z.redSqr(),f=this.x.redMul(p),v=o.x.redMul(m),b=this.y.redMul(p.redMul(o.z)),T=o.y.redMul(m.redMul(this.z)),C=f.redSub(v),I=b.redSub(T);if(C.cmpn(0)===0)return I.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var H=C.redSqr(),Z=H.redMul(C),P=f.redMul(H),q=I.redSqr().redIAdd(Z).redISub(P).redISub(P),V=I.redMul(P.redISub(q)).redISub(b.redMul(Z)),W=this.z.redMul(o.z).redMul(C);return this.curve.jpoint(q,V,W)},u.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var p=this.z.redSqr(),m=this.x,f=o.x.redMul(p),v=this.y,b=o.y.redMul(p).redMul(this.z),T=m.redSub(f),C=v.redSub(b);if(T.cmpn(0)===0)return C.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=T.redSqr(),H=I.redMul(T),Z=m.redMul(I),P=C.redSqr().redIAdd(H).redISub(Z).redISub(Z),q=C.redMul(Z.redISub(P)).redISub(v.redMul(H)),V=this.z.redMul(T);return this.curve.jpoint(P,q,V)},u.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var m=this;for(p=0;p<o;p++)m=m.dbl();return m}var f=this.curve.a,v=this.curve.tinv,b=this.x,T=this.y,C=this.z,I=C.redSqr().redSqr(),H=T.redAdd(T);for(p=0;p<o;p++){var Z=b.redSqr(),P=H.redSqr(),q=P.redSqr(),V=Z.redAdd(Z).redIAdd(Z).redIAdd(f.redMul(I)),W=b.redMul(P),$=V.redSqr().redISub(W.redAdd(W)),R=W.redISub($),z=V.redMul(R);z=z.redIAdd(z).redISub(q);var A=H.redMul(C);p+1<o&&(I=I.redMul(q)),b=$,C=A,H=z}return this.curve.jpoint(b,H.redMul(v),C)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var o,p,m;if(this.zOne){var f=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),T=this.x.redAdd(v).redSqr().redISub(f).redISub(b);T=T.redIAdd(T);var C=f.redAdd(f).redIAdd(f),I=C.redSqr().redISub(T).redISub(T),H=b.redIAdd(b);H=(H=H.redIAdd(H)).redIAdd(H),o=I,p=C.redMul(T.redISub(I)).redISub(H),m=this.y.redAdd(this.y)}else{var Z=this.x.redSqr(),P=this.y.redSqr(),q=P.redSqr(),V=this.x.redAdd(P).redSqr().redISub(Z).redISub(q);V=V.redIAdd(V);var W=Z.redAdd(Z).redIAdd(Z),$=W.redSqr(),R=q.redIAdd(q);R=(R=R.redIAdd(R)).redIAdd(R),o=$.redISub(V).redISub(V),p=W.redMul(V.redISub(o)).redISub(R),m=(m=this.y.redMul(this.z)).redIAdd(m)}return this.curve.jpoint(o,p,m)},u.prototype._threeDbl=function(){var o,p,m;if(this.zOne){var f=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),T=this.x.redAdd(v).redSqr().redISub(f).redISub(b);T=T.redIAdd(T);var C=f.redAdd(f).redIAdd(f).redIAdd(this.curve.a),I=C.redSqr().redISub(T).redISub(T);o=I;var H=b.redIAdd(b);H=(H=H.redIAdd(H)).redIAdd(H),p=C.redMul(T.redISub(I)).redISub(H),m=this.y.redAdd(this.y)}else{var Z=this.z.redSqr(),P=this.y.redSqr(),q=this.x.redMul(P),V=this.x.redSub(Z).redMul(this.x.redAdd(Z));V=V.redAdd(V).redIAdd(V);var W=q.redIAdd(q),$=(W=W.redIAdd(W)).redAdd(W);o=V.redSqr().redISub($),m=this.y.redAdd(this.z).redSqr().redISub(P).redISub(Z);var R=P.redSqr();R=(R=(R=R.redIAdd(R)).redIAdd(R)).redIAdd(R),p=V.redMul(W.redISub(o)).redISub(R)}return this.curve.jpoint(o,p,m)},u.prototype._dbl=function(){var o=this.curve.a,p=this.x,m=this.y,f=this.z,v=f.redSqr().redSqr(),b=p.redSqr(),T=m.redSqr(),C=b.redAdd(b).redIAdd(b).redIAdd(o.redMul(v)),I=p.redAdd(p),H=(I=I.redIAdd(I)).redMul(T),Z=C.redSqr().redISub(H.redAdd(H)),P=H.redISub(Z),q=T.redSqr();q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var V=C.redMul(P).redISub(q),W=m.redAdd(m).redMul(f);return this.curve.jpoint(Z,V,W)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),p=this.y.redSqr(),m=this.z.redSqr(),f=p.redSqr(),v=o.redAdd(o).redIAdd(o),b=v.redSqr(),T=this.x.redAdd(p).redSqr().redISub(o).redISub(f),C=(T=(T=(T=T.redIAdd(T)).redAdd(T).redIAdd(T)).redISub(b)).redSqr(),I=f.redIAdd(f);I=(I=(I=I.redIAdd(I)).redIAdd(I)).redIAdd(I);var H=v.redIAdd(T).redSqr().redISub(b).redISub(C).redISub(I),Z=p.redMul(H);Z=(Z=Z.redIAdd(Z)).redIAdd(Z);var P=this.x.redMul(C).redISub(Z);P=(P=P.redIAdd(P)).redIAdd(P);var q=this.y.redMul(H.redMul(I.redISub(H)).redISub(T.redMul(C)));q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var V=this.z.redAdd(T).redSqr().redISub(m).redISub(C);return this.curve.jpoint(P,q,V)},u.prototype.mul=function(o,p){return o=new a(o,p),this.curve._wnafMul(this,o)},u.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var p=this.z.redSqr(),m=o.z.redSqr();if(this.x.redMul(m).redISub(o.x.redMul(p)).cmpn(0)!==0)return!1;var f=p.redMul(this.z),v=m.redMul(o.z);return this.y.redMul(v).redISub(o.y.redMul(f)).cmpn(0)===0},u.prototype.eqXToP=function(o){var p=this.z.redSqr(),m=o.toRed(this.curve.red).redMul(p);if(this.x.cmp(m)===0)return!0;for(var f=o.clone(),v=this.curve.redN.redMul(p);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(v),this.x.cmp(m)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(r,y,_){var d,a=_,l=r("hash.js"),i=r("./curve"),e=r("./utils").assert;function s(u){u.type==="short"?this.curve=new i.short(u):u.type==="edwards"?this.curve=new i.edwards(u):this.curve=new i.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,e(this.g.validate(),"Invalid curve"),e(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(u,o){Object.defineProperty(a,u,{configurable:!0,enumerable:!0,get:function(){var p=new s(o);return Object.defineProperty(a,u,{configurable:!0,enumerable:!0,value:p}),p}})}a.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:l.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:l.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{d=r("./precomputed/secp256k1")}catch{d=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(r,y,_){var d=r("bn.js"),a=r("hmac-drbg"),l=r("../utils"),i=r("../curves"),e=r("brorand"),s=l.assert,c=r("./key"),u=r("./signature");function o(p){if(!(this instanceof o))return new o(p);typeof p=="string"&&(s(Object.prototype.hasOwnProperty.call(i,p),"Unknown curve "+p),p=i[p]),p instanceof i.PresetCurve&&(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}y.exports=o,o.prototype.keyPair=function(p){return new c(this,p)},o.prototype.keyFromPrivate=function(p,m){return c.fromPrivate(this,p,m)},o.prototype.keyFromPublic=function(p,m){return c.fromPublic(this,p,m)},o.prototype.genKeyPair=function(p){p||(p={});for(var m=new a({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||e(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),f=this.n.byteLength(),v=this.n.sub(new d(2));;){var b=new d(m.generate(f));if(!(b.cmp(v)>0))return b.iaddn(1),this.keyFromPrivate(b)}},o.prototype._truncateToN=function(p,m){var f=8*p.byteLength()-this.n.bitLength();return f>0&&(p=p.ushrn(f)),!m&&p.cmp(this.n)>=0?p.sub(this.n):p},o.prototype.sign=function(p,m,f,v){typeof f=="object"&&(v=f,f=null),v||(v={}),m=this.keyFromPrivate(m,f),p=this._truncateToN(new d(p,16));for(var b=this.n.byteLength(),T=m.getPrivate().toArray("be",b),C=p.toArray("be",b),I=new a({hash:this.hash,entropy:T,nonce:C,pers:v.pers,persEnc:v.persEnc||"utf8"}),H=this.n.sub(new d(1)),Z=0;;Z++){var P=v.k?v.k(Z):new d(I.generate(this.n.byteLength()));if(!((P=this._truncateToN(P,!0)).cmpn(1)<=0||P.cmp(H)>=0)){var q=this.g.mul(P);if(!q.isInfinity()){var V=q.getX(),W=V.umod(this.n);if(W.cmpn(0)!==0){var $=P.invm(this.n).mul(W.mul(m.getPrivate()).iadd(p));if(($=$.umod(this.n)).cmpn(0)!==0){var R=(q.getY().isOdd()?1:0)|(V.cmp(W)!==0?2:0);return v.canonical&&$.cmp(this.nh)>0&&($=this.n.sub($),R^=1),new u({r:W,s:$,recoveryParam:R})}}}}}},o.prototype.verify=function(p,m,f,v){p=this._truncateToN(new d(p,16)),f=this.keyFromPublic(f,v);var b=(m=new u(m,"hex")).r,T=m.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||T.cmpn(1)<0||T.cmp(this.n)>=0)return!1;var C,I=T.invm(this.n),H=I.mul(p).umod(this.n),Z=I.mul(b).umod(this.n);return this.curve._maxwellTrick?!(C=this.g.jmulAdd(H,f.getPublic(),Z)).isInfinity()&&C.eqXToP(b):!(C=this.g.mulAdd(H,f.getPublic(),Z)).isInfinity()&&C.getX().umod(this.n).cmp(b)===0},o.prototype.recoverPubKey=function(p,m,f,v){s((3&f)===f,"The recovery param is more than two bits"),m=new u(m,v);var b=this.n,T=new d(p),C=m.r,I=m.s,H=1&f,Z=f>>1;if(C.cmp(this.curve.p.umod(this.curve.n))>=0&&Z)throw new Error("Unable to find sencond key candinate");C=Z?this.curve.pointFromX(C.add(this.curve.n),H):this.curve.pointFromX(C,H);var P=m.r.invm(b),q=b.sub(T).mul(P).umod(b),V=I.mul(P).umod(b);return this.g.mulAdd(q,C,V)},o.prototype.getKeyRecoveryParam=function(p,m,f,v){if((m=new u(m,v)).recoveryParam!==null)return m.recoveryParam;for(var b=0;b<4;b++){var T;try{T=this.recoverPubKey(p,m,b)}catch{continue}if(T.eq(f))return b}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(r,y,_){var d=r("bn.js"),a=r("../utils").assert;function l(i,e){this.ec=i,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}y.exports=l,l.fromPublic=function(i,e,s){return e instanceof l?e:new l(i,{pub:e,pubEnc:s})},l.fromPrivate=function(i,e,s){return e instanceof l?e:new l(i,{priv:e,privEnc:s})},l.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},l.prototype.getPublic=function(i,e){return typeof i=="string"&&(e=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,i):this.pub},l.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},l.prototype._importPrivate=function(i,e){this.priv=new d(i,e||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(i,e){if(i.x||i.y)return this.ec.curve.type==="mont"?a(i.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(i.x&&i.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(i.x,i.y));this.pub=this.ec.curve.decodePoint(i,e)},l.prototype.derive=function(i){return i.validate()||a(i.validate(),"public point not validated"),i.mul(this.priv).getX()},l.prototype.sign=function(i,e,s){return this.ec.sign(i,this,e,s)},l.prototype.verify=function(i,e){return this.ec.verify(i,e,this)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(r,y,_){var d=r("bn.js"),a=r("../utils"),l=a.assert;function i(o,p){if(o instanceof i)return o;this._importDER(o,p)||(l(o.r&&o.s,"Signature without r or s"),this.r=new d(o.r,16),this.s=new d(o.s,16),o.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=o.recoveryParam)}function e(){this.place=0}function s(o,p){var m=o[p.place++];if(!(128&m))return m;var f=15&m;if(f===0||f>4)return!1;for(var v=0,b=0,T=p.place;b<f;b++,T++)v<<=8,v|=o[T],v>>>=0;return!(v<=127)&&(p.place=T,v)}function c(o){for(var p=0,m=o.length-1;!o[p]&&!(128&o[p+1])&&p<m;)p++;return p===0?o:o.slice(p)}function u(o,p){if(p<128)o.push(p);else{var m=1+(Math.log(p)/Math.LN2>>>3);for(o.push(128|m);--m;)o.push(p>>>(m<<3)&255);o.push(p)}}y.exports=i,i.prototype._importDER=function(o,p){o=a.toArray(o,p);var m=new e;if(o[m.place++]!==48)return!1;var f=s(o,m);if(f===!1||f+m.place!==o.length||o[m.place++]!==2)return!1;var v=s(o,m);if(v===!1)return!1;var b=o.slice(m.place,v+m.place);if(m.place+=v,o[m.place++]!==2)return!1;var T=s(o,m);if(T===!1||o.length!==T+m.place)return!1;var C=o.slice(m.place,T+m.place);if(b[0]===0){if(!(128&b[1]))return!1;b=b.slice(1)}if(C[0]===0){if(!(128&C[1]))return!1;C=C.slice(1)}return this.r=new d(b),this.s=new d(C),this.recoveryParam=null,!0},i.prototype.toDER=function(o){var p=this.r.toArray(),m=this.s.toArray();for(128&p[0]&&(p=[0].concat(p)),128&m[0]&&(m=[0].concat(m)),p=c(p),m=c(m);!(m[0]||128&m[1]);)m=m.slice(1);var f=[2];u(f,p.length),(f=f.concat(p)).push(2),u(f,m.length);var v=f.concat(m),b=[48];return u(b,v.length),b=b.concat(v),a.encode(b,o)}},{"../utils":419,"bn.js":420}],415:[function(r,y,_){var d=r("hash.js"),a=r("../curves"),l=r("../utils"),i=l.assert,e=l.parseBytes,s=r("./key"),c=r("./signature");function u(o){if(i(o==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(o);o=a[o].curve,this.curve=o,this.g=o.g,this.g.precompute(o.n.bitLength()+1),this.pointClass=o.point().constructor,this.encodingLength=Math.ceil(o.n.bitLength()/8),this.hash=d.sha512}y.exports=u,u.prototype.sign=function(o,p){o=e(o);var m=this.keyFromSecret(p),f=this.hashInt(m.messagePrefix(),o),v=this.g.mul(f),b=this.encodePoint(v),T=this.hashInt(b,m.pubBytes(),o).mul(m.priv()),C=f.add(T).umod(this.curve.n);return this.makeSignature({R:v,S:C,Rencoded:b})},u.prototype.verify=function(o,p,m){o=e(o),p=this.makeSignature(p);var f=this.keyFromPublic(m),v=this.hashInt(p.Rencoded(),f.pubBytes(),o),b=this.g.mul(p.S());return p.R().add(f.pub().mul(v)).eq(b)},u.prototype.hashInt=function(){for(var o=this.hash(),p=0;p<arguments.length;p++)o.update(arguments[p]);return l.intFromLE(o.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(o){return s.fromPublic(this,o)},u.prototype.keyFromSecret=function(o){return s.fromSecret(this,o)},u.prototype.makeSignature=function(o){return o instanceof c?o:new c(this,o)},u.prototype.encodePoint=function(o){var p=o.getY().toArray("le",this.encodingLength);return p[this.encodingLength-1]|=o.getX().isOdd()?128:0,p},u.prototype.decodePoint=function(o){var p=(o=l.parseBytes(o)).length-1,m=o.slice(0,p).concat(-129&o[p]),f=(128&o[p])!=0,v=l.intFromLE(m);return this.curve.pointFromY(v,f)},u.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(o){return l.intFromLE(o)},u.prototype.isPoint=function(o){return o instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(r,y,_){var d=r("../utils"),a=d.assert,l=d.parseBytes,i=d.cachedProperty;function e(s,c){this.eddsa=s,this._secret=l(c.secret),s.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=l(c.pub)}e.fromPublic=function(s,c){return c instanceof e?c:new e(s,{pub:c})},e.fromSecret=function(s,c){return c instanceof e?c:new e(s,{secret:c})},e.prototype.secret=function(){return this._secret},i(e,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),i(e,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),i(e,"privBytes",(function(){var s=this.eddsa,c=this.hash(),u=s.encodingLength-1,o=c.slice(0,s.encodingLength);return o[0]&=248,o[u]&=127,o[u]|=64,o})),i(e,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),i(e,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),i(e,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),e.prototype.sign=function(s){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(s,this)},e.prototype.verify=function(s,c){return this.eddsa.verify(s,c,this)},e.prototype.getSecret=function(s){return a(this._secret,"KeyPair is public only"),d.encode(this.secret(),s)},e.prototype.getPublic=function(s){return d.encode(this.pubBytes(),s)},y.exports=e},{"../utils":419}],417:[function(r,y,_){var d=r("bn.js"),a=r("../utils"),l=a.assert,i=a.cachedProperty,e=a.parseBytes;function s(c,u){this.eddsa=c,typeof u!="object"&&(u=e(u)),Array.isArray(u)&&(u={R:u.slice(0,c.encodingLength),S:u.slice(c.encodingLength)}),l(u.R&&u.S,"Signature without R or S"),c.isPoint(u.R)&&(this._R=u.R),u.S instanceof d&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}i(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),i(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),i(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),i(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},y.exports=s},{"../utils":419,"bn.js":420}],418:[function(r,y,_){y.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(r,y,_){var d=_,a=r("bn.js"),l=r("minimalistic-assert"),i=r("minimalistic-crypto-utils");d.assert=l,d.toArray=i.toArray,d.zero2=i.zero2,d.toHex=i.toHex,d.encode=i.encode,d.getNAF=function(e,s,c){var u=new Array(Math.max(e.bitLength(),c)+1);u.fill(0);for(var o=1<<s+1,p=e.clone(),m=0;m<u.length;m++){var f,v=p.andln(o-1);p.isOdd()?(f=v>(o>>1)-1?(o>>1)-v:v,p.isubn(f)):f=0,u[m]=f,p.iushrn(1)}return u},d.getJSF=function(e,s){var c=[[],[]];e=e.clone(),s=s.clone();for(var u,o=0,p=0;e.cmpn(-o)>0||s.cmpn(-p)>0;){var m,f,v=e.andln(3)+o&3,b=s.andln(3)+p&3;v===3&&(v=-1),b===3&&(b=-1),m=(1&v)==0?0:(u=e.andln(7)+o&7)!==3&&u!==5||b!==2?v:-v,c[0].push(m),f=(1&b)==0?0:(u=s.andln(7)+p&7)!==3&&u!==5||v!==2?b:-b,c[1].push(f),2*o===m+1&&(o=1-o),2*p===f+1&&(p=1-p),e.iushrn(1),s.iushrn(1)}return c},d.cachedProperty=function(e,s,c){var u="_"+s;e.prototype[s]=function(){return this[u]!==void 0?this[u]:this[u]=c.call(this)}},d.parseBytes=function(e){return typeof e=="string"?d.toArray(e,"hex"):e},d.intFromLE=function(e){return new a(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(r,y,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],421:[function(r,y,_){y.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(r,y,_){var d=Object.create||function(P){var q=function(){};return q.prototype=P,new q},a=Object.keys||function(P){var q=[];for(var V in P)Object.prototype.hasOwnProperty.call(P,V)&&q.push(V);return V},l=Function.prototype.bind||function(P){var q=this;return function(){return q.apply(P,arguments)}};function i(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=d(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}y.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0;var e,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),e=c.x===0}catch{e=!1}function u(P){return P._maxListeners===void 0?i.defaultMaxListeners:P._maxListeners}function o(P,q,V){if(q)P.call(V);else for(var W=P.length,$=Z(P,W),R=0;R<W;++R)$[R].call(V)}function p(P,q,V,W){if(q)P.call(V,W);else for(var $=P.length,R=Z(P,$),z=0;z<$;++z)R[z].call(V,W)}function m(P,q,V,W,$){if(q)P.call(V,W,$);else for(var R=P.length,z=Z(P,R),A=0;A<R;++A)z[A].call(V,W,$)}function f(P,q,V,W,$,R){if(q)P.call(V,W,$,R);else for(var z=P.length,A=Z(P,z),g=0;g<z;++g)A[g].call(V,W,$,R)}function v(P,q,V,W){if(q)P.apply(V,W);else for(var $=P.length,R=Z(P,$),z=0;z<$;++z)R[z].apply(V,W)}function b(P,q,V,W){var $,R,z;if(typeof V!="function")throw new TypeError('"listener" argument must be a function');if((R=P._events)?(R.newListener&&(P.emit("newListener",q,V.listener?V.listener:V),R=P._events),z=R[q]):(R=P._events=d(null),P._eventsCount=0),z){if(typeof z=="function"?z=R[q]=W?[V,z]:[z,V]:W?z.unshift(V):z.push(V),!z.warned&&($=u(P))&&$>0&&z.length>$){z.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+z.length+' "'+String(q)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');A.name="MaxListenersExceededWarning",A.emitter=P,A.type=q,A.count=z.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",A.name,A.message)}}else z=R[q]=V,++P._eventsCount;return P}function T(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var P=new Array(arguments.length),q=0;q<P.length;++q)P[q]=arguments[q];this.listener.apply(this.target,P)}}function C(P,q,V){var W={fired:!1,wrapFn:void 0,target:P,type:q,listener:V},$=l.call(T,W);return $.listener=V,W.wrapFn=$,$}function I(P,q,V){var W=P._events;if(!W)return[];var $=W[q];return $?typeof $=="function"?V?[$.listener||$]:[$]:V?(function(R){for(var z=new Array(R.length),A=0;A<z.length;++A)z[A]=R[A].listener||R[A];return z})($):Z($,$.length):[]}function H(P){var q=this._events;if(q){var V=q[P];if(typeof V=="function")return 1;if(V)return V.length}return 0}function Z(P,q){for(var V=new Array(q),W=0;W<q;++W)V[W]=P[W];return V}e?Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(P){if(typeof P!="number"||P<0||P!=P)throw new TypeError('"defaultMaxListeners" must be a positive number');s=P}}):i.defaultMaxListeners=s,i.prototype.setMaxListeners=function(P){if(typeof P!="number"||P<0||isNaN(P))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=P,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(P){var q,V,W,$,R,z,A=P==="error";if(z=this._events)A=A&&z.error==null;else if(!A)return!1;if(A){if(arguments.length>1&&(q=arguments[1]),q instanceof Error)throw q;var g=new Error('Unhandled "error" event. ('+q+")");throw g.context=q,g}if(!(V=z[P]))return!1;var x=typeof V=="function";switch(W=arguments.length){case 1:o(V,x,this);break;case 2:p(V,x,this,arguments[1]);break;case 3:m(V,x,this,arguments[1],arguments[2]);break;case 4:f(V,x,this,arguments[1],arguments[2],arguments[3]);break;default:for($=new Array(W-1),R=1;R<W;R++)$[R-1]=arguments[R];v(V,x,this,$)}return!0},i.prototype.addListener=function(P,q){return b(this,P,q,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(P,q){return b(this,P,q,!0)},i.prototype.once=function(P,q){if(typeof q!="function")throw new TypeError('"listener" argument must be a function');return this.on(P,C(this,P,q)),this},i.prototype.prependOnceListener=function(P,q){if(typeof q!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(P,C(this,P,q)),this},i.prototype.removeListener=function(P,q){var V,W,$,R,z;if(typeof q!="function")throw new TypeError('"listener" argument must be a function');if(!(W=this._events))return this;if(!(V=W[P]))return this;if(V===q||V.listener===q)--this._eventsCount==0?this._events=d(null):(delete W[P],W.removeListener&&this.emit("removeListener",P,V.listener||q));else if(typeof V!="function"){for($=-1,R=V.length-1;R>=0;R--)if(V[R]===q||V[R].listener===q){z=V[R].listener,$=R;break}if($<0)return this;$===0?V.shift():(function(A,g){for(var x=g,S=x+1,E=A.length;S<E;x+=1,S+=1)A[x]=A[S];A.pop()})(V,$),V.length===1&&(W[P]=V[0]),W.removeListener&&this.emit("removeListener",P,z||q)}return this},i.prototype.removeAllListeners=function(P){var q,V,W;if(!(V=this._events))return this;if(!V.removeListener)return arguments.length===0?(this._events=d(null),this._eventsCount=0):V[P]&&(--this._eventsCount==0?this._events=d(null):delete V[P]),this;if(arguments.length===0){var $,R=a(V);for(W=0;W<R.length;++W)($=R[W])!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=d(null),this._eventsCount=0,this}if(typeof(q=V[P])=="function")this.removeListener(P,q);else if(q)for(W=q.length-1;W>=0;W--)this.removeListener(P,q[W]);return this},i.prototype.listeners=function(P){return I(this,P,!0)},i.prototype.rawListeners=function(P){return I(this,P,!1)},i.listenerCount=function(P,q){return typeof P.listenerCount=="function"?P.listenerCount(q):H.call(P,q)},i.prototype.listenerCount=H,i.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("md5.js");y.exports=function(l,i,e,s){if(d.isBuffer(l)||(l=d.from(l,"binary")),i&&(d.isBuffer(i)||(i=d.from(i,"binary")),i.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=e/8,u=d.alloc(c),o=d.alloc(s||0),p=d.alloc(0);c>0||s>0;){var m=new a;m.update(p),m.update(l),i&&m.update(i),p=m.digest();var f=0;if(c>0){var v=u.length-c;f=Math.min(c,p.length),p.copy(u,v,0,f),c-=f}if(f<p.length&&s>0){var b=o.length-s,T=Math.min(s,p.length-f);p.copy(o,b,f,f+T),s-=T}}return p.fill(0),{key:u,iv:o}}},{"md5.js":450,"safe-buffer":494}],424:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvParserStream=_.ParserOptions=_.parseFile=_.parseStream=_.parseString=_.parse=_.FormatterOptions=_.CsvFormatterStream=_.writeToPath=_.writeToString=_.writeToBuffer=_.writeToStream=_.write=_.format=void 0;var d=r("@fast-csv/format");Object.defineProperty(_,"format",{enumerable:!0,get:function(){return d.format}}),Object.defineProperty(_,"write",{enumerable:!0,get:function(){return d.write}}),Object.defineProperty(_,"writeToStream",{enumerable:!0,get:function(){return d.writeToStream}}),Object.defineProperty(_,"writeToBuffer",{enumerable:!0,get:function(){return d.writeToBuffer}}),Object.defineProperty(_,"writeToString",{enumerable:!0,get:function(){return d.writeToString}}),Object.defineProperty(_,"writeToPath",{enumerable:!0,get:function(){return d.writeToPath}}),Object.defineProperty(_,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}}),Object.defineProperty(_,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}});var a=r("@fast-csv/parse");Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(_,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(_,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(_,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(_,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(_,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("readable-stream").Transform;function l(i){a.call(this),this._block=d.allocUnsafe(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r("inherits")(l,a),l.prototype._transform=function(i,e,s){var c=null;try{this.update(i,e)}catch(u){c=u}s(c)},l.prototype._flush=function(i){var e=null;try{this.push(this.digest())}catch(s){e=s}i(e)},l.prototype.update=function(i,e){if((function(m,f){if(!d.isBuffer(m)&&typeof m!="string")throw new TypeError(f+" must be a string or a buffer")})(i,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(i)||(i=d.from(i,e));for(var s=this._block,c=0;this._blockOffset+i.length-c>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)s[u++]=i[c++];this._update(),this._blockOffset=0}for(;c<i.length;)s[this._blockOffset++]=i[c++];for(var o=0,p=8*i.length;p>0;++o)this._length[o]+=p,(p=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*p);return this},l.prototype._update=function(){throw new Error("_update is not implemented")},l.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();i!==void 0&&(e=e.toString(i)),this._block.fill(0),this._blockOffset=0;for(var s=0;s<4;++s)this._length[s]=0;return e},l.prototype._digest=function(){throw new Error("_digest is not implemented")},y.exports=l},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(r,y,_){var d=_;d.utils=r("./hash/utils"),d.common=r("./hash/common"),d.sha=r("./hash/sha"),d.ripemd=r("./hash/ripemd"),d.hmac=r("./hash/hmac"),d.sha1=d.sha.sha1,d.sha256=d.sha.sha256,d.sha224=d.sha.sha224,d.sha384=d.sha.sha384,d.sha512=d.sha.sha512,d.ripemd160=d.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(r,y,_){var d=r("./utils"),a=r("minimalistic-assert");function l(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}_.BlockHash=l,l.prototype.update=function(i,e){if(i=d.toArray(i,e),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){var s=(i=this.pending).length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=d.join32(i,0,i.length-s,this.endian);for(var c=0;c<i.length;c+=this._delta32)this._update(i,c,c+this._delta32)}return this},l.prototype.digest=function(i){return this.update(this._pad()),a(this.pending===null),this._digest(i)},l.prototype._pad=function(){var i=this.pendingTotal,e=this._delta8,s=e-(i+this.padLength)%e,c=new Array(s+this.padLength);c[0]=128;for(var u=1;u<s;u++)c[u]=0;if(i<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)c[u++]=0;c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=i>>>24&255,c[u++]=i>>>16&255,c[u++]=i>>>8&255,c[u++]=255&i}else for(c[u++]=255&i,c[u++]=i>>>8&255,c[u++]=i>>>16&255,c[u++]=i>>>24&255,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,o=8;o<this.padLength;o++)c[u++]=0;return c}},{"./utils":437,"minimalistic-assert":453}],428:[function(r,y,_){var d=r("./utils"),a=r("minimalistic-assert");function l(i,e,s){if(!(this instanceof l))return new l(i,e,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(d.toArray(e,s))}y.exports=l,l.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),a(i.length<=this.blockSize);for(var e=i.length;e<this.blockSize;e++)i.push(0);for(e=0;e<i.length;e++)i[e]^=54;for(this.inner=new this.Hash().update(i),e=0;e<i.length;e++)i[e]^=106;this.outer=new this.Hash().update(i)},l.prototype.update=function(i,e){return this.inner.update(i,e),this},l.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)}},{"./utils":437,"minimalistic-assert":453}],429:[function(r,y,_){var d=r("./utils"),a=r("./common"),l=d.rotl32,i=d.sum32,e=d.sum32_3,s=d.sum32_4,c=a.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function o(C,I,H,Z){return C<=15?I^H^Z:C<=31?I&H|~I&Z:C<=47?(I|~H)^Z:C<=63?I&Z|H&~Z:I^(H|~Z)}function p(C){return C<=15?0:C<=31?1518500249:C<=47?1859775393:C<=63?2400959708:2840853838}function m(C){return C<=15?1352829926:C<=31?1548603684:C<=47?1836072691:C<=63?2053994217:0}d.inherits(u,c),_.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(C,I){for(var H=this.h[0],Z=this.h[1],P=this.h[2],q=this.h[3],V=this.h[4],W=H,$=Z,R=P,z=q,A=V,g=0;g<80;g++){var x=i(l(s(H,o(g,Z,P,q),C[f[g]+I],p(g)),b[g]),V);H=V,V=q,q=l(P,10),P=Z,Z=x,x=i(l(s(W,o(79-g,$,R,z),C[v[g]+I],m(g)),T[g]),A),W=A,A=z,z=l(R,10),R=$,$=x}x=e(this.h[1],P,z),this.h[1]=e(this.h[2],q,A),this.h[2]=e(this.h[3],V,W),this.h[3]=e(this.h[4],H,$),this.h[4]=e(this.h[0],Z,R),this.h[0]=x},u.prototype._digest=function(C){return C==="hex"?d.toHex32(this.h,"little"):d.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],T=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(r,y,_){_.sha1=r("./sha/1"),_.sha224=r("./sha/224"),_.sha256=r("./sha/256"),_.sha384=r("./sha/384"),_.sha512=r("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(r,y,_){var d=r("../utils"),a=r("../common"),l=r("./common"),i=d.rotl32,e=d.sum32,s=d.sum32_5,c=l.ft_1,u=a.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}d.inherits(p,u),y.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(m,f){for(var v=this.W,b=0;b<16;b++)v[b]=m[f+b];for(;b<v.length;b++)v[b]=i(v[b-3]^v[b-8]^v[b-14]^v[b-16],1);var T=this.h[0],C=this.h[1],I=this.h[2],H=this.h[3],Z=this.h[4];for(b=0;b<v.length;b++){var P=~~(b/20),q=s(i(T,5),c(P,C,I,H),Z,v[b],o[P]);Z=H,H=I,I=i(C,30),C=T,T=q}this.h[0]=e(this.h[0],T),this.h[1]=e(this.h[1],C),this.h[2]=e(this.h[2],I),this.h[3]=e(this.h[3],H),this.h[4]=e(this.h[4],Z)},p.prototype._digest=function(m){return m==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(r,y,_){var d=r("../utils"),a=r("./256");function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}d.inherits(l,a),y.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(i){return i==="hex"?d.toHex32(this.h.slice(0,7),"big"):d.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(r,y,_){var d=r("../utils"),a=r("../common"),l=r("./common"),i=r("minimalistic-assert"),e=d.sum32,s=d.sum32_4,c=d.sum32_5,u=l.ch32,o=l.maj32,p=l.s0_256,m=l.s1_256,f=l.g0_256,v=l.g1_256,b=a.BlockHash,T=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=T,this.W=new Array(64)}d.inherits(C,b),y.exports=C,C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(I,H){for(var Z=this.W,P=0;P<16;P++)Z[P]=I[H+P];for(;P<Z.length;P++)Z[P]=s(v(Z[P-2]),Z[P-7],f(Z[P-15]),Z[P-16]);var q=this.h[0],V=this.h[1],W=this.h[2],$=this.h[3],R=this.h[4],z=this.h[5],A=this.h[6],g=this.h[7];for(i(this.k.length===Z.length),P=0;P<Z.length;P++){var x=c(g,m(R),u(R,z,A),this.k[P],Z[P]),S=e(p(q),o(q,V,W));g=A,A=z,z=R,R=e($,x),$=W,W=V,V=q,q=e(x,S)}this.h[0]=e(this.h[0],q),this.h[1]=e(this.h[1],V),this.h[2]=e(this.h[2],W),this.h[3]=e(this.h[3],$),this.h[4]=e(this.h[4],R),this.h[5]=e(this.h[5],z),this.h[6]=e(this.h[6],A),this.h[7]=e(this.h[7],g)},C.prototype._digest=function(I){return I==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(r,y,_){var d=r("../utils"),a=r("./512");function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}d.inherits(l,a),y.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(i){return i==="hex"?d.toHex32(this.h.slice(0,12),"big"):d.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(r,y,_){var d=r("../utils"),a=r("../common"),l=r("minimalistic-assert"),i=d.rotr64_hi,e=d.rotr64_lo,s=d.shr64_hi,c=d.shr64_lo,u=d.sum64,o=d.sum64_hi,p=d.sum64_lo,m=d.sum64_4_hi,f=d.sum64_4_lo,v=d.sum64_5_hi,b=d.sum64_5_lo,T=a.BlockHash,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I(){if(!(this instanceof I))return new I;T.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=C,this.W=new Array(160)}function H(S,E,O,j,B){var Y=S&O^~S&B;return Y<0&&(Y+=4294967296),Y}function Z(S,E,O,j,B,Y){var K=E&j^~E&Y;return K<0&&(K+=4294967296),K}function P(S,E,O,j,B){var Y=S&O^S&B^O&B;return Y<0&&(Y+=4294967296),Y}function q(S,E,O,j,B,Y){var K=E&j^E&Y^j&Y;return K<0&&(K+=4294967296),K}function V(S,E){var O=i(S,E,28)^i(E,S,2)^i(E,S,7);return O<0&&(O+=4294967296),O}function W(S,E){var O=e(S,E,28)^e(E,S,2)^e(E,S,7);return O<0&&(O+=4294967296),O}function $(S,E){var O=i(S,E,14)^i(S,E,18)^i(E,S,9);return O<0&&(O+=4294967296),O}function R(S,E){var O=e(S,E,14)^e(S,E,18)^e(E,S,9);return O<0&&(O+=4294967296),O}function z(S,E){var O=i(S,E,1)^i(S,E,8)^s(S,E,7);return O<0&&(O+=4294967296),O}function A(S,E){var O=e(S,E,1)^e(S,E,8)^c(S,E,7);return O<0&&(O+=4294967296),O}function g(S,E){var O=i(S,E,19)^i(E,S,29)^s(S,E,6);return O<0&&(O+=4294967296),O}function x(S,E){var O=e(S,E,19)^e(E,S,29)^c(S,E,6);return O<0&&(O+=4294967296),O}d.inherits(I,T),y.exports=I,I.blockSize=1024,I.outSize=512,I.hmacStrength=192,I.padLength=128,I.prototype._prepareBlock=function(S,E){for(var O=this.W,j=0;j<32;j++)O[j]=S[E+j];for(;j<O.length;j+=2){var B=g(O[j-4],O[j-3]),Y=x(O[j-4],O[j-3]),K=O[j-14],nt=O[j-13],U=z(O[j-30],O[j-29]),J=A(O[j-30],O[j-29]),L=O[j-32],N=O[j-31];O[j]=m(B,Y,K,nt,U,J,L,N),O[j+1]=f(B,Y,K,nt,U,J,L,N)}},I.prototype._update=function(S,E){this._prepareBlock(S,E);var O=this.W,j=this.h[0],B=this.h[1],Y=this.h[2],K=this.h[3],nt=this.h[4],U=this.h[5],J=this.h[6],L=this.h[7],N=this.h[8],X=this.h[9],rt=this.h[10],ut=this.h[11],it=this.h[12],lt=this.h[13],gt=this.h[14],bt=this.h[15];l(this.k.length===O.length);for(var st=0;st<O.length;st+=2){var dt=gt,ht=bt,xt=$(N,X),_t=R(N,X),St=H(N,X,rt,ut,it),Ot=Z(N,X,rt,ut,it,lt),Rt=this.k[st],Ft=this.k[st+1],Kt=O[st],et=O[st+1],G=v(dt,ht,xt,_t,St,Ot,Rt,Ft,Kt,et),Q=b(dt,ht,xt,_t,St,Ot,Rt,Ft,Kt,et);dt=V(j,B),ht=W(j,B),xt=P(j,B,Y,K,nt),_t=q(j,B,Y,K,nt,U);var ot=o(dt,ht,xt,_t),ft=p(dt,ht,xt,_t);gt=it,bt=lt,it=rt,lt=ut,rt=N,ut=X,N=o(J,L,G,Q),X=p(L,L,G,Q),J=nt,L=U,nt=Y,U=K,Y=j,K=B,j=o(G,Q,ot,ft),B=p(G,Q,ot,ft)}u(this.h,0,j,B),u(this.h,2,Y,K),u(this.h,4,nt,U),u(this.h,6,J,L),u(this.h,8,N,X),u(this.h,10,rt,ut),u(this.h,12,it,lt),u(this.h,14,gt,bt)},I.prototype._digest=function(S){return S==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(r,y,_){var d=r("../utils").rotr32;function a(e,s,c){return e&s^~e&c}function l(e,s,c){return e&s^e&c^s&c}function i(e,s,c){return e^s^c}_.ft_1=function(e,s,c,u){return e===0?a(s,c,u):e===1||e===3?i(s,c,u):e===2?l(s,c,u):void 0},_.ch32=a,_.maj32=l,_.p32=i,_.s0_256=function(e){return d(e,2)^d(e,13)^d(e,22)},_.s1_256=function(e){return d(e,6)^d(e,11)^d(e,25)},_.g0_256=function(e){return d(e,7)^d(e,18)^e>>>3},_.g1_256=function(e){return d(e,17)^d(e,19)^e>>>10}},{"../utils":437}],437:[function(r,y,_){var d=r("minimalistic-assert"),a=r("inherits");function l(c,u){return(64512&c.charCodeAt(u))==55296&&!(u<0||u+1>=c.length)&&(64512&c.charCodeAt(u+1))==56320}function i(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function e(c){return c.length===1?"0"+c:c}function s(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}_.inherits=a,_.toArray=function(c,u){if(Array.isArray(c))return c.slice();if(!c)return[];var o=[];if(typeof c=="string")if(u){if(u==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),m=0;m<c.length;m+=2)o.push(parseInt(c[m]+c[m+1],16))}else for(var p=0,m=0;m<c.length;m++){var f=c.charCodeAt(m);f<128?o[p++]=f:f<2048?(o[p++]=f>>6|192,o[p++]=63&f|128):l(c,m)?(f=65536+((1023&f)<<10)+(1023&c.charCodeAt(++m)),o[p++]=f>>18|240,o[p++]=f>>12&63|128,o[p++]=f>>6&63|128,o[p++]=63&f|128):(o[p++]=f>>12|224,o[p++]=f>>6&63|128,o[p++]=63&f|128)}else for(m=0;m<c.length;m++)o[m]=0|c[m];return o},_.toHex=function(c){for(var u="",o=0;o<c.length;o++)u+=e(c[o].toString(16));return u},_.htonl=i,_.toHex32=function(c,u){for(var o="",p=0;p<c.length;p++){var m=c[p];u==="little"&&(m=i(m)),o+=s(m.toString(16))}return o},_.zero2=e,_.zero8=s,_.join32=function(c,u,o,p){var m=o-u;d(m%4==0);for(var f=new Array(m/4),v=0,b=u;v<f.length;v++,b+=4){var T;T=p==="big"?c[b]<<24|c[b+1]<<16|c[b+2]<<8|c[b+3]:c[b+3]<<24|c[b+2]<<16|c[b+1]<<8|c[b],f[v]=T>>>0}return f},_.split32=function(c,u){for(var o=new Array(4*c.length),p=0,m=0;p<c.length;p++,m+=4){var f=c[p];u==="big"?(o[m]=f>>>24,o[m+1]=f>>>16&255,o[m+2]=f>>>8&255,o[m+3]=255&f):(o[m+3]=f>>>24,o[m+2]=f>>>16&255,o[m+1]=f>>>8&255,o[m]=255&f)}return o},_.rotr32=function(c,u){return c>>>u|c<<32-u},_.rotl32=function(c,u){return c<<u|c>>>32-u},_.sum32=function(c,u){return c+u>>>0},_.sum32_3=function(c,u,o){return c+u+o>>>0},_.sum32_4=function(c,u,o,p){return c+u+o+p>>>0},_.sum32_5=function(c,u,o,p,m){return c+u+o+p+m>>>0},_.sum64=function(c,u,o,p){var m=c[u],f=p+c[u+1]>>>0,v=(f<p?1:0)+o+m;c[u]=v>>>0,c[u+1]=f},_.sum64_hi=function(c,u,o,p){return(u+p>>>0<u?1:0)+c+o>>>0},_.sum64_lo=function(c,u,o,p){return u+p>>>0},_.sum64_4_hi=function(c,u,o,p,m,f,v,b){var T=0,C=u;return T+=(C=C+p>>>0)<u?1:0,T+=(C=C+f>>>0)<f?1:0,c+o+m+v+(T+=(C=C+b>>>0)<b?1:0)>>>0},_.sum64_4_lo=function(c,u,o,p,m,f,v,b){return u+p+f+b>>>0},_.sum64_5_hi=function(c,u,o,p,m,f,v,b,T,C){var I=0,H=u;return I+=(H=H+p>>>0)<u?1:0,I+=(H=H+f>>>0)<f?1:0,I+=(H=H+b>>>0)<b?1:0,c+o+m+v+T+(I+=(H=H+C>>>0)<C?1:0)>>>0},_.sum64_5_lo=function(c,u,o,p,m,f,v,b,T,C){return u+p+f+b+C>>>0},_.rotr64_hi=function(c,u,o){return(u<<32-o|c>>>o)>>>0},_.rotr64_lo=function(c,u,o){return(c<<32-o|u>>>o)>>>0},_.shr64_hi=function(c,u,o){return c>>>o},_.shr64_lo=function(c,u,o){return(c<<32-o|u>>>o)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(r,y,_){var d=r("hash.js"),a=r("minimalistic-crypto-utils"),l=r("minimalistic-assert");function i(e){if(!(this instanceof i))return new i(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var s=a.toArray(e.entropy,e.entropyEnc||"hex"),c=a.toArray(e.nonce,e.nonceEnc||"hex"),u=a.toArray(e.pers,e.persEnc||"hex");l(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(s,c,u)}y.exports=i,i.prototype._init=function(e,s,c){var u=e.concat(s).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(u),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new d.hmac(this.hash,this.K)},i.prototype._update=function(e){var s=this._hmac().update(this.V).update([0]);e&&(s=s.update(e)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(e,s,c,u){typeof s!="string"&&(u=c,c=s,s=null),e=a.toArray(e,s),c=a.toArray(c,u),l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(c||[])),this._reseed=1},i.prototype.generate=function(e,s,c,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(u=c,c=s,s=null),c&&(c=a.toArray(c,u||"hex"),this._update(c));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var p=o.slice(0,e);return this._update(c),this._reseed++,a.encode(p,s)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(r,y,_){_.read=function(d,a,l,i,e){var s,c,u=8*e-i-1,o=(1<<u)-1,p=o>>1,m=-7,f=l?e-1:0,v=l?-1:1,b=d[a+f];for(f+=v,s=b&(1<<-m)-1,b>>=-m,m+=u;m>0;s=256*s+d[a+f],f+=v,m-=8);for(c=s&(1<<-m)-1,s>>=-m,m+=i;m>0;c=256*c+d[a+f],f+=v,m-=8);if(s===0)s=1-p;else{if(s===o)return c?NaN:1/0*(b?-1:1);c+=Math.pow(2,i),s-=p}return(b?-1:1)*c*Math.pow(2,s-i)},_.write=function(d,a,l,i,e,s){var c,u,o,p=8*s-e-1,m=(1<<p)-1,f=m>>1,v=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=i?0:s-1,T=i?1:-1,C=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(u=isNaN(a)?1:0,c=m):(c=Math.floor(Math.log(a)/Math.LN2),a*(o=Math.pow(2,-c))<1&&(c--,o*=2),(a+=c+f>=1?v/o:v*Math.pow(2,1-f))*o>=2&&(c++,o/=2),c+f>=m?(u=0,c=m):c+f>=1?(u=(a*o-1)*Math.pow(2,e),c+=f):(u=a*Math.pow(2,f-1)*Math.pow(2,e),c=0));e>=8;d[l+b]=255&u,b+=T,u/=256,e-=8);for(c=c<<e|u,p+=e;p>0;d[l+b]=255&c,b+=T,c/=256,p-=8);d[l+b-T]|=128*C}},{}],440:[function(r,y,_){typeof Object.create=="function"?y.exports=function(d,a){a&&(d.super_=a,d.prototype=Object.create(a.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:y.exports=function(d,a){if(a){d.super_=a;var l=function(){};l.prototype=a.prototype,d.prototype=new l,d.prototype.constructor=d}}},{}],441:[function(r,y,_){(function(d,a,l,i,e,s,c,u){(function(){(function(o){typeof _=="object"&&y!==void 0?y.exports=o():(typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:this).JSZip=o()})((function(){return(function o(p,m,f){function v(C,I){if(!m[C]){if(!p[C]){var H=typeof r=="function"&&r;if(!I&&H)return H(C,!0);if(b)return b(C,!0);var Z=new Error("Cannot find module '"+C+"'");throw Z.code="MODULE_NOT_FOUND",Z}var P=m[C]={exports:{}};p[C][0].call(P.exports,(function(q){return v(p[C][1][q]||q)}),P,P.exports,o,p,m,f)}return m[C].exports}for(var b=typeof r=="function"&&r,T=0;T<f.length;T++)v(f[T]);return v})({1:[function(o,p,m){var f=o("./utils"),v=o("./support"),b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(T){for(var C,I,H,Z,P,q,V,W=[],$=0,R=T.length,z=R,A=f.getTypeOf(T)!=="string";$<T.length;)z=R-$,H=A?(C=T[$++],I=$<R?T[$++]:0,$<R?T[$++]:0):(C=T.charCodeAt($++),I=$<R?T.charCodeAt($++):0,$<R?T.charCodeAt($++):0),Z=C>>2,P=(3&C)<<4|I>>4,q=1<z?(15&I)<<2|H>>6:64,V=2<z?63&H:64,W.push(b.charAt(Z)+b.charAt(P)+b.charAt(q)+b.charAt(V));return W.join("")},m.decode=function(T){var C,I,H,Z,P,q,V=0,W=0,$="data:";if(T.substr(0,$.length)===$)throw new Error("Invalid base64 input, it looks like a data url.");var R,z=3*(T=T.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(T.charAt(T.length-1)===b.charAt(64)&&z--,T.charAt(T.length-2)===b.charAt(64)&&z--,z%1!=0)throw new Error("Invalid base64 input, bad content length.");for(R=v.uint8array?new Uint8Array(0|z):new Array(0|z);V<T.length;)C=b.indexOf(T.charAt(V++))<<2|(Z=b.indexOf(T.charAt(V++)))>>4,I=(15&Z)<<4|(P=b.indexOf(T.charAt(V++)))>>2,H=(3&P)<<6|(q=b.indexOf(T.charAt(V++))),R[W++]=C,P!==64&&(R[W++]=I),q!==64&&(R[W++]=H);return R}},{"./support":30,"./utils":32}],2:[function(o,p,m){var f=o("./external"),v=o("./stream/DataWorker"),b=o("./stream/Crc32Probe"),T=o("./stream/DataLengthProbe");function C(I,H,Z,P,q){this.compressedSize=I,this.uncompressedSize=H,this.crc32=Z,this.compression=P,this.compressedContent=q}C.prototype={getContentWorker:function(){var I=new v(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new T("data_length")),H=this;return I.on("end",(function(){if(this.streamInfo.data_length!==H.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),I},getCompressedWorker:function(){return new v(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},C.createWorkerFrom=function(I,H,Z){return I.pipe(new b).pipe(new T("uncompressedSize")).pipe(H.compressWorker(Z)).pipe(new T("compressedSize")).withStreamInfo("compression",H)},p.exports=C},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,p,m){var f=o("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(){return new f("STORE compression")},uncompressWorker:function(){return new f("STORE decompression")}},m.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,p,m){var f=o("./utils"),v=(function(){for(var b,T=[],C=0;C<256;C++){b=C;for(var I=0;I<8;I++)b=1&b?3988292384^b>>>1:b>>>1;T[C]=b}return T})();p.exports=function(b,T){return b!==void 0&&b.length?f.getTypeOf(b)!=="string"?(function(C,I,H,Z){var P=v,q=0+H;C^=-1;for(var V=0;V<q;V++)C=C>>>8^P[255&(C^I[V])];return-1^C})(0|T,b,b.length):(function(C,I,H,Z){var P=v,q=0+H;C^=-1;for(var V=0;V<q;V++)C=C>>>8^P[255&(C^I.charCodeAt(V))];return-1^C})(0|T,b,b.length):0}},{"./utils":32}],5:[function(o,p,m){m.base64=!1,m.binary=!1,m.dir=!1,m.createFolders=!0,m.date=null,m.compression=null,m.compressionOptions=null,m.comment=null,m.unixPermissions=null,m.dosPermissions=null},{}],6:[function(o,p,m){var f;f=typeof Promise<"u"?Promise:o("lie"),p.exports={Promise:f}},{lie:37}],7:[function(o,p,m){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=o("pako"),b=o("./utils"),T=o("./stream/GenericWorker"),C=f?"uint8array":"array";function I(H,Z){T.call(this,"FlateWorker/"+H),this._pako=null,this._pakoAction=H,this._pakoOptions=Z,this.meta={}}m.magic="\b\0",b.inherits(I,T),I.prototype.processChunk=function(H){this.meta=H.meta,this._pako===null&&this._createPako(),this._pako.push(b.transformTo(C,H.data),!1)},I.prototype.flush=function(){T.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},I.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this._pako=null},I.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var H=this;this._pako.onData=function(Z){H.push({data:Z,meta:H.meta})}},m.compressWorker=function(H){return new I("Deflate",H)},m.uncompressWorker=function(){return new I("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,p,m){function f(P,q){var V,W="";for(V=0;V<q;V++)W+=String.fromCharCode(255&P),P>>>=8;return W}function v(P,q,V,W,$,R){var z,A,g=P.file,x=P.compression,S=R!==C.utf8encode,E=b.transformTo("string",R(g.name)),O=b.transformTo("string",C.utf8encode(g.name)),j=g.comment,B=b.transformTo("string",R(j)),Y=b.transformTo("string",C.utf8encode(j)),K=O.length!==g.name.length,nt=Y.length!==j.length,U="",J="",L="",N=g.dir,X=g.date,rt={crc32:0,compressedSize:0,uncompressedSize:0};q&&!V||(rt.crc32=P.crc32,rt.compressedSize=P.compressedSize,rt.uncompressedSize=P.uncompressedSize);var ut=0;q&&(ut|=8),S||!K&&!nt||(ut|=2048);var it=0,lt=0;N&&(it|=16),$==="UNIX"?(lt=798,it|=(function(bt,st){var dt=bt;return bt||(dt=st?16893:33204),(65535&dt)<<16})(g.unixPermissions,N)):(lt=20,it|=(function(bt){return 63&(bt||0)})(g.dosPermissions)),z=X.getUTCHours(),z<<=6,z|=X.getUTCMinutes(),z<<=5,z|=X.getUTCSeconds()/2,A=X.getUTCFullYear()-1980,A<<=4,A|=X.getUTCMonth()+1,A<<=5,A|=X.getUTCDate(),K&&(J=f(1,1)+f(I(E),4)+O,U+="up"+f(J.length,2)+J),nt&&(L=f(1,1)+f(I(B),4)+Y,U+="uc"+f(L.length,2)+L);var gt="";return gt+=`
|
|
18
|
+
\0`,gt+=f(ut,2),gt+=x.magic,gt+=f(z,2),gt+=f(A,2),gt+=f(rt.crc32,4),gt+=f(rt.compressedSize,4),gt+=f(rt.uncompressedSize,4),gt+=f(E.length,2),gt+=f(U.length,2),{fileRecord:H.LOCAL_FILE_HEADER+gt+E+U,dirRecord:H.CENTRAL_FILE_HEADER+f(lt,2)+gt+f(B.length,2)+"\0\0\0\0"+f(it,4)+f(W,4)+E+U+B}}var b=o("../utils"),T=o("../stream/GenericWorker"),C=o("../utf8"),I=o("../crc32"),H=o("../signature");function Z(P,q,V,W){T.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=q,this.zipPlatform=V,this.encodeFileName=W,this.streamFiles=P,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}b.inherits(Z,T),Z.prototype.push=function(P){var q=P.meta.percent||0,V=this.entriesCount,W=this._sources.length;this.accumulate?this.contentBuffer.push(P):(this.bytesWritten+=P.data.length,T.prototype.push.call(this,{data:P.data,meta:{currentFile:this.currentFile,percent:V?(q+100*(V-W-1))/V:100}}))},Z.prototype.openedSource=function(P){this.currentSourceOffset=this.bytesWritten,this.currentFile=P.file.name;var q=this.streamFiles&&!P.file.dir;if(q){var V=v(P,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:V.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Z.prototype.closedSource=function(P){this.accumulate=!1;var q=this.streamFiles&&!P.file.dir,V=v(P,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(V.dirRecord),q)this.push({data:(function(W){return H.DATA_DESCRIPTOR+f(W.crc32,4)+f(W.compressedSize,4)+f(W.uncompressedSize,4)})(P),meta:{percent:100}});else for(this.push({data:V.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Z.prototype.flush=function(){for(var P=this.bytesWritten,q=0;q<this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var V=this.bytesWritten-P,W=(function($,R,z,A,g){var x=b.transformTo("string",g(A));return H.CENTRAL_DIRECTORY_END+"\0\0\0\0"+f($,2)+f($,2)+f(R,4)+f(z,4)+f(x.length,2)+x})(this.dirRecords.length,V,P,this.zipComment,this.encodeFileName);this.push({data:W,meta:{percent:100}})},Z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Z.prototype.registerPrevious=function(P){this._sources.push(P);var q=this;return P.on("data",(function(V){q.processChunk(V)})),P.on("end",(function(){q.closedSource(q.previous.streamInfo),q._sources.length?q.prepareNextSource():q.end()})),P.on("error",(function(V){q.error(V)})),this},Z.prototype.resume=function(){return!!T.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Z.prototype.error=function(P){var q=this._sources;if(!T.prototype.error.call(this,P))return!1;for(var V=0;V<q.length;V++)try{q[V].error(P)}catch{}return!0},Z.prototype.lock=function(){T.prototype.lock.call(this);for(var P=this._sources,q=0;q<P.length;q++)P[q].lock()},p.exports=Z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,p,m){var f=o("../compressions"),v=o("./ZipFileWorker");m.generateWorker=function(b,T,C){var I=new v(T.streamFiles,C,T.platform,T.encodeFileName),H=0;try{b.forEach((function(Z,P){H++;var q=(function(R,z){var A=R||z,g=f[A];if(!g)throw new Error(A+" is not a valid compression method !");return g})(P.options.compression,T.compression),V=P.options.compressionOptions||T.compressionOptions||{},W=P.dir,$=P.date;P._compressWorker(q,V).withStreamInfo("file",{name:Z,dir:W,date:$,comment:P.comment||"",unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions}).pipe(I)})),I.entriesCount=H}catch(Z){I.error(Z)}return I}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,p,m){function f(){if(!(this instanceof f))return new f;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var v=new f;for(var b in this)typeof this[b]!="function"&&(v[b]=this[b]);return v}}(f.prototype=o("./object")).loadAsync=o("./load"),f.support=o("./support"),f.defaults=o("./defaults"),f.version="3.10.1",f.loadAsync=function(v,b){return new f().loadAsync(v,b)},f.external=o("./external"),p.exports=f},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,p,m){var f=o("./utils"),v=o("./external"),b=o("./utf8"),T=o("./zipEntries"),C=o("./stream/Crc32Probe"),I=o("./nodejsUtils");function H(Z){return new v.Promise((function(P,q){var V=Z.decompressed.getContentWorker().pipe(new C);V.on("error",(function(W){q(W)})).on("end",(function(){V.streamInfo.crc32!==Z.decompressed.crc32?q(new Error("Corrupted zip : CRC32 mismatch")):P()})).resume()}))}p.exports=function(Z,P){var q=this;return P=f.extend(P||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:b.utf8decode}),I.isNode&&I.isStream(Z)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):f.prepareContent("the loaded zip file",Z,!0,P.optimizedBinaryString,P.base64).then((function(V){var W=new T(P);return W.load(V),W})).then((function(V){var W=[v.Promise.resolve(V)],$=V.files;if(P.checkCRC32)for(var R=0;R<$.length;R++)W.push(H($[R]));return v.Promise.all(W)})).then((function(V){for(var W=V.shift(),$=W.files,R=0;R<$.length;R++){var z=$[R],A=z.fileNameStr,g=f.resolve(z.fileNameStr);q.file(g,z.decompressed,{binary:!0,optimizedBinaryString:!0,date:z.date,dir:z.dir,comment:z.fileCommentStr.length?z.fileCommentStr:null,unixPermissions:z.unixPermissions,dosPermissions:z.dosPermissions,createFolders:P.createFolders}),z.dir||(q.file(g).unsafeOriginalName=A)}return W.zipComment.length&&(q.comment=W.zipComment),q}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,p,m){var f=o("../utils"),v=o("../stream/GenericWorker");function b(T,C){v.call(this,"Nodejs stream input adapter for "+T),this._upstreamEnded=!1,this._bindStream(C)}f.inherits(b,v),b.prototype._bindStream=function(T){var C=this;(this._stream=T).pause(),T.on("data",(function(I){C.push({data:I,meta:{percent:0}})})).on("error",(function(I){C.isPaused?this.generatedError=I:C.error(I)})).on("end",(function(){C.isPaused?C._upstreamEnded=!0:C.end()}))},b.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},b.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=b},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,p,m){var f=o("readable-stream").Readable;function v(b,T,C){f.call(this,T),this._helper=b;var I=this;b.on("data",(function(H,Z){I.push(H)||I._helper.pause(),C&&C(Z)})).on("error",(function(H){I.emit("error",H)})).on("end",(function(){I.push(null)}))}o("../utils").inherits(v,f),v.prototype._read=function(){this._helper.resume()},p.exports=v},{"../utils":32,"readable-stream":16}],14:[function(o,p,m){p.exports={isNode:l!==void 0,newBufferFrom:function(f,v){if(l.from&&l.from!==Uint8Array.from)return l.from(f,v);if(typeof f=="number")throw new Error('The "data" argument must not be a number');return new l(f,v)},allocBuffer:function(f){if(l.alloc)return l.alloc(f);var v=new l(f);return v.fill(0),v},isBuffer:function(f){return l.isBuffer(f)},isStream:function(f){return f&&typeof f.on=="function"&&typeof f.pause=="function"&&typeof f.resume=="function"}}},{}],15:[function(o,p,m){function f(g,x,S){var E,O=b.getTypeOf(x),j=b.extend(S||{},I);j.date=j.date||new Date,j.compression!==null&&(j.compression=j.compression.toUpperCase()),typeof j.unixPermissions=="string"&&(j.unixPermissions=parseInt(j.unixPermissions,8)),j.unixPermissions&&16384&j.unixPermissions&&(j.dir=!0),j.dosPermissions&&16&j.dosPermissions&&(j.dir=!0),j.dir&&(g=$(g)),j.createFolders&&(E=W(g))&&R.call(this,E,!0);var B=O==="string"&&j.binary===!1&&j.base64===!1;S&&S.binary!==void 0||(j.binary=!B),(x instanceof H&&x.uncompressedSize===0||j.dir||!x||x.length===0)&&(j.base64=!1,j.binary=!0,x="",j.compression="STORE",O="string");var Y;Y=x instanceof H||x instanceof T?x:q.isNode&&q.isStream(x)?new V(g,x):b.prepareContent(g,x,j.binary,j.optimizedBinaryString,j.base64);var K=new Z(g,Y,j);this.files[g]=K}var v=o("./utf8"),b=o("./utils"),T=o("./stream/GenericWorker"),C=o("./stream/StreamHelper"),I=o("./defaults"),H=o("./compressedObject"),Z=o("./zipObject"),P=o("./generate"),q=o("./nodejsUtils"),V=o("./nodejs/NodejsStreamInputAdapter"),W=function(g){g.slice(-1)==="/"&&(g=g.substring(0,g.length-1));var x=g.lastIndexOf("/");return 0<x?g.substring(0,x):""},$=function(g){return g.slice(-1)!=="/"&&(g+="/"),g},R=function(g,x){return x=x!==void 0?x:I.createFolders,g=$(g),this.files[g]||f.call(this,g,null,{dir:!0,createFolders:x}),this.files[g]};function z(g){return Object.prototype.toString.call(g)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(g){var x,S,E;for(x in this.files)E=this.files[x],(S=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&g(S,E)},filter:function(g){var x=[];return this.forEach((function(S,E){g(S,E)&&x.push(E)})),x},file:function(g,x,S){if(arguments.length!==1)return g=this.root+g,f.call(this,g,x,S),this;if(z(g)){var E=g;return this.filter((function(j,B){return!B.dir&&E.test(j)}))}var O=this.files[this.root+g];return O&&!O.dir?O:null},folder:function(g){if(!g)return this;if(z(g))return this.filter((function(O,j){return j.dir&&g.test(O)}));var x=this.root+g,S=R.call(this,x),E=this.clone();return E.root=S.name,E},remove:function(g){g=this.root+g;var x=this.files[g];if(x||(g.slice(-1)!=="/"&&(g+="/"),x=this.files[g]),x&&!x.dir)delete this.files[g];else for(var S=this.filter((function(O,j){return j.name.slice(0,g.length)===g})),E=0;E<S.length;E++)delete this.files[S[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(g){var x,S={};try{if((S=b.extend(g||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");b.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var E=S.comment||this.comment||"";x=P.generateWorker(this,S,E)}catch(O){(x=new T("error")).error(O)}return new C(x,S.type||"string",S.mimeType)},generateAsync:function(g,x){return this.generateInternalStream(g).accumulate(x)},generateNodeStream:function(g,x){return(g=g||{}).type||(g.type="nodebuffer"),this.generateInternalStream(g).toNodejsStream(x)}};p.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,p,m){p.exports=o("stream")},{stream:void 0}],17:[function(o,p,m){var f=o("./DataReader");function v(b){f.call(this,b);for(var T=0;T<this.data.length;T++)b[T]=255&b[T]}o("../utils").inherits(v,f),v.prototype.byteAt=function(b){return this.data[this.zero+b]},v.prototype.lastIndexOfSignature=function(b){for(var T=b.charCodeAt(0),C=b.charCodeAt(1),I=b.charCodeAt(2),H=b.charCodeAt(3),Z=this.length-4;0<=Z;--Z)if(this.data[Z]===T&&this.data[Z+1]===C&&this.data[Z+2]===I&&this.data[Z+3]===H)return Z-this.zero;return-1},v.prototype.readAndCheckSignature=function(b){var T=b.charCodeAt(0),C=b.charCodeAt(1),I=b.charCodeAt(2),H=b.charCodeAt(3),Z=this.readData(4);return T===Z[0]&&C===Z[1]&&I===Z[2]&&H===Z[3]},v.prototype.readData=function(b){if(this.checkOffset(b),b===0)return[];var T=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,T},p.exports=v},{"../utils":32,"./DataReader":18}],18:[function(o,p,m){var f=o("../utils");function v(b){this.data=b,this.length=b.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(b){this.checkIndex(this.index+b)},checkIndex:function(b){if(this.length<this.zero+b||b<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+b+"). Corrupted zip ?")},setIndex:function(b){this.checkIndex(b),this.index=b},skip:function(b){this.setIndex(this.index+b)},byteAt:function(){},readInt:function(b){var T,C=0;for(this.checkOffset(b),T=this.index+b-1;T>=this.index;T--)C=(C<<8)+this.byteAt(T);return this.index+=b,C},readString:function(b){return f.transformTo("string",this.readData(b))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var b=this.readInt(4);return new Date(Date.UTC(1980+(b>>25&127),(b>>21&15)-1,b>>16&31,b>>11&31,b>>5&63,(31&b)<<1))}},p.exports=v},{"../utils":32}],19:[function(o,p,m){var f=o("./Uint8ArrayReader");function v(b){f.call(this,b)}o("../utils").inherits(v,f),v.prototype.readData=function(b){this.checkOffset(b);var T=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,T},p.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,p,m){var f=o("./DataReader");function v(b){f.call(this,b)}o("../utils").inherits(v,f),v.prototype.byteAt=function(b){return this.data.charCodeAt(this.zero+b)},v.prototype.lastIndexOfSignature=function(b){return this.data.lastIndexOf(b)-this.zero},v.prototype.readAndCheckSignature=function(b){return b===this.readData(4)},v.prototype.readData=function(b){this.checkOffset(b);var T=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,T},p.exports=v},{"../utils":32,"./DataReader":18}],21:[function(o,p,m){var f=o("./ArrayReader");function v(b){f.call(this,b)}o("../utils").inherits(v,f),v.prototype.readData=function(b){if(this.checkOffset(b),b===0)return new Uint8Array(0);var T=this.data.subarray(this.zero+this.index,this.zero+this.index+b);return this.index+=b,T},p.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(o,p,m){var f=o("../utils"),v=o("../support"),b=o("./ArrayReader"),T=o("./StringReader"),C=o("./NodeBufferReader"),I=o("./Uint8ArrayReader");p.exports=function(H){var Z=f.getTypeOf(H);return f.checkSupport(Z),Z!=="string"||v.uint8array?Z==="nodebuffer"?new C(H):v.uint8array?new I(f.transformTo("uint8array",H)):new b(f.transformTo("array",H)):new T(H)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,p,m){m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,p,m){var f=o("./GenericWorker"),v=o("../utils");function b(T){f.call(this,"ConvertWorker to "+T),this.destType=T}v.inherits(b,f),b.prototype.processChunk=function(T){this.push({data:v.transformTo(this.destType,T.data),meta:T.meta})},p.exports=b},{"../utils":32,"./GenericWorker":28}],25:[function(o,p,m){var f=o("./GenericWorker"),v=o("../crc32");function b(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(b,f),b.prototype.processChunk=function(T){this.streamInfo.crc32=v(T.data,this.streamInfo.crc32||0),this.push(T)},p.exports=b},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,p,m){var f=o("../utils"),v=o("./GenericWorker");function b(T){v.call(this,"DataLengthProbe for "+T),this.propName=T,this.withStreamInfo(T,0)}f.inherits(b,v),b.prototype.processChunk=function(T){if(T){var C=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=C+T.data.length}v.prototype.processChunk.call(this,T)},p.exports=b},{"../utils":32,"./GenericWorker":28}],27:[function(o,p,m){var f=o("../utils"),v=o("./GenericWorker");function b(T){v.call(this,"DataWorker");var C=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,T.then((function(I){C.dataIsReady=!0,C.data=I,C.max=I&&I.length||0,C.type=f.getTypeOf(I),C.isPaused||C._tickAndRepeat()}),(function(I){C.error(I)}))}f.inherits(b,v),b.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},b.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0)},b.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},b.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var T=null,C=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":T=this.data.substring(this.index,C);break;case"uint8array":T=this.data.subarray(this.index,C);break;case"array":case"nodebuffer":T=this.data.slice(this.index,C)}return this.index=C,this.push({data:T,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=b},{"../utils":32,"./GenericWorker":28}],28:[function(o,p,m){function f(v){this.name=v||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}f.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,b){return this._listeners[v].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,b){if(this._listeners[v])for(var T=0;T<this._listeners[v].length;T++)this._listeners[v][T].call(this,b)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var b=this;return v.on("data",(function(T){b.processChunk(T)})),v.on("end",(function(){b.end()})),v.on("error",(function(T){b.error(T)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,b){return this.extraStreamInfo[v]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},p.exports=f},{}],29:[function(o,p,m){var f=o("../utils"),v=o("./ConvertWorker"),b=o("./GenericWorker"),T=o("../base64"),C=o("../support"),I=o("../external"),H=null;if(C.nodestream)try{H=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function Z(P,q,V){var W=q;switch(q){case"blob":case"arraybuffer":W="uint8array";break;case"base64":W="string"}try{this._internalType=W,this._outputType=q,this._mimeType=V,f.checkSupport(W),this._worker=P.pipe(new v(W)),P.lock()}catch($){this._worker=new b("error"),this._worker.error($)}}Z.prototype={accumulate:function(P){return(function(q,V){return new I.Promise((function(W,$){var R=[],z=q._internalType,A=q._outputType,g=q._mimeType;q.on("data",(function(x,S){R.push(x),V&&V(S)})).on("error",(function(x){R=[],$(x)})).on("end",(function(){try{var x=(function(S,E,O){switch(S){case"blob":return f.newBlob(f.transformTo("arraybuffer",E),O);case"base64":return T.encode(E);default:return f.transformTo(S,E)}})(A,(function(S,E){var O,j=0,B=null,Y=0;for(O=0;O<E.length;O++)Y+=E[O].length;switch(S){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(B=new Uint8Array(Y),O=0;O<E.length;O++)B.set(E[O],j),j+=E[O].length;return B;case"nodebuffer":return l.concat(E);default:throw new Error("concat : unsupported type '"+S+"'")}})(z,R),g);W(x)}catch(S){$(S)}R=[]})).resume()}))})(this,P)},on:function(P,q){var V=this;return P==="data"?this._worker.on(P,(function(W){q.call(V,W.data,W.meta)})):this._worker.on(P,(function(){f.delay(q,arguments,V)})),this},resume:function(){return f.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(P){if(f.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new H(this,{objectMode:this._outputType!=="nodebuffer"},P)}},p.exports=Z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,p,m){if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",m.nodebuffer=l!==void 0,m.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")m.blob=!1;else{var f=new ArrayBuffer(0);try{m.blob=new Blob([f],{type:"application/zip"}).size===0}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(f),m.blob=v.getBlob("application/zip").size===0}catch{m.blob=!1}}}try{m.nodestream=!!o("readable-stream").Readable}catch{m.nodestream=!1}},{"readable-stream":16}],31:[function(o,p,m){for(var f=o("./utils"),v=o("./support"),b=o("./nodejsUtils"),T=o("./stream/GenericWorker"),C=new Array(256),I=0;I<256;I++)C[I]=252<=I?6:248<=I?5:240<=I?4:224<=I?3:192<=I?2:1;function H(){T.call(this,"utf-8 decode"),this.leftOver=null}function Z(){T.call(this,"utf-8 encode")}C[254]=C[254]=1,m.utf8encode=function(P){return v.nodebuffer?b.newBufferFrom(P,"utf-8"):(function(q){var V,W,$,R,z,A=q.length,g=0;for(R=0;R<A;R++)(64512&(W=q.charCodeAt(R)))==55296&&R+1<A&&(64512&($=q.charCodeAt(R+1)))==56320&&(W=65536+(W-55296<<10)+($-56320),R++),g+=W<128?1:W<2048?2:W<65536?3:4;for(V=v.uint8array?new Uint8Array(g):new Array(g),R=z=0;z<g;R++)(64512&(W=q.charCodeAt(R)))==55296&&R+1<A&&(64512&($=q.charCodeAt(R+1)))==56320&&(W=65536+(W-55296<<10)+($-56320),R++),W<128?V[z++]=W:(W<2048?V[z++]=192|W>>>6:(W<65536?V[z++]=224|W>>>12:(V[z++]=240|W>>>18,V[z++]=128|W>>>12&63),V[z++]=128|W>>>6&63),V[z++]=128|63&W);return V})(P)},m.utf8decode=function(P){return v.nodebuffer?f.transformTo("nodebuffer",P).toString("utf-8"):(function(q){var V,W,$,R,z=q.length,A=new Array(2*z);for(V=W=0;V<z;)if(($=q[V++])<128)A[W++]=$;else if(4<(R=C[$]))A[W++]=65533,V+=R-1;else{for($&=R===2?31:R===3?15:7;1<R&&V<z;)$=$<<6|63&q[V++],R--;1<R?A[W++]=65533:$<65536?A[W++]=$:($-=65536,A[W++]=55296|$>>10&1023,A[W++]=56320|1023&$)}return A.length!==W&&(A.subarray?A=A.subarray(0,W):A.length=W),f.applyFromCharCode(A)})(P=f.transformTo(v.uint8array?"uint8array":"array",P))},f.inherits(H,T),H.prototype.processChunk=function(P){var q=f.transformTo(v.uint8array?"uint8array":"array",P.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var V=q;(q=new Uint8Array(V.length+this.leftOver.length)).set(this.leftOver,0),q.set(V,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var W=(function(R,z){var A;for((z=z||R.length)>R.length&&(z=R.length),A=z-1;0<=A&&(192&R[A])==128;)A--;return A<0||A===0?z:A+C[R[A]]>z?A:z})(q),$=q;W!==q.length&&(v.uint8array?($=q.subarray(0,W),this.leftOver=q.subarray(W,q.length)):($=q.slice(0,W),this.leftOver=q.slice(W,q.length))),this.push({data:m.utf8decode($),meta:P.meta})},H.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=H,f.inherits(Z,T),Z.prototype.processChunk=function(P){this.push({data:m.utf8encode(P.data),meta:P.meta})},m.Utf8EncodeWorker=Z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,p,m){var f=o("./support"),v=o("./base64"),b=o("./nodejsUtils"),T=o("./external");function C(V){return V}function I(V,W){for(var $=0;$<V.length;++$)W[$]=255&V.charCodeAt($);return W}o("setimmediate"),m.newBlob=function(V,W){m.checkSupport("blob");try{return new Blob([V],{type:W})}catch{try{var $=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return $.append(V),$.getBlob(W)}catch{throw new Error("Bug : can't construct the Blob.")}}};var H={stringifyByChunk:function(V,W,$){var R=[],z=0,A=V.length;if(A<=$)return String.fromCharCode.apply(null,V);for(;z<A;)W==="array"||W==="nodebuffer"?R.push(String.fromCharCode.apply(null,V.slice(z,Math.min(z+$,A)))):R.push(String.fromCharCode.apply(null,V.subarray(z,Math.min(z+$,A)))),z+=$;return R.join("")},stringifyByChar:function(V){for(var W="",$=0;$<V.length;$++)W+=String.fromCharCode(V[$]);return W},applyCanBeUsed:{uint8array:(function(){try{return f.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return f.nodebuffer&&String.fromCharCode.apply(null,b.allocBuffer(1)).length===1}catch{return!1}})()}};function Z(V){var W=65536,$=m.getTypeOf(V),R=!0;if($==="uint8array"?R=H.applyCanBeUsed.uint8array:$==="nodebuffer"&&(R=H.applyCanBeUsed.nodebuffer),R)for(;1<W;)try{return H.stringifyByChunk(V,$,W)}catch{W=Math.floor(W/2)}return H.stringifyByChar(V)}function P(V,W){for(var $=0;$<V.length;$++)W[$]=V[$];return W}m.applyFromCharCode=Z;var q={};q.string={string:C,array:function(V){return I(V,new Array(V.length))},arraybuffer:function(V){return q.string.uint8array(V).buffer},uint8array:function(V){return I(V,new Uint8Array(V.length))},nodebuffer:function(V){return I(V,b.allocBuffer(V.length))}},q.array={string:Z,array:C,arraybuffer:function(V){return new Uint8Array(V).buffer},uint8array:function(V){return new Uint8Array(V)},nodebuffer:function(V){return b.newBufferFrom(V)}},q.arraybuffer={string:function(V){return Z(new Uint8Array(V))},array:function(V){return P(new Uint8Array(V),new Array(V.byteLength))},arraybuffer:C,uint8array:function(V){return new Uint8Array(V)},nodebuffer:function(V){return b.newBufferFrom(new Uint8Array(V))}},q.uint8array={string:Z,array:function(V){return P(V,new Array(V.length))},arraybuffer:function(V){return V.buffer},uint8array:C,nodebuffer:function(V){return b.newBufferFrom(V)}},q.nodebuffer={string:Z,array:function(V){return P(V,new Array(V.length))},arraybuffer:function(V){return q.nodebuffer.uint8array(V).buffer},uint8array:function(V){return P(V,new Uint8Array(V.length))},nodebuffer:C},m.transformTo=function(V,W){if(W=W||"",!V)return W;m.checkSupport(V);var $=m.getTypeOf(W);return q[$][V](W)},m.resolve=function(V){for(var W=V.split("/"),$=[],R=0;R<W.length;R++){var z=W[R];z==="."||z===""&&R!==0&&R!==W.length-1||(z===".."?$.pop():$.push(z))}return $.join("/")},m.getTypeOf=function(V){return typeof V=="string"?"string":Object.prototype.toString.call(V)==="[object Array]"?"array":f.nodebuffer&&b.isBuffer(V)?"nodebuffer":f.uint8array&&V instanceof Uint8Array?"uint8array":f.arraybuffer&&V instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(V){if(!f[V.toLowerCase()])throw new Error(V+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(V){var W,$,R="";for($=0;$<(V||"").length;$++)R+="\\x"+((W=V.charCodeAt($))<16?"0":"")+W.toString(16).toUpperCase();return R},m.delay=function(V,W,$){u((function(){V.apply($||null,W||[])}))},m.inherits=function(V,W){function $(){}$.prototype=W.prototype,V.prototype=new $},m.extend=function(){var V,W,$={};for(V=0;V<arguments.length;V++)for(W in arguments[V])Object.prototype.hasOwnProperty.call(arguments[V],W)&&$[W]===void 0&&($[W]=arguments[V][W]);return $},m.prepareContent=function(V,W,$,R,z){return T.Promise.resolve(W).then((function(A){return f.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader<"u"?new T.Promise((function(g,x){var S=new FileReader;S.onload=function(E){g(E.target.result)},S.onerror=function(E){x(E.target.error)},S.readAsArrayBuffer(A)})):A})).then((function(A){var g=m.getTypeOf(A);return g?(g==="arraybuffer"?A=m.transformTo("uint8array",A):g==="string"&&(z?A=v.decode(A):$&&R!==!0&&(A=(function(x){return I(x,f.uint8array?new Uint8Array(x.length):new Array(x.length))})(A))),A):T.Promise.reject(new Error("Can't read the data of '"+V+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,p,m){var f=o("./reader/readerFor"),v=o("./utils"),b=o("./signature"),T=o("./zipEntry"),C=o("./support");function I(H){this.files=[],this.loadOptions=H}I.prototype={checkSignature:function(H){if(!this.reader.readAndCheckSignature(H)){this.reader.index-=4;var Z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(Z)+", expected "+v.pretty(H)+")")}},isSignature:function(H,Z){var P=this.reader.index;this.reader.setIndex(H);var q=this.reader.readString(4)===Z;return this.reader.setIndex(P),q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var H=this.reader.readData(this.zipCommentLength),Z=C.uint8array?"uint8array":"array",P=v.transformTo(Z,H);this.zipComment=this.loadOptions.decodeFileName(P)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var H,Z,P,q=this.zip64EndOfCentralSize-44;0<q;)H=this.reader.readInt(2),Z=this.reader.readInt(4),P=this.reader.readData(Z),this.zip64ExtensibleData[H]={id:H,length:Z,value:P}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var H,Z;for(H=0;H<this.files.length;H++)Z=this.files[H],this.reader.setIndex(Z.localHeaderOffset),this.checkSignature(b.LOCAL_FILE_HEADER),Z.readLocalPart(this.reader),Z.handleUTF8(),Z.processAttributes()},readCentralDir:function(){var H;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(b.CENTRAL_FILE_HEADER);)(H=new T({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(H);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var H=this.reader.lastIndexOfSignature(b.CENTRAL_DIRECTORY_END);if(H<0)throw this.isSignature(0,b.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(H);var Z=H;if(this.checkSignature(b.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(H=this.reader.lastIndexOfSignature(b.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(H),this.checkSignature(b.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,b.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(b.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(b.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var q=Z-P;if(0<q)this.isSignature(Z,b.CENTRAL_FILE_HEADER)||(this.reader.zero=q);else if(q<0)throw new Error("Corrupted zip: missing "+Math.abs(q)+" bytes.")},prepareReader:function(H){this.reader=f(H)},load:function(H){this.prepareReader(H),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=I},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,p,m){var f=o("./reader/readerFor"),v=o("./utils"),b=o("./compressedObject"),T=o("./crc32"),C=o("./utf8"),I=o("./compressions"),H=o("./support");function Z(P,q){this.options=P,this.loadOptions=q}Z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(P){var q,V;if(P.skip(22),this.fileNameLength=P.readInt(2),V=P.readInt(2),this.fileName=P.readData(this.fileNameLength),P.skip(V),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((q=(function(W){for(var $ in I)if(Object.prototype.hasOwnProperty.call(I,$)&&I[$].magic===W)return I[$];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new b(this.compressedSize,this.uncompressedSize,this.crc32,q,P.readData(this.compressedSize))},readCentralPart:function(P){this.versionMadeBy=P.readInt(2),P.skip(2),this.bitFlag=P.readInt(2),this.compressionMethod=P.readString(2),this.date=P.readDate(),this.crc32=P.readInt(4),this.compressedSize=P.readInt(4),this.uncompressedSize=P.readInt(4);var q=P.readInt(2);if(this.extraFieldsLength=P.readInt(2),this.fileCommentLength=P.readInt(2),this.diskNumberStart=P.readInt(2),this.internalFileAttributes=P.readInt(2),this.externalFileAttributes=P.readInt(4),this.localHeaderOffset=P.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");P.skip(q),this.readExtraFields(P),this.parseZIP64ExtraField(P),this.fileComment=P.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var P=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),P==0&&(this.dosPermissions=63&this.externalFileAttributes),P==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var P=f(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=P.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=P.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=P.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=P.readInt(4))}},readExtraFields:function(P){var q,V,W,$=P.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});P.index+4<$;)q=P.readInt(2),V=P.readInt(2),W=P.readData(V),this.extraFields[q]={id:q,length:V,value:W};P.setIndex($)},handleUTF8:function(){var P=H.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=C.utf8decode(this.fileName),this.fileCommentStr=C.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var V=v.transformTo(P,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(V)}var W=this.findExtraFieldUnicodeComment();if(W!==null)this.fileCommentStr=W;else{var $=v.transformTo(P,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName($)}}},findExtraFieldUnicodePath:function(){var P=this.extraFields[28789];if(P){var q=f(P.value);return q.readInt(1)!==1||T(this.fileName)!==q.readInt(4)?null:C.utf8decode(q.readData(P.length-5))}return null},findExtraFieldUnicodeComment:function(){var P=this.extraFields[25461];if(P){var q=f(P.value);return q.readInt(1)!==1||T(this.fileComment)!==q.readInt(4)?null:C.utf8decode(q.readData(P.length-5))}return null}},p.exports=Z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,p,m){function f(q,V,W){this.name=q,this.dir=W.dir,this.date=W.date,this.comment=W.comment,this.unixPermissions=W.unixPermissions,this.dosPermissions=W.dosPermissions,this._data=V,this._dataBinary=W.binary,this.options={compression:W.compression,compressionOptions:W.compressionOptions}}var v=o("./stream/StreamHelper"),b=o("./stream/DataWorker"),T=o("./utf8"),C=o("./compressedObject"),I=o("./stream/GenericWorker");f.prototype={internalStream:function(q){var V=null,W="string";try{if(!q)throw new Error("No output type specified.");var $=(W=q.toLowerCase())==="string"||W==="text";W!=="binarystring"&&W!=="text"||(W="string"),V=this._decompressWorker();var R=!this._dataBinary;R&&!$&&(V=V.pipe(new T.Utf8EncodeWorker)),!R&&$&&(V=V.pipe(new T.Utf8DecodeWorker))}catch(z){(V=new I("error")).error(z)}return new v(V,W,"")},async:function(q,V){return this.internalStream(q).accumulate(V)},nodeStream:function(q,V){return this.internalStream(q||"nodebuffer").toNodejsStream(V)},_compressWorker:function(q,V){if(this._data instanceof C&&this._data.compression.magic===q.magic)return this._data.getCompressedWorker();var W=this._decompressWorker();return this._dataBinary||(W=W.pipe(new T.Utf8EncodeWorker)),C.createWorkerFrom(W,q,V)},_decompressWorker:function(){return this._data instanceof C?this._data.getContentWorker():this._data instanceof I?this._data:new b(this._data)}};for(var H=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},P=0;P<H.length;P++)f.prototype[H[P]]=Z;p.exports=f},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,p,m){(function(f){var v,b,T=f.MutationObserver||f.WebKitMutationObserver;if(T){var C=0,I=new T(q),H=f.document.createTextNode("");I.observe(H,{characterData:!0}),v=function(){H.data=C=++C%2}}else if(f.setImmediate||f.MessageChannel===void 0)v="document"in f&&"onreadystatechange"in f.document.createElement("script")?function(){var V=f.document.createElement("script");V.onreadystatechange=function(){q(),V.onreadystatechange=null,V.parentNode.removeChild(V),V=null},f.document.documentElement.appendChild(V)}:function(){setTimeout(q,0)};else{var Z=new f.MessageChannel;Z.port1.onmessage=q,v=function(){Z.port2.postMessage(0)}}var P=[];function q(){var V,W;b=!0;for(var $=P.length;$;){for(W=P,P=[],V=-1;++V<$;)W[V]();$=P.length}b=!1}p.exports=function(V){P.push(V)!==1||b||v()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,p,m){var f=o("immediate");function v(){}var b={},T=["REJECTED"],C=["FULFILLED"],I=["PENDING"];function H($){if(typeof $!="function")throw new TypeError("resolver must be a function");this.state=I,this.queue=[],this.outcome=void 0,$!==v&&V(this,$)}function Z($,R,z){this.promise=$,typeof R=="function"&&(this.onFulfilled=R,this.callFulfilled=this.otherCallFulfilled),typeof z=="function"&&(this.onRejected=z,this.callRejected=this.otherCallRejected)}function P($,R,z){f((function(){var A;try{A=R(z)}catch(g){return b.reject($,g)}A===$?b.reject($,new TypeError("Cannot resolve promise with itself")):b.resolve($,A)}))}function q($){var R=$&&$.then;if($&&(typeof $=="object"||typeof $=="function")&&typeof R=="function")return function(){R.apply($,arguments)}}function V($,R){var z=!1;function A(S){z||(z=!0,b.reject($,S))}function g(S){z||(z=!0,b.resolve($,S))}var x=W((function(){R(g,A)}));x.status==="error"&&A(x.value)}function W($,R){var z={};try{z.value=$(R),z.status="success"}catch(A){z.status="error",z.value=A}return z}(p.exports=H).prototype.finally=function($){if(typeof $!="function")return this;var R=this.constructor;return this.then((function(z){return R.resolve($()).then((function(){return z}))}),(function(z){return R.resolve($()).then((function(){throw z}))}))},H.prototype.catch=function($){return this.then(null,$)},H.prototype.then=function($,R){if(typeof $!="function"&&this.state===C||typeof R!="function"&&this.state===T)return this;var z=new this.constructor(v);return this.state!==I?P(z,this.state===C?$:R,this.outcome):this.queue.push(new Z(z,$,R)),z},Z.prototype.callFulfilled=function($){b.resolve(this.promise,$)},Z.prototype.otherCallFulfilled=function($){P(this.promise,this.onFulfilled,$)},Z.prototype.callRejected=function($){b.reject(this.promise,$)},Z.prototype.otherCallRejected=function($){P(this.promise,this.onRejected,$)},b.resolve=function($,R){var z=W(q,R);if(z.status==="error")return b.reject($,z.value);var A=z.value;if(A)V($,A);else{$.state=C,$.outcome=R;for(var g=-1,x=$.queue.length;++g<x;)$.queue[g].callFulfilled(R)}return $},b.reject=function($,R){$.state=T,$.outcome=R;for(var z=-1,A=$.queue.length;++z<A;)$.queue[z].callRejected(R);return $},H.resolve=function($){return $ instanceof this?$:b.resolve(new this(v),$)},H.reject=function($){var R=new this(v);return b.reject(R,$)},H.all=function($){var R=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=$.length,A=!1;if(!z)return this.resolve([]);for(var g=new Array(z),x=0,S=-1,E=new this(v);++S<z;)O($[S],S);return E;function O(j,B){R.resolve(j).then((function(Y){g[B]=Y,++x!==z||A||(A=!0,b.resolve(E,g))}),(function(Y){A||(A=!0,b.reject(E,Y))}))}},H.race=function($){if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=$.length,z=!1;if(!R)return this.resolve([]);for(var A,g=-1,x=new this(v);++g<R;)A=$[g],this.resolve(A).then((function(S){z||(z=!0,b.resolve(x,S))}),(function(S){z||(z=!0,b.reject(x,S))}));return x}},{immediate:36}],38:[function(o,p,m){var f={};(0,o("./lib/utils/common").assign)(f,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),p.exports=f},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,p,m){var f=o("./zlib/deflate"),v=o("./utils/common"),b=o("./utils/strings"),T=o("./zlib/messages"),C=o("./zlib/zstream"),I=Object.prototype.toString;function H(P){if(!(this instanceof H))return new H(P);this.options=v.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},P||{});var q=this.options;q.raw&&0<q.windowBits?q.windowBits=-q.windowBits:q.gzip&&0<q.windowBits&&q.windowBits<16&&(q.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var V=f.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if(V!==0)throw new Error(T[V]);if(q.header&&f.deflateSetHeader(this.strm,q.header),q.dictionary){var W;if(W=typeof q.dictionary=="string"?b.string2buf(q.dictionary):I.call(q.dictionary)==="[object ArrayBuffer]"?new Uint8Array(q.dictionary):q.dictionary,(V=f.deflateSetDictionary(this.strm,W))!==0)throw new Error(T[V]);this._dict_set=!0}}function Z(P,q){var V=new H(q);if(V.push(P,!0),V.err)throw V.msg||T[V.err];return V.result}H.prototype.push=function(P,q){var V,W,$=this.strm,R=this.options.chunkSize;if(this.ended)return!1;W=q===~~q?q:q===!0?4:0,typeof P=="string"?$.input=b.string2buf(P):I.call(P)==="[object ArrayBuffer]"?$.input=new Uint8Array(P):$.input=P,$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0&&($.output=new v.Buf8(R),$.next_out=0,$.avail_out=R),(V=f.deflate($,W))!==1&&V!==0)return this.onEnd(V),!(this.ended=!0);$.avail_out!==0&&($.avail_in!==0||W!==4&&W!==2)||(this.options.to==="string"?this.onData(b.buf2binstring(v.shrinkBuf($.output,$.next_out))):this.onData(v.shrinkBuf($.output,$.next_out)))}while((0<$.avail_in||$.avail_out===0)&&V!==1);return W===4?(V=f.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===0):W!==2||(this.onEnd(0),!($.avail_out=0))},H.prototype.onData=function(P){this.chunks.push(P)},H.prototype.onEnd=function(P){P===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},m.Deflate=H,m.deflate=Z,m.deflateRaw=function(P,q){return(q=q||{}).raw=!0,Z(P,q)},m.gzip=function(P,q){return(q=q||{}).gzip=!0,Z(P,q)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,p,m){var f=o("./zlib/inflate"),v=o("./utils/common"),b=o("./utils/strings"),T=o("./zlib/constants"),C=o("./zlib/messages"),I=o("./zlib/zstream"),H=o("./zlib/gzheader"),Z=Object.prototype.toString;function P(V){if(!(this instanceof P))return new P(V);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},V||{});var W=this.options;W.raw&&0<=W.windowBits&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),!(0<=W.windowBits&&W.windowBits<16)||V&&V.windowBits||(W.windowBits+=32),15<W.windowBits&&W.windowBits<48&&(15&W.windowBits)==0&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var $=f.inflateInit2(this.strm,W.windowBits);if($!==T.Z_OK)throw new Error(C[$]);this.header=new H,f.inflateGetHeader(this.strm,this.header)}function q(V,W){var $=new P(W);if($.push(V,!0),$.err)throw $.msg||C[$.err];return $.result}P.prototype.push=function(V,W){var $,R,z,A,g,x,S=this.strm,E=this.options.chunkSize,O=this.options.dictionary,j=!1;if(this.ended)return!1;R=W===~~W?W:W===!0?T.Z_FINISH:T.Z_NO_FLUSH,typeof V=="string"?S.input=b.binstring2buf(V):Z.call(V)==="[object ArrayBuffer]"?S.input=new Uint8Array(V):S.input=V,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new v.Buf8(E),S.next_out=0,S.avail_out=E),($=f.inflate(S,T.Z_NO_FLUSH))===T.Z_NEED_DICT&&O&&(x=typeof O=="string"?b.string2buf(O):Z.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,$=f.inflateSetDictionary(this.strm,x)),$===T.Z_BUF_ERROR&&j===!0&&($=T.Z_OK,j=!1),$!==T.Z_STREAM_END&&$!==T.Z_OK)return this.onEnd($),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&$!==T.Z_STREAM_END&&(S.avail_in!==0||R!==T.Z_FINISH&&R!==T.Z_SYNC_FLUSH)||(this.options.to==="string"?(z=b.utf8border(S.output,S.next_out),A=S.next_out-z,g=b.buf2string(S.output,z),S.next_out=A,S.avail_out=E-A,A&&v.arraySet(S.output,S.output,z,A,0),this.onData(g)):this.onData(v.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(j=!0)}while((0<S.avail_in||S.avail_out===0)&&$!==T.Z_STREAM_END);return $===T.Z_STREAM_END&&(R=T.Z_FINISH),R===T.Z_FINISH?($=f.inflateEnd(this.strm),this.onEnd($),this.ended=!0,$===T.Z_OK):R!==T.Z_SYNC_FLUSH||(this.onEnd(T.Z_OK),!(S.avail_out=0))},P.prototype.onData=function(V){this.chunks.push(V)},P.prototype.onEnd=function(V){V===T.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=V,this.msg=this.strm.msg},m.Inflate=P,m.inflate=q,m.inflateRaw=function(V,W){return(W=W||{}).raw=!0,q(V,W)},m.ungzip=q},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,p,m){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";m.assign=function(T){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var I=C.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(var H in I)I.hasOwnProperty(H)&&(T[H]=I[H])}}return T},m.shrinkBuf=function(T,C){return T.length===C?T:T.subarray?T.subarray(0,C):(T.length=C,T)};var v={arraySet:function(T,C,I,H,Z){if(C.subarray&&T.subarray)T.set(C.subarray(I,I+H),Z);else for(var P=0;P<H;P++)T[Z+P]=C[I+P]},flattenChunks:function(T){var C,I,H,Z,P,q;for(C=H=0,I=T.length;C<I;C++)H+=T[C].length;for(q=new Uint8Array(H),C=Z=0,I=T.length;C<I;C++)P=T[C],q.set(P,Z),Z+=P.length;return q}},b={arraySet:function(T,C,I,H,Z){for(var P=0;P<H;P++)T[Z+P]=C[I+P]},flattenChunks:function(T){return[].concat.apply([],T)}};m.setTyped=function(T){T?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,v)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,b))},m.setTyped(f)},{}],42:[function(o,p,m){var f=o("./common"),v=!0,b=!0;try{String.fromCharCode.apply(null,[0])}catch{v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{b=!1}for(var T=new f.Buf8(256),C=0;C<256;C++)T[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function I(H,Z){if(Z<65537&&(H.subarray&&b||!H.subarray&&v))return String.fromCharCode.apply(null,f.shrinkBuf(H,Z));for(var P="",q=0;q<Z;q++)P+=String.fromCharCode(H[q]);return P}T[254]=T[254]=1,m.string2buf=function(H){var Z,P,q,V,W,$=H.length,R=0;for(V=0;V<$;V++)(64512&(P=H.charCodeAt(V)))==55296&&V+1<$&&(64512&(q=H.charCodeAt(V+1)))==56320&&(P=65536+(P-55296<<10)+(q-56320),V++),R+=P<128?1:P<2048?2:P<65536?3:4;for(Z=new f.Buf8(R),V=W=0;W<R;V++)(64512&(P=H.charCodeAt(V)))==55296&&V+1<$&&(64512&(q=H.charCodeAt(V+1)))==56320&&(P=65536+(P-55296<<10)+(q-56320),V++),P<128?Z[W++]=P:(P<2048?Z[W++]=192|P>>>6:(P<65536?Z[W++]=224|P>>>12:(Z[W++]=240|P>>>18,Z[W++]=128|P>>>12&63),Z[W++]=128|P>>>6&63),Z[W++]=128|63&P);return Z},m.buf2binstring=function(H){return I(H,H.length)},m.binstring2buf=function(H){for(var Z=new f.Buf8(H.length),P=0,q=Z.length;P<q;P++)Z[P]=H.charCodeAt(P);return Z},m.buf2string=function(H,Z){var P,q,V,W,$=Z||H.length,R=new Array(2*$);for(P=q=0;P<$;)if((V=H[P++])<128)R[q++]=V;else if(4<(W=T[V]))R[q++]=65533,P+=W-1;else{for(V&=W===2?31:W===3?15:7;1<W&&P<$;)V=V<<6|63&H[P++],W--;1<W?R[q++]=65533:V<65536?R[q++]=V:(V-=65536,R[q++]=55296|V>>10&1023,R[q++]=56320|1023&V)}return I(R,q)},m.utf8border=function(H,Z){var P;for((Z=Z||H.length)>H.length&&(Z=H.length),P=Z-1;0<=P&&(192&H[P])==128;)P--;return P<0||P===0?Z:P+T[H[P]]>Z?P:Z}},{"./common":41}],43:[function(o,p,m){p.exports=function(f,v,b,T){for(var C=65535&f|0,I=f>>>16&65535|0,H=0;b!==0;){for(b-=H=2e3<b?2e3:b;I=I+(C=C+v[T++]|0)|0,--H;);C%=65521,I%=65521}return C|I<<16|0}},{}],44:[function(o,p,m){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,p,m){var f=(function(){for(var v,b=[],T=0;T<256;T++){v=T;for(var C=0;C<8;C++)v=1&v?3988292384^v>>>1:v>>>1;b[T]=v}return b})();p.exports=function(v,b,T,C){var I=f,H=C+T;v^=-1;for(var Z=C;Z<H;Z++)v=v>>>8^I[255&(v^b[Z])];return-1^v}},{}],46:[function(o,p,m){var f,v=o("../utils/common"),b=o("./trees"),T=o("./adler32"),C=o("./crc32"),I=o("./messages"),H=-2,Z=258,P=262,q=113;function V(U,J){return U.msg=I[J],J}function W(U){return(U<<1)-(4<U?9:0)}function $(U){for(var J=U.length;0<=--J;)U[J]=0}function R(U){var J=U.state,L=J.pending;L>U.avail_out&&(L=U.avail_out),L!==0&&(v.arraySet(U.output,J.pending_buf,J.pending_out,L,U.next_out),U.next_out+=L,J.pending_out+=L,U.total_out+=L,U.avail_out-=L,J.pending-=L,J.pending===0&&(J.pending_out=0))}function z(U,J){b._tr_flush_block(U,0<=U.block_start?U.block_start:-1,U.strstart-U.block_start,J),U.block_start=U.strstart,R(U.strm)}function A(U,J){U.pending_buf[U.pending++]=J}function g(U,J){U.pending_buf[U.pending++]=J>>>8&255,U.pending_buf[U.pending++]=255&J}function x(U,J){var L,N,X=U.max_chain_length,rt=U.strstart,ut=U.prev_length,it=U.nice_match,lt=U.strstart>U.w_size-P?U.strstart-(U.w_size-P):0,gt=U.window,bt=U.w_mask,st=U.prev,dt=U.strstart+Z,ht=gt[rt+ut-1],xt=gt[rt+ut];U.prev_length>=U.good_match&&(X>>=2),it>U.lookahead&&(it=U.lookahead);do if(gt[(L=J)+ut]===xt&>[L+ut-1]===ht&>[L]===gt[rt]&>[++L]===gt[rt+1]){rt+=2,L++;do;while(gt[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&>[++rt]===gt[++L]&&rt<dt);if(N=Z-(dt-rt),rt=dt-Z,ut<N){if(U.match_start=J,it<=(ut=N))break;ht=gt[rt+ut-1],xt=gt[rt+ut]}}while((J=st[J&bt])>lt&&--X!=0);return ut<=U.lookahead?ut:U.lookahead}function S(U){var J,L,N,X,rt,ut,it,lt,gt,bt,st=U.w_size;do{if(X=U.window_size-U.lookahead-U.strstart,U.strstart>=st+(st-P)){for(v.arraySet(U.window,U.window,st,st,0),U.match_start-=st,U.strstart-=st,U.block_start-=st,J=L=U.hash_size;N=U.head[--J],U.head[J]=st<=N?N-st:0,--L;);for(J=L=st;N=U.prev[--J],U.prev[J]=st<=N?N-st:0,--L;);X+=st}if(U.strm.avail_in===0)break;if(ut=U.strm,it=U.window,lt=U.strstart+U.lookahead,bt=void 0,(gt=X)<(bt=ut.avail_in)&&(bt=gt),L=bt===0?0:(ut.avail_in-=bt,v.arraySet(it,ut.input,ut.next_in,bt,lt),ut.state.wrap===1?ut.adler=T(ut.adler,it,bt,lt):ut.state.wrap===2&&(ut.adler=C(ut.adler,it,bt,lt)),ut.next_in+=bt,ut.total_in+=bt,bt),U.lookahead+=L,U.lookahead+U.insert>=3)for(rt=U.strstart-U.insert,U.ins_h=U.window[rt],U.ins_h=(U.ins_h<<U.hash_shift^U.window[rt+1])&U.hash_mask;U.insert&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[rt+3-1])&U.hash_mask,U.prev[rt&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=rt,rt++,U.insert--,!(U.lookahead+U.insert<3)););}while(U.lookahead<P&&U.strm.avail_in!==0)}function E(U,J){for(var L,N;;){if(U.lookahead<P){if(S(U),U.lookahead<P&&J===0)return 1;if(U.lookahead===0)break}if(L=0,U.lookahead>=3&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+3-1])&U.hash_mask,L=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),L!==0&&U.strstart-L<=U.w_size-P&&(U.match_length=x(U,L)),U.match_length>=3)if(N=b._tr_tally(U,U.strstart-U.match_start,U.match_length-3),U.lookahead-=U.match_length,U.match_length<=U.max_lazy_match&&U.lookahead>=3){for(U.match_length--;U.strstart++,U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+3-1])&U.hash_mask,L=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart,--U.match_length!=0;);U.strstart++}else U.strstart+=U.match_length,U.match_length=0,U.ins_h=U.window[U.strstart],U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+1])&U.hash_mask;else N=b._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++;if(N&&(z(U,!1),U.strm.avail_out===0))return 1}return U.insert=U.strstart<2?U.strstart:2,J===4?(z(U,!0),U.strm.avail_out===0?3:4):U.last_lit&&(z(U,!1),U.strm.avail_out===0)?1:2}function O(U,J){for(var L,N,X;;){if(U.lookahead<P){if(S(U),U.lookahead<P&&J===0)return 1;if(U.lookahead===0)break}if(L=0,U.lookahead>=3&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+3-1])&U.hash_mask,L=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),U.prev_length=U.match_length,U.prev_match=U.match_start,U.match_length=2,L!==0&&U.prev_length<U.max_lazy_match&&U.strstart-L<=U.w_size-P&&(U.match_length=x(U,L),U.match_length<=5&&(U.strategy===1||U.match_length===3&&4096<U.strstart-U.match_start)&&(U.match_length=2)),U.prev_length>=3&&U.match_length<=U.prev_length){for(X=U.strstart+U.lookahead-3,N=b._tr_tally(U,U.strstart-1-U.prev_match,U.prev_length-3),U.lookahead-=U.prev_length-1,U.prev_length-=2;++U.strstart<=X&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+3-1])&U.hash_mask,L=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),--U.prev_length!=0;);if(U.match_available=0,U.match_length=2,U.strstart++,N&&(z(U,!1),U.strm.avail_out===0))return 1}else if(U.match_available){if((N=b._tr_tally(U,0,U.window[U.strstart-1]))&&z(U,!1),U.strstart++,U.lookahead--,U.strm.avail_out===0)return 1}else U.match_available=1,U.strstart++,U.lookahead--}return U.match_available&&(N=b._tr_tally(U,0,U.window[U.strstart-1]),U.match_available=0),U.insert=U.strstart<2?U.strstart:2,J===4?(z(U,!0),U.strm.avail_out===0?3:4):U.last_lit&&(z(U,!1),U.strm.avail_out===0)?1:2}function j(U,J,L,N,X){this.good_length=U,this.max_lazy=J,this.nice_length=L,this.max_chain=N,this.func=X}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(1146),this.dyn_dtree=new v.Buf16(122),this.bl_tree=new v.Buf16(78),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(16),this.heap=new v.Buf16(573),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(573),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(U){var J;return U&&U.state?(U.total_in=U.total_out=0,U.data_type=2,(J=U.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?42:q,U.adler=J.wrap===2?0:1,J.last_flush=0,b._tr_init(J),0):V(U,H)}function K(U){var J=Y(U);return J===0&&(function(L){L.window_size=2*L.w_size,$(L.head),L.max_lazy_match=f[L.level].max_lazy,L.good_match=f[L.level].good_length,L.nice_match=f[L.level].nice_length,L.max_chain_length=f[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0})(U.state),J}function nt(U,J,L,N,X,rt){if(!U)return H;var ut=1;if(J===-1&&(J=6),N<0?(ut=0,N=-N):15<N&&(ut=2,N-=16),X<1||9<X||L!==8||N<8||15<N||J<0||9<J||rt<0||4<rt)return V(U,H);N===8&&(N=9);var it=new B;return(U.state=it).strm=U,it.wrap=ut,it.gzhead=null,it.w_bits=N,it.w_size=1<<it.w_bits,it.w_mask=it.w_size-1,it.hash_bits=X+7,it.hash_size=1<<it.hash_bits,it.hash_mask=it.hash_size-1,it.hash_shift=~~((it.hash_bits+3-1)/3),it.window=new v.Buf8(2*it.w_size),it.head=new v.Buf16(it.hash_size),it.prev=new v.Buf16(it.w_size),it.lit_bufsize=1<<X+6,it.pending_buf_size=4*it.lit_bufsize,it.pending_buf=new v.Buf8(it.pending_buf_size),it.d_buf=1*it.lit_bufsize,it.l_buf=3*it.lit_bufsize,it.level=J,it.strategy=rt,it.method=L,K(U)}f=[new j(0,0,0,0,(function(U,J){var L=65535;for(L>U.pending_buf_size-5&&(L=U.pending_buf_size-5);;){if(U.lookahead<=1){if(S(U),U.lookahead===0&&J===0)return 1;if(U.lookahead===0)break}U.strstart+=U.lookahead,U.lookahead=0;var N=U.block_start+L;if((U.strstart===0||U.strstart>=N)&&(U.lookahead=U.strstart-N,U.strstart=N,z(U,!1),U.strm.avail_out===0)||U.strstart-U.block_start>=U.w_size-P&&(z(U,!1),U.strm.avail_out===0))return 1}return U.insert=0,J===4?(z(U,!0),U.strm.avail_out===0?3:4):(U.strstart>U.block_start&&(z(U,!1),U.strm.avail_out),1)})),new j(4,4,8,4,E),new j(4,5,16,8,E),new j(4,6,32,32,E),new j(4,4,16,16,O),new j(8,16,32,32,O),new j(8,16,128,128,O),new j(8,32,128,256,O),new j(32,128,258,1024,O),new j(32,258,258,4096,O)],m.deflateInit=function(U,J){return nt(U,J,8,15,8,0)},m.deflateInit2=nt,m.deflateReset=K,m.deflateResetKeep=Y,m.deflateSetHeader=function(U,J){return U&&U.state?U.state.wrap!==2?H:(U.state.gzhead=J,0):H},m.deflate=function(U,J){var L,N,X,rt;if(!U||!U.state||5<J||J<0)return U?V(U,H):H;if(N=U.state,!U.output||!U.input&&U.avail_in!==0||N.status===666&&J!==4)return V(U,U.avail_out===0?-5:H);if(N.strm=U,L=N.last_flush,N.last_flush=J,N.status===42)if(N.wrap===2)U.adler=0,A(N,31),A(N,139),A(N,8),N.gzhead?(A(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),A(N,255&N.gzhead.time),A(N,N.gzhead.time>>8&255),A(N,N.gzhead.time>>16&255),A(N,N.gzhead.time>>24&255),A(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),A(N,255&N.gzhead.os),N.gzhead.extra&&N.gzhead.extra.length&&(A(N,255&N.gzhead.extra.length),A(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(U.adler=C(U.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(A(N,0),A(N,0),A(N,0),A(N,0),A(N,0),A(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),A(N,3),N.status=q);else{var ut=8+(N.w_bits-8<<4)<<8;ut|=(2<=N.strategy||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6,N.strstart!==0&&(ut|=32),ut+=31-ut%31,N.status=q,g(N,ut),N.strstart!==0&&(g(N,U.adler>>>16),g(N,65535&U.adler)),U.adler=1}if(N.status===69)if(N.gzhead.extra){for(X=N.pending;N.gzindex<(65535&N.gzhead.extra.length)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),R(U),X=N.pending,N.pending!==N.pending_buf_size));)A(N,255&N.gzhead.extra[N.gzindex]),N.gzindex++;N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),N.gzindex===N.gzhead.extra.length&&(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),R(U),X=N.pending,N.pending===N.pending_buf_size)){rt=1;break}rt=N.gzindex<N.gzhead.name.length?255&N.gzhead.name.charCodeAt(N.gzindex++):0,A(N,rt)}while(rt!==0);N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),rt===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===91)if(N.gzhead.comment){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),R(U),X=N.pending,N.pending===N.pending_buf_size)){rt=1;break}rt=N.gzindex<N.gzhead.comment.length?255&N.gzhead.comment.charCodeAt(N.gzindex++):0,A(N,rt)}while(rt!==0);N.gzhead.hcrc&&N.pending>X&&(U.adler=C(U.adler,N.pending_buf,N.pending-X,X)),rt===0&&(N.status=103)}else N.status=103;if(N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&R(U),N.pending+2<=N.pending_buf_size&&(A(N,255&U.adler),A(N,U.adler>>8&255),U.adler=0,N.status=q)):N.status=q),N.pending!==0){if(R(U),U.avail_out===0)return N.last_flush=-1,0}else if(U.avail_in===0&&W(J)<=W(L)&&J!==4)return V(U,-5);if(N.status===666&&U.avail_in!==0)return V(U,-5);if(U.avail_in!==0||N.lookahead!==0||J!==0&&N.status!==666){var it=N.strategy===2?(function(lt,gt){for(var bt;;){if(lt.lookahead===0&&(S(lt),lt.lookahead===0)){if(gt===0)return 1;break}if(lt.match_length=0,bt=b._tr_tally(lt,0,lt.window[lt.strstart]),lt.lookahead--,lt.strstart++,bt&&(z(lt,!1),lt.strm.avail_out===0))return 1}return lt.insert=0,gt===4?(z(lt,!0),lt.strm.avail_out===0?3:4):lt.last_lit&&(z(lt,!1),lt.strm.avail_out===0)?1:2})(N,J):N.strategy===3?(function(lt,gt){for(var bt,st,dt,ht,xt=lt.window;;){if(lt.lookahead<=Z){if(S(lt),lt.lookahead<=Z&>===0)return 1;if(lt.lookahead===0)break}if(lt.match_length=0,lt.lookahead>=3&&0<lt.strstart&&(st=xt[dt=lt.strstart-1])===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]){ht=lt.strstart+Z;do;while(st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&st===xt[++dt]&&dt<ht);lt.match_length=Z-(ht-dt),lt.match_length>lt.lookahead&&(lt.match_length=lt.lookahead)}if(lt.match_length>=3?(bt=b._tr_tally(lt,1,lt.match_length-3),lt.lookahead-=lt.match_length,lt.strstart+=lt.match_length,lt.match_length=0):(bt=b._tr_tally(lt,0,lt.window[lt.strstart]),lt.lookahead--,lt.strstart++),bt&&(z(lt,!1),lt.strm.avail_out===0))return 1}return lt.insert=0,gt===4?(z(lt,!0),lt.strm.avail_out===0?3:4):lt.last_lit&&(z(lt,!1),lt.strm.avail_out===0)?1:2})(N,J):f[N.level].func(N,J);if(it!==3&&it!==4||(N.status=666),it===1||it===3)return U.avail_out===0&&(N.last_flush=-1),0;if(it===2&&(J===1?b._tr_align(N):J!==5&&(b._tr_stored_block(N,0,0,!1),J===3&&($(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),R(U),U.avail_out===0))return N.last_flush=-1,0}return J!==4?0:N.wrap<=0?1:(N.wrap===2?(A(N,255&U.adler),A(N,U.adler>>8&255),A(N,U.adler>>16&255),A(N,U.adler>>24&255),A(N,255&U.total_in),A(N,U.total_in>>8&255),A(N,U.total_in>>16&255),A(N,U.total_in>>24&255)):(g(N,U.adler>>>16),g(N,65535&U.adler)),R(U),0<N.wrap&&(N.wrap=-N.wrap),N.pending!==0?0:1)},m.deflateEnd=function(U){var J;return U&&U.state?(J=U.state.status)!==42&&J!==69&&J!==73&&J!==91&&J!==103&&J!==q&&J!==666?V(U,H):(U.state=null,J===q?V(U,-3):0):H},m.deflateSetDictionary=function(U,J){var L,N,X,rt,ut,it,lt,gt,bt=J.length;if(!U||!U.state||(rt=(L=U.state).wrap)===2||rt===1&&L.status!==42||L.lookahead)return H;for(rt===1&&(U.adler=T(U.adler,J,bt,0)),L.wrap=0,bt>=L.w_size&&(rt===0&&($(L.head),L.strstart=0,L.block_start=0,L.insert=0),gt=new v.Buf8(L.w_size),v.arraySet(gt,J,bt-L.w_size,L.w_size,0),J=gt,bt=L.w_size),ut=U.avail_in,it=U.next_in,lt=U.input,U.avail_in=bt,U.next_in=0,U.input=J,S(L);L.lookahead>=3;){for(N=L.strstart,X=L.lookahead-2;L.ins_h=(L.ins_h<<L.hash_shift^L.window[N+3-1])&L.hash_mask,L.prev[N&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=N,N++,--X;);L.strstart=N,L.lookahead=2,S(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=2,L.match_available=0,U.next_in=it,U.input=lt,U.avail_in=ut,L.wrap=rt,0},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,p,m){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,p,m){p.exports=function(f,v){var b,T,C,I,H,Z,P,q,V,W,$,R,z,A,g,x,S,E,O,j,B,Y,K,nt,U;b=f.state,T=f.next_in,nt=f.input,C=T+(f.avail_in-5),I=f.next_out,U=f.output,H=I-(v-f.avail_out),Z=I+(f.avail_out-257),P=b.dmax,q=b.wsize,V=b.whave,W=b.wnext,$=b.window,R=b.hold,z=b.bits,A=b.lencode,g=b.distcode,x=(1<<b.lenbits)-1,S=(1<<b.distbits)-1;t:do{z<15&&(R+=nt[T++]<<z,z+=8,R+=nt[T++]<<z,z+=8),E=A[R&x];e:for(;;){if(R>>>=O=E>>>24,z-=O,(O=E>>>16&255)==0)U[I++]=65535&E;else{if(!(16&O)){if((64&O)==0){E=A[(65535&E)+(R&(1<<O)-1)];continue e}if(32&O){b.mode=12;break t}f.msg="invalid literal/length code",b.mode=30;break t}j=65535&E,(O&=15)&&(z<O&&(R+=nt[T++]<<z,z+=8),j+=R&(1<<O)-1,R>>>=O,z-=O),z<15&&(R+=nt[T++]<<z,z+=8,R+=nt[T++]<<z,z+=8),E=g[R&S];r:for(;;){if(R>>>=O=E>>>24,z-=O,!(16&(O=E>>>16&255))){if((64&O)==0){E=g[(65535&E)+(R&(1<<O)-1)];continue r}f.msg="invalid distance code",b.mode=30;break t}if(B=65535&E,z<(O&=15)&&(R+=nt[T++]<<z,(z+=8)<O&&(R+=nt[T++]<<z,z+=8)),P<(B+=R&(1<<O)-1)){f.msg="invalid distance too far back",b.mode=30;break t}if(R>>>=O,z-=O,(O=I-H)<B){if(V<(O=B-O)&&b.sane){f.msg="invalid distance too far back",b.mode=30;break t}if(K=$,(Y=0)===W){if(Y+=q-O,O<j){for(j-=O;U[I++]=$[Y++],--O;);Y=I-B,K=U}}else if(W<O){if(Y+=q+W-O,(O-=W)<j){for(j-=O;U[I++]=$[Y++],--O;);if(Y=0,W<j){for(j-=O=W;U[I++]=$[Y++],--O;);Y=I-B,K=U}}}else if(Y+=W-O,O<j){for(j-=O;U[I++]=$[Y++],--O;);Y=I-B,K=U}for(;2<j;)U[I++]=K[Y++],U[I++]=K[Y++],U[I++]=K[Y++],j-=3;j&&(U[I++]=K[Y++],1<j&&(U[I++]=K[Y++]))}else{for(Y=I-B;U[I++]=U[Y++],U[I++]=U[Y++],U[I++]=U[Y++],2<(j-=3););j&&(U[I++]=U[Y++],1<j&&(U[I++]=U[Y++]))}break}}break}}while(T<C&&I<Z);T-=j=z>>3,R&=(1<<(z-=j<<3))-1,f.next_in=T,f.next_out=I,f.avail_in=T<C?C-T+5:5-(T-C),f.avail_out=I<Z?Z-I+257:257-(I-Z),b.hold=R,b.bits=z}},{}],49:[function(o,p,m){var f=o("../utils/common"),v=o("./adler32"),b=o("./crc32"),T=o("./inffast"),C=o("./inftrees"),I=-2;function H(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function Z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function P(x){var S;return x&&x.state?(S=x.state,x.total_in=x.total_out=S.total=0,x.msg="",S.wrap&&(x.adler=1&S.wrap),S.mode=1,S.last=0,S.havedict=0,S.dmax=32768,S.head=null,S.hold=0,S.bits=0,S.lencode=S.lendyn=new f.Buf32(852),S.distcode=S.distdyn=new f.Buf32(592),S.sane=1,S.back=-1,0):I}function q(x){var S;return x&&x.state?((S=x.state).wsize=0,S.whave=0,S.wnext=0,P(x)):I}function V(x,S){var E,O;return x&&x.state?(O=x.state,S<0?(E=0,S=-S):(E=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15<S)?I:(O.window!==null&&O.wbits!==S&&(O.window=null),O.wrap=E,O.wbits=S,q(x))):I}function W(x,S){var E,O;return x?(O=new Z,(x.state=O).window=null,(E=V(x,S))!==0&&(x.state=null),E):I}var $,R,z=!0;function A(x){if(z){var S;for($=new f.Buf32(512),R=new f.Buf32(32),S=0;S<144;)x.lens[S++]=8;for(;S<256;)x.lens[S++]=9;for(;S<280;)x.lens[S++]=7;for(;S<288;)x.lens[S++]=8;for(C(1,x.lens,0,288,$,0,x.work,{bits:9}),S=0;S<32;)x.lens[S++]=5;C(2,x.lens,0,32,R,0,x.work,{bits:5}),z=!1}x.lencode=$,x.lenbits=9,x.distcode=R,x.distbits=5}function g(x,S,E,O){var j,B=x.state;return B.window===null&&(B.wsize=1<<B.wbits,B.wnext=0,B.whave=0,B.window=new f.Buf8(B.wsize)),O>=B.wsize?(f.arraySet(B.window,S,E-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(O<(j=B.wsize-B.wnext)&&(j=O),f.arraySet(B.window,S,E-O,j,B.wnext),(O-=j)?(f.arraySet(B.window,S,E-O,O,0),B.wnext=O,B.whave=B.wsize):(B.wnext+=j,B.wnext===B.wsize&&(B.wnext=0),B.whave<B.wsize&&(B.whave+=j))),0}m.inflateReset=q,m.inflateReset2=V,m.inflateResetKeep=P,m.inflateInit=function(x){return W(x,15)},m.inflateInit2=W,m.inflate=function(x,S){var E,O,j,B,Y,K,nt,U,J,L,N,X,rt,ut,it,lt,gt,bt,st,dt,ht,xt,_t,St,Ot=0,Rt=new f.Buf8(4),Ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return I;(E=x.state).mode===12&&(E.mode=13),Y=x.next_out,j=x.output,nt=x.avail_out,B=x.next_in,O=x.input,K=x.avail_in,U=E.hold,J=E.bits,L=K,N=nt,xt=0;t:for(;;)switch(E.mode){case 1:if(E.wrap===0){E.mode=13;break}for(;J<16;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(2&E.wrap&&U===35615){Rt[E.check=0]=255&U,Rt[1]=U>>>8&255,E.check=b(E.check,Rt,2,0),J=U=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&U)<<8)+(U>>8))%31){x.msg="incorrect header check",E.mode=30;break}if((15&U)!=8){x.msg="unknown compression method",E.mode=30;break}if(J-=4,ht=8+(15&(U>>>=4)),E.wbits===0)E.wbits=ht;else if(ht>E.wbits){x.msg="invalid window size",E.mode=30;break}E.dmax=1<<ht,x.adler=E.check=1,E.mode=512&U?10:12,J=U=0;break;case 2:for(;J<16;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(E.flags=U,(255&E.flags)!=8){x.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){x.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=U>>8&1),512&E.flags&&(Rt[0]=255&U,Rt[1]=U>>>8&255,E.check=b(E.check,Rt,2,0)),J=U=0,E.mode=3;case 3:for(;J<32;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.head&&(E.head.time=U),512&E.flags&&(Rt[0]=255&U,Rt[1]=U>>>8&255,Rt[2]=U>>>16&255,Rt[3]=U>>>24&255,E.check=b(E.check,Rt,4,0)),J=U=0,E.mode=4;case 4:for(;J<16;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.head&&(E.head.xflags=255&U,E.head.os=U>>8),512&E.flags&&(Rt[0]=255&U,Rt[1]=U>>>8&255,E.check=b(E.check,Rt,2,0)),J=U=0,E.mode=5;case 5:if(1024&E.flags){for(;J<16;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.length=U,E.head&&(E.head.extra_len=U),512&E.flags&&(Rt[0]=255&U,Rt[1]=U>>>8&255,E.check=b(E.check,Rt,2,0)),J=U=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(K<(X=E.length)&&(X=K),X&&(E.head&&(ht=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),f.arraySet(E.head.extra,O,B,X,ht)),512&E.flags&&(E.check=b(E.check,O,X,B)),K-=X,B+=X,E.length-=X),E.length))break t;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(K===0)break t;for(X=0;ht=O[B+X++],E.head&&ht&&E.length<65536&&(E.head.name+=String.fromCharCode(ht)),ht&&X<K;);if(512&E.flags&&(E.check=b(E.check,O,X,B)),K-=X,B+=X,ht)break t}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(K===0)break t;for(X=0;ht=O[B+X++],E.head&&ht&&E.length<65536&&(E.head.comment+=String.fromCharCode(ht)),ht&&X<K;);if(512&E.flags&&(E.check=b(E.check,O,X,B)),K-=X,B+=X,ht)break t}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;J<16;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(U!==(65535&E.check)){x.msg="header crc mismatch",E.mode=30;break}J=U=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),x.adler=E.check=0,E.mode=12;break;case 10:for(;J<32;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}x.adler=E.check=H(U),J=U=0,E.mode=11;case 11:if(E.havedict===0)return x.next_out=Y,x.avail_out=nt,x.next_in=B,x.avail_in=K,E.hold=U,E.bits=J,2;x.adler=E.check=1,E.mode=12;case 12:if(S===5||S===6)break t;case 13:if(E.last){U>>>=7&J,J-=7&J,E.mode=27;break}for(;J<3;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}switch(E.last=1&U,J-=1,3&(U>>>=1)){case 0:E.mode=14;break;case 1:if(A(E),E.mode=20,S!==6)break;U>>>=2,J-=2;break t;case 2:E.mode=17;break;case 3:x.msg="invalid block type",E.mode=30}U>>>=2,J-=2;break;case 14:for(U>>>=7&J,J-=7&J;J<32;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if((65535&U)!=(U>>>16^65535)){x.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&U,J=U=0,E.mode=15,S===6)break t;case 15:E.mode=16;case 16:if(X=E.length){if(K<X&&(X=K),nt<X&&(X=nt),X===0)break t;f.arraySet(j,O,B,X,Y),K-=X,B+=X,nt-=X,Y+=X,E.length-=X;break}E.mode=12;break;case 17:for(;J<14;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(E.nlen=257+(31&U),U>>>=5,J-=5,E.ndist=1+(31&U),U>>>=5,J-=5,E.ncode=4+(15&U),U>>>=4,J-=4,286<E.nlen||30<E.ndist){x.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;J<3;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.lens[Ft[E.have++]]=7&U,U>>>=3,J-=3}for(;E.have<19;)E.lens[Ft[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,_t={bits:E.lenbits},xt=C(0,E.lens,0,19,E.lencode,0,E.work,_t),E.lenbits=_t.bits,xt){x.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;lt=(Ot=E.lencode[U&(1<<E.lenbits)-1])>>>16&255,gt=65535&Ot,!((it=Ot>>>24)<=J);){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(gt<16)U>>>=it,J-=it,E.lens[E.have++]=gt;else{if(gt===16){for(St=it+2;J<St;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(U>>>=it,J-=it,E.have===0){x.msg="invalid bit length repeat",E.mode=30;break}ht=E.lens[E.have-1],X=3+(3&U),U>>>=2,J-=2}else if(gt===17){for(St=it+3;J<St;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}J-=it,ht=0,X=3+(7&(U>>>=it)),U>>>=3,J-=3}else{for(St=it+7;J<St;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}J-=it,ht=0,X=11+(127&(U>>>=it)),U>>>=7,J-=7}if(E.have+X>E.nlen+E.ndist){x.msg="invalid bit length repeat",E.mode=30;break}for(;X--;)E.lens[E.have++]=ht}}if(E.mode===30)break;if(E.lens[256]===0){x.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,_t={bits:E.lenbits},xt=C(1,E.lens,0,E.nlen,E.lencode,0,E.work,_t),E.lenbits=_t.bits,xt){x.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,_t={bits:E.distbits},xt=C(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,_t),E.distbits=_t.bits,xt){x.msg="invalid distances set",E.mode=30;break}if(E.mode=20,S===6)break t;case 20:E.mode=21;case 21:if(6<=K&&258<=nt){x.next_out=Y,x.avail_out=nt,x.next_in=B,x.avail_in=K,E.hold=U,E.bits=J,T(x,N),Y=x.next_out,j=x.output,nt=x.avail_out,B=x.next_in,O=x.input,K=x.avail_in,U=E.hold,J=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;lt=(Ot=E.lencode[U&(1<<E.lenbits)-1])>>>16&255,gt=65535&Ot,!((it=Ot>>>24)<=J);){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(lt&&(240<)==0){for(bt=it,st=lt,dt=gt;lt=(Ot=E.lencode[dt+((U&(1<<bt+st)-1)>>bt)])>>>16&255,gt=65535&Ot,!(bt+(it=Ot>>>24)<=J);){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}U>>>=bt,J-=bt,E.back+=bt}if(U>>>=it,J-=it,E.back+=it,E.length=gt,lt===0){E.mode=26;break}if(32<){E.back=-1,E.mode=12;break}if(64<){x.msg="invalid literal/length code",E.mode=30;break}E.extra=15<,E.mode=22;case 22:if(E.extra){for(St=E.extra;J<St;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.length+=U&(1<<E.extra)-1,U>>>=E.extra,J-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;lt=(Ot=E.distcode[U&(1<<E.distbits)-1])>>>16&255,gt=65535&Ot,!((it=Ot>>>24)<=J);){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if((240<)==0){for(bt=it,st=lt,dt=gt;lt=(Ot=E.distcode[dt+((U&(1<<bt+st)-1)>>bt)])>>>16&255,gt=65535&Ot,!(bt+(it=Ot>>>24)<=J);){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}U>>>=bt,J-=bt,E.back+=bt}if(U>>>=it,J-=it,E.back+=it,64<){x.msg="invalid distance code",E.mode=30;break}E.offset=gt,E.extra=15<,E.mode=24;case 24:if(E.extra){for(St=E.extra;J<St;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}E.offset+=U&(1<<E.extra)-1,U>>>=E.extra,J-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){x.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(nt===0)break t;if(X=N-nt,E.offset>X){if((X=E.offset-X)>E.whave&&E.sane){x.msg="invalid distance too far back",E.mode=30;break}rt=X>E.wnext?(X-=E.wnext,E.wsize-X):E.wnext-X,X>E.length&&(X=E.length),ut=E.window}else ut=j,rt=Y-E.offset,X=E.length;for(nt<X&&(X=nt),nt-=X,E.length-=X;j[Y++]=ut[rt++],--X;);E.length===0&&(E.mode=21);break;case 26:if(nt===0)break t;j[Y++]=E.length,nt--,E.mode=21;break;case 27:if(E.wrap){for(;J<32;){if(K===0)break t;K--,U|=O[B++]<<J,J+=8}if(N-=nt,x.total_out+=N,E.total+=N,N&&(x.adler=E.check=E.flags?b(E.check,j,N,Y-N):v(E.check,j,N,Y-N)),N=nt,(E.flags?U:H(U))!==E.check){x.msg="incorrect data check",E.mode=30;break}J=U=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;J<32;){if(K===0)break t;K--,U+=O[B++]<<J,J+=8}if(U!==(4294967295&E.total)){x.msg="incorrect length check",E.mode=30;break}J=U=0}E.mode=29;case 29:xt=1;break t;case 30:xt=-3;break t;case 31:return-4;default:return I}return x.next_out=Y,x.avail_out=nt,x.next_in=B,x.avail_in=K,E.hold=U,E.bits=J,(E.wsize||N!==x.avail_out&&E.mode<30&&(E.mode<27||S!==4))&&g(x,x.output,x.next_out,N-x.avail_out)?(E.mode=31,-4):(L-=x.avail_in,N-=x.avail_out,x.total_in+=L,x.total_out+=N,E.total+=N,E.wrap&&N&&(x.adler=E.check=E.flags?b(E.check,j,N,x.next_out-N):v(E.check,j,N,x.next_out-N)),x.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(L==0&&N===0||S===4)&&xt===0&&(xt=-5),xt)},m.inflateEnd=function(x){if(!x||!x.state)return I;var S=x.state;return S.window&&(S.window=null),x.state=null,0},m.inflateGetHeader=function(x,S){var E;return x&&x.state?(2&(E=x.state).wrap)==0?I:((E.head=S).done=!1,0):I},m.inflateSetDictionary=function(x,S){var E,O=S.length;return x&&x.state?(E=x.state).wrap!==0&&E.mode!==11?I:E.mode===11&&v(1,S,O,0)!==E.check?-3:g(x,S,O,O)?(E.mode=31,-4):(E.havedict=1,0):I},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,p,m){var f=o("../utils/common"),v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],b=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],T=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],C=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(I,H,Z,P,q,V,W,$){var R,z,A,g,x,S,E,O,j,B=$.bits,Y=0,K=0,nt=0,U=0,J=0,L=0,N=0,X=0,rt=0,ut=0,it=null,lt=0,gt=new f.Buf16(16),bt=new f.Buf16(16),st=null,dt=0;for(Y=0;Y<=15;Y++)gt[Y]=0;for(K=0;K<P;K++)gt[H[Z+K]]++;for(J=B,U=15;1<=U&>[U]===0;U--);if(U<J&&(J=U),U===0)return q[V++]=20971520,q[V++]=20971520,$.bits=1,0;for(nt=1;nt<U&>[nt]===0;nt++);for(J<nt&&(J=nt),Y=X=1;Y<=15;Y++)if(X<<=1,(X-=gt[Y])<0)return-1;if(0<X&&(I===0||U!==1))return-1;for(bt[1]=0,Y=1;Y<15;Y++)bt[Y+1]=bt[Y]+gt[Y];for(K=0;K<P;K++)H[Z+K]!==0&&(W[bt[H[Z+K]]++]=K);if(S=I===0?(it=st=W,19):I===1?(it=v,lt-=257,st=b,dt-=257,256):(it=T,st=C,-1),Y=nt,x=V,N=K=ut=0,A=-1,g=(rt=1<<(L=J))-1,I===1&&852<rt||I===2&&592<rt)return 1;for(;;){for(E=Y-N,j=W[K]<S?(O=0,W[K]):W[K]>S?(O=st[dt+W[K]],it[lt+W[K]]):(O=96,0),R=1<<Y-N,nt=z=1<<L;q[x+(ut>>N)+(z-=R)]=E<<24|O<<16|j|0,z!==0;);for(R=1<<Y-1;ut&R;)R>>=1;if(R!==0?(ut&=R-1,ut+=R):ut=0,K++,--gt[Y]==0){if(Y===U)break;Y=H[Z+W[K]]}if(J<Y&&(ut&g)!==A){for(N===0&&(N=J),x+=nt,X=1<<(L=Y-N);L+N<U&&!((X-=gt[L+N])<=0);)L++,X<<=1;if(rt+=1<<L,I===1&&852<rt||I===2&&592<rt)return 1;q[A=ut&g]=J<<24|L<<16|x-V|0}}return ut!==0&&(q[x+ut]=Y-N<<24|64<<16|0),$.bits=J,0}},{"../utils/common":41}],51:[function(o,p,m){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,p,m){var f=o("../utils/common");function v(st){for(var dt=st.length;0<=--dt;)st[dt]=0}var b=256,T=286,C=30,I=15,H=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(576);v(V);var W=new Array(60);v(W);var $=new Array(512);v($);var R=new Array(256);v(R);var z=new Array(29);v(z);var A,g,x,S=new Array(C);function E(st,dt,ht,xt,_t){this.static_tree=st,this.extra_bits=dt,this.extra_base=ht,this.elems=xt,this.max_length=_t,this.has_stree=st&&st.length}function O(st,dt){this.dyn_tree=st,this.max_code=0,this.stat_desc=dt}function j(st){return st<256?$[st]:$[256+(st>>>7)]}function B(st,dt){st.pending_buf[st.pending++]=255&dt,st.pending_buf[st.pending++]=dt>>>8&255}function Y(st,dt,ht){st.bi_valid>16-ht?(st.bi_buf|=dt<<st.bi_valid&65535,B(st,st.bi_buf),st.bi_buf=dt>>16-st.bi_valid,st.bi_valid+=ht-16):(st.bi_buf|=dt<<st.bi_valid&65535,st.bi_valid+=ht)}function K(st,dt,ht){Y(st,ht[2*dt],ht[2*dt+1])}function nt(st,dt){for(var ht=0;ht|=1&st,st>>>=1,ht<<=1,0<--dt;);return ht>>>1}function U(st,dt,ht){var xt,_t,St=new Array(16),Ot=0;for(xt=1;xt<=I;xt++)St[xt]=Ot=Ot+ht[xt-1]<<1;for(_t=0;_t<=dt;_t++){var Rt=st[2*_t+1];Rt!==0&&(st[2*_t]=nt(St[Rt]++,Rt))}}function J(st){var dt;for(dt=0;dt<T;dt++)st.dyn_ltree[2*dt]=0;for(dt=0;dt<C;dt++)st.dyn_dtree[2*dt]=0;for(dt=0;dt<19;dt++)st.bl_tree[2*dt]=0;st.dyn_ltree[512]=1,st.opt_len=st.static_len=0,st.last_lit=st.matches=0}function L(st){8<st.bi_valid?B(st,st.bi_buf):0<st.bi_valid&&(st.pending_buf[st.pending++]=st.bi_buf),st.bi_buf=0,st.bi_valid=0}function N(st,dt,ht,xt){var _t=2*dt,St=2*ht;return st[_t]<st[St]||st[_t]===st[St]&&xt[dt]<=xt[ht]}function X(st,dt,ht){for(var xt=st.heap[ht],_t=ht<<1;_t<=st.heap_len&&(_t<st.heap_len&&N(dt,st.heap[_t+1],st.heap[_t],st.depth)&&_t++,!N(dt,xt,st.heap[_t],st.depth));)st.heap[ht]=st.heap[_t],ht=_t,_t<<=1;st.heap[ht]=xt}function rt(st,dt,ht){var xt,_t,St,Ot,Rt=0;if(st.last_lit!==0)for(;xt=st.pending_buf[st.d_buf+2*Rt]<<8|st.pending_buf[st.d_buf+2*Rt+1],_t=st.pending_buf[st.l_buf+Rt],Rt++,xt===0?K(st,_t,dt):(K(st,(St=R[_t])+b+1,dt),(Ot=H[St])!==0&&Y(st,_t-=z[St],Ot),K(st,St=j(--xt),ht),(Ot=Z[St])!==0&&Y(st,xt-=S[St],Ot)),Rt<st.last_lit;);K(st,256,dt)}function ut(st,dt){var ht,xt,_t,St=dt.dyn_tree,Ot=dt.stat_desc.static_tree,Rt=dt.stat_desc.has_stree,Ft=dt.stat_desc.elems,Kt=-1;for(st.heap_len=0,st.heap_max=573,ht=0;ht<Ft;ht++)St[2*ht]!==0?(st.heap[++st.heap_len]=Kt=ht,st.depth[ht]=0):St[2*ht+1]=0;for(;st.heap_len<2;)St[2*(_t=st.heap[++st.heap_len]=Kt<2?++Kt:0)]=1,st.depth[_t]=0,st.opt_len--,Rt&&(st.static_len-=Ot[2*_t+1]);for(dt.max_code=Kt,ht=st.heap_len>>1;1<=ht;ht--)X(st,St,ht);for(_t=Ft;ht=st.heap[1],st.heap[1]=st.heap[st.heap_len--],X(st,St,1),xt=st.heap[1],st.heap[--st.heap_max]=ht,st.heap[--st.heap_max]=xt,St[2*_t]=St[2*ht]+St[2*xt],st.depth[_t]=(st.depth[ht]>=st.depth[xt]?st.depth[ht]:st.depth[xt])+1,St[2*ht+1]=St[2*xt+1]=_t,st.heap[1]=_t++,X(st,St,1),2<=st.heap_len;);st.heap[--st.heap_max]=st.heap[1],(function(et,G){var Q,ot,ft,vt,wt,Nt,Pt=G.dyn_tree,qt=G.max_code,Vt=G.stat_desc.static_tree,Qt=G.stat_desc.has_stree,Fe=G.stat_desc.extra_bits,ie=G.stat_desc.extra_base,ke=G.stat_desc.max_length,ye=0;for(vt=0;vt<=I;vt++)et.bl_count[vt]=0;for(Pt[2*et.heap[et.heap_max]+1]=0,Q=et.heap_max+1;Q<573;Q++)ke<(vt=Pt[2*Pt[2*(ot=et.heap[Q])+1]+1]+1)&&(vt=ke,ye++),Pt[2*ot+1]=vt,qt<ot||(et.bl_count[vt]++,wt=0,ie<=ot&&(wt=Fe[ot-ie]),Nt=Pt[2*ot],et.opt_len+=Nt*(vt+wt),Qt&&(et.static_len+=Nt*(Vt[2*ot+1]+wt)));if(ye!==0){do{for(vt=ke-1;et.bl_count[vt]===0;)vt--;et.bl_count[vt]--,et.bl_count[vt+1]+=2,et.bl_count[ke]--,ye-=2}while(0<ye);for(vt=ke;vt!==0;vt--)for(ot=et.bl_count[vt];ot!==0;)qt<(ft=et.heap[--Q])||(Pt[2*ft+1]!==vt&&(et.opt_len+=(vt-Pt[2*ft+1])*Pt[2*ft],Pt[2*ft+1]=vt),ot--)}})(st,dt),U(St,Kt,st.bl_count)}function it(st,dt,ht){var xt,_t,St=-1,Ot=dt[1],Rt=0,Ft=7,Kt=4;for(Ot===0&&(Ft=138,Kt=3),dt[2*(ht+1)+1]=65535,xt=0;xt<=ht;xt++)_t=Ot,Ot=dt[2*(xt+1)+1],++Rt<Ft&&_t===Ot||(Rt<Kt?st.bl_tree[2*_t]+=Rt:_t!==0?(_t!==St&&st.bl_tree[2*_t]++,st.bl_tree[32]++):Rt<=10?st.bl_tree[34]++:st.bl_tree[36]++,St=_t,Kt=(Rt=0)===Ot?(Ft=138,3):_t===Ot?(Ft=6,3):(Ft=7,4))}function lt(st,dt,ht){var xt,_t,St=-1,Ot=dt[1],Rt=0,Ft=7,Kt=4;for(Ot===0&&(Ft=138,Kt=3),xt=0;xt<=ht;xt++)if(_t=Ot,Ot=dt[2*(xt+1)+1],!(++Rt<Ft&&_t===Ot)){if(Rt<Kt)for(;K(st,_t,st.bl_tree),--Rt!=0;);else _t!==0?(_t!==St&&(K(st,_t,st.bl_tree),Rt--),K(st,16,st.bl_tree),Y(st,Rt-3,2)):Rt<=10?(K(st,17,st.bl_tree),Y(st,Rt-3,3)):(K(st,18,st.bl_tree),Y(st,Rt-11,7));St=_t,Kt=(Rt=0)===Ot?(Ft=138,3):_t===Ot?(Ft=6,3):(Ft=7,4)}}v(S);var gt=!1;function bt(st,dt,ht,xt){Y(st,0+(xt?1:0),3),(function(_t,St,Ot,Rt){L(_t),B(_t,Ot),B(_t,~Ot),f.arraySet(_t.pending_buf,_t.window,St,Ot,_t.pending),_t.pending+=Ot})(st,dt,ht)}m._tr_init=function(st){gt||((function(){var dt,ht,xt,_t,St,Ot=new Array(16);for(_t=xt=0;_t<28;_t++)for(z[_t]=xt,dt=0;dt<1<<H[_t];dt++)R[xt++]=_t;for(R[xt-1]=_t,_t=St=0;_t<16;_t++)for(S[_t]=St,dt=0;dt<1<<Z[_t];dt++)$[St++]=_t;for(St>>=7;_t<C;_t++)for(S[_t]=St<<7,dt=0;dt<1<<Z[_t]-7;dt++)$[256+St++]=_t;for(ht=0;ht<=I;ht++)Ot[ht]=0;for(dt=0;dt<=143;)V[2*dt+1]=8,dt++,Ot[8]++;for(;dt<=255;)V[2*dt+1]=9,dt++,Ot[9]++;for(;dt<=279;)V[2*dt+1]=7,dt++,Ot[7]++;for(;dt<=287;)V[2*dt+1]=8,dt++,Ot[8]++;for(U(V,287,Ot),dt=0;dt<C;dt++)W[2*dt+1]=5,W[2*dt]=nt(dt,5);A=new E(V,H,257,T,I),g=new E(W,Z,0,C,I),x=new E(new Array(0),P,0,19,7)})(),gt=!0),st.l_desc=new O(st.dyn_ltree,A),st.d_desc=new O(st.dyn_dtree,g),st.bl_desc=new O(st.bl_tree,x),st.bi_buf=0,st.bi_valid=0,J(st)},m._tr_stored_block=bt,m._tr_flush_block=function(st,dt,ht,xt){var _t,St,Ot=0;0<st.level?(st.strm.data_type===2&&(st.strm.data_type=(function(Rt){var Ft,Kt=4093624447;for(Ft=0;Ft<=31;Ft++,Kt>>>=1)if(1&Kt&&Rt.dyn_ltree[2*Ft]!==0)return 0;if(Rt.dyn_ltree[18]!==0||Rt.dyn_ltree[20]!==0||Rt.dyn_ltree[26]!==0)return 1;for(Ft=32;Ft<b;Ft++)if(Rt.dyn_ltree[2*Ft]!==0)return 1;return 0})(st)),ut(st,st.l_desc),ut(st,st.d_desc),Ot=(function(Rt){var Ft;for(it(Rt,Rt.dyn_ltree,Rt.l_desc.max_code),it(Rt,Rt.dyn_dtree,Rt.d_desc.max_code),ut(Rt,Rt.bl_desc),Ft=18;3<=Ft&&Rt.bl_tree[2*q[Ft]+1]===0;Ft--);return Rt.opt_len+=3*(Ft+1)+5+5+4,Ft})(st),_t=st.opt_len+3+7>>>3,(St=st.static_len+3+7>>>3)<=_t&&(_t=St)):_t=St=ht+5,ht+4<=_t&&dt!==-1?bt(st,dt,ht,xt):st.strategy===4||St===_t?(Y(st,2+(xt?1:0),3),rt(st,V,W)):(Y(st,4+(xt?1:0),3),(function(Rt,Ft,Kt,et){var G;for(Y(Rt,Ft-257,5),Y(Rt,Kt-1,5),Y(Rt,et-4,4),G=0;G<et;G++)Y(Rt,Rt.bl_tree[2*q[G]+1],3);lt(Rt,Rt.dyn_ltree,Ft-1),lt(Rt,Rt.dyn_dtree,Kt-1)})(st,st.l_desc.max_code+1,st.d_desc.max_code+1,Ot+1),rt(st,st.dyn_ltree,st.dyn_dtree)),J(st),xt&&L(st)},m._tr_tally=function(st,dt,ht){return st.pending_buf[st.d_buf+2*st.last_lit]=dt>>>8&255,st.pending_buf[st.d_buf+2*st.last_lit+1]=255&dt,st.pending_buf[st.l_buf+st.last_lit]=255&ht,st.last_lit++,dt===0?st.dyn_ltree[2*ht]++:(st.matches++,dt--,st.dyn_ltree[2*(R[ht]+b+1)]++,st.dyn_dtree[2*j(dt)]++),st.last_lit===st.lit_bufsize-1},m._tr_align=function(st){Y(st,2,3),K(st,256,V),(function(dt){dt.bi_valid===16?(B(dt,dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0):8<=dt.bi_valid&&(dt.pending_buf[dt.pending++]=255&dt.bi_buf,dt.bi_buf>>=8,dt.bi_valid-=8)})(st)}},{"../utils/common":41}],53:[function(o,p,m){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,p,m){(function(f){(function(v,b){if(!v.setImmediate){var T,C,I,H,Z=1,P={},q=!1,V=v.document,W=Object.getPrototypeOf&&Object.getPrototypeOf(v);W=W&&W.setTimeout?W:v,T={}.toString.call(v.process)==="[object process]"?function(A){d.nextTick((function(){R(A)}))}:(function(){if(v.postMessage&&!v.importScripts){var A=!0,g=v.onmessage;return v.onmessage=function(){A=!1},v.postMessage("","*"),v.onmessage=g,A}})()?(H="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",z,!1):v.attachEvent("onmessage",z),function(A){v.postMessage(H+A,"*")}):v.MessageChannel?((I=new MessageChannel).port1.onmessage=function(A){R(A.data)},function(A){I.port2.postMessage(A)}):V&&"onreadystatechange"in V.createElement("script")?(C=V.documentElement,function(A){var g=V.createElement("script");g.onreadystatechange=function(){R(A),g.onreadystatechange=null,C.removeChild(g),g=null},C.appendChild(g)}):function(A){setTimeout(R,0,A)},W.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var g=new Array(arguments.length-1),x=0;x<g.length;x++)g[x]=arguments[x+1];var S={callback:A,args:g};return P[Z]=S,T(Z),Z++},W.clearImmediate=$}function $(A){delete P[A]}function R(A){if(q)setTimeout(R,0,A);else{var g=P[A];if(g){q=!0;try{(function(x){var S=x.callback,E=x.args;switch(E.length){case 0:S();break;case 1:S(E[0]);break;case 2:S(E[0],E[1]);break;case 3:S(E[0],E[1],E[2]);break;default:S.apply(void 0,E)}})(g)}finally{$(A),q=!1}}}}function z(A){A.source===v&&typeof A.data=="string"&&A.data.indexOf(H)===0&&R(+A.data.slice(H.length))}})(typeof self>"u"?f===void 0?this:f:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{},r("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],r("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(r,y,_){(function(d){(function(){var a=/[\\^$.*+?()[\]{}|]/g,l=RegExp(a.source),i=typeof d=="object"&&d&&d.Object===Object&&d,e=typeof self=="object"&&self&&self.Object===Object&&self,s=i||e||Function("return this")(),c=Object.prototype.toString,u=s.Symbol,o=u?u.prototype:void 0,p=o?o.toString:void 0;function m(f){if(typeof f=="string")return f;if((function(b){return typeof b=="symbol"||(function(T){return!!T&&typeof T=="object"})(b)&&c.call(b)=="[object Symbol]"})(f))return p?p.call(f):"";var v=f+"";return v=="0"&&1/f==-1/0?"-0":v}y.exports=function(f){var v;return(f=(v=f)==null?"":m(v))&&l.test(f)?f.replace(a,"\\$&"):f}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(r,y,_){(function(d){(function(){var a="[object Arguments]",l="[object Map]",i="[object Object]",e="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[a]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v["[object Function]"]=v[l]=v["[object Number]"]=v[i]=v["[object RegExp]"]=v[e]=v["[object String]"]=v["[object WeakMap]"]=!1;var b=typeof d=="object"&&d&&d.Object===Object&&d,T=typeof self=="object"&&self&&self.Object===Object&&self,C=b||T||Function("return this")(),I=typeof _=="object"&&_&&!_.nodeType&&_,H=I&&typeof y=="object"&&y&&!y.nodeType&&y,Z=H&&H.exports===I&&b.process,P=(function(){try{return Z&&Z.binding("util")}catch{}})(),q=P&&P.isTypedArray;function V(ct,Tt,zt,Ht){for(var re=-1,Zt=ct?ct.length:0;++re<Zt;){var Yt=ct[re];Tt(Ht,Yt,zt(Yt),ct)}return Ht}function W(ct,Tt){for(var zt=-1,Ht=ct?ct.length:0;++zt<Ht;)if(Tt(ct[zt],zt,ct))return!0;return!1}function $(ct){var Tt=!1;if(ct!=null&&typeof ct.toString!="function")try{Tt=!!(ct+"")}catch{}return Tt}function R(ct){var Tt=-1,zt=Array(ct.size);return ct.forEach((function(Ht,re){zt[++Tt]=[re,Ht]})),zt}function z(ct){var Tt=-1,zt=Array(ct.size);return ct.forEach((function(Ht){zt[++Tt]=Ht})),zt}var A,g,x,S=Array.prototype,E=Function.prototype,O=Object.prototype,j=C["__core-js_shared__"],B=(A=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",Y=E.toString,K=O.hasOwnProperty,nt=O.toString,U=RegExp("^"+Y.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=C.Symbol,L=C.Uint8Array,N=O.propertyIsEnumerable,X=S.splice,rt=(g=Object.keys,x=Object,function(ct){return g(x(ct))}),ut=fe(C,"DataView"),it=fe(C,"Map"),lt=fe(C,"Promise"),gt=fe(C,"Set"),bt=fe(C,"WeakMap"),st=fe(Object,"create"),dt=kt(ut),ht=kt(it),xt=kt(lt),_t=kt(gt),St=kt(bt),Ot=J?J.prototype:void 0,Rt=Ot?Ot.valueOf:void 0,Ft=Ot?Ot.toString:void 0;function Kt(ct){var Tt=-1,zt=ct?ct.length:0;for(this.clear();++Tt<zt;){var Ht=ct[Tt];this.set(Ht[0],Ht[1])}}function et(ct){var Tt=-1,zt=ct?ct.length:0;for(this.clear();++Tt<zt;){var Ht=ct[Tt];this.set(Ht[0],Ht[1])}}function G(ct){var Tt=-1,zt=ct?ct.length:0;for(this.clear();++Tt<zt;){var Ht=ct[Tt];this.set(Ht[0],Ht[1])}}function Q(ct){var Tt=-1,zt=ct?ct.length:0;for(this.__data__=new G;++Tt<zt;)this.add(ct[Tt])}function ot(ct){this.__data__=new et(ct)}function ft(ct,Tt){var zt=Wt(ct)||Jt(ct)?(function(Yt,Ae){for(var be=-1,ve=Array(Yt);++be<Yt;)ve[be]=Ae(be);return ve})(ct.length,String):[],Ht=zt.length,re=!!Ht;for(var Zt in ct)!K.call(ct,Zt)||re&&(Zt=="length"||He(Zt,Ht))||zt.push(Zt);return zt}function vt(ct,Tt){for(var zt=ct.length;zt--;)if(Xt(ct[zt][0],Tt))return zt;return-1}function wt(ct,Tt,zt,Ht){return Pt(ct,(function(re,Zt,Yt){Tt(Ht,re,zt(re),Yt)})),Ht}Kt.prototype.clear=function(){this.__data__=st?st(null):{}},Kt.prototype.delete=function(ct){return this.has(ct)&&delete this.__data__[ct]},Kt.prototype.get=function(ct){var Tt=this.__data__;if(st){var zt=Tt[ct];return zt==="__lodash_hash_undefined__"?void 0:zt}return K.call(Tt,ct)?Tt[ct]:void 0},Kt.prototype.has=function(ct){var Tt=this.__data__;return st?Tt[ct]!==void 0:K.call(Tt,ct)},Kt.prototype.set=function(ct,Tt){return this.__data__[ct]=st&&Tt===void 0?"__lodash_hash_undefined__":Tt,this},et.prototype.clear=function(){this.__data__=[]},et.prototype.delete=function(ct){var Tt=this.__data__,zt=vt(Tt,ct);return!(zt<0)&&(zt==Tt.length-1?Tt.pop():X.call(Tt,zt,1),!0)},et.prototype.get=function(ct){var Tt=this.__data__,zt=vt(Tt,ct);return zt<0?void 0:Tt[zt][1]},et.prototype.has=function(ct){return vt(this.__data__,ct)>-1},et.prototype.set=function(ct,Tt){var zt=this.__data__,Ht=vt(zt,ct);return Ht<0?zt.push([ct,Tt]):zt[Ht][1]=Tt,this},G.prototype.clear=function(){this.__data__={hash:new Kt,map:new(it||et),string:new Kt}},G.prototype.delete=function(ct){return Se(this,ct).delete(ct)},G.prototype.get=function(ct){return Se(this,ct).get(ct)},G.prototype.has=function(ct){return Se(this,ct).has(ct)},G.prototype.set=function(ct,Tt){return Se(this,ct).set(ct,Tt),this},Q.prototype.add=Q.prototype.push=function(ct){return this.__data__.set(ct,"__lodash_hash_undefined__"),this},Q.prototype.has=function(ct){return this.__data__.has(ct)},ot.prototype.clear=function(){this.__data__=new et},ot.prototype.delete=function(ct){return this.__data__.delete(ct)},ot.prototype.get=function(ct){return this.__data__.get(ct)},ot.prototype.has=function(ct){return this.__data__.has(ct)},ot.prototype.set=function(ct,Tt){var zt=this.__data__;if(zt instanceof et){var Ht=zt.__data__;if(!it||Ht.length<199)return Ht.push([ct,Tt]),this;zt=this.__data__=new G(Ht)}return zt.set(ct,Tt),this};var Nt,Pt=(Nt=function(ct,Tt){return ct&&qt(ct,Tt,rr)},function(ct,Tt){if(ct==null)return ct;if(!ee(ct))return Nt(ct,Tt);for(var zt=ct.length,Ht=-1,re=Object(ct);++Ht<zt&&Tt(re[Ht],Ht,re)!==!1;);return ct}),qt=(function(ct){return function(Tt,zt,Ht){for(var re=-1,Zt=Object(Tt),Yt=Ht(Tt),Ae=Yt.length;Ae--;){var be=Yt[++re];if(zt(Zt[be],be,Zt)===!1)break}return Tt}})();function Vt(ct,Tt){for(var zt=0,Ht=(Tt=le(Tt,ct)?[Tt]:oe(Tt)).length;ct!=null&&zt<Ht;)ct=ct[mt(Tt[zt++])];return zt&&zt==Ht?ct:void 0}function Qt(ct,Tt){return ct!=null&&Tt in Object(ct)}function Fe(ct,Tt,zt,Ht,re){return ct===Tt||(ct==null||Tt==null||!we(ct)&&!nr(Tt)?ct!=ct&&Tt!=Tt:(function(Zt,Yt,Ae,be,ve,ue){var ze=Wt(Zt),Be=Wt(Yt),Ee="[object Array]",Re="[object Array]";ze||(Ee=(Ee=Te(Zt))==a?i:Ee),Be||(Re=(Re=Te(Yt))==a?i:Re);var pr=Ee==i&&!$(Zt),Er=Re==i&&!$(Yt),jr=Ee==Re;if(jr&&!pr)return ue||(ue=new ot),ze||lr(Zt)?Pe(Zt,Yt,Ae,be,ve,ue):(function(Le,Me,Qr,Dr,wi,Cr,Or){switch(Qr){case"[object DataView]":if(Le.byteLength!=Me.byteLength||Le.byteOffset!=Me.byteOffset)return!1;Le=Le.buffer,Me=Me.buffer;case"[object ArrayBuffer]":return!(Le.byteLength!=Me.byteLength||!Dr(new L(Le),new L(Me)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Xt(+Le,+Me);case"[object Error]":return Le.name==Me.name&&Le.message==Me.message;case"[object RegExp]":case"[object String]":return Le==Me+"";case l:var mn=R;case e:var Hn=2&Cr;if(mn||(mn=z),Le.size!=Me.size&&!Hn)return!1;var _i=Or.get(Le);if(_i)return _i==Me;Cr|=1,Or.set(Le,Me);var bn=Pe(mn(Le),mn(Me),Dr,wi,Cr,Or);return Or.delete(Le),bn;case"[object Symbol]":if(Rt)return Rt.call(Le)==Rt.call(Me)}return!1})(Zt,Yt,Ee,Ae,be,ve,ue);if(!(2&ve)){var pn=pr&&K.call(Zt,"__wrapped__"),un=Er&&K.call(Yt,"__wrapped__");if(pn||un){var Pn=pn?Zt.value():Zt,_r=un?Yt.value():Yt;return ue||(ue=new ot),Ae(Pn,_r,be,ve,ue)}}return jr?(ue||(ue=new ot),(function(Le,Me,Qr,Dr,wi,Cr){var Or=2&wi,mn=rr(Le),Hn=mn.length,_i=rr(Me).length;if(Hn!=_i&&!Or)return!1;for(var bn=Hn;bn--;){var gn=mn[bn];if(!(Or?gn in Me:K.call(Me,gn)))return!1}var ga=Cr.get(Le);if(ga&&Cr.get(Me))return ga==Me;var Sn=!0;Cr.set(Le,Me),Cr.set(Me,Le);for(var $r=Or;++bn<Hn;){gn=mn[bn];var qn=Le[gn],$n=Me[gn];if(Dr)var En=Or?Dr($n,qn,gn,Me,Le,Cr):Dr(qn,$n,gn,Le,Me,Cr);if(!(En===void 0?qn===$n||Qr(qn,$n,Dr,wi,Cr):En)){Sn=!1;break}$r||($r=gn=="constructor")}if(Sn&&!$r){var cn=Le.constructor,xi=Me.constructor;cn==xi||!("constructor"in Le)||!("constructor"in Me)||typeof cn=="function"&&cn instanceof cn&&typeof xi=="function"&&xi instanceof xi||(Sn=!1)}return Cr.delete(Le),Cr.delete(Me),Sn})(Zt,Yt,Ae,be,ve,ue)):!1})(ct,Tt,Fe,zt,Ht,re))}function ie(ct){return!(!we(ct)||(function(Tt){return!!B&&B in Tt})(ct))&&(de(ct)||$(ct)?U:m).test(kt(ct))}function ke(ct){return typeof ct=="function"?ct:ct==null?dr:typeof ct=="object"?Wt(ct)?(function(Ht,re){return le(Ht)&&Ie(re)?$e(mt(Ht),re):function(Zt){var Yt=(function(Ae,be,ve){var ue=Ae==null?void 0:Vt(Ae,be);return ue===void 0?ve:ue})(Zt,Ht);return Yt===void 0&&Yt===re?(function(Ae,be){return Ae!=null&&(function(ve,ue,ze){ue=le(ue,ve)?[ue]:oe(ue);for(var Be,Ee=-1,Re=ue.length;++Ee<Re;){var pr=mt(ue[Ee]);if(!(Be=ve!=null&&ze(ve,pr)))break;ve=ve[pr]}return Be||!!(Re=ve?ve.length:0)&&pe(Re)&&He(pr,Re)&&(Wt(ve)||Jt(ve))})(Ae,be,Qt)})(Zt,Ht):Fe(re,Yt,void 0,3)}})(ct[0],ct[1]):(function(Ht){var re=(function(Zt){for(var Yt=rr(Zt),Ae=Yt.length;Ae--;){var be=Yt[Ae],ve=Zt[be];Yt[Ae]=[be,ve,Ie(ve)]}return Yt})(Ht);return re.length==1&&re[0][2]?$e(re[0][0],re[0][1]):function(Zt){return Zt===Ht||(function(Yt,Ae,be,ve){var ue=be.length,ze=ue;if(Yt==null)return!ze;for(Yt=Object(Yt);ue--;){var Be=be[ue];if(Be[2]?Be[1]!==Yt[Be[0]]:!(Be[0]in Yt))return!1}for(;++ue<ze;){var Ee=(Be=be[ue])[0],Re=Yt[Ee],pr=Be[1];if(Be[2]){if(Re===void 0&&!(Ee in Yt))return!1}else{var Er=new ot,jr;if(!(jr===void 0?Fe(pr,Re,ve,3,Er):jr))return!1}}return!0})(Zt,Ht,re)}})(ct):le(Tt=ct)?(zt=mt(Tt),function(Ht){return Ht?.[zt]}):(function(Ht){return function(re){return Vt(re,Ht)}})(Tt);var Tt,zt}function ye(ct){if(zt=(Tt=ct)&&Tt.constructor,Ht=typeof zt=="function"&&zt.prototype||O,Tt!==Ht)return rt(ct);var Tt,zt,Ht,re=[];for(var Zt in Object(ct))K.call(ct,Zt)&&Zt!="constructor"&&re.push(Zt);return re}function oe(ct){return Wt(ct)?ct:me(ct)}function Pe(ct,Tt,zt,Ht,re,Zt){var Yt=2&re,Ae=ct.length,be=Tt.length;if(Ae!=be&&!(Yt&&be>Ae))return!1;var ve=Zt.get(ct);if(ve&&Zt.get(Tt))return ve==Tt;var ue=-1,ze=!0,Be=1&re?new Q:void 0;for(Zt.set(ct,Tt),Zt.set(Tt,ct);++ue<Ae;){var Ee=ct[ue],Re=Tt[ue];if(Ht)var pr=Yt?Ht(Re,Ee,ue,Tt,ct,Zt):Ht(Ee,Re,ue,ct,Tt,Zt);if(pr!==void 0){if(pr)continue;ze=!1;break}if(Be){if(!W(Tt,(function(Er,jr){if(!Be.has(jr)&&(Ee===Er||zt(Ee,Er,Ht,re,Zt)))return Be.add(jr)}))){ze=!1;break}}else if(Ee!==Re&&!zt(Ee,Re,Ht,re,Zt)){ze=!1;break}}return Zt.delete(ct),Zt.delete(Tt),ze}function Se(ct,Tt){var zt,Ht,re=ct.__data__;return((Ht=typeof(zt=Tt))=="string"||Ht=="number"||Ht=="symbol"||Ht=="boolean"?zt!=="__proto__":zt===null)?re[typeof Tt=="string"?"string":"hash"]:re.map}function fe(ct,Tt){var zt=(function(Ht,re){return Ht?.[re]})(ct,Tt);return ie(zt)?zt:void 0}var Te=function(ct){return nt.call(ct)};function He(ct,Tt){return!!(Tt=Tt??9007199254740991)&&(typeof ct=="number"||f.test(ct))&&ct>-1&&ct%1==0&&ct<Tt}function le(ct,Tt){if(Wt(ct))return!1;var zt=typeof ct;return!(zt!="number"&&zt!="symbol"&&zt!="boolean"&&ct!=null&&!qe(ct))||c.test(ct)||!s.test(ct)||Tt!=null&&ct in Object(Tt)}function Ie(ct){return ct==ct&&!we(ct)}function $e(ct,Tt){return function(zt){return zt!=null&&zt[ct]===Tt&&(Tt!==void 0||ct in Object(zt))}}(ut&&Te(new ut(new ArrayBuffer(1)))!="[object DataView]"||it&&Te(new it)!=l||lt&&Te(lt.resolve())!="[object Promise]"||gt&&Te(new gt)!=e||bt&&Te(new bt)!="[object WeakMap]")&&(Te=function(ct){var Tt=nt.call(ct),zt=Tt==i?ct.constructor:void 0,Ht=zt?kt(zt):void 0;if(Ht)switch(Ht){case dt:return"[object DataView]";case ht:return l;case xt:return"[object Promise]";case _t:return e;case St:return"[object WeakMap]"}return Tt});var me=ae((function(ct){var Tt;ct=(Tt=ct)==null?"":(function(Ht){if(typeof Ht=="string")return Ht;if(qe(Ht))return Ft?Ft.call(Ht):"";var re=Ht+"";return re=="0"&&1/Ht==-1/0?"-0":re})(Tt);var zt=[];return u.test(ct)&&zt.push(""),ct.replace(o,(function(Ht,re,Zt,Yt){zt.push(Zt?Yt.replace(p,"$1"):re||Ht)})),zt}));function mt(ct){if(typeof ct=="string"||qe(ct))return ct;var Tt=ct+"";return Tt=="0"&&1/ct==-1/0?"-0":Tt}function kt(ct){if(ct!=null){try{return Y.call(ct)}catch{}try{return ct+""}catch{}}return""}var Bt,Gt=(Bt=function(ct,Tt,zt){K.call(ct,zt)?ct[zt].push(Tt):ct[zt]=[Tt]},function(ct,Tt){var zt=Wt(ct)?V:wt,Ht={};return zt(ct,Bt,ke(Tt),Ht)});function ae(ct,Tt){if(typeof ct!="function"||Tt&&typeof Tt!="function")throw new TypeError("Expected a function");var zt=function(){var Ht=arguments,re=Tt?Tt.apply(this,Ht):Ht[0],Zt=zt.cache;if(Zt.has(re))return Zt.get(re);var Yt=ct.apply(this,Ht);return zt.cache=Zt.set(re,Yt),Yt};return zt.cache=new(ae.Cache||G),zt}function Xt(ct,Tt){return ct===Tt||ct!=ct&&Tt!=Tt}function Jt(ct){return(function(Tt){return nr(Tt)&&ee(Tt)})(ct)&&K.call(ct,"callee")&&(!N.call(ct,"callee")||nt.call(ct)==a)}ae.Cache=G;var Wt=Array.isArray;function ee(ct){return ct!=null&&pe(ct.length)&&!de(ct)}function de(ct){var Tt=we(ct)?nt.call(ct):"";return Tt=="[object Function]"||Tt=="[object GeneratorFunction]"}function pe(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=9007199254740991}function we(ct){var Tt=typeof ct;return!!ct&&(Tt=="object"||Tt=="function")}function nr(ct){return!!ct&&typeof ct=="object"}function qe(ct){return typeof ct=="symbol"||nr(ct)&&nt.call(ct)=="[object Symbol]"}var lr=q?(function(ct){return function(Tt){return ct(Tt)}})(q):function(ct){return nr(ct)&&pe(ct.length)&&!!v[nt.call(ct)]};function rr(ct){return ee(ct)?ft(ct):ye(ct)}function dr(ct){return ct}y.exports=Gt}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(r,y,_){var d=Object.prototype.toString;y.exports=function(a){return a===!0||a===!1||(function(l){return!!l&&typeof l=="object"})(a)&&d.call(a)=="[object Boolean]"}},{}],445:[function(r,y,_){(function(d){(function(){var a="[object Arguments]",l="[object Map]",i="[object Object]",e="[object Set]",s=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[a]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[l]=u["[object Number]"]=u[i]=u["[object RegExp]"]=u[e]=u["[object String]"]=u["[object WeakMap]"]=!1;var o=typeof d=="object"&&d&&d.Object===Object&&d,p=typeof self=="object"&&self&&self.Object===Object&&self,m=o||p||Function("return this")(),f=typeof _=="object"&&_&&!_.nodeType&&_,v=f&&typeof y=="object"&&y&&!y.nodeType&&y,b=v&&v.exports===f,T=b&&o.process,C=(function(){try{return T&&T.binding&&T.binding("util")}catch{}})(),I=C&&C.isTypedArray;function H(mt,kt){for(var Bt=-1,Gt=mt==null?0:mt.length;++Bt<Gt;)if(kt(mt[Bt],Bt,mt))return!0;return!1}function Z(mt){var kt=-1,Bt=Array(mt.size);return mt.forEach((function(Gt,ae){Bt[++kt]=[ae,Gt]})),Bt}function P(mt){var kt=-1,Bt=Array(mt.size);return mt.forEach((function(Gt){Bt[++kt]=Gt})),Bt}var q,V,W,$=Array.prototype,R=Function.prototype,z=Object.prototype,A=m["__core-js_shared__"],g=R.toString,x=z.hasOwnProperty,S=(q=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",E=z.toString,O=RegExp("^"+g.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=b?m.Buffer:void 0,B=m.Symbol,Y=m.Uint8Array,K=z.propertyIsEnumerable,nt=$.splice,U=B?B.toStringTag:void 0,J=Object.getOwnPropertySymbols,L=j?j.isBuffer:void 0,N=(V=Object.keys,W=Object,function(mt){return V(W(mt))}),X=Qt(m,"DataView"),rt=Qt(m,"Map"),ut=Qt(m,"Promise"),it=Qt(m,"Set"),lt=Qt(m,"WeakMap"),gt=Qt(Object,"create"),bt=ye(X),st=ye(rt),dt=ye(ut),ht=ye(it),xt=ye(lt),_t=B?B.prototype:void 0,St=_t?_t.valueOf:void 0;function Ot(mt){var kt=-1,Bt=mt==null?0:mt.length;for(this.clear();++kt<Bt;){var Gt=mt[kt];this.set(Gt[0],Gt[1])}}function Rt(mt){var kt=-1,Bt=mt==null?0:mt.length;for(this.clear();++kt<Bt;){var Gt=mt[kt];this.set(Gt[0],Gt[1])}}function Ft(mt){var kt=-1,Bt=mt==null?0:mt.length;for(this.clear();++kt<Bt;){var Gt=mt[kt];this.set(Gt[0],Gt[1])}}function Kt(mt){var kt=-1,Bt=mt==null?0:mt.length;for(this.__data__=new Ft;++kt<Bt;)this.add(mt[kt])}function et(mt){var kt=this.__data__=new Rt(mt);this.size=kt.size}function G(mt,kt){var Bt=Se(mt),Gt=!Bt&&Pe(mt),ae=!Bt&&!Gt&&fe(mt),Xt=!Bt&&!Gt&&!ae&&$e(mt),Jt=Bt||Gt||ae||Xt,Wt=Jt?(function(pe,we){for(var nr=-1,qe=Array(pe);++nr<pe;)qe[nr]=we(nr);return qe})(mt.length,String):[],ee=Wt.length;for(var de in mt)!x.call(mt,de)||Jt&&(de=="length"||ae&&(de=="offset"||de=="parent")||Xt&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||ke(de,ee))||Wt.push(de);return Wt}function Q(mt,kt){for(var Bt=mt.length;Bt--;)if(oe(mt[Bt][0],kt))return Bt;return-1}function ot(mt){return mt==null?mt===void 0?"[object Undefined]":"[object Null]":U&&U in Object(mt)?(function(kt){var Bt=x.call(kt,U),Gt=kt[U];try{kt[U]=void 0;var ae=!0}catch{}var Xt=E.call(kt);return ae&&(Bt?kt[U]=Gt:delete kt[U]),Xt})(mt):(function(kt){return E.call(kt)})(mt)}function ft(mt){return Ie(mt)&&ot(mt)==a}function vt(mt,kt,Bt,Gt,ae){return mt===kt||(mt==null||kt==null||!Ie(mt)&&!Ie(kt)?mt!=mt&&kt!=kt:(function(Xt,Jt,Wt,ee,de,pe){var we=Se(Xt),nr=Se(Jt),qe=we?"[object Array]":ie(Xt),lr=nr?"[object Array]":ie(Jt),rr=(qe=qe==a?i:qe)==i,dr=(lr=lr==a?i:lr)==i,ct=qe==lr;if(ct&&fe(Xt)){if(!fe(Jt))return!1;we=!0,rr=!1}if(ct&&!rr)return pe||(pe=new et),we||$e(Xt)?Pt(Xt,Jt,Wt,ee,de,pe):(function(Zt,Yt,Ae,be,ve,ue,ze){switch(Ae){case"[object DataView]":if(Zt.byteLength!=Yt.byteLength||Zt.byteOffset!=Yt.byteOffset)return!1;Zt=Zt.buffer,Yt=Yt.buffer;case"[object ArrayBuffer]":return!(Zt.byteLength!=Yt.byteLength||!ue(new Y(Zt),new Y(Yt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return oe(+Zt,+Yt);case"[object Error]":return Zt.name==Yt.name&&Zt.message==Yt.message;case"[object RegExp]":case"[object String]":return Zt==Yt+"";case l:var Be=Z;case e:var Ee=1&be;if(Be||(Be=P),Zt.size!=Yt.size&&!Ee)return!1;var Re=ze.get(Zt);if(Re)return Re==Yt;be|=2,ze.set(Zt,Yt);var pr=Pt(Be(Zt),Be(Yt),be,ve,ue,ze);return ze.delete(Zt),pr;case"[object Symbol]":if(St)return St.call(Zt)==St.call(Yt)}return!1})(Xt,Jt,qe,Wt,ee,de,pe);if(!(1&Wt)){var Tt=rr&&x.call(Xt,"__wrapped__"),zt=dr&&x.call(Jt,"__wrapped__");if(Tt||zt){var Ht=Tt?Xt.value():Xt,re=zt?Jt.value():Jt;return pe||(pe=new et),de(Ht,re,Wt,ee,pe)}}return ct?(pe||(pe=new et),(function(Zt,Yt,Ae,be,ve,ue){var ze=1&Ae,Be=qt(Zt),Ee=Be.length,Re=qt(Yt).length;if(Ee!=Re&&!ze)return!1;for(var pr=Ee;pr--;){var Er=Be[pr];if(!(ze?Er in Yt:x.call(Yt,Er)))return!1}var jr=ue.get(Zt);if(jr&&ue.get(Yt))return jr==Yt;var pn=!0;ue.set(Zt,Yt),ue.set(Yt,Zt);for(var un=ze;++pr<Ee;){Er=Be[pr];var Pn=Zt[Er],_r=Yt[Er];if(be)var Le=ze?be(_r,Pn,Er,Yt,Zt,ue):be(Pn,_r,Er,Zt,Yt,ue);if(!(Le===void 0?Pn===_r||ve(Pn,_r,Ae,be,ue):Le)){pn=!1;break}un||(un=Er=="constructor")}if(pn&&!un){var Me=Zt.constructor,Qr=Yt.constructor;Me==Qr||!("constructor"in Zt)||!("constructor"in Yt)||typeof Me=="function"&&Me instanceof Me&&typeof Qr=="function"&&Qr instanceof Qr||(pn=!1)}return ue.delete(Zt),ue.delete(Yt),pn})(Xt,Jt,Wt,ee,de,pe)):!1})(mt,kt,Bt,Gt,vt,ae))}function wt(mt){return!(!le(mt)||(function(kt){return!!S&&S in kt})(mt))&&(Te(mt)?O:s).test(ye(mt))}function Nt(mt){if(Bt=(kt=mt)&&kt.constructor,Gt=typeof Bt=="function"&&Bt.prototype||z,kt!==Gt)return N(mt);var kt,Bt,Gt,ae=[];for(var Xt in Object(mt))x.call(mt,Xt)&&Xt!="constructor"&&ae.push(Xt);return ae}function Pt(mt,kt,Bt,Gt,ae,Xt){var Jt=1&Bt,Wt=mt.length,ee=kt.length;if(Wt!=ee&&!(Jt&&ee>Wt))return!1;var de=Xt.get(mt);if(de&&Xt.get(kt))return de==kt;var pe=-1,we=!0,nr=2&Bt?new Kt:void 0;for(Xt.set(mt,kt),Xt.set(kt,mt);++pe<Wt;){var qe=mt[pe],lr=kt[pe];if(Gt)var rr=Jt?Gt(lr,qe,pe,kt,mt,Xt):Gt(qe,lr,pe,mt,kt,Xt);if(rr!==void 0){if(rr)continue;we=!1;break}if(nr){if(!H(kt,(function(dr,ct){if(Tt=ct,!nr.has(Tt)&&(qe===dr||ae(qe,dr,Bt,Gt,Xt)))return nr.push(ct);var Tt}))){we=!1;break}}else if(qe!==lr&&!ae(qe,lr,Bt,Gt,Xt)){we=!1;break}}return Xt.delete(mt),Xt.delete(kt),we}function qt(mt){return(function(kt,Bt,Gt){var ae=Bt(kt);return Se(kt)?ae:(function(Xt,Jt){for(var Wt=-1,ee=Jt.length,de=Xt.length;++Wt<ee;)Xt[de+Wt]=Jt[Wt];return Xt})(ae,Gt(kt))})(mt,me,Fe)}function Vt(mt,kt){var Bt,Gt,ae=mt.__data__;return((Gt=typeof(Bt=kt))=="string"||Gt=="number"||Gt=="symbol"||Gt=="boolean"?Bt!=="__proto__":Bt===null)?ae[typeof kt=="string"?"string":"hash"]:ae.map}function Qt(mt,kt){var Bt=(function(Gt,ae){return Gt?.[ae]})(mt,kt);return wt(Bt)?Bt:void 0}Ot.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},Ot.prototype.delete=function(mt){var kt=this.has(mt)&&delete this.__data__[mt];return this.size-=kt?1:0,kt},Ot.prototype.get=function(mt){var kt=this.__data__;if(gt){var Bt=kt[mt];return Bt==="__lodash_hash_undefined__"?void 0:Bt}return x.call(kt,mt)?kt[mt]:void 0},Ot.prototype.has=function(mt){var kt=this.__data__;return gt?kt[mt]!==void 0:x.call(kt,mt)},Ot.prototype.set=function(mt,kt){var Bt=this.__data__;return this.size+=this.has(mt)?0:1,Bt[mt]=gt&&kt===void 0?"__lodash_hash_undefined__":kt,this},Rt.prototype.clear=function(){this.__data__=[],this.size=0},Rt.prototype.delete=function(mt){var kt=this.__data__,Bt=Q(kt,mt);return!(Bt<0)&&(Bt==kt.length-1?kt.pop():nt.call(kt,Bt,1),--this.size,!0)},Rt.prototype.get=function(mt){var kt=this.__data__,Bt=Q(kt,mt);return Bt<0?void 0:kt[Bt][1]},Rt.prototype.has=function(mt){return Q(this.__data__,mt)>-1},Rt.prototype.set=function(mt,kt){var Bt=this.__data__,Gt=Q(Bt,mt);return Gt<0?(++this.size,Bt.push([mt,kt])):Bt[Gt][1]=kt,this},Ft.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(rt||Rt),string:new Ot}},Ft.prototype.delete=function(mt){var kt=Vt(this,mt).delete(mt);return this.size-=kt?1:0,kt},Ft.prototype.get=function(mt){return Vt(this,mt).get(mt)},Ft.prototype.has=function(mt){return Vt(this,mt).has(mt)},Ft.prototype.set=function(mt,kt){var Bt=Vt(this,mt),Gt=Bt.size;return Bt.set(mt,kt),this.size+=Bt.size==Gt?0:1,this},Kt.prototype.add=Kt.prototype.push=function(mt){return this.__data__.set(mt,"__lodash_hash_undefined__"),this},Kt.prototype.has=function(mt){return this.__data__.has(mt)},et.prototype.clear=function(){this.__data__=new Rt,this.size=0},et.prototype.delete=function(mt){var kt=this.__data__,Bt=kt.delete(mt);return this.size=kt.size,Bt},et.prototype.get=function(mt){return this.__data__.get(mt)},et.prototype.has=function(mt){return this.__data__.has(mt)},et.prototype.set=function(mt,kt){var Bt=this.__data__;if(Bt instanceof Rt){var Gt=Bt.__data__;if(!rt||Gt.length<199)return Gt.push([mt,kt]),this.size=++Bt.size,this;Bt=this.__data__=new Ft(Gt)}return Bt.set(mt,kt),this.size=Bt.size,this};var Fe=J?function(mt){return mt==null?[]:(mt=Object(mt),(function(kt,Bt){for(var Gt=-1,ae=kt==null?0:kt.length,Xt=0,Jt=[];++Gt<ae;){var Wt=kt[Gt];Bt(Wt,Gt,kt)&&(Jt[Xt++]=Wt)}return Jt})(J(mt),(function(kt){return K.call(mt,kt)})))}:function(){return[]},ie=ot;function ke(mt,kt){return!!(kt=kt??9007199254740991)&&(typeof mt=="number"||c.test(mt))&&mt>-1&&mt%1==0&&mt<kt}function ye(mt){if(mt!=null){try{return g.call(mt)}catch{}try{return mt+""}catch{}}return""}function oe(mt,kt){return mt===kt||mt!=mt&&kt!=kt}(X&&ie(new X(new ArrayBuffer(1)))!="[object DataView]"||rt&&ie(new rt)!=l||ut&&ie(ut.resolve())!="[object Promise]"||it&&ie(new it)!=e||lt&&ie(new lt)!="[object WeakMap]")&&(ie=function(mt){var kt=ot(mt),Bt=kt==i?mt.constructor:void 0,Gt=Bt?ye(Bt):"";if(Gt)switch(Gt){case bt:return"[object DataView]";case st:return l;case dt:return"[object Promise]";case ht:return e;case xt:return"[object WeakMap]"}return kt});var Pe=ft((function(){return arguments})())?ft:function(mt){return Ie(mt)&&x.call(mt,"callee")&&!K.call(mt,"callee")},Se=Array.isArray,fe=L||function(){return!1};function Te(mt){if(!le(mt))return!1;var kt=ot(mt);return kt=="[object Function]"||kt=="[object GeneratorFunction]"||kt=="[object AsyncFunction]"||kt=="[object Proxy]"}function He(mt){return typeof mt=="number"&&mt>-1&&mt%1==0&&mt<=9007199254740991}function le(mt){var kt=typeof mt;return mt!=null&&(kt=="object"||kt=="function")}function Ie(mt){return mt!=null&&typeof mt=="object"}var $e=I?(function(mt){return function(kt){return mt(kt)}})(I):function(mt){return Ie(mt)&&He(mt.length)&&!!u[ot(mt)]};function me(mt){return(kt=mt)!=null&&He(kt.length)&&!Te(kt)?G(mt):Nt(mt);var kt}y.exports=function(mt,kt){return vt(mt,kt)}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(r,y,_){(function(d){(function(){var a=typeof d=="object"&&d&&d.Object===Object&&d,l=typeof self=="object"&&self&&self.Object===Object&&self,i=a||l||Function("return this")(),e=Object.prototype,s=e.hasOwnProperty,c=e.toString,u=i.Symbol,o=u?u.toStringTag:void 0;function p(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":o&&o in Object(m)?(function(f){var v=s.call(f,o),b=f[o];try{f[o]=void 0;var T=!0}catch{}var C=c.call(f);return T&&(v?f[o]=b:delete f[o]),C})(m):(function(f){return c.call(f)})(m)}y.exports=function(m){if(!(function(v){var b=typeof v;return v!=null&&(b=="object"||b=="function")})(m))return!1;var f=p(m);return f=="[object Function]"||f=="[object GeneratorFunction]"||f=="[object AsyncFunction]"||f=="[object Proxy]"}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(r,y,_){y.exports=function(d){return d==null}},{}],448:[function(r,y,_){y.exports=function(d){return d===void 0}},{}],449:[function(r,y,_){(function(d){(function(){var a=/^\[object .+?Constructor\]$/,l=typeof d=="object"&&d&&d.Object===Object&&d,i=typeof self=="object"&&self&&self.Object===Object&&self,e=l||i||Function("return this")();function s(B,Y){return!!(B&&B.length)&&(function(K,nt,U){if(nt!=nt)return(function(N,X,rt,ut){for(var it=N.length,lt=rt+-1;++lt<it;)if(X(N[lt],lt,N))return lt;return-1})(K,c,U);for(var J=U-1,L=K.length;++J<L;)if(K[J]===nt)return J;return-1})(B,Y,0)>-1}function c(B){return B!=B}function u(B,Y){return B.has(Y)}function o(B){var Y=-1,K=Array(B.size);return B.forEach((function(nt){K[++Y]=nt})),K}var p,m=Array.prototype,f=Function.prototype,v=Object.prototype,b=e["__core-js_shared__"],T=(p=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",C=f.toString,I=v.hasOwnProperty,H=v.toString,Z=RegExp("^"+C.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=m.splice,q=O(e,"Map"),V=O(e,"Set"),W=O(Object,"create");function $(B){var Y=-1,K=B?B.length:0;for(this.clear();++Y<K;){var nt=B[Y];this.set(nt[0],nt[1])}}function R(B){var Y=-1,K=B?B.length:0;for(this.clear();++Y<K;){var nt=B[Y];this.set(nt[0],nt[1])}}function z(B){var Y=-1,K=B?B.length:0;for(this.clear();++Y<K;){var nt=B[Y];this.set(nt[0],nt[1])}}function A(B){var Y=-1,K=B?B.length:0;for(this.__data__=new z;++Y<K;)this.add(B[Y])}function g(B,Y){for(var K,nt,U=B.length;U--;)if((K=B[U][0])===(nt=Y)||K!=K&&nt!=nt)return U;return-1}function x(B){return!(!j(B)||(Y=B,T&&T in Y))&&((function(K){var nt=j(K)?H.call(K):"";return nt=="[object Function]"||nt=="[object GeneratorFunction]"})(B)||(function(K){var nt=!1;if(K!=null&&typeof K.toString!="function")try{nt=!!(K+"")}catch{}return nt})(B)?Z:a).test((function(K){if(K!=null){try{return C.call(K)}catch{}try{return K+""}catch{}}return""})(B));var Y}$.prototype.clear=function(){this.__data__=W?W(null):{}},$.prototype.delete=function(B){return this.has(B)&&delete this.__data__[B]},$.prototype.get=function(B){var Y=this.__data__;if(W){var K=Y[B];return K==="__lodash_hash_undefined__"?void 0:K}return I.call(Y,B)?Y[B]:void 0},$.prototype.has=function(B){var Y=this.__data__;return W?Y[B]!==void 0:I.call(Y,B)},$.prototype.set=function(B,Y){return this.__data__[B]=W&&Y===void 0?"__lodash_hash_undefined__":Y,this},R.prototype.clear=function(){this.__data__=[]},R.prototype.delete=function(B){var Y=this.__data__,K=g(Y,B);return!(K<0)&&(K==Y.length-1?Y.pop():P.call(Y,K,1),!0)},R.prototype.get=function(B){var Y=this.__data__,K=g(Y,B);return K<0?void 0:Y[K][1]},R.prototype.has=function(B){return g(this.__data__,B)>-1},R.prototype.set=function(B,Y){var K=this.__data__,nt=g(K,B);return nt<0?K.push([B,Y]):K[nt][1]=Y,this},z.prototype.clear=function(){this.__data__={hash:new $,map:new(q||R),string:new $}},z.prototype.delete=function(B){return E(this,B).delete(B)},z.prototype.get=function(B){return E(this,B).get(B)},z.prototype.has=function(B){return E(this,B).has(B)},z.prototype.set=function(B,Y){return E(this,B).set(B,Y),this},A.prototype.add=A.prototype.push=function(B){return this.__data__.set(B,"__lodash_hash_undefined__"),this},A.prototype.has=function(B){return this.__data__.has(B)};var S=V&&1/o(new V([,-0]))[1]==1/0?function(B){return new V(B)}:function(){};function E(B,Y){var K,nt,U=B.__data__;return((nt=typeof(K=Y))=="string"||nt=="number"||nt=="symbol"||nt=="boolean"?K!=="__proto__":K===null)?U[typeof Y=="string"?"string":"hash"]:U.map}function O(B,Y){var K=(function(nt,U){return nt?.[U]})(B,Y);return x(K)?K:void 0}function j(B){var Y=typeof B;return!!B&&(Y=="object"||Y=="function")}y.exports=function(B){return B&&B.length?(function(Y,K,nt){var U=-1,J=s,L=Y.length,N=!0,X=[],rt=X;if(L>=200){var ut=S(Y);if(ut)return o(ut);N=!1,J=u,rt=new A}else rt=X;t:for(;++U<L;){var it=Y[U],lt=it;if(it=it!==0?it:0,N&<==lt){for(var gt=rt.length;gt--;)if(rt[gt]===lt)continue t;X.push(it)}else J(rt,lt,nt)||(rt!==X&&rt.push(lt),X.push(it))}return X})(B):[]}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(r,y,_){var d=r("inherits"),a=r("hash-base"),l=r("safe-buffer").Buffer,i=new Array(16);function e(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(m,f){return m<<f|m>>>32-f}function c(m,f,v,b,T,C,I){return s(m+(f&v|~f&b)+T+C|0,I)+f|0}function u(m,f,v,b,T,C,I){return s(m+(f&b|v&~b)+T+C|0,I)+f|0}function o(m,f,v,b,T,C,I){return s(m+(f^v^b)+T+C|0,I)+f|0}function p(m,f,v,b,T,C,I){return s(m+(v^(f|~b))+T+C|0,I)+f|0}d(e,a),e.prototype._update=function(){for(var m=i,f=0;f<16;++f)m[f]=this._block.readInt32LE(4*f);var v=this._a,b=this._b,T=this._c,C=this._d;v=c(v,b,T,C,m[0],3614090360,7),C=c(C,v,b,T,m[1],3905402710,12),T=c(T,C,v,b,m[2],606105819,17),b=c(b,T,C,v,m[3],3250441966,22),v=c(v,b,T,C,m[4],4118548399,7),C=c(C,v,b,T,m[5],1200080426,12),T=c(T,C,v,b,m[6],2821735955,17),b=c(b,T,C,v,m[7],4249261313,22),v=c(v,b,T,C,m[8],1770035416,7),C=c(C,v,b,T,m[9],2336552879,12),T=c(T,C,v,b,m[10],4294925233,17),b=c(b,T,C,v,m[11],2304563134,22),v=c(v,b,T,C,m[12],1804603682,7),C=c(C,v,b,T,m[13],4254626195,12),T=c(T,C,v,b,m[14],2792965006,17),v=u(v,b=c(b,T,C,v,m[15],1236535329,22),T,C,m[1],4129170786,5),C=u(C,v,b,T,m[6],3225465664,9),T=u(T,C,v,b,m[11],643717713,14),b=u(b,T,C,v,m[0],3921069994,20),v=u(v,b,T,C,m[5],3593408605,5),C=u(C,v,b,T,m[10],38016083,9),T=u(T,C,v,b,m[15],3634488961,14),b=u(b,T,C,v,m[4],3889429448,20),v=u(v,b,T,C,m[9],568446438,5),C=u(C,v,b,T,m[14],3275163606,9),T=u(T,C,v,b,m[3],4107603335,14),b=u(b,T,C,v,m[8],1163531501,20),v=u(v,b,T,C,m[13],2850285829,5),C=u(C,v,b,T,m[2],4243563512,9),T=u(T,C,v,b,m[7],1735328473,14),v=o(v,b=u(b,T,C,v,m[12],2368359562,20),T,C,m[5],4294588738,4),C=o(C,v,b,T,m[8],2272392833,11),T=o(T,C,v,b,m[11],1839030562,16),b=o(b,T,C,v,m[14],4259657740,23),v=o(v,b,T,C,m[1],2763975236,4),C=o(C,v,b,T,m[4],1272893353,11),T=o(T,C,v,b,m[7],4139469664,16),b=o(b,T,C,v,m[10],3200236656,23),v=o(v,b,T,C,m[13],681279174,4),C=o(C,v,b,T,m[0],3936430074,11),T=o(T,C,v,b,m[3],3572445317,16),b=o(b,T,C,v,m[6],76029189,23),v=o(v,b,T,C,m[9],3654602809,4),C=o(C,v,b,T,m[12],3873151461,11),T=o(T,C,v,b,m[15],530742520,16),v=p(v,b=o(b,T,C,v,m[2],3299628645,23),T,C,m[0],4096336452,6),C=p(C,v,b,T,m[7],1126891415,10),T=p(T,C,v,b,m[14],2878612391,15),b=p(b,T,C,v,m[5],4237533241,21),v=p(v,b,T,C,m[12],1700485571,6),C=p(C,v,b,T,m[3],2399980690,10),T=p(T,C,v,b,m[10],4293915773,15),b=p(b,T,C,v,m[1],2240044497,21),v=p(v,b,T,C,m[8],1873313359,6),C=p(C,v,b,T,m[15],4264355552,10),T=p(T,C,v,b,m[6],2734768916,15),b=p(b,T,C,v,m[13],1309151649,21),v=p(v,b,T,C,m[4],4149444226,6),C=p(C,v,b,T,m[11],3174756917,10),T=p(T,C,v,b,m[2],718787259,15),b=p(b,T,C,v,m[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+b|0,this._c=this._c+T|0,this._d=this._d+C|0},e.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=l.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},y.exports=e},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(r,y,_){var d=r("bn.js"),a=r("brorand");function l(i){this.rand=i||new a.Rand}y.exports=l,l.create=function(i){return new l(i)},l.prototype._randbelow=function(i){var e=i.bitLength(),s=Math.ceil(e/8);do var c=new d(this.rand.generate(s));while(c.cmp(i)>=0);return c},l.prototype._randrange=function(i,e){var s=e.sub(i);return i.add(this._randbelow(s))},l.prototype.test=function(i,e,s){var c=i.bitLength(),u=d.mont(i),o=new d(1).toRed(u);e||(e=Math.max(1,c/48|0));for(var p=i.subn(1),m=0;!p.testn(m);m++);for(var f=i.shrn(m),v=p.toRed(u);e>0;e--){var b=this._randrange(new d(2),p);s&&s(b);var T=b.toRed(u).redPow(f);if(T.cmp(o)!==0&&T.cmp(v)!==0){for(var C=1;C<m;C++){if((T=T.redSqr()).cmp(o)===0)return!1;if(T.cmp(v)===0)break}if(C===m)return!1}}return!0},l.prototype.getDivisor=function(i,e){var s=i.bitLength(),c=d.mont(i),u=new d(1).toRed(c);e||(e=Math.max(1,s/48|0));for(var o=i.subn(1),p=0;!o.testn(p);p++);for(var m=i.shrn(p),f=o.toRed(c);e>0;e--){var v=this._randrange(new d(2),o),b=i.gcd(v);if(b.cmpn(1)!==0)return b;var T=v.toRed(c).redPow(m);if(T.cmp(u)!==0&&T.cmp(f)!==0){for(var C=1;C<p;C++){if((T=T.redSqr()).cmp(u)===0)return T.fromRed().subn(1).gcd(i);if(T.cmp(f)===0)break}if(C===p)return(T=T.redSqr()).fromRed().subn(1).gcd(i)}}return!1}},{"bn.js":452,brorand:187}],452:[function(r,y,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],453:[function(r,y,_){function d(a,l){if(!a)throw new Error(l||"Assertion failed")}y.exports=d,d.equal=function(a,l,i){if(a!=l)throw new Error(i||"Assertion failed: "+a+" != "+l)}},{}],454:[function(r,y,_){var d=_;function a(i){return i.length===1?"0"+i:i}function l(i){for(var e="",s=0;s<i.length;s++)e+=a(i[s].toString(16));return e}d.toArray=function(i,e){if(Array.isArray(i))return i.slice();if(!i)return[];var s=[];if(typeof i!="string"){for(var c=0;c<i.length;c++)s[c]=0|i[c];return s}if(e==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),c=0;c<i.length;c+=2)s.push(parseInt(i[c]+i[c+1],16));else for(c=0;c<i.length;c++){var u=i.charCodeAt(c),o=u>>8,p=255&u;o?s.push(o,p):s.push(p)}return s},d.zero2=a,d.toHex=l,d.encode=function(i,e){return e==="hex"?l(i):i}},{}],455:[function(r,y,_){y.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(r,y,_){var d=r("asn1.js");_.certificate=r("./certificate");var a=d.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));_.RSAPrivateKey=a;var l=d.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));_.RSAPublicKey=l;var i=d.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(e),this.key("subjectPublicKey").bitstr())}));_.PublicKey=i;var e=d.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=d.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("subjectPrivateKey").octstr())}));_.PrivateKey=s;var c=d.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));_.EncryptedPrivateKey=c;var u=d.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));_.DSAPrivateKey=u,_.DSAparam=d.define("DSAparam",(function(){this.int()}));var o=d.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())}));_.ECPrivateKey=o;var p=d.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));_.signature=d.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(r,y,_){var d=r("asn1.js"),a=d.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),l=d.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),i=d.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),e=d.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())})),s=d.define("RelativeDistinguishedName",(function(){this.setof(l)})),c=d.define("RDNSequence",(function(){this.seqof(s)})),u=d.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),o=d.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))})),p=d.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),m=d.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(u),this.key("validity").use(o),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(e),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())})),f=d.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())}));y.exports=f},{"asn1.js":170}],458:[function(r,y,_){var d=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=r("evp_bytestokey"),e=r("browserify-aes"),s=r("safe-buffer").Buffer;y.exports=function(c,u){var o,p=c.toString(),m=p.match(d);if(m){var f="aes"+m[1],v=s.from(m[2],"hex"),b=s.from(m[3].replace(/[\r\n]/g,""),"base64"),T=i(u,v.slice(0,8),parseInt(m[1],10)).key,C=[],I=e.createDecipheriv(f,T,v);C.push(I.update(b)),C.push(I.final()),o=s.concat(C)}else{var H=p.match(l);o=s.from(H[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(a)[1],data:o}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(r,y,_){var d=r("./asn1"),a=r("./aesid.json"),l=r("./fixProc"),i=r("browserify-aes"),e=r("pbkdf2"),s=r("safe-buffer").Buffer;function c(u){var o;typeof u!="object"||s.isBuffer(u)||(o=u.passphrase,u=u.key),typeof u=="string"&&(u=s.from(u));var p,m,f=l(u,o),v=f.tag,b=f.data;switch(v){case"CERTIFICATE":m=d.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(m||(m=d.PublicKey.decode(b,"der")),p=m.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPublicKey.decode(m.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return m.subjectPrivateKey=m.subjectPublicKey,{type:"ec",data:m};case"1.2.840.10040.4.1":return m.algorithm.params.pub_key=d.DSAparam.decode(m.subjectPublicKey.data,"der"),{type:"dsa",data:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":b=(function(T,C){var I=T.algorithm.decrypt.kde.kdeparams.salt,H=parseInt(T.algorithm.decrypt.kde.kdeparams.iters.toString(),10),Z=a[T.algorithm.decrypt.cipher.algo.join(".")],P=T.algorithm.decrypt.cipher.iv,q=T.subjectPrivateKey,V=parseInt(Z.split("-")[1],10)/8,W=e.pbkdf2Sync(C,I,H,V,"sha1"),$=i.createDecipheriv(Z,W,P),R=[];return R.push($.update(q)),R.push($.final()),s.concat(R)})(b=d.EncryptedPrivateKey.decode(b,"der"),o);case"PRIVATE KEY":switch(p=(m=d.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPrivateKey.decode(m.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:m.algorithm.curve,privateKey:d.ECPrivateKey.decode(m.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return m.algorithm.params.priv_key=d.DSAparam.decode(m.subjectPrivateKey,"der"),{type:"dsa",params:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return d.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return d.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:d.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=d.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+v)}}y.exports=c,c.signature=d.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(r,y,_){_.pbkdf2=r("./lib/async"),_.pbkdf2Sync=r("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(r,y,_){(function(d){(function(){var a,l,i=r("safe-buffer").Buffer,e=r("./precondition"),s=r("./default-encoding"),c=r("./sync"),u=r("./to-buffer"),o=d.crypto&&d.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},m=[];function f(){return l||(l=d.process&&d.process.nextTick?d.process.nextTick:d.queueMicrotask?d.queueMicrotask:d.setImmediate?d.setImmediate:d.setTimeout)}function v(b,T,C,I,H){return o.importKey("raw",b,{name:"PBKDF2"},!1,["deriveBits"]).then((function(Z){return o.deriveBits({name:"PBKDF2",salt:T,iterations:C,hash:{name:H}},Z,I<<3)})).then((function(Z){return i.from(Z)}))}y.exports=function(b,T,C,I,H,Z){typeof H=="function"&&(Z=H,H=void 0);var P=p[(H=H||"sha1").toLowerCase()];if(P&&typeof d.Promise=="function"){if(e(C,I),b=u(b,s,"Password"),T=u(T,s,"Salt"),typeof Z!="function")throw new Error("No callback provided to pbkdf2");(function(q,V){q.then((function(W){f()((function(){V(null,W)}))}),(function(W){f()((function(){V(W)}))}))})((function(q){if(d.process&&!d.process.browser||!o||!o.importKey||!o.deriveBits)return Promise.resolve(!1);if(m[q]!==void 0)return m[q];var V=v(a=a||i.alloc(8),a,10,128,q).then((function(){return!0})).catch((function(){return!1}));return m[q]=V,V})(P).then((function(q){return q?v(b,T,C,I,P):c(b,T,C,I,H)})),Z)}else f()((function(){var q;try{q=c(b,T,C,I,H)}catch(V){return Z(V)}Z(null,q)}))}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(r,y,_){(function(d,a){(function(){var l;a.process&&a.process.browser?l="utf-8":a.process&&a.process.version?l=parseInt(d.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":l="utf-8",y.exports=l}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(r,y,_){var d=Math.pow(2,30)-1;y.exports=function(a,l){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof l!="number")throw new TypeError("Key length not a number");if(l<0||l>d||l!=l)throw new TypeError("Bad key length")}},{}],464:[function(r,y,_){var d=r("create-hash/md5"),a=r("ripemd160"),l=r("sha.js"),i=r("safe-buffer").Buffer,e=r("./precondition"),s=r("./default-encoding"),c=r("./to-buffer"),u=i.alloc(128),o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(m,f,v){var b=(function(P){function q(V){return l(P).update(V).digest()}return P==="rmd160"||P==="ripemd160"?function(V){return new a().update(V).digest()}:P==="md5"?d:q})(m),T=m==="sha512"||m==="sha384"?128:64;f.length>T?f=b(f):f.length<T&&(f=i.concat([f,u],T));for(var C=i.allocUnsafe(T+o[m]),I=i.allocUnsafe(T+o[m]),H=0;H<T;H++)C[H]=54^f[H],I[H]=92^f[H];var Z=i.allocUnsafe(T+v+4);C.copy(Z,0,0,T),this.ipad1=Z,this.ipad2=C,this.opad=I,this.alg=m,this.blocksize=T,this.hash=b,this.size=o[m]}p.prototype.run=function(m,f){return m.copy(f,this.blocksize),this.hash(f).copy(this.opad,this.blocksize),this.hash(this.opad)},y.exports=function(m,f,v,b,T){e(v,b);var C=new p(T=T||"sha1",m=c(m,s,"Password"),(f=c(f,s,"Salt")).length),I=i.allocUnsafe(b),H=i.allocUnsafe(f.length+4);f.copy(H,0,0,f.length);for(var Z=0,P=o[T],q=Math.ceil(b/P),V=1;V<=q;V++){H.writeUInt32BE(V,f.length);for(var W=C.run(H,C.ipad1),$=W,R=1;R<v;R++){$=C.run($,C.ipad2);for(var z=0;z<P;z++)W[z]^=$[z]}W.copy(I,Z),Z+=P}return I}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(r,y,_){var d=r("safe-buffer").Buffer;y.exports=function(a,l,i){if(d.isBuffer(a))return a;if(typeof a=="string")return d.from(a,l);if(ArrayBuffer.isView(a))return d.from(a.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(r,y,_){(function(d){(function(){d===void 0||!d.version||d.version.indexOf("v0.")===0||d.version.indexOf("v1.")===0&&d.version.indexOf("v1.8.")!==0?y.exports={nextTick:function(a,l,i,e){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var s,c,u=arguments.length;switch(u){case 0:case 1:return d.nextTick(a);case 2:return d.nextTick((function(){a.call(null,l)}));case 3:return d.nextTick((function(){a.call(null,l,i)}));case 4:return d.nextTick((function(){a.call(null,l,i,e)}));default:for(s=new Array(u-1),c=0;c<s.length;)s[c++]=arguments[c];return d.nextTick((function(){a.apply(null,s)}))}}}:y.exports=d}).call(this)}).call(this,r("_process"))},{_process:467}],467:[function(r,y,_){var d,a,l=y.exports={};function i(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function s(T){if(d===setTimeout)return setTimeout(T,0);if((d===i||!d)&&setTimeout)return d=setTimeout,setTimeout(T,0);try{return d(T,0)}catch{try{return d.call(null,T,0)}catch{return d.call(this,T,0)}}}(function(){try{d=typeof setTimeout=="function"?setTimeout:i}catch{d=i}try{a=typeof clearTimeout=="function"?clearTimeout:e}catch{a=e}})();var c,u=[],o=!1,p=-1;function m(){o&&c&&(o=!1,c.length?u=c.concat(u):p=-1,u.length&&f())}function f(){if(!o){var T=s(m);o=!0;for(var C=u.length;C;){for(c=u,u=[];++p<C;)c&&c[p].run();p=-1,C=u.length}c=null,o=!1,(function(I){if(a===clearTimeout)return clearTimeout(I);if((a===e||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(I);try{a(I)}catch{try{return a.call(null,I)}catch{return a.call(this,I)}}})(T)}}function v(T,C){this.fun=T,this.array=C}function b(){}l.nextTick=function(T){var C=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)C[I-1]=arguments[I];u.push(new v(T,C)),u.length!==1||o||s(f)},v.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=b,l.addListener=b,l.once=b,l.off=b,l.removeListener=b,l.removeAllListeners=b,l.emit=b,l.prependListener=b,l.prependOnceListener=b,l.listeners=function(T){return[]},l.binding=function(T){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(T){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],468:[function(r,y,_){_.publicEncrypt=r("./publicEncrypt"),_.privateDecrypt=r("./privateDecrypt"),_.privateEncrypt=function(d,a){return _.publicEncrypt(d,a,!0)},_.publicDecrypt=function(d,a){return _.privateDecrypt(d,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(r,y,_){var d=r("create-hash"),a=r("safe-buffer").Buffer;function l(i){var e=a.allocUnsafe(4);return e.writeUInt32BE(i,0),e}y.exports=function(i,e){for(var s,c=a.alloc(0),u=0;c.length<e;)s=l(u++),c=a.concat([c,d("sha1").update(i).update(s).digest()]);return c.slice(0,e)}},{"create-hash":386,"safe-buffer":494}],470:[function(r,y,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],471:[function(r,y,_){var d=r("parse-asn1"),a=r("./mgf"),l=r("./xor"),i=r("bn.js"),e=r("browserify-rsa"),s=r("create-hash"),c=r("./withPublic"),u=r("safe-buffer").Buffer;y.exports=function(o,p,m){var f;f=o.padding?o.padding:m?1:4;var v,b=d(o),T=b.modulus.byteLength();if(p.length>T||new i(p).cmp(b.modulus)>=0)throw new Error("decryption error");v=m?c(new i(p),b):e(p,b);var C=u.alloc(T-v.length);if(v=u.concat([C,v],T),f===4)return(function(I,H){var Z=I.modulus.byteLength(),P=s("sha1").update(u.alloc(0)).digest(),q=P.length;if(H[0]!==0)throw new Error("decryption error");var V=H.slice(1,q+1),W=H.slice(q+1),$=l(V,a(W,q)),R=l(W,a($,Z-q-1));if((function(A,g){A=u.from(A),g=u.from(g);var x=0,S=A.length;A.length!==g.length&&(x++,S=Math.min(A.length,g.length));for(var E=-1;++E<S;)x+=A[E]^g[E];return x})(P,R.slice(0,q)))throw new Error("decryption error");for(var z=q;R[z]===0;)z++;if(R[z++]!==1)throw new Error("decryption error");return R.slice(z)})(b,v);if(f===1)return(function(I,H,Z){for(var P=H.slice(0,2),q=2,V=0;H[q++]!==0;)if(q>=H.length){V++;break}var W=H.slice(2,q-1);if((P.toString("hex")!=="0002"&&!Z||P.toString("hex")!=="0001"&&Z)&&V++,W.length<8&&V++,V)throw new Error("decryption error");return H.slice(q)})(0,v,m);if(f===3)return v;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(r,y,_){var d=r("parse-asn1"),a=r("randombytes"),l=r("create-hash"),i=r("./mgf"),e=r("./xor"),s=r("bn.js"),c=r("./withPublic"),u=r("browserify-rsa"),o=r("safe-buffer").Buffer;y.exports=function(p,m,f){var v;v=p.padding?p.padding:f?1:4;var b,T=d(p);if(v===4)b=(function(C,I){var H=C.modulus.byteLength(),Z=I.length,P=l("sha1").update(o.alloc(0)).digest(),q=P.length,V=2*q;if(Z>H-V-2)throw new Error("message too long");var W=o.alloc(H-Z-V-2),$=H-q-1,R=a(q),z=e(o.concat([P,W,o.alloc(1,1),I],$),i(R,$)),A=e(R,i(z,q));return new s(o.concat([o.alloc(1),A,z],H))})(T,m);else if(v===1)b=(function(C,I,H){var Z,P=I.length,q=C.modulus.byteLength();if(P>q-11)throw new Error("message too long");return Z=H?o.alloc(q-P-3,255):(function(V){for(var W,$=o.allocUnsafe(V),R=0,z=a(2*V),A=0;R<V;)A===z.length&&(z=a(2*V),A=0),(W=z[A++])&&($[R++]=W);return $})(q-P-3),new s(o.concat([o.from([0,H?1:2]),Z,o.alloc(1),I],q))})(T,m,f);else{if(v!==3)throw new Error("unknown padding");if((b=new s(m)).cmp(T.modulus)>=0)throw new Error("data too long for modulus")}return f?u(b,T):c(b,T)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(r,y,_){var d=r("bn.js"),a=r("safe-buffer").Buffer;y.exports=function(l,i){return a.from(l.toRed(d.mont(i.modulus)).redPow(new d(i.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(r,y,_){y.exports=function(d,a){for(var l=d.length,i=-1;++i<l;)d[i]^=a[i];return d}},{}],475:[function(r,y,_){(function(d,a){(function(){var l=r("safe-buffer").Buffer,i=a.crypto||a.msCrypto;i&&i.getRandomValues?y.exports=function(e,s){if(e>4294967295)throw new RangeError("requested too many random bytes");var c=l.allocUnsafe(e);if(e>0)if(e>65536)for(var u=0;u<e;u+=65536)i.getRandomValues(c.slice(u,u+65536));else i.getRandomValues(c);return typeof s=="function"?d.nextTick((function(){s(null,c)})):c}:y.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
19
|
+
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(r,y,_){(function(d,a){(function(){function l(){throw new Error(`secure random number generation not supported by this browser
|
|
20
|
+
use chrome, FireFox or Internet Explorer 11`)}var i=r("safe-buffer"),e=r("randombytes"),s=i.Buffer,c=i.kMaxLength,u=a.crypto||a.msCrypto,o=Math.pow(2,32)-1;function p(v,b){if(typeof v!="number"||v!=v)throw new TypeError("offset must be a number");if(v>o||v<0)throw new TypeError("offset must be a uint32");if(v>c||v>b)throw new RangeError("offset out of range")}function m(v,b,T){if(typeof v!="number"||v!=v)throw new TypeError("size must be a number");if(v>o||v<0)throw new TypeError("size must be a uint32");if(v+b>T||v>c)throw new RangeError("buffer too small")}function f(v,b,T,C){if(d.browser){var I=v.buffer,H=new Uint8Array(I,b,T);return u.getRandomValues(H),C?void d.nextTick((function(){C(null,v)})):v}if(!C)return e(T).copy(v,b),v;e(T,(function(Z,P){if(Z)return C(Z);P.copy(v,b),C(null,v)}))}u&&u.getRandomValues||!d.browser?(_.randomFill=function(v,b,T,C){if(!(s.isBuffer(v)||v instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof b=="function")C=b,b=0,T=v.length;else if(typeof T=="function")C=T,T=v.length-b;else if(typeof C!="function")throw new TypeError('"cb" argument must be a function');return p(b,v.length),m(T,b,v.length),f(v,b,T,C)},_.randomFillSync=function(v,b,T){if(b===void 0&&(b=0),!(s.isBuffer(v)||v instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(b,v.length),T===void 0&&(T=v.length-b),m(T,b,v.length),f(v,b,T)}):(_.randomFill=l,_.randomFillSync=l)}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(r,y,_){var d={};function a(i,e,s){s||(s=Error);var c=(function(u){var o,p;function m(f,v,b){return u.call(this,(function(T,C,I){return typeof e=="string"?e:e(T,C,I)})(f,v,b))||this}return p=u,(o=m).prototype=Object.create(p.prototype),o.prototype.constructor=o,o.__proto__=p,m})(s);c.prototype.name=s.name,c.prototype.code=i,d[i]=c}function l(i,e){if(Array.isArray(i)){var s=i.length;return i=i.map((function(c){return String(c)})),s>2?"one of ".concat(e," ").concat(i.slice(0,s-1).join(", "),", or ")+i[s-1]:s===2?"one of ".concat(e," ").concat(i[0]," or ").concat(i[1]):"of ".concat(e," ").concat(i[0])}return"of ".concat(e," ").concat(String(i))}a("ERR_INVALID_OPT_VALUE",(function(i,e){return'The value "'+e+'" is invalid for option "'+i+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(i,e,s){var c,u,o;if(typeof e=="string"&&(u="not ",e.substr(0,u.length)===u)?(c="must not be",e=e.replace(/^not /,"")):c="must be",(function(m,f,v){return(v===void 0||v>m.length)&&(v=m.length),m.substring(v-f.length,v)===f})(i," argument"))o="The ".concat(i," ").concat(c," ").concat(l(e,"type"));else{var p=(function(m,f,v){return typeof v!="number"&&(v=0),!(v+f.length>m.length)&&m.indexOf(f,v)!==-1})(i,".")?"property":"argument";o='The "'.concat(i,'" ').concat(p," ").concat(c," ").concat(l(e,"type"))}return o+=". Received type ".concat(typeof s)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(i){return"The "+i+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(i){return"Cannot call "+i+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(i){return"Unknown encoding: "+i}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),y.exports.codes=d},{}],478:[function(r,y,_){(function(d){(function(){var a=Object.keys||function(m){var f=[];for(var v in m)f.push(v);return f};y.exports=u;var l=r("./_stream_readable"),i=r("./_stream_writable");r("inherits")(u,l);for(var e=a(i.prototype),s=0;s<e.length;s++){var c=e[s];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(m){if(!(this instanceof u))return new u(m);l.call(this,m),i.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",o)))}function o(){this._writableState.ended||d.nextTick(p,this)}function p(m){m.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=m,this._writableState.destroyed=m)}})}).call(this)}).call(this,r("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(r,y,_){y.exports=a;var d=r("./_stream_transform");function a(l){if(!(this instanceof a))return new a(l);d.call(this,l)}r("inherits")(a,d),a.prototype._transform=function(l,i,e){e(null,l)}},{"./_stream_transform":481,inherits:440}],480:[function(r,y,_){(function(d,a){(function(){var l;y.exports=$,$.ReadableState=W,r("events").EventEmitter;var i=function(L,N){return L.listeners(N).length},e=r("./internal/streams/stream"),s=r("buffer").Buffer,c=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},u,o=r("util");u=o&&o.debuglog?o.debuglog("stream"):function(){};var p,m,f,v=r("./internal/streams/buffer_list"),b=r("./internal/streams/destroy"),T=r("./internal/streams/state").getHighWaterMark,C=r("../errors").codes,I=C.ERR_INVALID_ARG_TYPE,H=C.ERR_STREAM_PUSH_AFTER_EOF,Z=C.ERR_METHOD_NOT_IMPLEMENTED,P=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("inherits")($,e);var q=b.errorOrDestroy,V=["error","close","destroy","pause","resume"];function W(L,N,X){l=l||r("./_stream_duplex"),L=L||{},typeof X!="boolean"&&(X=N instanceof l),this.objectMode=!!L.objectMode,X&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=T(this,L,"readableHighWaterMark",X),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(p||(p=r("string_decoder/").StringDecoder),this.decoder=new p(L.encoding),this.encoding=L.encoding)}function $(L){if(l=l||r("./_stream_duplex"),!(this instanceof $))return new $(L);var N=this instanceof l;this._readableState=new W(L,this,N),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),e.call(this)}function R(L,N,X,rt,ut){u("readableAddChunk",N);var it,lt=L._readableState;if(N===null)lt.reading=!1,(function(gt,bt){if(u("onEofChunk"),!bt.ended){if(bt.decoder){var st=bt.decoder.end();st&&st.length&&(bt.buffer.push(st),bt.length+=bt.objectMode?1:st.length)}bt.ended=!0,bt.sync?g(gt):(bt.needReadable=!1,bt.emittedReadable||(bt.emittedReadable=!0,x(gt)))}})(L,lt);else if(ut||(it=(function(gt,bt){var st;dt=bt,s.isBuffer(dt)||dt instanceof c||typeof bt=="string"||bt===void 0||gt.objectMode||(st=new I("chunk",["string","Buffer","Uint8Array"],bt));var dt;return st})(lt,N)),it)q(L,it);else if(lt.objectMode||N&&N.length>0)if(typeof N=="string"||lt.objectMode||Object.getPrototypeOf(N)===s.prototype||(N=(function(gt){return s.from(gt)})(N)),rt)lt.endEmitted?q(L,new P):z(L,lt,N,!0);else if(lt.ended)q(L,new H);else{if(lt.destroyed)return!1;lt.reading=!1,lt.decoder&&!X?(N=lt.decoder.write(N),lt.objectMode||N.length!==0?z(L,lt,N,!1):S(L,lt)):z(L,lt,N,!1)}else rt||(lt.reading=!1,S(L,lt));return!lt.ended&&(lt.length<lt.highWaterMark||lt.length===0)}function z(L,N,X,rt){N.flowing&&N.length===0&&!N.sync?(N.awaitDrain=0,L.emit("data",X)):(N.length+=N.objectMode?1:X.length,rt?N.buffer.unshift(X):N.buffer.push(X),N.needReadable&&g(L)),S(L,N)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),$.prototype.destroy=b.destroy,$.prototype._undestroy=b.undestroy,$.prototype._destroy=function(L,N){N(L)},$.prototype.push=function(L,N){var X,rt=this._readableState;return rt.objectMode?X=!0:typeof L=="string"&&((N=N||rt.defaultEncoding)!==rt.encoding&&(L=s.from(L,N),N=""),X=!0),R(this,L,N,!1,X)},$.prototype.unshift=function(L){return R(this,L,null,!0,!1)},$.prototype.isPaused=function(){return this._readableState.flowing===!1},$.prototype.setEncoding=function(L){p||(p=r("string_decoder/").StringDecoder);var N=new p(L);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;for(var X=this._readableState.buffer.head,rt="";X!==null;)rt+=N.write(X.data),X=X.next;return this._readableState.buffer.clear(),rt!==""&&this._readableState.buffer.push(rt),this._readableState.length=rt.length,this};function A(L,N){return L<=0||N.length===0&&N.ended?0:N.objectMode?1:L!=L?N.flowing&&N.length?N.buffer.head.data.length:N.length:(L>N.highWaterMark&&(N.highWaterMark=(function(X){return X>=1073741824?X=1073741824:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X})(L)),L<=N.length?L:N.ended?N.length:(N.needReadable=!0,0))}function g(L){var N=L._readableState;u("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(u("emitReadable",N.flowing),N.emittedReadable=!0,d.nextTick(x,L))}function x(L){var N=L._readableState;u("emitReadable_",N.destroyed,N.length,N.ended),N.destroyed||!N.length&&!N.ended||(L.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,Y(L)}function S(L,N){N.readingMore||(N.readingMore=!0,d.nextTick(E,L,N))}function E(L,N){for(;!N.reading&&!N.ended&&(N.length<N.highWaterMark||N.flowing&&N.length===0);){var X=N.length;if(u("maybeReadMore read 0"),L.read(0),X===N.length)break}N.readingMore=!1}function O(L){var N=L._readableState;N.readableListening=L.listenerCount("readable")>0,N.resumeScheduled&&!N.paused?N.flowing=!0:L.listenerCount("data")>0&&L.resume()}function j(L){u("readable nexttick read 0"),L.read(0)}function B(L,N){u("resume",N.reading),N.reading||L.read(0),N.resumeScheduled=!1,L.emit("resume"),Y(L),N.flowing&&!N.reading&&L.read(0)}function Y(L){var N=L._readableState;for(u("flow",N.flowing);N.flowing&&L.read()!==null;);}function K(L,N){return N.length===0?null:(N.objectMode?X=N.buffer.shift():!L||L>=N.length?(X=N.decoder?N.buffer.join(""):N.buffer.length===1?N.buffer.first():N.buffer.concat(N.length),N.buffer.clear()):X=N.buffer.consume(L,N.decoder),X);var X}function nt(L){var N=L._readableState;u("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,d.nextTick(U,N,L))}function U(L,N){if(u("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,N.readable=!1,N.emit("end"),L.autoDestroy)){var X=N._writableState;(!X||X.autoDestroy&&X.finished)&&N.destroy()}}function J(L,N){for(var X=0,rt=L.length;X<rt;X++)if(L[X]===N)return X;return-1}$.prototype.read=function(L){u("read",L),L=parseInt(L,10);var N=this._readableState,X=L;if(L!==0&&(N.emittedReadable=!1),L===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended))return u("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?nt(this):g(this),null;if((L=A(L,N))===0&&N.ended)return N.length===0&&nt(this),null;var rt,ut=N.needReadable;return u("need readable",ut),(N.length===0||N.length-L<N.highWaterMark)&&u("length less than watermark",ut=!0),N.ended||N.reading?u("reading or ended",ut=!1):ut&&(u("do read"),N.reading=!0,N.sync=!0,N.length===0&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(L=A(X,N))),(rt=L>0?K(L,N):null)===null?(N.needReadable=N.length<=N.highWaterMark,L=0):(N.length-=L,N.awaitDrain=0),N.length===0&&(N.ended||(N.needReadable=!0),X!==L&&N.ended&&nt(this)),rt!==null&&this.emit("data",rt),rt},$.prototype._read=function(L){q(this,new Z("_read()"))},$.prototype.pipe=function(L,N){var X=this,rt=this._readableState;switch(rt.pipesCount){case 0:rt.pipes=L;break;case 1:rt.pipes=[rt.pipes,L];break;default:rt.pipes.push(L)}rt.pipesCount+=1,u("pipe count=%d opts=%j",rt.pipesCount,N);var ut=(!N||N.end!==!1)&&L!==d.stdout&&L!==d.stderr?lt:_t;function it(St,Ot){u("onunpipe"),St===X&&Ot&&Ot.hasUnpiped===!1&&(Ot.hasUnpiped=!0,u("cleanup"),L.removeListener("close",ht),L.removeListener("finish",xt),L.removeListener("drain",gt),L.removeListener("error",dt),L.removeListener("unpipe",it),X.removeListener("end",lt),X.removeListener("end",_t),X.removeListener("data",st),bt=!0,!rt.awaitDrain||L._writableState&&!L._writableState.needDrain||gt())}function lt(){u("onend"),L.end()}rt.endEmitted?d.nextTick(ut):X.once("end",ut),L.on("unpipe",it);var gt=(function(St){return function(){var Ot=St._readableState;u("pipeOnDrain",Ot.awaitDrain),Ot.awaitDrain&&Ot.awaitDrain--,Ot.awaitDrain===0&&i(St,"data")&&(Ot.flowing=!0,Y(St))}})(X);L.on("drain",gt);var bt=!1;function st(St){u("ondata");var Ot=L.write(St);u("dest.write",Ot),Ot===!1&&((rt.pipesCount===1&&rt.pipes===L||rt.pipesCount>1&&J(rt.pipes,L)!==-1)&&!bt&&(u("false write response, pause",rt.awaitDrain),rt.awaitDrain++),X.pause())}function dt(St){u("onerror",St),_t(),L.removeListener("error",dt),i(L,"error")===0&&q(L,St)}function ht(){L.removeListener("finish",xt),_t()}function xt(){u("onfinish"),L.removeListener("close",ht),_t()}function _t(){u("unpipe"),X.unpipe(L)}return X.on("data",st),(function(St,Ot,Rt){if(typeof St.prependListener=="function")return St.prependListener(Ot,Rt);St._events&&St._events[Ot]?Array.isArray(St._events[Ot])?St._events[Ot].unshift(Rt):St._events[Ot]=[Rt,St._events[Ot]]:St.on(Ot,Rt)})(L,"error",dt),L.once("close",ht),L.once("finish",xt),L.emit("pipe",X),rt.flowing||(u("pipe resume"),X.resume()),L},$.prototype.unpipe=function(L){var N=this._readableState,X={hasUnpiped:!1};if(N.pipesCount===0)return this;if(N.pipesCount===1)return L&&L!==N.pipes||(L||(L=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,L&&L.emit("unpipe",this,X)),this;if(!L){var rt=N.pipes,ut=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var it=0;it<ut;it++)rt[it].emit("unpipe",this,{hasUnpiped:!1});return this}var lt=J(N.pipes,L);return lt===-1||(N.pipes.splice(lt,1),N.pipesCount-=1,N.pipesCount===1&&(N.pipes=N.pipes[0]),L.emit("unpipe",this,X)),this},$.prototype.on=function(L,N){var X=e.prototype.on.call(this,L,N),rt=this._readableState;return L==="data"?(rt.readableListening=this.listenerCount("readable")>0,rt.flowing!==!1&&this.resume()):L==="readable"&&(rt.endEmitted||rt.readableListening||(rt.readableListening=rt.needReadable=!0,rt.flowing=!1,rt.emittedReadable=!1,u("on readable",rt.length,rt.reading),rt.length?g(this):rt.reading||d.nextTick(j,this))),X},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(L,N){var X=e.prototype.removeListener.call(this,L,N);return L==="readable"&&d.nextTick(O,this),X},$.prototype.removeAllListeners=function(L){var N=e.prototype.removeAllListeners.apply(this,arguments);return L!=="readable"&&L!==void 0||d.nextTick(O,this),N},$.prototype.resume=function(){var L=this._readableState;return L.flowing||(u("resume"),L.flowing=!L.readableListening,(function(N,X){X.resumeScheduled||(X.resumeScheduled=!0,d.nextTick(B,N,X))})(this,L)),L.paused=!1,this},$.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},$.prototype.wrap=function(L){var N=this,X=this._readableState,rt=!1;for(var ut in L.on("end",(function(){if(u("wrapped end"),X.decoder&&!X.ended){var lt=X.decoder.end();lt&<.length&&N.push(lt)}N.push(null)})),L.on("data",(function(lt){u("wrapped data"),X.decoder&&(lt=X.decoder.write(lt)),X.objectMode&<==null||(X.objectMode||lt&<.length)&&(N.push(lt)||(rt=!0,L.pause()))})),L)this[ut]===void 0&&typeof L[ut]=="function"&&(this[ut]=(function(lt){return function(){return L[lt].apply(L,arguments)}})(ut));for(var it=0;it<V.length;it++)L.on(V[it],this.emit.bind(this,V[it]));return this._read=function(lt){u("wrapped _read",lt),rt&&(rt=!1,L.resume())},this},typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=r("./internal/streams/async_iterator")),m(this)}),Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),$._fromList=K,Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&($.from=function(L,N){return f===void 0&&(f=r("./internal/streams/from")),f($,L,N)})}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(r,y,_){y.exports=u;var d=r("../errors").codes,a=d.ERR_METHOD_NOT_IMPLEMENTED,l=d.ERR_MULTIPLE_CALLBACK,i=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,e=d.ERR_TRANSFORM_WITH_LENGTH_0,s=r("./_stream_duplex");function c(m,f){var v=this._transformState;v.transforming=!1;var b=v.writecb;if(b===null)return this.emit("error",new l);v.writechunk=null,v.writecb=null,f!=null&&this.push(f),b(m);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}function u(m){if(!(this instanceof u))return new u(m);s.call(this,m),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.on("prefinish",o)}function o(){var m=this;typeof this._flush!="function"||this._readableState.destroyed?p(this,null,null):this._flush((function(f,v){p(m,f,v)}))}function p(m,f,v){if(f)return m.emit("error",f);if(v!=null&&m.push(v),m._writableState.length)throw new e;if(m._transformState.transforming)throw new i;return m.push(null)}r("inherits")(u,s),u.prototype.push=function(m,f){return this._transformState.needTransform=!1,s.prototype.push.call(this,m,f)},u.prototype._transform=function(m,f,v){v(new a("_transform()"))},u.prototype._write=function(m,f,v){var b=this._transformState;if(b.writecb=v,b.writechunk=m,b.writeencoding=f,!b.transforming){var T=this._readableState;(b.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},u.prototype._read=function(m){var f=this._transformState;f.writechunk===null||f.transforming?f.needTransform=!0:(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform))},u.prototype._destroy=function(m,f){s.prototype._destroy.call(this,m,(function(v){f(v)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(r,y,_){(function(d,a){(function(){function l(E){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(j,B,Y){var K=j.entry;for(j.entry=null;K;){var nt=K.callback;B.pendingcb--,nt(Y),K=K.next}B.corkedRequestsFree.next=j})(O,E)}}var i;y.exports=$,$.WritableState=W;var e={deprecate:r("util-deprecate")},s=r("./internal/streams/stream"),c=r("buffer").Buffer,u=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},o,p=r("./internal/streams/destroy"),m=r("./internal/streams/state").getHighWaterMark,f=r("../errors").codes,v=f.ERR_INVALID_ARG_TYPE,b=f.ERR_METHOD_NOT_IMPLEMENTED,T=f.ERR_MULTIPLE_CALLBACK,C=f.ERR_STREAM_CANNOT_PIPE,I=f.ERR_STREAM_DESTROYED,H=f.ERR_STREAM_NULL_VALUES,Z=f.ERR_STREAM_WRITE_AFTER_END,P=f.ERR_UNKNOWN_ENCODING,q=p.errorOrDestroy;function V(){}function W(E,O,j){i=i||r("./_stream_duplex"),E=E||{},typeof j!="boolean"&&(j=O instanceof i),this.objectMode=!!E.objectMode,j&&(this.objectMode=this.objectMode||!!E.writableObjectMode),this.highWaterMark=m(this,E,"writableHighWaterMark",j),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var B=E.decodeStrings===!1;this.decodeStrings=!B,this.defaultEncoding=E.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y){(function(K,nt){var U=K._writableState,J=U.sync,L=U.writecb;if(typeof L!="function")throw new T;if((function(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0})(U),nt)(function(X,rt,ut,it,lt){--rt.pendingcb,ut?(d.nextTick(lt,it),d.nextTick(S,X,rt),X._writableState.errorEmitted=!0,q(X,it)):(lt(it),X._writableState.errorEmitted=!0,q(X,it),S(X,rt))})(K,U,J,nt,L);else{var N=g(U)||K.destroyed;N||U.corked||U.bufferProcessing||!U.bufferedRequest||A(K,U),J?d.nextTick(z,K,U,N,L):z(K,U,N,L)}})(O,Y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function $(E){var O=this instanceof(i=i||r("./_stream_duplex"));if(!O&&!o.call($,this))return new $(E);this._writableState=new W(E,this,O),this.writable=!0,E&&(typeof E.write=="function"&&(this._write=E.write),typeof E.writev=="function"&&(this._writev=E.writev),typeof E.destroy=="function"&&(this._destroy=E.destroy),typeof E.final=="function"&&(this._final=E.final)),s.call(this)}function R(E,O,j,B,Y,K,nt){O.writelen=B,O.writecb=nt,O.writing=!0,O.sync=!0,O.destroyed?O.onwrite(new I("write")):j?E._writev(Y,O.onwrite):E._write(Y,K,O.onwrite),O.sync=!1}function z(E,O,j,B){j||(function(Y,K){K.length===0&&K.needDrain&&(K.needDrain=!1,Y.emit("drain"))})(E,O),O.pendingcb--,B(),S(E,O)}function A(E,O){O.bufferProcessing=!0;var j=O.bufferedRequest;if(E._writev&&j&&j.next){var B=O.bufferedRequestCount,Y=new Array(B),K=O.corkedRequestsFree;K.entry=j;for(var nt=0,U=!0;j;)Y[nt]=j,j.isBuf||(U=!1),j=j.next,nt+=1;Y.allBuffers=U,R(E,O,!0,O.length,Y,"",K.finish),O.pendingcb++,O.lastBufferedRequest=null,K.next?(O.corkedRequestsFree=K.next,K.next=null):O.corkedRequestsFree=new l(O),O.bufferedRequestCount=0}else{for(;j;){var J=j.chunk,L=j.encoding,N=j.callback;if(R(E,O,!1,O.objectMode?1:J.length,J,L,N),j=j.next,O.bufferedRequestCount--,O.writing)break}j===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=j,O.bufferProcessing=!1}function g(E){return E.ending&&E.length===0&&E.bufferedRequest===null&&!E.finished&&!E.writing}function x(E,O){E._final((function(j){O.pendingcb--,j&&q(E,j),O.prefinished=!0,E.emit("prefinish"),S(E,O)}))}function S(E,O){var j=g(O);if(j&&((function(Y,K){K.prefinished||K.finalCalled||(typeof Y._final!="function"||K.destroyed?(K.prefinished=!0,Y.emit("prefinish")):(K.pendingcb++,K.finalCalled=!0,d.nextTick(x,Y,K)))})(E,O),O.pendingcb===0&&(O.finished=!0,E.emit("finish"),O.autoDestroy))){var B=E._readableState;(!B||B.autoDestroy&&B.endEmitted)&&E.destroy()}return j}r("inherits")($,s),W.prototype.getBuffer=function(){for(var E=this.bufferedRequest,O=[];E;)O.push(E),E=E.next;return O},(function(){try{Object.defineProperty(W.prototype,"buffer",{get:e.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(E){return!!o.call(this,E)||this===$&&E&&E._writableState instanceof W}})):o=function(E){return E instanceof this},$.prototype.pipe=function(){q(this,new C)},$.prototype.write=function(E,O,j){var B,Y=this._writableState,K=!1,nt=!Y.objectMode&&(B=E,c.isBuffer(B)||B instanceof u);return nt&&!c.isBuffer(E)&&(E=(function(U){return c.from(U)})(E)),typeof O=="function"&&(j=O,O=null),nt?O="buffer":O||(O=Y.defaultEncoding),typeof j!="function"&&(j=V),Y.ending?(function(U,J){var L=new Z;q(U,L),d.nextTick(J,L)})(this,j):(nt||(function(U,J,L,N){var X;return L===null?X=new H:typeof L=="string"||J.objectMode||(X=new v("chunk",["string","Buffer"],L)),!X||(q(U,X),d.nextTick(N,X),!1)})(this,Y,E,j))&&(Y.pendingcb++,K=(function(U,J,L,N,X,rt){if(!L){var ut=(function(bt,st,dt){return bt.objectMode||bt.decodeStrings===!1||typeof st!="string"||(st=c.from(st,dt)),st})(J,N,X);N!==ut&&(L=!0,X="buffer",N=ut)}var it=J.objectMode?1:N.length;J.length+=it;var lt=J.length<J.highWaterMark;if(lt||(J.needDrain=!0),J.writing||J.corked){var gt=J.lastBufferedRequest;J.lastBufferedRequest={chunk:N,encoding:X,isBuf:L,callback:rt,next:null},gt?gt.next=J.lastBufferedRequest:J.bufferedRequest=J.lastBufferedRequest,J.bufferedRequestCount+=1}else R(U,J,!1,it,N,X,rt);return lt})(this,Y,nt,E,O,j)),K},$.prototype.cork=function(){this._writableState.corked++},$.prototype.uncork=function(){var E=this._writableState;E.corked&&(E.corked--,E.writing||E.corked||E.bufferProcessing||!E.bufferedRequest||A(this,E))},$.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new P(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty($.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),$.prototype._write=function(E,O,j){j(new b("_write()"))},$.prototype._writev=null,$.prototype.end=function(E,O,j){var B=this._writableState;return typeof E=="function"?(j=E,E=null,O=null):typeof O=="function"&&(j=O,O=null),E!=null&&this.write(E,O),B.corked&&(B.corked=1,this.uncork()),B.ending||(function(Y,K,nt){K.ending=!0,S(Y,K),nt&&(K.finished?d.nextTick(nt):Y.once("finish",nt)),K.ended=!0,Y.writable=!1})(this,B,j),this},Object.defineProperty($.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),$.prototype.destroy=p.destroy,$.prototype._undestroy=p.undestroy,$.prototype._destroy=function(E,O){O(E)}}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(r,y,_){(function(d){(function(){var a;function l(I,H,Z){return(H=(function(P){var q=(function(V,W){if(typeof V!="object"||V===null)return V;var $=V[Symbol.toPrimitive];if($!==void 0){var R=$.call(V,W);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(V)})(P,"string");return typeof q=="symbol"?q:String(q)})(H))in I?Object.defineProperty(I,H,{value:Z,enumerable:!0,configurable:!0,writable:!0}):I[H]=Z,I}var i=r("./end-of-stream"),e=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),o=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function f(I,H){return{value:I,done:H}}function v(I){var H=I[e];if(H!==null){var Z=I[m].read();Z!==null&&(I[o]=null,I[e]=null,I[s]=null,H(f(Z,!1)))}}function b(I){d.nextTick(v,I)}var T=Object.getPrototypeOf((function(){})),C=Object.setPrototypeOf((l(a={get stream(){return this[m]},next:function(){var I=this,H=this[c];if(H!==null)return Promise.reject(H);if(this[u])return Promise.resolve(f(void 0,!0));if(this[m].destroyed)return new Promise((function(V,W){d.nextTick((function(){I[c]?W(I[c]):V(f(void 0,!0))}))}));var Z,P=this[o];if(P)Z=new Promise((function(V,W){return function($,R){V.then((function(){W[u]?$(f(void 0,!0)):W[p]($,R)}),R)}})(P,this));else{var q=this[m].read();if(q!==null)return Promise.resolve(f(q,!1));Z=new Promise(this[p])}return this[o]=Z,Z}},Symbol.asyncIterator,(function(){return this})),l(a,"return",(function(){var I=this;return new Promise((function(H,Z){I[m].destroy(null,(function(P){P?Z(P):H(f(void 0,!0))}))}))})),a),T);y.exports=function(I){var H,Z=Object.create(C,(l(H={},m,{value:I,writable:!0}),l(H,e,{value:null,writable:!0}),l(H,s,{value:null,writable:!0}),l(H,c,{value:null,writable:!0}),l(H,u,{value:I._readableState.endEmitted,writable:!0}),l(H,p,{value:function(P,q){var V=Z[m].read();V?(Z[o]=null,Z[e]=null,Z[s]=null,P(f(V,!1))):(Z[e]=P,Z[s]=q)},writable:!0}),H));return Z[o]=null,i(I,(function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var q=Z[s];return q!==null&&(Z[o]=null,Z[e]=null,Z[s]=null,q(P)),void(Z[c]=P)}var V=Z[e];V!==null&&(Z[o]=null,Z[e]=null,Z[s]=null,V(f(void 0,!0))),Z[u]=!0})),I.on("readable",b.bind(null,Z)),Z}}).call(this)}).call(this,r("_process"))},{"./end-of-stream":486,_process:467}],484:[function(r,y,_){function d(o,p){var m=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);p&&(f=f.filter((function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable}))),m.push.apply(m,f)}return m}function a(o){for(var p=1;p<arguments.length;p++){var m=arguments[p]!=null?arguments[p]:{};p%2?d(Object(m),!0).forEach((function(f){l(o,f,m[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(m)):d(Object(m)).forEach((function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(m,f))}))}return o}function l(o,p,m){return(p=e(p))in o?Object.defineProperty(o,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):o[p]=m,o}function i(o,p){for(var m=0;m<p.length;m++){var f=p[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,e(f.key),f)}}function e(o){var p=(function(m,f){if(typeof m!="object"||m===null)return m;var v=m[Symbol.toPrimitive];if(v!==void 0){var b=v.call(m,f);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(m)})(o,"string");return typeof p=="symbol"?p:String(p)}var s=r("buffer").Buffer,c=r("util").inspect,u=c&&c.custom||"inspect";y.exports=(function(){function o(){(function(f,v){if(!(f instanceof v))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}var p,m;return p=o,(m=[{key:"push",value:function(f){var v={data:f,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(f){var v={data:f,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(this.length===0)return"";for(var v=this.head,b=""+v.data;v=v.next;)b+=f+v.data;return b}},{key:"concat",value:function(f){if(this.length===0)return s.alloc(0);for(var v,b,T,C=s.allocUnsafe(f>>>0),I=this.head,H=0;I;)v=I.data,b=C,T=H,s.prototype.copy.call(v,b,T),H+=I.data.length,I=I.next;return C}},{key:"consume",value:function(f,v){var b;return f<this.head.data.length?(b=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):b=f===this.head.data.length?this.shift():v?this._getString(f):this._getBuffer(f),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var v=this.head,b=1,T=v.data;for(f-=T.length;v=v.next;){var C=v.data,I=f>C.length?C.length:f;if(I===C.length?T+=C:T+=C.slice(0,f),(f-=I)==0){I===C.length?(++b,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=C.slice(I));break}++b}return this.length-=b,T}},{key:"_getBuffer",value:function(f){var v=s.allocUnsafe(f),b=this.head,T=1;for(b.data.copy(v),f-=b.data.length;b=b.next;){var C=b.data,I=f>C.length?C.length:f;if(C.copy(v,v.length-f,0,I),(f-=I)==0){I===C.length?(++T,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=C.slice(I));break}++T}return this.length-=T,v}},{key:u,value:function(f,v){return c(this,a(a({},v),{},{depth:0,customInspect:!1}))}}])&&i(p.prototype,m),Object.defineProperty(p,"prototype",{writable:!1}),o})()},{buffer:220,util:188}],485:[function(r,y,_){(function(d){(function(){function a(e,s){i(e,s),l(e)}function l(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,s){e.emit("error",s)}y.exports={destroy:function(e,s){var c=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return u||o?(s?s(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(i,this,e)):d.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(p){!s&&p?c._writableState?c._writableState.errorEmitted?d.nextTick(l,c):(c._writableState.errorEmitted=!0,d.nextTick(a,c,p)):d.nextTick(a,c,p):s?(d.nextTick(l,c),s(p)):d.nextTick(l,c)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,s){var c=e._readableState,u=e._writableState;c&&c.autoDestroy||u&&u.autoDestroy?e.destroy(s):e.emit("error",s)}}}).call(this)}).call(this,r("_process"))},{_process:467}],486:[function(r,y,_){var d=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}y.exports=function l(i,e,s){if(typeof e=="function")return l(i,null,e);e||(e={}),s=(function(I){var H=!1;return function(){if(!H){H=!0;for(var Z=arguments.length,P=new Array(Z),q=0;q<Z;q++)P[q]=arguments[q];I.apply(this,P)}}})(s||a);var c=e.readable||e.readable!==!1&&i.readable,u=e.writable||e.writable!==!1&&i.writable,o=function(){i.writable||m()},p=i._writableState&&i._writableState.finished,m=function(){u=!1,p=!0,c||s.call(i)},f=i._readableState&&i._readableState.endEmitted,v=function(){c=!1,f=!0,u||s.call(i)},b=function(I){s.call(i,I)},T=function(){var I;return c&&!f?(i._readableState&&i._readableState.ended||(I=new d),s.call(i,I)):u&&!p?(i._writableState&&i._writableState.ended||(I=new d),s.call(i,I)):void 0},C=function(){i.req.on("finish",m)};return(function(I){return I.setHeader&&typeof I.abort=="function"})(i)?(i.on("complete",m),i.on("abort",T),i.req?C():i.on("request",C)):u&&!i._writableState&&(i.on("end",o),i.on("close",o)),i.on("end",v),i.on("finish",m),e.error!==!1&&i.on("error",b),i.on("close",T),function(){i.removeListener("complete",m),i.removeListener("abort",T),i.removeListener("request",C),i.req&&i.req.removeListener("finish",m),i.removeListener("end",o),i.removeListener("close",o),i.removeListener("finish",m),i.removeListener("end",v),i.removeListener("error",b),i.removeListener("close",T)}}},{"../../../errors":477}],487:[function(r,y,_){y.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(r,y,_){var d,a=r("../../../errors").codes,l=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function e(p){if(p)throw p}function s(p,m,f,v){v=(function(C){var I=!1;return function(){I||(I=!0,C.apply(void 0,arguments))}})(v);var b=!1;p.on("close",(function(){b=!0})),d===void 0&&(d=r("./end-of-stream")),d(p,{readable:m,writable:f},(function(C){if(C)return v(C);b=!0,v()}));var T=!1;return function(C){if(!b&&!T)return T=!0,(function(I){return I.setHeader&&typeof I.abort=="function"})(p)?p.abort():typeof p.destroy=="function"?p.destroy():void v(C||new i("pipe"))}}function c(p){p()}function u(p,m){return p.pipe(m)}function o(p){return p.length?typeof p[p.length-1]!="function"?e:p.pop():e}y.exports=function(){for(var p=arguments.length,m=new Array(p),f=0;f<p;f++)m[f]=arguments[f];var v,b=o(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new l("streams");var T=m.map((function(C,I){var H=I<m.length-1;return s(C,H,I>0,(function(Z){v||(v=Z),Z&&T.forEach(c),H||(T.forEach(c),b(v))}))}));return m.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(r,y,_){var d=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;y.exports={getHighWaterMark:function(a,l,i,e){var s=(function(c,u,o){return c.highWaterMark!=null?c.highWaterMark:u?c[o]:null})(l,e,i);if(s!=null){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new d(e?i:"highWaterMark",s);return Math.floor(s)}return a.objectMode?16:16384}}},{"../../../errors":477}],490:[function(r,y,_){y.exports=r("events").EventEmitter},{events:422}],491:[function(r,y,_){(_=y.exports=r("./lib/_stream_readable.js")).Stream=_,_.Readable=_,_.Writable=r("./lib/_stream_writable.js"),_.Duplex=r("./lib/_stream_duplex.js"),_.Transform=r("./lib/_stream_transform.js"),_.PassThrough=r("./lib/_stream_passthrough.js"),_.finished=r("./lib/internal/streams/end-of-stream.js"),_.pipeline=r("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(r,y,_){var d=(function(a){var l=Object.prototype,i=l.hasOwnProperty,e=Object.defineProperty||function(S,E,O){S[E]=O.value},s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function p(S,E,O){return Object.defineProperty(S,E,{value:O,enumerable:!0,configurable:!0,writable:!0}),S[E]}try{p({},"")}catch{p=function(E,O,j){return E[O]=j}}function m(S,E,O,j){var B=E&&E.prototype instanceof b?E:b,Y=Object.create(B.prototype),K=new A(j||[]);return e(Y,"_invoke",{value:W(S,O,K)}),Y}function f(S,E,O){try{return{type:"normal",arg:S.call(E,O)}}catch(j){return{type:"throw",arg:j}}}a.wrap=m;var v={};function b(){}function T(){}function C(){}var I={};p(I,c,(function(){return this}));var H=Object.getPrototypeOf,Z=H&&H(H(g([])));Z&&Z!==l&&i.call(Z,c)&&(I=Z);var P=C.prototype=b.prototype=Object.create(I);function q(S){["next","throw","return"].forEach((function(E){p(S,E,(function(O){return this._invoke(E,O)}))}))}function V(S,E){var O;e(this,"_invoke",{value:function(j,B){function Y(){return new E((function(K,nt){(function U(J,L,N,X){var rt=f(S[J],S,L);if(rt.type!=="throw"){var ut=rt.arg,it=ut.value;return it&&typeof it=="object"&&i.call(it,"__await")?E.resolve(it.__await).then((function(lt){U("next",lt,N,X)}),(function(lt){U("throw",lt,N,X)})):E.resolve(it).then((function(lt){ut.value=lt,N(ut)}),(function(lt){return U("throw",lt,N,X)}))}X(rt.arg)})(j,B,K,nt)}))}return O=O?O.then(Y,Y):Y()}})}function W(S,E,O){var j="suspendedStart";return function(B,Y){if(j==="executing")throw new Error("Generator is already running");if(j==="completed"){if(B==="throw")throw Y;return x()}for(O.method=B,O.arg=Y;;){var K=O.delegate;if(K){var nt=$(K,O);if(nt){if(nt===v)continue;return nt}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(j==="suspendedStart")throw j="completed",O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);j="executing";var U=f(S,E,O);if(U.type==="normal"){if(j=O.done?"completed":"suspendedYield",U.arg===v)continue;return{value:U.arg,done:O.done}}U.type==="throw"&&(j="completed",O.method="throw",O.arg=U.arg)}}}function $(S,E){var O=E.method,j=S.iterator[O];if(j===void 0)return E.delegate=null,O==="throw"&&S.iterator.return&&(E.method="return",E.arg=void 0,$(S,E),E.method==="throw")||O!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+O+"' method")),v;var B=f(j,S.iterator,E.arg);if(B.type==="throw")return E.method="throw",E.arg=B.arg,E.delegate=null,v;var Y=B.arg;return Y?Y.done?(E[S.resultName]=Y.value,E.next=S.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,v):Y:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,v)}function R(S){var E={tryLoc:S[0]};1 in S&&(E.catchLoc=S[1]),2 in S&&(E.finallyLoc=S[2],E.afterLoc=S[3]),this.tryEntries.push(E)}function z(S){var E=S.completion||{};E.type="normal",delete E.arg,S.completion=E}function A(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(R,this),this.reset(!0)}function g(S){if(S){var E=S[c];if(E)return E.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var O=-1,j=function B(){for(;++O<S.length;)if(i.call(S,O))return B.value=S[O],B.done=!1,B;return B.value=void 0,B.done=!0,B};return j.next=j}}return{next:x}}function x(){return{value:void 0,done:!0}}return T.prototype=C,e(P,"constructor",{value:C,configurable:!0}),e(C,"constructor",{value:T,configurable:!0}),T.displayName=p(C,o,"GeneratorFunction"),a.isGeneratorFunction=function(S){var E=typeof S=="function"&&S.constructor;return!!E&&(E===T||(E.displayName||E.name)==="GeneratorFunction")},a.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,C):(S.__proto__=C,p(S,o,"GeneratorFunction")),S.prototype=Object.create(P),S},a.awrap=function(S){return{__await:S}},q(V.prototype),p(V.prototype,u,(function(){return this})),a.AsyncIterator=V,a.async=function(S,E,O,j,B){B===void 0&&(B=Promise);var Y=new V(m(S,E,O,j),B);return a.isGeneratorFunction(E)?Y:Y.next().then((function(K){return K.done?K.value:Y.next()}))},q(P),p(P,o,"Generator"),p(P,c,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),a.keys=function(S){var E=Object(S),O=[];for(var j in E)O.push(j);return O.reverse(),function B(){for(;O.length;){var Y=O.pop();if(Y in E)return B.value=Y,B.done=!1,B}return B.done=!0,B}},a.values=g,A.prototype={constructor:A,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!S)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=void 0)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var E=this;function O(U,J){return Y.type="throw",Y.arg=S,E.next=U,J&&(E.method="next",E.arg=void 0),!!J}for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j],Y=B.completion;if(B.tryLoc==="root")return O("end");if(B.tryLoc<=this.prev){var K=i.call(B,"catchLoc"),nt=i.call(B,"finallyLoc");if(K&&nt){if(this.prev<B.catchLoc)return O(B.catchLoc,!0);if(this.prev<B.finallyLoc)return O(B.finallyLoc)}else if(K){if(this.prev<B.catchLoc)return O(B.catchLoc,!0)}else{if(!nt)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return O(B.finallyLoc)}}}},abrupt:function(S,E){for(var O=this.tryEntries.length-1;O>=0;--O){var j=this.tryEntries[O];if(j.tryLoc<=this.prev&&i.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var B=j;break}}B&&(S==="break"||S==="continue")&&B.tryLoc<=E&&E<=B.finallyLoc&&(B=null);var Y=B?B.completion:{};return Y.type=S,Y.arg=E,B?(this.method="next",this.next=B.finallyLoc,v):this.complete(Y)},complete:function(S,E){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&E&&(this.next=E),v},finish:function(S){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===S)return this.complete(O.completion,O.afterLoc),z(O),v}},catch:function(S){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===S){var j=O.completion;if(j.type==="throw"){var B=j.arg;z(O)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(S,E,O){return this.delegate={iterator:g(S),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=void 0),v}},a})(typeof y=="object"?y.exports:{});try{regeneratorRuntime=d}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}},{}],493:[function(r,y,_){var d=r("buffer").Buffer,a=r("inherits"),l=r("hash-base"),i=new Array(16),e=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],o=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function m(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(H,Z){return H<<Z|H>>>32-Z}function v(H,Z,P,q,V,W,$,R){return f(H+(Z^P^q)+W+$|0,R)+V|0}function b(H,Z,P,q,V,W,$,R){return f(H+(Z&P|~Z&q)+W+$|0,R)+V|0}function T(H,Z,P,q,V,W,$,R){return f(H+((Z|~P)^q)+W+$|0,R)+V|0}function C(H,Z,P,q,V,W,$,R){return f(H+(Z&q|P&~q)+W+$|0,R)+V|0}function I(H,Z,P,q,V,W,$,R){return f(H+(Z^(P|~q))+W+$|0,R)+V|0}a(m,l),m.prototype._update=function(){for(var H=i,Z=0;Z<16;++Z)H[Z]=this._block.readInt32LE(4*Z);for(var P=0|this._a,q=0|this._b,V=0|this._c,W=0|this._d,$=0|this._e,R=0|this._a,z=0|this._b,A=0|this._c,g=0|this._d,x=0|this._e,S=0;S<80;S+=1){var E,O;S<16?(E=v(P,q,V,W,$,H[e[S]],o[0],c[S]),O=I(R,z,A,g,x,H[s[S]],p[0],u[S])):S<32?(E=b(P,q,V,W,$,H[e[S]],o[1],c[S]),O=C(R,z,A,g,x,H[s[S]],p[1],u[S])):S<48?(E=T(P,q,V,W,$,H[e[S]],o[2],c[S]),O=T(R,z,A,g,x,H[s[S]],p[2],u[S])):S<64?(E=C(P,q,V,W,$,H[e[S]],o[3],c[S]),O=b(R,z,A,g,x,H[s[S]],p[3],u[S])):(E=I(P,q,V,W,$,H[e[S]],o[4],c[S]),O=v(R,z,A,g,x,H[s[S]],p[4],u[S])),P=$,$=W,W=f(V,10),V=q,q=E,R=x,x=g,g=f(A,10),A=z,z=O}var j=this._b+V+g|0;this._b=this._c+W+x|0,this._c=this._d+$+R|0,this._d=this._e+P+z|0,this._e=this._a+q+A|0,this._a=j},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var H=d.alloc?d.alloc(20):new d(20);return H.writeInt32LE(this._a,0),H.writeInt32LE(this._b,4),H.writeInt32LE(this._c,8),H.writeInt32LE(this._d,12),H.writeInt32LE(this._e,16),H},y.exports=m},{buffer:220,"hash-base":425,inherits:440}],494:[function(r,y,_){var d=r("buffer"),a=d.Buffer;function l(e,s){for(var c in e)s[c]=e[c]}function i(e,s,c){return a(e,s,c)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?y.exports=d:(l(d,_),_.Buffer=i),i.prototype=Object.create(a.prototype),l(a,i),i.from=function(e,s,c){if(typeof e=="number")throw new TypeError("Argument must not be a number");return a(e,s,c)},i.alloc=function(e,s,c){if(typeof e!="number")throw new TypeError("Argument must be a number");var u=a(e);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},i.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(e)}},{buffer:220}],495:[function(r,y,_){(function(d){(function(){var a,l=r("buffer"),i=l.Buffer,e={};for(a in l)l.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(e[a]=l[a]);var s=e.Buffer={};for(a in i)i.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(s[a]=i[a]);if(e.Buffer.prototype=i.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(c,u,o){if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof c);if(c&&c.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);return i(c,u,o)}),s.alloc||(s.alloc=function(c,u,o){if(typeof c!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof c);if(c<0||c>=2*(1<<30))throw new RangeError('The value "'+c+'" is invalid for option "size"');var p=i(c);return u&&u.length!==0?typeof o=="string"?p.fill(u,o):p.fill(u):p.fill(0),p}),!e.kStringMaxLength)try{e.kStringMaxLength=d.binding("buffer").kStringMaxLength}catch{}e.constants||(e.constants={MAX_LENGTH:e.kMaxLength},e.kStringMaxLength&&(e.constants.MAX_STRING_LENGTH=e.kStringMaxLength)),y.exports=e}).call(this)}).call(this,r("_process"))},{_process:467,buffer:220}],496:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0});const d=r("xmlchars/xml/1.0/ed5"),a=r("xmlchars/xml/1.1/ed2"),l=r("xmlchars/xmlns/1.0/ed3");var i=d.isS,e=d.isChar,s=d.isNameStartChar,c=d.isNameChar,u=d.S_LIST,o=d.NAME_RE,p=a.isChar,m=l.isNCNameStartChar,f=l.isNCNameChar,v=l.NC_NAME_RE;const b="http://www.w3.org/XML/1998/namespace",T="http://www.w3.org/2000/xmlns/",C={__proto__:null,xml:b,xmlns:T},I={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},H=g=>g===34||g===39,Z=[34,39],P=[...Z,91,62],q=[...Z,60,93],V=[61,63,...u],W=[...u,62,38,60];function $(g,x,S){switch(x){case"xml":S!==b&&g.fail(`xml prefix must be bound to ${b}.`);break;case"xmlns":S!==T&&g.fail(`xmlns prefix must be bound to ${T}.`)}switch(S){case T:g.fail(x===""?`the default namespace may not be set to ${S}.`:`may not assign a prefix (even "xmlns") to the URI ${T}.`);break;case b:switch(x){case"xml":break;case"":g.fail(`the default namespace may not be set to ${S}.`);break;default:g.fail("may not assign the xml namespace to another prefix.")}}}const R=g=>v.test(g),z=g=>o.test(g);_.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const A={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};_.SaxesParser=class{constructor(g){this.opt=g??{},this.fragmentOpt=!!this.opt.fragment;const x=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,x){this.nameStartCheck=m,this.nameCheck=f,this.isName=R,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},C);const S=this.opt.additionalNamespaces;S!=null&&((function(E,O){for(const j of Object.keys(O))$(E,j,O[j])})(this,S),Object.assign(this.ns,S))}else this.nameStartCheck=s,this.nameCheck=c,this.isName=z,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var g;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:x}=this;this.state=x?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=x,this.xmlDeclPossible=!x,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:S}=this.opt;if(S===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");S="1.0"}this.setXMLVersion(S),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(I),(g=this.readyHandler)===null||g===void 0||g.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(g,x){this[A[g]]=x}off(g){this[A[g]]=void 0}makeError(g){var x;let S=(x=this.fileName)!==null&&x!==void 0?x:"";return this.trackPosition&&(S.length>0&&(S+=":"),S+=`${this.line}:${this.column}`),S.length>0&&(S+=": "),new Error(S+g)}fail(g){const x=this.makeError(g),S=this.errorHandler;if(S===void 0)throw x;return S(x),this}write(g){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let x=!1;g===null?(x=!0,g=""):typeof g=="object"&&(g=g.toString()),this.carriedFromPrevious!==void 0&&(g=`${this.carriedFromPrevious}${g}`,this.carriedFromPrevious=void 0);let S=g.length;const E=g.charCodeAt(S-1);!x&&(E===13||E>=55296&&E<=56319)&&(this.carriedFromPrevious=g[S-1],S--,g=g.slice(0,S));const{stateTable:O}=this;for(this.chunk=g,this.i=0;this.i<S;)O[this.state].call(this);return this.chunkPosition+=S,x?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:g,i:x}=this;if(this.prevI=x,this.i=x+1,x>=g.length)return-1;const S=g.charCodeAt(x);if(this.column++,S<55296){if(S>=32||S===9)return S;switch(S){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return g.charCodeAt(x+1)===10&&(this.i=x+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),S}}if(S>56319)return S>=57344&&S<=65533||this.fail("disallowed character."),S;const E=65536+1024*(S-55296)+(g.charCodeAt(x+1)-56320);return this.i=x+2,E>1114111&&this.fail("disallowed character."),E}getCode11(){const{chunk:g,i:x}=this;if(this.prevI=x,this.i=x+1,x>=g.length)return-1;const S=g.charCodeAt(x);if(this.column++,S<55296){if(S>31&&S<127||S>159&&S!==8232||S===9)return S;switch(S){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const O=g.charCodeAt(x+1);O!==10&&O!==133||(this.i=x+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),S}}if(S>56319)return S>=57344&&S<=65533||this.fail("disallowed character."),S;const E=65536+1024*(S-55296)+(g.charCodeAt(x+1)-56320);return this.i=x+2,E>1114111&&this.fail("disallowed character."),E}getCodeNorm(){const g=this.getCode();return g===-2?10:g}unget(){this.i=this.prevI,this.column--}captureTo(g){let{i:x}=this;const{chunk:S}=this;for(;;){const E=this.getCode(),O=E===-2,j=O?10:E;if(j===-1||g.includes(j))return this.text+=S.slice(x,this.prevI),j;O&&(this.text+=S.slice(x,this.prevI)+`
|
|
21
|
+
`,x=this.i)}}captureToChar(g){let{i:x}=this;const{chunk:S}=this;for(;;){let E=this.getCode();switch(E){case-2:this.text+=S.slice(x,this.prevI)+`
|
|
22
|
+
`,x=this.i,E=10;break;case-1:return this.text+=S.slice(x),!1}if(E===g)return this.text+=S.slice(x,this.prevI),!0}}captureNameChars(){const{chunk:g,i:x}=this;for(;;){const S=this.getCode();if(S===-1)return this.name+=g.slice(x),-1;if(!c(S))return this.name+=g.slice(x,this.prevI),S===-2?10:S}}skipSpaces(){for(;;){const g=this.getCodeNorm();if(g===-1||!i(g))return g}}setXMLVersion(g){this.currentXMLVersion=g,g==="1.0"?(this.isChar=e,this.getCode=this.getCode10):(this.isChar=p,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const g=this.i,x=this.skipSpaces();switch(this.prevI!==g&&(this.xmlDeclPossible=!1),x){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var g;const x=this.captureTo(P);switch(x){case 62:(g=this.doctypeHandler)===null||g===void 0||g.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(x),x===91?this.state=4:H(x)&&(this.state=3,this.q=x)}}sDoctypeQuote(){const g=this.q;this.captureToChar(g)&&(this.text+=String.fromCodePoint(g),this.q=null,this.state=2)}sDTD(){const g=this.captureTo(q);g!==-1&&(this.text+=String.fromCodePoint(g),g===93?this.state=2:g===60?this.state=6:H(g)&&(this.state=5,this.q=g))}sDTDQuoted(){const g=this.q;this.captureToChar(g)&&(this.text+=String.fromCodePoint(g),this.state=4,this.q=null)}sDTDOpenWaka(){const g=this.getCodeNorm();switch(this.text+=String.fromCodePoint(g),g){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const g=String.fromCodePoint(this.getCodeNorm()),x=this.openWakaBang+=g;this.text+=g,x!=="-"&&(this.state=x==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const g=this.getCodeNorm();this.text+=String.fromCodePoint(g),this.state=g===45?10:8}sDTDCommentEnded(){const g=this.getCodeNorm();this.text+=String.fromCodePoint(g),g===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const g=this.getCodeNorm();this.text+=String.fromCodePoint(g),g===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:g}=this;const{chunk:x}=this;t:for(;;)switch(this.getCode()){case-2:this.entity+=x.slice(g,this.prevI)+`
|
|
23
|
+
`,g=this.i;break;case 59:{const{entityReturnState:S}=this,E=this.entity+x.slice(g,this.prevI);let O;this.state=S,E===""?(this.fail("empty entity name."),O="&;"):(O=this.parseEntity(E),this.entity=""),S===13&&this.textHandler===void 0||(this.text+=O);break t}case-1:this.entity+=x.slice(g);break t}}sOpenWaka(){const g=this.getCode();if(s(g))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(g){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var g;const x=this.getCodeNorm();x===45?(this.state=19,(g=this.commentHandler)===null||g===void 0||g.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(x),this.state=17)}sCommentEnded(){const g=this.getCodeNorm();g!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(g),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const g=this.getCodeNorm();g===93?this.state=22:(this.text+="]"+String.fromCodePoint(g),this.state=20)}sCDataEnding2(){var g;const x=this.getCodeNorm();switch(x){case 62:(g=this.cdataHandler)===null||g===void 0||g.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(x),this.state=20}}sPIFirstChar(){const g=this.getCodeNorm();this.nameStartCheck(g)?(this.piTarget+=String.fromCodePoint(g),this.state=24):g===63||i(g)?(this.fail("processing instruction without a target."),this.state=g===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(g),this.state=24)}sPIRest(){const{chunk:g,i:x}=this;for(;;){const S=this.getCodeNorm();if(S===-1)return void(this.piTarget+=g.slice(x));if(!this.nameCheck(S)){this.piTarget+=g.slice(x,this.prevI);const E=S===63;E||i(S)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=E?33:27):this.state=E?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(S));break}}}sPIBody(){if(this.text.length===0){const g=this.getCodeNorm();g===63?this.state=26:i(g)||(this.text=String.fromCodePoint(g))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var g;const x=this.getCodeNorm();if(x===62){const{piTarget:S}=this;S.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(g=this.piHandler)===null||g===void 0||g.call(this,{target:S,body:this.text}),this.piTarget=this.text="",this.state=13}else x===63?this.text+="?":(this.text+="?"+String.fromCodePoint(x),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const g=this.skipSpaces();g!==63?g!==-1&&(this.state=28,this.name=String.fromCodePoint(g)):this.state=33}sXMLDeclName(){const g=this.captureTo(V);if(g===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(i(g)||g===61){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=g===61?30:29}}sXMLDeclEq(){const g=this.getCodeNorm();if(g===63)return this.state=33,void this.fail("XML declaration is incomplete.");i(g)||(g!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const g=this.getCodeNorm();if(g===63)return this.state=33,void this.fail("XML declaration is incomplete.");i(g)||(H(g)?this.q=g:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const g=this.captureTo([this.q,63]);if(g===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(g===-1)return;const x=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const S=x;this.xmlDecl.version=S,/^1\.[0-9]+$/.test(S)?this.opt.forceXMLVersion||this.setXMLVersion(S):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(x)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=x;break;case"standalone":x!=="yes"&&x!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=x}this.name="",this.state=32}sXMLDeclSeparator(){const g=this.getCodeNorm();g!==63?(i(g)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var g;this.getCodeNorm()===62?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(g=this.xmldeclHandler)===null||g===void 0||g.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var g;const x=this.captureNameChars();if(x===-1)return;const S=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=S.ns=Object.create(null)),(g=this.openTagStartHandler)===null||g===void 0||g.call(this,S),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),x){case 62:this.openTag();break;case 47:this.state=35;break;default:i(x)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const g=this.skipSpaces();g!==-1&&(s(g)?(this.unget(),this.state=37):g===62?this.openTag():g===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const g=this.captureNameChars();g===61?this.state=39:i(g)?this.state=38:g===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):g!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const g=this.skipSpaces();switch(g){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",g===62?this.openTag():s(g)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const g=this.getCodeNorm();H(g)?(this.q=g,this.state=40):i(g)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:g,chunk:x}=this;let{i:S}=this;for(;;)switch(this.getCode()){case g:return this.pushAttrib(this.name,this.text+x.slice(S,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=x.slice(S,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=x.slice(S,this.prevI)+" ",S=this.i;break;case 60:return this.text+=x.slice(S,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=x.slice(S))}}sAttribValueClosed(){const g=this.getCodeNorm();i(g)?this.state=36:g===62?this.openTag():g===47?this.state=35:s(g)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const g=this.captureTo(W);switch(g){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",g===62?this.openTag():this.state=36}}sCloseTag(){const g=this.captureNameChars();g===62?this.closeTag():i(g)?this.state=44:g!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:g,forbiddenState:x}=this;const{chunk:S,textHandler:E}=this;t:for(;;)switch(this.getCode()){case 60:if(this.state=15,E!==void 0){const{text:O}=this,j=S.slice(g,this.prevI);O.length!==0?(E(O+j),this.text=""):j.length!==0&&E(j)}x=0;break t;case 38:this.state=14,this.entityReturnState=13,E!==void 0&&(this.text+=S.slice(g,this.prevI)),x=0;break t;case 93:switch(x){case 0:x=1;break;case 1:x=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:x===2&&this.fail('the string "]]>" is disallowed in char data.'),x=0;break;case-2:E!==void 0&&(this.text+=S.slice(g,this.prevI)+`
|
|
24
|
+
`),g=this.i,x=0;break;case-1:E!==void 0&&(this.text+=S.slice(g));break t;default:x=0}this.forbiddenState=x}handleTextOutsideRoot(){let{i:g}=this;const{chunk:x,textHandler:S}=this;let E=!1;t:for(;;){const O=this.getCode();switch(O){case 60:if(this.state=15,S!==void 0){const{text:j}=this,B=x.slice(g,this.prevI);j.length!==0?(S(j+B),this.text=""):B.length!==0&&S(B)}break t;case 38:this.state=14,this.entityReturnState=13,S!==void 0&&(this.text+=x.slice(g,this.prevI)),E=!0;break t;case-2:S!==void 0&&(this.text+=x.slice(g,this.prevI)+`
|
|
25
|
+
`),g=this.i;break;case-1:S!==void 0&&(this.text+=x.slice(g));break t;default:i(O)||(E=!0)}}E&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(g,x){var S;const{prefix:E,local:O}=this.qname(g),j={name:g,prefix:E,local:O,value:x};if(this.attribList.push(j),(S=this.attributeHandler)===null||S===void 0||S.call(this,j),E==="xmlns"){const B=x.trim();this.currentXMLVersion==="1.0"&&B===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[O]=B,$(this,O,B)}else if(g==="xmlns"){const B=x.trim();this.topNS[""]=B,$(this,"",B)}}pushAttribPlain(g,x){var S;const E={name:g,value:x};this.attribList.push(E),(S=this.attributeHandler)===null||S===void 0||S.call(this,E)}end(){var g,x;this.sawRoot||this.fail("document must contain a root element.");const{tags:S}=this;for(;S.length>0;){const O=S.pop();this.fail("unclosed tag: "+O.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:E}=this;return E.length!==0&&((g=this.textHandler)===null||g===void 0||g.call(this,E),this.text=""),this._closed=!0,(x=this.endHandler)===null||x===void 0||x.call(this),this._init(),this}resolve(g){var x,S;let E=this.topNS[g];if(E!==void 0)return E;const{tags:O}=this;for(let j=O.length-1;j>=0;j--)if(E=O[j].ns[g],E!==void 0)return E;return E=this.ns[g],E!==void 0?E:(S=(x=this.opt).resolvePrefix)===null||S===void 0?void 0:S.call(x,g)}qname(g){const x=g.indexOf(":");if(x===-1)return{prefix:"",local:g};const S=g.slice(x+1),E=g.slice(0,x);return(E===""||S===""||S.includes(":"))&&this.fail(`malformed name: ${g}.`),{prefix:E,local:S}}processAttribsNS(){var g;const{attribList:x}=this,S=this.tag;{const{prefix:j,local:B}=this.qname(S.name);S.prefix=j,S.local=B;const Y=S.uri=(g=this.resolve(j))!==null&&g!==void 0?g:"";j!==""&&(j==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),Y===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(j)}.`),S.uri=j))}if(x.length===0)return;const{attributes:E}=S,O=new Set;for(const j of x){const{name:B,prefix:Y,local:K}=j;let nt,U;Y===""?(nt=B==="xmlns"?T:"",U=B):(nt=this.resolve(Y),nt===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(Y)}.`),nt=Y),U=`{${nt}}${K}`),O.has(U)&&this.fail(`duplicate attribute: ${U}.`),O.add(U),j.uri=nt,E[B]=j}this.attribList=[]}processAttribsPlain(){const{attribList:g}=this,x=this.tag.attributes;for(const{name:S,value:E}of g)x[S]!==void 0&&this.fail(`duplicate attribute: ${S}.`),x[S]=E;this.attribList=[]}openTag(){var g;this.processAttribs();const{tags:x}=this,S=this.tag;S.isSelfClosing=!1,(g=this.openTagHandler)===null||g===void 0||g.call(this,S),x.push(S),this.state=13,this.name=""}openSelfClosingTag(){var g,x,S;this.processAttribs();const{tags:E}=this,O=this.tag;O.isSelfClosing=!0,(g=this.openTagHandler)===null||g===void 0||g.call(this,O),(x=this.closeTagHandler)===null||x===void 0||x.call(this,O),(this.tag=(S=E[E.length-1])!==null&&S!==void 0?S:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:g,name:x}=this;if(this.state=13,this.name="",x==="")return this.fail("weird empty close tag."),void(this.text+="</>");const S=this.closeTagHandler;let E=g.length;for(;E-- >0;){const O=this.tag=g.pop();if(this.topNS=O.ns,S?.(O),O.name===x)break;this.fail("unexpected close tag.")}E===0?this.closedRoot=!0:E<0&&(this.fail(`unmatched closing tag: ${x}.`),this.text+=`</${x}>`)}parseEntity(g){if(g[0]!=="#"){const S=this.ENTITIES[g];return S!==void 0?S:(this.fail(this.isName(g)?"undefined entity.":"disallowed character in entity name."),`&${g};`)}let x=NaN;return g[1]==="x"&&/^#x[0-9a-f]+$/i.test(g)?x=parseInt(g.slice(2),16):/^#[0-9]+$/.test(g)&&(x=parseInt(g.slice(1),10)),this.isChar(x)?String.fromCodePoint(x):(this.fail("malformed character entity."),`&${g};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(r,y,_){var d=r("safe-buffer").Buffer;function a(l,i){this._block=d.alloc(l),this._finalSize=i,this._blockSize=l,this._len=0}a.prototype.update=function(l,i){typeof l=="string"&&(i=i||"utf8",l=d.from(l,i));for(var e=this._block,s=this._blockSize,c=l.length,u=this._len,o=0;o<c;){for(var p=u%s,m=Math.min(c-o,s-p),f=0;f<m;f++)e[p+f]=l[o+f];o+=m,(u+=m)%s==0&&this._update(e)}return this._len+=c,this},a.prototype.digest=function(l){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var s=(4294967295&e)>>>0,c=(e-s)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(s,this._blockSize-4)}this._update(this._block);var u=this._hash();return l?u.toString(l):u},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},y.exports=a},{"safe-buffer":494}],498:[function(r,y,_){var d=y.exports=function(a){a=a.toLowerCase();var l=d[a];if(!l)throw new Error(a+" is not supported (we accept pull requests)");return new l};d.sha=r("./sha"),d.sha1=r("./sha1"),d.sha224=r("./sha224"),d.sha256=r("./sha256"),d.sha384=r("./sha384"),d.sha512=r("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(r,y,_){var d=r("inherits"),a=r("./hash"),l=r("safe-buffer").Buffer,i=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function s(){this.init(),this._w=e,a.call(this,64,56)}function c(o){return o<<30|o>>>2}function u(o,p,m,f){return o===0?p&m|~p&f:o===2?p&m|p&f|m&f:p^m^f}d(s,a),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(o){for(var p,m=this._w,f=0|this._a,v=0|this._b,b=0|this._c,T=0|this._d,C=0|this._e,I=0;I<16;++I)m[I]=o.readInt32BE(4*I);for(;I<80;++I)m[I]=m[I-3]^m[I-8]^m[I-14]^m[I-16];for(var H=0;H<80;++H){var Z=~~(H/20),P=0|((p=f)<<5|p>>>27)+u(Z,v,b,T)+C+m[H]+i[Z];C=T,T=b,b=c(v),v=f,f=P}this._a=f+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=T+this._d|0,this._e=C+this._e|0},s.prototype._hash=function(){var o=l.allocUnsafe(20);return o.writeInt32BE(0|this._a,0),o.writeInt32BE(0|this._b,4),o.writeInt32BE(0|this._c,8),o.writeInt32BE(0|this._d,12),o.writeInt32BE(0|this._e,16),o},y.exports=s},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(r,y,_){var d=r("inherits"),a=r("./hash"),l=r("safe-buffer").Buffer,i=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function s(){this.init(),this._w=e,a.call(this,64,56)}function c(p){return p<<5|p>>>27}function u(p){return p<<30|p>>>2}function o(p,m,f,v){return p===0?m&f|~m&v:p===2?m&f|m&v|f&v:m^f^v}d(s,a),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(p){for(var m,f=this._w,v=0|this._a,b=0|this._b,T=0|this._c,C=0|this._d,I=0|this._e,H=0;H<16;++H)f[H]=p.readInt32BE(4*H);for(;H<80;++H)f[H]=(m=f[H-3]^f[H-8]^f[H-14]^f[H-16])<<1|m>>>31;for(var Z=0;Z<80;++Z){var P=~~(Z/20),q=c(v)+o(P,b,T,C)+I+f[Z]+i[P]|0;I=C,C=T,T=u(b),b=v,v=q}this._a=v+this._a|0,this._b=b+this._b|0,this._c=T+this._c|0,this._d=C+this._d|0,this._e=I+this._e|0},s.prototype._hash=function(){var p=l.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},y.exports=s},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(r,y,_){var d=r("inherits"),a=r("./sha256"),l=r("./hash"),i=r("safe-buffer").Buffer,e=new Array(64);function s(){this.init(),this._w=e,l.call(this,64,56)}d(s,a),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var c=i.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},y.exports=s},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(r,y,_){var d=r("inherits"),a=r("./hash"),l=r("safe-buffer").Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],e=new Array(64);function s(){this.init(),this._w=e,a.call(this,64,56)}function c(f,v,b){return b^f&(v^b)}function u(f,v,b){return f&v|b&(f|v)}function o(f){return(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10)}function p(f){return(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7)}function m(f){return(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3}d(s,a),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(f){for(var v,b=this._w,T=0|this._a,C=0|this._b,I=0|this._c,H=0|this._d,Z=0|this._e,P=0|this._f,q=0|this._g,V=0|this._h,W=0;W<16;++W)b[W]=f.readInt32BE(4*W);for(;W<64;++W)b[W]=0|(((v=b[W-2])>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+b[W-7]+m(b[W-15])+b[W-16];for(var $=0;$<64;++$){var R=V+p(Z)+c(Z,P,q)+i[$]+b[$]|0,z=o(T)+u(T,C,I)|0;V=q,q=P,P=Z,Z=H+R|0,H=I,I=C,C=T,T=R+z|0}this._a=T+this._a|0,this._b=C+this._b|0,this._c=I+this._c|0,this._d=H+this._d|0,this._e=Z+this._e|0,this._f=P+this._f|0,this._g=q+this._g|0,this._h=V+this._h|0},s.prototype._hash=function(){var f=l.allocUnsafe(32);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f.writeInt32BE(this._h,28),f},y.exports=s},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(r,y,_){var d=r("inherits"),a=r("./sha512"),l=r("./hash"),i=r("safe-buffer").Buffer,e=new Array(160);function s(){this.init(),this._w=e,l.call(this,128,112)}d(s,a),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var c=i.allocUnsafe(48);function u(o,p,m){c.writeInt32BE(o,m),c.writeInt32BE(p,m+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),c},y.exports=s},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(r,y,_){var d=r("inherits"),a=r("./hash"),l=r("safe-buffer").Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],e=new Array(160);function s(){this.init(),this._w=e,a.call(this,128,112)}function c(C,I,H){return H^C&(I^H)}function u(C,I,H){return C&I|H&(C|I)}function o(C,I){return(C>>>28|I<<4)^(I>>>2|C<<30)^(I>>>7|C<<25)}function p(C,I){return(C>>>14|I<<18)^(C>>>18|I<<14)^(I>>>9|C<<23)}function m(C,I){return(C>>>1|I<<31)^(C>>>8|I<<24)^C>>>7}function f(C,I){return(C>>>1|I<<31)^(C>>>8|I<<24)^(C>>>7|I<<25)}function v(C,I){return(C>>>19|I<<13)^(I>>>29|C<<3)^C>>>6}function b(C,I){return(C>>>19|I<<13)^(I>>>29|C<<3)^(C>>>6|I<<26)}function T(C,I){return C>>>0<I>>>0?1:0}d(s,a),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(C){for(var I=this._w,H=0|this._ah,Z=0|this._bh,P=0|this._ch,q=0|this._dh,V=0|this._eh,W=0|this._fh,$=0|this._gh,R=0|this._hh,z=0|this._al,A=0|this._bl,g=0|this._cl,x=0|this._dl,S=0|this._el,E=0|this._fl,O=0|this._gl,j=0|this._hl,B=0;B<32;B+=2)I[B]=C.readInt32BE(4*B),I[B+1]=C.readInt32BE(4*B+4);for(;B<160;B+=2){var Y=I[B-30],K=I[B-30+1],nt=m(Y,K),U=f(K,Y),J=v(Y=I[B-4],K=I[B-4+1]),L=b(K,Y),N=I[B-14],X=I[B-14+1],rt=I[B-32],ut=I[B-32+1],it=U+X|0,lt=nt+N+T(it,U)|0;lt=(lt=lt+J+T(it=it+L|0,L)|0)+rt+T(it=it+ut|0,ut)|0,I[B]=lt,I[B+1]=it}for(var gt=0;gt<160;gt+=2){lt=I[gt],it=I[gt+1];var bt=u(H,Z,P),st=u(z,A,g),dt=o(H,z),ht=o(z,H),xt=p(V,S),_t=p(S,V),St=i[gt],Ot=i[gt+1],Rt=c(V,W,$),Ft=c(S,E,O),Kt=j+_t|0,et=R+xt+T(Kt,j)|0;et=(et=(et=et+Rt+T(Kt=Kt+Ft|0,Ft)|0)+St+T(Kt=Kt+Ot|0,Ot)|0)+lt+T(Kt=Kt+it|0,it)|0;var G=ht+st|0,Q=dt+bt+T(G,ht)|0;R=$,j=O,$=W,O=E,W=V,E=S,V=q+et+T(S=x+Kt|0,x)|0,q=P,x=g,P=Z,g=A,Z=H,A=z,H=et+Q+T(z=Kt+G|0,Kt)|0}this._al=this._al+z|0,this._bl=this._bl+A|0,this._cl=this._cl+g|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+O|0,this._hl=this._hl+j|0,this._ah=this._ah+H+T(this._al,z)|0,this._bh=this._bh+Z+T(this._bl,A)|0,this._ch=this._ch+P+T(this._cl,g)|0,this._dh=this._dh+q+T(this._dl,x)|0,this._eh=this._eh+V+T(this._el,S)|0,this._fh=this._fh+W+T(this._fl,E)|0,this._gh=this._gh+$+T(this._gl,O)|0,this._hh=this._hh+R+T(this._hl,j)|0},s.prototype._hash=function(){var C=l.allocUnsafe(64);function I(H,Z,P){C.writeInt32BE(H,P),C.writeInt32BE(Z,P+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),I(this._gh,this._gl,48),I(this._hh,this._hl,56),C},y.exports=s},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(r,y,_){y.exports=a;var d=r("events").EventEmitter;function a(){d.call(this)}r("inherits")(a,d),a.Readable=r("readable-stream/readable.js"),a.Writable=r("readable-stream/writable.js"),a.Duplex=r("readable-stream/duplex.js"),a.Transform=r("readable-stream/transform.js"),a.PassThrough=r("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(l,i){var e=this;function s(v){l.writable&&l.write(v)===!1&&e.pause&&e.pause()}function c(){e.readable&&e.resume&&e.resume()}e.on("data",s),l.on("drain",c),l._isStdio||i&&i.end===!1||(e.on("end",o),e.on("close",p));var u=!1;function o(){u||(u=!0,l.end())}function p(){u||(u=!0,typeof l.destroy=="function"&&l.destroy())}function m(v){if(f(),d.listenerCount(this,"error")===0)throw v}function f(){e.removeListener("data",s),l.removeListener("drain",c),e.removeListener("end",o),e.removeListener("close",p),e.removeListener("error",m),l.removeListener("error",m),e.removeListener("end",f),e.removeListener("close",f),l.removeListener("close",f)}return e.on("error",m),l.on("error",m),e.on("end",f),e.on("close",f),l.on("close",f),l.emit("pipe",e),l}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(r,y,_){var d={}.toString;y.exports=Array.isArray||function(a){return d.call(a)=="[object Array]"}},{}],507:[function(r,y,_){y.exports=r("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(r,y,_){var d=r("process-nextick-args"),a=Object.keys||function(f){var v=[];for(var b in f)v.push(b);return v};y.exports=o;var l=Object.create(r("core-util-is"));l.inherits=r("inherits");var i=r("./_stream_readable"),e=r("./_stream_writable");l.inherits(o,i);for(var s=a(e.prototype),c=0;c<s.length;c++){var u=s[c];o.prototype[u]||(o.prototype[u]=e.prototype[u])}function o(f){if(!(this instanceof o))return new o(f);i.call(this,f),e.call(this,f),f&&f.readable===!1&&(this.readable=!1),f&&f.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,f&&f.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||d.nextTick(m,this)}function m(f){f.end()}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),o.prototype._destroy=function(f,v){this.push(null),this.end(),d.nextTick(v,f)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(r,y,_){y.exports=l;var d=r("./_stream_transform"),a=Object.create(r("core-util-is"));function l(i){if(!(this instanceof l))return new l(i);d.call(this,i)}a.inherits=r("inherits"),a.inherits(l,d),l.prototype._transform=function(i,e,s){s(null,i)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(r,y,_){(function(d,a){(function(){var l=r("process-nextick-args");y.exports=H;var i,e=r("isarray");H.ReadableState=I,r("events").EventEmitter;var s=function(j,B){return j.listeners(B).length},c=r("./internal/streams/stream"),u=r("safe-buffer").Buffer,o=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},p=Object.create(r("core-util-is"));p.inherits=r("inherits");var m=r("util"),f=void 0;f=m&&m.debuglog?m.debuglog("stream"):function(){};var v,b=r("./internal/streams/BufferList"),T=r("./internal/streams/destroy");p.inherits(H,c);var C=["error","close","destroy","pause","resume"];function I(j,B){j=j||{};var Y=B instanceof(i=i||r("./_stream_duplex"));this.objectMode=!!j.objectMode,Y&&(this.objectMode=this.objectMode||!!j.readableObjectMode);var K=j.highWaterMark,nt=j.readableHighWaterMark,U=this.objectMode?16:16384;this.highWaterMark=K||K===0?K:Y&&(nt||nt===0)?nt:U,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=j.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j.encoding&&(v||(v=r("string_decoder/").StringDecoder),this.decoder=new v(j.encoding),this.encoding=j.encoding)}function H(j){if(i=i||r("./_stream_duplex"),!(this instanceof H))return new H(j);this._readableState=new I(j,this),this.readable=!0,j&&(typeof j.read=="function"&&(this._read=j.read),typeof j.destroy=="function"&&(this._destroy=j.destroy)),c.call(this)}function Z(j,B,Y,K,nt){var U,J=j._readableState;return B===null?(J.reading=!1,(function(L,N){if(!N.ended){if(N.decoder){var X=N.decoder.end();X&&X.length&&(N.buffer.push(X),N.length+=N.objectMode?1:X.length)}N.ended=!0,V(L)}})(j,J)):(nt||(U=(function(L,N){var X;rt=N,u.isBuffer(rt)||rt instanceof o||typeof N=="string"||N===void 0||L.objectMode||(X=new TypeError("Invalid non-string/buffer chunk"));var rt;return X})(J,B)),U?j.emit("error",U):J.objectMode||B&&B.length>0?(typeof B=="string"||J.objectMode||Object.getPrototypeOf(B)===u.prototype||(B=(function(L){return u.from(L)})(B)),K?J.endEmitted?j.emit("error",new Error("stream.unshift() after end event")):P(j,J,B,!0):J.ended?j.emit("error",new Error("stream.push() after EOF")):(J.reading=!1,J.decoder&&!Y?(B=J.decoder.write(B),J.objectMode||B.length!==0?P(j,J,B,!1):$(j,J)):P(j,J,B,!1))):K||(J.reading=!1)),(function(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)})(J)}function P(j,B,Y,K){B.flowing&&B.length===0&&!B.sync?(j.emit("data",Y),j.read(0)):(B.length+=B.objectMode?1:Y.length,K?B.buffer.unshift(Y):B.buffer.push(Y),B.needReadable&&V(j)),$(j,B)}Object.defineProperty(H.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),H.prototype.destroy=T.destroy,H.prototype._undestroy=T.undestroy,H.prototype._destroy=function(j,B){this.push(null),B(j)},H.prototype.push=function(j,B){var Y,K=this._readableState;return K.objectMode?Y=!0:typeof j=="string"&&((B=B||K.defaultEncoding)!==K.encoding&&(j=u.from(j,B),B=""),Y=!0),Z(this,j,B,!1,Y)},H.prototype.unshift=function(j){return Z(this,j,null,!0,!1)},H.prototype.isPaused=function(){return this._readableState.flowing===!1},H.prototype.setEncoding=function(j){return v||(v=r("string_decoder/").StringDecoder),this._readableState.decoder=new v(j),this._readableState.encoding=j,this};function q(j,B){return j<=0||B.length===0&&B.ended?0:B.objectMode?1:j!=j?B.flowing&&B.length?B.buffer.head.data.length:B.length:(j>B.highWaterMark&&(B.highWaterMark=(function(Y){return Y>=8388608?Y=8388608:(Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++),Y})(j)),j<=B.length?j:B.ended?B.length:(B.needReadable=!0,0))}function V(j){var B=j._readableState;B.needReadable=!1,B.emittedReadable||(f("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?l.nextTick(W,j):W(j))}function W(j){f("emit readable"),j.emit("readable"),g(j)}function $(j,B){B.readingMore||(B.readingMore=!0,l.nextTick(R,j,B))}function R(j,B){for(var Y=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(f("maybeReadMore read 0"),j.read(0),Y!==B.length);)Y=B.length;B.readingMore=!1}function z(j){f("readable nexttick read 0"),j.read(0)}function A(j,B){B.reading||(f("resume read 0"),j.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,j.emit("resume"),g(j),B.flowing&&!B.reading&&j.read(0)}function g(j){var B=j._readableState;for(f("flow",B.flowing);B.flowing&&j.read()!==null;);}function x(j,B){return B.length===0?null:(B.objectMode?Y=B.buffer.shift():!j||j>=B.length?(Y=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):Y=(function(K,nt,U){var J;return K<nt.head.data.length?(J=nt.head.data.slice(0,K),nt.head.data=nt.head.data.slice(K)):J=K===nt.head.data.length?nt.shift():U?(function(L,N){var X=N.head,rt=1,ut=X.data;for(L-=ut.length;X=X.next;){var it=X.data,lt=L>it.length?it.length:L;if(lt===it.length?ut+=it:ut+=it.slice(0,L),(L-=lt)===0){lt===it.length?(++rt,X.next?N.head=X.next:N.head=N.tail=null):(N.head=X,X.data=it.slice(lt));break}++rt}return N.length-=rt,ut})(K,nt):(function(L,N){var X=u.allocUnsafe(L),rt=N.head,ut=1;for(rt.data.copy(X),L-=rt.data.length;rt=rt.next;){var it=rt.data,lt=L>it.length?it.length:L;if(it.copy(X,X.length-L,0,lt),(L-=lt)===0){lt===it.length?(++ut,rt.next?N.head=rt.next:N.head=N.tail=null):(N.head=rt,rt.data=it.slice(lt));break}++ut}return N.length-=ut,X})(K,nt),J})(j,B.buffer,B.decoder),Y);var Y}function S(j){var B=j._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,l.nextTick(E,B,j))}function E(j,B){j.endEmitted||j.length!==0||(j.endEmitted=!0,B.readable=!1,B.emit("end"))}function O(j,B){for(var Y=0,K=j.length;Y<K;Y++)if(j[Y]===B)return Y;return-1}H.prototype.read=function(j){f("read",j),j=parseInt(j,10);var B=this._readableState,Y=j;if(j!==0&&(B.emittedReadable=!1),j===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return f("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?S(this):V(this),null;if((j=q(j,B))===0&&B.ended)return B.length===0&&S(this),null;var K,nt=B.needReadable;return f("need readable",nt),(B.length===0||B.length-j<B.highWaterMark)&&f("length less than watermark",nt=!0),B.ended||B.reading?f("reading or ended",nt=!1):nt&&(f("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(j=q(Y,B))),(K=j>0?x(j,B):null)===null?(B.needReadable=!0,j=0):B.length-=j,B.length===0&&(B.ended||(B.needReadable=!0),Y!==j&&B.ended&&S(this)),K!==null&&this.emit("data",K),K},H.prototype._read=function(j){this.emit("error",new Error("_read() is not implemented"))},H.prototype.pipe=function(j,B){var Y=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=j;break;case 1:K.pipes=[K.pipes,j];break;default:K.pipes.push(j)}K.pipesCount+=1,f("pipe count=%d opts=%j",K.pipesCount,B);var nt=(!B||B.end!==!1)&&j!==d.stdout&&j!==d.stderr?J:gt;function U(bt,st){f("onunpipe"),bt===Y&&st&&st.hasUnpiped===!1&&(st.hasUnpiped=!0,f("cleanup"),j.removeListener("close",it),j.removeListener("finish",lt),j.removeListener("drain",L),j.removeListener("error",ut),j.removeListener("unpipe",U),Y.removeListener("end",J),Y.removeListener("end",gt),Y.removeListener("data",rt),N=!0,!K.awaitDrain||j._writableState&&!j._writableState.needDrain||L())}function J(){f("onend"),j.end()}K.endEmitted?l.nextTick(nt):Y.once("end",nt),j.on("unpipe",U);var L=(function(bt){return function(){var st=bt._readableState;f("pipeOnDrain",st.awaitDrain),st.awaitDrain&&st.awaitDrain--,st.awaitDrain===0&&s(bt,"data")&&(st.flowing=!0,g(bt))}})(Y);j.on("drain",L);var N=!1,X=!1;function rt(bt){f("ondata"),X=!1,j.write(bt)!==!1||X||((K.pipesCount===1&&K.pipes===j||K.pipesCount>1&&O(K.pipes,j)!==-1)&&!N&&(f("false write response, pause",K.awaitDrain),K.awaitDrain++,X=!0),Y.pause())}function ut(bt){f("onerror",bt),gt(),j.removeListener("error",ut),s(j,"error")===0&&j.emit("error",bt)}function it(){j.removeListener("finish",lt),gt()}function lt(){f("onfinish"),j.removeListener("close",it),gt()}function gt(){f("unpipe"),Y.unpipe(j)}return Y.on("data",rt),(function(bt,st,dt){if(typeof bt.prependListener=="function")return bt.prependListener(st,dt);bt._events&&bt._events[st]?e(bt._events[st])?bt._events[st].unshift(dt):bt._events[st]=[dt,bt._events[st]]:bt.on(st,dt)})(j,"error",ut),j.once("close",it),j.once("finish",lt),j.emit("pipe",Y),K.flowing||(f("pipe resume"),Y.resume()),j},H.prototype.unpipe=function(j){var B=this._readableState,Y={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return j&&j!==B.pipes||(j||(j=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,j&&j.emit("unpipe",this,Y)),this;if(!j){var K=B.pipes,nt=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var U=0;U<nt;U++)K[U].emit("unpipe",this,{hasUnpiped:!1});return this}var J=O(B.pipes,j);return J===-1||(B.pipes.splice(J,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),j.emit("unpipe",this,Y)),this},H.prototype.on=function(j,B){var Y=c.prototype.on.call(this,j,B);if(j==="data")this._readableState.flowing!==!1&&this.resume();else if(j==="readable"){var K=this._readableState;K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,K.reading?K.length&&V(this):l.nextTick(z,this))}return Y},H.prototype.addListener=H.prototype.on,H.prototype.resume=function(){var j=this._readableState;return j.flowing||(f("resume"),j.flowing=!0,(function(B,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,l.nextTick(A,B,Y))})(this,j)),this},H.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},H.prototype.wrap=function(j){var B=this,Y=this._readableState,K=!1;for(var nt in j.on("end",(function(){if(f("wrapped end"),Y.decoder&&!Y.ended){var J=Y.decoder.end();J&&J.length&&B.push(J)}B.push(null)})),j.on("data",(function(J){f("wrapped data"),Y.decoder&&(J=Y.decoder.write(J)),Y.objectMode&&J==null||(Y.objectMode||J&&J.length)&&(B.push(J)||(K=!0,j.pause()))})),j)this[nt]===void 0&&typeof j[nt]=="function"&&(this[nt]=(function(J){return function(){return j[J].apply(j,arguments)}})(nt));for(var U=0;U<C.length;U++)j.on(C[U],this.emit.bind(this,C[U]));return this._read=function(J){f("wrapped _read",J),K&&(K=!1,j.resume())},this},Object.defineProperty(H.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),H._fromList=x}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(r,y,_){y.exports=i;var d=r("./_stream_duplex"),a=Object.create(r("core-util-is"));function l(c,u){var o=this._transformState;o.transforming=!1;var p=o.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,u!=null&&this.push(u),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function i(c){if(!(this instanceof i))return new i(c);d.call(this,c),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",e)}function e(){var c=this;typeof this._flush=="function"?this._flush((function(u,o){s(c,u,o)})):s(this,null,null)}function s(c,u,o){if(u)return c.emit("error",u);if(o!=null&&c.push(o),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}a.inherits=r("inherits"),a.inherits(i,d),i.prototype.push=function(c,u){return this._transformState.needTransform=!1,d.prototype.push.call(this,c,u)},i.prototype._transform=function(c,u,o){throw new Error("_transform() is not implemented")},i.prototype._write=function(c,u,o){var p=this._transformState;if(p.writecb=o,p.writechunk=c,p.writeencoding=u,!p.transforming){var m=this._readableState;(p.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},i.prototype._read=function(c){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},i.prototype._destroy=function(c,u){var o=this;d.prototype._destroy.call(this,c,(function(p){u(p),o.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(r,y,_){(function(d,a,l){(function(){var i=r("process-nextick-args");function e($){var R=this;this.next=null,this.entry=null,this.finish=function(){(function(z,A,g){var x=z.entry;for(z.entry=null;x;){var S=x.callback;A.pendingcb--,S(g),x=x.next}A.corkedRequestsFree.next=z})(R,$)}}y.exports=I;var s,c=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?l:i.nextTick;I.WritableState=C;var u=Object.create(r("core-util-is"));u.inherits=r("inherits");var o={deprecate:r("util-deprecate")},p=r("./internal/streams/stream"),m=r("safe-buffer").Buffer,f=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},v,b=r("./internal/streams/destroy");function T(){}function C($,R){s=s||r("./_stream_duplex"),$=$||{};var z=R instanceof s;this.objectMode=!!$.objectMode,z&&(this.objectMode=this.objectMode||!!$.writableObjectMode);var A=$.highWaterMark,g=$.writableHighWaterMark,x=this.objectMode?16:16384;this.highWaterMark=A||A===0?A:z&&(g||g===0)?g:x,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var S=$.decodeStrings===!1;this.decodeStrings=!S,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(E){(function(O,j){var B=O._writableState,Y=B.sync,K=B.writecb;if((function(U){U.writing=!1,U.writecb=null,U.length-=U.writelen,U.writelen=0})(B),j)(function(U,J,L,N,X){--J.pendingcb,L?(i.nextTick(X,N),i.nextTick(W,U,J),U._writableState.errorEmitted=!0,U.emit("error",N)):(X(N),U._writableState.errorEmitted=!0,U.emit("error",N),W(U,J))})(O,B,Y,j,K);else{var nt=q(B);nt||B.corked||B.bufferProcessing||!B.bufferedRequest||P(O,B),Y?c(Z,O,B,nt,K):Z(O,B,nt,K)}})(R,E)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function I($){if(s=s||r("./_stream_duplex"),!(v.call(I,this)||this instanceof s))return new I($);this._writableState=new C($,this),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),p.call(this)}function H($,R,z,A,g,x,S){R.writelen=A,R.writecb=S,R.writing=!0,R.sync=!0,z?$._writev(g,R.onwrite):$._write(g,x,R.onwrite),R.sync=!1}function Z($,R,z,A){z||(function(g,x){x.length===0&&x.needDrain&&(x.needDrain=!1,g.emit("drain"))})($,R),R.pendingcb--,A(),W($,R)}function P($,R){R.bufferProcessing=!0;var z=R.bufferedRequest;if($._writev&&z&&z.next){var A=R.bufferedRequestCount,g=new Array(A),x=R.corkedRequestsFree;x.entry=z;for(var S=0,E=!0;z;)g[S]=z,z.isBuf||(E=!1),z=z.next,S+=1;g.allBuffers=E,H($,R,!0,R.length,g,"",x.finish),R.pendingcb++,R.lastBufferedRequest=null,x.next?(R.corkedRequestsFree=x.next,x.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;z;){var O=z.chunk,j=z.encoding,B=z.callback;if(H($,R,!1,R.objectMode?1:O.length,O,j,B),z=z.next,R.bufferedRequestCount--,R.writing)break}z===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=z,R.bufferProcessing=!1}function q($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function V($,R){$._final((function(z){R.pendingcb--,z&&$.emit("error",z),R.prefinished=!0,$.emit("prefinish"),W($,R)}))}function W($,R){var z=q(R);return z&&((function(A,g){g.prefinished||g.finalCalled||(typeof A._final=="function"?(g.pendingcb++,g.finalCalled=!0,i.nextTick(V,A,g)):(g.prefinished=!0,A.emit("prefinish")))})($,R),R.pendingcb===0&&(R.finished=!0,$.emit("finish"))),z}u.inherits(I,p),C.prototype.getBuffer=function(){for(var $=this.bufferedRequest,R=[];$;)R.push($),$=$.next;return R},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function($){return!!v.call(this,$)||this===I&&$&&$._writableState instanceof C}})):v=function($){return $ instanceof this},I.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},I.prototype.write=function($,R,z){var A,g=this._writableState,x=!1,S=!g.objectMode&&(A=$,m.isBuffer(A)||A instanceof f);return S&&!m.isBuffer($)&&($=(function(E){return m.from(E)})($)),typeof R=="function"&&(z=R,R=null),S?R="buffer":R||(R=g.defaultEncoding),typeof z!="function"&&(z=T),g.ended?(function(E,O){var j=new Error("write after end");E.emit("error",j),i.nextTick(O,j)})(this,z):(S||(function(E,O,j,B){var Y=!0,K=!1;return j===null?K=new TypeError("May not write null values to stream"):typeof j=="string"||j===void 0||O.objectMode||(K=new TypeError("Invalid non-string/buffer chunk")),K&&(E.emit("error",K),i.nextTick(B,K),Y=!1),Y})(this,g,$,z))&&(g.pendingcb++,x=(function(E,O,j,B,Y,K){if(!j){var nt=(function(N,X,rt){return N.objectMode||N.decodeStrings===!1||typeof X!="string"||(X=m.from(X,rt)),X})(O,B,Y);B!==nt&&(j=!0,Y="buffer",B=nt)}var U=O.objectMode?1:B.length;O.length+=U;var J=O.length<O.highWaterMark;if(J||(O.needDrain=!0),O.writing||O.corked){var L=O.lastBufferedRequest;O.lastBufferedRequest={chunk:B,encoding:Y,isBuf:j,callback:K,next:null},L?L.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else H(E,O,!1,U,B,Y,K);return J})(this,g,S,$,R,z)),x},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,$.writing||$.corked||$.bufferProcessing||!$.bufferedRequest||P(this,$))},I.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+$);return this._writableState.defaultEncoding=$,this},Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function($,R,z){z(new Error("_write() is not implemented"))},I.prototype._writev=null,I.prototype.end=function($,R,z){var A=this._writableState;typeof $=="function"?(z=$,$=null,R=null):typeof R=="function"&&(z=R,R=null),$!=null&&this.write($,R),A.corked&&(A.corked=1,this.uncork()),A.ending||(function(g,x,S){x.ending=!0,W(g,x),S&&(x.finished?i.nextTick(S):g.once("finish",S)),x.ended=!0,g.writable=!1})(this,A,z)},Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),I.prototype.destroy=b.destroy,I.prototype._undestroy=b.undestroy,I.prototype._destroy=function($,R){this.end(),R($)}}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{},r("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(r,y,_){var d=r("safe-buffer").Buffer,a=r("util");y.exports=(function(){function l(){(function(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")})(this,l),this.head=null,this.tail=null,this.length=0}return l.prototype.push=function(i){var e={data:i,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},l.prototype.unshift=function(i){var e={data:i,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},l.prototype.shift=function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}},l.prototype.clear=function(){this.head=this.tail=null,this.length=0},l.prototype.join=function(i){if(this.length===0)return"";for(var e=this.head,s=""+e.data;e=e.next;)s+=i+e.data;return s},l.prototype.concat=function(i){if(this.length===0)return d.alloc(0);for(var e,s,c,u=d.allocUnsafe(i>>>0),o=this.head,p=0;o;)e=o.data,s=u,c=p,e.copy(s,c),p+=o.data.length,o=o.next;return u},l})(),a&&a.inspect&&a.inspect.custom&&(y.exports.prototype[a.inspect.custom]=function(){var l=a.inspect({length:this.length});return this.constructor.name+" "+l})},{"safe-buffer":520,util:188}],514:[function(r,y,_){var d=r("process-nextick-args");function a(l,i){l.emit("error",i)}y.exports={destroy:function(l,i){var e=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(i?i(l):l&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(a,this,l)):d.nextTick(a,this,l)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,(function(u){!i&&u?e._writableState?e._writableState.errorEmitted||(e._writableState.errorEmitted=!0,d.nextTick(a,e,u)):d.nextTick(a,e,u):i&&i(u)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(r,y,_){arguments[4][490][0].apply(_,arguments)},{dup:490,events:422}],516:[function(r,y,_){y.exports=r("./readable").PassThrough},{"./readable":517}],517:[function(r,y,_){(_=y.exports=r("./lib/_stream_readable.js")).Stream=_,_.Readable=_,_.Writable=r("./lib/_stream_writable.js"),_.Duplex=r("./lib/_stream_duplex.js"),_.Transform=r("./lib/_stream_transform.js"),_.PassThrough=r("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(r,y,_){y.exports=r("./readable").Transform},{"./readable":517}],519:[function(r,y,_){y.exports=r("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(r,y,_){arguments[4][217][0].apply(_,arguments)},{buffer:220,dup:217}],521:[function(r,y,_){arguments[4][218][0].apply(_,arguments)},{dup:218,"safe-buffer":520}],522:[function(r,y,_){arguments[4][218][0].apply(_,arguments)},{dup:218,"safe-buffer":494}],523:[function(r,y,_){(function(d,a){(function(){var l=r("process/browser.js").nextTick,i=Function.prototype.apply,e=Array.prototype.slice,s={},c=0;function u(o,p){this._id=o,this._clearFn=p}_.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},_.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(o){o.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},_.enroll=function(o,p){clearTimeout(o._idleTimeoutId),o._idleTimeout=p},_.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},_._unrefActive=_.active=function(o){clearTimeout(o._idleTimeoutId);var p=o._idleTimeout;p>=0&&(o._idleTimeoutId=setTimeout((function(){o._onTimeout&&o._onTimeout()}),p))},_.setImmediate=typeof d=="function"?d:function(o){var p=c++,m=!(arguments.length<2)&&e.call(arguments,1);return s[p]=!0,l((function(){s[p]&&(m?o.apply(null,m):o.call(null),_.clearImmediate(p))})),p},_.clearImmediate=typeof a=="function"?a:function(o){delete s[o]}}).call(this)}).call(this,r("timers").setImmediate,r("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(r,y,_){(function(d){(function(){function a(l){try{if(!d.localStorage)return!1}catch{return!1}var i=d.localStorage[l];return i!=null&&String(i).toLowerCase()==="true"}y.exports=function(l,i){if(a("noDeprecation"))return l;var e=!1;return function(){if(!e){if(a("throwDeprecation"))throw new Error(i);a("traceDeprecation")?console.trace(i):console.warn(i),e=!0}return l.apply(this,arguments)}}}).call(this)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(r,y,_){typeof Object.create=="function"?y.exports=function(d,a){d.super_=a,d.prototype=Object.create(a.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:y.exports=function(d,a){d.super_=a;var l=function(){};l.prototype=a.prototype,d.prototype=new l,d.prototype.constructor=d}},{}],526:[function(r,y,_){y.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],527:[function(r,y,_){(function(d,a){(function(){var l=/%[sdj%]/g;_.format=function(g){if(!C(g)){for(var x=[],S=0;S<arguments.length;S++)x.push(s(arguments[S]));return x.join(" ")}S=1;for(var E=arguments,O=E.length,j=String(g).replace(l,(function(Y){if(Y==="%%")return"%";if(S>=O)return Y;switch(Y){case"%s":return String(E[S++]);case"%d":return Number(E[S++]);case"%j":try{return JSON.stringify(E[S++])}catch{return"[Circular]"}default:return Y}})),B=E[S];S<O;B=E[++S])b(B)||!Z(B)?j+=" "+B:j+=" "+s(B);return j},_.deprecate=function(g,x){if(I(a.process))return function(){return _.deprecate(g,x).apply(this,arguments)};if(d.noDeprecation===!0)return g;var S=!1;return function(){if(!S){if(d.throwDeprecation)throw new Error(x);d.traceDeprecation?console.trace(x):console.error(x),S=!0}return g.apply(this,arguments)}};var i,e={};function s(g,x){var S={seen:[],stylize:u};return arguments.length>=3&&(S.depth=arguments[2]),arguments.length>=4&&(S.colors=arguments[3]),v(x)?S.showHidden=x:x&&_._extend(S,x),I(S.showHidden)&&(S.showHidden=!1),I(S.depth)&&(S.depth=2),I(S.colors)&&(S.colors=!1),I(S.customInspect)&&(S.customInspect=!0),S.colors&&(S.stylize=c),o(S,g,S.depth)}function c(g,x){var S=s.styles[x];return S?"\x1B["+s.colors[S][0]+"m"+g+"\x1B["+s.colors[S][1]+"m":g}function u(g,x){return g}function o(g,x,S){if(g.customInspect&&x&&V(x.inspect)&&x.inspect!==_.inspect&&(!x.constructor||x.constructor.prototype!==x)){var E=x.inspect(S,g);return C(E)||(E=o(g,E,S)),E}var O=(function(L,N){if(I(N))return L.stylize("undefined","undefined");if(C(N)){var X="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(X,"string")}if(T(N))return L.stylize(""+N,"number");if(v(N))return L.stylize(""+N,"boolean");if(b(N))return L.stylize("null","null")})(g,x);if(O)return O;var j=Object.keys(x),B=(function(L){var N={};return L.forEach((function(X,rt){N[X]=!0})),N})(j);if(g.showHidden&&(j=Object.getOwnPropertyNames(x)),q(x)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return p(x);if(j.length===0){if(V(x)){var Y=x.name?": "+x.name:"";return g.stylize("[Function"+Y+"]","special")}if(H(x))return g.stylize(RegExp.prototype.toString.call(x),"regexp");if(P(x))return g.stylize(Date.prototype.toString.call(x),"date");if(q(x))return p(x)}var K,nt="",U=!1,J=["{","}"];return f(x)&&(U=!0,J=["[","]"]),V(x)&&(nt=" [Function"+(x.name?": "+x.name:"")+"]"),H(x)&&(nt=" "+RegExp.prototype.toString.call(x)),P(x)&&(nt=" "+Date.prototype.toUTCString.call(x)),q(x)&&(nt=" "+p(x)),j.length!==0||U&&x.length!=0?S<0?H(x)?g.stylize(RegExp.prototype.toString.call(x),"regexp"):g.stylize("[Object]","special"):(g.seen.push(x),K=U?(function(L,N,X,rt,ut){for(var it=[],lt=0,gt=N.length;lt<gt;++lt)A(N,String(lt))?it.push(m(L,N,X,rt,String(lt),!0)):it.push("");return ut.forEach((function(bt){bt.match(/^\d+$/)||it.push(m(L,N,X,rt,bt,!0))})),it})(g,x,S,B,j):j.map((function(L){return m(g,x,S,B,L,U)})),g.seen.pop(),(function(L,N,X){return L.reduce((function(rt,ut){return ut.indexOf(`
|
|
26
|
+
`)>=0,rt+ut.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?X[0]+(N===""?"":N+`
|
|
27
|
+
`)+" "+L.join(`,
|
|
28
|
+
`)+" "+X[1]:X[0]+N+" "+L.join(", ")+" "+X[1]})(K,nt,J)):J[0]+nt+J[1]}function p(g){return"["+Error.prototype.toString.call(g)+"]"}function m(g,x,S,E,O,j){var B,Y,K;if((K=Object.getOwnPropertyDescriptor(x,O)||{value:x[O]}).get?Y=K.set?g.stylize("[Getter/Setter]","special"):g.stylize("[Getter]","special"):K.set&&(Y=g.stylize("[Setter]","special")),A(E,O)||(B="["+O+"]"),Y||(g.seen.indexOf(K.value)<0?(Y=b(S)?o(g,K.value,null):o(g,K.value,S-1)).indexOf(`
|
|
29
|
+
`)>-1&&(Y=j?Y.split(`
|
|
30
|
+
`).map((function(nt){return" "+nt})).join(`
|
|
31
|
+
`).substr(2):`
|
|
32
|
+
`+Y.split(`
|
|
33
|
+
`).map((function(nt){return" "+nt})).join(`
|
|
34
|
+
`)):Y=g.stylize("[Circular]","special")),I(B)){if(j&&O.match(/^\d+$/))return Y;(B=JSON.stringify(""+O)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),B=g.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=g.stylize(B,"string"))}return B+": "+Y}function f(g){return Array.isArray(g)}function v(g){return typeof g=="boolean"}function b(g){return g===null}function T(g){return typeof g=="number"}function C(g){return typeof g=="string"}function I(g){return g===void 0}function H(g){return Z(g)&&W(g)==="[object RegExp]"}function Z(g){return typeof g=="object"&&g!==null}function P(g){return Z(g)&&W(g)==="[object Date]"}function q(g){return Z(g)&&(W(g)==="[object Error]"||g instanceof Error)}function V(g){return typeof g=="function"}function W(g){return Object.prototype.toString.call(g)}function $(g){return g<10?"0"+g.toString(10):g.toString(10)}_.debuglog=function(g){if(I(i)&&(i=d.env.NODE_DEBUG||""),g=g.toUpperCase(),!e[g])if(new RegExp("\\b"+g+"\\b","i").test(i)){var x=d.pid;e[g]=function(){var S=_.format.apply(_,arguments);console.error("%s %d: %s",g,x,S)}}else e[g]=function(){};return e[g]},_.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},_.isArray=f,_.isBoolean=v,_.isNull=b,_.isNullOrUndefined=function(g){return g==null},_.isNumber=T,_.isString=C,_.isSymbol=function(g){return typeof g=="symbol"},_.isUndefined=I,_.isRegExp=H,_.isObject=Z,_.isDate=P,_.isError=q,_.isFunction=V,_.isPrimitive=function(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0},_.isBuffer=r("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var g=new Date,x=[$(g.getHours()),$(g.getMinutes()),$(g.getSeconds())].join(":");return[g.getDate(),R[g.getMonth()],x].join(" ")}function A(g,x){return Object.prototype.hasOwnProperty.call(g,x)}_.log=function(){console.log("%s - %s",z(),_.format.apply(_,arguments))},_.inherits=r("inherits"),_._extend=function(g,x){if(!x||!Z(x))return g;for(var S=Object.keys(x),E=S.length;E--;)g[S[E]]=x[S[E]];return g}}).call(this)}).call(this,r("_process"),typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"v1",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(_,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(_,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(_,"NIL",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(_,"version",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return o.default}});var d=p(r("./v1.js")),a=p(r("./v3.js")),l=p(r("./v4.js")),i=p(r("./v5.js")),e=p(r("./nil.js")),s=p(r("./version.js")),c=p(r("./validate.js")),u=p(r("./stringify.js")),o=p(r("./parse.js"));function p(m){return m&&m.__esModule?m:{default:m}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(r,y,_){function d(o){return 14+(o+64>>>9<<4)+1}function a(o,p){const m=(65535&o)+(65535&p);return(o>>16)+(p>>16)+(m>>16)<<16|65535&m}function l(o,p,m,f,v,b){return a((T=a(a(p,o),a(f,b)))<<(C=v)|T>>>32-C,m);var T,C}function i(o,p,m,f,v,b,T){return l(p&m|~p&f,o,p,v,b,T)}function e(o,p,m,f,v,b,T){return l(p&f|m&~f,o,p,v,b,T)}function s(o,p,m,f,v,b,T){return l(p^m^f,o,p,v,b,T)}function c(o,p,m,f,v,b,T){return l(m^(p|~f),o,p,v,b,T)}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var u=function(o){if(typeof o=="string"){const p=unescape(encodeURIComponent(o));o=new Uint8Array(p.length);for(let m=0;m<p.length;++m)o[m]=p.charCodeAt(m)}return(function(p){const m=[],f=32*p.length;for(let v=0;v<f;v+=8){const b=p[v>>5]>>>v%32&255,T=parseInt("0123456789abcdef".charAt(b>>>4&15)+"0123456789abcdef".charAt(15&b),16);m.push(T)}return m})((function(p,m){p[m>>5]|=128<<m%32,p[d(m)-1]=m;let f=1732584193,v=-271733879,b=-1732584194,T=271733878;for(let C=0;C<p.length;C+=16){const I=f,H=v,Z=b,P=T;f=i(f,v,b,T,p[C],7,-680876936),T=i(T,f,v,b,p[C+1],12,-389564586),b=i(b,T,f,v,p[C+2],17,606105819),v=i(v,b,T,f,p[C+3],22,-1044525330),f=i(f,v,b,T,p[C+4],7,-176418897),T=i(T,f,v,b,p[C+5],12,1200080426),b=i(b,T,f,v,p[C+6],17,-1473231341),v=i(v,b,T,f,p[C+7],22,-45705983),f=i(f,v,b,T,p[C+8],7,1770035416),T=i(T,f,v,b,p[C+9],12,-1958414417),b=i(b,T,f,v,p[C+10],17,-42063),v=i(v,b,T,f,p[C+11],22,-1990404162),f=i(f,v,b,T,p[C+12],7,1804603682),T=i(T,f,v,b,p[C+13],12,-40341101),b=i(b,T,f,v,p[C+14],17,-1502002290),v=i(v,b,T,f,p[C+15],22,1236535329),f=e(f,v,b,T,p[C+1],5,-165796510),T=e(T,f,v,b,p[C+6],9,-1069501632),b=e(b,T,f,v,p[C+11],14,643717713),v=e(v,b,T,f,p[C],20,-373897302),f=e(f,v,b,T,p[C+5],5,-701558691),T=e(T,f,v,b,p[C+10],9,38016083),b=e(b,T,f,v,p[C+15],14,-660478335),v=e(v,b,T,f,p[C+4],20,-405537848),f=e(f,v,b,T,p[C+9],5,568446438),T=e(T,f,v,b,p[C+14],9,-1019803690),b=e(b,T,f,v,p[C+3],14,-187363961),v=e(v,b,T,f,p[C+8],20,1163531501),f=e(f,v,b,T,p[C+13],5,-1444681467),T=e(T,f,v,b,p[C+2],9,-51403784),b=e(b,T,f,v,p[C+7],14,1735328473),v=e(v,b,T,f,p[C+12],20,-1926607734),f=s(f,v,b,T,p[C+5],4,-378558),T=s(T,f,v,b,p[C+8],11,-2022574463),b=s(b,T,f,v,p[C+11],16,1839030562),v=s(v,b,T,f,p[C+14],23,-35309556),f=s(f,v,b,T,p[C+1],4,-1530992060),T=s(T,f,v,b,p[C+4],11,1272893353),b=s(b,T,f,v,p[C+7],16,-155497632),v=s(v,b,T,f,p[C+10],23,-1094730640),f=s(f,v,b,T,p[C+13],4,681279174),T=s(T,f,v,b,p[C],11,-358537222),b=s(b,T,f,v,p[C+3],16,-722521979),v=s(v,b,T,f,p[C+6],23,76029189),f=s(f,v,b,T,p[C+9],4,-640364487),T=s(T,f,v,b,p[C+12],11,-421815835),b=s(b,T,f,v,p[C+15],16,530742520),v=s(v,b,T,f,p[C+2],23,-995338651),f=c(f,v,b,T,p[C],6,-198630844),T=c(T,f,v,b,p[C+7],10,1126891415),b=c(b,T,f,v,p[C+14],15,-1416354905),v=c(v,b,T,f,p[C+5],21,-57434055),f=c(f,v,b,T,p[C+12],6,1700485571),T=c(T,f,v,b,p[C+3],10,-1894986606),b=c(b,T,f,v,p[C+10],15,-1051523),v=c(v,b,T,f,p[C+1],21,-2054922799),f=c(f,v,b,T,p[C+8],6,1873313359),T=c(T,f,v,b,p[C+15],10,-30611744),b=c(b,T,f,v,p[C+6],15,-1560198380),v=c(v,b,T,f,p[C+13],21,1309151649),f=c(f,v,b,T,p[C+4],6,-145523070),T=c(T,f,v,b,p[C+11],10,-1120210379),b=c(b,T,f,v,p[C+2],15,718787259),v=c(v,b,T,f,p[C+9],21,-343485551),f=a(f,I),v=a(v,H),b=a(b,Z),T=a(T,P)}return[f,v,b,T]})((function(p){if(p.length===0)return[];const m=8*p.length,f=new Uint32Array(d(m));for(let v=0;v<m;v+=8)f[v>>5]|=(255&p[v/8])<<v%32;return f})(o),8*o.length))};_.default=u},{}],530:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=r("./validate.js"))&&d.__esModule?d:{default:d},l=function(i){if(!(0,a.default)(i))throw TypeError("Invalid UUID");let e;const s=new Uint8Array(16);return s[0]=(e=parseInt(i.slice(0,8),16))>>>24,s[1]=e>>>16&255,s[2]=e>>>8&255,s[3]=255&e,s[4]=(e=parseInt(i.slice(9,13),16))>>>8,s[5]=255&e,s[6]=(e=parseInt(i.slice(14,18),16))>>>8,s[7]=255&e,s[8]=(e=parseInt(i.slice(19,23),16))>>>8,s[9]=255&e,s[10]=(e=parseInt(i.slice(24,36),16))/1099511627776&255,s[11]=e/4294967296&255,s[12]=e>>>24&255,s[13]=e>>>16&255,s[14]=e>>>8&255,s[15]=255&e,s};_.default=l},{"./validate.js":541}],532:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(r,y,_){let d;Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(){if(!d&&(d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(a)};const a=new Uint8Array(16)},{}],534:[function(r,y,_){function d(i,e,s,c){switch(i){case 0:return e&s^~e&c;case 1:return e^s^c;case 2:return e&s^e&c^s&c;case 3:return e^s^c}}function a(i,e){return i<<e|i>>>32-e}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var l=function(i){const e=[1518500249,1859775393,2400959708,3395469782],s=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const p=unescape(encodeURIComponent(i));i=[];for(let m=0;m<p.length;++m)i.push(p.charCodeAt(m))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const c=i.length/4+2,u=Math.ceil(c/16),o=new Array(u);for(let p=0;p<u;++p){const m=new Uint32Array(16);for(let f=0;f<16;++f)m[f]=i[64*p+4*f]<<24|i[64*p+4*f+1]<<16|i[64*p+4*f+2]<<8|i[64*p+4*f+3];o[p]=m}o[u-1][14]=8*(i.length-1)/Math.pow(2,32),o[u-1][14]=Math.floor(o[u-1][14]),o[u-1][15]=8*(i.length-1)&4294967295;for(let p=0;p<u;++p){const m=new Uint32Array(80);for(let I=0;I<16;++I)m[I]=o[p][I];for(let I=16;I<80;++I)m[I]=a(m[I-3]^m[I-8]^m[I-14]^m[I-16],1);let f=s[0],v=s[1],b=s[2],T=s[3],C=s[4];for(let I=0;I<80;++I){const H=Math.floor(I/20),Z=a(f,5)+d(H,v,b,T)+C+e[H]+m[I]>>>0;C=T,T=b,b=a(v,30)>>>0,v=f,f=Z}s[0]=s[0]+f>>>0,s[1]=s[1]+v>>>0,s[2]=s[2]+b>>>0,s[3]=s[3]+T>>>0,s[4]=s[4]+C>>>0}return[s[0]>>24&255,s[0]>>16&255,s[0]>>8&255,255&s[0],s[1]>>24&255,s[1]>>16&255,s[1]>>8&255,255&s[1],s[2]>>24&255,s[2]>>16&255,s[2]>>8&255,255&s[2],s[3]>>24&255,s[3]>>16&255,s[3]>>8&255,255&s[3],s[4]>>24&255,s[4]>>16&255,s[4]>>8&255,255&s[4]]};_.default=l},{}],535:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=r("./validate.js"))&&d.__esModule?d:{default:d};const l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).substr(1));var i=function(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const c=(l[e[s+0]]+l[e[s+1]]+l[e[s+2]]+l[e[s+3]]+"-"+l[e[s+4]]+l[e[s+5]]+"-"+l[e[s+6]]+l[e[s+7]]+"-"+l[e[s+8]]+l[e[s+9]]+"-"+l[e[s+10]]+l[e[s+11]]+l[e[s+12]]+l[e[s+13]]+l[e[s+14]]+l[e[s+15]]).toLowerCase();if(!(0,a.default)(c))throw TypeError("Stringified UUID is invalid");return c};_.default=i},{"./validate.js":541}],536:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=l(r("./rng.js")),a=l(r("./stringify.js"));function l(o){return o&&o.__esModule?o:{default:o}}let i,e,s=0,c=0;var u=function(o,p,m){let f=p&&m||0;const v=p||new Array(16);let b=(o=o||{}).node||i,T=o.clockseq!==void 0?o.clockseq:e;if(b==null||T==null){const q=o.random||(o.rng||d.default)();b==null&&(b=i=[1|q[0],q[1],q[2],q[3],q[4],q[5]]),T==null&&(T=e=16383&(q[6]<<8|q[7]))}let C=o.msecs!==void 0?o.msecs:Date.now(),I=o.nsecs!==void 0?o.nsecs:c+1;const H=C-s+(I-c)/1e4;if(H<0&&o.clockseq===void 0&&(T=T+1&16383),(H<0||C>s)&&o.nsecs===void 0&&(I=0),I>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=C,c=I,e=T,C+=122192928e5;const Z=(1e4*(268435455&C)+I)%4294967296;v[f++]=Z>>>24&255,v[f++]=Z>>>16&255,v[f++]=Z>>>8&255,v[f++]=255&Z;const P=C/4294967296*1e4&268435455;v[f++]=P>>>8&255,v[f++]=255&P,v[f++]=P>>>24&15|16,v[f++]=P>>>16&255,v[f++]=T>>>8|128,v[f++]=255&T;for(let q=0;q<6;++q)v[f+q]=b[q];return p||(0,a.default)(v)};_.default=u},{"./rng.js":533,"./stringify.js":535}],537:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=l(r("./v35.js")),a=l(r("./md5.js"));function l(e){return e&&e.__esModule?e:{default:e}}var i=(0,d.default)("v3",48,a.default);_.default=i},{"./md5.js":529,"./v35.js":538}],538:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(s,c,u){function o(p,m,f,v){if(typeof p=="string"&&(p=(function(T){T=unescape(encodeURIComponent(T));const C=[];for(let I=0;I<T.length;++I)C.push(T.charCodeAt(I));return C})(p)),typeof m=="string"&&(m=(0,a.default)(m)),m.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+p.length);if(b.set(m),b.set(p,m.length),b=u(b),b[6]=15&b[6]|c,b[8]=63&b[8]|128,f){v=v||0;for(let T=0;T<16;++T)f[v+T]=b[T];return f}return(0,d.default)(b)}try{o.name=s}catch{}return o.DNS=i,o.URL=e,o},_.URL=_.DNS=void 0;var d=l(r("./stringify.js")),a=l(r("./parse.js"));function l(s){return s&&s.__esModule?s:{default:s}}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";_.DNS=i;const e="6ba7b811-9dad-11d1-80b4-00c04fd430c8";_.URL=e},{"./parse.js":531,"./stringify.js":535}],539:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=l(r("./rng.js")),a=l(r("./stringify.js"));function l(e){return e&&e.__esModule?e:{default:e}}var i=function(e,s,c){const u=(e=e||{}).random||(e.rng||d.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,s){c=c||0;for(let o=0;o<16;++o)s[c+o]=u[o];return s}return(0,a.default)(u)};_.default=i},{"./rng.js":533,"./stringify.js":535}],540:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=l(r("./v35.js")),a=l(r("./sha1.js"));function l(e){return e&&e.__esModule?e:{default:e}}var i=(0,d.default)("v5",80,a.default);_.default=i},{"./sha1.js":534,"./v35.js":538}],541:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=r("./regex.js"))&&d.__esModule?d:{default:d},l=function(i){return typeof i=="string"&&a.default.test(i)};_.default=l},{"./regex.js":532}],542:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=r("./validate.js"))&&d.__esModule?d:{default:d},l=function(i){if(!(0,a.default)(i))throw TypeError("Invalid UUID");return parseInt(i.substr(14,1),16)};_.default=l},{"./validate.js":541}],543:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.CHAR=`
|
|
35
|
+
\r --�𐀀-`,_.S=` \r
|
|
36
|
+
`,_.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NAME_CHAR="-"+_.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.CHAR_RE=new RegExp("^["+_.CHAR+"]$","u"),_.S_RE=new RegExp("^["+_.S+"]+$","u"),_.NAME_START_CHAR_RE=new RegExp("^["+_.NAME_START_CHAR+"]$","u"),_.NAME_CHAR_RE=new RegExp("^["+_.NAME_CHAR+"]$","u"),_.NAME_RE=new RegExp("^["+_.NAME_START_CHAR+"]["+_.NAME_CHAR+"]*$","u"),_.NMTOKEN_RE=new RegExp("^["+_.NAME_CHAR+"]+$","u");function d(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}_.S_LIST=[32,10,13,9],_.isChar=function(a){return a>=32&&a<=55295||a===10||a===13||a===9||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isS=function(a){return a===32||a===10||a===13||a===9},_.isNameStartChar=d,_.isNameChar=function(a){return d(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],544:[function(r,y,_){Object.defineProperty(_,"__esModule",{value:!0}),_.CHAR="--�𐀀-",_.RESTRICTED_CHAR="-\b\v\f---",_.S=` \r
|
|
37
|
+
`,_.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NAME_CHAR="-"+_.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.CHAR_RE=new RegExp("^["+_.CHAR+"]$","u"),_.RESTRICTED_CHAR_RE=new RegExp("^["+_.RESTRICTED_CHAR+"]$","u"),_.S_RE=new RegExp("^["+_.S+"]+$","u"),_.NAME_START_CHAR_RE=new RegExp("^["+_.NAME_START_CHAR+"]$","u"),_.NAME_CHAR_RE=new RegExp("^["+_.NAME_CHAR+"]$","u"),_.NAME_RE=new RegExp("^["+_.NAME_START_CHAR+"]["+_.NAME_CHAR+"]*$","u"),_.NMTOKEN_RE=new RegExp("^["+_.NAME_CHAR+"]+$","u");function d(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}_.S_LIST=[32,10,13,9],_.isChar=function(a){return a>=1&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isRestrictedChar=function(a){return a>=1&&a<=8||a===11||a===12||a>=14&&a<=31||a>=127&&a<=132||a>=134&&a<=159},_.isCharAndNotRestricted=function(a){return a===9||a===10||a===13||a>31&&a<127||a===133||a>159&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isS=function(a){return a===32||a===10||a===13||a===9},_.isNameStartChar=d,_.isNameChar=function(a){return d(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],545:[function(r,y,_){function d(a){return a>=65&&a<=90||a===95||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}Object.defineProperty(_,"__esModule",{value:!0}),_.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NC_NAME_CHAR="-"+_.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.NC_NAME_START_CHAR_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]$","u"),_.NC_NAME_CHAR_RE=new RegExp("^["+_.NC_NAME_CHAR+"]$","u"),_.NC_NAME_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]["+_.NC_NAME_CHAR+"]*$","u"),_.isNCNameStartChar=d,_.isNCNameChar=function(a){return d(a)||a===45||a===46||a>=48&&a<=57||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}]},{},[15])(15)}))})(ic)),ic.exports}var q1=H1();const $1=A1(q1);function Dt(w,M,r){function y(l,i){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:i,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(w))return;l._zod.traits.add(w),M(l,i);const e=a.prototype,s=Object.keys(e);for(let c=0;c<s.length;c++){const u=s[c];u in l||(l[u]=e[u].bind(l))}}const _=r?.Parent??Object;class d extends _{}Object.defineProperty(d,"name",{value:w});function a(l){var i;const e=r?.Parent?new d:this;y(e,l),(i=e._zod).deferred??(i.deferred=[]);for(const s of e._zod.deferred)s();return e}return Object.defineProperty(a,"init",{value:y}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(w)}),Object.defineProperty(a,"name",{value:w}),a}class ys extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class qp extends Error{constructor(M){super(`Encountered unidirectional transform during encode: ${M}`),this.name="ZodEncodeError"}}const $p={};function mi(w){return $p}function Zp(w){const M=Object.values(w).filter(y=>typeof y=="number");return Object.entries(w).filter(([y,_])=>M.indexOf(+y)===-1).map(([y,_])=>_)}function lc(w,M){return typeof M=="bigint"?M.toString():M}function dc(w){return{get value(){{const M=w();return Object.defineProperty(this,"value",{value:M}),M}}}}function pc(w){return w==null}function mc(w){const M=w.startsWith("^")?1:0,r=w.endsWith("$")?w.length-1:w.length;return w.slice(M,r)}function Z1(w,M){const r=(w.toString().split(".")[1]||"").length,y=M.toString();let _=(y.split(".")[1]||"").length;if(_===0&&/\d?e-\d?/.test(y)){const i=y.match(/\d?e-(\d?)/);i?.[1]&&(_=Number.parseInt(i[1]))}const d=r>_?r:_,a=Number.parseInt(w.toFixed(d).replace(".","")),l=Number.parseInt(M.toFixed(d).replace(".",""));return a%l/10**d}const hp=Symbol("evaluating");function Ue(w,M,r){let y;Object.defineProperty(w,M,{get(){if(y!==hp)return y===void 0&&(y=hp,y=r()),y},set(_){Object.defineProperty(w,M,{value:_})},configurable:!0})}function Pi(w,M,r){Object.defineProperty(w,M,{value:r,writable:!0,enumerable:!0,configurable:!0})}function gi(...w){const M={};for(const r of w){const y=Object.getOwnPropertyDescriptors(r);Object.assign(M,y)}return Object.defineProperties({},M)}function dp(w){return JSON.stringify(w)}function V1(w){return w.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Vp="captureStackTrace"in Error?Error.captureStackTrace:(...w)=>{};function Do(w){return typeof w=="object"&&w!==null&&!Array.isArray(w)}const X1=dc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const w=Function;return new w(""),!0}catch{return!1}});function vs(w){if(Do(w)===!1)return!1;const M=w.constructor;if(M===void 0||typeof M!="function")return!0;const r=M.prototype;return!(Do(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Xp(w){return vs(w)?{...w}:Array.isArray(w)?[...w]:w}const Y1=new Set(["string","number","symbol"]);function ws(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yi(w,M,r){const y=new w._zod.constr(M??w._zod.def);return(!M||r?.parent)&&(y._zod.parent=w),y}function se(w){const M=w;if(!M)return{};if(typeof M=="string")return{error:()=>M};if(M?.message!==void 0){if(M?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");M.error=M.message}return delete M.message,typeof M.error=="string"?{...M,error:()=>M.error}:M}function G1(w){return Object.keys(w).filter(M=>w[M]._zod.optin==="optional"&&w[M]._zod.optout==="optional")}const K1={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function W1(w,M){const r=w._zod.def,y=r.checks;if(y&&y.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=gi(w._zod.def,{get shape(){const a={};for(const l in M){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);M[l]&&(a[l]=r.shape[l])}return Pi(this,"shape",a),a},checks:[]});return yi(w,d)}function Q1(w,M){const r=w._zod.def,y=r.checks;if(y&&y.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=gi(w._zod.def,{get shape(){const a={...w._zod.def.shape};for(const l in M){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);M[l]&&delete a[l]}return Pi(this,"shape",a),a},checks:[]});return yi(w,d)}function J1(w,M){if(!vs(M))throw new Error("Invalid input to extend: expected a plain object");const r=w._zod.def.checks;if(r&&r.length>0){const d=w._zod.def.shape;for(const a in M)if(Object.getOwnPropertyDescriptor(d,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const _=gi(w._zod.def,{get shape(){const d={...w._zod.def.shape,...M};return Pi(this,"shape",d),d}});return yi(w,_)}function tb(w,M){if(!vs(M))throw new Error("Invalid input to safeExtend: expected a plain object");const r=gi(w._zod.def,{get shape(){const y={...w._zod.def.shape,...M};return Pi(this,"shape",y),y}});return yi(w,r)}function eb(w,M){const r=gi(w._zod.def,{get shape(){const y={...w._zod.def.shape,...M._zod.def.shape};return Pi(this,"shape",y),y},get catchall(){return M._zod.def.catchall},checks:[]});return yi(w,r)}function rb(w,M,r){const _=M._zod.def.checks;if(_&&_.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=gi(M._zod.def,{get shape(){const l=M._zod.def.shape,i={...l};if(r)for(const e in r){if(!(e in l))throw new Error(`Unrecognized key: "${e}"`);r[e]&&(i[e]=w?new w({type:"optional",innerType:l[e]}):l[e])}else for(const e in l)i[e]=w?new w({type:"optional",innerType:l[e]}):l[e];return Pi(this,"shape",i),i},checks:[]});return yi(M,a)}function nb(w,M,r){const y=gi(M._zod.def,{get shape(){const _=M._zod.def.shape,d={..._};if(r)for(const a in r){if(!(a in d))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(d[a]=new w({type:"nonoptional",innerType:_[a]}))}else for(const a in _)d[a]=new w({type:"nonoptional",innerType:_[a]});return Pi(this,"shape",d),d}});return yi(M,y)}function gs(w,M=0){if(w.aborted===!0)return!0;for(let r=M;r<w.issues.length;r++)if(w.issues[r]?.continue!==!0)return!0;return!1}function Ui(w,M){return M.map(r=>{var y;return(y=r).path??(y.path=[]),r.path.unshift(w),r})}function Co(w){return typeof w=="string"?w:w?.message}function bi(w,M,r){const y={...w,path:w.path??[]};if(!w.message){const _=Co(w.inst?._zod.def?.error?.(w))??Co(M?.error?.(w))??Co(r.customError?.(w))??Co(r.localeError?.(w))??"Invalid input";y.message=_}return delete y.inst,delete y.continue,M?.reportInput||delete y.input,y}function bc(w){return Array.isArray(w)?"array":typeof w=="string"?"string":"unknown"}function ma(...w){const[M,r,y]=w;return typeof M=="string"?{message:M,code:"custom",input:r,inst:y}:{...M}}const Yp=(w,M)=>{w.name="$ZodError",Object.defineProperty(w,"_zod",{value:w._zod,enumerable:!1}),Object.defineProperty(w,"issues",{value:M,enumerable:!1}),w.message=JSON.stringify(M,lc,2),Object.defineProperty(w,"toString",{value:()=>w.message,enumerable:!1})},Gp=Dt("$ZodError",Yp),qo=Dt("$ZodError",Yp,{Parent:Error});function ib(w,M=r=>r.message){const r={},y=[];for(const _ of w.issues)_.path.length>0?(r[_.path[0]]=r[_.path[0]]||[],r[_.path[0]].push(M(_))):y.push(M(_));return{formErrors:y,fieldErrors:r}}function sb(w,M=r=>r.message){const r={_errors:[]},y=_=>{for(const d of _.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(a=>y({issues:a}));else if(d.code==="invalid_key")y({issues:d.issues});else if(d.code==="invalid_element")y({issues:d.issues});else if(d.path.length===0)r._errors.push(M(d));else{let a=r,l=0;for(;l<d.path.length;){const i=d.path[l];l===d.path.length-1?(a[i]=a[i]||{_errors:[]},a[i]._errors.push(M(d))):a[i]=a[i]||{_errors:[]},a=a[i],l++}}};return y(w),r}const $o=w=>(M,r,y,_)=>{const d=y?Object.assign(y,{async:!1}):{async:!1},a=M._zod.run({value:r,issues:[]},d);if(a instanceof Promise)throw new ys;if(a.issues.length){const l=new(_?.Err??w)(a.issues.map(i=>bi(i,d,mi())));throw Vp(l,_?.callee),l}return a.value},pp=$o(qo),Zo=w=>async(M,r,y,_)=>{const d=y?Object.assign(y,{async:!0}):{async:!0};let a=M._zod.run({value:r,issues:[]},d);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new(_?.Err??w)(a.issues.map(i=>bi(i,d,mi())));throw Vp(l,_?.callee),l}return a.value},mp=Zo(qo),Vo=w=>(M,r,y)=>{const _=y?{...y,async:!1}:{async:!1},d=M._zod.run({value:r,issues:[]},_);if(d instanceof Promise)throw new ys;return d.issues.length?{success:!1,error:new(w??Gp)(d.issues.map(a=>bi(a,_,mi())))}:{success:!0,data:d.value}},ab=Vo(qo),Xo=w=>async(M,r,y)=>{const _=y?Object.assign(y,{async:!0}):{async:!0};let d=M._zod.run({value:r,issues:[]},_);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new w(d.issues.map(a=>bi(a,_,mi())))}:{success:!0,data:d.value}},ob=Xo(qo),lb=w=>(M,r,y)=>{const _=y?Object.assign(y,{direction:"backward"}):{direction:"backward"};return $o(w)(M,r,_)},ub=w=>(M,r,y)=>$o(w)(M,r,y),cb=w=>async(M,r,y)=>{const _=y?Object.assign(y,{direction:"backward"}):{direction:"backward"};return Zo(w)(M,r,_)},fb=w=>async(M,r,y)=>Zo(w)(M,r,y),hb=w=>(M,r,y)=>{const _=y?Object.assign(y,{direction:"backward"}):{direction:"backward"};return Vo(w)(M,r,_)},db=w=>(M,r,y)=>Vo(w)(M,r,y),pb=w=>async(M,r,y)=>{const _=y?Object.assign(y,{direction:"backward"}):{direction:"backward"};return Xo(w)(M,r,_)},mb=w=>async(M,r,y)=>Xo(w)(M,r,y),bb=/^[cC][^\s-]{8,}$/,gb=/^[0-9a-z]+$/,yb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,vb=/^[0-9a-vA-V]{20}$/,wb=/^[A-Za-z0-9]{27}$/,_b=/^[a-zA-Z0-9_-]{21}$/,xb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Sb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,bp=w=>w?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${w}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Eb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Tb(){return new RegExp(kb,"u")}const Ab=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Cb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ob=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Kp=/^[A-Za-z0-9_-]*$/,jb=/^\+[1-9]\d{6,14}$/,Wp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Nb=new RegExp(`^${Wp}$`);function Qp(w){const M="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof w.precision=="number"?w.precision===-1?`${M}`:w.precision===0?`${M}:[0-5]\\d`:`${M}:[0-5]\\d\\.\\d{${w.precision}}`:`${M}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zb(w){return new RegExp(`^${Qp(w)}$`)}function Bb(w){const M=Qp({precision:w.precision}),r=["Z"];w.local&&r.push(""),w.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const y=`${M}(?:${r.join("|")})`;return new RegExp(`^${Wp}T(?:${y})$`)}const Db=w=>{const M=w?`[\\s\\S]{${w?.minimum??0},${w?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${M}$`)},Ib=/^-?\d+$/,Jp=/^-?\d+(?:\.\d+)?$/,Lb=/^(?:true|false)$/i,Ub=/^[^A-Z]*$/,Fb=/^[^a-z]*$/,qr=Dt("$ZodCheck",(w,M)=>{var r;w._zod??(w._zod={}),w._zod.def=M,(r=w._zod).onattach??(r.onattach=[])}),t0={number:"number",bigint:"bigint",object:"date"},e0=Dt("$ZodCheckLessThan",(w,M)=>{qr.init(w,M);const r=t0[typeof M.value];w._zod.onattach.push(y=>{const _=y._zod.bag,d=(M.inclusive?_.maximum:_.exclusiveMaximum)??Number.POSITIVE_INFINITY;M.value<d&&(M.inclusive?_.maximum=M.value:_.exclusiveMaximum=M.value)}),w._zod.check=y=>{(M.inclusive?y.value<=M.value:y.value<M.value)||y.issues.push({origin:r,code:"too_big",maximum:typeof M.value=="object"?M.value.getTime():M.value,input:y.value,inclusive:M.inclusive,inst:w,continue:!M.abort})}}),r0=Dt("$ZodCheckGreaterThan",(w,M)=>{qr.init(w,M);const r=t0[typeof M.value];w._zod.onattach.push(y=>{const _=y._zod.bag,d=(M.inclusive?_.minimum:_.exclusiveMinimum)??Number.NEGATIVE_INFINITY;M.value>d&&(M.inclusive?_.minimum=M.value:_.exclusiveMinimum=M.value)}),w._zod.check=y=>{(M.inclusive?y.value>=M.value:y.value>M.value)||y.issues.push({origin:r,code:"too_small",minimum:typeof M.value=="object"?M.value.getTime():M.value,input:y.value,inclusive:M.inclusive,inst:w,continue:!M.abort})}}),Pb=Dt("$ZodCheckMultipleOf",(w,M)=>{qr.init(w,M),w._zod.onattach.push(r=>{var y;(y=r._zod.bag).multipleOf??(y.multipleOf=M.value)}),w._zod.check=r=>{if(typeof r.value!=typeof M.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%M.value===BigInt(0):Z1(r.value,M.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:M.value,input:r.value,inst:w,continue:!M.abort})}}),Hb=Dt("$ZodCheckNumberFormat",(w,M)=>{qr.init(w,M),M.format=M.format||"float64";const r=M.format?.includes("int"),y=r?"int":"number",[_,d]=K1[M.format];w._zod.onattach.push(a=>{const l=a._zod.bag;l.format=M.format,l.minimum=_,l.maximum=d,r&&(l.pattern=Ib)}),w._zod.check=a=>{const l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:y,format:M.format,code:"invalid_type",continue:!1,input:l,inst:w});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:w,origin:y,inclusive:!0,continue:!M.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:w,origin:y,inclusive:!0,continue:!M.abort});return}}l<_&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:_,inclusive:!0,inst:w,continue:!M.abort}),l>d&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:d,inclusive:!0,inst:w,continue:!M.abort})}}),qb=Dt("$ZodCheckMaxLength",(w,M)=>{var r;qr.init(w,M),(r=w._zod.def).when??(r.when=y=>{const _=y.value;return!pc(_)&&_.length!==void 0}),w._zod.onattach.push(y=>{const _=y._zod.bag.maximum??Number.POSITIVE_INFINITY;M.maximum<_&&(y._zod.bag.maximum=M.maximum)}),w._zod.check=y=>{const _=y.value;if(_.length<=M.maximum)return;const a=bc(_);y.issues.push({origin:a,code:"too_big",maximum:M.maximum,inclusive:!0,input:_,inst:w,continue:!M.abort})}}),$b=Dt("$ZodCheckMinLength",(w,M)=>{var r;qr.init(w,M),(r=w._zod.def).when??(r.when=y=>{const _=y.value;return!pc(_)&&_.length!==void 0}),w._zod.onattach.push(y=>{const _=y._zod.bag.minimum??Number.NEGATIVE_INFINITY;M.minimum>_&&(y._zod.bag.minimum=M.minimum)}),w._zod.check=y=>{const _=y.value;if(_.length>=M.minimum)return;const a=bc(_);y.issues.push({origin:a,code:"too_small",minimum:M.minimum,inclusive:!0,input:_,inst:w,continue:!M.abort})}}),Zb=Dt("$ZodCheckLengthEquals",(w,M)=>{var r;qr.init(w,M),(r=w._zod.def).when??(r.when=y=>{const _=y.value;return!pc(_)&&_.length!==void 0}),w._zod.onattach.push(y=>{const _=y._zod.bag;_.minimum=M.length,_.maximum=M.length,_.length=M.length}),w._zod.check=y=>{const _=y.value,d=_.length;if(d===M.length)return;const a=bc(_),l=d>M.length;y.issues.push({origin:a,...l?{code:"too_big",maximum:M.length}:{code:"too_small",minimum:M.length},inclusive:!0,exact:!0,input:y.value,inst:w,continue:!M.abort})}}),Yo=Dt("$ZodCheckStringFormat",(w,M)=>{var r,y;qr.init(w,M),w._zod.onattach.push(_=>{const d=_._zod.bag;d.format=M.format,M.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(M.pattern))}),M.pattern?(r=w._zod).check??(r.check=_=>{M.pattern.lastIndex=0,!M.pattern.test(_.value)&&_.issues.push({origin:"string",code:"invalid_format",format:M.format,input:_.value,...M.pattern?{pattern:M.pattern.toString()}:{},inst:w,continue:!M.abort})}):(y=w._zod).check??(y.check=()=>{})}),Vb=Dt("$ZodCheckRegex",(w,M)=>{Yo.init(w,M),w._zod.check=r=>{M.pattern.lastIndex=0,!M.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:M.pattern.toString(),inst:w,continue:!M.abort})}}),Xb=Dt("$ZodCheckLowerCase",(w,M)=>{M.pattern??(M.pattern=Ub),Yo.init(w,M)}),Yb=Dt("$ZodCheckUpperCase",(w,M)=>{M.pattern??(M.pattern=Fb),Yo.init(w,M)}),Gb=Dt("$ZodCheckIncludes",(w,M)=>{qr.init(w,M);const r=ws(M.includes),y=new RegExp(typeof M.position=="number"?`^.{${M.position}}${r}`:r);M.pattern=y,w._zod.onattach.push(_=>{const d=_._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(y)}),w._zod.check=_=>{_.value.includes(M.includes,M.position)||_.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:M.includes,input:_.value,inst:w,continue:!M.abort})}}),Kb=Dt("$ZodCheckStartsWith",(w,M)=>{qr.init(w,M);const r=new RegExp(`^${ws(M.prefix)}.*`);M.pattern??(M.pattern=r),w._zod.onattach.push(y=>{const _=y._zod.bag;_.patterns??(_.patterns=new Set),_.patterns.add(r)}),w._zod.check=y=>{y.value.startsWith(M.prefix)||y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:M.prefix,input:y.value,inst:w,continue:!M.abort})}}),Wb=Dt("$ZodCheckEndsWith",(w,M)=>{qr.init(w,M);const r=new RegExp(`.*${ws(M.suffix)}$`);M.pattern??(M.pattern=r),w._zod.onattach.push(y=>{const _=y._zod.bag;_.patterns??(_.patterns=new Set),_.patterns.add(r)}),w._zod.check=y=>{y.value.endsWith(M.suffix)||y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:M.suffix,input:y.value,inst:w,continue:!M.abort})}}),Qb=Dt("$ZodCheckOverwrite",(w,M)=>{qr.init(w,M),w._zod.check=r=>{r.value=M.tx(r.value)}});class Jb{constructor(M=[]){this.content=[],this.indent=0,this&&(this.args=M)}indented(M){this.indent+=1,M(this),this.indent-=1}write(M){if(typeof M=="function"){M(this,{execution:"sync"}),M(this,{execution:"async"});return}const y=M.split(`
|
|
38
|
+
`).filter(a=>a),_=Math.min(...y.map(a=>a.length-a.trimStart().length)),d=y.map(a=>a.slice(_)).map(a=>" ".repeat(this.indent*2)+a);for(const a of d)this.content.push(a)}compile(){const M=Function,r=this?.args,_=[...(this?.content??[""]).map(d=>` ${d}`)];return new M(...r,_.join(`
|
|
39
|
+
`))}}const tg={major:4,minor:3,patch:5},Je=Dt("$ZodType",(w,M)=>{var r;w??(w={}),w._zod.def=M,w._zod.bag=w._zod.bag||{},w._zod.version=tg;const y=[...w._zod.def.checks??[]];w._zod.traits.has("$ZodCheck")&&y.unshift(w);for(const _ of y)for(const d of _._zod.onattach)d(w);if(y.length===0)(r=w._zod).deferred??(r.deferred=[]),w._zod.deferred?.push(()=>{w._zod.run=w._zod.parse});else{const _=(a,l,i)=>{let e=gs(a),s;for(const c of l){if(c._zod.def.when){if(!c._zod.def.when(a))continue}else if(e)continue;const u=a.issues.length,o=c._zod.check(a);if(o instanceof Promise&&i?.async===!1)throw new ys;if(s||o instanceof Promise)s=(s??Promise.resolve()).then(async()=>{await o,a.issues.length!==u&&(e||(e=gs(a,u)))});else{if(a.issues.length===u)continue;e||(e=gs(a,u))}}return s?s.then(()=>a):a},d=(a,l,i)=>{if(gs(a))return a.aborted=!0,a;const e=_(l,y,i);if(e instanceof Promise){if(i.async===!1)throw new ys;return e.then(s=>w._zod.parse(s,i))}return w._zod.parse(e,i)};w._zod.run=(a,l)=>{if(l.skipChecks)return w._zod.parse(a,l);if(l.direction==="backward"){const e=w._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return e instanceof Promise?e.then(s=>d(s,a,l)):d(e,a,l)}const i=w._zod.parse(a,l);if(i instanceof Promise){if(l.async===!1)throw new ys;return i.then(e=>_(e,y,l))}return _(i,y,l)}}Ue(w,"~standard",()=>({validate:_=>{try{const d=ab(w,_);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return ob(w,_).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),gc=Dt("$ZodString",(w,M)=>{Je.init(w,M),w._zod.pattern=[...w?._zod.bag?.patterns??[]].pop()??Db(w._zod.bag),w._zod.parse=(r,y)=>{if(M.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:w}),r}}),or=Dt("$ZodStringFormat",(w,M)=>{Yo.init(w,M),gc.init(w,M)}),eg=Dt("$ZodGUID",(w,M)=>{M.pattern??(M.pattern=Sb),or.init(w,M)}),rg=Dt("$ZodUUID",(w,M)=>{if(M.version){const y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[M.version];if(y===void 0)throw new Error(`Invalid UUID version: "${M.version}"`);M.pattern??(M.pattern=bp(y))}else M.pattern??(M.pattern=bp());or.init(w,M)}),ng=Dt("$ZodEmail",(w,M)=>{M.pattern??(M.pattern=Eb),or.init(w,M)}),ig=Dt("$ZodURL",(w,M)=>{or.init(w,M),w._zod.check=r=>{try{const y=r.value.trim(),_=new URL(y);M.hostname&&(M.hostname.lastIndex=0,M.hostname.test(_.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:M.hostname.source,input:r.value,inst:w,continue:!M.abort})),M.protocol&&(M.protocol.lastIndex=0,M.protocol.test(_.protocol.endsWith(":")?_.protocol.slice(0,-1):_.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:M.protocol.source,input:r.value,inst:w,continue:!M.abort})),M.normalize?r.value=_.href:r.value=y;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:w,continue:!M.abort})}}}),sg=Dt("$ZodEmoji",(w,M)=>{M.pattern??(M.pattern=Tb()),or.init(w,M)}),ag=Dt("$ZodNanoID",(w,M)=>{M.pattern??(M.pattern=_b),or.init(w,M)}),og=Dt("$ZodCUID",(w,M)=>{M.pattern??(M.pattern=bb),or.init(w,M)}),lg=Dt("$ZodCUID2",(w,M)=>{M.pattern??(M.pattern=gb),or.init(w,M)}),ug=Dt("$ZodULID",(w,M)=>{M.pattern??(M.pattern=yb),or.init(w,M)}),cg=Dt("$ZodXID",(w,M)=>{M.pattern??(M.pattern=vb),or.init(w,M)}),fg=Dt("$ZodKSUID",(w,M)=>{M.pattern??(M.pattern=wb),or.init(w,M)}),hg=Dt("$ZodISODateTime",(w,M)=>{M.pattern??(M.pattern=Bb(M)),or.init(w,M)}),dg=Dt("$ZodISODate",(w,M)=>{M.pattern??(M.pattern=Nb),or.init(w,M)}),pg=Dt("$ZodISOTime",(w,M)=>{M.pattern??(M.pattern=zb(M)),or.init(w,M)}),mg=Dt("$ZodISODuration",(w,M)=>{M.pattern??(M.pattern=xb),or.init(w,M)}),bg=Dt("$ZodIPv4",(w,M)=>{M.pattern??(M.pattern=Ab),or.init(w,M),w._zod.bag.format="ipv4"}),gg=Dt("$ZodIPv6",(w,M)=>{M.pattern??(M.pattern=Mb),or.init(w,M),w._zod.bag.format="ipv6",w._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:w,continue:!M.abort})}}}),yg=Dt("$ZodCIDRv4",(w,M)=>{M.pattern??(M.pattern=Cb),or.init(w,M)}),vg=Dt("$ZodCIDRv6",(w,M)=>{M.pattern??(M.pattern=Ob),or.init(w,M),w._zod.check=r=>{const y=r.value.split("/");try{if(y.length!==2)throw new Error;const[_,d]=y;if(!d)throw new Error;const a=Number(d);if(`${a}`!==d)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${_}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:w,continue:!M.abort})}}});function n0(w){if(w==="")return!0;if(w.length%4!==0)return!1;try{return atob(w),!0}catch{return!1}}const wg=Dt("$ZodBase64",(w,M)=>{M.pattern??(M.pattern=Rb),or.init(w,M),w._zod.bag.contentEncoding="base64",w._zod.check=r=>{n0(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:w,continue:!M.abort})}});function _g(w){if(!Kp.test(w))return!1;const M=w.replace(/[-_]/g,y=>y==="-"?"+":"/"),r=M.padEnd(Math.ceil(M.length/4)*4,"=");return n0(r)}const xg=Dt("$ZodBase64URL",(w,M)=>{M.pattern??(M.pattern=Kp),or.init(w,M),w._zod.bag.contentEncoding="base64url",w._zod.check=r=>{_g(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:w,continue:!M.abort})}}),Sg=Dt("$ZodE164",(w,M)=>{M.pattern??(M.pattern=jb),or.init(w,M)});function Eg(w,M=null){try{const r=w.split(".");if(r.length!==3)return!1;const[y]=r;if(!y)return!1;const _=JSON.parse(atob(y));return!("typ"in _&&_?.typ!=="JWT"||!_.alg||M&&(!("alg"in _)||_.alg!==M))}catch{return!1}}const kg=Dt("$ZodJWT",(w,M)=>{or.init(w,M),w._zod.check=r=>{Eg(r.value,M.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:w,continue:!M.abort})}}),i0=Dt("$ZodNumber",(w,M)=>{Je.init(w,M),w._zod.pattern=w._zod.bag.pattern??Jp,w._zod.parse=(r,y)=>{if(M.coerce)try{r.value=Number(r.value)}catch{}const _=r.value;if(typeof _=="number"&&!Number.isNaN(_)&&Number.isFinite(_))return r;const d=typeof _=="number"?Number.isNaN(_)?"NaN":Number.isFinite(_)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:_,inst:w,...d?{received:d}:{}}),r}}),Tg=Dt("$ZodNumberFormat",(w,M)=>{Hb.init(w,M),i0.init(w,M)}),Ag=Dt("$ZodBoolean",(w,M)=>{Je.init(w,M),w._zod.pattern=Lb,w._zod.parse=(r,y)=>{if(M.coerce)try{r.value=!!r.value}catch{}const _=r.value;return typeof _=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:_,inst:w}),r}}),Mg=Dt("$ZodAny",(w,M)=>{Je.init(w,M),w._zod.parse=r=>r}),Cg=Dt("$ZodUnknown",(w,M)=>{Je.init(w,M),w._zod.parse=r=>r}),Og=Dt("$ZodNever",(w,M)=>{Je.init(w,M),w._zod.parse=(r,y)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:w}),r)});function gp(w,M,r){w.issues.length&&M.issues.push(...Ui(r,w.issues)),M.value[r]=w.value}const Rg=Dt("$ZodArray",(w,M)=>{Je.init(w,M),w._zod.parse=(r,y)=>{const _=r.value;if(!Array.isArray(_))return r.issues.push({expected:"array",code:"invalid_type",input:_,inst:w}),r;r.value=Array(_.length);const d=[];for(let a=0;a<_.length;a++){const l=_[a],i=M.element._zod.run({value:l,issues:[]},y);i instanceof Promise?d.push(i.then(e=>gp(e,r,a))):gp(i,r,a)}return d.length?Promise.all(d).then(()=>r):r}});function Io(w,M,r,y,_){if(w.issues.length){if(_&&!(r in y))return;M.issues.push(...Ui(r,w.issues))}w.value===void 0?r in y&&(M.value[r]=void 0):M.value[r]=w.value}function s0(w){const M=Object.keys(w.shape);for(const y of M)if(!w.shape?.[y]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const r=G1(w.shape);return{...w,keys:M,keySet:new Set(M),numKeys:M.length,optionalKeys:new Set(r)}}function a0(w,M,r,y,_,d){const a=[],l=_.keySet,i=_.catchall._zod,e=i.def.type,s=i.optout==="optional";for(const c in M){if(l.has(c))continue;if(e==="never"){a.push(c);continue}const u=i.run({value:M[c],issues:[]},y);u instanceof Promise?w.push(u.then(o=>Io(o,r,c,M,s))):Io(u,r,c,M,s)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:M,inst:d}),w.length?Promise.all(w).then(()=>r):r}const jg=Dt("$ZodObject",(w,M)=>{if(Je.init(w,M),!Object.getOwnPropertyDescriptor(M,"shape")?.get){const l=M.shape;Object.defineProperty(M,"shape",{get:()=>{const i={...l};return Object.defineProperty(M,"shape",{value:i}),i}})}const y=dc(()=>s0(M));Ue(w._zod,"propValues",()=>{const l=M.shape,i={};for(const e in l){const s=l[e]._zod;if(s.values){i[e]??(i[e]=new Set);for(const c of s.values)i[e].add(c)}}return i});const _=Do,d=M.catchall;let a;w._zod.parse=(l,i)=>{a??(a=y.value);const e=l.value;if(!_(e))return l.issues.push({expected:"object",code:"invalid_type",input:e,inst:w}),l;l.value={};const s=[],c=a.shape;for(const u of a.keys){const o=c[u],p=o._zod.optout==="optional",m=o._zod.run({value:e[u],issues:[]},i);m instanceof Promise?s.push(m.then(f=>Io(f,l,u,e,p))):Io(m,l,u,e,p)}return d?a0(s,e,l,i,y.value,w):s.length?Promise.all(s).then(()=>l):l}}),Ng=Dt("$ZodObjectJIT",(w,M)=>{jg.init(w,M);const r=w._zod.parse,y=dc(()=>s0(M)),_=u=>{const o=new Jb(["shape","payload","ctx"]),p=y.value,m=T=>{const C=dp(T);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};o.write("const input = payload.value;");const f=Object.create(null);let v=0;for(const T of p.keys)f[T]=`key_${v++}`;o.write("const newResult = {};");for(const T of p.keys){const C=f[T],I=dp(T),Z=u[T]?._zod?.optout==="optional";o.write(`const ${C} = ${m(T)};`),Z?o.write(`
|
|
40
|
+
if (${C}.issues.length) {
|
|
41
|
+
if (${I} in input) {
|
|
42
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
43
|
+
...iss,
|
|
44
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (${C}.value === undefined) {
|
|
50
|
+
if (${I} in input) {
|
|
51
|
+
newResult[${I}] = undefined;
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
newResult[${I}] = ${C}.value;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
`):o.write(`
|
|
58
|
+
if (${C}.issues.length) {
|
|
59
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
60
|
+
...iss,
|
|
61
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
62
|
+
})));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (${C}.value === undefined) {
|
|
66
|
+
if (${I} in input) {
|
|
67
|
+
newResult[${I}] = undefined;
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
newResult[${I}] = ${C}.value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
`)}o.write("payload.value = newResult;"),o.write("return payload;");const b=o.compile();return(T,C)=>b(u,T,C)};let d;const a=Do,l=!$p.jitless,e=l&&X1.value,s=M.catchall;let c;w._zod.parse=(u,o)=>{c??(c=y.value);const p=u.value;return a(p)?l&&e&&o?.async===!1&&o.jitless!==!0?(d||(d=_(M.shape)),u=d(u,o),s?a0([],p,u,o,c,w):u):r(u,o):(u.issues.push({expected:"object",code:"invalid_type",input:p,inst:w}),u)}});function yp(w,M,r,y){for(const d of w)if(d.issues.length===0)return M.value=d.value,M;const _=w.filter(d=>!gs(d));return _.length===1?(M.value=_[0].value,_[0]):(M.issues.push({code:"invalid_union",input:M.value,inst:r,errors:w.map(d=>d.issues.map(a=>bi(a,y,mi())))}),M)}const zg=Dt("$ZodUnion",(w,M)=>{Je.init(w,M),Ue(w._zod,"optin",()=>M.options.some(_=>_._zod.optin==="optional")?"optional":void 0),Ue(w._zod,"optout",()=>M.options.some(_=>_._zod.optout==="optional")?"optional":void 0),Ue(w._zod,"values",()=>{if(M.options.every(_=>_._zod.values))return new Set(M.options.flatMap(_=>Array.from(_._zod.values)))}),Ue(w._zod,"pattern",()=>{if(M.options.every(_=>_._zod.pattern)){const _=M.options.map(d=>d._zod.pattern);return new RegExp(`^(${_.map(d=>mc(d.source)).join("|")})$`)}});const r=M.options.length===1,y=M.options[0]._zod.run;w._zod.parse=(_,d)=>{if(r)return y(_,d);let a=!1;const l=[];for(const i of M.options){const e=i._zod.run({value:_.value,issues:[]},d);if(e instanceof Promise)l.push(e),a=!0;else{if(e.issues.length===0)return e;l.push(e)}}return a?Promise.all(l).then(i=>yp(i,_,w,d)):yp(l,_,w,d)}}),Bg=Dt("$ZodIntersection",(w,M)=>{Je.init(w,M),w._zod.parse=(r,y)=>{const _=r.value,d=M.left._zod.run({value:_,issues:[]},y),a=M.right._zod.run({value:_,issues:[]},y);return d instanceof Promise||a instanceof Promise?Promise.all([d,a]).then(([i,e])=>vp(r,i,e)):vp(r,d,a)}});function uc(w,M){if(w===M)return{valid:!0,data:w};if(w instanceof Date&&M instanceof Date&&+w==+M)return{valid:!0,data:w};if(vs(w)&&vs(M)){const r=Object.keys(M),y=Object.keys(w).filter(d=>r.indexOf(d)!==-1),_={...w,...M};for(const d of y){const a=uc(w[d],M[d]);if(!a.valid)return{valid:!1,mergeErrorPath:[d,...a.mergeErrorPath]};_[d]=a.data}return{valid:!0,data:_}}if(Array.isArray(w)&&Array.isArray(M)){if(w.length!==M.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let y=0;y<w.length;y++){const _=w[y],d=M[y],a=uc(_,d);if(!a.valid)return{valid:!1,mergeErrorPath:[y,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function vp(w,M,r){const y=new Map;let _;for(const l of M.issues)if(l.code==="unrecognized_keys"){_??(_=l);for(const i of l.keys)y.has(i)||y.set(i,{}),y.get(i).l=!0}else w.issues.push(l);for(const l of r.issues)if(l.code==="unrecognized_keys")for(const i of l.keys)y.has(i)||y.set(i,{}),y.get(i).r=!0;else w.issues.push(l);const d=[...y].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(d.length&&_&&w.issues.push({..._,keys:d}),gs(w))return w;const a=uc(M.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return w.value=a.data,w}const o0=Dt("$ZodTuple",(w,M)=>{Je.init(w,M);const r=M.items;w._zod.parse=(y,_)=>{const d=y.value;if(!Array.isArray(d))return y.issues.push({input:d,inst:w,expected:"tuple",code:"invalid_type"}),y;y.value=[];const a=[],l=[...r].reverse().findIndex(s=>s._zod.optin!=="optional"),i=l===-1?0:r.length-l;if(!M.rest){const s=d.length>r.length,c=d.length<i-1;if(s||c)return y.issues.push({...s?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:d,inst:w,origin:"array"}),y}let e=-1;for(const s of r){if(e++,e>=d.length&&e>=i)continue;const c=s._zod.run({value:d[e],issues:[]},_);c instanceof Promise?a.push(c.then(u=>Oo(u,y,e))):Oo(c,y,e)}if(M.rest){const s=d.slice(r.length);for(const c of s){e++;const u=M.rest._zod.run({value:c,issues:[]},_);u instanceof Promise?a.push(u.then(o=>Oo(o,y,e))):Oo(u,y,e)}}return a.length?Promise.all(a).then(()=>y):y}});function Oo(w,M,r){w.issues.length&&M.issues.push(...Ui(r,w.issues)),M.value[r]=w.value}const Dg=Dt("$ZodRecord",(w,M)=>{Je.init(w,M),w._zod.parse=(r,y)=>{const _=r.value;if(!vs(_))return r.issues.push({expected:"record",code:"invalid_type",input:_,inst:w}),r;const d=[],a=M.keyType._zod.values;if(a){r.value={};const l=new Set;for(const e of a)if(typeof e=="string"||typeof e=="number"||typeof e=="symbol"){l.add(typeof e=="number"?e.toString():e);const s=M.valueType._zod.run({value:_[e],issues:[]},y);s instanceof Promise?d.push(s.then(c=>{c.issues.length&&r.issues.push(...Ui(e,c.issues)),r.value[e]=c.value})):(s.issues.length&&r.issues.push(...Ui(e,s.issues)),r.value[e]=s.value)}let i;for(const e in _)l.has(e)||(i=i??[],i.push(e));i&&i.length>0&&r.issues.push({code:"unrecognized_keys",input:_,inst:w,keys:i})}else{r.value={};for(const l of Reflect.ownKeys(_)){if(l==="__proto__")continue;let i=M.keyType._zod.run({value:l,issues:[]},y);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Jp.test(l)&&i.issues.length&&i.issues.some(c=>c.code==="invalid_type"&&c.expected==="number")){const c=M.keyType._zod.run({value:Number(l),issues:[]},y);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");c.issues.length===0&&(i=c)}if(i.issues.length){M.mode==="loose"?r.value[l]=_[l]:r.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(c=>bi(c,y,mi())),input:l,path:[l],inst:w});continue}const s=M.valueType._zod.run({value:_[l],issues:[]},y);s instanceof Promise?d.push(s.then(c=>{c.issues.length&&r.issues.push(...Ui(l,c.issues)),r.value[i.value]=c.value})):(s.issues.length&&r.issues.push(...Ui(l,s.issues)),r.value[i.value]=s.value)}}return d.length?Promise.all(d).then(()=>r):r}}),Ig=Dt("$ZodEnum",(w,M)=>{Je.init(w,M);const r=Zp(M.entries),y=new Set(r);w._zod.values=y,w._zod.pattern=new RegExp(`^(${r.filter(_=>Y1.has(typeof _)).map(_=>typeof _=="string"?ws(_):_.toString()).join("|")})$`),w._zod.parse=(_,d)=>{const a=_.value;return y.has(a)||_.issues.push({code:"invalid_value",values:r,input:a,inst:w}),_}}),Lg=Dt("$ZodLiteral",(w,M)=>{if(Je.init(w,M),M.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(M.values);w._zod.values=r,w._zod.pattern=new RegExp(`^(${M.values.map(y=>typeof y=="string"?ws(y):y?ws(y.toString()):String(y)).join("|")})$`),w._zod.parse=(y,_)=>{const d=y.value;return r.has(d)||y.issues.push({code:"invalid_value",values:M.values,input:d,inst:w}),y}}),Ug=Dt("$ZodTransform",(w,M)=>{Je.init(w,M),w._zod.parse=(r,y)=>{if(y.direction==="backward")throw new qp(w.constructor.name);const _=M.transform(r.value,r);if(y.async)return(_ instanceof Promise?_:Promise.resolve(_)).then(a=>(r.value=a,r));if(_ instanceof Promise)throw new ys;return r.value=_,r}});function wp(w,M){return w.issues.length&&M===void 0?{issues:[],value:void 0}:w}const l0=Dt("$ZodOptional",(w,M)=>{Je.init(w,M),w._zod.optin="optional",w._zod.optout="optional",Ue(w._zod,"values",()=>M.innerType._zod.values?new Set([...M.innerType._zod.values,void 0]):void 0),Ue(w._zod,"pattern",()=>{const r=M.innerType._zod.pattern;return r?new RegExp(`^(${mc(r.source)})?$`):void 0}),w._zod.parse=(r,y)=>{if(M.innerType._zod.optin==="optional"){const _=M.innerType._zod.run(r,y);return _ instanceof Promise?_.then(d=>wp(d,r.value)):wp(_,r.value)}return r.value===void 0?r:M.innerType._zod.run(r,y)}}),Fg=Dt("$ZodExactOptional",(w,M)=>{l0.init(w,M),Ue(w._zod,"values",()=>M.innerType._zod.values),Ue(w._zod,"pattern",()=>M.innerType._zod.pattern),w._zod.parse=(r,y)=>M.innerType._zod.run(r,y)}),Pg=Dt("$ZodNullable",(w,M)=>{Je.init(w,M),Ue(w._zod,"optin",()=>M.innerType._zod.optin),Ue(w._zod,"optout",()=>M.innerType._zod.optout),Ue(w._zod,"pattern",()=>{const r=M.innerType._zod.pattern;return r?new RegExp(`^(${mc(r.source)}|null)$`):void 0}),Ue(w._zod,"values",()=>M.innerType._zod.values?new Set([...M.innerType._zod.values,null]):void 0),w._zod.parse=(r,y)=>r.value===null?r:M.innerType._zod.run(r,y)}),Hg=Dt("$ZodDefault",(w,M)=>{Je.init(w,M),w._zod.optin="optional",Ue(w._zod,"values",()=>M.innerType._zod.values),w._zod.parse=(r,y)=>{if(y.direction==="backward")return M.innerType._zod.run(r,y);if(r.value===void 0)return r.value=M.defaultValue,r;const _=M.innerType._zod.run(r,y);return _ instanceof Promise?_.then(d=>_p(d,M)):_p(_,M)}});function _p(w,M){return w.value===void 0&&(w.value=M.defaultValue),w}const qg=Dt("$ZodPrefault",(w,M)=>{Je.init(w,M),w._zod.optin="optional",Ue(w._zod,"values",()=>M.innerType._zod.values),w._zod.parse=(r,y)=>(y.direction==="backward"||r.value===void 0&&(r.value=M.defaultValue),M.innerType._zod.run(r,y))}),$g=Dt("$ZodNonOptional",(w,M)=>{Je.init(w,M),Ue(w._zod,"values",()=>{const r=M.innerType._zod.values;return r?new Set([...r].filter(y=>y!==void 0)):void 0}),w._zod.parse=(r,y)=>{const _=M.innerType._zod.run(r,y);return _ instanceof Promise?_.then(d=>xp(d,w)):xp(_,w)}});function xp(w,M){return!w.issues.length&&w.value===void 0&&w.issues.push({code:"invalid_type",expected:"nonoptional",input:w.value,inst:M}),w}const Zg=Dt("$ZodCatch",(w,M)=>{Je.init(w,M),Ue(w._zod,"optin",()=>M.innerType._zod.optin),Ue(w._zod,"optout",()=>M.innerType._zod.optout),Ue(w._zod,"values",()=>M.innerType._zod.values),w._zod.parse=(r,y)=>{if(y.direction==="backward")return M.innerType._zod.run(r,y);const _=M.innerType._zod.run(r,y);return _ instanceof Promise?_.then(d=>(r.value=d.value,d.issues.length&&(r.value=M.catchValue({...r,error:{issues:d.issues.map(a=>bi(a,y,mi()))},input:r.value}),r.issues=[]),r)):(r.value=_.value,_.issues.length&&(r.value=M.catchValue({...r,error:{issues:_.issues.map(d=>bi(d,y,mi()))},input:r.value}),r.issues=[]),r)}}),Vg=Dt("$ZodPipe",(w,M)=>{Je.init(w,M),Ue(w._zod,"values",()=>M.in._zod.values),Ue(w._zod,"optin",()=>M.in._zod.optin),Ue(w._zod,"optout",()=>M.out._zod.optout),Ue(w._zod,"propValues",()=>M.in._zod.propValues),w._zod.parse=(r,y)=>{if(y.direction==="backward"){const d=M.out._zod.run(r,y);return d instanceof Promise?d.then(a=>Ro(a,M.in,y)):Ro(d,M.in,y)}const _=M.in._zod.run(r,y);return _ instanceof Promise?_.then(d=>Ro(d,M.out,y)):Ro(_,M.out,y)}});function Ro(w,M,r){return w.issues.length?(w.aborted=!0,w):M._zod.run({value:w.value,issues:w.issues},r)}const Xg=Dt("$ZodReadonly",(w,M)=>{Je.init(w,M),Ue(w._zod,"propValues",()=>M.innerType._zod.propValues),Ue(w._zod,"values",()=>M.innerType._zod.values),Ue(w._zod,"optin",()=>M.innerType?._zod?.optin),Ue(w._zod,"optout",()=>M.innerType?._zod?.optout),w._zod.parse=(r,y)=>{if(y.direction==="backward")return M.innerType._zod.run(r,y);const _=M.innerType._zod.run(r,y);return _ instanceof Promise?_.then(Sp):Sp(_)}});function Sp(w){return w.value=Object.freeze(w.value),w}const Yg=Dt("$ZodFunction",(w,M)=>(Je.init(w,M),w._def=M,w._zod.def=M,w.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...y){const _=w._def.input?pp(w._def.input,y):y,d=Reflect.apply(r,this,_);return w._def.output?pp(w._def.output,d):d}},w.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...y){const _=w._def.input?await mp(w._def.input,y):y,d=await Reflect.apply(r,this,_);return w._def.output?await mp(w._def.output,d):d}},w._zod.parse=(r,y)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:w}),r):(w._def.output&&w._def.output._zod.def.type==="promise"?r.value=w.implementAsync(r.value):r.value=w.implement(r.value),r),w.input=(...r)=>{const y=w.constructor;return Array.isArray(r[0])?new y({type:"function",input:new o0({type:"tuple",items:r[0],rest:r[1]}),output:w._def.output}):new y({type:"function",input:r[0],output:w._def.output})},w.output=r=>{const y=w.constructor;return new y({type:"function",input:w._def.input,output:r})},w)),Gg=Dt("$ZodLazy",(w,M)=>{Je.init(w,M),Ue(w._zod,"innerType",()=>M.getter()),Ue(w._zod,"pattern",()=>w._zod.innerType?._zod?.pattern),Ue(w._zod,"propValues",()=>w._zod.innerType?._zod?.propValues),Ue(w._zod,"optin",()=>w._zod.innerType?._zod?.optin??void 0),Ue(w._zod,"optout",()=>w._zod.innerType?._zod?.optout??void 0),w._zod.parse=(r,y)=>w._zod.innerType._zod.run(r,y)}),Kg=Dt("$ZodCustom",(w,M)=>{qr.init(w,M),Je.init(w,M),w._zod.parse=(r,y)=>r,w._zod.check=r=>{const y=r.value,_=M.fn(y);if(_ instanceof Promise)return _.then(d=>Ep(d,r,y,w));Ep(_,r,y,w)}});function Ep(w,M,r,y){if(!w){const _={code:"custom",input:r,inst:y,path:[...y._zod.def.path??[]],continue:!y._zod.def.abort};y._zod.def.params&&(_.params=y._zod.def.params),M.issues.push(ma(_))}}var kp;class Wg{constructor(){this._map=new WeakMap,this._idmap=new Map}add(M,...r){const y=r[0];return this._map.set(M,y),y&&typeof y=="object"&&"id"in y&&this._idmap.set(y.id,M),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(M){const r=this._map.get(M);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(M),this}get(M){const r=M._zod.parent;if(r){const y={...this.get(r)??{}};delete y.id;const _={...y,...this._map.get(M)};return Object.keys(_).length?_:void 0}return this._map.get(M)}has(M){return this._map.has(M)}}function Qg(){return new Wg}(kp=globalThis).__zod_globalRegistry??(kp.__zod_globalRegistry=Qg());const pa=globalThis.__zod_globalRegistry;function Jg(w,M){return new w({type:"string",...se(M)})}function ty(w,M){return new w({type:"string",format:"email",check:"string_format",abort:!1,...se(M)})}function Tp(w,M){return new w({type:"string",format:"guid",check:"string_format",abort:!1,...se(M)})}function ey(w,M){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,...se(M)})}function ry(w,M){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(M)})}function ny(w,M){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(M)})}function iy(w,M){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(M)})}function sy(w,M){return new w({type:"string",format:"url",check:"string_format",abort:!1,...se(M)})}function ay(w,M){return new w({type:"string",format:"emoji",check:"string_format",abort:!1,...se(M)})}function oy(w,M){return new w({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(M)})}function ly(w,M){return new w({type:"string",format:"cuid",check:"string_format",abort:!1,...se(M)})}function uy(w,M){return new w({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(M)})}function cy(w,M){return new w({type:"string",format:"ulid",check:"string_format",abort:!1,...se(M)})}function fy(w,M){return new w({type:"string",format:"xid",check:"string_format",abort:!1,...se(M)})}function hy(w,M){return new w({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(M)})}function dy(w,M){return new w({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(M)})}function py(w,M){return new w({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(M)})}function my(w,M){return new w({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(M)})}function by(w,M){return new w({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(M)})}function gy(w,M){return new w({type:"string",format:"base64",check:"string_format",abort:!1,...se(M)})}function yy(w,M){return new w({type:"string",format:"base64url",check:"string_format",abort:!1,...se(M)})}function vy(w,M){return new w({type:"string",format:"e164",check:"string_format",abort:!1,...se(M)})}function wy(w,M){return new w({type:"string",format:"jwt",check:"string_format",abort:!1,...se(M)})}function _y(w,M){return new w({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(M)})}function xy(w,M){return new w({type:"string",format:"date",check:"string_format",...se(M)})}function Sy(w,M){return new w({type:"string",format:"time",check:"string_format",precision:null,...se(M)})}function Ey(w,M){return new w({type:"string",format:"duration",check:"string_format",...se(M)})}function ky(w,M){return new w({type:"number",checks:[],...se(M)})}function Ty(w,M){return new w({type:"number",check:"number_format",abort:!1,format:"safeint",...se(M)})}function Ay(w,M){return new w({type:"boolean",...se(M)})}function My(w){return new w({type:"any"})}function Cy(w){return new w({type:"unknown"})}function Oy(w,M){return new w({type:"never",...se(M)})}function Ap(w,M){return new e0({check:"less_than",...se(M),value:w,inclusive:!1})}function sc(w,M){return new e0({check:"less_than",...se(M),value:w,inclusive:!0})}function Mp(w,M){return new r0({check:"greater_than",...se(M),value:w,inclusive:!1})}function ac(w,M){return new r0({check:"greater_than",...se(M),value:w,inclusive:!0})}function Cp(w,M){return new Pb({check:"multiple_of",...se(M),value:w})}function u0(w,M){return new qb({check:"max_length",...se(M),maximum:w})}function Lo(w,M){return new $b({check:"min_length",...se(M),minimum:w})}function c0(w,M){return new Zb({check:"length_equals",...se(M),length:w})}function Ry(w,M){return new Vb({check:"string_format",format:"regex",...se(M),pattern:w})}function jy(w){return new Xb({check:"string_format",format:"lowercase",...se(w)})}function Ny(w){return new Yb({check:"string_format",format:"uppercase",...se(w)})}function zy(w,M){return new Gb({check:"string_format",format:"includes",...se(M),includes:w})}function By(w,M){return new Kb({check:"string_format",format:"starts_with",...se(M),prefix:w})}function Dy(w,M){return new Wb({check:"string_format",format:"ends_with",...se(M),suffix:w})}function _s(w){return new Qb({check:"overwrite",tx:w})}function Iy(w){return _s(M=>M.normalize(w))}function Ly(){return _s(w=>w.trim())}function Uy(){return _s(w=>w.toLowerCase())}function Fy(){return _s(w=>w.toUpperCase())}function Py(){return _s(w=>V1(w))}function Hy(w,M,r){return new w({type:"array",element:M,...se(r)})}function qy(w,M,r){return new w({type:"custom",check:"custom",fn:M,...se(r)})}function $y(w){const M=Zy(r=>(r.addIssue=y=>{if(typeof y=="string")r.issues.push(ma(y,r.value,M._zod.def));else{const _=y;_.fatal&&(_.continue=!1),_.code??(_.code="custom"),_.input??(_.input=r.value),_.inst??(_.inst=M),_.continue??(_.continue=!M._zod.def.abort),r.issues.push(ma(_))}},w(r.value,r)));return M}function Zy(w,M){const r=new qr({check:"custom",...se(M)});return r._zod.check=w,r}function f0(w){let M=w?.target??"draft-2020-12";return M==="draft-4"&&(M="draft-04"),M==="draft-7"&&(M="draft-07"),{processors:w.processors??{},metadataRegistry:w?.metadata??pa,target:M,unrepresentable:w?.unrepresentable??"throw",override:w?.override??(()=>{}),io:w?.io??"output",counter:0,seen:new Map,cycles:w?.cycles??"ref",reused:w?.reused??"inline",external:w?.external??void 0}}function ur(w,M,r={path:[],schemaPath:[]}){var y;const _=w._zod.def,d=M.seen.get(w);if(d)return d.count++,r.schemaPath.includes(w)&&(d.cycle=r.path),d.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};M.seen.set(w,a);const l=w._zod.toJSONSchema?.();if(l)a.schema=l;else{const s={...r,schemaPath:[...r.schemaPath,w],path:r.path};if(w._zod.processJSONSchema)w._zod.processJSONSchema(M,a.schema,s);else{const u=a.schema,o=M.processors[_.type];if(!o)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${_.type}`);o(w,M,u,s)}const c=w._zod.parent;c&&(a.ref||(a.ref=c),ur(c,M,s),M.seen.get(c).isParent=!0)}const i=M.metadataRegistry.get(w);return i&&Object.assign(a.schema,i),M.io==="input"&&zr(w)&&(delete a.schema.examples,delete a.schema.default),M.io==="input"&&a.schema._prefault&&((y=a.schema).default??(y.default=a.schema._prefault)),delete a.schema._prefault,M.seen.get(w).schema}function h0(w,M){const r=w.seen.get(M);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const y=new Map;for(const a of w.seen.entries()){const l=w.metadataRegistry.get(a[0])?.id;if(l){const i=y.get(l);if(i&&i!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);y.set(l,a[0])}}const _=a=>{const l=w.target==="draft-2020-12"?"$defs":"definitions";if(w.external){const c=w.external.registry.get(a[0])?.id,u=w.external.uri??(p=>p);if(c)return{ref:u(c)};const o=a[1].defId??a[1].schema.id??`schema${w.counter++}`;return a[1].defId=o,{defId:o,ref:`${u("__shared")}#/${l}/${o}`}}if(a[1]===r)return{ref:"#"};const e=`#/${l}/`,s=a[1].schema.id??`__schema${w.counter++}`;return{defId:s,ref:e+s}},d=a=>{if(a[1].schema.$ref)return;const l=a[1],{ref:i,defId:e}=_(a);l.def={...l.schema},e&&(l.defId=e);const s=l.schema;for(const c in s)delete s[c];s.$ref=i};if(w.cycles==="throw")for(const a of w.seen.entries()){const l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
74
|
+
|
|
75
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of w.seen.entries()){const l=a[1];if(M===a[0]){d(a);continue}if(w.external){const e=w.external.registry.get(a[0])?.id;if(M!==a[0]&&e){d(a);continue}}if(w.metadataRegistry.get(a[0])?.id){d(a);continue}if(l.cycle){d(a);continue}if(l.count>1&&w.reused==="ref"){d(a);continue}}}function d0(w,M){const r=w.seen.get(M);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const y=a=>{const l=w.seen.get(a);if(l.ref===null)return;const i=l.def??l.schema,e={...i},s=l.ref;if(l.ref=null,s){y(s);const u=w.seen.get(s),o=u.schema;if(o.$ref&&(w.target==="draft-07"||w.target==="draft-04"||w.target==="openapi-3.0")?(i.allOf=i.allOf??[],i.allOf.push(o)):Object.assign(i,o),Object.assign(i,e),a._zod.parent===s)for(const m in i)m==="$ref"||m==="allOf"||m in e||delete i[m];if(o.$ref)for(const m in i)m==="$ref"||m==="allOf"||m in u.def&&JSON.stringify(i[m])===JSON.stringify(u.def[m])&&delete i[m]}const c=a._zod.parent;if(c&&c!==s){y(c);const u=w.seen.get(c);if(u?.schema.$ref&&(i.$ref=u.schema.$ref,u.def))for(const o in i)o==="$ref"||o==="allOf"||o in u.def&&JSON.stringify(i[o])===JSON.stringify(u.def[o])&&delete i[o]}w.override({zodSchema:a,jsonSchema:i,path:l.path??[]})};for(const a of[...w.seen.entries()].reverse())y(a[0]);const _={};if(w.target==="draft-2020-12"?_.$schema="https://json-schema.org/draft/2020-12/schema":w.target==="draft-07"?_.$schema="http://json-schema.org/draft-07/schema#":w.target==="draft-04"?_.$schema="http://json-schema.org/draft-04/schema#":w.target,w.external?.uri){const a=w.external.registry.get(M)?.id;if(!a)throw new Error("Schema is missing an `id` property");_.$id=w.external.uri(a)}Object.assign(_,r.def??r.schema);const d=w.external?.defs??{};for(const a of w.seen.entries()){const l=a[1];l.def&&l.defId&&(d[l.defId]=l.def)}w.external||Object.keys(d).length>0&&(w.target==="draft-2020-12"?_.$defs=d:_.definitions=d);try{const a=JSON.parse(JSON.stringify(_));return Object.defineProperty(a,"~standard",{value:{...M["~standard"],jsonSchema:{input:Uo(M,"input",w.processors),output:Uo(M,"output",w.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function zr(w,M){const r=M??{seen:new Set};if(r.seen.has(w))return!1;r.seen.add(w);const y=w._zod.def;if(y.type==="transform")return!0;if(y.type==="array")return zr(y.element,r);if(y.type==="set")return zr(y.valueType,r);if(y.type==="lazy")return zr(y.getter(),r);if(y.type==="promise"||y.type==="optional"||y.type==="nonoptional"||y.type==="nullable"||y.type==="readonly"||y.type==="default"||y.type==="prefault")return zr(y.innerType,r);if(y.type==="intersection")return zr(y.left,r)||zr(y.right,r);if(y.type==="record"||y.type==="map")return zr(y.keyType,r)||zr(y.valueType,r);if(y.type==="pipe")return zr(y.in,r)||zr(y.out,r);if(y.type==="object"){for(const _ in y.shape)if(zr(y.shape[_],r))return!0;return!1}if(y.type==="union"){for(const _ of y.options)if(zr(_,r))return!0;return!1}if(y.type==="tuple"){for(const _ of y.items)if(zr(_,r))return!0;return!!(y.rest&&zr(y.rest,r))}return!1}const Vy=(w,M={})=>r=>{const y=f0({...r,processors:M});return ur(w,y),h0(y,w),d0(y,w)},Uo=(w,M,r={})=>y=>{const{libraryOptions:_,target:d}=y??{},a=f0({..._??{},target:d,io:M,processors:r});return ur(w,a),h0(a,w),d0(a,w)},Xy={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Yy=(w,M,r,y)=>{const _=r;_.type="string";const{minimum:d,maximum:a,format:l,patterns:i,contentEncoding:e}=w._zod.bag;if(typeof d=="number"&&(_.minLength=d),typeof a=="number"&&(_.maxLength=a),l&&(_.format=Xy[l]??l,_.format===""&&delete _.format,l==="time"&&delete _.format),e&&(_.contentEncoding=e),i&&i.size>0){const s=[...i];s.length===1?_.pattern=s[0].source:s.length>1&&(_.allOf=[...s.map(c=>({...M.target==="draft-07"||M.target==="draft-04"||M.target==="openapi-3.0"?{type:"string"}:{},pattern:c.source}))])}},Gy=(w,M,r,y)=>{const _=r,{minimum:d,maximum:a,format:l,multipleOf:i,exclusiveMaximum:e,exclusiveMinimum:s}=w._zod.bag;typeof l=="string"&&l.includes("int")?_.type="integer":_.type="number",typeof s=="number"&&(M.target==="draft-04"||M.target==="openapi-3.0"?(_.minimum=s,_.exclusiveMinimum=!0):_.exclusiveMinimum=s),typeof d=="number"&&(_.minimum=d,typeof s=="number"&&M.target!=="draft-04"&&(s>=d?delete _.minimum:delete _.exclusiveMinimum)),typeof e=="number"&&(M.target==="draft-04"||M.target==="openapi-3.0"?(_.maximum=e,_.exclusiveMaximum=!0):_.exclusiveMaximum=e),typeof a=="number"&&(_.maximum=a,typeof e=="number"&&M.target!=="draft-04"&&(e<=a?delete _.maximum:delete _.exclusiveMaximum)),typeof i=="number"&&(_.multipleOf=i)},Ky=(w,M,r,y)=>{r.type="boolean"},Wy=(w,M,r,y)=>{r.not={}},Qy=(w,M,r,y)=>{},Jy=(w,M,r,y)=>{},tv=(w,M,r,y)=>{const _=w._zod.def,d=Zp(_.entries);d.every(a=>typeof a=="number")&&(r.type="number"),d.every(a=>typeof a=="string")&&(r.type="string"),r.enum=d},ev=(w,M,r,y)=>{const _=w._zod.def,d=[];for(const a of _.values)if(a===void 0){if(M.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(M.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");d.push(Number(a))}else d.push(a);if(d.length!==0)if(d.length===1){const a=d[0];r.type=a===null?"null":typeof a,M.target==="draft-04"||M.target==="openapi-3.0"?r.enum=[a]:r.const=a}else d.every(a=>typeof a=="number")&&(r.type="number"),d.every(a=>typeof a=="string")&&(r.type="string"),d.every(a=>typeof a=="boolean")&&(r.type="boolean"),d.every(a=>a===null)&&(r.type="null"),r.enum=d},rv=(w,M,r,y)=>{if(M.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},nv=(w,M,r,y)=>{if(M.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},iv=(w,M,r,y)=>{if(M.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},sv=(w,M,r,y)=>{const _=r,d=w._zod.def,{minimum:a,maximum:l}=w._zod.bag;typeof a=="number"&&(_.minItems=a),typeof l=="number"&&(_.maxItems=l),_.type="array",_.items=ur(d.element,M,{...y,path:[...y.path,"items"]})},av=(w,M,r,y)=>{const _=r,d=w._zod.def;_.type="object",_.properties={};const a=d.shape;for(const e in a)_.properties[e]=ur(a[e],M,{...y,path:[...y.path,"properties",e]});const l=new Set(Object.keys(a)),i=new Set([...l].filter(e=>{const s=d.shape[e]._zod;return M.io==="input"?s.optin===void 0:s.optout===void 0}));i.size>0&&(_.required=Array.from(i)),d.catchall?._zod.def.type==="never"?_.additionalProperties=!1:d.catchall?d.catchall&&(_.additionalProperties=ur(d.catchall,M,{...y,path:[...y.path,"additionalProperties"]})):M.io==="output"&&(_.additionalProperties=!1)},ov=(w,M,r,y)=>{const _=w._zod.def,d=_.inclusive===!1,a=_.options.map((l,i)=>ur(l,M,{...y,path:[...y.path,d?"oneOf":"anyOf",i]}));d?r.oneOf=a:r.anyOf=a},lv=(w,M,r,y)=>{const _=w._zod.def,d=ur(_.left,M,{...y,path:[...y.path,"allOf",0]}),a=ur(_.right,M,{...y,path:[...y.path,"allOf",1]}),l=e=>"allOf"in e&&Object.keys(e).length===1,i=[...l(d)?d.allOf:[d],...l(a)?a.allOf:[a]];r.allOf=i},uv=(w,M,r,y)=>{const _=r,d=w._zod.def;_.type="array";const a=M.target==="draft-2020-12"?"prefixItems":"items",l=M.target==="draft-2020-12"||M.target==="openapi-3.0"?"items":"additionalItems",i=d.items.map((u,o)=>ur(u,M,{...y,path:[...y.path,a,o]})),e=d.rest?ur(d.rest,M,{...y,path:[...y.path,l,...M.target==="openapi-3.0"?[d.items.length]:[]]}):null;M.target==="draft-2020-12"?(_.prefixItems=i,e&&(_.items=e)):M.target==="openapi-3.0"?(_.items={anyOf:i},e&&_.items.anyOf.push(e),_.minItems=i.length,e||(_.maxItems=i.length)):(_.items=i,e&&(_.additionalItems=e));const{minimum:s,maximum:c}=w._zod.bag;typeof s=="number"&&(_.minItems=s),typeof c=="number"&&(_.maxItems=c)},cv=(w,M,r,y)=>{const _=r,d=w._zod.def;_.type="object";const a=d.keyType,i=a._zod.bag?.patterns;if(d.mode==="loose"&&i&&i.size>0){const s=ur(d.valueType,M,{...y,path:[...y.path,"patternProperties","*"]});_.patternProperties={};for(const c of i)_.patternProperties[c.source]=s}else(M.target==="draft-07"||M.target==="draft-2020-12")&&(_.propertyNames=ur(d.keyType,M,{...y,path:[...y.path,"propertyNames"]})),_.additionalProperties=ur(d.valueType,M,{...y,path:[...y.path,"additionalProperties"]});const e=a._zod.values;if(e){const s=[...e].filter(c=>typeof c=="string"||typeof c=="number");s.length>0&&(_.required=s)}},fv=(w,M,r,y)=>{const _=w._zod.def,d=ur(_.innerType,M,y),a=M.seen.get(w);M.target==="openapi-3.0"?(a.ref=_.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},hv=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType},dv=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType,r.default=JSON.parse(JSON.stringify(_.defaultValue))},pv=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType,M.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(_.defaultValue)))},mv=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType;let a;try{a=_.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},bv=(w,M,r,y)=>{const _=w._zod.def,d=M.io==="input"?_.in._zod.def.type==="transform"?_.out:_.in:_.out;ur(d,M,y);const a=M.seen.get(w);a.ref=d},gv=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType,r.readOnly=!0},p0=(w,M,r,y)=>{const _=w._zod.def;ur(_.innerType,M,y);const d=M.seen.get(w);d.ref=_.innerType},yv=(w,M,r,y)=>{const _=w._zod.innerType;ur(_,M,y);const d=M.seen.get(w);d.ref=_},vv=Dt("ZodISODateTime",(w,M)=>{hg.init(w,M),cr.init(w,M)});function wv(w){return _y(vv,w)}const _v=Dt("ZodISODate",(w,M)=>{dg.init(w,M),cr.init(w,M)});function xv(w){return xy(_v,w)}const Sv=Dt("ZodISOTime",(w,M)=>{pg.init(w,M),cr.init(w,M)});function Ev(w){return Sy(Sv,w)}const kv=Dt("ZodISODuration",(w,M)=>{mg.init(w,M),cr.init(w,M)});function Tv(w){return Ey(kv,w)}const Av=(w,M)=>{Gp.init(w,M),w.name="ZodError",Object.defineProperties(w,{format:{value:r=>sb(w,r)},flatten:{value:r=>ib(w,r)},addIssue:{value:r=>{w.issues.push(r),w.message=JSON.stringify(w.issues,lc,2)}},addIssues:{value:r=>{w.issues.push(...r),w.message=JSON.stringify(w.issues,lc,2)}},isEmpty:{get(){return w.issues.length===0}}})},ln=Dt("ZodError",Av,{Parent:Error}),Mv=$o(ln),Cv=Zo(ln),Ov=Vo(ln),Rv=Xo(ln),jv=lb(ln),Nv=ub(ln),zv=cb(ln),Bv=fb(ln),Dv=hb(ln),Iv=db(ln),Lv=pb(ln),Uv=mb(ln),er=Dt("ZodType",(w,M)=>(Je.init(w,M),Object.assign(w["~standard"],{jsonSchema:{input:Uo(w,"input"),output:Uo(w,"output")}}),w.toJSONSchema=Vy(w,{}),w.def=M,w.type=M.type,Object.defineProperty(w,"_def",{value:M}),w.check=(...r)=>w.clone(gi(M,{checks:[...M.checks??[],...r.map(y=>typeof y=="function"?{_zod:{check:y,def:{check:"custom"},onattach:[]}}:y)]}),{parent:!0}),w.with=w.check,w.clone=(r,y)=>yi(w,r,y),w.brand=()=>w,w.register=((r,y)=>(r.add(w,y),w)),w.parse=(r,y)=>Mv(w,r,y,{callee:w.parse}),w.safeParse=(r,y)=>Ov(w,r,y),w.parseAsync=async(r,y)=>Cv(w,r,y,{callee:w.parseAsync}),w.safeParseAsync=async(r,y)=>Rv(w,r,y),w.spa=w.safeParseAsync,w.encode=(r,y)=>jv(w,r,y),w.decode=(r,y)=>Nv(w,r,y),w.encodeAsync=async(r,y)=>zv(w,r,y),w.decodeAsync=async(r,y)=>Bv(w,r,y),w.safeEncode=(r,y)=>Dv(w,r,y),w.safeDecode=(r,y)=>Iv(w,r,y),w.safeEncodeAsync=async(r,y)=>Lv(w,r,y),w.safeDecodeAsync=async(r,y)=>Uv(w,r,y),w.refine=(r,y)=>w.check(P6(r,y)),w.superRefine=r=>w.check(H6(r)),w.overwrite=r=>w.check(_s(r)),w.optional=()=>jp(w),w.exactOptional=()=>k6(w),w.nullable=()=>Np(w),w.nullish=()=>jp(Np(w)),w.nonoptional=r=>R6(w,r),w.array=()=>ba(w),w.or=r=>xs([w,r]),w.and=r=>m6(w,r),w.transform=r=>zp(w,S6(r)),w.default=r=>M6(w,r),w.prefault=r=>O6(w,r),w.catch=r=>N6(w,r),w.pipe=r=>zp(w,r),w.readonly=()=>D6(w),w.describe=r=>{const y=w.clone();return pa.add(y,{description:r}),y},Object.defineProperty(w,"description",{get(){return pa.get(w)?.description},configurable:!0}),w.meta=(...r)=>{if(r.length===0)return pa.get(w);const y=w.clone();return pa.add(y,r[0]),y},w.isOptional=()=>w.safeParse(void 0).success,w.isNullable=()=>w.safeParse(null).success,w.apply=r=>r(w),w)),m0=Dt("_ZodString",(w,M)=>{gc.init(w,M),er.init(w,M),w._zod.processJSONSchema=(y,_,d)=>Yy(w,y,_);const r=w._zod.bag;w.format=r.format??null,w.minLength=r.minimum??null,w.maxLength=r.maximum??null,w.regex=(...y)=>w.check(Ry(...y)),w.includes=(...y)=>w.check(zy(...y)),w.startsWith=(...y)=>w.check(By(...y)),w.endsWith=(...y)=>w.check(Dy(...y)),w.min=(...y)=>w.check(Lo(...y)),w.max=(...y)=>w.check(u0(...y)),w.length=(...y)=>w.check(c0(...y)),w.nonempty=(...y)=>w.check(Lo(1,...y)),w.lowercase=y=>w.check(jy(y)),w.uppercase=y=>w.check(Ny(y)),w.trim=()=>w.check(Ly()),w.normalize=(...y)=>w.check(Iy(...y)),w.toLowerCase=()=>w.check(Uy()),w.toUpperCase=()=>w.check(Fy()),w.slugify=()=>w.check(Py())}),Fv=Dt("ZodString",(w,M)=>{gc.init(w,M),m0.init(w,M),w.email=r=>w.check(ty(Pv,r)),w.url=r=>w.check(sy(Hv,r)),w.jwt=r=>w.check(wy(n6,r)),w.emoji=r=>w.check(ay(qv,r)),w.guid=r=>w.check(Tp(Op,r)),w.uuid=r=>w.check(ey(jo,r)),w.uuidv4=r=>w.check(ry(jo,r)),w.uuidv6=r=>w.check(ny(jo,r)),w.uuidv7=r=>w.check(iy(jo,r)),w.nanoid=r=>w.check(oy($v,r)),w.guid=r=>w.check(Tp(Op,r)),w.cuid=r=>w.check(ly(Zv,r)),w.cuid2=r=>w.check(uy(Vv,r)),w.ulid=r=>w.check(cy(Xv,r)),w.base64=r=>w.check(gy(t6,r)),w.base64url=r=>w.check(yy(e6,r)),w.xid=r=>w.check(fy(Yv,r)),w.ksuid=r=>w.check(hy(Gv,r)),w.ipv4=r=>w.check(dy(Kv,r)),w.ipv6=r=>w.check(py(Wv,r)),w.cidrv4=r=>w.check(my(Qv,r)),w.cidrv6=r=>w.check(by(Jv,r)),w.e164=r=>w.check(vy(r6,r)),w.datetime=r=>w.check(wv(r)),w.date=r=>w.check(xv(r)),w.time=r=>w.check(Ev(r)),w.duration=r=>w.check(Tv(r))});function xn(w){return Jg(Fv,w)}const cr=Dt("ZodStringFormat",(w,M)=>{or.init(w,M),m0.init(w,M)}),Pv=Dt("ZodEmail",(w,M)=>{ng.init(w,M),cr.init(w,M)}),Op=Dt("ZodGUID",(w,M)=>{eg.init(w,M),cr.init(w,M)}),jo=Dt("ZodUUID",(w,M)=>{rg.init(w,M),cr.init(w,M)}),Hv=Dt("ZodURL",(w,M)=>{ig.init(w,M),cr.init(w,M)}),qv=Dt("ZodEmoji",(w,M)=>{sg.init(w,M),cr.init(w,M)}),$v=Dt("ZodNanoID",(w,M)=>{ag.init(w,M),cr.init(w,M)}),Zv=Dt("ZodCUID",(w,M)=>{og.init(w,M),cr.init(w,M)}),Vv=Dt("ZodCUID2",(w,M)=>{lg.init(w,M),cr.init(w,M)}),Xv=Dt("ZodULID",(w,M)=>{ug.init(w,M),cr.init(w,M)}),Yv=Dt("ZodXID",(w,M)=>{cg.init(w,M),cr.init(w,M)}),Gv=Dt("ZodKSUID",(w,M)=>{fg.init(w,M),cr.init(w,M)}),Kv=Dt("ZodIPv4",(w,M)=>{bg.init(w,M),cr.init(w,M)}),Wv=Dt("ZodIPv6",(w,M)=>{gg.init(w,M),cr.init(w,M)}),Qv=Dt("ZodCIDRv4",(w,M)=>{yg.init(w,M),cr.init(w,M)}),Jv=Dt("ZodCIDRv6",(w,M)=>{vg.init(w,M),cr.init(w,M)}),t6=Dt("ZodBase64",(w,M)=>{wg.init(w,M),cr.init(w,M)}),e6=Dt("ZodBase64URL",(w,M)=>{xg.init(w,M),cr.init(w,M)}),r6=Dt("ZodE164",(w,M)=>{Sg.init(w,M),cr.init(w,M)}),n6=Dt("ZodJWT",(w,M)=>{kg.init(w,M),cr.init(w,M)}),b0=Dt("ZodNumber",(w,M)=>{i0.init(w,M),er.init(w,M),w._zod.processJSONSchema=(y,_,d)=>Gy(w,y,_),w.gt=(y,_)=>w.check(Mp(y,_)),w.gte=(y,_)=>w.check(ac(y,_)),w.min=(y,_)=>w.check(ac(y,_)),w.lt=(y,_)=>w.check(Ap(y,_)),w.lte=(y,_)=>w.check(sc(y,_)),w.max=(y,_)=>w.check(sc(y,_)),w.int=y=>w.check(Rp(y)),w.safe=y=>w.check(Rp(y)),w.positive=y=>w.check(Mp(0,y)),w.nonnegative=y=>w.check(ac(0,y)),w.negative=y=>w.check(Ap(0,y)),w.nonpositive=y=>w.check(sc(0,y)),w.multipleOf=(y,_)=>w.check(Cp(y,_)),w.step=(y,_)=>w.check(Cp(y,_)),w.finite=()=>w;const r=w._zod.bag;w.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,w.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,w.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),w.isFinite=!0,w.format=r.format??null});function Fi(w){return ky(b0,w)}const i6=Dt("ZodNumberFormat",(w,M)=>{Tg.init(w,M),b0.init(w,M)});function Rp(w){return Ty(i6,w)}const s6=Dt("ZodBoolean",(w,M)=>{Ag.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>Ky(w,r,y)});function pi(w){return Ay(s6,w)}const a6=Dt("ZodAny",(w,M)=>{Mg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>Qy()});function o6(){return My(a6)}const l6=Dt("ZodUnknown",(w,M)=>{Cg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>Jy()});function Fo(){return Cy(l6)}const u6=Dt("ZodNever",(w,M)=>{Og.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>Wy(w,r,y)});function c6(w){return Oy(u6,w)}const f6=Dt("ZodArray",(w,M)=>{Rg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>sv(w,r,y,_),w.element=M.element,w.min=(r,y)=>w.check(Lo(r,y)),w.nonempty=r=>w.check(Lo(1,r)),w.max=(r,y)=>w.check(u0(r,y)),w.length=(r,y)=>w.check(c0(r,y)),w.unwrap=()=>w.element});function ba(w,M){return Hy(f6,w,M)}const h6=Dt("ZodObject",(w,M)=>{Ng.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>av(w,r,y,_),Ue(w,"shape",()=>M.shape),w.keyof=()=>Ss(Object.keys(w._zod.def.shape)),w.catchall=r=>w.clone({...w._zod.def,catchall:r}),w.passthrough=()=>w.clone({...w._zod.def,catchall:Fo()}),w.loose=()=>w.clone({...w._zod.def,catchall:Fo()}),w.strict=()=>w.clone({...w._zod.def,catchall:c6()}),w.strip=()=>w.clone({...w._zod.def,catchall:void 0}),w.extend=r=>J1(w,r),w.safeExtend=r=>tb(w,r),w.merge=r=>eb(w,r),w.pick=r=>W1(w,r),w.omit=r=>Q1(w,r),w.partial=(...r)=>rb(g0,w,r[0]),w.required=(...r)=>nb(y0,w,r[0])});function vi(w,M){const r={type:"object",shape:w??{},...se(M)};return new h6(r)}const d6=Dt("ZodUnion",(w,M)=>{zg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>ov(w,r,y,_),w.options=M.options});function xs(w,M){return new d6({type:"union",options:w,...se(M)})}const p6=Dt("ZodIntersection",(w,M)=>{Bg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>lv(w,r,y,_)});function m6(w,M){return new p6({type:"intersection",left:w,right:M})}const b6=Dt("ZodTuple",(w,M)=>{o0.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>uv(w,r,y,_),w.rest=r=>w.clone({...w._zod.def,rest:r})});function g6(w,M,r){const y=M instanceof Je,_=y?r:M,d=y?M:null;return new b6({type:"tuple",items:w,rest:d,...se(_)})}const y6=Dt("ZodRecord",(w,M)=>{Dg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>cv(w,r,y,_),w.keyType=M.keyType,w.valueType=M.valueType});function v6(w,M,r){return new y6({type:"record",keyType:w,valueType:M,...se(r)})}const cc=Dt("ZodEnum",(w,M)=>{Ig.init(w,M),er.init(w,M),w._zod.processJSONSchema=(y,_,d)=>tv(w,y,_),w.enum=M.entries,w.options=Object.values(M.entries);const r=new Set(Object.keys(M.entries));w.extract=(y,_)=>{const d={};for(const a of y)if(r.has(a))d[a]=M.entries[a];else throw new Error(`Key ${a} not found in enum`);return new cc({...M,checks:[],...se(_),entries:d})},w.exclude=(y,_)=>{const d={...M.entries};for(const a of y)if(r.has(a))delete d[a];else throw new Error(`Key ${a} not found in enum`);return new cc({...M,checks:[],...se(_),entries:d})}});function Ss(w,M){const r=Array.isArray(w)?Object.fromEntries(w.map(y=>[y,y])):w;return new cc({type:"enum",entries:r,...se(M)})}const w6=Dt("ZodLiteral",(w,M)=>{Lg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>ev(w,r,y),w.values=new Set(M.values),Object.defineProperty(w,"value",{get(){if(M.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return M.values[0]}})});function _6(w,M){return new w6({type:"literal",values:Array.isArray(w)?w:[w],...se(M)})}const x6=Dt("ZodTransform",(w,M)=>{Ug.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>iv(w,r),w._zod.parse=(r,y)=>{if(y.direction==="backward")throw new qp(w.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(ma(d,r.value,M));else{const a=d;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=w),r.issues.push(ma(a))}};const _=M.transform(r.value,r);return _ instanceof Promise?_.then(d=>(r.value=d,r)):(r.value=_,r)}});function S6(w){return new x6({type:"transform",transform:w})}const g0=Dt("ZodOptional",(w,M)=>{l0.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>p0(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function jp(w){return new g0({type:"optional",innerType:w})}const E6=Dt("ZodExactOptional",(w,M)=>{Fg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>p0(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function k6(w){return new E6({type:"optional",innerType:w})}const T6=Dt("ZodNullable",(w,M)=>{Pg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>fv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function Np(w){return new T6({type:"nullable",innerType:w})}const A6=Dt("ZodDefault",(w,M)=>{Hg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>dv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType,w.removeDefault=w.unwrap});function M6(w,M){return new A6({type:"default",innerType:w,get defaultValue(){return typeof M=="function"?M():Xp(M)}})}const C6=Dt("ZodPrefault",(w,M)=>{qg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>pv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function O6(w,M){return new C6({type:"prefault",innerType:w,get defaultValue(){return typeof M=="function"?M():Xp(M)}})}const y0=Dt("ZodNonOptional",(w,M)=>{$g.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>hv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function R6(w,M){return new y0({type:"nonoptional",innerType:w,...se(M)})}const j6=Dt("ZodCatch",(w,M)=>{Zg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>mv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType,w.removeCatch=w.unwrap});function N6(w,M){return new j6({type:"catch",innerType:w,catchValue:typeof M=="function"?M:()=>M})}const z6=Dt("ZodPipe",(w,M)=>{Vg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>bv(w,r,y,_),w.in=M.in,w.out=M.out});function zp(w,M){return new z6({type:"pipe",in:w,out:M})}const B6=Dt("ZodReadonly",(w,M)=>{Xg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>gv(w,r,y,_),w.unwrap=()=>w._zod.def.innerType});function D6(w){return new B6({type:"readonly",innerType:w})}const I6=Dt("ZodLazy",(w,M)=>{Gg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>yv(w,r,y,_),w.unwrap=()=>w._zod.def.getter()});function L6(w){return new I6({type:"lazy",getter:w})}const U6=Dt("ZodFunction",(w,M)=>{Yg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>nv(w,r)});function F6(w){return new U6({type:"function",input:Array.isArray(w?.input)?g6(w?.input):ba(Fo()),output:Fo()})}const v0=Dt("ZodCustom",(w,M)=>{Kg.init(w,M),er.init(w,M),w._zod.processJSONSchema=(r,y,_)=>rv(w,r)});function P6(w,M={}){return qy(v0,w,M)}function H6(w){return $y(w)}function q6(w,M={}){const r=new v0({type:"custom",check:"custom",fn:y=>y instanceof w,abort:!0,...se(M)});return r._zod.bag.Class=w,r._zod.check=y=>{y.value instanceof w||y.issues.push({code:"invalid_type",expected:w.name,input:y.value,inst:r,path:[...r._zod.def.path??[]]})},r}var $6=(w=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(w,{get:(M,r)=>(typeof require<"u"?require:M)[r]}):w)(function(w){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+w+'" is not supported')});function Z6(w){if(!w)return{};const M={};return V6(w)&&(M.font=X6(w)),w.fill&&(M.fill=Y6(w.fill)),w.align&&(M.alignment=G6(w.align)),w.format&&(M.numFmt=K6(w)),M}function V6(w){return!!(w.fontFamily||w.fontSize||w.bold||w.italic||w.underline||w.strike||w.color)}function X6(w){const M={};return w.fontFamily&&(M.name=w.fontFamily),w.fontSize&&(M.size=w.fontSize),w.bold&&(M.bold=!0),w.italic&&(M.italic=!0),w.underline&&(M.underline=!0),w.strike&&(M.strike=!0),w.color&&(M.color={argb:yc(w.color)}),M}function Y6(w){return{type:"pattern",pattern:"solid",fgColor:{argb:yc(w)}}}function G6(w){return{horizontal:w,vertical:"middle"}}function K6(w){if(w.format==="date")return"yyyy-mm-dd";if(w.format==="number"){const{decimalPlaces:M=0,thousandsSeparator:r=!1}=w,y=r?"#,##0":"#0";if(M>0){const _="0".repeat(M);return`${y}.${_}`}return y}return"@"}function yc(w){return`FF${w.slice(1).toUpperCase()}`}function Br(w,M){const r={style:w};return M&&(r.color={argb:yc(M)}),r}function Bp(w,M,r){if(!w)return;const{outline:y,headerBody:_,headerInner:d,borderColor:a}=w,l={};return M.isFirstRow&&y?l.top=Br(y,a):!M.isFirstRow&&d&&(l.top=Br(d,a)),r&&_?l.bottom=Br(_,a):!r&&d&&(l.bottom=Br(d,a)),M.isFirstCol&&y?l.left=Br(y,a):!M.isFirstCol&&d&&(l.left=Br(d,a)),M.isLastCol&&y?l.right=Br(y,a):!M.isLastCol&&d&&(l.right=Br(d,a)),Object.keys(l).length>0?l:void 0}function Dp(w,M){if(!w)return;const{outline:r,bodyInner:y,borderColor:_}=w,d={};return!M.isFirstRow&&y&&(d.top=Br(y,_)),M.isLastRow&&r?d.bottom=Br(r,_):!M.isLastRow&&y&&(d.bottom=Br(y,_)),M.isFirstCol&&r?d.left=Br(r,_):!M.isFirstCol&&y&&(d.left=Br(y,_)),M.isLastCol&&r?d.right=Br(r,_):!M.isLastCol&&y&&(d.right=Br(y,_)),Object.keys(d).length>0?d:void 0}function Ip(...w){const M={};for(const r of w)r&&Object.assign(M,r);return M}var W6={basic:{style:{header:{bold:!0,fill:"#4472C4",color:"#FFFFFF",align:"center"},body:{align:"left"}},border:{outline:"thin",headerBody:"thin",headerInner:"thin",bodyInner:"thin"}},minimal:{style:{header:{bold:!0,align:"left"},body:{align:"left"}}},striped:{style:{header:{bold:!0,fill:"#4472C4",color:"#FFFFFF",align:"center"},body:{align:"left"}},border:{outline:"thin",headerBody:"thin",headerInner:"thin",bodyInner:"thin"},stripedRowColor:"#F2F2F2"}};function Q6(w){const M=W6[w];if(!M)throw new Error(`不明なプリセット名: ${w}`);return M}function J6(w){return typeof w=="object"&&"value"in w}function tw(w){return w.type==="table"}function ew(w){return w.type==="text"}function rw(w){return w.type==="image"}function nw(w){return w.type==="space"}function Go(w){return"key"in w}function vc(w){const M=[];for(const r of w)Go(r)?M.push(r):M.push(...vc(r.children));return M}function w0(w){return Go(w)?1:w.children.reduce((M,r)=>M+w0(r),0)}function _0(w){let M=1;for(const r of w)if(!Go(r)){const y=_0(r.children);M=Math.max(M,y+1)}return M}function iw(w,M){const r=Array.from({length:M},()=>[]);function y(_,d){if(Go(_)){const a=M-d;r[d].push({label:_.label,colSpan:1,rowSpan:a,style:_.style})}else{const a=w0(_);r[d].push({label:_.label,colSpan:a,rowSpan:1,style:void 0});for(const l of _.children)y(l,d+1)}}for(const _ of w)y(_,0);return r}function No(w,M,r){if(w.value=M,r){const y=Z6(r);w.style=y}}function Lp(w,M,r,y,_){w.mergeCells(M,r,y,_)}function oc(w,M){return w.getRow(M)}function Up(w){let M=0;for(const r of w){const y=r.charCodeAt(0),_=y>=12288&&y<=40959||y>=65280&&y<=65519;M+=_?2:1}return M}function sw(w){if(w==null)return 0;if(typeof w=="string")return Up(w)*1.2+2;if(typeof w=="number"){const M=w.toString();return Up(M)*1.2+2}return typeof w=="boolean"?6:10}function aw(w,M){const r=new Array(w).fill(0);for(const y of M)for(let _=0;_<w;_++){const d=y[_],a=sw(d);a>r[_]&&(r[_]=a)}return r.map(y=>Math.max(8,Math.min(y,60)))}var ow=class{constructor(w,M){this.workbook=w,this.worksheet=M,this.currentRow=1}writeSheet(w){for(const M of w.blocks)this.writeBlock(M)}writeBlock(w){tw(w)?this.writeTable(w.options):ew(w)?this.writeText(w.input):rw(w)?this.writeImage(w.options):nw(w)&&this.writeSpace(w.lines)}writeTable(w){const{preset:M,columns:r,data:y,autoWidth:_,style:d,border:a,mergeSameValues:l}=w,i=M?Q6(M):void 0,e=a??i?.border,s=vc(r);_!==!1&&_!==void 0&&this.setColumnWidths(s,y,_);const c=_0(r);this.writeHeaders(r,s,c,i,d,e),this.writeDataRows(s,y,i,d,e,l)}writeHeaders(w,M,r,y,_,d){const a=iw(w,r),l=M.length,i=this.currentRow;for(let e=0;e<a.length;e++){const s=a[e],c=oc(this.worksheet,this.currentRow);let u=1;for(const o of s){const p=c.getCell(u),m=Ip(y?.style?.header,o.style,_?.header);if(No(p,o.label,m),o.colSpan>1||o.rowSpan>1){const b=u+o.colSpan-1,T=this.currentRow+o.rowSpan-1;Lp(this.worksheet,this.currentRow,u,T,b)}const f=e===a.length-1,v=Bp(d,{isFirstCol:u===1,isLastCol:u+o.colSpan-1===l,isFirstRow:e===0},f&&o.rowSpan===1);v&&(p.border=v),u+=o.colSpan}this.currentRow++}this.applyMergedCellBorders(a,i,l,d)}applyMergedCellBorders(w,M,r,y){const _=w.length;for(let d=0;d<_;d++){const a=w[d];let l=1;for(const i of a){if(i.rowSpan>1){const e=M+d+i.rowSpan-1,s=e===M+_-1;for(let c=l;c<l+i.colSpan;c++){const u=this.worksheet.getCell(e,c),o=Bp(y,{isFirstCol:c===1,isLastCol:c===r,isFirstRow:!1},s);o&&(delete o.top,Object.keys(o).length>0&&(u.border={...u.border,...o}))}}l+=i.colSpan}}}writeDataRows(w,M,r,y,_,d){const a=M.length,l=w.length,i=this.currentRow,e=w.map(()=>[]),s=w.map(o=>d===!0||o.mergeSameValues===!0),c=w.map(()=>0),u=w.map(()=>{});for(const[o,p]of M.entries()){const m=oc(this.worksheet,this.currentRow);for(let f=0;f<l;f++){const v=w[f],b=m.getCell(f+1),T=p[v.key],C=r?.style?.body,I=v.style,H=y?.body,Z=p._style?.[v.key],q=o%2===0&&r?.stripedRowColor?{fill:r.stripedRowColor}:void 0,V=Ip(C,q,I,H,Z);No(b,T,V);const W=Dp(_,{isFirstCol:f===0,isLastCol:f===l-1,isFirstRow:o===0,isLastRow:o===a-1});if(W&&(b.border=W),s[f]){if(o===0)c[f]=o,u[f]=T;else if(T!==u[f]){const $=c[f];o-1>$&&e[f].push({colIndex:f,startRow:i+$,endRow:i+o-1}),c[f]=o,u[f]=T}if(o===a-1){const $=c[f];o>$&&e[f].push({colIndex:f,startRow:i+$,endRow:i+o})}}}this.currentRow++}for(let o=0;o<l;o++)for(const p of e[o])Lp(this.worksheet,p.startRow,o+1,p.endRow,o+1);this.applyBodyMergedCellBorders(e,l,a,i,_)}applyBodyMergedCellBorders(w,M,r,y,_){if(_)for(let d=0;d<M;d++)for(const a of w[d])for(let l=a.startRow;l<=a.endRow;l++){const i=this.worksheet.getCell(l,d+1),e=l===y+r-1,s=l===a.startRow,c=l===a.endRow,u=Dp(_,{isFirstCol:d===0,isLastCol:d===M-1,isFirstRow:l===y,isLastRow:e});u&&(s||delete u.top,c||delete u.bottom,Object.keys(u).length>0&&(i.border={...i.border,...u}))}}setColumnWidths(w,M,r){const y=[];r==="all"&&y.push(w.map(d=>d.label));for(const d of M){const a=w.map(l=>d[l.key]);y.push(a)}const _=aw(w.length,y);for(let d=0;d<_.length;d++)this.worksheet.getColumn(d+1).width=_[d]}writeText(w){const r=oc(this.worksheet,this.currentRow).getCell(1);J6(w)?No(r,w.value,w.style):No(r,w),this.currentRow++}writeImage(w){const{source:M,width:r=100,height:y=100,row:_,col:d=0}=w;let a;if(Buffer.isBuffer(M))a=M;else{if(typeof window<"u")throw new Error("File path image source is not supported in browser environment. Please provide a Buffer instead.");a=$6("fs").readFileSync(M)}const l=this.workbook.addImage({buffer:a,extension:"png"}),i=_??this.currentRow;this.worksheet.addImage(l,{tl:{col:d,row:i-1},ext:{width:r,height:y}});const e=Math.ceil(y/20);this.currentRow+=e}writeSpace(w){this.currentRow+=w}};async function Fp(w){const M=new $1.Workbook;for(const r of w.sheets){const y=M.addWorksheet(r.name);new ow(M,y).writeSheet(r)}return M}var lw=class{constructor(w){this.workbook=w}async download(w){const M=await this.workbook.xlsx.writeBuffer(),r=new Blob([M],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),y=URL.createObjectURL(r),_=document.createElement("a");_.href=y,_.download=w,_.click(),URL.revokeObjectURL(y)}},uw=class{constructor(w){this.workbook=w}async saveToFile(w){await this.workbook.xlsx.writeFile(w)}async toBuffer(){const w=await this.workbook.xlsx.writeBuffer();return Buffer.from(w)}},Po={SHEET_NAME_MAX_LENGTH:31,SHEET_NAME_INVALID_CHARS:[":","\\","/","?","*","[","]"],MAX_ROWS:1048576,MAX_COLUMNS:16384};function cw(w){if(w.length>Po.SHEET_NAME_MAX_LENGTH)throw new Error("シート名は31文字以内である必要があります");for(const M of Po.SHEET_NAME_INVALID_CHARS)if(w.includes(M))throw new Error(`シート名に使用できない文字が含まれています: ${M}`);if(w.trim().length===0)throw new Error("シート名を空白のみにすることはできません")}function fw(w,M){if(w>Po.MAX_ROWS)throw new Error("データ行数がExcelの上限(1,048,576行)を超えています");if(M>Po.MAX_COLUMNS)throw new Error("列数がExcelの上限(16,384列)を超えています")}var hw=xs([q6(Buffer),xn().url(),xn().min(1)]),dw=vi({source:hw,width:Fi().positive().optional(),height:Fi().positive().optional(),row:Fi().int().min(0).optional(),col:Fi().int().min(0).optional()}).strict(),pw=/^#[\dA-Fa-f]{6}$/,fc=xn().regex(pw,"色は #RRGGBB 形式で指定してください"),mw=Ss(["left","center","right"]),bw=Ss(["string","number","date"]),Ho=vi({fontFamily:xn().optional(),fontSize:Fi().positive().optional(),bold:pi().optional(),italic:pi().optional(),underline:pi().optional(),strike:pi().optional(),color:fc.optional(),fill:fc.optional(),align:mw.optional(),format:bw.optional(),decimalPlaces:Fi().int().min(0).optional(),thousandsSeparator:pi().optional()}).strict(),zo=Ss(["thin","medium","thick","dotted","dashed","double"]),gw=vi({outline:zo.optional(),headerBody:zo.optional(),headerInner:zo.optional(),bodyInner:zo.optional(),borderColor:fc.optional()}).strict(),yw=vi({header:Ho.optional(),body:Ho.optional()}).strict(),vw=vi({key:xn(),label:xn(),style:Ho.optional(),mergeSameValues:pi().optional()}).strict(),ww=L6(()=>vi({label:xn(),children:ba(x0).nonempty()}).strict()),x0=xs([vw,ww]),_w=ba(x0).nonempty(),xw=Ss(["basic","minimal","striped"]),Sw=xs([Ss(["all","body"]),_6(!1)]),Ew=vi({preset:xw.optional(),columns:_w,data:ba(v6(xn(),o6())),autoWidth:Sw.optional(),mergeSameValues:pi().optional(),style:yw.optional(),border:gw.optional(),conditionalStyle:F6().optional()}).strict(),kw=vi({value:xs([xn(),Fi(),pi()]),style:Ho.optional()}).strict(),Tw=xs([xn(),kw]),Aw=class{constructor(w,M){this.workbook=w,this.sheetState=M}table(w){const M=Ew.safeParse(w);if(!M.success)throw new Error(`Invalid table options: ${M.error.message}`);const r=vc(w.columns);fw(w.data.length,r.length);const y={type:"table",options:w};return this.sheetState.blocks.push(y),this}text(w){const M=Tw.safeParse(w);if(!M.success)throw new Error(`Invalid text input: ${M.error.message}`);const r={type:"text",input:w};return this.sheetState.blocks.push(r),this}image(w){const M=dw.safeParse(w);if(!M.success)throw new Error(`Invalid image options: ${M.error.message}`);const r={type:"image",options:w};return this.sheetState.blocks.push(r),this}space(w=1){if(w<=0)throw new Error("space() の引数は正の整数である必要があります");const M={type:"space",lines:w};return this.sheetState.blocks.push(M),this}sheet(w){return this.workbook.sheet(w)}getBrowser(){return this.workbook.getBrowser()}getNode(){return this.workbook.getNode()}},Mw=class{constructor(){this.state={sheets:[]}}sheet(w){const M=w??`Sheet${this.state.sheets.length+1}`;if(cw(M),this.state.sheets.some(y=>y.name===M))throw new Error(`シート名 "${M}" は既に存在します`);const r={name:M,blocks:[]};return this.state.sheets.push(r),new Aw(this,r)}getState(){return this.state}async getBrowser(){const w=await Fp(this.state);return new lw(w)}async getNode(){const w=await Fp(this.state);return new uw(w)}};function Cw(){return new Mw}globalThis.Buffer=N1.Buffer;const S0=[{category:"Fruits",product:"Apple",price:150,quantity:50,revenue:7500},{category:"Fruits",product:"Banana",price:100,quantity:80,revenue:8e3},{category:"Fruits",product:"Orange",price:120,quantity:45,revenue:5400},{category:"Vegetables",product:"Carrot",price:80,quantity:100,revenue:8e3},{category:"Vegetables",product:"Tomato",price:200,quantity:30,revenue:6e3},{category:"Dairy",product:"Milk",price:250,quantity:60,revenue:15e3},{category:"Dairy",product:"Cheese",price:500,quantity:25,revenue:12500}],E0=[{key:"category",label:"Category"},{key:"product",label:"Product"},{key:"price",label:"Price (¥)"},{key:"quantity",label:"Qty"},{key:"revenue",label:"Revenue (¥)"}],Ow=[{id:"basic",name:"Basic",description:"Clean style with blue header and full borders. Perfect for business reports.",color:"#4472C4"},{id:"minimal",name:"Minimal",description:"Modern and simple. Bold header with no borders for clean presentations.",color:"#70AD47"},{id:"striped",name:"Striped",description:"Alternating row colors for easy reading. Great for data-heavy tables.",color:"#ED7D31"}],Rw=()=>$t.jsxs("svg",{className:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[$t.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),$t.jsx("polyline",{points:"7 10 12 15 17 10"}),$t.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]});function jw({preset:w,onDownload:M,isLoading:r}){const y=S0.slice(0,3);return $t.jsxs("div",{className:`demo-card ${w.id}`,children:[$t.jsxs("div",{className:"card-header",children:[$t.jsx("h3",{className:"card-title",children:w.name}),$t.jsx("span",{className:"card-badge",children:"Preset"})]}),$t.jsx("p",{className:"card-description",children:w.description}),$t.jsx("div",{className:`preview-table ${w.id}`,children:$t.jsxs("table",{children:[$t.jsx("thead",{children:$t.jsx("tr",{children:E0.map(_=>$t.jsx("th",{children:_.label},_.key))})}),$t.jsx("tbody",{children:y.map((_,d)=>$t.jsxs("tr",{children:[$t.jsx("td",{children:_.category}),$t.jsx("td",{children:_.product}),$t.jsxs("td",{children:["¥",_.price.toLocaleString()]}),$t.jsx("td",{children:_.quantity}),$t.jsxs("td",{children:["¥",_.revenue.toLocaleString()]})]},`${_.product}-${d}`))})]})}),$t.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>M(w.id),disabled:r,style:{"--card-color":w.color},children:r?$t.jsx("span",{className:"spinner"}):$t.jsxs($t.Fragment,{children:[$t.jsx(Rw,{}),"Download Excel"]})})]})}function Bo({icon:w,title:M,description:r}){return $t.jsxs("div",{className:"feature-card",children:[$t.jsx("div",{className:"feature-icon",children:w}),$t.jsx("h4",{className:"feature-title",children:M}),$t.jsx("p",{className:"feature-description",children:r})]})}function Nw(){const[w,M]=Hp.useState(null);async function r(y){M(y);try{await(await Cw().sheet("Sales Report").text({value:"Sales Report 2024",style:{bold:!0,fontSize:16}}).text("Generated by xlkit").space(1).table({preset:y,columns:E0,data:S0,autoWidth:"all"}).getBrowser()).download(`sales-report-${y}.xlsx`)}catch(_){console.error("Download error:",_)}finally{M(null)}}return $t.jsxs($t.Fragment,{children:[$t.jsx("div",{className:"bg-gradient"}),$t.jsxs("div",{className:"container",children:[$t.jsxs("header",{className:"hero",children:[$t.jsx("img",{src:"https://raw.githubusercontent.com/yn1323/xlkit/main/logo.png",alt:"xlkit logo",className:"logo"}),$t.jsx("h1",{className:"title",children:"xlkit"}),$t.jsx("p",{className:"subtitle",children:"Declarative Excel generation library for TypeScript. Write code that describes your spreadsheet, not how to build it."}),$t.jsxs("div",{className:"badge",children:[$t.jsx("span",{children:"📦"}),$t.jsx("span",{children:"npm install xlkit"})]})]}),$t.jsxs("section",{className:"section",children:[$t.jsx("h2",{className:"section-title",children:"Try It Now"}),$t.jsx("p",{style:{color:"var(--text-secondary)",marginBottom:"1.5rem"},children:"Click any button below to generate and download a real Excel file"}),$t.jsx("div",{className:"card-grid",children:Ow.map(y=>$t.jsx(jw,{preset:y,onDownload:r,isLoading:w===y.id},y.id))})]}),$t.jsxs("section",{className:"section",children:[$t.jsx("h2",{className:"section-title",children:"Why xlkit?"}),$t.jsxs("div",{className:"feature-grid",children:[$t.jsx(Bo,{icon:"🎯",title:"Declarative API",description:"Describe what you want, not how to build it. Like React for spreadsheets."}),$t.jsx(Bo,{icon:"🎨",title:"Beautiful Presets",description:"Professional table styles ready to use. Customize when you need to."}),$t.jsx(Bo,{icon:"🔧",title:"Type Safe",description:"Full TypeScript support with excellent autocomplete and error checking."}),$t.jsx(Bo,{icon:"🌐",title:"Browser & Node.js",description:"Works everywhere. Generate Excel files on the server or in the browser."})]})]}),$t.jsxs("section",{className:"section",children:[$t.jsx("h2",{className:"section-title",children:"Simple to Use"}),$t.jsx("div",{className:"code-block",children:$t.jsx("pre",{children:$t.jsxs("code",{children:[$t.jsx("span",{className:"keyword",children:"import"})," ","{"," xlkit ","}"," ",$t.jsx("span",{className:"keyword",children:"from"})," ",$t.jsx("span",{className:"string",children:'"xlkit"'}),";",`
|
|
76
|
+
|
|
77
|
+
`,$t.jsx("span",{className:"keyword",children:"const"})," output = ",$t.jsx("span",{className:"keyword",children:"await"})," ",$t.jsx("span",{className:"function",children:"xlkit"}),"()",`
|
|
78
|
+
`," ",".",$t.jsx("span",{className:"function",children:"sheet"}),"(",$t.jsx("span",{className:"string",children:'"Sales"'}),")",`
|
|
79
|
+
`," ",".",$t.jsx("span",{className:"function",children:"table"}),"(","{",`
|
|
80
|
+
`," ",$t.jsx("span",{className:"property",children:"preset"}),": ",$t.jsx("span",{className:"string",children:'"basic"'}),",",`
|
|
81
|
+
`," ",$t.jsx("span",{className:"property",children:"columns"}),": [...],",`
|
|
82
|
+
`," ",$t.jsx("span",{className:"property",children:"data"}),": salesData,",`
|
|
83
|
+
`," ","}",").",`
|
|
84
|
+
`," ",".",$t.jsx("span",{className:"function",children:"getBrowser"}),"();",`
|
|
85
|
+
|
|
86
|
+
`,$t.jsx("span",{className:"keyword",children:"await"})," output.",$t.jsx("span",{className:"function",children:"download"}),"(",$t.jsx("span",{className:"string",children:'"report.xlsx"'}),");"]})})})]}),$t.jsxs("section",{className:"stats",children:[$t.jsxs("div",{className:"stat",children:[$t.jsx("div",{className:"stat-value",children:"~33KB"}),$t.jsx("div",{className:"stat-label",children:"Minified Size"})]}),$t.jsxs("div",{className:"stat",children:[$t.jsx("div",{className:"stat-value",children:"100%"}),$t.jsx("div",{className:"stat-label",children:"TypeScript"})]}),$t.jsxs("div",{className:"stat",children:[$t.jsx("div",{className:"stat-value",children:"0"}),$t.jsx("div",{className:"stat-label",children:"Runtime Deps (except ExcelJS)"})]})]}),$t.jsxs("footer",{className:"footer",children:[$t.jsxs("div",{className:"footer-links",children:[$t.jsxs("a",{href:"https://github.com/yn1323/xlkit",className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:[$t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:$t.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),"GitHub"]}),$t.jsxs("a",{href:"https://www.npmjs.com/package/xlkit",className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:[$t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:$t.jsx("path",{d:"M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z"})}),"npm"]}),$t.jsx("a",{href:"https://github.com/yn1323/xlkit#readme",className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:"📖 Documentation"})]}),$t.jsx("p",{className:"footer-copy",children:"© 2024 xlkit. MIT License."})]})]})]})}const Pp=document.getElementById("root");Pp&&P1.createRoot(Pp).render($t.jsx(Hp.StrictMode,{children:$t.jsx(Nw,{})}));
|