nfets 0.0.37 → 0.0.39

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.
@@ -0,0 +1,8 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{A as mo,B as oc,E as rc,F as Fd,G as Id,H as zd,I as nc,J as ic,L as H,M as f,N as xr,d as Kp,f as d,g as Zp,h as S,i as fo,k as oa,o as uo,p as Le,q as kp,r as ec,w as tc,x as lo,z as w}from"./chunk-IURMCRIH.mjs";import{a,b as yi,d as Yp,e as Rd,f as ls}from"./chunk-W6MRGYXP.mjs";var Pc=Yp((qy,Ec)=>{"use strict";var Fi;Ec.exports=function(){if(!Fi){try{Fi=Fd()("follow-redirects")}catch{}typeof Fi!="function"&&(Fi=a(function(){},"debug"))}Fi.apply(null,arguments)}});var Vc=Yp((Hy,Ms)=>{"use strict";var zi=yi("url"),Ii=zi.URL,Du=yi("http"),ju=yi("https"),Es=yi("stream").Writable,Ps=yi("assert"),Dc=Pc();a((function(){var e=typeof process<"u",o=typeof window<"u"&&typeof document<"u",n=Kr(Error.captureStackTrace);!e&&(o||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var Ds=!1;try{Ps(new Ii(""))}catch(t){Ds=t.code==="ERR_INVALID_URL"}var Tu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],js=["abort","aborted","connect","error","socket","timeout"],Ts=Object.create(null);js.forEach(function(t){Ts[t]=function(e,o,n){this._redirectable.emit(t,e,o,n)}});var xs=Oi("ERR_INVALID_URL","Invalid URL",TypeError),As=Oi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),_u=Oi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",As),Vu=Oi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Mu=Oi("ERR_STREAM_WRITE_AFTER_END","write after end"),Lu=Es.prototype.destroy||Tc;function mt(t,e){Es.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 As?i:new As({cause:i}))}},this._performRequest()}a(mt,"RedirectableRequest");mt.prototype=Object.create(Es.prototype);mt.prototype.abort=function(){Vs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};mt.prototype.destroy=function(t){return Vs(this._currentRequest,t),Lu.call(this,t),this};mt.prototype.write=function(t,e,o){if(this._ending)throw new Mu;if(!Yr(t)&&!qu(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Kr(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 Vu),this.abort())};mt.prototype.end=function(t,e,o){if(Kr(t)?(o=t,t=e=null):Kr(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}};mt.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};mt.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};mt.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){mt.prototype[t]=function(e,o){return this._currentRequest[t](e,o)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(mt.prototype,t,{get:a(function(){return this._currentRequest[t]},"get")})});mt.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))}};mt.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 js)n.on(i,Ts[i]);if(this._currentUrl=/^\//.test(this._options.path)?zi.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 u=p[r++];n.finished||n.write(u.data,u.encoding,y)}else s._ended&&n.end()}),"writeNext")()}};mt.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(Vs(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new _u;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=[],Os(/^content-/i,this._options.headers));var s=Os(/^host$/i,this._options.headers),p=_s(this._currentUrl),y=s||p.host,v=/^\w+:/.test(o)?this._currentUrl:zi.format(Object.assign(p,{host:y})),u=Bu(o,v);if(Dc("redirecting to",u.href),this._isRedirect=!0,ws(u,this._options),(u.protocol!==p.protocol&&u.protocol!=="https:"||u.host!==y&&!Uu(u.host,y))&&Os(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Kr(i)){var N={headers:t.headers,statusCode:e},C={url:v,method:r,headers:n};i(this._options,N,C),this._sanitizeOptions(this._options)}this._performRequest()};function jc(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,u,N){return Qu(v)?v=ws(v):Yr(v)?v=ws(_s(v)):(N=u,u=_c(v),v={protocol:i}),Kr(u)&&(N=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,u),u.nativeProtocols=o,!Yr(u.host)&&!Yr(u.hostname)&&(u.hostname="::1"),Ps.equal(u.protocol,i,"protocol mismatch"),Dc("options",u),new mt(u,N)}a(p,"request");function y(v,u,N){var C=s.request(v,u,N);return C.end(),C}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(jc,"wrap");function Tc(){}a(Tc,"noop");function _s(t){var e;if(Ds)e=new Ii(t);else if(e=_c(zi.parse(t)),!Yr(e.protocol))throw new xs({input:t});return e}a(_s,"parseUrl");function Bu(t,e){return Ds?new Ii(t,e):_s(zi.resolve(e,t))}a(Bu,"resolveUrl");function _c(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new xs({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new xs({input:t.href||t});return t}a(_c,"validateUrl");function ws(t,e){var o=e||{};for(var n of Tu)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(ws,"spreadUrlObject");function Os(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(Os,"removeMatchingHeaders");function Oi(t,e,o){function n(i){Kr(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(Oi,"createErrorType");function Vs(t,e){for(var o of js)t.removeListener(o,Ts[o]);t.on("error",Tc),t.destroy(e)}a(Vs,"destroyRequest");function Uu(t,e){Ps(Yr(t)&&Yr(e));var o=t.length-e.length-1;return o>0&&t[o]==="."&&t.endsWith(e)}a(Uu,"isSubdomain");function Yr(t){return typeof t=="string"||t instanceof String}a(Yr,"isString");function Kr(t){return typeof t=="function"}a(Kr,"isFunction");function qu(t){return typeof t=="object"&&"length"in t}a(qu,"isBuffer");function Qu(t){return Ii&&t instanceof Ii}a(Qu,"isURL");Ms.exports=jc({http:Du,https:ju});Ms.exports.wrap=jc});var Ct=(function(t){return t.Normal="1",t.EPEC="4",t.SVCAN="6",t.SVCRS="7",t.OFFLINE="9",t})({});var Od={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21"},ra=process.env.NFETS_NFE_SCHEMAS_DIR??"",ac=Od;var na=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"),u=(e.cNF??this.code()).toString().padStart(8,"0"),N=`${o}${n}${i}${r}${s}${p}${y}${v}${u}`;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,u,N,C,F,h]=n;return{cUF:r,year:s,month:p,identification:y,mod:v,serie:u,nNF:N,tpEmis:C,cNF:F,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 ia=class{static{a(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let o=mo.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:mo.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:mo.newOrZero(n?.vFrete).add(e.vFrete??o).toFixed(2),vSeg:mo.newOrZero(n?.vSeg).add(e.vSeg??o).toFixed(2),vDesc:mo.newOrZero(n?.vDesc).add(e.vDesc??o).toFixed(2),vOutro:mo.newOrZero(n?.vOutro).add(e.vOutro??o).toFixed(2)}}))}icms(e){}};var aa=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=mo.from(0);this.builder.increment(({ICMSTot:o,ISSQNtot:n})=>({ICMSTot:{vNF:mo.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 gi(t,e){return a(function(){return t.apply(e,arguments)},"wrap")}a(gi,"bind");var{toString:xd}=Object.prototype,{getPrototypeOf:vs}=Object,{iterator:pa,toStringTag:pc}=Symbol,ca=(t=>e=>{let o=xd.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Vt=a(t=>(t=t.toLowerCase(),e=>ca(e)===t),"kindOfTest"),fa=a(t=>e=>typeof e===t,"typeOfTest"),{isArray:zn}=Array,In=fa("undefined");function hi(t){return t!==null&&!In(t)&&t.constructor!==null&&!In(t.constructor)&&lt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}a(hi,"isBuffer");var cc=Vt("ArrayBuffer");function Ad(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cc(t.buffer),e}a(Ad,"isArrayBufferView");var wd=fa("string"),lt=fa("function"),fc=fa("number"),Si=a(t=>t!==null&&typeof t=="object","isObject"),Ed=a(t=>t===!0||t===!1,"isBoolean"),sa=a(t=>{if(ca(t)!=="object")return!1;let e=vs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(pc in t)&&!(pa in t)},"isPlainObject"),Pd=a(t=>{if(!Si(t)||hi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},"isEmptyObject"),Dd=Vt("Date"),jd=Vt("File"),Td=Vt("Blob"),_d=Vt("FileList"),Vd=a(t=>Si(t)&&lt(t.pipe),"isStream"),Md=a(t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||lt(t.append)&&((e=ca(t))==="formdata"||e==="object"&&lt(t.toString)&&t.toString()==="[object FormData]"))},"isFormData"),Ld=Vt("URLSearchParams"),[Bd,Ud,qd,Qd]=["ReadableStream","Request","Response","Headers"].map(Vt),Hd=a(t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function Ni(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),zn(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(hi(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(Ni,"forEach");function dc(t,e){if(hi(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(dc,"findKey");var Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uc=a(t=>!In(t)&&t!==Gr,"isContextDefined");function ms(){let{caseless:t,skipUndefined:e}=uc(this)&&this||{},o={},n=a((i,r)=>{let s=t&&dc(o,r)||r;sa(o[s])&&sa(i)?o[s]=ms(o[s],i):sa(i)?o[s]=ms({},i):zn(i)?o[s]=i.slice():(!e||!In(i))&&(o[s]=i)},"assignValue");for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Ni(arguments[i],n);return o}a(ms,"merge");var $d=a((t,e,o,{allOwnKeys:n}={})=>(Ni(e,(i,r)=>{o&&lt(i)?t[r]=gi(i,o):t[r]=i},{allOwnKeys:n}),t),"extend"),Jd=a(t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),"stripBOM"),Gd=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"),Wd=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&&vs(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},"toFlatObject"),Xd=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"),Yd=a(t=>{if(!t)return null;if(zn(t))return t;let e=t.length;if(!fc(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},"toArray"),Kd=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vs(Uint8Array)),Zd=a((t,e)=>{let n=(t&&t[pa]).call(t),i;for(;(i=n.next())&&!i.done;){let r=i.value;e.call(t,r[0],r[1])}},"forEachEntry"),kd=a((t,e)=>{let o,n=[];for(;(o=t.exec(e))!==null;)n.push(o);return n},"matchAll"),eu=Vt("HTMLFormElement"),tu=a(t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,a(function(o,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),sc=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),ou=Vt("RegExp"),lc=a((t,e)=>{let o=Object.getOwnPropertyDescriptors(t),n={};Ni(o,(i,r)=>{let s;(s=e(i,r,t))!==!1&&(n[r]=s||i)}),Object.defineProperties(t,n)},"reduceDescriptors"),ru=a(t=>{lc(t,(e,o)=>{if(lt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let n=t[o];if(lt(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"),nu=a((t,e)=>{let o={},n=a(i=>{i.forEach(r=>{o[r]=!0})},"define");return zn(t)?n(t):n(String(t).split(e)),o},"toObjectSet"),iu=a(()=>{},"noop"),au=a((t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,"toFiniteNumber");function su(t){return!!(t&&lt(t.append)&&t[pc]==="FormData"&&t[pa])}a(su,"isSpecCompliantForm");var pu=a(t=>{let e=new Array(10),o=a((n,i)=>{if(Si(n)){if(e.indexOf(n)>=0)return;if(hi(n))return n;if(!("toJSON"in n)){e[i]=n;let r=zn(n)?[]:{};return Ni(n,(s,p)=>{let y=o(s,i+1);!In(y)&&(r[p]=y)}),e[i]=void 0,r}}return n},"visit");return o(t,0)},"toJSONObject"),cu=Vt("AsyncFunction"),fu=a(t=>t&&(Si(t)||lt(t))&&lt(t.then)&&lt(t.catch),"isThenable"),mc=((t,e)=>t?setImmediate:e?((o,n)=>(Gr.addEventListener("message",({source:i,data:r})=>{i===Gr&&r===o&&n.length&&n.shift()()},!1),i=>{n.push(i),Gr.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",lt(Gr.postMessage)),du=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||mc,uu=a(t=>t!=null&&lt(t[pa]),"isIterable"),c={isArray:zn,isArrayBuffer:cc,isBuffer:hi,isFormData:Md,isArrayBufferView:Ad,isString:wd,isNumber:fc,isBoolean:Ed,isObject:Si,isPlainObject:sa,isEmptyObject:Pd,isReadableStream:Bd,isRequest:Ud,isResponse:qd,isHeaders:Qd,isUndefined:In,isDate:Dd,isFile:jd,isBlob:Td,isRegExp:ou,isFunction:lt,isStream:Vd,isURLSearchParams:Ld,isTypedArray:Kd,isFileList:_d,forEach:Ni,merge:ms,extend:$d,trim:Hd,stripBOM:Jd,inherits:Gd,toFlatObject:Wd,kindOf:ca,kindOfTest:Vt,endsWith:Xd,toArray:Yd,forEachEntry:Zd,matchAll:kd,isHTMLForm:eu,hasOwnProperty:sc,hasOwnProp:sc,reduceDescriptors:lc,freezeMethods:ru,toObjectSet:nu,toCamelCase:tu,noop:iu,toFiniteNumber:au,findKey:dc,global:Gr,isContextDefined:uc,isSpecCompliantForm:su,toJSONObject:pu,isAsyncFn:cu,isThenable:fu,setImmediate:mc,asap:du,isIterable:uu};function On(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(On,"AxiosError");c.inherits(On,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 vc=On.prototype,yc={};["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=>{yc[t]={value:t}});Object.defineProperties(On,yc);Object.defineProperty(vc,"isAxiosError",{value:!0});On.from=(t,e,o,n,i,r)=>{let s=Object.create(vc);c.toFlatObject(t,s,a(function(u){return u!==Error.prototype},"filter"),v=>v!=="isAxiosError");let p=t&&t.message?t.message:"Error",y=e==null&&t?t.code:e;return On.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=On;var gc=ls(Id(),1),da=gc.default;function ys(t){return c.isPlainObject(t)||c.isArray(t)}a(ys,"isVisitable");function Sc(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}a(Sc,"removeBrackets");function hc(t,e,o){return t?t.concat(e).map(a(function(i,r){return i=Sc(i),!o&&r?"["+i+"]":i},"each")).join(o?".":""):e}a(hc,"renderKey");function lu(t){return c.isArray(t)&&!t.some(ys)}a(lu,"isFlatArray");var mu=c.toFlatObject(c,{},null,a(function(e){return/^is[A-Z]/.test(e)},"filter"));function vu(t,e,o){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new(da||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,a(function(I,b){return!c.isUndefined(b[I])},"defined"));let n=o.metaTokens,i=o.visitor||u,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 u(h,I,b){let Q=h;if(h&&!b&&typeof h=="object"){if(c.endsWith(I,"{}"))I=n?I:I.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&lu(h)||(c.isFileList(h)||c.endsWith(I,"[]"))&&(Q=c.toArray(h)))return I=Sc(I),Q.forEach(a(function(B,le){!(c.isUndefined(B)||B===null)&&e.append(s===!0?hc([I],le,r):s===null?I:I+"[]",v(B))},"each")),!1}return ys(h)?!0:(e.append(hc(b,I,r),v(h)),!1)}a(u,"defaultVisitor");let N=[],C=Object.assign(mu,{defaultVisitor:u,convertValue:v,isVisitable:ys});function F(h,I){if(!c.isUndefined(h)){if(N.indexOf(h)!==-1)throw Error("Circular reference detected in "+I.join("."));N.push(h),c.forEach(h,a(function(Q,X){(!(c.isUndefined(Q)||Q===null)&&i.call(e,Q,c.isString(X)?X.trim():X,I,C))===!0&&F(Q,I?I.concat(X):[X])},"each")),N.pop()}}if(a(F,"build"),!c.isObject(t))throw new TypeError("data must be an object");return F(t),e}a(vu,"toFormData");var Ar=vu;function Nc(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(Nc,"encode");function Cc(t,e){this._pairs=[],t&&Ar(t,this,e)}a(Cc,"AxiosURLSearchParams");var bc=Cc.prototype;bc.append=a(function(e,o){this._pairs.push([e,o])},"append");bc.toString=a(function(e){let o=e?function(n){return e.call(this,n,Nc)}:Nc;return this._pairs.map(a(function(i){return o(i[0])+"="+o(i[1])},"each"),"").join("&")},"toString");var Rc=Cc;function yu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}a(yu,"encode");function Wr(t,e,o){if(!e)return t;let n=o&&o.encode||yu;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 Rc(e,o).toString(n),r){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}a(Wr,"buildURL");var gu=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"))}},gs=gu;var xn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};import Su from"crypto";import hu from"url";var Fc=hu.URLSearchParams;var hs="abcdefghijklmnopqrstuvwxyz",Ic="0123456789",zc={DIGIT:Ic,ALPHA:hs,ALPHA_DIGIT:hs+hs.toUpperCase()+Ic},Nu=a((t=16,e=zc.ALPHA_DIGIT)=>{let o="",{length:n}=e,i=new Uint32Array(t);Su.randomFillSync(i);for(let r=0;r<t;r++)o+=e[i[r]%n];return o},"generateString"),Oc={isNode:!0,classes:{URLSearchParams:Fc,FormData:da,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:zc,generateString:Nu,protocols:["http","https","file","data"]};var Cs={};Rd(Cs,{hasBrowserEnv:()=>Ns,hasStandardBrowserEnv:()=>Cu,hasStandardBrowserWebWorkerEnv:()=>bu,navigator:()=>Ss,origin:()=>Ru});var Ns=typeof window<"u"&&typeof document<"u",Ss=typeof navigator=="object"&&navigator||void 0,Cu=Ns&&(!Ss||["ReactNative","NativeScript","NS"].indexOf(Ss.product)<0),bu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ru=Ns&&window.location.href||"http://localhost";var U={...Cs,...Oc};function bs(t,e){return Ar(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(bs,"toURLEncodedForm");function Fu(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}a(Fu,"parsePropPath");function Iu(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(Iu,"arrayToObject");function zu(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]=Iu(i[s])),!p)}if(a(e,"buildPath"),c.isFormData(t)&&c.isFunction(t.entries)){let o={};return c.forEachEntry(t,(n,i)=>{e(Fu(n),i,o,0)}),o}return null}a(zu,"formDataToJSON");var ua=zu;function Ou(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(Ou,"stringifySafely");var Rs={transitional:xn,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(ua(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 bs(e,this.formSerializer).toString();if((p=c.isFileList(e))||n.indexOf("multipart/form-data")>-1){let y=this.env&&this.env.FormData;return Ar(p?{"files[]":e}:e,y&&new y,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),Ou(e)):e},"transformRequest")],transformResponse:[a(function(e){let o=this.transitional||Rs.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=>{Rs.headers[t]={}});var An=Rs;var xu=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"]),xc=a((t=>{let e={},o,n,i;return t&&t.split(`
3
+ `).forEach(a(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!o||e[o]&&xu[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 Ac=Symbol("internals");function Ci(t){return t&&String(t).trim().toLowerCase()}a(Ci,"normalizeHeader");function la(t){return t===!1||t==null?t:c.isArray(t)?t.map(la):String(t)}a(la,"normalizeValue");function Au(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(Au,"parseTokens");var wu=a(t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()),"isValidHeaderName");function Fs(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(Fs,"matchHeaderValue");function Eu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,n)=>o.toUpperCase()+n)}a(Eu,"formatHeader");function Pu(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(Pu,"buildAccessors");var ma=class{static{a(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,o,n){let i=this;function r(p,y,v){let u=Ci(y);if(!u)throw new Error("header name must be a non-empty string");let N=c.findKey(i,u);(!N||i[N]===void 0||v===!0||v===void 0&&i[N]!==!1)&&(i[N||y]=la(p))}a(r,"setHeader");let s=a((p,y)=>c.forEach(p,(v,u)=>r(v,u,y)),"setHeaders");if(c.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(c.isString(e)&&(e=e.trim())&&!wu(e))s(xc(e),o);else if(c.isObject(e)&&c.isIterable(e)){let p={},y,v;for(let u of e){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");p[v=u[0]]=(y=p[v])?c.isArray(y)?[...y,u[1]]:[y,u[1]]:u[1]}s(p,o)}else e!=null&&r(o,e,n);return this}get(e,o){if(e=Ci(e),e){let n=c.findKey(this,e);if(n){let i=this[n];if(!o)return i;if(o===!0)return Au(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=Ci(e),e){let n=c.findKey(this,e);return!!(n&&this[n]!==void 0&&(!o||Fs(this,this[n],n,o)))}return!1}delete(e,o){let n=this,i=!1;function r(s){if(s=Ci(s),s){let p=c.findKey(n,s);p&&(!o||Fs(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||Fs(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]=la(i),delete o[r];return}let p=e?Eu(r):String(r).trim();p!==r&&delete o[r],o[p]=la(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
+ `)}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[Ac]=this[Ac]={accessors:{}}).accessors,i=this.prototype;function r(s){let p=Ci(s);n[p]||(Pu(i,s),n[p]=!0)}return a(r,"defineAccessor"),c.isArray(e)?e.forEach(r):r(e),this}};ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ma.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:a(()=>t,"get"),set(n){this[o]=n}}});c.freezeMethods(ma);var fe=ma;function bi(t,e){let o=this||An,n=e||o,i=fe.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(bi,"transformData");function Ri(t){return!!(t&&t.__CANCEL__)}a(Ri,"isCancel");function wc(t,e,o){R.call(this,t??"canceled",R.ERR_CANCELED,e,o),this.name="CanceledError"}a(wc,"CanceledError");c.inherits(wc,R,{__CANCEL__:!0});var bt=wc;function vo(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(vo,"settle");function Is(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}a(Is,"isAbsoluteURL");function zs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}a(zs,"combineURLs");function Xr(t,e,o){let n=!Is(e);return t&&(n||o==!1)?zs(t,e):e}a(Xr,"buildFullPath");var Xc=ls(zd(),1),Zc=ls(Vc(),1);import al from"http";import sl from"https";import Yc from"http2";import Kc from"util";import Er from"zlib";var Zr="1.13.2";function xi(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}a(xi,"parseProtocol");var Hu=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Ls(t,e,o){let n=o&&o.Blob||U.classes.Blob,i=xi(t);if(e===void 0&&n&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let r=Hu.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(Ls,"fromDataURI");import wr from"stream";import $u from"stream";var Bs=Symbol("internals"),Ju=class extends $u.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[Bs]={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[Bs];return o.onReadCallback&&o.onReadCallback(),super._read(e)}_transform(e,o,n){let i=this[Bs],r=i.maxRate,s=this.readableHighWaterMark,p=i.timeWindow,y=1e3/p,v=r/y,u=i.minChunkSize!==!1?Math.max(i.minChunkSize,v*.01):0,N=a((F,h)=>{let I=Buffer.byteLength(F);i.bytesSeen+=I,i.bytes+=I,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(F)?process.nextTick(h):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(h)}},"pushChunk"),C=a((F,h)=>{let I=Buffer.byteLength(F),b=null,Q=s,X,B=0;if(r){let le=Date.now();(!i.ts||(B=le-i.ts)>=p)&&(i.ts=le,X=v-i.bytes,i.bytes=X<0?-X:0,B=0),X=v-i.bytes}if(r){if(X<=0)return setTimeout(()=>{h(null,F)},p-B);X<Q&&(Q=X)}Q&&I>Q&&I-Q>u&&(b=F.subarray(Q),F=F.subarray(0,Q)),N(F,b?()=>{process.nextTick(h,null,b)}:h)},"transformChunk");C(e,a(function F(h,I){if(h)return n(h);I?C(I,F):n(null)},"transformNextChunk"))}},Us=Ju;import{EventEmitter as pl}from"events";import Wu from"util";import{Readable as Xu}from"stream";var{asyncIterator:Mc}=Symbol,Gu=a(async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Mc]?yield*t[Mc]():yield t},"readBlob"),va=Gu;var Yu=U.ALPHABET.ALPHA_DIGIT+"-_",Ai=typeof TextEncoder=="function"?new TextEncoder:new Wu.TextEncoder,kr=`\r
5
+ `,Ku=Ai.encode(kr),Zu=2,ku=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)}"`:""}${kr}`;i?o=Ai.encode(String(o).replace(/\r?\n|\r\n?/g,kr)):r+=`Content-Type: ${o.type||"application/octet-stream"}${kr}`,this.headers=Ai.encode(r+kr),this.contentLength=i?o.byteLength:o.size,this.size=this.headers.byteLength+this.contentLength+Zu,this.name=e,this.value=o}async*encode(){yield this.headers;let{value:e}=this;c.isTypedArray(e)?yield e:yield*va(e),yield Ku}static escapeName(e){return String(e).replace(/[\r\n"]/g,o=>({"\r":"%0D","\n":"%0A",'"':"%22"})[o])}},el=a((t,e,o)=>{let{tag:n="form-data-boundary",size:i=25,boundary:r=n+"-"+U.generateString(i,Yu)}=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=Ai.encode("--"+r+kr),p=Ai.encode("--"+r+"--"+kr),y=p.byteLength,v=Array.from(t.entries()).map(([N,C])=>{let F=new ku(N,C);return y+=F.size,F});y+=s.byteLength*v.length,y=c.toFiniteNumber(y);let u={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(y)&&(u["Content-Length"]=y),e&&e(u),Xu.from((async function*(){for(let N of v)yield s,yield*N.encode();yield p})())},"formDataToStream"),Lc=el;import tl from"stream";var ol=class extends tl.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)}},Bc=ol;var rl=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"),Uc=rl;function nl(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(),u=n[r];s||(s=v),o[i]=y,n[i]=v;let N=r,C=0;for(;N!==i;)C+=o[N++],N=N%t;if(i=(i+1)%t,i===r&&(r=(r+1)%t),v-s<e)return;let F=u&&v-u;return F?Math.round(C*1e3/F):void 0},"push")}a(nl,"speedometer");var qc=nl;function il(t,e){let o=0,n=1e3/e,i,r,s=a((v,u=Date.now())=>{o=u,i=null,r&&(clearTimeout(r),r=null),t(...v)},"invoke");return[a((...v)=>{let u=Date.now(),N=u-o;N>=n?s(v,u):(i=v,r||(r=setTimeout(()=>{r=null,s(i)},n-N)))},"throttled"),a(()=>i&&s(i),"flush")]}a(il,"throttle");var Qc=il;var Vo=a((t,e,o=3)=>{let n=0,i=qc(50,250);return Qc(r=>{let s=r.loaded,p=r.lengthComputable?r.total:void 0,y=s-n,v=i(y),u=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&&u?(p-s)/v:void 0,event:r,lengthComputable:p!=null,[e?"download":"upload"]:!0};t(N)},o)},"progressEventReducer"),wn=a((t,e)=>{let o=t!=null;return[n=>e[0]({lengthComputable:o,total:t,loaded:n}),e[1]]},"progressEventDecorator"),En=a(t=>(...e)=>c.asap(()=>t(...e)),"asyncDecorator");function qs(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 C=0;C<s;C++)if(n.charCodeAt(C)===37&&C+2<s){let F=n.charCodeAt(C+1),h=n.charCodeAt(C+2);(F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(r-=2,C+=2)}let p=0,y=s-1,v=a(C=>C>=2&&n.charCodeAt(C-2)===37&&n.charCodeAt(C-1)===51&&(n.charCodeAt(C)===68||n.charCodeAt(C)===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(qs,"estimateDataURLDecodedBytes");var Hc={flush:Er.constants.Z_SYNC_FLUSH,finishFlush:Er.constants.Z_SYNC_FLUSH},cl={flush:Er.constants.BROTLI_OPERATION_FLUSH,finishFlush:Er.constants.BROTLI_OPERATION_FLUSH},$c=c.isFunction(Er.createBrotliDecompress),{http:fl,https:dl}=Zc.default,ul=/https:?/,Jc=U.protocols.map(t=>t+":"),Gc=a((t,[e,o])=>(t.on("end",o).on("error",o),e),"flushOnFinish"),ll=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 u=n.length;for(let N=0;N<u;N++){let[C,F]=n[N];if(!C.destroyed&&!C.closed&&Kc.isDeepStrictEqual(F,o))return C}}let i=Yc.connect(e,o),r,s=a(()=>{if(r)return;r=!0;let u=n,N=u.length,C=N;for(;C--;)if(u[C][0]===i){N===1?delete this.sessions[e]:u.splice(C,1);return}},"removeSession"),p=i.request,{sessionTimeout:y}=o;if(y!=null){let u,N=0;i.request=function(){let C=p.apply(this,arguments);return N++,u&&(clearTimeout(u),u=null),C.once("close",()=>{--N||(u=setTimeout(()=>{u=null,s()},y))}),C}}i.once("close",s);let v=[i,o];return n?n.push(v):n=this.sessions[e]=[v],i}},ml=new ll;function vl(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}a(vl,"dispatchBeforeRedirect");function kc(t,e,o){let n=e;if(!n&&n!==!1){let i=Xc.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){kc(r,e,r.href)},"beforeRedirect")}a(kc,"setProxy");var yl=typeof process<"u"&&c.kindOf(process)==="process",gl=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"),hl=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"),Wc=a((t,e)=>hl(c.isObject(t)?t:{address:t,family:e}),"buildAddressEntry"),Sl={request(t,e){let o=t.protocol+"//"+t.hostname+":"+(t.port||80),{http2Options:n,headers:i}=t,r=ml.getSession(o,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:p,HTTP2_HEADER_PATH:y,HTTP2_HEADER_STATUS:v}=Yc.constants,u={[s]:t.protocol.replace(":",""),[p]:t.method,[y]:t.path};c.forEach(i,(C,F)=>{F.charAt(0)!==":"&&(u[F]=C)});let N=r.request(u);return N.once("response",C=>{let F=N;C=Object.assign({},C);let h=C[v];delete C[v],F.headers=C,F.statusCode=+h,e(F)}),N}},ef=yl&&a(function(e){return gl(a(async function(n,i,r){let{data:s,lookup:p,family:y,httpVersion:v=1,http2Options:u}=e,{responseType:N,responseEncoding:C}=e,F=e.method.toUpperCase(),h,I=!1,b;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 D=Uc(p,O=>c.isArray(O)?O:[O]);p=a((O,G,Nt)=>{D(O,G,(ve,_t,Or)=>{if(ve)return Nt(ve);let ut=c.isArray(_t)?_t.map(ta=>Wc(ta)):[Wc(_t,Or)];G.all?Nt(ve,ut):Nt(ve,ut[0].address,ut[0].family)})},"lookup")}let X=new pl;function B(D){try{X.emit("abort",!D||D.type?new bt(null,e,b):D)}catch(O){console.warn("emit error",O)}}a(B,"abort"),X.once("abort",i);let le=a(()=>{e.cancelToken&&e.cancelToken.unsubscribe(B),e.signal&&e.signal.removeEventListener("abort",B),X.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(B),e.signal&&(e.signal.aborted?B():e.signal.addEventListener("abort",B))),r((D,O)=>{if(h=!0,O){I=!0,le();return}let{data:G}=D;if(G instanceof wr.Readable||G instanceof wr.Duplex){let Nt=wr.finished(G,()=>{Nt(),le()})}else le()});let ft=Xr(e.baseURL,e.url,e.allowAbsoluteUrls),me=new URL(ft,U.hasBrowserEnv?U.origin:void 0),xe=me.protocol||Jc[0];if(xe==="data:"){if(e.maxContentLength>-1){let O=String(e.url||ft||"");if(qs(O)>e.maxContentLength)return i(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e))}let D;if(F!=="GET")return vo(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{D=Ls(e.url,N==="blob",{Blob:e.env&&e.env.Blob})}catch(O){throw R.from(O,R.ERR_BAD_REQUEST,e)}return N==="text"?(D=D.toString(C),(!C||C==="utf8")&&(D=c.stripBOM(D))):N==="stream"&&(D=wr.Readable.from(D)),vo(n,i,{data:D,status:200,statusText:"OK",headers:new fe,config:e})}if(Jc.indexOf(xe)===-1)return i(new R("Unsupported protocol "+xe,R.ERR_BAD_REQUEST,e));let Ve=fe.from(e.headers).normalize();Ve.set("User-Agent","axios/"+Zr,!1);let{onUploadProgress:Ir,onDownloadProgress:Rn}=e,Jr=e.maxRate,To,co;if(c.isSpecCompliantForm(s)){let D=Ve.getContentType(/boundary=([-_\w\d]{10,70})/i);s=Lc(s,O=>{Ve.set(O)},{tag:`axios-${Zr}-boundary`,boundary:D&&D[1]||void 0})}else if(c.isFormData(s)&&c.isFunction(s.getHeaders)){if(Ve.set(s.getHeaders()),!Ve.hasContentLength())try{let D=await Kc.promisify(s.getLength).call(s);Number.isFinite(D)&&D>=0&&Ve.setContentLength(D)}catch{}}else if(c.isBlob(s)||c.isFile(s))s.size&&Ve.setContentType(s.type||"application/octet-stream"),Ve.setContentLength(s.size||0),s=wr.Readable.from(va(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 _o=c.toFiniteNumber(Ve.getContentLength());c.isArray(Jr)?(To=Jr[0],co=Jr[1]):To=co=Jr,s&&(Ir||To)&&(c.isStream(s)||(s=wr.Readable.from(s,{objectMode:!1})),s=wr.pipeline([s,new Us({maxRate:c.toFiniteNumber(To)})],c.noop),Ir&&s.on("progress",Gc(s,wn(_o,Vo(En(Ir),!1,3)))));let zr;if(e.auth){let D=e.auth.username||"",O=e.auth.password||"";zr=D+":"+O}if(!zr&&me.username){let D=me.username,O=me.password;zr=D+":"+O}zr&&Ve.delete("authorization");let St;try{St=Wr(me.pathname+me.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(D){let O=new Error(D.message);return O.config=e,O.url=e.url,O.exists=!0,i(O)}Ve.set("Accept-Encoding","gzip, compress, deflate"+($c?", br":""),!1);let Me={path:St,method:F,headers:Ve.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:zr,protocol:xe,family:y,beforeRedirect:vl,beforeRedirects:{},http2Options:u};!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,kc(Me,e.proxy,xe+"//"+me.hostname+(me.port?":"+me.port:"")+Me.path));let dt,Fn=ul.test(Me.protocol);if(Me.agent=Fn?e.httpsAgent:e.httpAgent,Q?dt=Sl:e.transport?dt=e.transport:e.maxRedirects===0?dt=Fn?sl:al:(e.maxRedirects&&(Me.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Me.beforeRedirects.config=e.beforeRedirect),dt=Fn?dl:fl),e.maxBodyLength>-1?Me.maxBodyLength=e.maxBodyLength:Me.maxBodyLength=1/0,e.insecureHTTPParser&&(Me.insecureHTTPParser=e.insecureHTTPParser),b=dt.request(Me,a(function(O){if(b.destroyed)return;let G=[O],Nt=c.toFiniteNumber(O.headers["content-length"]);if(Rn||co){let ut=new Us({maxRate:c.toFiniteNumber(co)});Rn&&ut.on("progress",Gc(ut,wn(Nt,Vo(En(Rn),!0,3)))),G.push(ut)}let ve=O,_t=O.req||b;if(e.decompress!==!1&&O.headers["content-encoding"])switch((F==="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(Er.createUnzip(Hc)),delete O.headers["content-encoding"];break;case"deflate":G.push(new Bc),G.push(Er.createUnzip(Hc)),delete O.headers["content-encoding"];break;case"br":$c&&(G.push(Er.createBrotliDecompress(cl)),delete O.headers["content-encoding"])}ve=G.length>1?wr.pipeline(G,c.noop):G[0];let Or={status:O.statusCode,statusText:O.statusMessage,headers:new fe(O.headers),config:e,request:_t};if(N==="stream")Or.data=ve,vo(n,i,Or);else{let ut=[],ta=0;ve.on("data",a(function(rt){ut.push(rt),ta+=rt.length,e.maxContentLength>-1&&ta>e.maxContentLength&&(I=!0,ve.destroy(),B(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e,_t)))},"handleStreamData")),ve.on("aborted",a(function(){if(I)return;let rt=new R("stream has been aborted",R.ERR_BAD_RESPONSE,e,_t);ve.destroy(rt),i(rt)},"handlerStreamAborted")),ve.on("error",a(function(rt){b.destroyed||i(R.from(rt,null,e,_t))},"handleStreamError")),ve.on("end",a(function(){try{let rt=ut.length===1?ut[0]:Buffer.concat(ut);N!=="arraybuffer"&&(rt=rt.toString(C),(!C||C==="utf8")&&(rt=c.stripBOM(rt))),Or.data=rt}catch(rt){return i(R.from(rt,null,e,Or.request,Or))}vo(n,i,Or)},"handleStreamEnd"))}X.once("abort",ut=>{ve.destroyed||(ve.emit("error",ut),ve.destroy())})},"handleResponse")),X.once("abort",D=>{b.close?b.close():b.destroy(D)}),b.on("error",a(function(O){i(R.from(O,null,e,b))},"handleRequestError")),b.on("socket",a(function(O){O.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let D=parseInt(e.timeout,10);if(Number.isNaN(D)){B(new R("error trying to parse `config.timeout` to int",R.ERR_BAD_OPTION_VALUE,e,b));return}b.setTimeout(D,a(function(){if(h)return;let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Nt=e.transitional||xn;e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),B(new R(G,Nt.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,b))},"handleRequestTimeout"))}else b.setTimeout(0);if(c.isStream(s)){let D=!1,O=!1;s.on("end",()=>{D=!0}),s.once("error",G=>{O=!0,b.destroy(G)}),s.on("close",()=>{!D&&!O&&B(new bt("Request stream has been aborted",e,b))}),s.pipe(b)}else s&&b.write(s),b.end()},"dispatchHttpRequest"))},"httpAdapter");var tf=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 of=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 rf=a(t=>t instanceof fe?{...t}:t,"headersToObject");function Mt(t,e){e=e||{};let o={};function n(v,u,N,C){return c.isPlainObject(v)&&c.isPlainObject(u)?c.merge.call({caseless:C},v,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}a(n,"getMergedValue");function i(v,u,N,C){if(c.isUndefined(u)){if(!c.isUndefined(v))return n(void 0,v,N,C)}else return n(v,u,N,C)}a(i,"mergeDeepProperties");function r(v,u){if(!c.isUndefined(u))return n(void 0,u)}a(r,"valueFromConfig2");function s(v,u){if(c.isUndefined(u)){if(!c.isUndefined(v))return n(void 0,v)}else return n(void 0,u)}a(s,"defaultToConfig2");function p(v,u,N){if(N in e)return n(v,u);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,u,N)=>i(rf(v),rf(u),N,!0),"headers")};return c.forEach(Object.keys({...t,...e}),a(function(u){let N=y[u]||i,C=N(t[u],e[u],u);c.isUndefined(C)&&N!==p||(o[u]=C)},"computeConfigValue")),o}a(Mt,"mergeConfig");var ya=a((t=>{let e=Mt({},t),{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:p}=e;if(e.headers=s=fe.from(s),e.url=Wr(Xr(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(([u,N])=>{v.includes(u.toLowerCase())&&s.set(u,N)})}}if(U.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(e)),n||n!==!1&&tf(e.url))){let y=i&&r&&of.read(r);y&&s.set(i,y)}return e}),"default");var Nl=typeof XMLHttpRequest<"u",nf=Nl&&function(t){return new Promise(a(function(o,n){let i=ya(t),r=i.data,s=fe.from(i.headers).normalize(),{responseType:p,onUploadProgress:y,onDownloadProgress:v}=i,u,N,C,F,h;function I(){F&&F(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}a(I,"done");let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function Q(){if(!b)return;let B=fe.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),ft={data:!p||p==="text"||p==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:B,config:t,request:b};vo(a(function(xe){o(xe),I()},"_resolve"),a(function(xe){n(xe),I()},"_reject"),ft),b=null}a(Q,"onloadend"),"onloadend"in b?b.onloadend=Q:b.onreadystatechange=a(function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(Q)},"handleLoad"),b.onabort=a(function(){b&&(n(new R("Request aborted",R.ECONNABORTED,t,b)),b=null)},"handleAbort"),b.onerror=a(function(le){let ft=le&&le.message?le.message:"Network Error",me=new R(ft,R.ERR_NETWORK,t,b);me.event=le||null,n(me),b=null},"handleError"),b.ontimeout=a(function(){let le=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",ft=i.transitional||xn;i.timeoutErrorMessage&&(le=i.timeoutErrorMessage),n(new R(le,ft.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,b)),b=null},"handleTimeout"),r===void 0&&s.setContentType(null),"setRequestHeader"in b&&c.forEach(s.toJSON(),a(function(le,ft){b.setRequestHeader(ft,le)},"setRequestHeader")),c.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),p&&p!=="json"&&(b.responseType=i.responseType),v&&([C,h]=Vo(v,!0),b.addEventListener("progress",C)),y&&b.upload&&([N,F]=Vo(y),b.upload.addEventListener("progress",N),b.upload.addEventListener("loadend",F)),(i.cancelToken||i.signal)&&(u=a(B=>{b&&(n(!B||B.type?new bt(null,t,b):B),b.abort(),b=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));let X=xi(i.url);if(X&&U.protocols.indexOf(X)===-1){n(new R("Unsupported protocol "+X+":",R.ERR_BAD_REQUEST,t));return}b.send(r||null)},"dispatchXhrRequest"))};var Cl=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 u=v instanceof Error?v:this.reason;n.abort(u instanceof R?u:new bt(u instanceof Error?u.message:u))}},"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"),af=Cl;var bl=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"),Rl=a(async function*(t,e){for await(let o of Fl(t))yield*bl(o,e)},"readBytes"),Fl=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"),Qs=a((t,e,o,n)=>{let i=Rl(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:u}=await i.next();if(v){p(),y.close();return}let N=u.byteLength;if(o){let C=r+=N;o(C)}y.enqueue(new Uint8Array(u))}catch(v){throw p(v),v}},cancel(y){return p(y),i.return()}},{highWaterMark:2})},"trackStream");var sf=64*1024,{isFunction:ga}=c,Il=(({Request:t,Response:e})=>({Request:t,Response:e}))(c.global),{ReadableStream:pf,TextEncoder:cf}=c.global,ff=a((t,...e)=>{try{return!!t(...e)}catch{return!1}},"test"),zl=a(t=>{t=c.merge.call({skipUndefined:!0},Il,t);let{fetch:e,Request:o,Response:n}=t,i=e?ga(e):typeof fetch=="function",r=ga(o),s=ga(n);if(!i)return!1;let p=i&&ga(pf),y=i&&(typeof cf=="function"?(h=>I=>h.encode(I))(new cf):async h=>new Uint8Array(await new o(h).arrayBuffer())),v=r&&p&&ff(()=>{let h=!1,I=new o(U.origin,{body:new pf,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!I}),u=s&&p&&ff(()=>c.isReadableStream(new n("").body)),N={stream:u&&(h=>h.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!N[h]&&(N[h]=(I,b)=>{let Q=I&&I[h];if(Q)return Q.call(I);throw new R(`Response type '${h}' is not supported`,R.ERR_NOT_SUPPORT,b)})});let C=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"),F=a(async(h,I)=>{let b=c.toFiniteNumber(h.getContentLength());return b??C(I)},"resolveBodyLength");return async h=>{let{url:I,method:b,data:Q,signal:X,cancelToken:B,timeout:le,onDownloadProgress:ft,onUploadProgress:me,responseType:xe,headers:Ve,withCredentials:Ir="same-origin",fetchOptions:Rn}=ya(h),Jr=e||fetch;xe=xe?(xe+"").toLowerCase():"text";let To=af([X,B&&B.toAbortSignal()],le),co=null,_o=To&&To.unsubscribe&&(()=>{To.unsubscribe()}),zr;try{if(me&&v&&b!=="get"&&b!=="head"&&(zr=await F(Ve,Q))!==0){let O=new o(I,{method:"POST",body:Q,duplex:"half"}),G;if(c.isFormData(Q)&&(G=O.headers.get("content-type"))&&Ve.setContentType(G),O.body){let[Nt,ve]=wn(zr,Vo(En(me)));Q=Qs(O.body,sf,Nt,ve)}}c.isString(Ir)||(Ir=Ir?"include":"omit");let St=r&&"credentials"in o.prototype,Me={...Rn,signal:To,method:b.toUpperCase(),headers:Ve.normalize().toJSON(),body:Q,duplex:"half",credentials:St?Ir:void 0};co=r&&new o(I,Me);let dt=await(r?Jr(co,Rn):Jr(I,Me)),Fn=u&&(xe==="stream"||xe==="response");if(u&&(ft||Fn&&_o)){let O={};["status","statusText","headers"].forEach(_t=>{O[_t]=dt[_t]});let G=c.toFiniteNumber(dt.headers.get("content-length")),[Nt,ve]=ft&&wn(G,Vo(En(ft),!0))||[];dt=new n(Qs(dt.body,sf,Nt,()=>{ve&&ve(),_o&&_o()}),O)}xe=xe||"text";let D=await N[c.findKey(N,xe)||"text"](dt,h);return!Fn&&_o&&_o(),await new Promise((O,G)=>{vo(O,G,{data:D,headers:fe.from(dt.headers),status:dt.status,statusText:dt.statusText,config:h,request:co})})}catch(St){throw _o&&_o(),St&&St.name==="TypeError"&&/Load failed|fetch/i.test(St.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,h,co),{cause:St.cause||St}):R.from(St,St&&St.code,h,co)}}},"factory"),Ol=new Map,Hs=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,u=Ol;for(;p--;)y=r[p],v=u.get(y),v===void 0&&u.set(y,v=p?new Map:zl(e)),u=v;return v},"getFetch"),eS=Hs();var $s={http:ef,xhr:nf,fetch:{get:Hs}};c.forEach($s,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var df=a(t=>`- ${t}`,"renderReason"),Al=a(t=>c.isFunction(t)||t===null||t===!1,"isResolvedHandle");function wl(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,!Al(n)&&(i=$s[(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 :
6
+ `+s.map(df).join(`
7
+ `):" "+df(s[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return i}a(wl,"getAdapter");var ha={getAdapter:wl,adapters:$s};function Js(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new bt(null,t)}a(Js,"throwIfCancellationRequested");function Sa(t){return Js(t),t.headers=fe.from(t.headers),t.data=bi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ha.getAdapter(t.adapter||An.adapter,t)(t).then(a(function(n){return Js(t),n.data=bi.call(t,t.transformResponse,n),n.headers=fe.from(n.headers),n},"onAdapterResolution"),a(function(n){return Ri(n)||(Js(t),n&&n.response&&(n.response.data=bi.call(t,t.transformResponse,n.response),n.response.headers=fe.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}a(Sa,"dispatchRequest");var Na={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Na[t]=a(function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t},"validator")});var uf={};Na.transitional=a(function(e,o,n){function i(r,s){return"[Axios v"+Zr+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return a(i,"formatMessage"),(r,s,p)=>{if(e===!1)throw new R(i(s," has been removed"+(o?" in "+o:"")),R.ERR_DEPRECATED);return o&&!uf[s]&&(uf[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(r,s,p):!0}},"transitional");Na.spelling=a(function(e){return(o,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},"spelling");function El(t,e,o){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let r=n[i],s=e[r];if(s){let p=t[r],y=p===void 0||s(p,r,t);if(y!==!0)throw new R("option "+r+" must be "+y,R.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new R("Unknown option "+r,R.ERR_BAD_OPTION)}}a(El,"assertOptions");var wi={assertOptions:El,validators:Na};var yo=wi.validators,Ca=class{static{a(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new gs,response:new gs}}async request(e,o){try{return await this._request(e,o)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let r=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
8
+ `+r):n.stack=r}catch{}}throw n}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=Mt(this.defaults,o);let{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&wi.assertOptions(n,{silentJSONParsing:yo.transitional(yo.boolean),forcedJSONParsing:yo.transitional(yo.boolean),clarifyTimeoutError:yo.transitional(yo.boolean)},!1),i!=null&&(c.isFunction(i)?o.paramsSerializer={serialize:i}:wi.assertOptions(i,{encode:yo.function,serialize:yo.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),wi.assertOptions(o,{baseUrl:yo.spelling("baseURL"),withXsrfToken:yo.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&c.merge(r.common,r[o.method]);r&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=fe.concat(s,r);let p=[],y=!0;this.interceptors.request.forEach(a(function(I){typeof I.runWhen=="function"&&I.runWhen(o)===!1||(y=y&&I.synchronous,p.unshift(I.fulfilled,I.rejected))},"unshiftRequestInterceptors"));let v=[];this.interceptors.response.forEach(a(function(I){v.push(I.fulfilled,I.rejected)},"pushResponseInterceptors"));let u,N=0,C;if(!y){let h=[Sa.bind(this),void 0];for(h.unshift(...p),h.push(...v),C=h.length,u=Promise.resolve(o);N<C;)u=u.then(h[N++],h[N++]);return u}C=p.length;let F=o;for(;N<C;){let h=p[N++],I=p[N++];try{F=h(F)}catch(b){I.call(this,b);break}}try{u=Sa.call(this,F)}catch(h){return Promise.reject(h)}for(N=0,C=v.length;N<C;)u=u.then(v[N++],v[N++]);return u}getUri(e){e=Mt(this.defaults,e);let o=Xr(e.baseURL,e.url,e.allowAbsoluteUrls);return Wr(o,e.params,e.paramsSerializer)}};c.forEach(["delete","get","head","options"],a(function(e){Ca.prototype[e]=function(o,n){return this.request(Mt(n||{},{method:e,url:o,data:(n||{}).data}))}},"forEachMethodNoData"));c.forEach(["post","put","patch"],a(function(e){function o(n){return a(function(r,s,p){return this.request(Mt(p||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))},"httpMethod")}a(o,"generateHTTPMethod"),Ca.prototype[e]=o(),Ca.prototype[e+"Form"]=o(!0)},"forEachMethodWithData"));var Ei=Ca;var Pl=class lf{static{a(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(a(function(r){o=r},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r,s=new Promise(p=>{n.subscribe(p),r=p}).then(i);return s.cancel=a(function(){n.unsubscribe(r)},"reject"),s},e(a(function(r,s,p){n.reason||(n.reason=new bt(r,s,p),o(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){let e=new AbortController,o=a(n=>{e.abort(n)},"abort");return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new lf(a(function(i){e=i},"executor")),cancel:e}}},mf=Pl;function Gs(t){return a(function(o){return t.apply(null,o)},"wrap")}a(Gs,"spread");function Ws(t){return c.isObject(t)&&t.isAxiosError===!0}a(Ws,"isAxiosError");var Xs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xs).forEach(([t,e])=>{Xs[e]=t});var vf=Xs;function yf(t){let e=new Ei(t),o=gi(Ei.prototype.request,e);return c.extend(o,Ei.prototype,e,{allOwnKeys:!0}),c.extend(o,e,null,{allOwnKeys:!0}),o.create=a(function(i){return yf(Mt(t,i))},"create"),o}a(yf,"createInstance");var ge=yf(An);ge.Axios=Ei;ge.CanceledError=bt;ge.CancelToken=mf;ge.isCancel=Ri;ge.VERSION=Zr;ge.toFormData=Ar;ge.AxiosError=R;ge.Cancel=ge.CanceledError;ge.all=a(function(e){return Promise.all(e)},"all");ge.spread=Gs;ge.isAxiosError=Ws;ge.mergeConfig=Mt;ge.AxiosHeaders=fe;ge.formToJSON=t=>ua(c.isHTMLForm(t)?new FormData(t):t);ge.getAdapter=ha.getAdapter;ge.HttpStatusCode=vf;ge.default=ge;var ba=ge;var{Axios:a0,AxiosError:s0,CanceledError:p0,isCancel:c0,CancelToken:f0,VERSION:d0,all:u0,Cancel:l0,isAxiosError:m0,spread:v0,toFormData:y0,AxiosHeaders:g0,HttpStatusCode:h0,formToJSON:S0,getAdapter:N0,mergeConfig:C0}=ba;var Pn=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=ba.create();toolkit=new ic;caching=new oc;certificates=new rc(this.http,this.caching);soap=new nc(this.toolkit,this.certificates);signer=new kp(this.toolkit,this.certificates);xmlSigner=new ec(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(lo,this)}};import qm from"path";import{Type as Dl}from"class-transformer";import{IsEnum as gf,IsNotEmptyObject as jl,IsObject as Tl,ValidateNested as _l,IsOptional as Vl}from"class-validator";function Ra(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ra,"_ts_decorate");function Ks(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ks,"_ts_metadata");var Pr=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};Ra([gf(S),Ks("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Pr.prototype,"tpAmb",void 0);Ra([gf(d),Ks("design:type",typeof StateCode>"u"?Object:StateCode)],Pr.prototype,"cUF",void 0);Ra([Vl()],Pr.prototype,"xServ",void 0);var Ys=class{static{a(this,"ConsultStatusRequest")}consStatServ};Ra([jl(),Tl(),_l(),Dl(()=>Pr),Ks("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],Ys.prototype,"consStatServ",void 0);import{Type as Zs}from"class-transformer";import{IsEnum as hf,IsOptional as Ia,IsString as Lt,Length as Sf,MinLength as Ml,MaxLength as Ll,Matches as Di,ValidateNested as ks,Allow as Bl,IsObject as Nf}from"class-validator";function Ie(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ie,"_ts_decorate");function Ue(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ue,"_ts_metadata");var Fa=class{static{a(this,"InfInutAttributes")}Id};Ie([Lt(),Ue("design:type",String)],Fa.prototype,"Id",void 0);var Pi=class{static{a(this,"InutNFeAttributes")}xmlns;versao};Ie([Lt(),Ue("design:type",String)],Pi.prototype,"xmlns",void 0);Ie([Lt(),Ia(),Ue("design:type",String)],Pi.prototype,"versao",void 0);var Be=class{static{a(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ie([ks(),Zs(()=>Fa),Ue("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Be.prototype,"$",void 0);Ie([hf(S),Ue("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Be.prototype,"tpAmb",void 0);Ie([Ia()],Be.prototype,"xServ",void 0);Ie([hf(d),Ue("design:type",typeof StateCode>"u"?Object:StateCode)],Be.prototype,"cUF",void 0);Ie([Lt(),Sf(2,2),Di(/^[0-9]{2}$/),Ue("design:type",String)],Be.prototype,"ano",void 0);Ie([Lt(),Ia(),Ue("design:type",String)],Be.prototype,"CNPJ",void 0);Ie([Lt(),Ia(),Ue("design:type",String)],Be.prototype,"CPF",void 0);Ie([Lt(),Sf(2,2),Di(/^(55|65)$/),Ue("design:type",String)],Be.prototype,"mod",void 0);Ie([Lt(),Di(/^[0-9]{1,3}$/),Ue("design:type",String)],Be.prototype,"serie",void 0);Ie([Lt(),Di(/^[0-9]{1,9}$/),Ue("design:type",String)],Be.prototype,"nNFIni",void 0);Ie([Lt(),Di(/^[0-9]{1,9}$/),Ue("design:type",String)],Be.prototype,"nNFFin",void 0);Ie([Lt(),Ml(15),Ll(255),Ue("design:type",String)],Be.prototype,"xJust",void 0);Be=Ie([H({properties:["CNPJ","CPF"],required:!0})],Be);var Mo=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};Ie([Nf(),ks(),Zs(()=>Pi),Ue("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Mo.prototype,"$",void 0);Ie([Nf(),ks(),Zs(()=>Be),Ue("design:type",typeof IInfInut>"u"?Object:IInfInut)],Mo.prototype,"infInut",void 0);Ie([Bl(),Ue("design:type",typeof Signature>"u"?Object:Signature)],Mo.prototype,"Signature",void 0);import{IsEnum as Ul,IsOptional as ql,IsString as Ql,Length as Hl,Matches as $l}from"class-validator";function ep(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ep,"_ts_decorate");function Cf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Cf,"_ts_metadata");var en=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};ep([Ul(S),Cf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],en.prototype,"tpAmb",void 0);ep([ql()],en.prototype,"xServ",void 0);ep([Ql(),Hl(44,44),$l(/^[0-9]{44}$/),Cf("design:type",String)],en.prototype,"chNFe",void 0);import{Type as Pm}from"class-transformer";import{IsEnum as Vp,IsOptional as Mp,IsString as Dm,IsNotEmpty as jm}from"class-validator";import{Allow as Am,IsNotEmpty as wm,IsNotEmptyObject as td,IsObject as od,IsString as Em,ValidateNested as rd}from"class-validator";import{ArrayMaxSize as kf,ArrayMinSize as xm,IsNotEmptyObject as Tp,IsObject as _p,IsOptional as pt,IsString as ed,ValidateNested as Re}from"class-validator";import{Type as Fe}from"class-transformer";import{ArrayMaxSize as Jl,IsArray as Gl,IsEnum as Wl,IsOptional as vt,IsString as j,ValidateNested as za}from"class-validator";import{Type as Oa}from"class-transformer";function A(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(A,"_ts_decorate");function E(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(E,"_ts_metadata");var Lo=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};A([j(),E("design:type",String)],Lo.prototype,"cUF",void 0);A([j(),E("design:type",String)],Lo.prototype,"AAMM",void 0);A([j(),E("design:type",String)],Lo.prototype,"CNPJ",void 0);A([j(),E("design:type",String)],Lo.prototype,"mod",void 0);A([j(),E("design:type",String)],Lo.prototype,"serie",void 0);A([j(),E("design:type",String)],Lo.prototype,"nNF",void 0);var Rt=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};A([j(),E("design:type",String)],Rt.prototype,"cUF",void 0);A([j(),E("design:type",String)],Rt.prototype,"AAMM",void 0);A([vt(),j(),E("design:type",String)],Rt.prototype,"CNPJ",void 0);A([vt(),j(),E("design:type",String)],Rt.prototype,"CPF",void 0);A([j(),E("design:type",String)],Rt.prototype,"IE",void 0);A([j(),E("design:type",String)],Rt.prototype,"mod",void 0);A([j(),E("design:type",String)],Rt.prototype,"serie",void 0);A([j(),E("design:type",String)],Rt.prototype,"nNF",void 0);Rt=A([H({properties:["CNPJ","CPF"],required:!0})],Rt);var Dn=class{static{a(this,"RefECF")}mod;nECF;nCOO};A([j(),E("design:type",String)],Dn.prototype,"mod",void 0);A([j(),E("design:type",String)],Dn.prototype,"nECF",void 0);A([j(),E("design:type",String)],Dn.prototype,"nCOO",void 0);var Bo=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};A([vt(),j(),E("design:type",String)],Bo.prototype,"refNFe",void 0);A([vt(),j(),E("design:type",String)],Bo.prototype,"refNFeSig",void 0);A([vt(),za(),Oa(()=>Lo),E("design:type",typeof IRefNF>"u"?Object:IRefNF)],Bo.prototype,"refNF",void 0);A([vt(),za(),Oa(()=>Rt),E("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],Bo.prototype,"refNFP",void 0);A([vt(),j(),E("design:type",String)],Bo.prototype,"refCTe",void 0);A([vt(),za(),Oa(()=>Dn),E("design:type",typeof IRefECF>"u"?Object:IRefECF)],Bo.prototype,"refECF",void 0);var q=class{static{a(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};A([Wl(d),E("design:type",typeof StateCode>"u"?Object:StateCode)],q.prototype,"cUF",void 0);A([j(),E("design:type",String)],q.prototype,"cNF",void 0);A([j(),E("design:type",String)],q.prototype,"natOp",void 0);A([j(),E("design:type",String)],q.prototype,"mod",void 0);A([j(),E("design:type",String)],q.prototype,"serie",void 0);A([j(),E("design:type",String)],q.prototype,"nNF",void 0);A([xr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),E("design:type",String)],q.prototype,"dhEmi",void 0);A([vt(),xr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),E("design:type",String)],q.prototype,"dhSaiEnt",void 0);A([j(),E("design:type",String)],q.prototype,"tpNF",void 0);A([j(),E("design:type",String)],q.prototype,"idDest",void 0);A([j(),E("design:type",String)],q.prototype,"cMunFG",void 0);A([j(),E("design:type",String)],q.prototype,"tpImp",void 0);A([j(),E("design:type",typeof TpEmis>"u"?Object:TpEmis)],q.prototype,"tpEmis",void 0);A([j(),vt(),E("design:type",String)],q.prototype,"cDV",void 0);A([j(),E("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],q.prototype,"tpAmb",void 0);A([j(),E("design:type",String)],q.prototype,"finNFe",void 0);A([j(),E("design:type",String)],q.prototype,"indFinal",void 0);A([j(),E("design:type",String)],q.prototype,"indPres",void 0);A([vt(),j(),E("design:type",String)],q.prototype,"indIntermed",void 0);A([j(),E("design:type",String)],q.prototype,"procEmi",void 0);A([j(),E("design:type",String)],q.prototype,"verProc",void 0);A([vt(),j(),xr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),E("design:type",String)],q.prototype,"dhCont",void 0);A([vt(),j(),E("design:type",String)],q.prototype,"xJust",void 0);A([vt(),Gl(),Jl(999),za({each:!0}),Oa(()=>Bo),E("design:type",Array)],q.prototype,"NFref",void 0);import{IsOptional as jn,IsString as Uo,ValidateNested as Xl}from"class-validator";import{Type as Yl}from"class-transformer";import{IsOptional as xa,IsString as qt}from"class-validator";function Bt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Bt,"_ts_decorate");function Ut(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ut,"_ts_metadata");var qe=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Bt([qt(),Ut("design:type",String)],qe.prototype,"xLgr",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"nro",void 0);Bt([xa(),qt(),Ut("design:type",String)],qe.prototype,"xCpl",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"xBairro",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"cMun",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"xMun",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"UF",void 0);Bt([qt(),Ut("design:type",String)],qe.prototype,"CEP",void 0);Bt([xa(),qt(),Ut("design:type",String)],qe.prototype,"cPais",void 0);Bt([xa(),qt(),Ut("design:type",String)],qe.prototype,"xPais",void 0);Bt([xa(),qt(),Ut("design:type",String)],qe.prototype,"fone",void 0);function Qt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Qt,"_ts_decorate");function go(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(go,"_ts_metadata");var Ae=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"CNPJ",void 0);Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"CPF",void 0);Qt([Uo(),go("design:type",String)],Ae.prototype,"xNome",void 0);Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"xFant",void 0);Qt([Xl(),Yl(()=>qe),go("design:type",typeof qe>"u"?Object:qe)],Ae.prototype,"enderEmit",void 0);Qt([Uo(),go("design:type",String)],Ae.prototype,"IE",void 0);Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"IEST",void 0);Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"IM",void 0);Qt([jn(),Uo(),go("design:type",String)],Ae.prototype,"CNAE",void 0);Qt([Uo(),go("design:type",String)],Ae.prototype,"CRT",void 0);Ae=Qt([H({properties:["CNPJ","CPF"],required:!0})],Ae);import{IsOptional as qo,IsString as Qo,ValidateNested as Kl}from"class-validator";import{Type as Zl}from"class-transformer";import{IsOptional as Jt,IsString as Gt}from"class-validator";function Ht(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ht,"_ts_decorate");function $t(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a($t,"_ts_metadata");var nt=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"xLgr",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"nro",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"xCpl",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"xBairro",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"cMun",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"xMun",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"UF",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"CEP",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"cPais",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"xPais",void 0);Ht([Jt(),Gt(),$t("design:type",String)],nt.prototype,"fone",void 0);function Wt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Wt,"_ts_decorate");function ho(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ho,"_ts_metadata");var we=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"CNPJ",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"CPF",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"idEstrangeiro",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"xNome",void 0);Wt([qo(),Kl(),Zl(()=>nt),ho("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],we.prototype,"enderDest",void 0);Wt([Qo(),ho("design:type",String)],we.prototype,"indIEDest",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"IE",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"ISUF",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"IM",void 0);Wt([qo(),Qo(),ho("design:type",String)],we.prototype,"email",void 0);we=Wt([H({properties:["CNPJ","CPF"],required:!0})],we);import{IsOptional as So,IsString as Ye}from"class-validator";function Qe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Qe,"_ts_decorate");function Xe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Xe,"_ts_metadata");var Y=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"CNPJ",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"CPF",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"xNome",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"xLgr",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"nro",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"xCpl",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"xBairro",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"cMun",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"xMun",void 0);Qe([Ye(),Xe("design:type",String)],Y.prototype,"UF",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"CEP",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"cPais",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"xPais",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"fone",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"email",void 0);Qe([So(),Ye(),Xe("design:type",String)],Y.prototype,"IE",void 0);Y=Qe([H({properties:["CNPJ","CPF"]})],Y);import{IsOptional as Rf,IsString as Ff}from"class-validator";function tp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(tp,"_ts_decorate");function bf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(bf,"_ts_metadata");var No=class{static{a(this,"AutXML")}CNPJ;CPF};tp([Rf(),Ff(),bf("design:type",String)],No.prototype,"CNPJ",void 0);tp([Rf(),Ff(),bf("design:type",String)],No.prototype,"CPF",void 0);No=tp([H({properties:["CNPJ","CPF"]})],No);import{IsOptional as kl,IsString as Of}from"class-validator";function If(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(If,"_ts_decorate");function zf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(zf,"_ts_metadata");var Dr=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};If([Of(),zf("design:type",String)],Dr.prototype,"CNPJ",void 0);If([kl(),Of(),zf("design:type",String)],Dr.prototype,"idCadIntTran",void 0);import{IsOptional as xf,IsString as np}from"class-validator";function op(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(op,"_ts_decorate");function rp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(rp,"_ts_metadata");var Ho=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};op([np(),rp("design:type",String)],Ho.prototype,"UFSaidaPais",void 0);op([xf(),np(),rp("design:type",String)],Ho.prototype,"xLocExporta",void 0);op([xf(),np(),rp("design:type",String)],Ho.prototype,"xLocDespacho",void 0);import{IsOptional as sp,IsString as pp}from"class-validator";function ip(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ip,"_ts_decorate");function ap(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ap,"_ts_metadata");var $o=class{static{a(this,"Compra")}xNEmp;xPed;xCont};ip([sp(),pp(),ap("design:type",String)],$o.prototype,"xNEmp",void 0);ip([sp(),pp(),ap("design:type",String)],$o.prototype,"xPed",void 0);ip([sp(),pp(),ap("design:type",String)],$o.prototype,"xCont",void 0);import{IsOptional as Af,IsString as Vn}from"class-validator";function Tn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Tn,"_ts_decorate");function _n(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_n,"_ts_metadata");var xt=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};Tn([Vn(),_n("design:type",String)],xt.prototype,"CNPJ",void 0);Tn([Vn(),_n("design:type",String)],xt.prototype,"xContato",void 0);Tn([Vn(),_n("design:type",String)],xt.prototype,"email",void 0);Tn([Vn(),_n("design:type",String)],xt.prototype,"fone",void 0);Tn([Af(),Vn(),_n("design:type",String)],xt.prototype,"idCSRT",void 0);Tn([Af(),Vn(),_n("design:type",String)],xt.prototype,"hashCSRT",void 0);import{IsOptional as wf,ValidateNested as dp}from"class-validator";import{Type as up}from"class-transformer";import{IsOptional as Co}from"class-validator";function $(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($,"_ts_decorate");function J(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(J,"_ts_metadata");var L=class{static{a(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vBC",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSDeson",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPUFDest",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSUFDest",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSUFRemet",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCP",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vBCST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPSTRet",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMono",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMono",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMonoReten",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMonoReten",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMonoRet",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMonoRet",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vProd",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFrete",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vSeg",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vDesc",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vII",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vIPI",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vIPIDevol",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vPIS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vCOFINS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vOutro",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vNF",void 0);$([Co(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vTotTrib",void 0);import{IsOptional as Xt,IsString as Et}from"class-validator";function At(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(At,"_ts_decorate");function wt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(wt,"_ts_metadata");var Ke=class{static{a(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vServ",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vBC",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vISS",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vPIS",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vCOFINS",void 0);At([Et(),wt("design:type",String)],Ke.prototype,"dCompet",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vDeducao",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vOutro",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vDescIncond",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vDescCond",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"vISSRet",void 0);At([Xt(),Et(),wt("design:type",String)],Ke.prototype,"cRegTrib",void 0);import{IsOptional as rn}from"class-validator";function tn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(tn,"_ts_decorate");function on(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(on,"_ts_metadata");var Yt=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetPIS",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetCOFINS",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetCSLL",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vBCIRRF",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vIRRF",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vBCRetPrev",void 0);tn([rn(),f({fixed:2}),on("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetPrev",void 0);function cp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(cp,"_ts_decorate");function fp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(fp,"_ts_metadata");var Jo=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib};cp([dp(),up(()=>L),fp("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Jo.prototype,"ICMSTot",void 0);cp([wf(),dp(),up(()=>Ke),fp("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Jo.prototype,"ISSQNtot",void 0);cp([wf(),dp(),up(()=>Yt),fp("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Jo.prototype,"retTrib",void 0);import{ArrayMaxSize as Pf,IsOptional as cn,IsString as lp,ValidateNested as ji}from"class-validator";import{Type as Ti}from"class-transformer";import{IsOptional as an,IsString as sn}from"class-validator";function jr(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(jr,"_ts_decorate");function nn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(nn,"_ts_metadata");var Ze=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};jr([an(),sn(),nn("design:type",String)],Ze.prototype,"CNPJ",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"CPF",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"xNome",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"IE",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"xEnder",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"xMun",void 0);jr([an(),sn(),nn("design:type",String)],Ze.prototype,"UF",void 0);Ze=jr([H({properties:["CNPJ","CPF"]})],Ze);import{IsOptional as Bn,IsString as Ef}from"class-validator";function Mn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Mn,"_ts_decorate");function Ln(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ln,"_ts_metadata");var Ft=class{static{a(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Mn([Bn(),f({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ft.prototype,"vServ",void 0);Mn([Bn(),f({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ft.prototype,"vBCRet",void 0);Mn([Bn(),f({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ft.prototype,"pICMSRet",void 0);Mn([Bn(),f({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ft.prototype,"vICMSRet",void 0);Mn([Bn(),Ef(),Ln("design:type",String)],Ft.prototype,"CFOP",void 0);Mn([Bn(),Ef(),Ln("design:type",String)],Ft.prototype,"cMunFG",void 0);import{IsOptional as Qn,IsString as Hn}from"class-validator";function Un(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Un,"_ts_decorate");function qn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(qn,"_ts_metadata");var bo=class{static{a(this,"VeicTransp")}placa;UF;RNTC};Un([Qn(),Hn(),qn("design:type",String)],bo.prototype,"placa",void 0);Un([Qn(),Hn(),qn("design:type",String)],bo.prototype,"UF",void 0);Un([Qn(),Hn(),qn("design:type",String)],bo.prototype,"RNTC",void 0);var pn=class{static{a(this,"Reboque")}placa;UF;RNTC};Un([Qn(),Hn(),qn("design:type",String)],pn.prototype,"placa",void 0);Un([Qn(),Hn(),qn("design:type",String)],pn.prototype,"UF",void 0);Un([Qn(),Hn(),qn("design:type",String)],pn.prototype,"RNTC",void 0);import{IsOptional as Gn,IsString as Aa}from"class-validator";function $n(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($n,"_ts_decorate");function Jn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Jn,"_ts_metadata");var Ro=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};$n([Gn(),Aa(),Jn("design:type",String)],Ro.prototype,"qVol",void 0);$n([Gn(),Aa(),Jn("design:type",String)],Ro.prototype,"esp",void 0);$n([Gn(),Aa(),Jn("design:type",String)],Ro.prototype,"marca",void 0);$n([Gn(),Aa(),Jn("design:type",String)],Ro.prototype,"nVol",void 0);$n([Gn(),f({fixed:3}),Jn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pesoL",void 0);$n([Gn(),f({fixed:3}),Jn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pesoB",void 0);function Go(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Go,"_ts_decorate");function Tr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Tr,"_ts_metadata");var ke=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Go([lp(),Tr("design:type",String)],ke.prototype,"modFrete",void 0);Go([cn(),ji(),Ti(()=>Ze),Tr("design:type",typeof Ze>"u"?Object:Ze)],ke.prototype,"transporta",void 0);Go([cn(),ji(),Ti(()=>Ft),Tr("design:type",typeof Ft>"u"?Object:Ft)],ke.prototype,"retTransp",void 0);Go([cn(),ji(),Ti(()=>bo),Tr("design:type",typeof bo>"u"?Object:bo)],ke.prototype,"veicTransp",void 0);Go([cn(),ji({each:!0}),Ti(()=>pn),Pf(5),Tr("design:type",Array)],ke.prototype,"reboque",void 0);Go([cn(),lp(),Tr("design:type",String)],ke.prototype,"vagao",void 0);Go([cn(),lp(),Tr("design:type",String)],ke.prototype,"balsa",void 0);Go([cn(),ji({each:!0}),Ti(()=>Ro),Pf(5e3),Tr("design:type",Array)],ke.prototype,"vol",void 0);ke=Go([H({properties:["veicTransp","reboque"]}),H({properties:["vagao","balsa"]})],ke);import{ArrayMaxSize as em,IsOptional as Ko,IsString as mp,ValidateNested as Df}from"class-validator";import{Type as jf}from"class-transformer";function Xo(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Xo,"_ts_decorate");function Yo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Yo,"_ts_metadata");var Wo=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Xo([Ko(),mp(),Yo("design:type",String)],Wo.prototype,"nFat",void 0);Xo([Ko(),f({fixed:2}),Yo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vOrig",void 0);Xo([Ko(),f({fixed:2}),Yo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vDesc",void 0);Xo([Ko(),f({fixed:2}),Yo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vLiq",void 0);var Wn=class{static{a(this,"Dup")}nDup;dVenc;vDup};Xo([Ko(),mp(),Yo("design:type",String)],Wn.prototype,"nDup",void 0);Xo([Ko(),mp(),Yo("design:type",String)],Wn.prototype,"dVenc",void 0);Xo([Ko(),f({fixed:2}),Yo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wn.prototype,"vDup",void 0);var _r=class{static{a(this,"Cobr")}fat;dup};Xo([Ko(),Df(),jf(()=>Wo),Yo("design:type",typeof Wo>"u"?Object:Wo)],_r.prototype,"fat",void 0);Xo([Ko(),Df({each:!0}),em(120),jf(()=>Wn),Yo("design:type",Array)],_r.prototype,"dup",void 0);import{ArrayMaxSize as rm,ArrayMinSize as nm,IsOptional as im,ValidateNested as am}from"class-validator";import{Type as sm}from"class-transformer";import{IsOptional as Sp,IsString as Np,ValidateNested as tm}from"class-validator";import{Type as om}from"class-transformer";import{IsOptional as gp,IsString as hp}from"class-validator";function vp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(vp,"_ts_decorate");function yp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(yp,"_ts_metadata");var Fo=class{static{a(this,"Card")}cNPJ;tBand;cAut};vp([gp(),hp(),yp("design:type",String)],Fo.prototype,"cNPJ",void 0);vp([gp(),hp(),yp("design:type",String)],Fo.prototype,"tBand",void 0);vp([gp(),hp(),yp("design:type",String)],Fo.prototype,"cAut",void 0);function _i(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(_i,"_ts_decorate");function Vi(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Vi,"_ts_metadata");var Zo=class{static{a(this,"DetPag")}indPag;tPag;vPag;card;xPag};_i([Sp(),Np(),Vi("design:type",String)],Zo.prototype,"indPag",void 0);_i([Np(),Vi("design:type",typeof TPag>"u"?Object:TPag)],Zo.prototype,"tPag",void 0);_i([f({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vPag",void 0);_i([Sp(),tm(),om(()=>Fo),Vi("design:type",typeof Fo>"u"?Object:Fo)],Zo.prototype,"card",void 0);_i([Sp(),Np(),Vi("design:type",String)],Zo.prototype,"xPag",void 0);function Tf(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Tf,"_ts_decorate");function _f(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_f,"_ts_metadata");var Vr=class{static{a(this,"Pag")}detPag;vTroco};Tf([am({each:!0}),nm(1),rm(100),sm(()=>Zo),_f("design:type",Array)],Vr.prototype,"detPag",void 0);Tf([im(),f({fixed:2}),_f("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vr.prototype,"vTroco",void 0);import{ArrayMaxSize as Cp,IsOptional as fn,IsString as Yn,ValidateNested as bp}from"class-validator";import{Type as Rp}from"class-transformer";function ko(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ko,"_ts_decorate");function er(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(er,"_ts_metadata");var Xn=class{static{a(this,"InfAdicObs")}xCampo;xTexto};ko([Yn(),er("design:type",String)],Xn.prototype,"xCampo",void 0);ko([Yn(),er("design:type",String)],Xn.prototype,"xTexto",void 0);var Mi=class{static{a(this,"ProcRef")}nProc;indProc};ko([fn(),Yn(),er("design:type",String)],Mi.prototype,"nProc",void 0);ko([fn(),Yn(),er("design:type",String)],Mi.prototype,"indProc",void 0);var Kt=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};ko([fn(),Yn(),er("design:type",String)],Kt.prototype,"infAdFisco",void 0);ko([fn(),Yn(),er("design:type",String)],Kt.prototype,"infCpl",void 0);ko([fn(),bp({each:!0}),Rp(()=>Xn),Cp(10),er("design:type",Array)],Kt.prototype,"obsCont",void 0);ko([fn(),bp({each:!0}),Rp(()=>Xn),Cp(10),er("design:type",Array)],Kt.prototype,"obsFisco",void 0);ko([fn(),bp({each:!0}),Rp(()=>Mi),Cp(100),er("design:type",Array)],Kt.prototype,"procRef",void 0);import{ArrayMaxSize as Vf,IsNotEmptyObject as pm,IsObject as cm,IsOptional as dn,IsString as Mr,ValidateNested as Mf}from"class-validator";import{Type as Fp}from"class-transformer";function it(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(it,"_ts_decorate");function at(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(at,"_ts_metadata");var wa=class{static{a(this,"ForDiaAttributes")}dia};it([Mr(),at("design:type",String)],wa.prototype,"dia",void 0);var Li=class{static{a(this,"ForDia")}$;qtde};it([cm(),pm(),Fp(()=>wa),at("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Li.prototype,"$",void 0);it([Mr(),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"qtde",void 0);var Bi=class{static{a(this,"Deduc")}xDed;vDed};it([Mr(),at("design:type",String)],Bi.prototype,"xDed",void 0);it([f({fixed:2}),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vDed",void 0);var et=class{static{a(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};it([Mr(),at("design:type",String)],et.prototype,"safra",void 0);it([Mr(),at("design:type",String)],et.prototype,"ref",void 0);it([Mf({each:!0}),Vf(31),Fp(()=>Li),at("design:type",Array)],et.prototype,"forDia",void 0);it([dn(),Mr(),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotMes",void 0);it([dn(),Mr(),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotAnt",void 0);it([dn(),Mr(),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotGer",void 0);it([dn(),Mf({each:!0}),Vf(10),Fp(()=>Bi),at("design:type",Array)],et.prototype,"deduc",void 0);it([dn(),f({fixed:2}),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vFor",void 0);it([dn(),f({fixed:2}),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vTotDed",void 0);it([dn(),f({fixed:2}),at("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vLiqFor",void 0);import{IsObject as Rm,IsOptional as Xa,IsString as Zf,ValidateNested as Xi}from"class-validator";import{Type as Yi}from"class-transformer";import{ArrayMaxSize as Gi,IsArray as _a,IsObject as mn,IsOptional as Z,IsString as he,ValidateNested as rr}from"class-validator";import{Type as nr}from"class-transformer";import{IsOptional as Ea,IsString as Qi}from"class-validator";function Ui(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ui,"_ts_decorate");function qi(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(qi,"_ts_metadata");var tr=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};Ui([Qi(),qi("design:type",String)],tr.prototype,"nLote",void 0);Ui([Ea(),Qi(),qi("design:type",String)],tr.prototype,"qLote",void 0);Ui([Ea(),Qi(),qi("design:type",String)],tr.prototype,"dFab",void 0);Ui([Ea(),Qi(),qi("design:type",String)],tr.prototype,"dVal",void 0);Ui([Ea(),Qi(),qi("design:type",String)],tr.prototype,"cAgreg",void 0);import{IsString as yt,IsOptional as Hi,IsArray as fm,ValidateNested as dm,ArrayMaxSize as um,ArrayMinSize as lm}from"class-validator";import{Type as mm}from"class-transformer";function Pe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Pe,"_ts_decorate");function He(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(He,"_ts_metadata");var Lr=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Pe([yt(),He("design:type",String)],Lr.prototype,"nAdicao",void 0);Pe([yt(),He("design:type",String)],Lr.prototype,"nSeqAdic",void 0);Pe([yt(),He("design:type",String)],Lr.prototype,"cFabricante",void 0);Pe([f({fixed:2}),He("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Lr.prototype,"vDescDI",void 0);Pe([Hi(),yt(),He("design:type",String)],Lr.prototype,"nDraw",void 0);var Ee=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Pe([yt(),He("design:type",String)],Ee.prototype,"nDI",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"dDI",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"xLocDesemb",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"UFDesemb",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"dDesemb",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"tpViaTransp",void 0);Pe([Hi(),f({fixed:2}),He("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ee.prototype,"vAFRMM",void 0);Pe([yt(),He("design:type",String)],Ee.prototype,"tpIntermedio",void 0);Pe([yt(),Hi(),He("design:type",String)],Ee.prototype,"CNPJ",void 0);Pe([yt(),Hi(),He("design:type",String)],Ee.prototype,"CPF",void 0);Pe([yt(),Hi(),He("design:type",String)],Ee.prototype,"UFTerceiro",void 0);Pe([fm(),dm({each:!0}),mm(()=>Lr),um(999),lm(1),He("design:type",Array)],Ee.prototype,"adi",void 0);Ee=Pe([H({properties:["CNPJ","CPF"],required:!0})],Ee);import{Type as vm}from"class-transformer";import{IsOptional as Lf,IsString as Ip,ValidateNested as ym}from"class-validator";function $i(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($i,"_ts_decorate");function Ji(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ji,"_ts_metadata");var Kn=class{static{a(this,"ExportInd")}nRE;chNFe;qExport};$i([Ip(),Ji("design:type",String)],Kn.prototype,"nRE",void 0);$i([Ip(),Ji("design:type",String)],Kn.prototype,"chNFe",void 0);$i([f({fixed:4}),Ji("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kn.prototype,"qExport",void 0);var Zn=class{static{a(this,"DetExport")}nDraw;exportInd};$i([Lf(),Ip(),Ji("design:type",String)],Zn.prototype,"nDraw",void 0);$i([Lf(),ym(),vm(()=>Kn),Ji("design:type",typeof IExportInd>"u"?Object:IExportInd)],Zn.prototype,"exportInd",void 0);import{IsString as qf}from"class-validator";function Bf(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Bf,"_ts_decorate");function Uf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Uf,"_ts_metadata");var kn=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};Bf([qf(),Uf("design:type",String)],kn.prototype,"cProdFisco",void 0);Bf([qf(),Uf("design:type",String)],kn.prototype,"cOperNFF",void 0);import{IsString as Qf}from"class-validator";function zp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(zp,"_ts_decorate");function Op(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Op,"_ts_metadata");var un=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};zp([Qf(),Op("design:type",String)],un.prototype,"xEmb",void 0);zp([f({fixed:3}),Op("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],un.prototype,"qVolEmb",void 0);zp([Qf(),Op("design:type",String)],un.prototype,"uEmb",void 0);import{IsString as re}from"class-validator";function te(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(te,"_ts_decorate");function oe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(oe,"_ts_metadata");var W=class{static{a(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};te([re(),oe("design:type",String)],W.prototype,"tpOp",void 0);te([re(),oe("design:type",String)],W.prototype,"chassi",void 0);te([re(),oe("design:type",String)],W.prototype,"cCor",void 0);te([re(),oe("design:type",String)],W.prototype,"xCor",void 0);te([re(),oe("design:type",String)],W.prototype,"pot",void 0);te([re(),oe("design:type",String)],W.prototype,"cilin",void 0);te([re(),oe("design:type",String)],W.prototype,"pesoL",void 0);te([re(),oe("design:type",String)],W.prototype,"pesoB",void 0);te([re(),oe("design:type",String)],W.prototype,"nSerie",void 0);te([re(),oe("design:type",String)],W.prototype,"tpComb",void 0);te([re(),oe("design:type",String)],W.prototype,"nMotor",void 0);te([re(),oe("design:type",String)],W.prototype,"CMT",void 0);te([re(),oe("design:type",String)],W.prototype,"dist",void 0);te([re(),oe("design:type",String)],W.prototype,"anoMod",void 0);te([re(),oe("design:type",String)],W.prototype,"anoFab",void 0);te([re(),oe("design:type",String)],W.prototype,"tpPint",void 0);te([re(),oe("design:type",String)],W.prototype,"tpVeic",void 0);te([re(),oe("design:type",String)],W.prototype,"espVeic",void 0);te([re(),oe("design:type",String)],W.prototype,"VIN",void 0);te([re(),oe("design:type",String)],W.prototype,"condVeic",void 0);te([re(),oe("design:type",String)],W.prototype,"cMod",void 0);te([re(),oe("design:type",String)],W.prototype,"cCorDENATRAN",void 0);te([re(),oe("design:type",String)],W.prototype,"lota",void 0);te([re(),oe("design:type",String)],W.prototype,"tpRest",void 0);import{IsString as Hf}from"class-validator";function xp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(xp,"_ts_decorate");function Ap(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ap,"_ts_metadata");var ln=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};xp([Hf(),Ap("design:type",String)],ln.prototype,"cProdANVISA",void 0);xp([Hf(),Ap("design:type",String)],ln.prototype,"xMotivoIsencao",void 0);xp([f({fixed:2}),Ap("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"vPMC",void 0);import{IsString as ja}from"class-validator";function Pa(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Pa,"_ts_decorate");function Da(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Da,"_ts_metadata");var Br=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};Pa([ja(),Da("design:type",String)],Br.prototype,"tpArma",void 0);Pa([ja(),Da("design:type",String)],Br.prototype,"nSerie",void 0);Pa([ja(),Da("design:type",String)],Br.prototype,"nCano",void 0);Pa([ja(),Da("design:type",String)],Br.prototype,"descr",void 0);import{IsString as or,IsOptional as qr,IsObject as wp,ValidateNested as Ep,ArrayMaxSize as gm,Max as Ta}from"class-validator";import{Type as Pp}from"class-transformer";function ne(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ne,"_ts_decorate");function ie(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ie,"_ts_metadata");var ei=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};ne([or(),ie("design:type",String)],ei.prototype,"indImport",void 0);ne([or(),ie("design:type",String)],ei.prototype,"cUFOrig",void 0);ne([f({fixed:4}),Ta(100),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"pOrig",void 0);var ti=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ne([f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"qBCProd",void 0);ne([f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vAliqProd",void 0);ne([f({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vCIDE",void 0);var Ur=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ne([or(),ie("design:type",String)],Ur.prototype,"nBico",void 0);ne([or(),ie("design:type",String)],Ur.prototype,"nBomba",void 0);ne([or(),ie("design:type",String)],Ur.prototype,"nTanque",void 0);ne([f({fixed:3}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ur.prototype,"vEncIni",void 0);ne([f({fixed:3}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ur.prototype,"vEncFin",void 0);var $e=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ne([or(),ie("design:type",String)],$e.prototype,"cProdANP",void 0);ne([or(),ie("design:type",String)],$e.prototype,"descANP",void 0);ne([qr(),Ta(100),f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGLP",void 0);ne([qr(),Ta(100),f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNn",void 0);ne([qr(),Ta(100),f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNi",void 0);ne([qr(),f({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"vPart",void 0);ne([or(),qr(),ie("design:type",String)],$e.prototype,"CODIF",void 0);ne([qr(),f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"qTemp",void 0);ne([or(),ie("design:type",String)],$e.prototype,"UFCons",void 0);ne([wp(),Ep(),Pp(()=>ti),ie("design:type",typeof ICIDE>"u"?Object:ICIDE)],$e.prototype,"CIDE",void 0);ne([wp(),Ep(),Pp(()=>Ur),ie("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],$e.prototype,"encerrante",void 0);ne([qr(),f({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pBio",void 0);ne([wp(),Ep({each:!0}),Pp(()=>ei),gm(30),qr(),ie("design:type",Array)],$e.prototype,"origComb",void 0);function _(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(_,"_ts_decorate");function V(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(V,"_ts_metadata");var P=class{static{a(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};_([he(),V("design:type",String)],P.prototype,"cProd",void 0);_([he(),V("design:type",String)],P.prototype,"cEAN",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"cBarra",void 0);_([he(),V("design:type",String)],P.prototype,"xProd",void 0);_([he(),V("design:type",String)],P.prototype,"NCM",void 0);_([Z(),_a(),Gi(8),he({each:!0}),V("design:type",Array)],P.prototype,"NVE",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"CEST",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"indEscala",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"CNPJFab",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"cBenef",void 0);_([Z(),mn(),V("design:type",Object)],P.prototype,"gCred",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"EXTIPI",void 0);_([he(),V("design:type",String)],P.prototype,"CFOP",void 0);_([he(),V("design:type",String)],P.prototype,"uCom",void 0);_([f({fixed:4}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"qCom",void 0);_([f({fixed:10}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vUnCom",void 0);_([f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vProd",void 0);_([he(),V("design:type",String)],P.prototype,"cEANTrib",void 0);_([he(),V("design:type",String)],P.prototype,"uTrib",void 0);_([f({fixed:4}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"qTrib",void 0);_([f({fixed:10}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vUnTrib",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vFrete",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vSeg",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vDesc",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vOutro",void 0);_([he(),V("design:type",String)],P.prototype,"indTot",void 0);_([Z(),_a(),rr({each:!0}),Gi(100),nr(()=>Ee),V("design:type",Array)],P.prototype,"DI",void 0);_([Z(),_a(),rr({each:!0}),Gi(500),nr(()=>Zn),V("design:type",Array)],P.prototype,"detExport",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"xPed",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"nItemPed",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"nFCI",void 0);_([Z(),_a(),rr({each:!0}),Gi(500),nr(()=>tr),V("design:type",Array)],P.prototype,"rastro",void 0);_([Z(),mn(),rr(),nr(()=>kn),V("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],P.prototype,"infProdNFF",void 0);_([Z(),mn(),rr(),nr(()=>un),V("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],P.prototype,"infProdEmb",void 0);_([Z(),mn(),rr(),nr(()=>W),V("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],P.prototype,"veicProd",void 0);_([Z(),mn(),rr(),nr(()=>ln),V("design:type",typeof IMed>"u"?Object:IMed)],P.prototype,"med",void 0);_([Z(),mn(),rr({each:!0}),nr(()=>Br),Gi(500),V("design:type",Array)],P.prototype,"arma",void 0);_([Z(),mn(),rr(),nr(()=>$e),V("design:type",typeof IComb>"u"?Object:IComb)],P.prototype,"comb",void 0);_([Z(),he(),V("design:type",String)],P.prototype,"nRECOPI",void 0);P=_([H({properties:["veicProd","med","arma","comb"]})],P);import{Type as Nr}from"class-transformer";import{IsNumber as Sm,IsOptional as Eo,ValidateNested as Cr}from"class-validator";import{IsOptional as g,IsString as x,Max as hm,ValidateNested as Je}from"class-validator";import{Type as Ge}from"class-transformer";function l(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(l,"_ts_decorate");function m(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(m,"_ts_metadata");var ir=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};l([x(),m("design:type",String)],ir.prototype,"orig",void 0);l([x(),m("design:type",String)],ir.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],ir.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"vICMS",void 0);var It=class{static{a(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],It.prototype,"orig",void 0);l([x(),m("design:type",String)],It.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],It.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],It.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vICMSST",void 0);var Io=class{static{a(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};l([x(),m("design:type",String)],Io.prototype,"orig",void 0);l([x(),m("design:type",String)],Io.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],Io.prototype,"modBC",void 0);l([g(),x(),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"vICMS",void 0);var ar=class{static{a(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],ar.prototype,"orig",void 0);l([x(),m("design:type",String)],ar.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],ar.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vICMSST",void 0);var vn=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};l([x(),m("design:type",String)],vn.prototype,"orig",void 0);l([x(),m("design:type",String)],vn.prototype,"CST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vn.prototype,"vICMSDeson",void 0);l([g(),x(),m("design:type",String)],vn.prototype,"motDesICMS",void 0);var Pt=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};l([x(),m("design:type",String)],Pt.prototype,"orig",void 0);l([x(),m("design:type",String)],Pt.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],Pt.prototype,"modBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"vICMS",void 0);l([g(),f({fixed:4}),hm(100),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"pDif",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pt.prototype,"vICMSDif",void 0);var sr=class{static{a(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([x(),m("design:type",String)],sr.prototype,"orig",void 0);l([x(),m("design:type",String)],sr.prototype,"CST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"vBCSTRet",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"pST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"vICMSSubstituto",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"vICMSSTRet",void 0);var gt=class{static{a(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],gt.prototype,"orig",void 0);l([x(),m("design:type",String)],gt.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],gt.prototype,"modBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],gt.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vICMSST",void 0);var ht=class{static{a(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],ht.prototype,"orig",void 0);l([x(),m("design:type",String)],ht.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],ht.prototype,"modBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],ht.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vICMSST",void 0);var De=class{static{a(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};l([x(),m("design:type",String)],De.prototype,"orig",void 0);l([x(),m("design:type",String)],De.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],De.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],De.prototype,"modBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pMVAST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pRedBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vICMSST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pBCOp",void 0);l([g(),x(),m("design:type",String)],De.prototype,"UFST",void 0);var pr=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([x(),m("design:type",String)],pr.prototype,"orig",void 0);l([x(),m("design:type",String)],pr.prototype,"CST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pr.prototype,"vBCSTRet",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pr.prototype,"pST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pr.prototype,"vICMSSubstituto",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pr.prototype,"vICMSSTRet",void 0);var yn=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};l([x(),m("design:type",String)],yn.prototype,"orig",void 0);l([x(),m("design:type",String)],yn.prototype,"CSOSN",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yn.prototype,"pCredSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yn.prototype,"vCredICMSSN",void 0);var Wi=class{static{a(this,"ICMSSN102")}orig;CSOSN};l([x(),m("design:type",String)],Wi.prototype,"orig",void 0);l([x(),m("design:type",String)],Wi.prototype,"CSOSN",void 0);var Zt=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([x(),m("design:type",String)],Zt.prototype,"orig",void 0);l([x(),m("design:type",String)],Zt.prototype,"CSOSN",void 0);l([g(),x(),m("design:type",String)],Zt.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vICMSST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"pCredSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vCredICMSSN",void 0);var cr=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],cr.prototype,"orig",void 0);l([x(),m("design:type",String)],cr.prototype,"CSOSN",void 0);l([g(),x(),m("design:type",String)],cr.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"vICMSST",void 0);var fr=class{static{a(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([x(),m("design:type",String)],fr.prototype,"orig",void 0);l([x(),m("design:type",String)],fr.prototype,"CSOSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"vBCSTRet",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"pST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"vICMSSubstituto",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"vICMSSTRet",void 0);var tt=class{static{a(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([x(),m("design:type",String)],tt.prototype,"orig",void 0);l([x(),m("design:type",String)],tt.prototype,"CSOSN",void 0);l([g(),x(),m("design:type",String)],tt.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pRedBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],tt.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vICMSST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pCredSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vCredICMSSN",void 0);var k=class{static{a(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};l([g(),Je(),Ge(()=>ir),m("design:type",typeof IICMS00>"u"?Object:IICMS00)],k.prototype,"ICMS00",void 0);l([g(),Je(),Ge(()=>It),m("design:type",typeof IICMS10>"u"?Object:IICMS10)],k.prototype,"ICMS10",void 0);l([g(),Je(),Ge(()=>Io),m("design:type",typeof IICMS20>"u"?Object:IICMS20)],k.prototype,"ICMS20",void 0);l([g(),Je(),Ge(()=>ar),m("design:type",typeof IICMS30>"u"?Object:IICMS30)],k.prototype,"ICMS30",void 0);l([g(),Je(),Ge(()=>vn),m("design:type",typeof IICMS40>"u"?Object:IICMS40)],k.prototype,"ICMS40",void 0);l([g(),Je(),Ge(()=>Pt),m("design:type",typeof IICMS51>"u"?Object:IICMS51)],k.prototype,"ICMS51",void 0);l([g(),Je(),Ge(()=>sr),m("design:type",typeof IICMS60>"u"?Object:IICMS60)],k.prototype,"ICMS60",void 0);l([g(),Je(),Ge(()=>gt),m("design:type",typeof IICMS70>"u"?Object:IICMS70)],k.prototype,"ICMS70",void 0);l([g(),Je(),Ge(()=>ht),m("design:type",typeof IICMS90>"u"?Object:IICMS90)],k.prototype,"ICMS90",void 0);l([g(),Je(),Ge(()=>De),m("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],k.prototype,"ICMSPart",void 0);l([g(),Je(),Ge(()=>pr),m("design:type",typeof IICMSST>"u"?Object:IICMSST)],k.prototype,"ICMSST",void 0);l([g(),Je(),Ge(()=>yn),m("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],k.prototype,"ICMSSN101",void 0);l([g(),Je(),Ge(()=>Wi),m("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],k.prototype,"ICMSSN102",void 0);l([g(),Je(),Ge(()=>Zt),m("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],k.prototype,"ICMSSN201",void 0);l([g(),Je(),Ge(()=>cr),m("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],k.prototype,"ICMSSN202",void 0);l([g(),Je(),Ge(()=>fr),m("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],k.prototype,"ICMSSN500",void 0);l([g(),Je(),Ge(()=>tt),m("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],k.prototype,"ICMSSN900",void 0);k=l([H({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],k);import{IsOptional as zo,IsString as kt,ValidateNested as $f}from"class-validator";import{Type as Jf}from"class-transformer";function zt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(zt,"_ts_decorate");function Ot(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ot,"_ts_metadata");var dr=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};zt([kt(),Ot("design:type",String)],dr.prototype,"CST",void 0);zt([zo(),kt(),Ot("design:type",String)],dr.prototype,"vBC",void 0);zt([zo(),kt(),Ot("design:type",String)],dr.prototype,"pIPI",void 0);zt([zo(),kt(),Ot("design:type",String)],dr.prototype,"qUnid",void 0);zt([zo(),kt(),Ot("design:type",String)],dr.prototype,"vUnid",void 0);zt([zo(),kt(),Ot("design:type",String)],dr.prototype,"vIPI",void 0);var Va=class{static{a(this,"IPINT")}CST};zt([kt(),Ot("design:type",String)],Va.prototype,"CST",void 0);var Dt=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};zt([zo(),kt(),Ot("design:type",String)],Dt.prototype,"CNPJProd",void 0);zt([zo(),kt(),Ot("design:type",String)],Dt.prototype,"cSelo",void 0);zt([zo(),kt(),Ot("design:type",String)],Dt.prototype,"qSelo",void 0);zt([kt(),Ot("design:type",String)],Dt.prototype,"cEnq",void 0);zt([zo(),$f(),Jf(()=>dr),Ot("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Dt.prototype,"IPITrib",void 0);zt([zo(),$f(),Jf(()=>Va),Ot("design:type",typeof IIPINT>"u"?Object:IIPINT)],Dt.prototype,"IPINT",void 0);import{IsOptional as Ba,IsString as Ua}from"class-validator";function Ma(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ma,"_ts_decorate");function La(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(La,"_ts_metadata");var Oo=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Ma([Ba(),Ua(),La("design:type",String)],Oo.prototype,"vBC",void 0);Ma([Ba(),Ua(),La("design:type",String)],Oo.prototype,"vDespAdu",void 0);Ma([Ba(),Ua(),La("design:type",String)],Oo.prototype,"vII",void 0);Ma([Ba(),Ua(),La("design:type",String)],Oo.prototype,"vIOF",void 0);import{IsOptional as Se,IsString as Ne,ValidateNested as qa}from"class-validator";import{Type as Qa}from"class-transformer";function ae(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ae,"_ts_decorate");function se(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(se,"_ts_metadata");var ur=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};ae([Ne(),se("design:type",String)],ur.prototype,"CST",void 0);ae([Se(),Ne(),se("design:type",String)],ur.prototype,"vBC",void 0);ae([Se(),Ne(),se("design:type",String)],ur.prototype,"pPIS",void 0);ae([Se(),Ne(),se("design:type",String)],ur.prototype,"vPIS",void 0);var lr=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ae([Ne(),se("design:type",String)],lr.prototype,"CST",void 0);ae([Se(),Ne(),se("design:type",String)],lr.prototype,"qBCProd",void 0);ae([Se(),Ne(),se("design:type",String)],lr.prototype,"vAliqProd",void 0);ae([Se(),Ne(),se("design:type",String)],lr.prototype,"vPIS",void 0);var oi=class{static{a(this,"PISNT")}CST};ae([Ne(),se("design:type",String)],oi.prototype,"CST",void 0);var eo=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ae([Ne(),se("design:type",String)],eo.prototype,"CST",void 0);ae([Se(),Ne(),se("design:type",String)],eo.prototype,"vBC",void 0);ae([Se(),Ne(),se("design:type",String)],eo.prototype,"pPIS",void 0);ae([Se(),Ne(),se("design:type",String)],eo.prototype,"qBCProd",void 0);ae([Se(),Ne(),se("design:type",String)],eo.prototype,"vAliqProd",void 0);ae([Se(),Ne(),se("design:type",String)],eo.prototype,"vPIS",void 0);var xo=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ae([Se(),qa(),Qa(()=>ur),se("design:type",typeof ur>"u"?Object:ur)],xo.prototype,"PISAliq",void 0);ae([Se(),qa(),Qa(()=>lr),se("design:type",typeof lr>"u"?Object:lr)],xo.prototype,"PISQtde",void 0);ae([Se(),qa(),Qa(()=>oi),se("design:type",typeof oi>"u"?Object:oi)],xo.prototype,"PISNT",void 0);ae([Se(),qa(),Qa(()=>eo),se("design:type",typeof eo>"u"?Object:eo)],xo.prototype,"PISOutr",void 0);var to=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ae([Se(),Ne(),se("design:type",String)],to.prototype,"vBC",void 0);ae([Se(),Ne(),se("design:type",String)],to.prototype,"pPIS",void 0);ae([Se(),Ne(),se("design:type",String)],to.prototype,"qBCProd",void 0);ae([Se(),Ne(),se("design:type",String)],to.prototype,"vAliqProd",void 0);ae([Se(),Ne(),se("design:type",String)],to.prototype,"vPIS",void 0);import{IsOptional as Ce,IsString as be,ValidateNested as Ha}from"class-validator";import{Type as $a}from"class-transformer";function pe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(pe,"_ts_decorate");function ce(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ce,"_ts_metadata");var mr=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};pe([be(),ce("design:type",String)],mr.prototype,"CST",void 0);pe([Ce(),be(),ce("design:type",String)],mr.prototype,"vBC",void 0);pe([Ce(),be(),ce("design:type",String)],mr.prototype,"pCOFINS",void 0);pe([Ce(),be(),ce("design:type",String)],mr.prototype,"vCOFINS",void 0);var vr=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};pe([be(),ce("design:type",String)],vr.prototype,"CST",void 0);pe([Ce(),be(),ce("design:type",String)],vr.prototype,"qBCProd",void 0);pe([Ce(),be(),ce("design:type",String)],vr.prototype,"vAliqProd",void 0);pe([Ce(),be(),ce("design:type",String)],vr.prototype,"vCOFINS",void 0);var ri=class{static{a(this,"COFINSNT")}CST};pe([be(),ce("design:type",String)],ri.prototype,"CST",void 0);var oo=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};pe([be(),ce("design:type",String)],oo.prototype,"CST",void 0);pe([Ce(),be(),ce("design:type",String)],oo.prototype,"vBC",void 0);pe([Ce(),be(),ce("design:type",String)],oo.prototype,"pCOFINS",void 0);pe([Ce(),be(),ce("design:type",String)],oo.prototype,"qBCProd",void 0);pe([Ce(),be(),ce("design:type",String)],oo.prototype,"vAliqProd",void 0);pe([Ce(),be(),ce("design:type",String)],oo.prototype,"vCOFINS",void 0);var Ao=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};pe([Ce(),Ha(),$a(()=>mr),ce("design:type",typeof mr>"u"?Object:mr)],Ao.prototype,"COFINSAliq",void 0);pe([Ce(),Ha(),$a(()=>vr),ce("design:type",typeof vr>"u"?Object:vr)],Ao.prototype,"COFINSQtde",void 0);pe([Ce(),Ha(),$a(()=>ri),ce("design:type",typeof ri>"u"?Object:ri)],Ao.prototype,"COFINSNT",void 0);pe([Ce(),Ha(),$a(()=>oo),ce("design:type",typeof oo>"u"?Object:oo)],Ao.prototype,"COFINSOutr",void 0);var ro=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};pe([Ce(),be(),ce("design:type",String)],ro.prototype,"vBC",void 0);pe([Ce(),be(),ce("design:type",String)],ro.prototype,"pCOFINS",void 0);pe([Ce(),be(),ce("design:type",String)],ro.prototype,"qBCProd",void 0);pe([Ce(),be(),ce("design:type",String)],ro.prototype,"vAliqProd",void 0);pe([Ce(),be(),ce("design:type",String)],ro.prototype,"vCOFINS",void 0);import{IsOptional as ai,IsString as si}from"class-validator";function ni(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ni,"_ts_decorate");function ii(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ii,"_ts_metadata");var jt=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};ni([ai(),si(),ii("design:type",String)],jt.prototype,"vBC",void 0);ni([ai(),si(),ii("design:type",String)],jt.prototype,"vAliq",void 0);ni([ai(),si(),ii("design:type",String)],jt.prototype,"vISSQN",void 0);ni([ai(),si(),ii("design:type",String)],jt.prototype,"cMunFG",void 0);ni([ai(),si(),ii("design:type",String)],jt.prototype,"cListServ",void 0);ni([ai(),si(),ii("design:type",String)],jt.prototype,"cSitTrib",void 0);import{IsOptional as hr,IsString as Sr}from"class-validator";function yr(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(yr,"_ts_decorate");function gr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(gr,"_ts_metadata");var st=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};yr([hr(),Sr(),gr("design:type",String)],st.prototype,"vBCUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"vBCFCPUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"pFCPUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"pICMSUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"pICMSInter",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"pICMSInterPart",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"vFCPUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"vICMSUFDest",void 0);yr([hr(),Sr(),gr("design:type",String)],st.prototype,"vICMSUFRemet",void 0);function no(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(no,"_ts_decorate");function wo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(wo,"_ts_metadata");var je=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};no([Eo(),Sm(),wo("design:type",Number)],je.prototype,"vTotTrib",void 0);no([Eo(),Cr(),Nr(()=>k),wo("design:type",typeof IICMS>"u"?Object:IICMS)],je.prototype,"ICMS",void 0);no([Eo(),Cr(),Nr(()=>Dt),wo("design:type",typeof IIPI>"u"?Object:IIPI)],je.prototype,"IPI",void 0);no([Eo(),Cr(),Nr(()=>jt),wo("design:type",typeof IISSQN>"u"?Object:IISSQN)],je.prototype,"ISSQN",void 0);no([Eo(),Cr(),Nr(()=>Oo),wo("design:type",typeof III>"u"?Object:III)],je.prototype,"II",void 0);no([Eo(),Cr(),Nr(()=>xo),wo("design:type",typeof IPIS>"u"?Object:IPIS)],je.prototype,"PIS",void 0);no([Eo(),Cr(),Nr(()=>to),wo("design:type",typeof IPISST>"u"?Object:IPISST)],je.prototype,"PISST",void 0);no([Eo(),Cr(),Nr(()=>Ao),wo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],je.prototype,"COFINS",void 0);no([Eo(),Cr(),Nr(()=>ro),wo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],je.prototype,"COFINSST",void 0);no([Eo(),Cr(),Nr(()=>st),wo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],je.prototype,"ICMSUFDest",void 0);je=no([H({properties:["ICMS","ISSQN"]})],je);import{IsOptional as Nm,IsString as Gf,ValidateNested as Cm}from"class-validator";import{Type as bm}from"class-transformer";function Dp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Dp,"_ts_decorate");function jp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(jp,"_ts_metadata");var Ja=class{static{a(this,"IpiDevol")}vIPIDevol};Dp([Gf(),jp("design:type",String)],Ja.prototype,"vIPIDevol",void 0);var pi=class{static{a(this,"Devol")}pDevol;IPI};Dp([Gf(),jp("design:type",String)],pi.prototype,"pDevol",void 0);Dp([Nm(),Cm(),bm(()=>Ja),jp("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],pi.prototype,"IPI",void 0);import{IsOptional as Wf,IsString as Xf,ValidateNested as Yf}from"class-validator";import{Type as Kf}from"class-transformer";function Ga(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ga,"_ts_decorate");function Wa(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Wa,"_ts_metadata");var ci=class{static{a(this,"Observation")}xCampo;xTexto};Ga([Xf(),Wa("design:type",String)],ci.prototype,"xCampo",void 0);Ga([Xf(),Wa("design:type",String)],ci.prototype,"xTexto",void 0);var fi=class{static{a(this,"ObsItem")}obsCont;obsFisco};Ga([Wf(),Yf(),Kf(()=>ci),Wa("design:type",typeof IObservation>"u"?Object:IObservation)],fi.prototype,"obsCont",void 0);Ga([Wf(),Yf(),Kf(()=>ci),Wa("design:type",typeof IObservation>"u"?Object:IObservation)],fi.prototype,"obsFisco",void 0);function gn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(gn,"_ts_decorate");function hn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(hn,"_ts_metadata");var di=class{static{a(this,"DetAttributes")}nItem};gn([Zf(),hn("design:type",String)],di.prototype,"nItem",void 0);var Po=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};gn([Rm(),Xi(),Yi(()=>di),hn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Po.prototype,"$",void 0);gn([Xi(),Yi(()=>P),hn("design:type",typeof IProd>"u"?Object:IProd)],Po.prototype,"prod",void 0);gn([Xa(),Xi(),Yi(()=>je),hn("design:type",typeof IImposto>"u"?Object:IImposto)],Po.prototype,"imposto",void 0);gn([Xa(),Xi(),Yi(()=>pi),hn("design:type",typeof IDevol>"u"?Object:IDevol)],Po.prototype,"impostoDevol",void 0);gn([Xa(),Zf(),hn("design:type",String)],Po.prototype,"infAdProd",void 0);gn([Xa(),Xi(),Yi(()=>fi),hn("design:type",typeof IObsItem>"u"?Object:IObsItem)],Po.prototype,"obsItem",void 0);import{IsDate as Fm,IsOptional as Ki,IsString as Qr}from"class-validator";function io(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(io,"_ts_decorate");function ao(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ao,"_ts_metadata");var We=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};io([Qr(),ao("design:type",String)],We.prototype,"CNPJ",void 0);io([Qr(),ao("design:type",String)],We.prototype,"xOrgao",void 0);io([Qr(),ao("design:type",String)],We.prototype,"matr",void 0);io([Qr(),ao("design:type",String)],We.prototype,"xAgente",void 0);io([Ki(),Qr(),ao("design:type",String)],We.prototype,"fone",void 0);io([Qr(),ao("design:type",String)],We.prototype,"UF",void 0);io([Ki(),Qr(),ao("design:type",String)],We.prototype,"nDAR",void 0);io([Ki(),xr({format:"YYYY-MM-DD"}),ao("design:type",typeof Date>"u"?Object:Date)],We.prototype,"dEmi",void 0);io([Ki(),f({fixed:2}),ao("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vDAR",void 0);io([Qr(),ao("design:type",String)],We.prototype,"repEmi",void 0);io([Ki(),Fm(),ao("design:type",typeof Date>"u"?Object:Date)],We.prototype,"dPag",void 0);import{IsString as Om}from"class-validator";function Im(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Im,"_ts_decorate");function zm(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(zm,"_ts_metadata");var Sn=class{static{a(this,"InfSolicNFF")}xSolic};Im([Om(),zm("design:type",String)],Sn.prototype,"xSolic",void 0);function de(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(de,"_ts_decorate");function ue(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ue,"_ts_metadata");var Nn=class{static{a(this,"InfNFeAttributes")}Id;versao};de([pt(),ed(),ue("design:type",String)],Nn.prototype,"Id",void 0);de([pt(),ed(),ue("design:type",String)],Nn.prototype,"versao",void 0);var K=class{static{a(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};de([_p(),Tp(),Fe(()=>Nn),Re(),ue("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],K.prototype,"$",void 0);de([_p(),Tp(),Re(),Fe(()=>q),ue("design:type",typeof IIde>"u"?Object:IIde)],K.prototype,"ide",void 0);de([_p(),Tp(),Re(),Fe(()=>Ae),ue("design:type",typeof IEmit>"u"?Object:IEmit)],K.prototype,"emit",void 0);de([pt(),Re(),Fe(()=>We),ue("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],K.prototype,"avulsa",void 0);de([pt(),Re(),Fe(()=>we),ue("design:type",typeof IDest>"u"?Object:IDest)],K.prototype,"dest",void 0);de([pt(),Re(),Fe(()=>Y),ue("design:type",typeof ILocal>"u"?Object:ILocal)],K.prototype,"retirada",void 0);de([pt(),Re(),Fe(()=>Y),ue("design:type",typeof ILocal>"u"?Object:ILocal)],K.prototype,"entrega",void 0);de([pt(),Re({each:!0}),kf(10),Fe(()=>No),ue("design:type",Array)],K.prototype,"autXML",void 0);de([Re({each:!0}),kf(990),xm(1),Fe(()=>Po),ue("design:type",Array)],K.prototype,"det",void 0);de([Re(),Fe(()=>Jo),ue("design:type",typeof ITotal>"u"?Object:ITotal)],K.prototype,"total",void 0);de([Re(),Fe(()=>ke),ue("design:type",typeof ITransp>"u"?Object:ITransp)],K.prototype,"transp",void 0);de([pt(),Re(),Fe(()=>_r),ue("design:type",typeof ICobr>"u"?Object:ICobr)],K.prototype,"cobr",void 0);de([Re(),Fe(()=>Vr),ue("design:type",typeof IPag>"u"?Object:IPag)],K.prototype,"pag",void 0);de([pt(),Re(),Fe(()=>Dr),ue("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],K.prototype,"infIntermed",void 0);de([pt(),Re(),Fe(()=>Kt),ue("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],K.prototype,"infAdic",void 0);de([pt(),Re(),Fe(()=>Ho),ue("design:type",typeof IExporta>"u"?Object:IExporta)],K.prototype,"exporta",void 0);de([pt(),Re(),Fe(()=>$o),ue("design:type",typeof ICompra>"u"?Object:ICompra)],K.prototype,"compra",void 0);de([pt(),Re(),Fe(()=>et),ue("design:type",typeof ICana>"u"?Object:ICana)],K.prototype,"cana",void 0);de([pt(),Re(),Fe(()=>xt),ue("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],K.prototype,"infRespTec",void 0);de([pt(),Re(),Fe(()=>Sn),ue("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],K.prototype,"infSolicNFF",void 0);import{Type as nd}from"class-transformer";function Ya(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ya,"_ts_decorate");function Ka(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ka,"_ts_metadata");var ui=class{static{a(this,"NFeAttributes")}xmlns};Ya([Em(),wm(),Ka("design:type",String)],ui.prototype,"xmlns",void 0);var Do=class{static{a(this,"NFe")}$;infNFe;Signature};Ya([od(),td(),nd(()=>ui),rd(),Ka("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Do.prototype,"$",void 0);Ya([od(),td(),nd(()=>K),rd(),Ka("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Do.prototype,"infNFe",void 0);Ya([Am(),Ka("design:type",typeof Signature>"u"?Object:Signature)],Do.prototype,"Signature",void 0);function Zi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Zi,"_ts_decorate");function Za(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Za,"_ts_metadata");var br=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Zi([Vp(S),Mp(),Za("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],br.prototype,"tpAmb",void 0);Zi([Vp(d),Mp(),Za("design:type",typeof StateCode>"u"?Object:StateCode)],br.prototype,"cUF",void 0);Zi([Dm(),Za("design:type",String)],br.prototype,"idLote",void 0);Zi([Mp(),Vp(["0","1"])],br.prototype,"indSinc",void 0);Zi([jm(),Pm(()=>Do),Za("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],br.prototype,"NFe",void 0);import{IsEnum as id,IsString as Tm}from"class-validator";function Lp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Lp,"_ts_decorate");function Bp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Bp,"_ts_metadata");var Cn=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};Lp([id(S),Bp("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Cn.prototype,"tpAmb",void 0);Lp([id(d),Bp("design:type",typeof StateCode>"u"?Object:StateCode)],Cn.prototype,"cUF",void 0);Lp([Tm(),Bp("design:type",String)],Cn.prototype,"nRec",void 0);import{IsString as Rr,IsNotEmpty as _m,ValidateNested as ts,IsObject as os,IsOptional as ad,IsEnum as Vm,IsNumber as Mm,Allow as Lm}from"class-validator";import{Type as rs}from"class-transformer";var Hr=(function(t){return t.Cancelamento="110111",t})({});function ze(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ze,"_ts_decorate");function _e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_e,"_ts_metadata");var ka=class{static{a(this,"InfEventoAttributes")}Id};ze([Rr(),_e("design:type",String)],ka.prototype,"Id",void 0);var Te=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};ze([os(),ts(),rs(()=>ka),_e("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Te.prototype,"$",void 0);ze([Rr(),_e("design:type",typeof StateCode>"u"?Object:StateCode)],Te.prototype,"cOrgao",void 0);ze([Rr(),_e("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Te.prototype,"tpAmb",void 0);ze([Rr(),ad(),_e("design:type",String)],Te.prototype,"CNPJ",void 0);ze([Rr(),ad(),_e("design:type",String)],Te.prototype,"CPF",void 0);ze([Rr(),_e("design:type",String)],Te.prototype,"chNFe",void 0);ze([xr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),_e("design:type",String)],Te.prototype,"dhEvento",void 0);ze([Vm(Hr),_e("design:type",typeof Hr>"u"?Object:Hr)],Te.prototype,"tpEvento",void 0);ze([Mm(),_e("design:type",Number)],Te.prototype,"nSeqEvento",void 0);ze([Rr(),_e("design:type",String)],Te.prototype,"verEvento",void 0);ze([os(),_e("design:type",typeof T>"u"?Object:T)],Te.prototype,"detEvento",void 0);Te=ze([H({properties:["CNPJ","CPF"],required:!0})],Te);var es=class{static{a(this,"EventoItemAttributes")}xmlns};ze([Rr(),_e("design:type",String)],es.prototype,"xmlns",void 0);var jo=class{static{a(this,"EventoItem")}$;infEvento;Signature};ze([os(),ts(),rs(()=>es),_e("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],jo.prototype,"$",void 0);ze([os(),ts(),rs(()=>Te),_e("design:type",typeof Te>"u"?Object:Te)],jo.prototype,"infEvento",void 0);ze([Lm(),_e("design:type",typeof Signature>"u"?Object:Signature)],jo.prototype,"Signature",void 0);var li=class{static{a(this,"EventoPayload")}idLote;evento};ze([Rr(),_e("design:type",String)],li.prototype,"idLote",void 0);ze([_m(),ts(),rs(()=>jo),_e("design:type",typeof jo>"u"?Object:jo)],li.prototype,"evento",void 0);import{IsIn as Bm,IsOptional as is,IsString as as}from"class-validator";function mi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(mi,"_ts_decorate");function ns(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ns,"_ts_metadata");var so=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};mi([is()],so.prototype,"xServ",void 0);mi([as(),Bm(Object.values(Zp)),ns("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],so.prototype,"UF",void 0);mi([is(),as(),ns("design:type",String)],so.prototype,"IE",void 0);mi([is(),as(),ns("design:type",String)],so.prototype,"CNPJ",void 0);mi([is(),as(),ns("design:type",String)],so.prototype,"CPF",void 0);so=mi([H({properties:["IE","CNPJ","CPF"],required:!0})],so);var sd={AM:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[S.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[S.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var Um={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"BA",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVAN",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"PE",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},pd=Um;var ss={[d.AC]:"SVCAN",[d.AL]:"SVCAN",[d.AM]:"SVCRS",[d.AP]:"SVCAN",[d.BA]:"SVCRS",[d.CE]:"SVCAN",[d.DF]:"SVCAN",[d.ES]:"SVCAN",[d.GO]:"SVCRS",[d.MA]:"SVCRS",[d.MG]:"SVCAN",[d.MS]:"SVCRS",[d.MT]:"SVCRS",[d.PA]:"SVCAN",[d.PB]:"SVCAN",[d.PE]:"SVCRS",[d.PI]:"SVCAN",[d.PR]:"SVCRS",[d.RJ]:"SVCAN",[d.RN]:"SVCAN",[d.RO]:"SVCAN",[d.RR]:"SVCAN",[d.RS]:"SVCAN",[d.SC]:"SVCAN",[d.SE]:"SVCAN",[d.SP]:"SVCAN",[d.TO]:"SVCAN"};function bn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(bn,"_ts_decorate");function ye(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ye,"_ts_metadata");var ct=class{static{a(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:o}=this.options;return o&&this.remoteTransmissionRepository.setCertificate(o),this.options.schema??=ac.PL_009_V4,this}service(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?ss[o]:pd[o];return sd[i][n][e.service]}errors(){return Reflect.getMetadata(lo,this)}validate(e){try{let o=this.errors();return o?uo(new fo(o.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Le(e))}finally{Reflect.deleteMetadata(lo,this)}}ns(e,o){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=o,{...e,$:n}}xsd(e){return qm.resolve(ra,this.options.schema,e)}async consultStatus(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let o=this.validate(e);if(o.isLeft())return o;let{cUF:n,tpAmb:i}=o.value.infInut,r=o.value,s=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:s.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(r,s.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({cUF:d[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};bn([w(Pr),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),ye("design:returntype",Promise)],ct.prototype,"consultStatus",null);bn([w(Mo),ye("design:type",Function),ye("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),ye("design:returntype",Promise)],ct.prototype,"inutilizacao",null);bn([w(en),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),ye("design:returntype",Promise)],ct.prototype,"consultaProtocolo",null);bn([w(br),ye("design:type",Function),ye("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),ye("design:returntype",Promise)],ct.prototype,"autorizacao",null);bn([w(Cn),ye("design:type",Function),ye("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),ye("design:returntype",Promise)],ct.prototype,"retAutorizacao",null);bn([w(li),ye("design:type",Function),ye("design:paramtypes",[Object]),ye("design:returntype",Promise)],ct.prototype,"recepcaoEvento",null);bn([w(so),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),ye("design:returntype",Promise)],ct.prototype,"consultaCadastro",null);var $r=class extends Pn{static{a(this,"TransmissionPipeline")}certificate;transmitter=new ct(this.soap);constructor(e){super(e),this.certificate=e}};var ps=class extends $r{static{a(this,"NfeAuthorizerPipeline")}async execute(e,o){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...o,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:o,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!o||!n||i===Ct.Normal))return{dhCont:o,xJust:n}}};var cd=class extends ps{static{a(this,"NfceAuthorizerPipeline")}certificate;transmitter=new ct(this.soap);constructor(e){super(e),this.certificate=e}};var fd={[Hr.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};function Qm(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Qm,"_ts_decorate");function Up(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Up,"_ts_metadata");var ki=class extends $r{static{a(this,"EventPipeline")}async event(e,o,n){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let r=o.chNFe.slice(0,2);this.transmitter.configure({cUF:r,...n,certificate:i.value});let s=fd[e],p=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:y,dhEvento:v,chNFe:u}=o,N=["ID",e,u,y.toString().padStart(2,"0")].join(""),C={$:{xmlns:this.xmlns},infEvento:{$:{Id:N},cOrgao:r,tpAmb:n.tpAmb,CNPJ:p.CNPJ,CPF:p.CPF,chNFe:u,dhEvento:v,tpEvento:e,nSeqEvento:y,verEvento:s.version,detEvento:{$:{versao:s.version},descEvento:s.descEvento,...o.detEvento}}},F=this.validated(C);return F.isLeft()?F:await this.signer.sign(F.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let o=this.errors();return o?uo(new fo(o.join(", "))):Le(e)}};Qm([w(jo),Up("design:type",Function),Up("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Up("design:returntype",void 0)],ki.prototype,"validated",null);var dd=class extends ki{static{a(this,"NfeNfceCancelPipeline")}async execute(e,o){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},i=await this.event(Hr.Cancelamento,n,o);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};function Hm(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Hm,"_ts_decorate");function qp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(qp,"_ts_metadata");var Qp=class extends $r{static{a(this,"NfeNfceVoidRangePipeline")}async execute(e,o){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...o,certificate:n.value});let r=e.ano??new Date().getFullYear().toString().slice(2),s=["ID",o.cUF,r,i.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),p={$:{xmlns:this.xmlns},infInut:{$:{Id:s},tpAmb:e.tpAmb??o.tpAmb,cUF:o.cUF,ano:r,CNPJ:i.CNPJ,CPF:i.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},y=this.validated(p);if(y.isLeft())return y;let v=await this.signer.sign(y.value,{tag:"infInut",mark:"Id"},n.value);return v.isLeft()?v:await this.transmitter.inutilizacao(v.value)}validated(e){let o=this.errors();return o?uo(new fo(o.join(", "))):Le(e)}};Hm([w(Mo),qp("design:type",Function),qp("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),qp("design:returntype",void 0)],Qp.prototype,"validated",null);import $m from"path";function Tt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Tt,"_ts_decorate");function M(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(M,"_ts_metadata");var ot=class{static{a(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};Tt([w(di),M("design:type",Function),M("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),M("design:returntype",void 0)],ot.prototype,"det",null);Tt([w(P),M("design:type",Function),M("design:paramtypes",[typeof IProd>"u"?Object:IProd]),M("design:returntype",void 0)],ot.prototype,"prod",null);Tt([w(je),M("design:type",Function),M("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),M("design:returntype",void 0)],ot.prototype,"imposto",null);Tt([w(k),M("design:type",Function),M("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),M("design:returntype",void 0)],ot.prototype,"icms",null);Tt([w(jt),M("design:type",Function),M("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),M("design:returntype",void 0)],ot.prototype,"issqn",null);Tt([w(Oo),M("design:type",Function),M("design:paramtypes",[typeof III>"u"?Object:III]),M("design:returntype",void 0)],ot.prototype,"ii",null);Tt([w(Dt),M("design:type",Function),M("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),M("design:returntype",void 0)],ot.prototype,"ipi",null);Tt([w(xo),M("design:type",Function),M("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),M("design:returntype",void 0)],ot.prototype,"pis",null);Tt([w(to),M("design:type",Function),M("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),M("design:returntype",void 0)],ot.prototype,"pisst",null);Tt([w(Ao),M("design:type",Function),M("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),M("design:returntype",void 0)],ot.prototype,"cofins",null);Tt([w(ro),M("design:type",Function),M("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),M("design:returntype",void 0)],ot.prototype,"cofinsst",null);Tt([w(st),M("design:type",Function),M("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),M("design:returntype",void 0)],ot.prototype,"icmsufdest",null);function Oe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Oe,"_ts_decorate");function z(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(z,"_ts_metadata");var ee=class{static{a(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Do}root="NFe";$det=new ia(this);$total=new aa(this);nfeDetXmlBuilder=ot.create(this.$det);static create(e,o){return new this(e,o)}constructor(e,o){this.builder=e,this.contingency=o}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,o){return this.data.infNFe.det=e.map((n,i)=>{let r=o(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(r),r.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let o=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...o.ICMSTot},ISSQNtot:o.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...o.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(lo,this),this}toObject(){let e=this.errors();return e?uo(new fo(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),Le(tc(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:Le(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==S.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:o}=this.data.infNFe.ide;if(o!==Ct.Normal)return;switch(ss[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ct.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ct.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:o,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!o&&n===Ct.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:o??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(lo,this)}collect(e){let o=Reflect.getMetadata(lo,e);if(!o)return;let n=this.errors();Reflect.defineMetadata(lo,(n??[]).concat(o),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new na().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};Oe([w(Nn),z("design:type",Function),z("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),z("design:returntype",void 0)],ee.prototype,"infNFe",null);Oe([w(q),z("design:type",Function),z("design:paramtypes",[typeof IIde>"u"?Object:IIde]),z("design:returntype",void 0)],ee.prototype,"ide",null);Oe([w(Ae),z("design:type",Function),z("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),z("design:returntype",void 0)],ee.prototype,"emit",null);Oe([w(We),z("design:type",Function),z("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),z("design:returntype",void 0)],ee.prototype,"avulsa",null);Oe([w(we),z("design:type",Function),z("design:paramtypes",[typeof IDest>"u"?Object:IDest]),z("design:returntype",void 0)],ee.prototype,"dest",null);Oe([w(Y),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],ee.prototype,"retirada",null);Oe([w(Y),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],ee.prototype,"entrega",null);Oe([w(No),z("design:type",Function),z("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),z("design:returntype",void 0)],ee.prototype,"autXML",null);Oe([w(Jo),z("design:type",Function),z("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),z("design:returntype",void 0)],ee.prototype,"total",null);Oe([w(ke),z("design:type",Function),z("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),z("design:returntype",void 0)],ee.prototype,"transp",null);Oe([w(_r),z("design:type",Function),z("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),z("design:returntype",void 0)],ee.prototype,"cobr",null);Oe([w(Vr),z("design:type",Function),z("design:paramtypes",[typeof IPag>"u"?Object:IPag]),z("design:returntype",void 0)],ee.prototype,"pag",null);Oe([w(Dr),z("design:type",Function),z("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),z("design:returntype",void 0)],ee.prototype,"infIntermed",null);Oe([w(Kt),z("design:type",Function),z("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),z("design:returntype",void 0)],ee.prototype,"infAdic",null);Oe([w(Ho),z("design:type",Function),z("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),z("design:returntype",void 0)],ee.prototype,"exporta",null);Oe([w($o),z("design:type",Function),z("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),z("design:returntype",void 0)],ee.prototype,"compra",null);Oe([w(et),z("design:type",Function),z("design:paramtypes",[typeof ICana>"u"?Object:ICana]),z("design:returntype",void 0)],ee.prototype,"cana",null);Oe([w(xt),z("design:type",Function),z("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),z("design:returntype",void 0)],ee.prototype,"infRespTec",null);Oe([w(Sn),z("design:type",Function),z("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),z("design:returntype",void 0)],ee.prototype,"infSolicNFF",null);var ud=class extends Pn{static{a(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=ee.create(this.toolkit);constructor(e,o="PL_009_V4"){super(e),this.certificate=e,this.schema=o}toObject(e){return e(this.builder).toObject()}async assemble(e){let n=await e(this.builder).assemble();return n.isLeft()?n:this.assertXmlSignedAndValidated(n.value)}get nfeXsdSchema(){return $m.resolve(ra,this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Le(e);let o=await this.certificates.read(this.certificate);if(o.isLeft())return o;let n=await this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},o.value);if(n.isLeft())return n;let i=await this.toolkit.validate(n.value,this.nfeXsdSchema);return i.isLeft()?i:Le(n.value)}};var Hp={AC:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[S.Homolog]:{},[S.Production]:{}}};var ld={[S.Homolog]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfcehom",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[d.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[d.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[S.Production]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.sefaz.go.gov.br/nfce/consulta",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[d.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[d.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"www.sefaz.to.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var Jm={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"SVRS",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVRS",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"SVRS",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",SVRS:"SVRS"},md=Jm;import{Type as Wm}from"class-transformer";import{IsEnum as Jp,IsOptional as Gp,IsString as Xm,IsNotEmpty as Ym}from"class-validator";import{Type as $p}from"class-transformer";import{Allow as Gm,IsNotEmptyObject as hd,IsObject as Sd,ValidateNested as Nd}from"class-validator";import{IsString as gd}from"class-validator";function vd(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(vd,"_ts_decorate");function yd(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(yd,"_ts_metadata");var vi=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};vd([gd(),yd("design:type",String)],vi.prototype,"qrCode",void 0);vd([gd(),yd("design:type",String)],vi.prototype,"urlChave",void 0);function cs(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(cs,"_ts_decorate");function fs(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(fs,"_ts_metadata");var po=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};cs([Sd(),hd(),$p(()=>ui),Nd(),fs("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],po.prototype,"$",void 0);cs([Sd(),hd(),$p(()=>K),Nd(),fs("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],po.prototype,"infNFe",void 0);cs([$p(()=>vi),fs("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],po.prototype,"infNFeSupl",void 0);cs([Gm(),fs("design:type",typeof Signature>"u"?Object:Signature)],po.prototype,"Signature",void 0);function ea(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ea,"_ts_decorate");function ds(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ds,"_ts_metadata");var Fr=class{static{a(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};ea([Jp(S),Gp(),ds("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Fr.prototype,"tpAmb",void 0);ea([Jp(d),Gp(),ds("design:type",typeof StateCode>"u"?Object:StateCode)],Fr.prototype,"cUF",void 0);ea([Xm(),ds("design:type",String)],Fr.prototype,"idLote",void 0);ea([Gp(),Jp(["0","1"])],Fr.prototype,"indSinc",void 0);ea([Ym(),Wm(()=>po),ds("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],Fr.prototype,"NFe",void 0);function Km(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Km,"_ts_decorate");function Wp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Wp,"_ts_metadata");var Xp=class extends ct{static{a(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,o){super(e),this.remoteTransmissionRepository=e,this.qrCode=o}configure(e){return super.configure(e)}service(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=md[o],p=Hp[i][n][e.service];if(p)return p;let y=Object.keys(d).find(v=>d[v]===o);return Hp[y][n][e.service]}async autorizacao(e){let o=await this.infNfeSupl(e);return o.isLeft()?o:(e.NFe.infNFeSupl=o.value,super.autorizacao(e))}getUrlConsult(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return ld[n][o]}async infNfeSupl(e){let o=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(o.version??=n.version,o.version){case"200":return await this.qrCode.execute(e.NFe,{version:o.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:o.CSC,CSCId:o.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:o.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):uo(new fo("Certificate is required in QRCode version 3.00"));default:return oa(o.version)}}};Km([w(Fr),Wp("design:type",Function),Wp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Wp("design:returntype",Promise)],Xp.prototype,"autorizacao",null);import Zm from"crypto";var Cd=class{static{a(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,o){let n=await this.content(e,o);return n.isLeft()?n:Le(this.assemble(n.value,o))}async content(e,o){return this.isVersion200(o)?await this.execute200(e,o):this.isVersion300(o)?await this.execute300(e,o):oa(o)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,o){return{qrCode:e,urlChave:o.urlConsult}}getSequence(e,o){let{version:n,CSCId:i}=o,r=e.infNFe.ide.tpAmb,s=Number.parseInt(i),p=e.infNFe.$.Id?.substring(3),y=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ct.OFFLINE)return`${p}|${y}|${r}|${s}`;let u=e.Signature.SignedInfo.Reference.DigestValue.split("").map(F=>F.charCodeAt(0).toString(16).padStart(2,"0")).join(""),N=new Date(e.infNFe.ide.dhEmi).getDate(),C=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${p}|${y}|${r}|${N}|${C}|${u}|${s}`}async execute200(e,o){let{urlService:n,CSC:i}=o,r=this.getSequence(e,o),s=Zm.createHash("sha1").update(`${r}${i}`).digest("hex").toUpperCase(),p=`${n}?p=`;return Promise.resolve(Le(`${p}${r}|${s}`))}async execute300(e,o){let{urlService:n}=o,i=`${n}?p=`,r=e.infNFe.ide.tpAmb,s=e.infNFe.$.Id?.substring(3),p=Number.parseInt(o.version)/100;if(e.infNFe.ide.tpEmis!==Ct.OFFLINE)return Le(`${i}${s}|${p}|${r}`);let y=new Date(e.infNFe.ide.dhEmi).getDate(),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),u=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",N=u.length?e.infNFe.ide.idDest:"",C=`${s}|${p}|${r}|${y}|${v}|${N}$`,F=await this.certificateRepository.sign(C,o.certificate.privateKey,Kp.SHA1);return F.isLeft()?F:Le(`${i}${C}|${F.value}`)}};var bd=class extends ee{static{a(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return po}static create(e,o){return new this(e,o)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ct.Normal)return this.data.infNFe.ide.tpEmis=Ct.OFFLINE,void 0}};export{Ct as a,ra as b,na as c,ia as d,aa as e,Do as f,ct as g,ps as h,cd as i,dd as j,Qp as k,ot as l,ee as m,ud as n,po as o,Xp as p,Cd as q,bd as r};