nfets 0.0.27 → 0.0.35

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.
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{A as uo,B as Wp,E as Yp,F as md,G as vd,H as yd,I as Xp,J as Kp,L as H,M as f,N as Fr,d as Hp,f as d,g as $p,h as S,i as Cn,k as Zi,o as bn,p as co,q as Jp,w as Gp,x as fo,z as D}from"./chunk-G42HFBUE.mjs";import{a,b as li,d as Qp,e as ld,f as cs}from"./chunk-W6MRGYXP.mjs";var Ic=Qp((Ay,Fc)=>{"use strict";var Ci;Fc.exports=function(){if(!Ci){try{Ci=md()("follow-redirects")}catch{}typeof Ci!="function"&&(Ci=a(function(){},"debug"))}Ci.apply(null,arguments)}});var wc=Qp((Ey,js)=>{"use strict";var Ri=li("url"),bi=Ri.URL,Ru=li("http"),Fu=li("https"),Os=li("stream").Writable,xs=li("assert"),zc=Ic();a((function(){var e=typeof process<"u",o=typeof window<"u"&&typeof document<"u",n=Jr(Error.captureStackTrace);!e&&(o||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var As=!1;try{xs(new bi(""))}catch(t){As=t.code==="ERR_INVALID_URL"}var Iu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ws=["abort","aborted","connect","error","socket","timeout"],Es=Object.create(null);ws.forEach(function(t){Es[t]=function(e,o,n){this._redirectable.emit(t,e,o,n)}});var Fs=Fi("ERR_INVALID_URL","Invalid URL",TypeError),Is=Fi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),zu=Fi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Is),Ou=Fi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xu=Fi("ERR_STREAM_WRITE_AFTER_END","write after end"),Au=Os.prototype.destroy||xc;function ut(t,e){Os.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var o=this;this._onNativeResponse=function(n){try{o._processResponse(n)}catch(i){o.emit("error",i instanceof Is?i:new Is({cause:i}))}},this._performRequest()}a(ut,"RedirectableRequest");ut.prototype=Object.create(Os.prototype);ut.prototype.abort=function(){Ds(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ut.prototype.destroy=function(t){return Ds(this._currentRequest,t),Au.call(this,t),this};ut.prototype.write=function(t,e,o){if(this._ending)throw new xu;if(!$r(t)&&!Pu(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Jr(e)&&(o=e,e=null),t.length===0){o&&o();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,o)):(this.emit("error",new Ou),this.abort())};ut.prototype.end=function(t,e,o){if(Jr(t)?(o=t,t=e=null):Jr(e)&&(o=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,o);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,o)}),this._ending=!0}};ut.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ut.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ut.prototype.setTimeout=function(t,e){var o=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}a(n,"destroyOnTimeout");function i(s){o._timeout&&clearTimeout(o._timeout),o._timeout=setTimeout(function(){o.emit("timeout"),r()},t),n(s)}a(i,"startTimer");function r(){o._timeout&&(clearTimeout(o._timeout),o._timeout=null),o.removeListener("abort",r),o.removeListener("error",r),o.removeListener("response",r),o.removeListener("close",r),e&&o.removeListener("timeout",e),o.socket||o._currentRequest.removeListener("socket",i)}return a(r,"clearTimer"),e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){ut.prototype[t]=function(e,o){return this._currentRequest[t](e,o)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ut.prototype,t,{get:a(function(){return this._currentRequest[t]},"get")})});ut.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ut.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var o=t.slice(0,-1);this._options.agent=this._options.agents[o]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ws)n.on(i,Es[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ri.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,p=this._requestBodyBuffers;a((function y(v){if(n===s._currentRequest)if(v)s.emit("error",v);else if(r<p.length){var m=p[r++];n.finished||n.write(m.data,m.encoding,y)}else s._ended&&n.end()}),"writeNext")()}};ut.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var o=t.headers.location;if(!o||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Ds(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new zu;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var r=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rs(/^content-/i,this._options.headers));var s=Rs(/^host$/i,this._options.headers),p=Ps(this._currentUrl),y=s||p.host,v=/^\w+:/.test(o)?this._currentUrl:Ri.format(Object.assign(p,{host:y})),m=wu(o,v);if(zc("redirecting to",m.href),this._isRedirect=!0,zs(m,this._options),(m.protocol!==p.protocol&&m.protocol!=="https:"||m.host!==y&&!Eu(m.host,y))&&Rs(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Jr(i)){var N={headers:t.headers,statusCode:e},b={url:v,method:r,headers:n};i(this._options,N,b),this._sanitizeOptions(this._options)}this._performRequest()};function Oc(t){var e={maxRedirects:21,maxBodyLength:10485760},o={};return Object.keys(t).forEach(function(n){var i=n+":",r=o[i]=t[n],s=e[n]=Object.create(r);function p(v,m,N){return Du(v)?v=zs(v):$r(v)?v=zs(Ps(v)):(N=m,m=Ac(v),v={protocol:i}),Jr(m)&&(N=m,m=null),m=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,m),m.nativeProtocols=o,!$r(m.host)&&!$r(m.hostname)&&(m.hostname="::1"),xs.equal(m.protocol,i,"protocol mismatch"),zc("options",m),new ut(m,N)}a(p,"request");function y(v,m,N){var b=s.request(v,m,N);return b.end(),b}a(y,"get"),Object.defineProperties(s,{request:{value:p,configurable:!0,enumerable:!0,writable:!0},get:{value:y,configurable:!0,enumerable:!0,writable:!0}})}),e}a(Oc,"wrap");function xc(){}a(xc,"noop");function Ps(t){var e;if(As)e=new bi(t);else if(e=Ac(Ri.parse(t)),!$r(e.protocol))throw new Fs({input:t});return e}a(Ps,"parseUrl");function wu(t,e){return As?new bi(t,e):Ps(Ri.resolve(e,t))}a(wu,"resolveUrl");function Ac(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Fs({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Fs({input:t.href||t});return t}a(Ac,"validateUrl");function zs(t,e){var o=e||{};for(var n of Iu)o[n]=t[n];return o.hostname.startsWith("[")&&(o.hostname=o.hostname.slice(1,-1)),o.port!==""&&(o.port=Number(o.port)),o.path=o.search?o.pathname+o.search:o.pathname,o}a(zs,"spreadUrlObject");function Rs(t,e){var o;for(var n in e)t.test(n)&&(o=e[n],delete e[n]);return o===null||typeof o>"u"?void 0:String(o).trim()}a(Rs,"removeMatchingHeaders");function Fi(t,e,o){function n(i){Jr(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return a(n,"CustomError"),n.prototype=new(o||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}a(Fi,"createErrorType");function Ds(t,e){for(var o of ws)t.removeListener(o,Es[o]);t.on("error",xc),t.destroy(e)}a(Ds,"destroyRequest");function Eu(t,e){xs($r(t)&&$r(e));var o=t.length-e.length-1;return o>0&&t[o]==="."&&t.endsWith(e)}a(Eu,"isSubdomain");function $r(t){return typeof t=="string"||t instanceof String}a($r,"isString");function Jr(t){return typeof t=="function"}a(Jr,"isFunction");function Pu(t){return typeof t=="object"&&"length"in t}a(Pu,"isBuffer");function Du(t){return bi&&t instanceof bi}a(Du,"isURL");js.exports=Oc({http:Ru,https:Fu});js.exports.wrap=Oc});var St=(function(t){return t.Normal="1",t.EPEC="4",t.SVCAN="6",t.SVCRS="7",t.OFFLINE="9",t})({});var gd={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21"},Zp=process.env.NFETS_NFE_SCHEMAS_DIR??"",kp=gd;var ki=class{static{a(this,"AccessKeyBuilder")}compile(e){let o=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),r=(e.identification??"").padStart(14,"0"),s=e.mod.toString().padStart(2,"0"),p=e.serie.toString().padStart(3,"0"),y=e.nNF.toString().padStart(9,"0"),v=e.tpEmis.toString().padStart(1,"0"),m=(e.cNF??this.code()).toString().padStart(8,"0"),N=`${o}${n}${i}${r}${s}${p}${y}${v}${m}`;return`${N}${this.verifyingDigit(N)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[i,r,s,p,y,v,m,N,b,I,h]=n;return{cUF:r,year:s,month:p,identification:y,mod:v,serie:m,nNF:N,tpEmis:b,cNF:I,vd:h}}code(){let e=Math.floor(Math.random()*1e8).toString().padStart(8,"0");return this.isCodeValid(e)?e:this.code()}isCodeValid(e){return!~["00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","12345678","23456789","34567890","45678901","56789012","67890123","78901234","89012345","90123456","01234567"].indexOf(e)}verifyingDigit(e){let o=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let s=0;s<8&&n>=0;s++){let p=parseInt(e[n]);i+=p*o[s],n--}let r=11-i%11;return r>9?0:r}};var ea=class{static{a(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let o=uo.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:uo.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:uo.newOrZero(n?.vFrete).add(e.vFrete??o).toFixed(2),vSeg:uo.newOrZero(n?.vSeg).add(e.vSeg??o).toFixed(2),vDesc:uo.newOrZero(n?.vDesc).add(e.vDesc??o).toFixed(2),vOutro:uo.newOrZero(n?.vOutro).add(e.vOutro??o).toFixed(2)}}))}icms(e){}};var ta=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=uo.from(0);this.builder.increment(({ICMSTot:o,ISSQNtot:n})=>({ICMSTot:{vNF:uo.newOrZero(o?.vProd).sub(o?.vDesc??e).sub(o?.vICMSDeson??e).add(o?.vST??e).add(o?.vFCPST??e).add(o?.vFrete??e).add(o?.vSeg??e).add(o?.vOutro??e).add(o?.vII??e).add(o?.vIPI??e).add(o?.vIPIDevol??e).add(n?.vServ??e).toFixed(2)}}))}};function mi(t,e){return a(function(){return t.apply(e,arguments)},"wrap")}a(mi,"bind");var{toString:hd}=Object.prototype,{getPrototypeOf:ds}=Object,{iterator:ra,toStringTag:tc}=Symbol,na=(t=>e=>{let o=hd.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_t=a(t=>(t=t.toLowerCase(),e=>na(e)===t),"kindOfTest"),ia=a(t=>e=>typeof e===t,"typeOfTest"),{isArray:Fn}=Array,Rn=ia("undefined");function vi(t){return t!==null&&!Rn(t)&&t.constructor!==null&&!Rn(t.constructor)&&dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}a(vi,"isBuffer");var oc=_t("ArrayBuffer");function Sd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&oc(t.buffer),e}a(Sd,"isArrayBufferView");var Nd=ia("string"),dt=ia("function"),rc=ia("number"),yi=a(t=>t!==null&&typeof t=="object","isObject"),Cd=a(t=>t===!0||t===!1,"isBoolean"),oa=a(t=>{if(na(t)!=="object")return!1;let e=ds(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tc in t)&&!(ra in t)},"isPlainObject"),bd=a(t=>{if(!yi(t)||vi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},"isEmptyObject"),Rd=_t("Date"),Fd=_t("File"),Id=_t("Blob"),zd=_t("FileList"),Od=a(t=>yi(t)&&dt(t.pipe),"isStream"),xd=a(t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||dt(t.append)&&((e=na(t))==="formdata"||e==="object"&&dt(t.toString)&&t.toString()==="[object FormData]"))},"isFormData"),Ad=_t("URLSearchParams"),[wd,Ed,Pd,Dd]=["ReadableStream","Request","Response","Headers"].map(_t),jd=a(t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function gi(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Fn(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(vi(t))return;let r=o?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length,p;for(n=0;n<s;n++)p=r[n],e.call(null,t[p],p,t)}}a(gi,"forEach");function nc(t,e){if(vi(t))return null;e=e.toLowerCase();let o=Object.keys(t),n=o.length,i;for(;n-- >0;)if(i=o[n],e===i.toLowerCase())return i;return null}a(nc,"findKey");var qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ic=a(t=>!Rn(t)&&t!==qr,"isContextDefined");function fs(){let{caseless:t,skipUndefined:e}=ic(this)&&this||{},o={},n=a((i,r)=>{let s=t&&nc(o,r)||r;oa(o[s])&&oa(i)?o[s]=fs(o[s],i):oa(i)?o[s]=fs({},i):Fn(i)?o[s]=i.slice():(!e||!Rn(i))&&(o[s]=i)},"assignValue");for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&gi(arguments[i],n);return o}a(fs,"merge");var Td=a((t,e,o,{allOwnKeys:n}={})=>(gi(e,(i,r)=>{o&&dt(i)?t[r]=mi(i,o):t[r]=i},{allOwnKeys:n}),t),"extend"),_d=a(t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),"stripBOM"),Vd=a((t,e,o,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},"inherits"),Md=a((t,e,o,n)=>{let i,r,s,p={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),r=i.length;r-- >0;)s=i[r],(!n||n(s,t,e))&&!p[s]&&(e[s]=t[s],p[s]=!0);t=o!==!1&&ds(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},"toFlatObject"),Ld=a((t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;let n=t.indexOf(e,o);return n!==-1&&n===o},"endsWith"),Bd=a(t=>{if(!t)return null;if(Fn(t))return t;let e=t.length;if(!rc(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},"toArray"),Ud=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ds(Uint8Array)),qd=a((t,e)=>{let n=(t&&t[ra]).call(t),i;for(;(i=n.next())&&!i.done;){let r=i.value;e.call(t,r[0],r[1])}},"forEachEntry"),Qd=a((t,e)=>{let o,n=[];for(;(o=t.exec(e))!==null;)n.push(o);return n},"matchAll"),Hd=_t("HTMLFormElement"),$d=a(t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,a(function(o,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),ec=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Jd=_t("RegExp"),ac=a((t,e)=>{let o=Object.getOwnPropertyDescriptors(t),n={};gi(o,(i,r)=>{let s;(s=e(i,r,t))!==!1&&(n[r]=s||i)}),Object.defineProperties(t,n)},"reduceDescriptors"),Gd=a(t=>{ac(t,(e,o)=>{if(dt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let n=t[o];if(dt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},"freezeMethods"),Wd=a((t,e)=>{let o={},n=a(i=>{i.forEach(r=>{o[r]=!0})},"define");return Fn(t)?n(t):n(String(t).split(e)),o},"toObjectSet"),Yd=a(()=>{},"noop"),Xd=a((t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,"toFiniteNumber");function Kd(t){return!!(t&&dt(t.append)&&t[tc]==="FormData"&&t[ra])}a(Kd,"isSpecCompliantForm");var Zd=a(t=>{let e=new Array(10),o=a((n,i)=>{if(yi(n)){if(e.indexOf(n)>=0)return;if(vi(n))return n;if(!("toJSON"in n)){e[i]=n;let r=Fn(n)?[]:{};return gi(n,(s,p)=>{let y=o(s,i+1);!Rn(y)&&(r[p]=y)}),e[i]=void 0,r}}return n},"visit");return o(t,0)},"toJSONObject"),kd=_t("AsyncFunction"),eu=a(t=>t&&(yi(t)||dt(t))&&dt(t.then)&&dt(t.catch),"isThenable"),sc=((t,e)=>t?setImmediate:e?((o,n)=>(qr.addEventListener("message",({source:i,data:r})=>{i===qr&&r===o&&n.length&&n.shift()()},!1),i=>{n.push(i),qr.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",dt(qr.postMessage)),tu=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||sc,ou=a(t=>t!=null&&dt(t[ra]),"isIterable"),c={isArray:Fn,isArrayBuffer:oc,isBuffer:vi,isFormData:xd,isArrayBufferView:Sd,isString:Nd,isNumber:rc,isBoolean:Cd,isObject:yi,isPlainObject:oa,isEmptyObject:bd,isReadableStream:wd,isRequest:Ed,isResponse:Pd,isHeaders:Dd,isUndefined:Rn,isDate:Rd,isFile:Fd,isBlob:Id,isRegExp:Jd,isFunction:dt,isStream:Od,isURLSearchParams:Ad,isTypedArray:Ud,isFileList:zd,forEach:gi,merge:fs,extend:Td,trim:jd,stripBOM:_d,inherits:Vd,toFlatObject:Md,kindOf:na,kindOfTest:_t,endsWith:Ld,toArray:Bd,forEachEntry:qd,matchAll:Qd,isHTMLForm:Hd,hasOwnProperty:ec,hasOwnProp:ec,reduceDescriptors:ac,freezeMethods:Gd,toObjectSet:Wd,toCamelCase:$d,noop:Yd,toFiniteNumber:Xd,findKey:nc,global:qr,isContextDefined:ic,isSpecCompliantForm:Kd,toJSONObject:Zd,isAsyncFn:kd,isThenable:eu,setImmediate:sc,asap:tu,isIterable:ou};function In(t,e,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}a(In,"AxiosError");c.inherits(In,Error,{toJSON:a(function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var pc=In.prototype,cc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cc[t]={value:t}});Object.defineProperties(In,cc);Object.defineProperty(pc,"isAxiosError",{value:!0});In.from=(t,e,o,n,i,r)=>{let s=Object.create(pc);c.toFlatObject(t,s,a(function(m){return m!==Error.prototype},"filter"),v=>v!=="isAxiosError");let p=t&&t.message?t.message:"Error",y=e==null&&t?t.code:e;return In.call(s,p,y,o,n,i),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",r&&Object.assign(s,r),s};var R=In;var fc=cs(vd(),1),aa=fc.default;function us(t){return c.isPlainObject(t)||c.isArray(t)}a(us,"isVisitable");function uc(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}a(uc,"removeBrackets");function dc(t,e,o){return t?t.concat(e).map(a(function(i,r){return i=uc(i),!o&&r?"["+i+"]":i},"each")).join(o?".":""):e}a(dc,"renderKey");function ru(t){return c.isArray(t)&&!t.some(us)}a(ru,"isFlatArray");var nu=c.toFlatObject(c,{},null,a(function(e){return/^is[A-Z]/.test(e)},"filter"));function iu(t,e,o){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new(aa||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,a(function(F,C){return!c.isUndefined(C[F])},"defined"));let n=o.metaTokens,i=o.visitor||m,r=o.dots,s=o.indexes,y=(o.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(i))throw new TypeError("visitor must be a function");function v(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(c.isBoolean(h))return h.toString();if(!y&&c.isBlob(h))throw new R("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?y&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}a(v,"convertValue");function m(h,F,C){let Q=h;if(h&&!C&&typeof h=="object"){if(c.endsWith(F,"{}"))F=n?F:F.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&ru(h)||(c.isFileList(h)||c.endsWith(F,"[]"))&&(Q=c.toArray(h)))return F=uc(F),Q.forEach(a(function(B,le){!(c.isUndefined(B)||B===null)&&e.append(s===!0?dc([F],le,r):s===null?F:F+"[]",v(B))},"each")),!1}return us(h)?!0:(e.append(dc(C,F,r),v(h)),!1)}a(m,"defaultVisitor");let N=[],b=Object.assign(nu,{defaultVisitor:m,convertValue:v,isVisitable:us});function I(h,F){if(!c.isUndefined(h)){if(N.indexOf(h)!==-1)throw Error("Circular reference detected in "+F.join("."));N.push(h),c.forEach(h,a(function(Q,Y){(!(c.isUndefined(Q)||Q===null)&&i.call(e,Q,c.isString(Y)?Y.trim():Y,F,b))===!0&&I(Q,F?F.concat(Y):[Y])},"each")),N.pop()}}if(a(I,"build"),!c.isObject(t))throw new TypeError("data must be an object");return I(t),e}a(iu,"toFormData");var Ir=iu;function lc(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,a(function(n){return e[n]},"replacer"))}a(lc,"encode");function mc(t,e){this._pairs=[],t&&Ir(t,this,e)}a(mc,"AxiosURLSearchParams");var vc=mc.prototype;vc.append=a(function(e,o){this._pairs.push([e,o])},"append");vc.toString=a(function(e){let o=e?function(n){return e.call(this,n,lc)}:lc;return this._pairs.map(a(function(i){return o(i[0])+"="+o(i[1])},"each"),"").join("&")},"toString");var yc=mc;function au(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}a(au,"encode");function Qr(t,e,o){if(!e)return t;let n=o&&o.encode||au;c.isFunction(o)&&(o={serialize:o});let i=o&&o.serialize,r;if(i?r=i(e,o):r=c.isURLSearchParams(e)?e.toString():new yc(e,o).toString(n),r){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}a(Qr,"buildURL");var su=class{static{a(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,o,n){return this.handlers.push({fulfilled:e,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,a(function(n){n!==null&&e(n)},"forEachHandler"))}},ls=su;var zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};import cu from"crypto";import pu from"url";var gc=pu.URLSearchParams;var ms="abcdefghijklmnopqrstuvwxyz",hc="0123456789",Sc={DIGIT:hc,ALPHA:ms,ALPHA_DIGIT:ms+ms.toUpperCase()+hc},fu=a((t=16,e=Sc.ALPHA_DIGIT)=>{let o="",{length:n}=e,i=new Uint32Array(t);cu.randomFillSync(i);for(let r=0;r<t;r++)o+=e[i[r]%n];return o},"generateString"),Nc={isNode:!0,classes:{URLSearchParams:gc,FormData:aa,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Sc,generateString:fu,protocols:["http","https","file","data"]};var gs={};ld(gs,{hasBrowserEnv:()=>ys,hasStandardBrowserEnv:()=>du,hasStandardBrowserWebWorkerEnv:()=>uu,navigator:()=>vs,origin:()=>lu});var ys=typeof window<"u"&&typeof document<"u",vs=typeof navigator=="object"&&navigator||void 0,du=ys&&(!vs||["ReactNative","NativeScript","NS"].indexOf(vs.product)<0),uu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lu=ys&&window.location.href||"http://localhost";var U={...gs,...Nc};function hs(t,e){return Ir(t,new U.classes.URLSearchParams,{visitor:a(function(o,n,i,r){return U.isNode&&c.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},"visitor"),...e})}a(hs,"toURLEncodedForm");function mu(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}a(mu,"parsePropPath");function vu(t){let e={},o=Object.keys(t),n,i=o.length,r;for(n=0;n<i;n++)r=o[n],e[r]=t[r];return e}a(vu,"arrayToObject");function yu(t){function e(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;let p=Number.isFinite(+s),y=r>=o.length;return s=!s&&c.isArray(i)?i.length:s,y?(c.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!p):((!i[s]||!c.isObject(i[s]))&&(i[s]=[]),e(o,n,i[s],r)&&c.isArray(i[s])&&(i[s]=vu(i[s])),!p)}if(a(e,"buildPath"),c.isFormData(t)&&c.isFunction(t.entries)){let o={};return c.forEachEntry(t,(n,i)=>{e(mu(n),i,o,0)}),o}return null}a(yu,"formDataToJSON");var sa=yu;function gu(t,e,o){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(t)}a(gu,"stringifySafely");var Ss={transitional:zn,adapter:["xhr","http","fetch"],transformRequest:[a(function(e,o){let n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=c.isObject(e);if(r&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return i?JSON.stringify(sa(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return hs(e,this.formSerializer).toString();if((p=c.isFileList(e))||n.indexOf("multipart/form-data")>-1){let y=this.env&&this.env.FormData;return Ir(p?{"files[]":e}:e,y&&new y,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),gu(e)):e},"transformRequest")],transformResponse:[a(function(e){let o=this.transitional||Ss.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(n&&!this.responseType||i)){let s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(p){if(s)throw p.name==="SyntaxError"?R.from(p,R.ERR_BAD_RESPONSE,this,null,this.response):p}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:a(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{Ss.headers[t]={}});var On=Ss;var hu=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cc=a((t=>{let e={},o,n,i;return t&&t.split(`
2
+ import{A as uo,B as Wp,E as Yp,F as md,G as vd,H as yd,I as Xp,J as Kp,L as H,M as f,N as Fr,d as Hp,f as d,g as $p,h as S,i as Cn,k as Zi,o as bn,p as co,q as Jp,w as Gp,x as fo,z as D}from"./chunk-IURMCRIH.mjs";import{a,b as li,d as Qp,e as ld,f as cs}from"./chunk-W6MRGYXP.mjs";var Ic=Qp((Ay,Fc)=>{"use strict";var Ci;Fc.exports=function(){if(!Ci){try{Ci=md()("follow-redirects")}catch{}typeof Ci!="function"&&(Ci=a(function(){},"debug"))}Ci.apply(null,arguments)}});var wc=Qp((Ey,js)=>{"use strict";var Ri=li("url"),bi=Ri.URL,Ru=li("http"),Fu=li("https"),Os=li("stream").Writable,xs=li("assert"),zc=Ic();a((function(){var e=typeof process<"u",o=typeof window<"u"&&typeof document<"u",n=Jr(Error.captureStackTrace);!e&&(o||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var As=!1;try{xs(new bi(""))}catch(t){As=t.code==="ERR_INVALID_URL"}var Iu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ws=["abort","aborted","connect","error","socket","timeout"],Es=Object.create(null);ws.forEach(function(t){Es[t]=function(e,o,n){this._redirectable.emit(t,e,o,n)}});var Fs=Fi("ERR_INVALID_URL","Invalid URL",TypeError),Is=Fi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),zu=Fi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Is),Ou=Fi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xu=Fi("ERR_STREAM_WRITE_AFTER_END","write after end"),Au=Os.prototype.destroy||xc;function ut(t,e){Os.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var o=this;this._onNativeResponse=function(n){try{o._processResponse(n)}catch(i){o.emit("error",i instanceof Is?i:new Is({cause:i}))}},this._performRequest()}a(ut,"RedirectableRequest");ut.prototype=Object.create(Os.prototype);ut.prototype.abort=function(){Ds(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ut.prototype.destroy=function(t){return Ds(this._currentRequest,t),Au.call(this,t),this};ut.prototype.write=function(t,e,o){if(this._ending)throw new xu;if(!$r(t)&&!Pu(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Jr(e)&&(o=e,e=null),t.length===0){o&&o();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,o)):(this.emit("error",new Ou),this.abort())};ut.prototype.end=function(t,e,o){if(Jr(t)?(o=t,t=e=null):Jr(e)&&(o=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,o);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,o)}),this._ending=!0}};ut.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ut.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ut.prototype.setTimeout=function(t,e){var o=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}a(n,"destroyOnTimeout");function i(s){o._timeout&&clearTimeout(o._timeout),o._timeout=setTimeout(function(){o.emit("timeout"),r()},t),n(s)}a(i,"startTimer");function r(){o._timeout&&(clearTimeout(o._timeout),o._timeout=null),o.removeListener("abort",r),o.removeListener("error",r),o.removeListener("response",r),o.removeListener("close",r),e&&o.removeListener("timeout",e),o.socket||o._currentRequest.removeListener("socket",i)}return a(r,"clearTimer"),e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){ut.prototype[t]=function(e,o){return this._currentRequest[t](e,o)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ut.prototype,t,{get:a(function(){return this._currentRequest[t]},"get")})});ut.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ut.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var o=t.slice(0,-1);this._options.agent=this._options.agents[o]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ws)n.on(i,Es[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ri.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,p=this._requestBodyBuffers;a((function y(v){if(n===s._currentRequest)if(v)s.emit("error",v);else if(r<p.length){var m=p[r++];n.finished||n.write(m.data,m.encoding,y)}else s._ended&&n.end()}),"writeNext")()}};ut.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var o=t.headers.location;if(!o||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Ds(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new zu;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var r=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rs(/^content-/i,this._options.headers));var s=Rs(/^host$/i,this._options.headers),p=Ps(this._currentUrl),y=s||p.host,v=/^\w+:/.test(o)?this._currentUrl:Ri.format(Object.assign(p,{host:y})),m=wu(o,v);if(zc("redirecting to",m.href),this._isRedirect=!0,zs(m,this._options),(m.protocol!==p.protocol&&m.protocol!=="https:"||m.host!==y&&!Eu(m.host,y))&&Rs(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Jr(i)){var N={headers:t.headers,statusCode:e},b={url:v,method:r,headers:n};i(this._options,N,b),this._sanitizeOptions(this._options)}this._performRequest()};function Oc(t){var e={maxRedirects:21,maxBodyLength:10485760},o={};return Object.keys(t).forEach(function(n){var i=n+":",r=o[i]=t[n],s=e[n]=Object.create(r);function p(v,m,N){return Du(v)?v=zs(v):$r(v)?v=zs(Ps(v)):(N=m,m=Ac(v),v={protocol:i}),Jr(m)&&(N=m,m=null),m=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,m),m.nativeProtocols=o,!$r(m.host)&&!$r(m.hostname)&&(m.hostname="::1"),xs.equal(m.protocol,i,"protocol mismatch"),zc("options",m),new ut(m,N)}a(p,"request");function y(v,m,N){var b=s.request(v,m,N);return b.end(),b}a(y,"get"),Object.defineProperties(s,{request:{value:p,configurable:!0,enumerable:!0,writable:!0},get:{value:y,configurable:!0,enumerable:!0,writable:!0}})}),e}a(Oc,"wrap");function xc(){}a(xc,"noop");function Ps(t){var e;if(As)e=new bi(t);else if(e=Ac(Ri.parse(t)),!$r(e.protocol))throw new Fs({input:t});return e}a(Ps,"parseUrl");function wu(t,e){return As?new bi(t,e):Ps(Ri.resolve(e,t))}a(wu,"resolveUrl");function Ac(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Fs({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Fs({input:t.href||t});return t}a(Ac,"validateUrl");function zs(t,e){var o=e||{};for(var n of Iu)o[n]=t[n];return o.hostname.startsWith("[")&&(o.hostname=o.hostname.slice(1,-1)),o.port!==""&&(o.port=Number(o.port)),o.path=o.search?o.pathname+o.search:o.pathname,o}a(zs,"spreadUrlObject");function Rs(t,e){var o;for(var n in e)t.test(n)&&(o=e[n],delete e[n]);return o===null||typeof o>"u"?void 0:String(o).trim()}a(Rs,"removeMatchingHeaders");function Fi(t,e,o){function n(i){Jr(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return a(n,"CustomError"),n.prototype=new(o||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}a(Fi,"createErrorType");function Ds(t,e){for(var o of ws)t.removeListener(o,Es[o]);t.on("error",xc),t.destroy(e)}a(Ds,"destroyRequest");function Eu(t,e){xs($r(t)&&$r(e));var o=t.length-e.length-1;return o>0&&t[o]==="."&&t.endsWith(e)}a(Eu,"isSubdomain");function $r(t){return typeof t=="string"||t instanceof String}a($r,"isString");function Jr(t){return typeof t=="function"}a(Jr,"isFunction");function Pu(t){return typeof t=="object"&&"length"in t}a(Pu,"isBuffer");function Du(t){return bi&&t instanceof bi}a(Du,"isURL");js.exports=Oc({http:Ru,https:Fu});js.exports.wrap=Oc});var St=(function(t){return t.Normal="1",t.EPEC="4",t.SVCAN="6",t.SVCRS="7",t.OFFLINE="9",t})({});var gd={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21"},Zp=process.env.NFETS_NFE_SCHEMAS_DIR??"",kp=gd;var ki=class{static{a(this,"AccessKeyBuilder")}compile(e){let o=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),r=(e.identification??"").padStart(14,"0"),s=e.mod.toString().padStart(2,"0"),p=e.serie.toString().padStart(3,"0"),y=e.nNF.toString().padStart(9,"0"),v=e.tpEmis.toString().padStart(1,"0"),m=(e.cNF??this.code()).toString().padStart(8,"0"),N=`${o}${n}${i}${r}${s}${p}${y}${v}${m}`;return`${N}${this.verifyingDigit(N)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[i,r,s,p,y,v,m,N,b,I,h]=n;return{cUF:r,year:s,month:p,identification:y,mod:v,serie:m,nNF:N,tpEmis:b,cNF:I,vd:h}}code(){let e=Math.floor(Math.random()*1e8).toString().padStart(8,"0");return this.isCodeValid(e)?e:this.code()}isCodeValid(e){return!~["00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","12345678","23456789","34567890","45678901","56789012","67890123","78901234","89012345","90123456","01234567"].indexOf(e)}verifyingDigit(e){let o=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let s=0;s<8&&n>=0;s++){let p=parseInt(e[n]);i+=p*o[s],n--}let r=11-i%11;return r>9?0:r}};var ea=class{static{a(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let o=uo.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:uo.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:uo.newOrZero(n?.vFrete).add(e.vFrete??o).toFixed(2),vSeg:uo.newOrZero(n?.vSeg).add(e.vSeg??o).toFixed(2),vDesc:uo.newOrZero(n?.vDesc).add(e.vDesc??o).toFixed(2),vOutro:uo.newOrZero(n?.vOutro).add(e.vOutro??o).toFixed(2)}}))}icms(e){}};var ta=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=uo.from(0);this.builder.increment(({ICMSTot:o,ISSQNtot:n})=>({ICMSTot:{vNF:uo.newOrZero(o?.vProd).sub(o?.vDesc??e).sub(o?.vICMSDeson??e).add(o?.vST??e).add(o?.vFCPST??e).add(o?.vFrete??e).add(o?.vSeg??e).add(o?.vOutro??e).add(o?.vII??e).add(o?.vIPI??e).add(o?.vIPIDevol??e).add(n?.vServ??e).toFixed(2)}}))}};function mi(t,e){return a(function(){return t.apply(e,arguments)},"wrap")}a(mi,"bind");var{toString:hd}=Object.prototype,{getPrototypeOf:ds}=Object,{iterator:ra,toStringTag:tc}=Symbol,na=(t=>e=>{let o=hd.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_t=a(t=>(t=t.toLowerCase(),e=>na(e)===t),"kindOfTest"),ia=a(t=>e=>typeof e===t,"typeOfTest"),{isArray:Fn}=Array,Rn=ia("undefined");function vi(t){return t!==null&&!Rn(t)&&t.constructor!==null&&!Rn(t.constructor)&&dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}a(vi,"isBuffer");var oc=_t("ArrayBuffer");function Sd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&oc(t.buffer),e}a(Sd,"isArrayBufferView");var Nd=ia("string"),dt=ia("function"),rc=ia("number"),yi=a(t=>t!==null&&typeof t=="object","isObject"),Cd=a(t=>t===!0||t===!1,"isBoolean"),oa=a(t=>{if(na(t)!=="object")return!1;let e=ds(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tc in t)&&!(ra in t)},"isPlainObject"),bd=a(t=>{if(!yi(t)||vi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},"isEmptyObject"),Rd=_t("Date"),Fd=_t("File"),Id=_t("Blob"),zd=_t("FileList"),Od=a(t=>yi(t)&&dt(t.pipe),"isStream"),xd=a(t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||dt(t.append)&&((e=na(t))==="formdata"||e==="object"&&dt(t.toString)&&t.toString()==="[object FormData]"))},"isFormData"),Ad=_t("URLSearchParams"),[wd,Ed,Pd,Dd]=["ReadableStream","Request","Response","Headers"].map(_t),jd=a(t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function gi(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Fn(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(vi(t))return;let r=o?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length,p;for(n=0;n<s;n++)p=r[n],e.call(null,t[p],p,t)}}a(gi,"forEach");function nc(t,e){if(vi(t))return null;e=e.toLowerCase();let o=Object.keys(t),n=o.length,i;for(;n-- >0;)if(i=o[n],e===i.toLowerCase())return i;return null}a(nc,"findKey");var qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ic=a(t=>!Rn(t)&&t!==qr,"isContextDefined");function fs(){let{caseless:t,skipUndefined:e}=ic(this)&&this||{},o={},n=a((i,r)=>{let s=t&&nc(o,r)||r;oa(o[s])&&oa(i)?o[s]=fs(o[s],i):oa(i)?o[s]=fs({},i):Fn(i)?o[s]=i.slice():(!e||!Rn(i))&&(o[s]=i)},"assignValue");for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&gi(arguments[i],n);return o}a(fs,"merge");var Td=a((t,e,o,{allOwnKeys:n}={})=>(gi(e,(i,r)=>{o&&dt(i)?t[r]=mi(i,o):t[r]=i},{allOwnKeys:n}),t),"extend"),_d=a(t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),"stripBOM"),Vd=a((t,e,o,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},"inherits"),Md=a((t,e,o,n)=>{let i,r,s,p={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),r=i.length;r-- >0;)s=i[r],(!n||n(s,t,e))&&!p[s]&&(e[s]=t[s],p[s]=!0);t=o!==!1&&ds(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},"toFlatObject"),Ld=a((t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;let n=t.indexOf(e,o);return n!==-1&&n===o},"endsWith"),Bd=a(t=>{if(!t)return null;if(Fn(t))return t;let e=t.length;if(!rc(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},"toArray"),Ud=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ds(Uint8Array)),qd=a((t,e)=>{let n=(t&&t[ra]).call(t),i;for(;(i=n.next())&&!i.done;){let r=i.value;e.call(t,r[0],r[1])}},"forEachEntry"),Qd=a((t,e)=>{let o,n=[];for(;(o=t.exec(e))!==null;)n.push(o);return n},"matchAll"),Hd=_t("HTMLFormElement"),$d=a(t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,a(function(o,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),ec=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Jd=_t("RegExp"),ac=a((t,e)=>{let o=Object.getOwnPropertyDescriptors(t),n={};gi(o,(i,r)=>{let s;(s=e(i,r,t))!==!1&&(n[r]=s||i)}),Object.defineProperties(t,n)},"reduceDescriptors"),Gd=a(t=>{ac(t,(e,o)=>{if(dt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let n=t[o];if(dt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},"freezeMethods"),Wd=a((t,e)=>{let o={},n=a(i=>{i.forEach(r=>{o[r]=!0})},"define");return Fn(t)?n(t):n(String(t).split(e)),o},"toObjectSet"),Yd=a(()=>{},"noop"),Xd=a((t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,"toFiniteNumber");function Kd(t){return!!(t&&dt(t.append)&&t[tc]==="FormData"&&t[ra])}a(Kd,"isSpecCompliantForm");var Zd=a(t=>{let e=new Array(10),o=a((n,i)=>{if(yi(n)){if(e.indexOf(n)>=0)return;if(vi(n))return n;if(!("toJSON"in n)){e[i]=n;let r=Fn(n)?[]:{};return gi(n,(s,p)=>{let y=o(s,i+1);!Rn(y)&&(r[p]=y)}),e[i]=void 0,r}}return n},"visit");return o(t,0)},"toJSONObject"),kd=_t("AsyncFunction"),eu=a(t=>t&&(yi(t)||dt(t))&&dt(t.then)&&dt(t.catch),"isThenable"),sc=((t,e)=>t?setImmediate:e?((o,n)=>(qr.addEventListener("message",({source:i,data:r})=>{i===qr&&r===o&&n.length&&n.shift()()},!1),i=>{n.push(i),qr.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",dt(qr.postMessage)),tu=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||sc,ou=a(t=>t!=null&&dt(t[ra]),"isIterable"),c={isArray:Fn,isArrayBuffer:oc,isBuffer:vi,isFormData:xd,isArrayBufferView:Sd,isString:Nd,isNumber:rc,isBoolean:Cd,isObject:yi,isPlainObject:oa,isEmptyObject:bd,isReadableStream:wd,isRequest:Ed,isResponse:Pd,isHeaders:Dd,isUndefined:Rn,isDate:Rd,isFile:Fd,isBlob:Id,isRegExp:Jd,isFunction:dt,isStream:Od,isURLSearchParams:Ad,isTypedArray:Ud,isFileList:zd,forEach:gi,merge:fs,extend:Td,trim:jd,stripBOM:_d,inherits:Vd,toFlatObject:Md,kindOf:na,kindOfTest:_t,endsWith:Ld,toArray:Bd,forEachEntry:qd,matchAll:Qd,isHTMLForm:Hd,hasOwnProperty:ec,hasOwnProp:ec,reduceDescriptors:ac,freezeMethods:Gd,toObjectSet:Wd,toCamelCase:$d,noop:Yd,toFiniteNumber:Xd,findKey:nc,global:qr,isContextDefined:ic,isSpecCompliantForm:Kd,toJSONObject:Zd,isAsyncFn:kd,isThenable:eu,setImmediate:sc,asap:tu,isIterable:ou};function In(t,e,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}a(In,"AxiosError");c.inherits(In,Error,{toJSON:a(function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var pc=In.prototype,cc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cc[t]={value:t}});Object.defineProperties(In,cc);Object.defineProperty(pc,"isAxiosError",{value:!0});In.from=(t,e,o,n,i,r)=>{let s=Object.create(pc);c.toFlatObject(t,s,a(function(m){return m!==Error.prototype},"filter"),v=>v!=="isAxiosError");let p=t&&t.message?t.message:"Error",y=e==null&&t?t.code:e;return In.call(s,p,y,o,n,i),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",r&&Object.assign(s,r),s};var R=In;var fc=cs(vd(),1),aa=fc.default;function us(t){return c.isPlainObject(t)||c.isArray(t)}a(us,"isVisitable");function uc(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}a(uc,"removeBrackets");function dc(t,e,o){return t?t.concat(e).map(a(function(i,r){return i=uc(i),!o&&r?"["+i+"]":i},"each")).join(o?".":""):e}a(dc,"renderKey");function ru(t){return c.isArray(t)&&!t.some(us)}a(ru,"isFlatArray");var nu=c.toFlatObject(c,{},null,a(function(e){return/^is[A-Z]/.test(e)},"filter"));function iu(t,e,o){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new(aa||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,a(function(F,C){return!c.isUndefined(C[F])},"defined"));let n=o.metaTokens,i=o.visitor||m,r=o.dots,s=o.indexes,y=(o.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(i))throw new TypeError("visitor must be a function");function v(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(c.isBoolean(h))return h.toString();if(!y&&c.isBlob(h))throw new R("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?y&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}a(v,"convertValue");function m(h,F,C){let Q=h;if(h&&!C&&typeof h=="object"){if(c.endsWith(F,"{}"))F=n?F:F.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&ru(h)||(c.isFileList(h)||c.endsWith(F,"[]"))&&(Q=c.toArray(h)))return F=uc(F),Q.forEach(a(function(B,le){!(c.isUndefined(B)||B===null)&&e.append(s===!0?dc([F],le,r):s===null?F:F+"[]",v(B))},"each")),!1}return us(h)?!0:(e.append(dc(C,F,r),v(h)),!1)}a(m,"defaultVisitor");let N=[],b=Object.assign(nu,{defaultVisitor:m,convertValue:v,isVisitable:us});function I(h,F){if(!c.isUndefined(h)){if(N.indexOf(h)!==-1)throw Error("Circular reference detected in "+F.join("."));N.push(h),c.forEach(h,a(function(Q,Y){(!(c.isUndefined(Q)||Q===null)&&i.call(e,Q,c.isString(Y)?Y.trim():Y,F,b))===!0&&I(Q,F?F.concat(Y):[Y])},"each")),N.pop()}}if(a(I,"build"),!c.isObject(t))throw new TypeError("data must be an object");return I(t),e}a(iu,"toFormData");var Ir=iu;function lc(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,a(function(n){return e[n]},"replacer"))}a(lc,"encode");function mc(t,e){this._pairs=[],t&&Ir(t,this,e)}a(mc,"AxiosURLSearchParams");var vc=mc.prototype;vc.append=a(function(e,o){this._pairs.push([e,o])},"append");vc.toString=a(function(e){let o=e?function(n){return e.call(this,n,lc)}:lc;return this._pairs.map(a(function(i){return o(i[0])+"="+o(i[1])},"each"),"").join("&")},"toString");var yc=mc;function au(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}a(au,"encode");function Qr(t,e,o){if(!e)return t;let n=o&&o.encode||au;c.isFunction(o)&&(o={serialize:o});let i=o&&o.serialize,r;if(i?r=i(e,o):r=c.isURLSearchParams(e)?e.toString():new yc(e,o).toString(n),r){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}a(Qr,"buildURL");var su=class{static{a(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,o,n){return this.handlers.push({fulfilled:e,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,a(function(n){n!==null&&e(n)},"forEachHandler"))}},ls=su;var zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};import cu from"crypto";import pu from"url";var gc=pu.URLSearchParams;var ms="abcdefghijklmnopqrstuvwxyz",hc="0123456789",Sc={DIGIT:hc,ALPHA:ms,ALPHA_DIGIT:ms+ms.toUpperCase()+hc},fu=a((t=16,e=Sc.ALPHA_DIGIT)=>{let o="",{length:n}=e,i=new Uint32Array(t);cu.randomFillSync(i);for(let r=0;r<t;r++)o+=e[i[r]%n];return o},"generateString"),Nc={isNode:!0,classes:{URLSearchParams:gc,FormData:aa,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Sc,generateString:fu,protocols:["http","https","file","data"]};var gs={};ld(gs,{hasBrowserEnv:()=>ys,hasStandardBrowserEnv:()=>du,hasStandardBrowserWebWorkerEnv:()=>uu,navigator:()=>vs,origin:()=>lu});var ys=typeof window<"u"&&typeof document<"u",vs=typeof navigator=="object"&&navigator||void 0,du=ys&&(!vs||["ReactNative","NativeScript","NS"].indexOf(vs.product)<0),uu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lu=ys&&window.location.href||"http://localhost";var U={...gs,...Nc};function hs(t,e){return Ir(t,new U.classes.URLSearchParams,{visitor:a(function(o,n,i,r){return U.isNode&&c.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},"visitor"),...e})}a(hs,"toURLEncodedForm");function mu(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}a(mu,"parsePropPath");function vu(t){let e={},o=Object.keys(t),n,i=o.length,r;for(n=0;n<i;n++)r=o[n],e[r]=t[r];return e}a(vu,"arrayToObject");function yu(t){function e(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;let p=Number.isFinite(+s),y=r>=o.length;return s=!s&&c.isArray(i)?i.length:s,y?(c.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!p):((!i[s]||!c.isObject(i[s]))&&(i[s]=[]),e(o,n,i[s],r)&&c.isArray(i[s])&&(i[s]=vu(i[s])),!p)}if(a(e,"buildPath"),c.isFormData(t)&&c.isFunction(t.entries)){let o={};return c.forEachEntry(t,(n,i)=>{e(mu(n),i,o,0)}),o}return null}a(yu,"formDataToJSON");var sa=yu;function gu(t,e,o){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(t)}a(gu,"stringifySafely");var Ss={transitional:zn,adapter:["xhr","http","fetch"],transformRequest:[a(function(e,o){let n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=c.isObject(e);if(r&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return i?JSON.stringify(sa(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return hs(e,this.formSerializer).toString();if((p=c.isFileList(e))||n.indexOf("multipart/form-data")>-1){let y=this.env&&this.env.FormData;return Ir(p?{"files[]":e}:e,y&&new y,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),gu(e)):e},"transformRequest")],transformResponse:[a(function(e){let o=this.transitional||Ss.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(n&&!this.responseType||i)){let s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(p){if(s)throw p.name==="SyntaxError"?R.from(p,R.ERR_BAD_RESPONSE,this,null,this.response):p}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:a(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{Ss.headers[t]={}});var On=Ss;var hu=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cc=a((t=>{let e={},o,n,i;return t&&t.split(`
3
3
  `).forEach(a(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!o||e[o]&&hu[o])&&(o==="set-cookie"?e[o]?e[o].push(n):e[o]=[n]:e[o]=e[o]?e[o]+", "+n:n)},"parser")),e}),"default");var bc=Symbol("internals");function hi(t){return t&&String(t).trim().toLowerCase()}a(hi,"normalizeHeader");function pa(t){return t===!1||t==null?t:c.isArray(t)?t.map(pa):String(t)}a(pa,"normalizeValue");function Su(t){let e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=o.exec(t);)e[n[1]]=n[2];return e}a(Su,"parseTokens");var Nu=a(t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()),"isValidHeaderName");function Ns(t,e,o,n,i){if(c.isFunction(n))return n.call(this,e,o);if(i&&(e=o),!!c.isString(e)){if(c.isString(n))return e.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(e)}}a(Ns,"matchHeaderValue");function Cu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,n)=>o.toUpperCase()+n)}a(Cu,"formatHeader");function bu(t,e){let o=c.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+o,{value:a(function(i,r,s){return this[n].call(this,e,i,r,s)},"value"),configurable:!0})})}a(bu,"buildAccessors");var ca=class{static{a(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,o,n){let i=this;function r(p,y,v){let m=hi(y);if(!m)throw new Error("header name must be a non-empty string");let N=c.findKey(i,m);(!N||i[N]===void 0||v===!0||v===void 0&&i[N]!==!1)&&(i[N||y]=pa(p))}a(r,"setHeader");let s=a((p,y)=>c.forEach(p,(v,m)=>r(v,m,y)),"setHeaders");if(c.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(c.isString(e)&&(e=e.trim())&&!Nu(e))s(Cc(e),o);else if(c.isObject(e)&&c.isIterable(e)){let p={},y,v;for(let m of e){if(!c.isArray(m))throw TypeError("Object iterator must return a key-value pair");p[v=m[0]]=(y=p[v])?c.isArray(y)?[...y,m[1]]:[y,m[1]]:m[1]}s(p,o)}else e!=null&&r(o,e,n);return this}get(e,o){if(e=hi(e),e){let n=c.findKey(this,e);if(n){let i=this[n];if(!o)return i;if(o===!0)return Su(i);if(c.isFunction(o))return o.call(this,i,n);if(c.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=hi(e),e){let n=c.findKey(this,e);return!!(n&&this[n]!==void 0&&(!o||Ns(this,this[n],n,o)))}return!1}delete(e,o){let n=this,i=!1;function r(s){if(s=hi(s),s){let p=c.findKey(n,s);p&&(!o||Ns(n,n[p],p,o))&&(delete n[p],i=!0)}}return a(r,"deleteHeader"),c.isArray(e)?e.forEach(r):r(e),i}clear(e){let o=Object.keys(this),n=o.length,i=!1;for(;n--;){let r=o[n];(!e||Ns(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){let o=this,n={};return c.forEach(this,(i,r)=>{let s=c.findKey(n,r);if(s){o[s]=pa(i),delete o[r];return}let p=e?Cu(r):String(r).trim();p!==r&&delete o[r],o[p]=pa(i),n[p]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let o=Object.create(null);return c.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=e&&c.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
4
4
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){let n=new this(e);return o.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[bc]=this[bc]={accessors:{}}).accessors,i=this.prototype;function r(s){let p=hi(s);n[p]||(bu(i,s),n[p]=!0)}return a(r,"defineAccessor"),c.isArray(e)?e.forEach(r):r(e),this}};ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ca.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:a(()=>t,"get"),set(n){this[o]=n}}});c.freezeMethods(ca);var ce=ca;function Si(t,e){let o=this||On,n=e||o,i=ce.from(n.headers),r=n.data;return c.forEach(t,a(function(p){r=p.call(o,r,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),r}a(Si,"transformData");function Ni(t){return!!(t&&t.__CANCEL__)}a(Ni,"isCancel");function Rc(t,e,o){R.call(this,t??"canceled",R.ERR_CANCELED,e,o),this.name="CanceledError"}a(Rc,"CanceledError");c.inherits(Rc,R,{__CANCEL__:!0});var Nt=Rc;function lo(t,e,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?t(o):e(new R("Request failed with status code "+o.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}a(lo,"settle");function Cs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}a(Cs,"isAbsoluteURL");function bs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}a(bs,"combineURLs");function Hr(t,e,o){let n=!Cs(e);return t&&(n||o==!1)?bs(t,e):e}a(Hr,"buildFullPath");var qc=cs(yd(),1),$c=cs(wc(),1);import Xu from"http";import Ku from"https";import Qc from"http2";import Hc from"util";import Or from"zlib";var Gr="1.13.2";function Ii(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}a(Ii,"parseProtocol");var ju=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Ts(t,e,o){let n=o&&o.Blob||U.classes.Blob,i=Ii(t);if(e===void 0&&n&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let r=ju.exec(t);if(!r)throw new R("Invalid URL",R.ERR_INVALID_URL);let s=r[1],p=r[2],y=r[3],v=Buffer.from(decodeURIComponent(y),p?"base64":"utf8");if(e){if(!n)throw new R("Blob is not supported",R.ERR_NOT_SUPPORT);return new n([v],{type:s})}return v}throw new R("Unsupported protocol "+i,R.ERR_NOT_SUPPORT)}a(Ts,"fromDataURI");import zr from"stream";import Tu from"stream";var _s=Symbol("internals"),_u=class extends Tu.Transform{static{a(this,"AxiosTransformStream")}constructor(e){e=c.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!c.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let o=this[_s]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(o.isCaptured||(o.isCaptured=!0))})}_read(e){let o=this[_s];return o.onReadCallback&&o.onReadCallback(),super._read(e)}_transform(e,o,n){let i=this[_s],r=i.maxRate,s=this.readableHighWaterMark,p=i.timeWindow,y=1e3/p,v=r/y,m=i.minChunkSize!==!1?Math.max(i.minChunkSize,v*.01):0,N=a((I,h)=>{let F=Buffer.byteLength(I);i.bytesSeen+=F,i.bytes+=F,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(I)?process.nextTick(h):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(h)}},"pushChunk"),b=a((I,h)=>{let F=Buffer.byteLength(I),C=null,Q=s,Y,B=0;if(r){let le=Date.now();(!i.ts||(B=le-i.ts)>=p)&&(i.ts=le,Y=v-i.bytes,i.bytes=Y<0?-Y:0,B=0),Y=v-i.bytes}if(r){if(Y<=0)return setTimeout(()=>{h(null,I)},p-B);Y<Q&&(Q=Y)}Q&&F>Q&&F-Q>m&&(C=I.subarray(Q),I=I.subarray(0,Q)),N(I,C?()=>{process.nextTick(h,null,C)}:h)},"transformChunk");b(e,a(function I(h,F){if(h)return n(h);F?b(F,I):n(null)},"transformNextChunk"))}},Vs=_u;import{EventEmitter as Zu}from"events";import Mu from"util";import{Readable as Lu}from"stream";var{asyncIterator:Ec}=Symbol,Vu=a(async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Ec]?yield*t[Ec]():yield t},"readBlob"),fa=Vu;var Bu=U.ALPHABET.ALPHA_DIGIT+"-_",zi=typeof TextEncoder=="function"?new TextEncoder:new Mu.TextEncoder,Wr=`\r
5
5
  `,Uu=zi.encode(Wr),qu=2,Qu=class{static{a(this,"FormDataPart")}constructor(e,o){let{escapeName:n}=this.constructor,i=c.isString(o),r=`Content-Disposition: form-data; name="${n(e)}"${!i&&o.name?`; filename="${n(o.name)}"`:""}${Wr}`;i?o=zi.encode(String(o).replace(/\r?\n|\r\n?/g,Wr)):r+=`Content-Type: ${o.type||"application/octet-stream"}${Wr}`,this.headers=zi.encode(r+Wr),this.contentLength=i?o.byteLength:o.size,this.size=this.headers.byteLength+this.contentLength+qu,this.name=e,this.value=o}async*encode(){yield this.headers;let{value:e}=this;c.isTypedArray(e)?yield e:yield*fa(e),yield Uu}static escapeName(e){return String(e).replace(/[\r\n"]/g,o=>({"\r":"%0D","\n":"%0A",'"':"%22"})[o])}},Hu=a((t,e,o)=>{let{tag:n="form-data-boundary",size:i=25,boundary:r=n+"-"+U.generateString(i,Bu)}=o||{};if(!c.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 10-70 characters long");let s=zi.encode("--"+r+Wr),p=zi.encode("--"+r+"--"+Wr),y=p.byteLength,v=Array.from(t.entries()).map(([N,b])=>{let I=new Qu(N,b);return y+=I.size,I});y+=s.byteLength*v.length,y=c.toFiniteNumber(y);let m={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(y)&&(m["Content-Length"]=y),e&&e(m),Lu.from((async function*(){for(let N of v)yield s,yield*N.encode();yield p})())},"formDataToStream"),Pc=Hu;import $u from"stream";var Ju=class extends $u.Transform{static{a(this,"ZlibHeaderTransformStream")}__transform(e,o,n){this.push(e),n()}_transform(e,o,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,o)}this.__transform(e,o,n)}},Dc=Ju;var Gu=a((t,e)=>c.isAsyncFn(t)?function(...o){let n=o.pop();t.apply(this,o).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(r){n(r)}},n)}:t,"callbackify"),jc=Gu;function Wu(t,e){t=t||10;let o=new Array(t),n=new Array(t),i=0,r=0,s;return e=e!==void 0?e:1e3,a(function(y){let v=Date.now(),m=n[r];s||(s=v),o[i]=y,n[i]=v;let N=r,b=0;for(;N!==i;)b+=o[N++],N=N%t;if(i=(i+1)%t,i===r&&(r=(r+1)%t),v-s<e)return;let I=m&&v-m;return I?Math.round(b*1e3/I):void 0},"push")}a(Wu,"speedometer");var Tc=Wu;function Yu(t,e){let o=0,n=1e3/e,i,r,s=a((v,m=Date.now())=>{o=m,i=null,r&&(clearTimeout(r),r=null),t(...v)},"invoke");return[a((...v)=>{let m=Date.now(),N=m-o;N>=n?s(v,m):(i=v,r||(r=setTimeout(()=>{r=null,s(i)},n-N)))},"throttled"),a(()=>i&&s(i),"flush")]}a(Yu,"throttle");var _c=Yu;var jo=a((t,e,o=3)=>{let n=0,i=Tc(50,250);return _c(r=>{let s=r.loaded,p=r.lengthComputable?r.total:void 0,y=s-n,v=i(y),m=s<=p;n=s;let N={loaded:s,total:p,progress:p?s/p:void 0,bytes:y,rate:v||void 0,estimated:v&&p&&m?(p-s)/v:void 0,event:r,lengthComputable:p!=null,[e?"download":"upload"]:!0};t(N)},o)},"progressEventReducer"),xn=a((t,e)=>{let o=t!=null;return[n=>e[0]({lengthComputable:o,total:t,loaded:n}),e[1]]},"progressEventDecorator"),An=a(t=>(...e)=>c.asap(()=>t(...e)),"asyncDecorator");function Ms(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let o=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(o)){let r=n.length,s=n.length;for(let b=0;b<s;b++)if(n.charCodeAt(b)===37&&b+2<s){let I=n.charCodeAt(b+1),h=n.charCodeAt(b+2);(I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(r-=2,b+=2)}let p=0,y=s-1,v=a(b=>b>=2&&n.charCodeAt(b-2)===37&&n.charCodeAt(b-1)===51&&(n.charCodeAt(b)===68||n.charCodeAt(b)===100),"tailIsPct3D");y>=0&&(n.charCodeAt(y)===61?(p++,y--):v(y)&&(p++,y-=3)),p===1&&y>=0&&(n.charCodeAt(y)===61||v(y))&&p++;let N=Math.floor(r/4)*3-(p||0);return N>0?N:0}return Buffer.byteLength(n,"utf8")}a(Ms,"estimateDataURLDecodedBytes");var Vc={flush:Or.constants.Z_SYNC_FLUSH,finishFlush:Or.constants.Z_SYNC_FLUSH},ku={flush:Or.constants.BROTLI_OPERATION_FLUSH,finishFlush:Or.constants.BROTLI_OPERATION_FLUSH},Mc=c.isFunction(Or.createBrotliDecompress),{http:el,https:tl}=$c.default,ol=/https:?/,Lc=U.protocols.map(t=>t+":"),Bc=a((t,[e,o])=>(t.on("end",o).on("error",o),e),"flushOnFinish"),rl=class{static{a(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,o){o=Object.assign({sessionTimeout:1e3},o);let n=this.sessions[e];if(n){let m=n.length;for(let N=0;N<m;N++){let[b,I]=n[N];if(!b.destroyed&&!b.closed&&Hc.isDeepStrictEqual(I,o))return b}}let i=Qc.connect(e,o),r,s=a(()=>{if(r)return;r=!0;let m=n,N=m.length,b=N;for(;b--;)if(m[b][0]===i){N===1?delete this.sessions[e]:m.splice(b,1);return}},"removeSession"),p=i.request,{sessionTimeout:y}=o;if(y!=null){let m,N=0;i.request=function(){let b=p.apply(this,arguments);return N++,m&&(clearTimeout(m),m=null),b.once("close",()=>{--N||(m=setTimeout(()=>{m=null,s()},y))}),b}}i.once("close",s);let v=[i,o];return n?n.push(v):n=this.sessions[e]=[v],i}},nl=new rl;function il(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}a(il,"dispatchBeforeRedirect");function Jc(t,e,o){let n=e;if(!n&&n!==!1){let i=qc.default.getProxyForUrl(o);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let r=Buffer.from(n.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+r}t.headers.host=t.hostname+(t.port?":"+t.port:"");let i=n.hostname||n.host;t.hostname=i,t.host=i,t.port=n.port,t.path=o,n.protocol&&(t.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}t.beforeRedirects.proxy=a(function(r){Jc(r,e,r.href)},"beforeRedirect")}a(Jc,"setProxy");var al=typeof process<"u"&&c.kindOf(process)==="process",sl=a(t=>new Promise((e,o)=>{let n,i,r=a((y,v)=>{i||(i=!0,n&&n(y,v))},"done"),s=a(y=>{r(y),e(y)},"_resolve"),p=a(y=>{r(y,!0),o(y)},"_reject");t(s,p,y=>n=y).catch(p)}),"wrapAsync"),pl=a(({address:t,family:e})=>{if(!c.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},"resolveFamily"),Uc=a((t,e)=>pl(c.isObject(t)?t:{address:t,family:e}),"buildAddressEntry"),cl={request(t,e){let o=t.protocol+"//"+t.hostname+":"+(t.port||80),{http2Options:n,headers:i}=t,r=nl.getSession(o,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:p,HTTP2_HEADER_PATH:y,HTTP2_HEADER_STATUS:v}=Qc.constants,m={[s]:t.protocol.replace(":",""),[p]:t.method,[y]:t.path};c.forEach(i,(b,I)=>{I.charAt(0)!==":"&&(m[I]=b)});let N=r.request(m);return N.once("response",b=>{let I=N;b=Object.assign({},b);let h=b[v];delete b[v],I.headers=b,I.statusCode=+h,e(I)}),N}},Gc=al&&a(function(e){return sl(a(async function(n,i,r){let{data:s,lookup:p,family:y,httpVersion:v=1,http2Options:m}=e,{responseType:N,responseEncoding:b}=e,I=e.method.toUpperCase(),h,F=!1,C;if(v=+v,Number.isNaN(v))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(v!==1&&v!==2)throw TypeError(`Unsupported protocol version '${v}'`);let Q=v===2;if(p){let P=jc(p,O=>c.isArray(O)?O:[O]);p=a((O,G,ht)=>{P(O,G,(ve,Tt,Rr)=>{if(ve)return ht(ve);let ft=c.isArray(Tt)?Tt.map(Ki=>Uc(Ki)):[Uc(Tt,Rr)];G.all?ht(ve,ft):ht(ve,ft[0].address,ft[0].family)})},"lookup")}let Y=new Zu;function B(P){try{Y.emit("abort",!P||P.type?new Nt(null,e,C):P)}catch(O){console.warn("emit error",O)}}a(B,"abort"),Y.once("abort",i);let le=a(()=>{e.cancelToken&&e.cancelToken.unsubscribe(B),e.signal&&e.signal.removeEventListener("abort",B),Y.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(B),e.signal&&(e.signal.aborted?B():e.signal.addEventListener("abort",B))),r((P,O)=>{if(h=!0,O){F=!0,le();return}let{data:G}=P;if(G instanceof zr.Readable||G instanceof zr.Duplex){let ht=zr.finished(G,()=>{ht(),le()})}else le()});let pt=Hr(e.baseURL,e.url,e.allowAbsoluteUrls),me=new URL(pt,U.hasBrowserEnv?U.origin:void 0),xe=me.protocol||Lc[0];if(xe==="data:"){if(e.maxContentLength>-1){let O=String(e.url||pt||"");if(Ms(O)>e.maxContentLength)return i(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e))}let P;if(I!=="GET")return lo(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{P=Ts(e.url,N==="blob",{Blob:e.env&&e.env.Blob})}catch(O){throw R.from(O,R.ERR_BAD_REQUEST,e)}return N==="text"?(P=P.toString(b),(!b||b==="utf8")&&(P=c.stripBOM(P))):N==="stream"&&(P=zr.Readable.from(P)),lo(n,i,{data:P,status:200,statusText:"OK",headers:new ce,config:e})}if(Lc.indexOf(xe)===-1)return i(new R("Unsupported protocol "+xe,R.ERR_BAD_REQUEST,e));let Ve=ce.from(e.headers).normalize();Ve.set("User-Agent","axios/"+Gr,!1);let{onUploadProgress:Cr,onDownloadProgress:Sn}=e,Ur=e.maxRate,Po,po;if(c.isSpecCompliantForm(s)){let P=Ve.getContentType(/boundary=([-_\w\d]{10,70})/i);s=Pc(s,O=>{Ve.set(O)},{tag:`axios-${Gr}-boundary`,boundary:P&&P[1]||void 0})}else if(c.isFormData(s)&&c.isFunction(s.getHeaders)){if(Ve.set(s.getHeaders()),!Ve.hasContentLength())try{let P=await Hc.promisify(s.getLength).call(s);Number.isFinite(P)&&P>=0&&Ve.setContentLength(P)}catch{}}else if(c.isBlob(s)||c.isFile(s))s.size&&Ve.setContentType(s.type||"application/octet-stream"),Ve.setContentLength(s.size||0),s=zr.Readable.from(fa(s));else if(s&&!c.isStream(s)){if(!Buffer.isBuffer(s))if(c.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(c.isString(s))s=Buffer.from(s,"utf-8");else return i(new R("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",R.ERR_BAD_REQUEST,e));if(Ve.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return i(new R("Request body larger than maxBodyLength limit",R.ERR_BAD_REQUEST,e))}let Do=c.toFiniteNumber(Ve.getContentLength());c.isArray(Ur)?(Po=Ur[0],po=Ur[1]):Po=po=Ur,s&&(Cr||Po)&&(c.isStream(s)||(s=zr.Readable.from(s,{objectMode:!1})),s=zr.pipeline([s,new Vs({maxRate:c.toFiniteNumber(Po)})],c.noop),Cr&&s.on("progress",Bc(s,xn(Do,jo(An(Cr),!1,3)))));let br;if(e.auth){let P=e.auth.username||"",O=e.auth.password||"";br=P+":"+O}if(!br&&me.username){let P=me.username,O=me.password;br=P+":"+O}br&&Ve.delete("authorization");let gt;try{gt=Qr(me.pathname+me.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(P){let O=new Error(P.message);return O.config=e,O.url=e.url,O.exists=!0,i(O)}Ve.set("Accept-Encoding","gzip, compress, deflate"+(Mc?", br":""),!1);let Me={path:gt,method:I,headers:Ve.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:br,protocol:xe,family:y,beforeRedirect:il,beforeRedirects:{},http2Options:m};!c.isUndefined(p)&&(Me.lookup=p),e.socketPath?Me.socketPath=e.socketPath:(Me.hostname=me.hostname.startsWith("[")?me.hostname.slice(1,-1):me.hostname,Me.port=me.port,Jc(Me,e.proxy,xe+"//"+me.hostname+(me.port?":"+me.port:"")+Me.path));let ct,Nn=ol.test(Me.protocol);if(Me.agent=Nn?e.httpsAgent:e.httpAgent,Q?ct=cl:e.transport?ct=e.transport:e.maxRedirects===0?ct=Nn?Ku:Xu:(e.maxRedirects&&(Me.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Me.beforeRedirects.config=e.beforeRedirect),ct=Nn?tl:el),e.maxBodyLength>-1?Me.maxBodyLength=e.maxBodyLength:Me.maxBodyLength=1/0,e.insecureHTTPParser&&(Me.insecureHTTPParser=e.insecureHTTPParser),C=ct.request(Me,a(function(O){if(C.destroyed)return;let G=[O],ht=c.toFiniteNumber(O.headers["content-length"]);if(Sn||po){let ft=new Vs({maxRate:c.toFiniteNumber(po)});Sn&&ft.on("progress",Bc(ft,xn(ht,jo(An(Sn),!0,3)))),G.push(ft)}let ve=O,Tt=O.req||C;if(e.decompress!==!1&&O.headers["content-encoding"])switch((I==="HEAD"||O.statusCode===204)&&delete O.headers["content-encoding"],(O.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":G.push(Or.createUnzip(Vc)),delete O.headers["content-encoding"];break;case"deflate":G.push(new Dc),G.push(Or.createUnzip(Vc)),delete O.headers["content-encoding"];break;case"br":Mc&&(G.push(Or.createBrotliDecompress(ku)),delete O.headers["content-encoding"])}ve=G.length>1?zr.pipeline(G,c.noop):G[0];let Rr={status:O.statusCode,statusText:O.statusMessage,headers:new ce(O.headers),config:e,request:Tt};if(N==="stream")Rr.data=ve,lo(n,i,Rr);else{let ft=[],Ki=0;ve.on("data",a(function(ot){ft.push(ot),Ki+=ot.length,e.maxContentLength>-1&&Ki>e.maxContentLength&&(F=!0,ve.destroy(),B(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e,Tt)))},"handleStreamData")),ve.on("aborted",a(function(){if(F)return;let ot=new R("stream has been aborted",R.ERR_BAD_RESPONSE,e,Tt);ve.destroy(ot),i(ot)},"handlerStreamAborted")),ve.on("error",a(function(ot){C.destroyed||i(R.from(ot,null,e,Tt))},"handleStreamError")),ve.on("end",a(function(){try{let ot=ft.length===1?ft[0]:Buffer.concat(ft);N!=="arraybuffer"&&(ot=ot.toString(b),(!b||b==="utf8")&&(ot=c.stripBOM(ot))),Rr.data=ot}catch(ot){return i(R.from(ot,null,e,Rr.request,Rr))}lo(n,i,Rr)},"handleStreamEnd"))}Y.once("abort",ft=>{ve.destroyed||(ve.emit("error",ft),ve.destroy())})},"handleResponse")),Y.once("abort",P=>{C.close?C.close():C.destroy(P)}),C.on("error",a(function(O){i(R.from(O,null,e,C))},"handleRequestError")),C.on("socket",a(function(O){O.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let P=parseInt(e.timeout,10);if(Number.isNaN(P)){B(new R("error trying to parse `config.timeout` to int",R.ERR_BAD_OPTION_VALUE,e,C));return}C.setTimeout(P,a(function(){if(h)return;let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",ht=e.transitional||zn;e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),B(new R(G,ht.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,C))},"handleRequestTimeout"))}else C.setTimeout(0);if(c.isStream(s)){let P=!1,O=!1;s.on("end",()=>{P=!0}),s.once("error",G=>{O=!0,C.destroy(G)}),s.on("close",()=>{!P&&!O&&B(new Nt("Request stream has been aborted",e,C))}),s.pipe(C)}else s&&C.write(s),C.end()},"dispatchHttpRequest"))},"httpAdapter");var Wc=U.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,U.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0;var Yc=U.hasStandardBrowserEnv?{write(t,e,o,n,i,r,s){if(typeof document>"u")return;let p=[`${t}=${encodeURIComponent(e)}`];c.isNumber(o)&&p.push(`expires=${new Date(o).toUTCString()}`),c.isString(n)&&p.push(`path=${n}`),c.isString(i)&&p.push(`domain=${i}`),r===!0&&p.push("secure"),c.isString(s)&&p.push(`SameSite=${s}`),document.cookie=p.join("; ")},read(t){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var Xc=a(t=>t instanceof ce?{...t}:t,"headersToObject");function Vt(t,e){e=e||{};let o={};function n(v,m,N,b){return c.isPlainObject(v)&&c.isPlainObject(m)?c.merge.call({caseless:b},v,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}a(n,"getMergedValue");function i(v,m,N,b){if(c.isUndefined(m)){if(!c.isUndefined(v))return n(void 0,v,N,b)}else return n(v,m,N,b)}a(i,"mergeDeepProperties");function r(v,m){if(!c.isUndefined(m))return n(void 0,m)}a(r,"valueFromConfig2");function s(v,m){if(c.isUndefined(m)){if(!c.isUndefined(v))return n(void 0,v)}else return n(void 0,m)}a(s,"defaultToConfig2");function p(v,m,N){if(N in e)return n(v,m);if(N in t)return n(void 0,v)}a(p,"mergeDirectKeys");let y={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:p,headers:a((v,m,N)=>i(Xc(v),Xc(m),N,!0),"headers")};return c.forEach(Object.keys({...t,...e}),a(function(m){let N=y[m]||i,b=N(t[m],e[m],m);c.isUndefined(b)&&N!==p||(o[m]=b)},"computeConfigValue")),o}a(Vt,"mergeConfig");var da=a((t=>{let e=Vt({},t),{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:p}=e;if(e.headers=s=ce.from(s),e.url=Qr(Hr(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),p&&s.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),c.isFormData(o)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(c.isFunction(o.getHeaders)){let y=o.getHeaders(),v=["content-type","content-length"];Object.entries(y).forEach(([m,N])=>{v.includes(m.toLowerCase())&&s.set(m,N)})}}if(U.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(e)),n||n!==!1&&Wc(e.url))){let y=i&&r&&Yc.read(r);y&&s.set(i,y)}return e}),"default");var fl=typeof XMLHttpRequest<"u",Kc=fl&&function(t){return new Promise(a(function(o,n){let i=da(t),r=i.data,s=ce.from(i.headers).normalize(),{responseType:p,onUploadProgress:y,onDownloadProgress:v}=i,m,N,b,I,h;function F(){I&&I(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}a(F,"done");let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function Q(){if(!C)return;let B=ce.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),pt={data:!p||p==="text"||p==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:B,config:t,request:C};lo(a(function(xe){o(xe),F()},"_resolve"),a(function(xe){n(xe),F()},"_reject"),pt),C=null}a(Q,"onloadend"),"onloadend"in C?C.onloadend=Q:C.onreadystatechange=a(function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(Q)},"handleLoad"),C.onabort=a(function(){C&&(n(new R("Request aborted",R.ECONNABORTED,t,C)),C=null)},"handleAbort"),C.onerror=a(function(le){let pt=le&&le.message?le.message:"Network Error",me=new R(pt,R.ERR_NETWORK,t,C);me.event=le||null,n(me),C=null},"handleError"),C.ontimeout=a(function(){let le=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",pt=i.transitional||zn;i.timeoutErrorMessage&&(le=i.timeoutErrorMessage),n(new R(le,pt.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,C)),C=null},"handleTimeout"),r===void 0&&s.setContentType(null),"setRequestHeader"in C&&c.forEach(s.toJSON(),a(function(le,pt){C.setRequestHeader(pt,le)},"setRequestHeader")),c.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),p&&p!=="json"&&(C.responseType=i.responseType),v&&([b,h]=jo(v,!0),C.addEventListener("progress",b)),y&&C.upload&&([N,I]=jo(y),C.upload.addEventListener("progress",N),C.upload.addEventListener("loadend",I)),(i.cancelToken||i.signal)&&(m=a(B=>{C&&(n(!B||B.type?new Nt(null,t,C):B),C.abort(),C=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));let Y=Ii(i.url);if(Y&&U.protocols.indexOf(Y)===-1){n(new R("Unsupported protocol "+Y+":",R.ERR_BAD_REQUEST,t));return}C.send(r||null)},"dispatchXhrRequest"))};var dl=a((t,e)=>{let{length:o}=t=t?t.filter(Boolean):[];if(e||o){let n=new AbortController,i,r=a(function(v){if(!i){i=!0,p();let m=v instanceof Error?v:this.reason;n.abort(m instanceof R?m:new Nt(m instanceof Error?m.message:m))}},"onabort"),s=e&&setTimeout(()=>{s=null,r(new R(`timeout ${e} of ms exceeded`,R.ETIMEDOUT))},e),p=a(()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(v=>{v.unsubscribe?v.unsubscribe(r):v.removeEventListener("abort",r)}),t=null)},"unsubscribe");t.forEach(v=>v.addEventListener("abort",r));let{signal:y}=n;return y.unsubscribe=()=>c.asap(p),y}},"composeSignals"),Zc=dl;var ul=a(function*(t,e){let o=t.byteLength;if(!e||o<e){yield t;return}let n=0,i;for(;n<o;)i=n+e,yield t.slice(n,i),n=i},"streamChunk"),ll=a(async function*(t,e){for await(let o of ml(t))yield*ul(o,e)},"readBytes"),ml=a(async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}let e=t.getReader();try{for(;;){let{done:o,value:n}=await e.read();if(o)break;yield n}}finally{await e.cancel()}},"readStream"),Ls=a((t,e,o,n)=>{let i=ll(t,e),r=0,s,p=a(y=>{s||(s=!0,n&&n(y))},"_onFinish");return new ReadableStream({async pull(y){try{let{done:v,value:m}=await i.next();if(v){p(),y.close();return}let N=m.byteLength;if(o){let b=r+=N;o(b)}y.enqueue(new Uint8Array(m))}catch(v){throw p(v),v}},cancel(y){return p(y),i.return()}},{highWaterMark:2})},"trackStream");var kc=64*1024,{isFunction:ua}=c,vl=(({Request:t,Response:e})=>({Request:t,Response:e}))(c.global),{ReadableStream:ef,TextEncoder:tf}=c.global,of=a((t,...e)=>{try{return!!t(...e)}catch{return!1}},"test"),yl=a(t=>{t=c.merge.call({skipUndefined:!0},vl,t);let{fetch:e,Request:o,Response:n}=t,i=e?ua(e):typeof fetch=="function",r=ua(o),s=ua(n);if(!i)return!1;let p=i&&ua(ef),y=i&&(typeof tf=="function"?(h=>F=>h.encode(F))(new tf):async h=>new Uint8Array(await new o(h).arrayBuffer())),v=r&&p&&of(()=>{let h=!1,F=new o(U.origin,{body:new ef,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!F}),m=s&&p&&of(()=>c.isReadableStream(new n("").body)),N={stream:m&&(h=>h.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!N[h]&&(N[h]=(F,C)=>{let Q=F&&F[h];if(Q)return Q.call(F);throw new R(`Response type '${h}' is not supported`,R.ERR_NOT_SUPPORT,C)})});let b=a(async h=>{if(h==null)return 0;if(c.isBlob(h))return h.size;if(c.isSpecCompliantForm(h))return(await new o(U.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(c.isArrayBufferView(h)||c.isArrayBuffer(h))return h.byteLength;if(c.isURLSearchParams(h)&&(h=h+""),c.isString(h))return(await y(h)).byteLength},"getBodyLength"),I=a(async(h,F)=>{let C=c.toFiniteNumber(h.getContentLength());return C??b(F)},"resolveBodyLength");return async h=>{let{url:F,method:C,data:Q,signal:Y,cancelToken:B,timeout:le,onDownloadProgress:pt,onUploadProgress:me,responseType:xe,headers:Ve,withCredentials:Cr="same-origin",fetchOptions:Sn}=da(h),Ur=e||fetch;xe=xe?(xe+"").toLowerCase():"text";let Po=Zc([Y,B&&B.toAbortSignal()],le),po=null,Do=Po&&Po.unsubscribe&&(()=>{Po.unsubscribe()}),br;try{if(me&&v&&C!=="get"&&C!=="head"&&(br=await I(Ve,Q))!==0){let O=new o(F,{method:"POST",body:Q,duplex:"half"}),G;if(c.isFormData(Q)&&(G=O.headers.get("content-type"))&&Ve.setContentType(G),O.body){let[ht,ve]=xn(br,jo(An(me)));Q=Ls(O.body,kc,ht,ve)}}c.isString(Cr)||(Cr=Cr?"include":"omit");let gt=r&&"credentials"in o.prototype,Me={...Sn,signal:Po,method:C.toUpperCase(),headers:Ve.normalize().toJSON(),body:Q,duplex:"half",credentials:gt?Cr:void 0};po=r&&new o(F,Me);let ct=await(r?Ur(po,Sn):Ur(F,Me)),Nn=m&&(xe==="stream"||xe==="response");if(m&&(pt||Nn&&Do)){let O={};["status","statusText","headers"].forEach(Tt=>{O[Tt]=ct[Tt]});let G=c.toFiniteNumber(ct.headers.get("content-length")),[ht,ve]=pt&&xn(G,jo(An(pt),!0))||[];ct=new n(Ls(ct.body,kc,ht,()=>{ve&&ve(),Do&&Do()}),O)}xe=xe||"text";let P=await N[c.findKey(N,xe)||"text"](ct,h);return!Nn&&Do&&Do(),await new Promise((O,G)=>{lo(O,G,{data:P,headers:ce.from(ct.headers),status:ct.status,statusText:ct.statusText,config:h,request:po})})}catch(gt){throw Do&&Do(),gt&&gt.name==="TypeError"&&/Load failed|fetch/i.test(gt.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,h,po),{cause:gt.cause||gt}):R.from(gt,gt&&gt.code,h,po)}}},"factory"),gl=new Map,Bs=a(t=>{let e=t&&t.env||{},{fetch:o,Request:n,Response:i}=e,r=[n,i,o],s=r.length,p=s,y,v,m=gl;for(;p--;)y=r[p],v=m.get(y),v===void 0&&m.set(y,v=p?new Map:yl(e)),m=v;return v},"getFetch"),Uh=Bs();var Us={http:Gc,xhr:Kc,fetch:{get:Bs}};c.forEach(Us,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var rf=a(t=>`- ${t}`,"renderReason"),Sl=a(t=>c.isFunction(t)||t===null||t===!1,"isResolvedHandle");function Nl(t,e){t=c.isArray(t)?t:[t];let{length:o}=t,n,i,r={};for(let s=0;s<o;s++){n=t[s];let p;if(i=n,!Sl(n)&&(i=Us[(p=String(n)).toLowerCase()],i===void 0))throw new R(`Unknown adapter '${p}'`);if(i&&(c.isFunction(i)||(i=i.get(e))))break;r[p||"#"+s]=i}if(!i){let s=Object.entries(r).map(([y,v])=>`adapter ${y} `+(v===!1?"is not supported by the environment":"is not available in the build")),p=o?s.length>1?`since :