nfets 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IURMCRIH.mjs → chunk-CNX6WGGL.mjs} +11 -11
- package/dist/chunk-UE7UEYKF.mjs +8 -0
- package/dist/core/index.cjs +46 -46
- package/dist/core/index.d.cts +76 -80
- package/dist/core/index.d.ts +76 -80
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +61 -61
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +63 -63
- package/dist/nfe/index.d.cts +108 -99
- package/dist/nfe/index.d.ts +108 -99
- package/dist/nfe/index.mjs +1 -1
- package/dist/{types-CwXoUwhL.d.ts → xml-signer-BmpwXTKY.d.cts} +2 -8
- package/dist/{types-CwXoUwhL.d.cts → xml-signer-BmpwXTKY.d.ts} +2 -8
- package/package.json +1 -1
- package/dist/chunk-3LPOEYDL.mjs +0 -8
- /package/dist/{chunk-I4KZJHBR.mjs → chunk-23RWB4QQ.mjs} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{B as rc,C as Fd,D as Id,E as zd,F as nc,G as ic,I as H,J as f,K as Or,d as Kp,f as d,g as Zp,h as S,i as nt,k as ra,m as it,n as Y,o as kp,p as ec,u as tc,v as uo,x as w,y as lo,z as oc}from"./chunk-CNX6WGGL.mjs";import{a,b as yi,d as Yp,e as Rd,f as hs}from"./chunk-W6MRGYXP.mjs";var Pc=Yp((Ky,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((ky,Qs)=>{"use strict";var zi=yi("url"),Ii=zi.URL,Du=yi("http"),ju=yi("https"),_s=yi("stream").Writable,Vs=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 Ms=!1;try{Vs(new Ii(""))}catch(t){Ms=t.code==="ERR_INVALID_URL"}var Tu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ls=["abort","aborted","connect","error","socket","timeout"],Bs=Object.create(null);Ls.forEach(function(t){Bs[t]=function(e,o,n){this._redirectable.emit(t,e,o,n)}});var Ds=Oi("ERR_INVALID_URL","Invalid URL",TypeError),js=Oi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),_u=Oi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",js),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=_s.prototype.destroy||Tc;function vt(t,e){_s.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 js?i:new js({cause:i}))}},this._performRequest()}a(vt,"RedirectableRequest");vt.prototype=Object.create(_s.prototype);vt.prototype.abort=function(){qs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};vt.prototype.destroy=function(t){return qs(this._currentRequest,t),Lu.call(this,t),this};vt.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())};vt.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}};vt.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};vt.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};vt.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){vt.prototype[t]=function(e,o){return this._currentRequest[t](e,o)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(vt.prototype,t,{get:a(function(){return this._currentRequest[t]},"get")})});vt.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))}};vt.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 Ls)n.on(i,Bs[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")()}};vt.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(qs(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=[],Ps(/^content-/i,this._options.headers));var s=Ps(/^host$/i,this._options.headers),p=Us(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,Ts(u,this._options),(u.protocol!==p.protocol&&u.protocol!=="https:"||u.host!==y&&!Uu(u.host,y))&&Ps(/^(?:(?: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=Ts(v):Yr(v)?v=Ts(Us(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"),Vs.equal(u.protocol,i,"protocol mismatch"),Dc("options",u),new vt(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 Us(t){var e;if(Ms)e=new Ii(t);else if(e=_c(zi.parse(t)),!Yr(e.protocol))throw new Ds({input:t});return e}a(Us,"parseUrl");function Bu(t,e){return Ms?new Ii(t,e):Us(zi.resolve(e,t))}a(Bu,"resolveUrl");function _c(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Ds({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Ds({input:t.href||t});return t}a(_c,"validateUrl");function Ts(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(Ts,"spreadUrlObject");function Ps(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(Ps,"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 qs(t,e){for(var o of Ls)t.removeListener(o,Bs[o]);t.on("error",Tc),t.destroy(e)}a(qs,"destroyRequest");function Uu(t,e){Vs(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");Qs.exports=jc({http:Du,https:ju});Qs.exports.wrap=jc});var bt=(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"},na=process.env.NFETS_NFE_SCHEMAS_DIR??"",ac=Od;var ia=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 aa=class{static{a(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let o=lo.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:lo.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:lo.newOrZero(n?.vFrete).add(e.vFrete??o).toFixed(2),vSeg:lo.newOrZero(n?.vSeg).add(e.vSeg??o).toFixed(2),vDesc:lo.newOrZero(n?.vDesc).add(e.vDesc??o).toFixed(2),vOutro:lo.newOrZero(n?.vOutro).add(e.vOutro??o).toFixed(2)}}))}icms(e){}};var sa=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=lo.from(0);this.builder.increment(({ICMSTot:o,ISSQNtot:n})=>({ICMSTot:{vNF:lo.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:Ns}=Object,{iterator:ca,toStringTag:pc}=Symbol,fa=(t=>e=>{let o=xd.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Lt=a(t=>(t=t.toLowerCase(),e=>fa(e)===t),"kindOfTest"),da=a(t=>e=>typeof e===t,"typeOfTest"),{isArray:In}=Array,Fn=da("undefined");function hi(t){return t!==null&&!Fn(t)&&t.constructor!==null&&!Fn(t.constructor)&&mt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}a(hi,"isBuffer");var cc=Lt("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=da("string"),mt=da("function"),fc=da("number"),Si=a(t=>t!==null&&typeof t=="object","isObject"),Ed=a(t=>t===!0||t===!1,"isBoolean"),pa=a(t=>{if(fa(t)!=="object")return!1;let e=Ns(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(pc in t)&&!(ca 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=Lt("Date"),jd=Lt("File"),Td=Lt("Blob"),_d=Lt("FileList"),Vd=a(t=>Si(t)&&mt(t.pipe),"isStream"),Md=a(t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||mt(t.append)&&((e=fa(t))==="formdata"||e==="object"&&mt(t.toString)&&t.toString()==="[object FormData]"))},"isFormData"),Ld=Lt("URLSearchParams"),[Bd,Ud,qd,Qd]=["ReadableStream","Request","Response","Headers"].map(Lt),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]),In(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=>!Fn(t)&&t!==Gr,"isContextDefined");function Ss(){let{caseless:t,skipUndefined:e}=uc(this)&&this||{},o={},n=a((i,r)=>{let s=t&&dc(o,r)||r;pa(o[s])&&pa(i)?o[s]=Ss(o[s],i):pa(i)?o[s]=Ss({},i):In(i)?o[s]=i.slice():(!e||!Fn(i))&&(o[s]=i)},"assignValue");for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Ni(arguments[i],n);return o}a(Ss,"merge");var $d=a((t,e,o,{allOwnKeys:n}={})=>(Ni(e,(i,r)=>{o&&mt(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&&Ns(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(In(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"&&Ns(Uint8Array)),Zd=a((t,e)=>{let n=(t&&t[ca]).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=Lt("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=Lt("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(mt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let n=t[o];if(mt(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 In(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&&mt(t.append)&&t[pc]==="FormData"&&t[ca])}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=In(n)?[]:{};return Ni(n,(s,p)=>{let y=o(s,i+1);!Fn(y)&&(r[p]=y)}),e[i]=void 0,r}}return n},"visit");return o(t,0)},"toJSONObject"),cu=Lt("AsyncFunction"),fu=a(t=>t&&(Si(t)||mt(t))&&mt(t.then)&&mt(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",mt(Gr.postMessage)),du=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||mc,uu=a(t=>t!=null&&mt(t[ca]),"isIterable"),c={isArray:In,isArrayBuffer:cc,isBuffer:hi,isFormData:Md,isArrayBufferView:Ad,isString:wd,isNumber:fc,isBoolean:Ed,isObject:Si,isPlainObject:pa,isEmptyObject:Pd,isReadableStream:Bd,isRequest:Ud,isResponse:qd,isHeaders:Qd,isUndefined:Fn,isDate:Dd,isFile:jd,isBlob:Td,isRegExp:ou,isFunction:mt,isStream:Vd,isURLSearchParams:Ld,isTypedArray:Kd,isFileList:_d,forEach:Ni,merge:Ss,extend:$d,trim:Hd,stripBOM:Jd,inherits:Gd,toFlatObject:Wd,kindOf:fa,kindOfTest:Lt,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 zn(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(zn,"AxiosError");c.inherits(zn,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=zn.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(zn,yc);Object.defineProperty(vc,"isAxiosError",{value:!0});zn.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 zn.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=zn;var gc=hs(Id(),1),ua=gc.default;function Cs(t){return c.isPlainObject(t)||c.isArray(t)}a(Cs,"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(Cs)}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(ua||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,me){!(c.isUndefined(B)||B===null)&&e.append(s===!0?hc([I],me,r):s===null?I:I+"[]",v(B))},"each")),!1}return Cs(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:Cs});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 xr=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&&xr(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"))}},bs=gu;var On={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};import Su from"crypto";import hu from"url";var Fc=hu.URLSearchParams;var Rs="abcdefghijklmnopqrstuvwxyz",Ic="0123456789",zc={DIGIT:Ic,ALPHA:Rs,ALPHA_DIGIT:Rs+Rs.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:ua,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:zc,generateString:Nu,protocols:["http","https","file","data"]};var zs={};Rd(zs,{hasBrowserEnv:()=>Is,hasStandardBrowserEnv:()=>Cu,hasStandardBrowserWebWorkerEnv:()=>bu,navigator:()=>Fs,origin:()=>Ru});var Is=typeof window<"u"&&typeof document<"u",Fs=typeof navigator=="object"&&navigator||void 0,Cu=Is&&(!Fs||["ReactNative","NativeScript","NS"].indexOf(Fs.product)<0),bu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ru=Is&&window.location.href||"http://localhost";var U={...zs,...Oc};function Os(t,e){return xr(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(Os,"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 la=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 xs={transitional:On,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(la(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 Os(e,this.formSerializer).toString();if((p=c.isFileList(e))||n.indexOf("multipart/form-data")>-1){let y=this.env&&this.env.FormData;return xr(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||xs.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=>{xs.headers[t]={}});var xn=xs;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 ma(t){return t===!1||t==null?t:c.isArray(t)?t.map(ma):String(t)}a(ma,"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 As(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(As,"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 va=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]=ma(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||As(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||As(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||As(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]=ma(i),delete o[r];return}let p=e?Eu(r):String(r).trim();p!==r&&delete o[r],o[p]=ma(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}};va.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(va.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:a(()=>t,"get"),set(n){this[o]=n}}});c.freezeMethods(va);var de=va;function bi(t,e){let o=this||xn,n=e||o,i=de.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 Rt=wc;function mo(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(mo,"settle");function ws(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}a(ws,"isAbsoluteURL");function Es(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}a(Es,"combineURLs");function Xr(t,e,o){let n=!ws(e);return t&&(n||o==!1)?Es(t,e):e}a(Xr,"buildFullPath");var Xc=hs(zd(),1),Zc=hs(Vc(),1);import al from"http";import sl from"https";import Yc from"http2";import Kc from"util";import wr 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 Hs(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(Hs,"fromDataURI");import Ar from"stream";import $u from"stream";var $s=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[$s]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(o.isCaptured||(o.isCaptured=!0))})}_read(e){let o=this[$s];return o.onReadCallback&&o.onReadCallback(),super._read(e)}_transform(e,o,n){let i=this[$s],r=i.maxRate,s=this.readableHighWaterMark,p=i.timeWindow,y=1e3/p,v=r/y,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 me=Date.now();(!i.ts||(B=me-i.ts)>=p)&&(i.ts=me,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"))}},Js=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"),ya=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*ya(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 To=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"),An=a((t,e)=>{let o=t!=null;return[n=>e[0]({lengthComputable:o,total:t,loaded:n}),e[1]]},"progressEventDecorator"),wn=a(t=>(...e)=>c.asap(()=>t(...e)),"asyncDecorator");function Gs(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(Gs,"estimateDataURLDecodedBytes");var Hc={flush:wr.constants.Z_SYNC_FLUSH,finishFlush:wr.constants.Z_SYNC_FLUSH},cl={flush:wr.constants.BROTLI_OPERATION_FLUSH,finishFlush:wr.constants.BROTLI_OPERATION_FLUSH},$c=c.isFunction(wr.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,Ct)=>{D(O,G,(ye,Mt,zr)=>{if(ye)return Ct(ye);let lt=c.isArray(Mt)?Mt.map(oa=>Wc(oa)):[Wc(Mt,zr)];G.all?Ct(ye,lt):Ct(ye,lt[0].address,lt[0].family)})},"lookup")}let X=new pl;function B(D){try{X.emit("abort",!D||D.type?new Rt(null,e,b):D)}catch(O){console.warn("emit error",O)}}a(B,"abort"),X.once("abort",i);let me=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,me();return}let{data:G}=D;if(G instanceof Ar.Readable||G instanceof Ar.Duplex){let Ct=Ar.finished(G,()=>{Ct(),me()})}else me()});let dt=Xr(e.baseURL,e.url,e.allowAbsoluteUrls),ve=new URL(dt,U.hasBrowserEnv?U.origin:void 0),Ae=ve.protocol||Jc[0];if(Ae==="data:"){if(e.maxContentLength>-1){let O=String(e.url||dt||"");if(Gs(O)>e.maxContentLength)return i(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e))}let D;if(F!=="GET")return mo(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{D=Hs(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=Ar.Readable.from(D)),mo(n,i,{data:D,status:200,statusText:"OK",headers:new de,config:e})}if(Jc.indexOf(Ae)===-1)return i(new R("Unsupported protocol "+Ae,R.ERR_BAD_REQUEST,e));let Me=de.from(e.headers).normalize();Me.set("User-Agent","axios/"+Zr,!1);let{onUploadProgress:Fr,onDownloadProgress:bn}=e,Jr=e.maxRate,Do,fo;if(c.isSpecCompliantForm(s)){let D=Me.getContentType(/boundary=([-_\w\d]{10,70})/i);s=Lc(s,O=>{Me.set(O)},{tag:`axios-${Zr}-boundary`,boundary:D&&D[1]||void 0})}else if(c.isFormData(s)&&c.isFunction(s.getHeaders)){if(Me.set(s.getHeaders()),!Me.hasContentLength())try{let D=await Kc.promisify(s.getLength).call(s);Number.isFinite(D)&&D>=0&&Me.setContentLength(D)}catch{}}else if(c.isBlob(s)||c.isFile(s))s.size&&Me.setContentType(s.type||"application/octet-stream"),Me.setContentLength(s.size||0),s=Ar.Readable.from(ya(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(Me.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 jo=c.toFiniteNumber(Me.getContentLength());c.isArray(Jr)?(Do=Jr[0],fo=Jr[1]):Do=fo=Jr,s&&(Fr||Do)&&(c.isStream(s)||(s=Ar.Readable.from(s,{objectMode:!1})),s=Ar.pipeline([s,new Js({maxRate:c.toFiniteNumber(Do)})],c.noop),Fr&&s.on("progress",Gc(s,An(jo,To(wn(Fr),!1,3)))));let Ir;if(e.auth){let D=e.auth.username||"",O=e.auth.password||"";Ir=D+":"+O}if(!Ir&&ve.username){let D=ve.username,O=ve.password;Ir=D+":"+O}Ir&&Me.delete("authorization");let Nt;try{Nt=Wr(ve.pathname+ve.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)}Me.set("Accept-Encoding","gzip, compress, deflate"+($c?", br":""),!1);let Le={path:Nt,method:F,headers:Me.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Ir,protocol:Ae,family:y,beforeRedirect:vl,beforeRedirects:{},http2Options:u};!c.isUndefined(p)&&(Le.lookup=p),e.socketPath?Le.socketPath=e.socketPath:(Le.hostname=ve.hostname.startsWith("[")?ve.hostname.slice(1,-1):ve.hostname,Le.port=ve.port,kc(Le,e.proxy,Ae+"//"+ve.hostname+(ve.port?":"+ve.port:"")+Le.path));let ut,Rn=ul.test(Le.protocol);if(Le.agent=Rn?e.httpsAgent:e.httpAgent,Q?ut=Sl:e.transport?ut=e.transport:e.maxRedirects===0?ut=Rn?sl:al:(e.maxRedirects&&(Le.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Le.beforeRedirects.config=e.beforeRedirect),ut=Rn?dl:fl),e.maxBodyLength>-1?Le.maxBodyLength=e.maxBodyLength:Le.maxBodyLength=1/0,e.insecureHTTPParser&&(Le.insecureHTTPParser=e.insecureHTTPParser),b=ut.request(Le,a(function(O){if(b.destroyed)return;let G=[O],Ct=c.toFiniteNumber(O.headers["content-length"]);if(bn||fo){let lt=new Js({maxRate:c.toFiniteNumber(fo)});bn&<.on("progress",Gc(lt,An(Ct,To(wn(bn),!0,3)))),G.push(lt)}let ye=O,Mt=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(wr.createUnzip(Hc)),delete O.headers["content-encoding"];break;case"deflate":G.push(new Bc),G.push(wr.createUnzip(Hc)),delete O.headers["content-encoding"];break;case"br":$c&&(G.push(wr.createBrotliDecompress(cl)),delete O.headers["content-encoding"])}ye=G.length>1?Ar.pipeline(G,c.noop):G[0];let zr={status:O.statusCode,statusText:O.statusMessage,headers:new de(O.headers),config:e,request:Mt};if(N==="stream")zr.data=ye,mo(n,i,zr);else{let lt=[],oa=0;ye.on("data",a(function(rt){lt.push(rt),oa+=rt.length,e.maxContentLength>-1&&oa>e.maxContentLength&&(I=!0,ye.destroy(),B(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e,Mt)))},"handleStreamData")),ye.on("aborted",a(function(){if(I)return;let rt=new R("stream has been aborted",R.ERR_BAD_RESPONSE,e,Mt);ye.destroy(rt),i(rt)},"handlerStreamAborted")),ye.on("error",a(function(rt){b.destroyed||i(R.from(rt,null,e,Mt))},"handleStreamError")),ye.on("end",a(function(){try{let rt=lt.length===1?lt[0]:Buffer.concat(lt);N!=="arraybuffer"&&(rt=rt.toString(C),(!C||C==="utf8")&&(rt=c.stripBOM(rt))),zr.data=rt}catch(rt){return i(R.from(rt,null,e,zr.request,zr))}mo(n,i,zr)},"handleStreamEnd"))}X.once("abort",lt=>{ye.destroyed||(ye.emit("error",lt),ye.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",Ct=e.transitional||On;e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),B(new R(G,Ct.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 Rt("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 de?{...t}:t,"headersToObject");function Bt(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(Bt,"mergeConfig");var ga=a((t=>{let e=Bt({},t),{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:p}=e;if(e.headers=s=de.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=ga(t),r=i.data,s=de.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=de.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),dt={data:!p||p==="text"||p==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:B,config:t,request:b};mo(a(function(Ae){o(Ae),I()},"_resolve"),a(function(Ae){n(Ae),I()},"_reject"),dt),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(me){let dt=me&&me.message?me.message:"Network Error",ve=new R(dt,R.ERR_NETWORK,t,b);ve.event=me||null,n(ve),b=null},"handleError"),b.ontimeout=a(function(){let me=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",dt=i.transitional||On;i.timeoutErrorMessage&&(me=i.timeoutErrorMessage),n(new R(me,dt.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(me,dt){b.setRequestHeader(dt,me)},"setRequestHeader")),c.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),p&&p!=="json"&&(b.responseType=i.responseType),v&&([C,h]=To(v,!0),b.addEventListener("progress",C)),y&&b.upload&&([N,F]=To(y),b.upload.addEventListener("progress",N),b.upload.addEventListener("loadend",F)),(i.cancelToken||i.signal)&&(u=a(B=>{b&&(n(!B||B.type?new Rt(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 Rt(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"),Ws=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:ha}=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?ha(e):typeof fetch=="function",r=ha(o),s=ha(n);if(!i)return!1;let p=i&&ha(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:me,onDownloadProgress:dt,onUploadProgress:ve,responseType:Ae,headers:Me,withCredentials:Fr="same-origin",fetchOptions:bn}=ga(h),Jr=e||fetch;Ae=Ae?(Ae+"").toLowerCase():"text";let Do=af([X,B&&B.toAbortSignal()],me),fo=null,jo=Do&&Do.unsubscribe&&(()=>{Do.unsubscribe()}),Ir;try{if(ve&&v&&b!=="get"&&b!=="head"&&(Ir=await F(Me,Q))!==0){let O=new o(I,{method:"POST",body:Q,duplex:"half"}),G;if(c.isFormData(Q)&&(G=O.headers.get("content-type"))&&Me.setContentType(G),O.body){let[Ct,ye]=An(Ir,To(wn(ve)));Q=Ws(O.body,sf,Ct,ye)}}c.isString(Fr)||(Fr=Fr?"include":"omit");let Nt=r&&"credentials"in o.prototype,Le={...bn,signal:Do,method:b.toUpperCase(),headers:Me.normalize().toJSON(),body:Q,duplex:"half",credentials:Nt?Fr:void 0};fo=r&&new o(I,Le);let ut=await(r?Jr(fo,bn):Jr(I,Le)),Rn=u&&(Ae==="stream"||Ae==="response");if(u&&(dt||Rn&&jo)){let O={};["status","statusText","headers"].forEach(Mt=>{O[Mt]=ut[Mt]});let G=c.toFiniteNumber(ut.headers.get("content-length")),[Ct,ye]=dt&&An(G,To(wn(dt),!0))||[];ut=new n(Ws(ut.body,sf,Ct,()=>{ye&&ye(),jo&&jo()}),O)}Ae=Ae||"text";let D=await N[c.findKey(N,Ae)||"text"](ut,h);return!Rn&&jo&&jo(),await new Promise((O,G)=>{mo(O,G,{data:D,headers:de.from(ut.headers),status:ut.status,statusText:ut.statusText,config:h,request:fo})})}catch(Nt){throw jo&&jo(),Nt&&Nt.name==="TypeError"&&/Load failed|fetch/i.test(Nt.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,h,fo),{cause:Nt.cause||Nt}):R.from(Nt,Nt&&Nt.code,h,fo)}}},"factory"),Ol=new Map,Xs=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"),cS=Xs();var Ys={http:ef,xhr:nf,fetch:{get:Xs}};c.forEach(Ys,(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=Ys[(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 Sa={getAdapter:wl,adapters:Ys};function Ks(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rt(null,t)}a(Ks,"throwIfCancellationRequested");function Na(t){return Ks(t),t.headers=de.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),Sa.getAdapter(t.adapter||xn.adapter,t)(t).then(a(function(n){return Ks(t),n.data=bi.call(t,t.transformResponse,n),n.headers=de.from(n.headers),n},"onAdapterResolution"),a(function(n){return Ri(n)||(Ks(t),n&&n.response&&(n.response.data=bi.call(t,t.transformResponse,n.response),n.response.headers=de.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}a(Na,"dispatchRequest");var Ca={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ca[t]=a(function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t},"validator")});var uf={};Ca.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");Ca.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:Ca};var vo=wi.validators,ba=class{static{a(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new bs,response:new bs}}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=Bt(this.defaults,o);let{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&wi.assertOptions(n,{silentJSONParsing:vo.transitional(vo.boolean),forcedJSONParsing:vo.transitional(vo.boolean),clarifyTimeoutError:vo.transitional(vo.boolean)},!1),i!=null&&(c.isFunction(i)?o.paramsSerializer={serialize:i}:wi.assertOptions(i,{encode:vo.function,serialize:vo.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),wi.assertOptions(o,{baseUrl:vo.spelling("baseURL"),withXsrfToken:vo.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=de.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=[Na.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=Na.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=Bt(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){ba.prototype[e]=function(o,n){return this.request(Bt(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(Bt(p||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))},"httpMethod")}a(o,"generateHTTPMethod"),ba.prototype[e]=o(),ba.prototype[e+"Form"]=o(!0)},"forEachMethodWithData"));var Ei=ba;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 Rt(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 Zs(t){return a(function(o){return t.apply(null,o)},"wrap")}a(Zs,"spread");function ks(t){return c.isObject(t)&&t.isAxiosError===!0}a(ks,"isAxiosError");var ep={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(ep).forEach(([t,e])=>{ep[e]=t});var vf=ep;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(Bt(t,i))},"create"),o}a(yf,"createInstance");var he=yf(xn);he.Axios=Ei;he.CanceledError=Rt;he.CancelToken=mf;he.isCancel=Ri;he.VERSION=Zr;he.toFormData=xr;he.AxiosError=R;he.Cancel=he.CanceledError;he.all=a(function(e){return Promise.all(e)},"all");he.spread=Zs;he.isAxiosError=ks;he.mergeConfig=Bt;he.AxiosHeaders=de;he.formToJSON=t=>la(c.isHTMLForm(t)?new FormData(t):t);he.getAdapter=Sa.getAdapter;he.HttpStatusCode=vf;he.default=he;var Ra=he;var{Axios:v0,AxiosError:y0,CanceledError:g0,isCancel:h0,CancelToken:S0,VERSION:N0,all:C0,Cancel:b0,isAxiosError:R0,spread:F0,toFormData:I0,AxiosHeaders:z0,HttpStatusCode:O0,formToJSON:x0,getAdapter:A0,mergeConfig:w0}=Ra;var En=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=Ra.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(uo,this)}};import om 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 Fa(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(Fa,"_ts_decorate");function op(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(op,"_ts_metadata");var Er=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};Fa([gf(S),op("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Er.prototype,"tpAmb",void 0);Fa([gf(d),op("design:type",typeof StateCode>"u"?Object:StateCode)],Er.prototype,"cUF",void 0);Fa([Vl()],Er.prototype,"xServ",void 0);var tp=class{static{a(this,"ConsultStatusRequest")}consStatServ};Fa([jl(),Tl(),_l(),Dl(()=>Er),op("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],tp.prototype,"consStatServ",void 0);import{Type as rp}from"class-transformer";import{IsEnum as hf,IsOptional as za,IsString as Ut,Length as Sf,MinLength as Ml,MaxLength as Ll,Matches as Di,ValidateNested as np,Allow as Bl,IsObject as Nf}from"class-validator";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 Ue(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ue,"_ts_metadata");var Ia=class{static{a(this,"InfInutAttributes")}Id};ze([Ut(),Ue("design:type",String)],Ia.prototype,"Id",void 0);var Pi=class{static{a(this,"InutNFeAttributes")}xmlns;versao};ze([Ut(),Ue("design:type",String)],Pi.prototype,"xmlns",void 0);ze([Ut(),za(),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};ze([np(),rp(()=>Ia),Ue("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Be.prototype,"$",void 0);ze([hf(S),Ue("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Be.prototype,"tpAmb",void 0);ze([za()],Be.prototype,"xServ",void 0);ze([hf(d),Ue("design:type",typeof StateCode>"u"?Object:StateCode)],Be.prototype,"cUF",void 0);ze([Ut(),Sf(2,2),Di(/^[0-9]{2}$/),Ue("design:type",String)],Be.prototype,"ano",void 0);ze([Ut(),za(),Ue("design:type",String)],Be.prototype,"CNPJ",void 0);ze([Ut(),za(),Ue("design:type",String)],Be.prototype,"CPF",void 0);ze([Ut(),Sf(2,2),Di(/^(55|65)$/),Ue("design:type",String)],Be.prototype,"mod",void 0);ze([Ut(),Di(/^[0-9]{1,3}$/),Ue("design:type",String)],Be.prototype,"serie",void 0);ze([Ut(),Di(/^[0-9]{1,9}$/),Ue("design:type",String)],Be.prototype,"nNFIni",void 0);ze([Ut(),Di(/^[0-9]{1,9}$/),Ue("design:type",String)],Be.prototype,"nNFFin",void 0);ze([Ut(),Ml(15),Ll(255),Ue("design:type",String)],Be.prototype,"xJust",void 0);Be=ze([H({properties:["CNPJ","CPF"],required:!0})],Be);var _o=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};ze([Nf(),np(),rp(()=>Pi),Ue("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],_o.prototype,"$",void 0);ze([Nf(),np(),rp(()=>Be),Ue("design:type",typeof IInfInut>"u"?Object:IInfInut)],_o.prototype,"infInut",void 0);ze([Bl(),Ue("design:type",typeof Signature>"u"?Object:Signature)],_o.prototype,"Signature",void 0);import{IsEnum as Ul,IsOptional as ql,IsString as Ql,Length as Hl,Matches as $l}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 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};ip([Ul(S),Cf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],en.prototype,"tpAmb",void 0);ip([ql()],en.prototype,"xServ",void 0);ip([Ql(),Hl(44,44),$l(/^[0-9]{44}$/),Cf("design:type",String)],en.prototype,"chNFe",void 0);import{IsEnum as ap,IsOptional as xa,IsString as Jl,IsNotEmpty as Gl}from"class-validator";function ji(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(ji,"_ts_decorate");function Oa(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Oa,"_ts_metadata");var Vo=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};ji([ap(S),xa(),Oa("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Vo.prototype,"tpAmb",void 0);ji([ap(d),xa(),Oa("design:type",typeof StateCode>"u"?Object:StateCode)],Vo.prototype,"cUF",void 0);ji([Jl(),xa(),Oa("design:type",String)],Vo.prototype,"idLote",void 0);ji([xa(),ap(["0","1"])],Vo.prototype,"indSinc",void 0);ji([Gl(),Oa("design:type",typeof T>"u"?Object:T)],Vo.prototype,"NFe",void 0);import{IsEnum as Wl,IsString as Xl}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 Rf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Rf,"_ts_metadata");var Pn=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;nRec};bf([Wl(S),Rf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Pn.prototype,"tpAmb",void 0);bf([Xl(),Rf("design:type",String)],Pn.prototype,"nRec",void 0);import{IsString as Mo,IsNotEmpty as Yl,ValidateNested as Ea,IsObject as Pa,IsOptional as Ff,IsEnum as Kl,IsNumber as Zl,Allow as kl}from"class-validator";import{Type as Da}from"class-transformer";var Pr=(function(t){return t.Cancelamento="110111",t})({});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 Ee(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ee,"_ts_metadata");var Aa=class{static{a(this,"InfEventoAttributes")}Id};Oe([Mo(),Ee("design:type",String)],Aa.prototype,"Id",void 0);var we=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Oe([Pa(),Ea(),Da(()=>Aa),Ee("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],we.prototype,"$",void 0);Oe([Mo(),Ee("design:type",typeof StateCode>"u"?Object:StateCode)],we.prototype,"cOrgao",void 0);Oe([Mo(),Ee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],we.prototype,"tpAmb",void 0);Oe([Mo(),Ff(),Ee("design:type",String)],we.prototype,"CNPJ",void 0);Oe([Mo(),Ff(),Ee("design:type",String)],we.prototype,"CPF",void 0);Oe([Mo(),Ee("design:type",String)],we.prototype,"chNFe",void 0);Oe([Or({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ee("design:type",String)],we.prototype,"dhEvento",void 0);Oe([Kl(Pr),Ee("design:type",typeof Pr>"u"?Object:Pr)],we.prototype,"tpEvento",void 0);Oe([Zl(),Ee("design:type",Number)],we.prototype,"nSeqEvento",void 0);Oe([Mo(),Ee("design:type",String)],we.prototype,"verEvento",void 0);Oe([Pa(),Ee("design:type",typeof T>"u"?Object:T)],we.prototype,"detEvento",void 0);we=Oe([H({properties:["CNPJ","CPF"],required:!0})],we);var wa=class{static{a(this,"EventoItemAttributes")}xmlns};Oe([Mo(),Ee("design:type",String)],wa.prototype,"xmlns",void 0);var yo=class{static{a(this,"EventoItem")}$;infEvento;Signature};Oe([Pa(),Ea(),Da(()=>wa),Ee("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],yo.prototype,"$",void 0);Oe([Pa(),Ea(),Da(()=>we),Ee("design:type",typeof we>"u"?Object:we)],yo.prototype,"infEvento",void 0);Oe([kl(),Ee("design:type",typeof Signature>"u"?Object:Signature)],yo.prototype,"Signature",void 0);var Dn=class{static{a(this,"EventoPayload")}idLote;evento};Oe([Mo(),Ee("design:type",String)],Dn.prototype,"idLote",void 0);Oe([Yl(),Ea(),Da(()=>yo),Ee("design:type",typeof yo>"u"?Object:yo)],Dn.prototype,"evento",void 0);import{IsIn as em,IsOptional as Ta,IsString as _a}from"class-validator";function jn(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(jn,"_ts_decorate");function ja(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ja,"_ts_metadata");var qt=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};jn([Ta()],qt.prototype,"xServ",void 0);jn([_a(),em(Object.values(Zp)),ja("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],qt.prototype,"UF",void 0);jn([Ta(),_a(),ja("design:type",String)],qt.prototype,"IE",void 0);jn([Ta(),_a(),ja("design:type",String)],qt.prototype,"CNPJ",void 0);jn([Ta(),_a(),ja("design:type",String)],qt.prototype,"CPF",void 0);qt=jn([H({properties:["IE","CNPJ","CPF"],required:!0})],qt);var If={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 tm={[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"},zf=tm;var Va={[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 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 ge(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ge,"_ts_metadata");var Ft=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?Va[o]:zf[o];return If[i][n][e.service]}errors(){return Reflect.getMetadata(uo,this)}validate(e){try{let o=this.errors();return o?it(new nt(o.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Y(e))}finally{Reflect.deleteMetadata(uo,this)}}ns(e,o){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=o,{...e,$:n}}xsd(e){return om.resolve(na,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"})}};tn([w(Er),ge("design:type",Function),ge("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),ge("design:returntype",Promise)],Ft.prototype,"consultStatus",null);tn([w(_o),ge("design:type",Function),ge("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),ge("design:returntype",Promise)],Ft.prototype,"inutilizacao",null);tn([w(en),ge("design:type",Function),ge("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),ge("design:returntype",Promise)],Ft.prototype,"consultaProtocolo",null);tn([w(Vo),ge("design:type",Function),ge("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),ge("design:returntype",Promise)],Ft.prototype,"autorizacao",null);tn([w(Pn),ge("design:type",Function),ge("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),ge("design:returntype",Promise)],Ft.prototype,"retAutorizacao",null);tn([w(Dn),ge("design:type",Function),ge("design:paramtypes",[Object]),ge("design:returntype",Promise)],Ft.prototype,"recepcaoEvento",null);tn([w(qt),ge("design:type",Function),ge("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),ge("design:returntype",Promise)],Ft.prototype,"consultaCadastro",null);var Dr=class extends En{static{a(this,"TransmissionPipeline")}certificate;transmitter=new Ft(this.soap);constructor(e){super(e),this.certificate=e}};var Ma=class extends nt{static{a(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var La=class extends Dr{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.handleNfeBatch(n.value,e.NFe);if(i.isLeft())return i;let[r]=i.value;this.transmitter.configure({cUF:r.infNFe.ide.cUF,tpAmb:r.infNFe.ide.tpAmb,...o,contingency:this.contingency(r),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let s=await this.transmitter.autorizacao({...e,NFe:i.value});if(s.isLeft())return s;let p=s.value;return this.isSyncResponse(p)?Y(p):await this.handleAsyncResponse(p)}async signNfe(e,o){return this.signer.sign(o,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,o){if(!Array.isArray(o)){let i=await this.signNfe(e,o);return i.isLeft()?it(i.value):Y([i.value])}let n=await Promise.all(o.map(i=>this.signNfe(e,i)));return n.some(i=>i.isLeft())?it(new nt("Failed to sign a NFe in batch")):Y(n.filter(i=>i.isRight()).map(i=>i.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e){let{tpAmb:o,infRec:{nRec:n}}=e.retEnviNFe,i=1;for(;i<=3;)try{await new Promise(p=>setTimeout(p,1e3));let r=await this.transmitter.retAutorizacao({nRec:n,tpAmb:o});if(r.isLeft())continue;let s=r.value.retConsReciNFe.protNFe;if(!s||Array.isArray(s)&&s.length===0)continue;return Y({retEnviNFe:{...r.value.retConsReciNFe,protNFe:s}})}finally{i++}return it(new Ma)}contingency(e){let{dhCont:o,xJust:n,tpEmis:i}=e.infNFe.ide;if(!(!o||!n||i===bt.Normal))return{dhCont:o,xJust:n}}};var sp={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 Of={[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 rm={[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"},xf=rm;import{IsEnum as pp,IsOptional as Ua,IsString as nm,IsNotEmpty as im}from"class-validator";function Ti(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(Ti,"_ts_decorate");function Ba(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ba,"_ts_metadata");var Lo=class{static{a(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Ti([pp(S),Ua(),Ba("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Lo.prototype,"tpAmb",void 0);Ti([pp(d),Ua(),Ba("design:type",typeof StateCode>"u"?Object:StateCode)],Lo.prototype,"cUF",void 0);Ti([nm(),Ua(),Ba("design:type",String)],Lo.prototype,"idLote",void 0);Ti([Ua(),pp(["0","1"])],Lo.prototype,"indSinc",void 0);Ti([im(),Ba("design:type",typeof T>"u"?Object:T)],Lo.prototype,"NFe",void 0);function am(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(am,"_ts_decorate");function cp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(cp,"_ts_metadata");var _i=class extends Ft{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=xf[o],p=sp[i][n][e.service];if(p)return p;let y=Object.keys(d).find(v=>d[v]===o);return sp[y][n][e.service]}async autorizacao(e){let o=await this.attachInfNfeSupl(e);return o.isLeft()?o:super.autorizacao({...e,NFe:o.value})}getUrlConsult(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return Of[n][o]}async attachInfNfeSupl(e){let{NFe:o}=e;if(!Array.isArray(o))return this.attachQrCode({...e,NFe:o});let n=await Promise.all(o.map(i=>this.attachQrCode({...e,NFe:i})));return n.some(i=>i.isLeft())?it(new nt("Failed to attach QRCode to NFCe in batch")):Y(n.filter(i=>i.isRight()).map(i=>i.value))}async attachQrCode(e){let o=await this.generateQrCode(e);return o.isLeft()?o:(e.NFe.infNFeSupl=o.value,Y(e.NFe))}async generateQrCode(e){let o=this.service({...e,service:"NfeConsultaQR"}),n=this.options.qrCode;switch(n.version??=o.version,n.version){case"200":return await this.qrCode.execute(e.NFe,{version:n.version,urlConsult:this.getUrlConsult(e),urlService:o.url,CSC:n.CSC,CSCId:n.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:n.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:o.url}):it(new nt("Certificate is required in QRCode version 3.00"));default:return ra(n.version)}}};am([w(Lo),cp("design:type",Function),cp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),cp("design:returntype",Promise)],_i.prototype,"autorizacao",null);import sm from"crypto";var qa=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:Y(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):ra(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!==bt.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=sm.createHash("sha1").update(`${r}${i}`).digest("hex").toUpperCase(),p=`${n}?p=`;return Promise.resolve(Y(`${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!==bt.OFFLINE)return Y(`${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:Y(`${i}${C}|${F.value}`)}};var Af=class extends La{static{a(this,"NfceAuthorizerPipeline")}certificate;qrCode=new qa(this.certificates);transmitter=new _i(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var wf={[Pr.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};function pm(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(pm,"_ts_decorate");function fp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(fp,"_ts_metadata");var Vi=class extends Dr{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=wf[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?it(new nt(o.join(", "))):Y(e)}};pm([w(yo),fp("design:type",Function),fp("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),fp("design:returntype",void 0)],Vi.prototype,"validated",null);var Ef=class extends Vi{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(Pr.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 cm(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(cm,"_ts_decorate");function dp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(dp,"_ts_metadata");var up=class extends Dr{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?it(new nt(o.join(", "))):Y(e)}};cm([w(_o),dp("design:type",Function),dp("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),dp("design:returntype",void 0)],up.prototype,"validated",null);import Ym from"path";import{Allow as Gm,IsNotEmpty as Wm,IsNotEmptyObject as dd,IsObject as ud,IsString as Xm,ValidateNested as ld}from"class-validator";import{ArrayMaxSize as cd,ArrayMinSize as Jm,IsNotEmptyObject as Gp,IsObject as Wp,IsOptional as ft,IsString as fd,ValidateNested as Fe}from"class-validator";import{Type as Ie}from"class-transformer";import{ArrayMaxSize as fm,IsArray as dm,IsEnum as um,IsOptional as yt,IsString as j,ValidateNested as Qa}from"class-validator";import{Type as Ha}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 Bo=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};A([j(),E("design:type",String)],Bo.prototype,"cUF",void 0);A([j(),E("design:type",String)],Bo.prototype,"AAMM",void 0);A([j(),E("design:type",String)],Bo.prototype,"CNPJ",void 0);A([j(),E("design:type",String)],Bo.prototype,"mod",void 0);A([j(),E("design:type",String)],Bo.prototype,"serie",void 0);A([j(),E("design:type",String)],Bo.prototype,"nNF",void 0);var It=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};A([j(),E("design:type",String)],It.prototype,"cUF",void 0);A([j(),E("design:type",String)],It.prototype,"AAMM",void 0);A([yt(),j(),E("design:type",String)],It.prototype,"CNPJ",void 0);A([yt(),j(),E("design:type",String)],It.prototype,"CPF",void 0);A([j(),E("design:type",String)],It.prototype,"IE",void 0);A([j(),E("design:type",String)],It.prototype,"mod",void 0);A([j(),E("design:type",String)],It.prototype,"serie",void 0);A([j(),E("design:type",String)],It.prototype,"nNF",void 0);It=A([H({properties:["CNPJ","CPF"],required:!0})],It);var Tn=class{static{a(this,"RefECF")}mod;nECF;nCOO};A([j(),E("design:type",String)],Tn.prototype,"mod",void 0);A([j(),E("design:type",String)],Tn.prototype,"nECF",void 0);A([j(),E("design:type",String)],Tn.prototype,"nCOO",void 0);var Uo=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};A([yt(),j(),E("design:type",String)],Uo.prototype,"refNFe",void 0);A([yt(),j(),E("design:type",String)],Uo.prototype,"refNFeSig",void 0);A([yt(),Qa(),Ha(()=>Bo),E("design:type",typeof IRefNF>"u"?Object:IRefNF)],Uo.prototype,"refNF",void 0);A([yt(),Qa(),Ha(()=>It),E("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],Uo.prototype,"refNFP",void 0);A([yt(),j(),E("design:type",String)],Uo.prototype,"refCTe",void 0);A([yt(),Qa(),Ha(()=>Tn),E("design:type",typeof IRefECF>"u"?Object:IRefECF)],Uo.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([um(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([Or({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),E("design:type",String)],q.prototype,"dhEmi",void 0);A([yt(),Or({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(),yt(),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([yt(),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([yt(),j(),Or({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),E("design:type",String)],q.prototype,"dhCont",void 0);A([yt(),j(),E("design:type",String)],q.prototype,"xJust",void 0);A([yt(),dm(),fm(999),Qa({each:!0}),Ha(()=>Uo),E("design:type",Array)],q.prototype,"NFref",void 0);import{IsOptional as _n,IsString as qo,ValidateNested as lm}from"class-validator";import{Type as mm}from"class-transformer";import{IsOptional as $a,IsString as $t}from"class-validator";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 Ht(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ht,"_ts_metadata");var qe=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Qt([$t(),Ht("design:type",String)],qe.prototype,"xLgr",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"nro",void 0);Qt([$a(),$t(),Ht("design:type",String)],qe.prototype,"xCpl",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"xBairro",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"cMun",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"xMun",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"UF",void 0);Qt([$t(),Ht("design:type",String)],qe.prototype,"CEP",void 0);Qt([$a(),$t(),Ht("design:type",String)],qe.prototype,"cPais",void 0);Qt([$a(),$t(),Ht("design:type",String)],qe.prototype,"xPais",void 0);Qt([$a(),$t(),Ht("design:type",String)],qe.prototype,"fone",void 0);function Jt(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(Jt,"_ts_decorate");function go(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(go,"_ts_metadata");var Pe=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"CNPJ",void 0);Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"CPF",void 0);Jt([qo(),go("design:type",String)],Pe.prototype,"xNome",void 0);Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"xFant",void 0);Jt([lm(),mm(()=>qe),go("design:type",typeof qe>"u"?Object:qe)],Pe.prototype,"enderEmit",void 0);Jt([qo(),go("design:type",String)],Pe.prototype,"IE",void 0);Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"IEST",void 0);Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"IM",void 0);Jt([_n(),qo(),go("design:type",String)],Pe.prototype,"CNAE",void 0);Jt([qo(),go("design:type",String)],Pe.prototype,"CRT",void 0);Pe=Jt([H({properties:["CNPJ","CPF"],required:!0})],Pe);import{IsOptional as Qo,IsString as Ho,ValidateNested as vm}from"class-validator";import{Type as ym}from"class-transformer";import{IsOptional as Xt,IsString as Yt}from"class-validator";function Gt(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(Gt,"_ts_decorate");function Wt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Wt,"_ts_metadata");var at=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"xLgr",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"nro",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"xCpl",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"xBairro",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"cMun",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"xMun",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"UF",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"CEP",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"cPais",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"xPais",void 0);Gt([Xt(),Yt(),Wt("design:type",String)],at.prototype,"fone",void 0);function Kt(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(Kt,"_ts_decorate");function ho(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ho,"_ts_metadata");var De=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"CNPJ",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"CPF",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"idEstrangeiro",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"xNome",void 0);Kt([Qo(),vm(),ym(()=>at),ho("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],De.prototype,"enderDest",void 0);Kt([Ho(),ho("design:type",String)],De.prototype,"indIEDest",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"IE",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"ISUF",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"IM",void 0);Kt([Qo(),Ho(),ho("design:type",String)],De.prototype,"email",void 0);De=Kt([H({properties:["CNPJ","CPF"],required:!0})],De);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 K=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)],K.prototype,"CNPJ",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"CPF",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"xNome",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"xLgr",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"nro",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"xCpl",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"xBairro",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"cMun",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"xMun",void 0);Qe([Ye(),Xe("design:type",String)],K.prototype,"UF",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"CEP",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"cPais",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"xPais",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"fone",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"email",void 0);Qe([So(),Ye(),Xe("design:type",String)],K.prototype,"IE",void 0);K=Qe([H({properties:["CNPJ","CPF"]})],K);import{IsOptional as Df,IsString as jf}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 Pf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Pf,"_ts_metadata");var No=class{static{a(this,"AutXML")}CNPJ;CPF};lp([Df(),jf(),Pf("design:type",String)],No.prototype,"CNPJ",void 0);lp([Df(),jf(),Pf("design:type",String)],No.prototype,"CPF",void 0);No=lp([H({properties:["CNPJ","CPF"]})],No);import{IsOptional as gm,IsString as Vf}from"class-validator";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 jr=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};Tf([Vf(),_f("design:type",String)],jr.prototype,"CNPJ",void 0);Tf([gm(),Vf(),_f("design:type",String)],jr.prototype,"idCadIntTran",void 0);import{IsOptional as Mf,IsString as yp}from"class-validator";function mp(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(mp,"_ts_decorate");function vp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(vp,"_ts_metadata");var $o=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};mp([yp(),vp("design:type",String)],$o.prototype,"UFSaidaPais",void 0);mp([Mf(),yp(),vp("design:type",String)],$o.prototype,"xLocExporta",void 0);mp([Mf(),yp(),vp("design:type",String)],$o.prototype,"xLocDespacho",void 0);import{IsOptional as Sp,IsString as Np}from"class-validator";function gp(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(gp,"_ts_decorate");function hp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(hp,"_ts_metadata");var Jo=class{static{a(this,"Compra")}xNEmp;xPed;xCont};gp([Sp(),Np(),hp("design:type",String)],Jo.prototype,"xNEmp",void 0);gp([Sp(),Np(),hp("design:type",String)],Jo.prototype,"xPed",void 0);gp([Sp(),Np(),hp("design:type",String)],Jo.prototype,"xCont",void 0);import{IsOptional as Lf,IsString as Ln}from"class-validator";function Vn(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(Vn,"_ts_decorate");function Mn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Mn,"_ts_metadata");var wt=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};Vn([Ln(),Mn("design:type",String)],wt.prototype,"CNPJ",void 0);Vn([Ln(),Mn("design:type",String)],wt.prototype,"xContato",void 0);Vn([Ln(),Mn("design:type",String)],wt.prototype,"email",void 0);Vn([Ln(),Mn("design:type",String)],wt.prototype,"fone",void 0);Vn([Lf(),Ln(),Mn("design:type",String)],wt.prototype,"idCSRT",void 0);Vn([Lf(),Ln(),Mn("design:type",String)],wt.prototype,"hashCSRT",void 0);import{IsOptional as Bf,ValidateNested as Rp}from"class-validator";import{Type as Fp}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 Zt,IsString as Dt}from"class-validator";function Et(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(Et,"_ts_decorate");function Pt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Pt,"_ts_metadata");var Ke=class{static{a(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vServ",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vBC",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vISS",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vPIS",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vCOFINS",void 0);Et([Dt(),Pt("design:type",String)],Ke.prototype,"dCompet",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vDeducao",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vOutro",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vDescIncond",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vDescCond",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"vISSRet",void 0);Et([Zt(),Dt(),Pt("design:type",String)],Ke.prototype,"cRegTrib",void 0);import{IsOptional as nn}from"class-validator";function on(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(on,"_ts_decorate");function rn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(rn,"_ts_metadata");var kt=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vRetPIS",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vRetCOFINS",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vRetCSLL",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vBCIRRF",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vIRRF",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vBCRetPrev",void 0);on([nn(),f({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.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 bp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(bp,"_ts_metadata");var Go=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib};Cp([Rp(),Fp(()=>L),bp("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Go.prototype,"ICMSTot",void 0);Cp([Bf(),Rp(),Fp(()=>Ke),bp("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Go.prototype,"ISSQNtot",void 0);Cp([Bf(),Rp(),Fp(()=>kt),bp("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Go.prototype,"retTrib",void 0);import{ArrayMaxSize as qf,IsOptional as fn,IsString as Ip,ValidateNested as Mi}from"class-validator";import{Type as Li}from"class-transformer";import{IsOptional as sn,IsString as pn}from"class-validator";function Tr(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(Tr,"_ts_decorate");function an(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(an,"_ts_metadata");var Ze=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"CNPJ",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"CPF",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"xNome",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"IE",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"xEnder",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"xMun",void 0);Tr([sn(),pn(),an("design:type",String)],Ze.prototype,"UF",void 0);Ze=Tr([H({properties:["CNPJ","CPF"]})],Ze);import{IsOptional as qn,IsString as Uf}from"class-validator";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 Un(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Un,"_ts_metadata");var zt=class{static{a(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Bn([qn(),f({fixed:2}),Un("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vServ",void 0);Bn([qn(),f({fixed:2}),Un("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vBCRet",void 0);Bn([qn(),f({fixed:4}),Un("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"pICMSRet",void 0);Bn([qn(),f({fixed:2}),Un("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vICMSRet",void 0);Bn([qn(),Uf(),Un("design:type",String)],zt.prototype,"CFOP",void 0);Bn([qn(),Uf(),Un("design:type",String)],zt.prototype,"cMunFG",void 0);import{IsOptional as $n,IsString as Jn}from"class-validator";function Qn(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(Qn,"_ts_decorate");function Hn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Hn,"_ts_metadata");var bo=class{static{a(this,"VeicTransp")}placa;UF;RNTC};Qn([$n(),Jn(),Hn("design:type",String)],bo.prototype,"placa",void 0);Qn([$n(),Jn(),Hn("design:type",String)],bo.prototype,"UF",void 0);Qn([$n(),Jn(),Hn("design:type",String)],bo.prototype,"RNTC",void 0);var cn=class{static{a(this,"Reboque")}placa;UF;RNTC};Qn([$n(),Jn(),Hn("design:type",String)],cn.prototype,"placa",void 0);Qn([$n(),Jn(),Hn("design:type",String)],cn.prototype,"UF",void 0);Qn([$n(),Jn(),Hn("design:type",String)],cn.prototype,"RNTC",void 0);import{IsOptional as Xn,IsString as Ja}from"class-validator";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 Wn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Wn,"_ts_metadata");var Ro=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Gn([Xn(),Ja(),Wn("design:type",String)],Ro.prototype,"qVol",void 0);Gn([Xn(),Ja(),Wn("design:type",String)],Ro.prototype,"esp",void 0);Gn([Xn(),Ja(),Wn("design:type",String)],Ro.prototype,"marca",void 0);Gn([Xn(),Ja(),Wn("design:type",String)],Ro.prototype,"nVol",void 0);Gn([Xn(),f({fixed:3}),Wn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pesoL",void 0);Gn([Xn(),f({fixed:3}),Wn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pesoB",void 0);function Wo(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(Wo,"_ts_decorate");function _r(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_r,"_ts_metadata");var ke=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Wo([Ip(),_r("design:type",String)],ke.prototype,"modFrete",void 0);Wo([fn(),Mi(),Li(()=>Ze),_r("design:type",typeof Ze>"u"?Object:Ze)],ke.prototype,"transporta",void 0);Wo([fn(),Mi(),Li(()=>zt),_r("design:type",typeof zt>"u"?Object:zt)],ke.prototype,"retTransp",void 0);Wo([fn(),Mi(),Li(()=>bo),_r("design:type",typeof bo>"u"?Object:bo)],ke.prototype,"veicTransp",void 0);Wo([fn(),Mi({each:!0}),Li(()=>cn),qf(5),_r("design:type",Array)],ke.prototype,"reboque",void 0);Wo([fn(),Ip(),_r("design:type",String)],ke.prototype,"vagao",void 0);Wo([fn(),Ip(),_r("design:type",String)],ke.prototype,"balsa",void 0);Wo([fn(),Mi({each:!0}),Li(()=>Ro),qf(5e3),_r("design:type",Array)],ke.prototype,"vol",void 0);ke=Wo([H({properties:["veicTransp","reboque"]}),H({properties:["vagao","balsa"]})],ke);import{ArrayMaxSize as hm,IsOptional as Zo,IsString as zp,ValidateNested as Qf}from"class-validator";import{Type as Hf}from"class-transformer";function Yo(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(Yo,"_ts_decorate");function Ko(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ko,"_ts_metadata");var Xo=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Yo([Zo(),zp(),Ko("design:type",String)],Xo.prototype,"nFat",void 0);Yo([Zo(),f({fixed:2}),Ko("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"vOrig",void 0);Yo([Zo(),f({fixed:2}),Ko("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"vDesc",void 0);Yo([Zo(),f({fixed:2}),Ko("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"vLiq",void 0);var Yn=class{static{a(this,"Dup")}nDup;dVenc;vDup};Yo([Zo(),zp(),Ko("design:type",String)],Yn.prototype,"nDup",void 0);Yo([Zo(),zp(),Ko("design:type",String)],Yn.prototype,"dVenc",void 0);Yo([Zo(),f({fixed:2}),Ko("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yn.prototype,"vDup",void 0);var Vr=class{static{a(this,"Cobr")}fat;dup};Yo([Zo(),Qf(),Hf(()=>Xo),Ko("design:type",typeof Xo>"u"?Object:Xo)],Vr.prototype,"fat",void 0);Yo([Zo(),Qf({each:!0}),hm(120),Hf(()=>Yn),Ko("design:type",Array)],Vr.prototype,"dup",void 0);import{ArrayMaxSize as Cm,ArrayMinSize as bm,IsOptional as Rm,ValidateNested as Fm}from"class-validator";import{Type as Im}from"class-transformer";import{IsOptional as Ep,IsString as Pp,ValidateNested as Sm}from"class-validator";import{Type as Nm}from"class-transformer";import{IsOptional as Ap,IsString as wp}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 xp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(xp,"_ts_metadata");var Fo=class{static{a(this,"Card")}cNPJ;tBand;cAut};Op([Ap(),wp(),xp("design:type",String)],Fo.prototype,"cNPJ",void 0);Op([Ap(),wp(),xp("design:type",String)],Fo.prototype,"tBand",void 0);Op([Ap(),wp(),xp("design:type",String)],Fo.prototype,"cAut",void 0);function Bi(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(Bi,"_ts_decorate");function Ui(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ui,"_ts_metadata");var ko=class{static{a(this,"DetPag")}indPag;tPag;vPag;card;xPag};Bi([Ep(),Pp(),Ui("design:type",String)],ko.prototype,"indPag",void 0);Bi([Pp(),Ui("design:type",typeof TPag>"u"?Object:TPag)],ko.prototype,"tPag",void 0);Bi([f({fixed:2}),Ui("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ko.prototype,"vPag",void 0);Bi([Ep(),Sm(),Nm(()=>Fo),Ui("design:type",typeof Fo>"u"?Object:Fo)],ko.prototype,"card",void 0);Bi([Ep(),Pp(),Ui("design:type",String)],ko.prototype,"xPag",void 0);function $f(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($f,"_ts_decorate");function Jf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Jf,"_ts_metadata");var Mr=class{static{a(this,"Pag")}detPag;vTroco};$f([Fm({each:!0}),bm(1),Cm(100),Im(()=>ko),Jf("design:type",Array)],Mr.prototype,"detPag",void 0);$f([Rm(),f({fixed:2}),Jf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mr.prototype,"vTroco",void 0);import{ArrayMaxSize as Dp,IsOptional as dn,IsString as Zn,ValidateNested as jp}from"class-validator";import{Type as Tp}from"class-transformer";function er(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(er,"_ts_decorate");function tr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(tr,"_ts_metadata");var Kn=class{static{a(this,"InfAdicObs")}xCampo;xTexto};er([Zn(),tr("design:type",String)],Kn.prototype,"xCampo",void 0);er([Zn(),tr("design:type",String)],Kn.prototype,"xTexto",void 0);var qi=class{static{a(this,"ProcRef")}nProc;indProc};er([dn(),Zn(),tr("design:type",String)],qi.prototype,"nProc",void 0);er([dn(),Zn(),tr("design:type",String)],qi.prototype,"indProc",void 0);var eo=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};er([dn(),Zn(),tr("design:type",String)],eo.prototype,"infAdFisco",void 0);er([dn(),Zn(),tr("design:type",String)],eo.prototype,"infCpl",void 0);er([dn(),jp({each:!0}),Tp(()=>Kn),Dp(10),tr("design:type",Array)],eo.prototype,"obsCont",void 0);er([dn(),jp({each:!0}),Tp(()=>Kn),Dp(10),tr("design:type",Array)],eo.prototype,"obsFisco",void 0);er([dn(),jp({each:!0}),Tp(()=>qi),Dp(100),tr("design:type",Array)],eo.prototype,"procRef",void 0);import{ArrayMaxSize as Gf,IsNotEmptyObject as zm,IsObject as Om,IsOptional as un,IsString as Lr,ValidateNested as Wf}from"class-validator";import{Type as _p}from"class-transformer";function st(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(st,"_ts_decorate");function pt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(pt,"_ts_metadata");var Ga=class{static{a(this,"ForDiaAttributes")}dia};st([Lr(),pt("design:type",String)],Ga.prototype,"dia",void 0);var Qi=class{static{a(this,"ForDia")}$;qtde};st([Om(),zm(),_p(()=>Ga),pt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Qi.prototype,"$",void 0);st([Lr(),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qi.prototype,"qtde",void 0);var Hi=class{static{a(this,"Deduc")}xDed;vDed};st([Lr(),pt("design:type",String)],Hi.prototype,"xDed",void 0);st([f({fixed:2}),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hi.prototype,"vDed",void 0);var et=class{static{a(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};st([Lr(),pt("design:type",String)],et.prototype,"safra",void 0);st([Lr(),pt("design:type",String)],et.prototype,"ref",void 0);st([Wf({each:!0}),Gf(31),_p(()=>Qi),pt("design:type",Array)],et.prototype,"forDia",void 0);st([un(),Lr(),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotMes",void 0);st([un(),Lr(),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotAnt",void 0);st([un(),Lr(),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTotGer",void 0);st([un(),Wf({each:!0}),Gf(10),_p(()=>Hi),pt("design:type",Array)],et.prototype,"deduc",void 0);st([un(),f({fixed:2}),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vFor",void 0);st([un(),f({fixed:2}),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vTotDed",void 0);st([un(),f({fixed:2}),pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vLiqFor",void 0);import{IsObject as Um,IsOptional as us,IsString as pd,ValidateNested as ki}from"class-validator";import{Type as ea}from"class-transformer";import{ArrayMaxSize as Ki,IsArray as ka,IsObject as vn,IsOptional as k,IsString as Se,ValidateNested as nr}from"class-validator";import{Type as ir}from"class-transformer";import{IsOptional as Wa,IsString as Gi}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 or=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};$i([Gi(),Ji("design:type",String)],or.prototype,"nLote",void 0);$i([Wa(),Gi(),Ji("design:type",String)],or.prototype,"qLote",void 0);$i([Wa(),Gi(),Ji("design:type",String)],or.prototype,"dFab",void 0);$i([Wa(),Gi(),Ji("design:type",String)],or.prototype,"dVal",void 0);$i([Wa(),Gi(),Ji("design:type",String)],or.prototype,"cAgreg",void 0);import{IsString as gt,IsOptional as Wi,IsArray as xm,ValidateNested as Am,ArrayMaxSize as wm,ArrayMinSize as Em}from"class-validator";import{Type as Pm}from"class-transformer";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 He(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(He,"_ts_metadata");var Br=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Te([gt(),He("design:type",String)],Br.prototype,"nAdicao",void 0);Te([gt(),He("design:type",String)],Br.prototype,"nSeqAdic",void 0);Te([gt(),He("design:type",String)],Br.prototype,"cFabricante",void 0);Te([f({fixed:2}),He("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Br.prototype,"vDescDI",void 0);Te([Wi(),gt(),He("design:type",String)],Br.prototype,"nDraw",void 0);var je=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Te([gt(),He("design:type",String)],je.prototype,"nDI",void 0);Te([gt(),He("design:type",String)],je.prototype,"dDI",void 0);Te([gt(),He("design:type",String)],je.prototype,"xLocDesemb",void 0);Te([gt(),He("design:type",String)],je.prototype,"UFDesemb",void 0);Te([gt(),He("design:type",String)],je.prototype,"dDesemb",void 0);Te([gt(),He("design:type",String)],je.prototype,"tpViaTransp",void 0);Te([Wi(),f({fixed:2}),He("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],je.prototype,"vAFRMM",void 0);Te([gt(),He("design:type",String)],je.prototype,"tpIntermedio",void 0);Te([gt(),Wi(),He("design:type",String)],je.prototype,"CNPJ",void 0);Te([gt(),Wi(),He("design:type",String)],je.prototype,"CPF",void 0);Te([gt(),Wi(),He("design:type",String)],je.prototype,"UFTerceiro",void 0);Te([xm(),Am({each:!0}),Pm(()=>Br),wm(999),Em(1),He("design:type",Array)],je.prototype,"adi",void 0);je=Te([H({properties:["CNPJ","CPF"],required:!0})],je);import{Type as Dm}from"class-transformer";import{IsOptional as Xf,IsString as Vp,ValidateNested as jm}from"class-validator";function Xi(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(Xi,"_ts_decorate");function Yi(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Yi,"_ts_metadata");var kn=class{static{a(this,"ExportInd")}nRE;chNFe;qExport};Xi([Vp(),Yi("design:type",String)],kn.prototype,"nRE",void 0);Xi([Vp(),Yi("design:type",String)],kn.prototype,"chNFe",void 0);Xi([f({fixed:4}),Yi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kn.prototype,"qExport",void 0);var ei=class{static{a(this,"DetExport")}nDraw;exportInd};Xi([Xf(),Vp(),Yi("design:type",String)],ei.prototype,"nDraw",void 0);Xi([Xf(),jm(),Dm(()=>kn),Yi("design:type",typeof IExportInd>"u"?Object:IExportInd)],ei.prototype,"exportInd",void 0);import{IsString as Zf}from"class-validator";function Yf(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(Yf,"_ts_decorate");function Kf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Kf,"_ts_metadata");var ti=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};Yf([Zf(),Kf("design:type",String)],ti.prototype,"cProdFisco",void 0);Yf([Zf(),Kf("design:type",String)],ti.prototype,"cOperNFF",void 0);import{IsString as kf}from"class-validator";function Mp(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(Mp,"_ts_decorate");function Lp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Lp,"_ts_metadata");var ln=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};Mp([kf(),Lp("design:type",String)],ln.prototype,"xEmb",void 0);Mp([f({fixed:3}),Lp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"qVolEmb",void 0);Mp([kf(),Lp("design:type",String)],ln.prototype,"uEmb",void 0);import{IsString as ne}from"class-validator";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 re(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(re,"_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};oe([ne(),re("design:type",String)],W.prototype,"tpOp",void 0);oe([ne(),re("design:type",String)],W.prototype,"chassi",void 0);oe([ne(),re("design:type",String)],W.prototype,"cCor",void 0);oe([ne(),re("design:type",String)],W.prototype,"xCor",void 0);oe([ne(),re("design:type",String)],W.prototype,"pot",void 0);oe([ne(),re("design:type",String)],W.prototype,"cilin",void 0);oe([ne(),re("design:type",String)],W.prototype,"pesoL",void 0);oe([ne(),re("design:type",String)],W.prototype,"pesoB",void 0);oe([ne(),re("design:type",String)],W.prototype,"nSerie",void 0);oe([ne(),re("design:type",String)],W.prototype,"tpComb",void 0);oe([ne(),re("design:type",String)],W.prototype,"nMotor",void 0);oe([ne(),re("design:type",String)],W.prototype,"CMT",void 0);oe([ne(),re("design:type",String)],W.prototype,"dist",void 0);oe([ne(),re("design:type",String)],W.prototype,"anoMod",void 0);oe([ne(),re("design:type",String)],W.prototype,"anoFab",void 0);oe([ne(),re("design:type",String)],W.prototype,"tpPint",void 0);oe([ne(),re("design:type",String)],W.prototype,"tpVeic",void 0);oe([ne(),re("design:type",String)],W.prototype,"espVeic",void 0);oe([ne(),re("design:type",String)],W.prototype,"VIN",void 0);oe([ne(),re("design:type",String)],W.prototype,"condVeic",void 0);oe([ne(),re("design:type",String)],W.prototype,"cMod",void 0);oe([ne(),re("design:type",String)],W.prototype,"cCorDENATRAN",void 0);oe([ne(),re("design:type",String)],W.prototype,"lota",void 0);oe([ne(),re("design:type",String)],W.prototype,"tpRest",void 0);import{IsString as ed}from"class-validator";function Bp(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(Bp,"_ts_decorate");function Up(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Up,"_ts_metadata");var mn=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};Bp([ed(),Up("design:type",String)],mn.prototype,"cProdANVISA",void 0);Bp([ed(),Up("design:type",String)],mn.prototype,"xMotivoIsencao",void 0);Bp([f({fixed:2}),Up("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mn.prototype,"vPMC",void 0);import{IsString as Ka}from"class-validator";function Xa(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(Xa,"_ts_decorate");function Ya(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ya,"_ts_metadata");var Ur=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};Xa([Ka(),Ya("design:type",String)],Ur.prototype,"tpArma",void 0);Xa([Ka(),Ya("design:type",String)],Ur.prototype,"nSerie",void 0);Xa([Ka(),Ya("design:type",String)],Ur.prototype,"nCano",void 0);Xa([Ka(),Ya("design:type",String)],Ur.prototype,"descr",void 0);import{IsString as rr,IsOptional as Qr,IsObject as qp,ValidateNested as Qp,ArrayMaxSize as Tm,Max as Za}from"class-validator";import{Type as Hp}from"class-transformer";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 ae(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ae,"_ts_metadata");var oi=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};ie([rr(),ae("design:type",String)],oi.prototype,"indImport",void 0);ie([rr(),ae("design:type",String)],oi.prototype,"cUFOrig",void 0);ie([f({fixed:4}),Za(100),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oi.prototype,"pOrig",void 0);var ri=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ie([f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ri.prototype,"qBCProd",void 0);ie([f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ri.prototype,"vAliqProd",void 0);ie([f({fixed:2}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ri.prototype,"vCIDE",void 0);var qr=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ie([rr(),ae("design:type",String)],qr.prototype,"nBico",void 0);ie([rr(),ae("design:type",String)],qr.prototype,"nBomba",void 0);ie([rr(),ae("design:type",String)],qr.prototype,"nTanque",void 0);ie([f({fixed:3}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vEncIni",void 0);ie([f({fixed:3}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vEncFin",void 0);var $e=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ie([rr(),ae("design:type",String)],$e.prototype,"cProdANP",void 0);ie([rr(),ae("design:type",String)],$e.prototype,"descANP",void 0);ie([Qr(),Za(100),f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGLP",void 0);ie([Qr(),Za(100),f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNn",void 0);ie([Qr(),Za(100),f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNi",void 0);ie([Qr(),f({fixed:2}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"vPart",void 0);ie([rr(),Qr(),ae("design:type",String)],$e.prototype,"CODIF",void 0);ie([Qr(),f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"qTemp",void 0);ie([rr(),ae("design:type",String)],$e.prototype,"UFCons",void 0);ie([qp(),Qp(),Hp(()=>ri),ae("design:type",typeof ICIDE>"u"?Object:ICIDE)],$e.prototype,"CIDE",void 0);ie([qp(),Qp(),Hp(()=>qr),ae("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],$e.prototype,"encerrante",void 0);ie([Qr(),f({fixed:4}),ae("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pBio",void 0);ie([qp(),Qp({each:!0}),Hp(()=>oi),Tm(30),Qr(),ae("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};_([Se(),V("design:type",String)],P.prototype,"cProd",void 0);_([Se(),V("design:type",String)],P.prototype,"cEAN",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"cBarra",void 0);_([Se(),V("design:type",String)],P.prototype,"xProd",void 0);_([Se(),V("design:type",String)],P.prototype,"NCM",void 0);_([k(),ka(),Ki(8),Se({each:!0}),V("design:type",Array)],P.prototype,"NVE",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"CEST",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"indEscala",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"CNPJFab",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"cBenef",void 0);_([k(),vn(),V("design:type",Object)],P.prototype,"gCred",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"EXTIPI",void 0);_([Se(),V("design:type",String)],P.prototype,"CFOP",void 0);_([Se(),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);_([Se(),V("design:type",String)],P.prototype,"cEANTrib",void 0);_([Se(),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);_([k(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vFrete",void 0);_([k(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vSeg",void 0);_([k(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vDesc",void 0);_([k(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],P.prototype,"vOutro",void 0);_([Se(),V("design:type",String)],P.prototype,"indTot",void 0);_([k(),ka(),nr({each:!0}),Ki(100),ir(()=>je),V("design:type",Array)],P.prototype,"DI",void 0);_([k(),ka(),nr({each:!0}),Ki(500),ir(()=>ei),V("design:type",Array)],P.prototype,"detExport",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"xPed",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"nItemPed",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"nFCI",void 0);_([k(),ka(),nr({each:!0}),Ki(500),ir(()=>or),V("design:type",Array)],P.prototype,"rastro",void 0);_([k(),vn(),nr(),ir(()=>ti),V("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],P.prototype,"infProdNFF",void 0);_([k(),vn(),nr(),ir(()=>ln),V("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],P.prototype,"infProdEmb",void 0);_([k(),vn(),nr(),ir(()=>W),V("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],P.prototype,"veicProd",void 0);_([k(),vn(),nr(),ir(()=>mn),V("design:type",typeof IMed>"u"?Object:IMed)],P.prototype,"med",void 0);_([k(),vn(),nr({each:!0}),ir(()=>Ur),Ki(500),V("design:type",Array)],P.prototype,"arma",void 0);_([k(),vn(),nr(),ir(()=>$e),V("design:type",typeof IComb>"u"?Object:IComb)],P.prototype,"comb",void 0);_([k(),Se(),V("design:type",String)],P.prototype,"nRECOPI",void 0);P=_([H({properties:["veicProd","med","arma","comb"]})],P);import{Type as Cr}from"class-transformer";import{IsNumber as Vm,IsOptional as Eo,ValidateNested as br}from"class-validator";import{IsOptional as g,IsString as x,Max as _m,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 ar=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};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,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vICMS",void 0);var Ot=class{static{a(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],Ot.prototype,"orig",void 0);l([x(),m("design:type",String)],Ot.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],Ot.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],Ot.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.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 sr=class{static{a(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],sr.prototype,"orig",void 0);l([x(),m("design:type",String)],sr.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],sr.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"vICMSST",void 0);var yn=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};l([x(),m("design:type",String)],yn.prototype,"orig",void 0);l([x(),m("design:type",String)],yn.prototype,"CST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yn.prototype,"vICMSDeson",void 0);l([g(),x(),m("design:type",String)],yn.prototype,"motDesICMS",void 0);var jt=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};l([x(),m("design:type",String)],jt.prototype,"orig",void 0);l([x(),m("design:type",String)],jt.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],jt.prototype,"modBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"vICMS",void 0);l([g(),f({fixed:4}),_m(100),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"pDif",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jt.prototype,"vICMSDif",void 0);var pr=class{static{a(this,"ICMS60")}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 ht=class{static{a(this,"ICMS70")}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 St=class{static{a(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],St.prototype,"orig",void 0);l([x(),m("design:type",String)],St.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],St.prototype,"modBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],St.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSST",void 0);var _e=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)],_e.prototype,"orig",void 0);l([x(),m("design:type",String)],_e.prototype,"CST",void 0);l([g(),x(),m("design:type",String)],_e.prototype,"modBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vBC",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pRedBC",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pICMS",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vICMS",void 0);l([g(),x(),m("design:type",String)],_e.prototype,"modBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pMVAST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pRedBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vICMSST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"pBCOp",void 0);l([g(),x(),m("design:type",String)],_e.prototype,"UFST",void 0);var cr=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([x(),m("design:type",String)],cr.prototype,"orig",void 0);l([x(),m("design:type",String)],cr.prototype,"CST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"vBCSTRet",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"pST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"vICMSSubstituto",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cr.prototype,"vICMSSTRet",void 0);var gn=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};l([x(),m("design:type",String)],gn.prototype,"orig",void 0);l([x(),m("design:type",String)],gn.prototype,"CSOSN",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gn.prototype,"pCredSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gn.prototype,"vCredICMSSN",void 0);var Zi=class{static{a(this,"ICMSSN102")}orig;CSOSN};l([x(),m("design:type",String)],Zi.prototype,"orig",void 0);l([x(),m("design:type",String)],Zi.prototype,"CSOSN",void 0);var to=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([x(),m("design:type",String)],to.prototype,"orig",void 0);l([x(),m("design:type",String)],to.prototype,"CSOSN",void 0);l([g(),x(),m("design:type",String)],to.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vICMSST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"pCredSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vCredICMSSN",void 0);var fr=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};l([x(),m("design:type",String)],fr.prototype,"orig",void 0);l([x(),m("design:type",String)],fr.prototype,"CSOSN",void 0);l([g(),x(),m("design:type",String)],fr.prototype,"modBCST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"vBCST",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"pICMSST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fr.prototype,"vICMSST",void 0);var dr=class{static{a(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([x(),m("design:type",String)],dr.prototype,"orig",void 0);l([x(),m("design:type",String)],dr.prototype,"CSOSN",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vBCSTRet",void 0);l([g(),f({fixed:4}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"pST",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vICMSSubstituto",void 0);l([g(),f({fixed:2}),m("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.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 ee=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(()=>ar),m("design:type",typeof IICMS00>"u"?Object:IICMS00)],ee.prototype,"ICMS00",void 0);l([g(),Je(),Ge(()=>Ot),m("design:type",typeof IICMS10>"u"?Object:IICMS10)],ee.prototype,"ICMS10",void 0);l([g(),Je(),Ge(()=>Io),m("design:type",typeof IICMS20>"u"?Object:IICMS20)],ee.prototype,"ICMS20",void 0);l([g(),Je(),Ge(()=>sr),m("design:type",typeof IICMS30>"u"?Object:IICMS30)],ee.prototype,"ICMS30",void 0);l([g(),Je(),Ge(()=>yn),m("design:type",typeof IICMS40>"u"?Object:IICMS40)],ee.prototype,"ICMS40",void 0);l([g(),Je(),Ge(()=>jt),m("design:type",typeof IICMS51>"u"?Object:IICMS51)],ee.prototype,"ICMS51",void 0);l([g(),Je(),Ge(()=>pr),m("design:type",typeof IICMS60>"u"?Object:IICMS60)],ee.prototype,"ICMS60",void 0);l([g(),Je(),Ge(()=>ht),m("design:type",typeof IICMS70>"u"?Object:IICMS70)],ee.prototype,"ICMS70",void 0);l([g(),Je(),Ge(()=>St),m("design:type",typeof IICMS90>"u"?Object:IICMS90)],ee.prototype,"ICMS90",void 0);l([g(),Je(),Ge(()=>_e),m("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],ee.prototype,"ICMSPart",void 0);l([g(),Je(),Ge(()=>cr),m("design:type",typeof IICMSST>"u"?Object:IICMSST)],ee.prototype,"ICMSST",void 0);l([g(),Je(),Ge(()=>gn),m("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],ee.prototype,"ICMSSN101",void 0);l([g(),Je(),Ge(()=>Zi),m("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],ee.prototype,"ICMSSN102",void 0);l([g(),Je(),Ge(()=>to),m("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],ee.prototype,"ICMSSN201",void 0);l([g(),Je(),Ge(()=>fr),m("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],ee.prototype,"ICMSSN202",void 0);l([g(),Je(),Ge(()=>dr),m("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],ee.prototype,"ICMSSN500",void 0);l([g(),Je(),Ge(()=>tt),m("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],ee.prototype,"ICMSSN900",void 0);ee=l([H({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],ee);import{IsOptional as zo,IsString as oo,ValidateNested as td}from"class-validator";import{Type as od}from"class-transformer";function xt(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(xt,"_ts_decorate");function At(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(At,"_ts_metadata");var ur=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};xt([oo(),At("design:type",String)],ur.prototype,"CST",void 0);xt([zo(),oo(),At("design:type",String)],ur.prototype,"vBC",void 0);xt([zo(),oo(),At("design:type",String)],ur.prototype,"pIPI",void 0);xt([zo(),oo(),At("design:type",String)],ur.prototype,"qUnid",void 0);xt([zo(),oo(),At("design:type",String)],ur.prototype,"vUnid",void 0);xt([zo(),oo(),At("design:type",String)],ur.prototype,"vIPI",void 0);var es=class{static{a(this,"IPINT")}CST};xt([oo(),At("design:type",String)],es.prototype,"CST",void 0);var Tt=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};xt([zo(),oo(),At("design:type",String)],Tt.prototype,"CNPJProd",void 0);xt([zo(),oo(),At("design:type",String)],Tt.prototype,"cSelo",void 0);xt([zo(),oo(),At("design:type",String)],Tt.prototype,"qSelo",void 0);xt([oo(),At("design:type",String)],Tt.prototype,"cEnq",void 0);xt([zo(),td(),od(()=>ur),At("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Tt.prototype,"IPITrib",void 0);xt([zo(),td(),od(()=>es),At("design:type",typeof IIPINT>"u"?Object:IIPINT)],Tt.prototype,"IPINT",void 0);import{IsOptional as rs,IsString as ns}from"class-validator";function ts(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,"_ts_decorate");function os(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(os,"_ts_metadata");var Oo=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};ts([rs(),ns(),os("design:type",String)],Oo.prototype,"vBC",void 0);ts([rs(),ns(),os("design:type",String)],Oo.prototype,"vDespAdu",void 0);ts([rs(),ns(),os("design:type",String)],Oo.prototype,"vII",void 0);ts([rs(),ns(),os("design:type",String)],Oo.prototype,"vIOF",void 0);import{IsOptional as Ne,IsString as Ce,ValidateNested as is}from"class-validator";import{Type as as}from"class-transformer";function se(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(se,"_ts_decorate");function pe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(pe,"_ts_metadata");var lr=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};se([Ce(),pe("design:type",String)],lr.prototype,"CST",void 0);se([Ne(),Ce(),pe("design:type",String)],lr.prototype,"vBC",void 0);se([Ne(),Ce(),pe("design:type",String)],lr.prototype,"pPIS",void 0);se([Ne(),Ce(),pe("design:type",String)],lr.prototype,"vPIS",void 0);var mr=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};se([Ce(),pe("design:type",String)],mr.prototype,"CST",void 0);se([Ne(),Ce(),pe("design:type",String)],mr.prototype,"qBCProd",void 0);se([Ne(),Ce(),pe("design:type",String)],mr.prototype,"vAliqProd",void 0);se([Ne(),Ce(),pe("design:type",String)],mr.prototype,"vPIS",void 0);var ni=class{static{a(this,"PISNT")}CST};se([Ce(),pe("design:type",String)],ni.prototype,"CST",void 0);var ro=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ce(),pe("design:type",String)],ro.prototype,"CST",void 0);se([Ne(),Ce(),pe("design:type",String)],ro.prototype,"vBC",void 0);se([Ne(),Ce(),pe("design:type",String)],ro.prototype,"pPIS",void 0);se([Ne(),Ce(),pe("design:type",String)],ro.prototype,"qBCProd",void 0);se([Ne(),Ce(),pe("design:type",String)],ro.prototype,"vAliqProd",void 0);se([Ne(),Ce(),pe("design:type",String)],ro.prototype,"vPIS",void 0);var xo=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};se([Ne(),is(),as(()=>lr),pe("design:type",typeof lr>"u"?Object:lr)],xo.prototype,"PISAliq",void 0);se([Ne(),is(),as(()=>mr),pe("design:type",typeof mr>"u"?Object:mr)],xo.prototype,"PISQtde",void 0);se([Ne(),is(),as(()=>ni),pe("design:type",typeof ni>"u"?Object:ni)],xo.prototype,"PISNT",void 0);se([Ne(),is(),as(()=>ro),pe("design:type",typeof ro>"u"?Object:ro)],xo.prototype,"PISOutr",void 0);var no=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ne(),Ce(),pe("design:type",String)],no.prototype,"vBC",void 0);se([Ne(),Ce(),pe("design:type",String)],no.prototype,"pPIS",void 0);se([Ne(),Ce(),pe("design:type",String)],no.prototype,"qBCProd",void 0);se([Ne(),Ce(),pe("design:type",String)],no.prototype,"vAliqProd",void 0);se([Ne(),Ce(),pe("design:type",String)],no.prototype,"vPIS",void 0);import{IsOptional as be,IsString as Re,ValidateNested as ss}from"class-validator";import{Type as ps}from"class-transformer";function ce(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(ce,"_ts_decorate");function fe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(fe,"_ts_metadata");var vr=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};ce([Re(),fe("design:type",String)],vr.prototype,"CST",void 0);ce([be(),Re(),fe("design:type",String)],vr.prototype,"vBC",void 0);ce([be(),Re(),fe("design:type",String)],vr.prototype,"pCOFINS",void 0);ce([be(),Re(),fe("design:type",String)],vr.prototype,"vCOFINS",void 0);var yr=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};ce([Re(),fe("design:type",String)],yr.prototype,"CST",void 0);ce([be(),Re(),fe("design:type",String)],yr.prototype,"qBCProd",void 0);ce([be(),Re(),fe("design:type",String)],yr.prototype,"vAliqProd",void 0);ce([be(),Re(),fe("design:type",String)],yr.prototype,"vCOFINS",void 0);var ii=class{static{a(this,"COFINSNT")}CST};ce([Re(),fe("design:type",String)],ii.prototype,"CST",void 0);var io=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ce([Re(),fe("design:type",String)],io.prototype,"CST",void 0);ce([be(),Re(),fe("design:type",String)],io.prototype,"vBC",void 0);ce([be(),Re(),fe("design:type",String)],io.prototype,"pCOFINS",void 0);ce([be(),Re(),fe("design:type",String)],io.prototype,"qBCProd",void 0);ce([be(),Re(),fe("design:type",String)],io.prototype,"vAliqProd",void 0);ce([be(),Re(),fe("design:type",String)],io.prototype,"vCOFINS",void 0);var Ao=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};ce([be(),ss(),ps(()=>vr),fe("design:type",typeof vr>"u"?Object:vr)],Ao.prototype,"COFINSAliq",void 0);ce([be(),ss(),ps(()=>yr),fe("design:type",typeof yr>"u"?Object:yr)],Ao.prototype,"COFINSQtde",void 0);ce([be(),ss(),ps(()=>ii),fe("design:type",typeof ii>"u"?Object:ii)],Ao.prototype,"COFINSNT",void 0);ce([be(),ss(),ps(()=>io),fe("design:type",typeof io>"u"?Object:io)],Ao.prototype,"COFINSOutr",void 0);var ao=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ce([be(),Re(),fe("design:type",String)],ao.prototype,"vBC",void 0);ce([be(),Re(),fe("design:type",String)],ao.prototype,"pCOFINS",void 0);ce([be(),Re(),fe("design:type",String)],ao.prototype,"qBCProd",void 0);ce([be(),Re(),fe("design:type",String)],ao.prototype,"vAliqProd",void 0);ce([be(),Re(),fe("design:type",String)],ao.prototype,"vCOFINS",void 0);import{IsOptional as pi,IsString as ci}from"class-validator";function ai(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(ai,"_ts_decorate");function si(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(si,"_ts_metadata");var _t=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};ai([pi(),ci(),si("design:type",String)],_t.prototype,"vBC",void 0);ai([pi(),ci(),si("design:type",String)],_t.prototype,"vAliq",void 0);ai([pi(),ci(),si("design:type",String)],_t.prototype,"vISSQN",void 0);ai([pi(),ci(),si("design:type",String)],_t.prototype,"cMunFG",void 0);ai([pi(),ci(),si("design:type",String)],_t.prototype,"cListServ",void 0);ai([pi(),ci(),si("design:type",String)],_t.prototype,"cSitTrib",void 0);import{IsOptional as Sr,IsString as Nr}from"class-validator";function gr(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(gr,"_ts_decorate");function hr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(hr,"_ts_metadata");var ct=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"vBCUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"vBCFCPUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"pFCPUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"pICMSUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"pICMSInter",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"pICMSInterPart",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"vFCPUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"vICMSUFDest",void 0);gr([Sr(),Nr(),hr("design:type",String)],ct.prototype,"vICMSUFRemet",void 0);function so(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(so,"_ts_decorate");function wo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(wo,"_ts_metadata");var Ve=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};so([Eo(),Vm(),wo("design:type",Number)],Ve.prototype,"vTotTrib",void 0);so([Eo(),br(),Cr(()=>ee),wo("design:type",typeof IICMS>"u"?Object:IICMS)],Ve.prototype,"ICMS",void 0);so([Eo(),br(),Cr(()=>Tt),wo("design:type",typeof IIPI>"u"?Object:IIPI)],Ve.prototype,"IPI",void 0);so([Eo(),br(),Cr(()=>_t),wo("design:type",typeof IISSQN>"u"?Object:IISSQN)],Ve.prototype,"ISSQN",void 0);so([Eo(),br(),Cr(()=>Oo),wo("design:type",typeof III>"u"?Object:III)],Ve.prototype,"II",void 0);so([Eo(),br(),Cr(()=>xo),wo("design:type",typeof IPIS>"u"?Object:IPIS)],Ve.prototype,"PIS",void 0);so([Eo(),br(),Cr(()=>no),wo("design:type",typeof IPISST>"u"?Object:IPISST)],Ve.prototype,"PISST",void 0);so([Eo(),br(),Cr(()=>Ao),wo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Ve.prototype,"COFINS",void 0);so([Eo(),br(),Cr(()=>ao),wo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Ve.prototype,"COFINSST",void 0);so([Eo(),br(),Cr(()=>ct),wo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Ve.prototype,"ICMSUFDest",void 0);Ve=so([H({properties:["ICMS","ISSQN"]})],Ve);import{IsOptional as Mm,IsString as rd,ValidateNested as Lm}from"class-validator";import{Type as Bm}from"class-transformer";function $p(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($p,"_ts_decorate");function Jp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Jp,"_ts_metadata");var cs=class{static{a(this,"IpiDevol")}vIPIDevol};$p([rd(),Jp("design:type",String)],cs.prototype,"vIPIDevol",void 0);var fi=class{static{a(this,"Devol")}pDevol;IPI};$p([rd(),Jp("design:type",String)],fi.prototype,"pDevol",void 0);$p([Mm(),Lm(),Bm(()=>cs),Jp("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],fi.prototype,"IPI",void 0);import{IsOptional as nd,IsString as id,ValidateNested as ad}from"class-validator";import{Type as sd}from"class-transformer";function fs(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(fs,"_ts_decorate");function ds(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ds,"_ts_metadata");var di=class{static{a(this,"Observation")}xCampo;xTexto};fs([id(),ds("design:type",String)],di.prototype,"xCampo",void 0);fs([id(),ds("design:type",String)],di.prototype,"xTexto",void 0);var ui=class{static{a(this,"ObsItem")}obsCont;obsFisco};fs([nd(),ad(),sd(()=>di),ds("design:type",typeof IObservation>"u"?Object:IObservation)],ui.prototype,"obsCont",void 0);fs([nd(),ad(),sd(()=>di),ds("design:type",typeof IObservation>"u"?Object:IObservation)],ui.prototype,"obsFisco",void 0);function hn(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(hn,"_ts_decorate");function Sn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Sn,"_ts_metadata");var li=class{static{a(this,"DetAttributes")}nItem};hn([pd(),Sn("design:type",String)],li.prototype,"nItem",void 0);var Po=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};hn([Um(),ki(),ea(()=>li),Sn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Po.prototype,"$",void 0);hn([ki(),ea(()=>P),Sn("design:type",typeof IProd>"u"?Object:IProd)],Po.prototype,"prod",void 0);hn([us(),ki(),ea(()=>Ve),Sn("design:type",typeof IImposto>"u"?Object:IImposto)],Po.prototype,"imposto",void 0);hn([us(),ki(),ea(()=>fi),Sn("design:type",typeof IDevol>"u"?Object:IDevol)],Po.prototype,"impostoDevol",void 0);hn([us(),pd(),Sn("design:type",String)],Po.prototype,"infAdProd",void 0);hn([us(),ki(),ea(()=>ui),Sn("design:type",typeof IObsItem>"u"?Object:IObsItem)],Po.prototype,"obsItem",void 0);import{IsDate as qm,IsOptional as ta,IsString as Hr}from"class-validator";function po(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(po,"_ts_decorate");function co(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(co,"_ts_metadata");var We=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};po([Hr(),co("design:type",String)],We.prototype,"CNPJ",void 0);po([Hr(),co("design:type",String)],We.prototype,"xOrgao",void 0);po([Hr(),co("design:type",String)],We.prototype,"matr",void 0);po([Hr(),co("design:type",String)],We.prototype,"xAgente",void 0);po([ta(),Hr(),co("design:type",String)],We.prototype,"fone",void 0);po([Hr(),co("design:type",String)],We.prototype,"UF",void 0);po([ta(),Hr(),co("design:type",String)],We.prototype,"nDAR",void 0);po([ta(),Or({format:"YYYY-MM-DD"}),co("design:type",typeof Date>"u"?Object:Date)],We.prototype,"dEmi",void 0);po([ta(),f({fixed:2}),co("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vDAR",void 0);po([Hr(),co("design:type",String)],We.prototype,"repEmi",void 0);po([ta(),qm(),co("design:type",typeof Date>"u"?Object:Date)],We.prototype,"dPag",void 0);import{IsString as $m}from"class-validator";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 Hm(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Hm,"_ts_metadata");var Nn=class{static{a(this,"InfSolicNFF")}xSolic};Qm([$m(),Hm("design:type",String)],Nn.prototype,"xSolic",void 0);function ue(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(ue,"_ts_decorate");function le(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(le,"_ts_metadata");var Cn=class{static{a(this,"InfNFeAttributes")}Id;versao};ue([ft(),fd(),le("design:type",String)],Cn.prototype,"Id",void 0);ue([ft(),fd(),le("design:type",String)],Cn.prototype,"versao",void 0);var Z=class{static{a(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};ue([Wp(),Gp(),Ie(()=>Cn),Fe(),le("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],Z.prototype,"$",void 0);ue([Wp(),Gp(),Fe(),Ie(()=>q),le("design:type",typeof IIde>"u"?Object:IIde)],Z.prototype,"ide",void 0);ue([Wp(),Gp(),Fe(),Ie(()=>Pe),le("design:type",typeof IEmit>"u"?Object:IEmit)],Z.prototype,"emit",void 0);ue([ft(),Fe(),Ie(()=>We),le("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],Z.prototype,"avulsa",void 0);ue([ft(),Fe(),Ie(()=>De),le("design:type",typeof IDest>"u"?Object:IDest)],Z.prototype,"dest",void 0);ue([ft(),Fe(),Ie(()=>K),le("design:type",typeof ILocal>"u"?Object:ILocal)],Z.prototype,"retirada",void 0);ue([ft(),Fe(),Ie(()=>K),le("design:type",typeof ILocal>"u"?Object:ILocal)],Z.prototype,"entrega",void 0);ue([ft(),Fe({each:!0}),cd(10),Ie(()=>No),le("design:type",Array)],Z.prototype,"autXML",void 0);ue([Fe({each:!0}),cd(990),Jm(1),Ie(()=>Po),le("design:type",Array)],Z.prototype,"det",void 0);ue([Fe(),Ie(()=>Go),le("design:type",typeof ITotal>"u"?Object:ITotal)],Z.prototype,"total",void 0);ue([Fe(),Ie(()=>ke),le("design:type",typeof ITransp>"u"?Object:ITransp)],Z.prototype,"transp",void 0);ue([ft(),Fe(),Ie(()=>Vr),le("design:type",typeof ICobr>"u"?Object:ICobr)],Z.prototype,"cobr",void 0);ue([Fe(),Ie(()=>Mr),le("design:type",typeof IPag>"u"?Object:IPag)],Z.prototype,"pag",void 0);ue([ft(),Fe(),Ie(()=>jr),le("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],Z.prototype,"infIntermed",void 0);ue([ft(),Fe(),Ie(()=>eo),le("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],Z.prototype,"infAdic",void 0);ue([ft(),Fe(),Ie(()=>$o),le("design:type",typeof IExporta>"u"?Object:IExporta)],Z.prototype,"exporta",void 0);ue([ft(),Fe(),Ie(()=>Jo),le("design:type",typeof ICompra>"u"?Object:ICompra)],Z.prototype,"compra",void 0);ue([ft(),Fe(),Ie(()=>et),le("design:type",typeof ICana>"u"?Object:ICana)],Z.prototype,"cana",void 0);ue([ft(),Fe(),Ie(()=>wt),le("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],Z.prototype,"infRespTec",void 0);ue([ft(),Fe(),Ie(()=>Nn),le("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],Z.prototype,"infSolicNFF",void 0);import{Type as md}from"class-transformer";function ls(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(ls,"_ts_decorate");function ms(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ms,"_ts_metadata");var mi=class{static{a(this,"NFeAttributes")}xmlns};ls([Xm(),Wm(),ms("design:type",String)],mi.prototype,"xmlns",void 0);var $r=class{static{a(this,"NFe")}$;infNFe;Signature};ls([ud(),dd(),md(()=>mi),ld(),ms("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],$r.prototype,"$",void 0);ls([ud(),dd(),md(()=>Z),ld(),ms("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],$r.prototype,"infNFe",void 0);ls([Gm(),ms("design:type",typeof Signature>"u"?Object:Signature)],$r.prototype,"Signature",void 0);function Vt(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(Vt,"_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}};Vt([w(li),M("design:type",Function),M("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),M("design:returntype",void 0)],ot.prototype,"det",null);Vt([w(P),M("design:type",Function),M("design:paramtypes",[typeof IProd>"u"?Object:IProd]),M("design:returntype",void 0)],ot.prototype,"prod",null);Vt([w(Ve),M("design:type",Function),M("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),M("design:returntype",void 0)],ot.prototype,"imposto",null);Vt([w(ee),M("design:type",Function),M("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),M("design:returntype",void 0)],ot.prototype,"icms",null);Vt([w(_t),M("design:type",Function),M("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),M("design:returntype",void 0)],ot.prototype,"issqn",null);Vt([w(Oo),M("design:type",Function),M("design:paramtypes",[typeof III>"u"?Object:III]),M("design:returntype",void 0)],ot.prototype,"ii",null);Vt([w(Tt),M("design:type",Function),M("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),M("design:returntype",void 0)],ot.prototype,"ipi",null);Vt([w(xo),M("design:type",Function),M("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),M("design:returntype",void 0)],ot.prototype,"pis",null);Vt([w(no),M("design:type",Function),M("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),M("design:returntype",void 0)],ot.prototype,"pisst",null);Vt([w(Ao),M("design:type",Function),M("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),M("design:returntype",void 0)],ot.prototype,"cofins",null);Vt([w(ao),M("design:type",Function),M("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),M("design:returntype",void 0)],ot.prototype,"cofinsst",null);Vt([w(ct),M("design:type",Function),M("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),M("design:returntype",void 0)],ot.prototype,"icmsufdest",null);function xe(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(xe,"_ts_decorate");function z(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(z,"_ts_metadata");var te=class{static{a(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return $r}root="NFe";$det=new aa(this);$total=new sa(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(uo,this),this}toObject(){if(this.$data!==void 0)return Y(this.$data);let e=this.errors();return e?it(new nt(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=tc(this.data,this.entity,{clearEmptyValues:!0}),Y(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:Y(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!==bt.Normal)return;switch(Va[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=bt.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=bt.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:o,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!o&&n===bt.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:o??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(uo,this)}collect(e){let o=Reflect.getMetadata(uo,e);if(!o)return;let n=this.errors();Reflect.defineMetadata(uo,(n??[]).concat(o),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new ia().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}}};xe([w(Cn),z("design:type",Function),z("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),z("design:returntype",void 0)],te.prototype,"infNFe",null);xe([w(q),z("design:type",Function),z("design:paramtypes",[typeof IIde>"u"?Object:IIde]),z("design:returntype",void 0)],te.prototype,"ide",null);xe([w(Pe),z("design:type",Function),z("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),z("design:returntype",void 0)],te.prototype,"emit",null);xe([w(We),z("design:type",Function),z("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),z("design:returntype",void 0)],te.prototype,"avulsa",null);xe([w(De),z("design:type",Function),z("design:paramtypes",[typeof IDest>"u"?Object:IDest]),z("design:returntype",void 0)],te.prototype,"dest",null);xe([w(K),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],te.prototype,"retirada",null);xe([w(K),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],te.prototype,"entrega",null);xe([w(No),z("design:type",Function),z("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),z("design:returntype",void 0)],te.prototype,"autXML",null);xe([w(Go),z("design:type",Function),z("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),z("design:returntype",void 0)],te.prototype,"total",null);xe([w(ke),z("design:type",Function),z("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),z("design:returntype",void 0)],te.prototype,"transp",null);xe([w(Vr),z("design:type",Function),z("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),z("design:returntype",void 0)],te.prototype,"cobr",null);xe([w(Mr),z("design:type",Function),z("design:paramtypes",[typeof IPag>"u"?Object:IPag]),z("design:returntype",void 0)],te.prototype,"pag",null);xe([w(jr),z("design:type",Function),z("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),z("design:returntype",void 0)],te.prototype,"infIntermed",null);xe([w(eo),z("design:type",Function),z("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),z("design:returntype",void 0)],te.prototype,"infAdic",null);xe([w($o),z("design:type",Function),z("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),z("design:returntype",void 0)],te.prototype,"exporta",null);xe([w(Jo),z("design:type",Function),z("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),z("design:returntype",void 0)],te.prototype,"compra",null);xe([w(et),z("design:type",Function),z("design:paramtypes",[typeof ICana>"u"?Object:ICana]),z("design:returntype",void 0)],te.prototype,"cana",null);xe([w(wt),z("design:type",Function),z("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),z("design:returntype",void 0)],te.prototype,"infRespTec",null);xe([w(Nn),z("design:type",Function),z("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),z("design:returntype",void 0)],te.prototype,"infSolicNFF",null);var vd=class extends En{static{a(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=te.create(this.toolkit);constructor(e,o="PL_009_V4"){super(e),this.certificate=e,this.schema=o}build(e){return e(this.builder),this}toObject(){return this.builder.toObject()}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return Ym.resolve(na,this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Y(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:Y(n.value)}};import{Type as Xp}from"class-transformer";import{Allow as Km,IsNotEmptyObject as Sd,IsObject as Nd,ValidateNested as Cd}from"class-validator";import{IsString as hd}from"class-validator";function yd(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(yd,"_ts_decorate");function gd(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(gd,"_ts_metadata");var vi=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};yd([hd(),gd("design:type",String)],vi.prototype,"qrCode",void 0);yd([hd(),gd("design:type",String)],vi.prototype,"urlChave",void 0);function vs(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(vs,"_ts_decorate");function ys(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ys,"_ts_metadata");var Rr=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};vs([Nd(),Sd(),Xp(()=>mi),Cd(),ys("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Rr.prototype,"$",void 0);vs([Nd(),Sd(),Xp(()=>Z),Cd(),ys("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Rr.prototype,"infNFe",void 0);vs([Xp(()=>vi),ys("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Rr.prototype,"infNFeSupl",void 0);vs([Km(),ys("design:type",typeof Signature>"u"?Object:Signature)],Rr.prototype,"Signature",void 0);var bd=class extends te{static{a(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return Rr}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===bt.Normal)return this.data.infNFe.ide.tpEmis=bt.OFFLINE,void 0}};export{bt as a,na as b,ia as c,aa as d,sa as e,Ft as f,La as g,_i as h,qa as i,Af as j,Ef as k,up as l,$r as m,ot as n,te as o,vd as p,Rr as q,bd as r};
|