nfets 0.0.94 → 0.0.96
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-VPC3GCBK.mjs → chunk-HNU77B3G.mjs} +2 -2
- package/dist/{chunk-POAIEFMR.mjs → chunk-IJON6HO5.mjs} +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +2 -2
- package/dist/nfe/index.d.cts +26 -26
- package/dist/nfe/index.d.ts +26 -26
- package/dist/nfe/index.mjs +1 -1
- package/package.json +1 -1
package/dist/nfe/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ Minimum version required to store current data is: `+s+`.
|
|
|
109
109
|
`}return u+=c+`
|
|
110
110
|
`,typeof t=="function"&&t(null,u),u}});var Tae=Q(Iae=>{"use strict";var x_e="\x1B[47m",w_e="\x1B[40m",MU="\x1B[37m",UU="\x1B[30m",ay="\x1B[0m",C_e=x_e+UU,E_e=w_e+MU,A_e=o(function(r,e,t){return{"00":ay+" "+r,"01":ay+e+"\u2584"+r,"02":ay+t+"\u2584"+r,10:ay+e+"\u2580"+r,11:" ",12:"\u2584",20:ay+t+"\u2580"+r,21:"\u2580",22:"\u2588"}},"createPalette"),Aae=o(function(r,e,t,n){let i=e+1;if(t>=i||n>=i||n<-1||t<-1)return"0";if(t>=e||n>=e||n<0||t<0)return"1";let s=n*e+t;return r[s]?"2":"1"},"mkCodePixel"),Nae=o(function(r,e,t,n){return Aae(r,e,t,n)+Aae(r,e,t,n+1)},"mkCode");Iae.render=function(r,e,t){let n=r.modules.size,i=r.modules.data,s=!!(e&&e.inverse),a=e&&e.inverse?E_e:C_e,l=A_e(a,s?UU:MU,s?MU:UU),p=ay+`
|
|
111
111
|
`+a,d=a;for(let g=-1;g<n+1;g+=2){for(let y=-1;y<n;y++)d+=l[Nae(i,n,y,g)];d+=l[Nae(i,n,n,g)]+p}return d+=ay,typeof t=="function"&&t(null,d),d}});var Dae=Q(Rae=>{"use strict";var N_e=Eae(),I_e=Tae();Rae.render=function(r,e,t){return e&&e.small?I_e.render(r,e,t):N_e.render(r,e,t)}});var HU=Q(Bae=>{"use strict";var T_e=mI();function Oae(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}o(Oae,"getColorAttrib");function qU(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}o(qU,"svgCmd");function R_e(r,e,t){let n="",i=0,s=!1,a=0;for(let u=0;u<r.length;u++){let c=Math.floor(u%e),l=Math.floor(u/e);!c&&!s&&(s=!0),r[u]?(a++,u>0&&c>0&&r[u-1]||(n+=s?qU("M",c+t,.5+l+t):qU("m",i,0),i=0,s=!1),c+1<e&&r[u+1]||(n+=qU("h",a),a=0)):i++}return n}o(R_e,"qrToPath");Bae.render=o(function(e,t,n){let i=T_e.getOptions(t),s=e.modules.size,a=e.modules.data,u=s+i.margin*2,c=i.color.light.a?"<path "+Oae(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Oae(i.color.dark,"stroke")+' d="'+R_e(a,s,i.margin)+'"/>',p='viewBox="0 0 '+u+" "+u+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+p+' shape-rendering="crispEdges">'+c+l+`</svg>
|
|
112
|
-
`;return typeof n=="function"&&n(null,g),g},"render")});var Pae=Q(r4=>{"use strict";var D_e=HU();r4.render=D_e.render;r4.renderToFile=o(function(e,t,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),u='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+r4.render(t,n);s.writeFile(e,u,i)},"renderToFile")});var _ae=Q(n4=>{"use strict";var zU=mI();function O_e(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}o(O_e,"clearCanvas");function B_e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o(B_e,"getCanvasElement");n4.render=o(function(e,t,n){let i=n,s=t;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),t||(s=B_e()),i=zU.getOptions(i);let a=zU.getImageWidth(e.modules.size,i),u=s.getContext("2d"),c=u.createImageData(a,a);return zU.qrToImageData(c.data,e,i),O_e(u,s,a),u.putImageData(c,0,0),s},"render");n4.renderToDataURL=o(function(e,t,n){let i=n;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),i||(i={});let s=n4.render(e,t,i),a=i.type||"image/png",u=i.rendererOpts||{};return s.toDataURL(a,u.quality)},"renderToDataURL")});var Fae=Q(gI=>{"use strict";var P_e=iU(),KU=CU(),Lae=_ae(),__e=HU();function GU(r,e,t,n,i){let s=[].slice.call(arguments,1),a=s.length,u=typeof s[a-1]=="function";if(!u&&!P_e())throw new Error("Callback required as last argument");if(u){if(a<2)throw new Error("Too few arguments provided");a===2?(i=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,l){try{let p=KU.create(t,n);c(r(p,e,n))}catch(p){l(p)}})}try{let c=KU.create(t,n);i(null,r(c,e,n))}catch(c){i(c)}}o(GU,"renderCanvas");gI.create=KU.create;gI.toCanvas=GU.bind(null,Lae.render);gI.toDataURL=GU.bind(null,Lae.renderToDataURL);gI.toString=GU.bind(null,function(r,e,t){return __e.render(r,t)})});var Mae=Q(f0=>{"use strict";var kae=iU(),XU=CU(),L_e=xae(),Vae=wae(),F_e=Dae(),jae=Pae();function vI(r,e,t){if(typeof r>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(kae())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}o(vI,"checkParams");function k_e(r){return r.slice((r.lastIndexOf(".")-1>>>0)+2).toLowerCase()}o(k_e,"getTypeFromFilename");function i4(r){switch(r){case"svg":return jae;case"txt":case"utf8":return Vae;case"png":case"image/png":default:return L_e}}o(i4,"getRendererFromType");function V_e(r){switch(r){case"svg":return jae;case"terminal":return F_e;case"utf8":default:return Vae}}o(V_e,"getStringRendererFromType");function yI(r,e,t){if(!t.cb)return new Promise(function(n,i){try{let s=XU.create(e,t.opts);return r(s,t.opts,function(a,u){return a?i(a):n(u)})}catch(s){i(s)}});try{let n=XU.create(e,t.opts);return r(n,t.opts,t.cb)}catch(n){t.cb(n)}}o(yI,"render");f0.create=XU.create;f0.toCanvas=Fae().toCanvas;f0.toString=o(function(e,t,n){let i=vI(e,t,n),s=i.opts?i.opts.type:void 0,a=V_e(s);return yI(a.render,e,i)},"toString");f0.toDataURL=o(function(e,t,n){let i=vI(e,t,n),s=i4(i.opts.type);return yI(s.renderToDataURL,e,i)},"toDataURL");f0.toBuffer=o(function(e,t,n){let i=vI(e,t,n),s=i4(i.opts.type);return yI(s.renderToBuffer,e,i)},"toBuffer");f0.toFile=o(function(e,t,n,i){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!kae())throw new Error("Too few arguments provided");let s=vI(t,n,i),a=s.opts.type||k_e(e),c=i4(a).renderToFile.bind(null,e);return yI(c,t,s)},"toFile");f0.toFileStream=o(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=vI(t,n,e.emit.bind(e,"error")),a=i4("png").renderToFileStream.bind(null,e);yI(a,t,i)},"toFileStream")});var qae=Q((upt,Uae)=>{"use strict";Uae.exports=Mae()});var M_e={};uT(M_e,{AccessKeyBuilder:()=>Dw,DanfceDefaultPdfDocument:()=>JU,DanfceReducedPdfDocument:()=>YU,DefaultDetBuilderAggregator:()=>b2,DefaultTotalBuilderAggregator:()=>x2,NFCeDto:()=>Tf,NFeDto:()=>wh,NfceAuthorizerPipeline:()=>wM,NfceCancelPipeline:()=>xM,NfceConsultStatusPipeline:()=>EM,NfceQrcode:()=>Wo,NfceRemoteTransmitter:()=>yo,NfceVoidRangePipeline:()=>CM,NfceXmlBuilder:()=>aI,NfceXmlBuilderPipeline:()=>nU,NfeAuthorizationResponsePipeline:()=>yM,NfeAuthorizerPipeline:()=>I2,NfeCancelPipeline:()=>N2,NfeConsultStatusPipeline:()=>T2,NfeDetXmlBuilder:()=>Is,NfeRemoteTransmitter:()=>vo,NfeVoidRangePipeline:()=>fx,NfeXmlBuilder:()=>Fn,NfeXmlBuilderPipeline:()=>sI,TpEmis:()=>ia,TpEvent:()=>Mf,schemas:()=>Rw});module.exports=lde(M_e);var ia=(function(r){return r.Normal="1",r.EPEC="4",r.SVCAN="6",r.SVCRS="7",r.OFFLINE="9",r})({});var Mf=(function(r){return r.Cancelamento="110111",r})({});var Po=require("path"),w0=require("fs");var N3=require("path"),A3=require("module"),cT=require("url");var fde=typeof jest<"u"||process.env.JEST_WORKER_ID!==void 0,wy,Cq=o(()=>{if(wy!==void 0)return wy;if(fde){wy=void 0;return}try{wy=new Function("try { return import.meta.url; } catch { return undefined; }")()}catch{wy=void 0}return wy},"getImportMetaUrl"),Eq=o(()=>{if(typeof require<"u")return require;let r=Cq();if(r)return(0,A3.createRequire)(r);let e=(0,cT.pathToFileURL)((0,N3.resolve)(process.cwd(),"package.json")).href;return(0,A3.createRequire)(e)},"getRequireFn"),Aq=o(()=>{if(typeof __filename<"u")return __filename;let r=Cq();return r?(0,cT.fileURLToPath)(r):(0,N3.resolve)(process.cwd())},"getCurrentFile");var Nq=o(()=>typeof process<"u"&&typeof process.versions<"u"&&"electron"in process.versions,"isElectron"),pde=o(()=>{if(!Nq())return null;try{let e=require("electron").app;if(e?.getAppPath&&typeof e.getAppPath=="function")return{getAppPath:e.getAppPath}}catch{}return null},"getElectronApp"),hde=o(()=>{if(!Nq())return null;let r=process;if(r.resourcesPath)return r.resourcesPath;let e=pde();if(e)try{let t=e.getAppPath();if(typeof t=="string")return(0,Po.dirname)(t.replace(/\.asar$/,""))}catch{}return null},"getElectronResourcesPath"),Cy=o((r,{onFound:e,onNotFound:t})=>{let n=hde();if(n){let l=(0,Po.resolve)(n,"node_modules","nfets",r);if((0,w0.existsSync)(l))return e(l);let p=(0,Po.resolve)(n,"app.asar.unpacked","node_modules","nfets",r);if((0,w0.existsSync)(p))return e(p)}let i=Aq(),s=i.includes(".asar")?process.cwd():i,a=(0,Po.resolve)(s,"../../../../"),u=(0,Po.resolve)(a,r);if((0,w0.existsSync)(u))return e(u);let c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,r);if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,"node_modules","nfets",r);if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,r.replace(/^build\//,"Release/"));if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}return t()},"search");var dde={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},Rw=o(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Cy("packages/nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Cy("nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Uf=dde;var Dw=class{static{o(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),s=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),u=e.serie.toString().padStart(3,"0"),c=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),p=(e.cNF??this.code()).toString().padStart(8,"0"),d=`${t}${n}${i}${s}${a}${u}${c}${l}${p}`;return`${d}${this.verifyingDigit(d)}`}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,s,a,u,c,l,p,d,g,y,v]=n;return{cUF:s,year:a,month:u,identification:c,mod:l,serie:p,nNF:d,tpEmis:g,cNF:y,vd:v}}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 t=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let a=0;a<8&&n>=0;a++){let u=parseInt(e[n]);i+=u*t[a],n--}let s=11-i%11;return s>9?0:s}};var Ey=9e15,Vh=1e9,I3="0123456789abcdef",pT="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",hT="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",T3={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Ey,maxE:Ey,crypto:!1},Dq,qf,Yt=!0,mT="[DecimalError] ",kh=mT+"Invalid argument: ",Oq=mT+"Precision limit exceeded",Bq=mT+"crypto unavailable",Pq="[object Decimal]",sa=Math.floor,Ji=Math.pow,mde=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,gde=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,vde=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,_q=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ac=1e7,Lt=7,yde=9007199254740991,Sde=pT.length-1,R3=hT.length-1,ze={toStringTag:Pq};ze.absoluteValue=ze.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),It(r)};ze.ceil=function(){return It(new this.constructor(this),this.e+1,2)};ze.clampedTo=ze.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(kh+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};ze.comparedTo=ze.cmp=function(r){var e,t,n,i,s=this,a=s.d,u=(r=new s.constructor(r)).d,c=s.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(s.e!==r.e)return s.e>r.e^c<0?1:-1;for(n=a.length,i=u.length,e=0,t=n<i?n:i;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1};ze.cosine=ze.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Lt,n.rounding=1,t=bde(n,jq(n,t)),n.precision=r,n.rounding=e,It(qf==2||qf==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};ze.cubeRoot=ze.cbrt=function(){var r,e,t,n,i,s,a,u,c,l,p=this,d=p.constructor;if(!p.isFinite()||p.isZero())return new d(p);for(Yt=!1,s=p.s*Ji(p.s*p,1/3),!s||Math.abs(s)==1/0?(t=Bs(p.d),r=p.e,(s=(r-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=Ji(t,1/3),r=sa((r+1)/3)-(r%3==(r<0?-1:2)),s==1/0?t="5e"+r:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new d(t),n.s=p.s):n=new d(s.toString()),a=(r=d.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(p),n=Sn(l.plus(p).times(u),l.plus(c),a+2,1),Bs(u.d).slice(0,a)===(t=Bs(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!i&&t=="4999"){if(!i&&(It(u,r+1,0),u.times(u).times(u).eq(p))){n=u;break}a+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(It(n,r+1,1),e=!n.times(n).times(n).eq(p));break}return Yt=!0,It(n,r,d.rounding,e)};ze.decimalPlaces=ze.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-sa(this.e/Lt))*Lt,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};ze.dividedBy=ze.div=function(r){return Sn(this,new this.constructor(r))};ze.dividedToIntegerBy=ze.divToInt=function(r){var e=this,t=e.constructor;return It(Sn(e,new t(r),0,1,1),t.precision,t.rounding)};ze.equals=ze.eq=function(r){return this.cmp(r)===0};ze.floor=function(){return It(new this.constructor(this),this.e+1,3)};ze.greaterThan=ze.gt=function(r){return this.cmp(r)>0};ze.greaterThanOrEqualTo=ze.gte=function(r){var e=this.cmp(r);return e==1||e===0};ze.hyperbolicCosine=ze.cosh=function(){var r,e,t,n,i,s=this,a=s.constructor,u=new a(1);if(!s.isFinite())return new a(s.s?1/0:NaN);if(s.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(s.e,s.sd())+4,a.rounding=1,i=s.d.length,i<32?(r=Math.ceil(i/3),e=(1/vT(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),s=Ay(a,1,s.times(e),new a(1),!0);for(var c,l=r,p=new a(8);l--;)c=s.times(s),s=u.minus(c.times(p.minus(c.times(p))));return It(s,a.precision=t,a.rounding=n,!0)};ze.hyperbolicSine=ze.sinh=function(){var r,e,t,n,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,t=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,n=i.d.length,n<3)i=Ay(s,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/vT(5,r)),i=Ay(s,2,i,i,!0);for(var a,u=new s(5),c=new s(16),l=new s(20);r--;)a=i.times(i),i=i.times(u.plus(a.times(c.times(a).plus(l))))}return s.precision=e,s.rounding=t,It(i,e,t,!0)};ze.hyperbolicTangent=ze.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Sn(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};ze.inverseCosine=ze.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,i=e.rounding;return t!==-1?t===0?r.isNeg()?fl(e,n,i):new e(0):new e(NaN):r.isZero()?fl(e,n+4,i).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=i,r.times(2))};ze.inverseHyperbolicCosine=ze.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Yt=!1,t=t.times(t).minus(1).sqrt().plus(t),Yt=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};ze.inverseHyperbolicSine=ze.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Yt=!1,t=t.times(t).plus(1).sqrt().plus(t),Yt=!0,n.precision=r,n.rounding=e,t.ln())};ze.inverseHyperbolicTangent=ze.atanh=function(){var r,e,t,n,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=s.precision,e=s.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?It(new s(i),r,e,!0):(s.precision=t=n-i.e,i=Sn(i.plus(1),new s(1).minus(i),t+r,1),s.precision=r+4,s.rounding=1,i=i.ln(),s.precision=r,s.rounding=e,i.times(.5))):new s(NaN)};ze.inverseSine=ze.asin=function(){var r,e,t,n,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),t=s.precision,n=s.rounding,e!==-1?e===0?(r=fl(s,t+4,n).times(.5),r.s=i.s,r):new s(NaN):(s.precision=t+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=n,i.times(2)))};ze.inverseTangent=ze.atan=function(){var r,e,t,n,i,s,a,u,c,l=this,p=l.constructor,d=p.precision,g=p.rounding;if(l.isFinite()){if(l.isZero())return new p(l);if(l.abs().eq(1)&&d+4<=R3)return a=fl(p,d+4,g).times(.25),a.s=l.s,a}else{if(!l.s)return new p(NaN);if(d+4<=R3)return a=fl(p,d+4,g).times(.5),a.s=l.s,a}for(p.precision=u=d+10,p.rounding=1,t=Math.min(28,u/Lt+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Yt=!1,e=Math.ceil(u/Lt),n=1,c=l.times(l),a=new p(l),i=l;r!==-1;)if(i=i.times(c),s=a.minus(i.div(n+=2)),i=i.times(c),a=s.plus(i.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===s.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Yt=!0,It(a,p.precision=d,p.rounding=g,!0)};ze.isFinite=function(){return!!this.d};ze.isInteger=ze.isInt=function(){return!!this.d&&sa(this.e/Lt)>this.d.length-2};ze.isNaN=function(){return!this.s};ze.isNegative=ze.isNeg=function(){return this.s<0};ze.isPositive=ze.isPos=function(){return this.s>0};ze.isZero=function(){return!!this.d&&this.d[0]===0};ze.lessThan=ze.lt=function(r){return this.cmp(r)<0};ze.lessThanOrEqualTo=ze.lte=function(r){return this.cmp(r)<1};ze.logarithm=ze.log=function(r){var e,t,n,i,s,a,u,c,l=this,p=l.constructor,d=p.precision,g=p.rounding,y=5;if(r==null)r=new p(10),e=!0;else{if(r=new p(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new p(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new p(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)s=!0;else{for(i=t[0];i%10===0;)i/=10;s=i!==1}if(Yt=!1,u=d+y,a=Fh(l,u),n=e?dT(p,u+10):Fh(r,u),c=Sn(a,n,u,1),Ow(c.d,i=d,g))do if(u+=10,a=Fh(l,u),n=e?dT(p,u+10):Fh(r,u),c=Sn(a,n,u,1),!s){+Bs(c.d).slice(i+1,i+15)+1==1e14&&(c=It(c,d+1,0));break}while(Ow(c.d,i+=10,g));return Yt=!0,It(c,d,g)};ze.minus=ze.sub=function(r){var e,t,n,i,s,a,u,c,l,p,d,g,y=this,v=y.constructor;if(r=new v(r),!y.d||!r.d)return!y.s||!r.s?r=new v(NaN):y.d?r.s=-r.s:r=new v(r.d||y.s!==r.s?y:NaN),r;if(y.s!=r.s)return r.s=-r.s,y.plus(r);if(l=y.d,g=r.d,u=v.precision,c=v.rounding,!l[0]||!g[0]){if(g[0])r.s=-r.s;else if(l[0])r=new v(y);else return new v(c===3?-0:0);return Yt?It(r,u,c):r}if(t=sa(r.e/Lt),p=sa(y.e/Lt),l=l.slice(),s=p-t,s){for(d=s<0,d?(e=l,s=-s,a=g.length):(e=g,t=p,a=l.length),n=Math.max(Math.ceil(u/Lt),a)+2,s>n&&(s=n,e.length=1),e.reverse(),n=s;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=g.length,d=n<a,d&&(a=n),n=0;n<a;n++)if(l[n]!=g[n]){d=l[n]<g[n];break}s=0}for(d&&(e=l,l=g,g=e,r.s=-r.s),a=l.length,n=g.length-a;n>0;--n)l[a++]=0;for(n=g.length;n>s;){if(l[--n]<g[n]){for(i=n;i&&l[--i]===0;)l[i]=ac-1;--l[i],l[n]+=ac}l[n]-=g[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=gT(l,t),Yt?It(r,u,c):r):new v(c===3?-0:0)};ze.modulo=ze.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?It(new n(t),n.precision,n.rounding):(Yt=!1,n.modulo==9?(e=Sn(t,r.abs(),0,3,1),e.s*=r.s):e=Sn(t,r,0,n.modulo,1),e=e.times(r),Yt=!0,t.minus(e))};ze.naturalExponential=ze.exp=function(){return D3(this)};ze.naturalLogarithm=ze.ln=function(){return Fh(this)};ze.negated=ze.neg=function(){var r=new this.constructor(this);return r.s=-r.s,It(r)};ze.plus=ze.add=function(r){var e,t,n,i,s,a,u,c,l,p,d=this,g=d.constructor;if(r=new g(r),!d.d||!r.d)return!d.s||!r.s?r=new g(NaN):d.d||(r=new g(r.d||d.s===r.s?d:NaN)),r;if(d.s!=r.s)return r.s=-r.s,d.minus(r);if(l=d.d,p=r.d,u=g.precision,c=g.rounding,!l[0]||!p[0])return p[0]||(r=new g(d)),Yt?It(r,u,c):r;if(s=sa(d.e/Lt),n=sa(r.e/Lt),l=l.slice(),i=s-n,i){for(i<0?(t=l,i=-i,a=p.length):(t=p,n=s,a=l.length),s=Math.ceil(u/Lt),a=s>a?s+1:a+1,i>a&&(i=a,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(a=l.length,i=p.length,a-i<0&&(i=a,t=p,p=l,l=t),e=0;i;)e=(l[--i]=l[i]+p[i]+e)/ac|0,l[i]%=ac;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=gT(l,n),Yt?It(r,u,c):r};ze.precision=ze.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(kh+r);return t.d?(e=Lq(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};ze.round=function(){var r=this,e=r.constructor;return It(new e(r),r.e+1,e.rounding)};ze.sine=ze.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Lt,n.rounding=1,t=wde(n,jq(n,t)),n.precision=r,n.rounding=e,It(qf>2?t.neg():t,r,e,!0)):new n(NaN)};ze.squareRoot=ze.sqrt=function(){var r,e,t,n,i,s,a=this,u=a.d,c=a.e,l=a.s,p=a.constructor;if(l!==1||!u||!u[0])return new p(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Yt=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=Bs(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=sa((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new p(e)):n=new p(l.toString()),t=(c=p.precision)+3;;)if(s=n,n=s.plus(Sn(a,s,t+2,1)).times(.5),Bs(s.d).slice(0,t)===(e=Bs(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(It(s,c+1,0),s.times(s).eq(a))){n=s;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(It(n,c+1,1),r=!n.times(n).eq(a));break}return Yt=!0,It(n,c,p.rounding,r)};ze.tangent=ze.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Sn(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,It(qf==2||qf==4?t.neg():t,r,e,!0)):new n(NaN)};ze.times=ze.mul=function(r){var e,t,n,i,s,a,u,c,l,p=this,d=p.constructor,g=p.d,y=(r=new d(r)).d;if(r.s*=p.s,!g||!g[0]||!y||!y[0])return new d(!r.s||g&&!g[0]&&!y||y&&!y[0]&&!g?NaN:!g||!y?r.s/0:r.s*0);for(t=sa(p.e/Lt)+sa(r.e/Lt),c=g.length,l=y.length,c<l&&(s=g,g=y,y=s,a=c,c=l,l=a),s=[],a=c+l,n=a;n--;)s.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=s[i]+y[n]*g[i-n-1]+e,s[i--]=u%ac|0,e=u/ac|0;s[i]=(s[i]+e)%ac|0}for(;!s[--a];)s.pop();return e?++t:s.shift(),r.d=s,r.e=gT(s,t),Yt?It(r,d.precision,d.rounding):r};ze.toBinary=function(r,e){return O3(this,2,r,e)};ze.toDecimalPlaces=ze.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Ja(r,0,Vh),e===void 0?e=n.rounding:Ja(e,0,8),It(t,r+t.e+1,e))};ze.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=pl(n,!0):(Ja(r,0,Vh),e===void 0?e=i.rounding:Ja(e,0,8),n=It(new i(n),r+1,e),t=pl(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};ze.toFixed=function(r,e){var t,n,i=this,s=i.constructor;return r===void 0?t=pl(i):(Ja(r,0,Vh),e===void 0?e=s.rounding:Ja(e,0,8),n=It(new s(i),r+i.e+1,e),t=pl(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};ze.toFraction=function(r){var e,t,n,i,s,a,u,c,l,p,d,g,y=this,v=y.d,x=y.constructor;if(!v)return new x(y);if(l=t=new x(1),n=c=new x(0),e=new x(n),s=e.e=Lq(v)-y.e-1,a=s%Lt,e.d[0]=Ji(10,a<0?Lt+a:a),r==null)r=s>0?e:l;else{if(u=new x(r),!u.isInt()||u.lt(l))throw Error(kh+u);r=u.gt(e)?s>0?e:l:u}for(Yt=!1,u=new x(Bs(v)),p=x.precision,x.precision=s=v.length*Lt*2;d=Sn(u,e,0,1,1),i=t.plus(d.times(n)),i.cmp(r)!=1;)t=n,n=i,i=l,l=c.plus(d.times(i)),c=i,i=e,e=u.minus(d.times(i)),u=i;return i=Sn(r.minus(t),n,0,1,1),c=c.plus(i.times(l)),t=t.plus(i.times(n)),c.s=l.s=y.s,g=Sn(l,n,s,1).minus(y).abs().cmp(Sn(c,t,s,1).minus(y).abs())<1?[l,n]:[c,t],x.precision=p,Yt=!0,g};ze.toHexadecimal=ze.toHex=function(r,e){return O3(this,16,r,e)};ze.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Ja(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Yt=!1,t=Sn(t,r,0,e,1).times(r),Yt=!0,It(t)):(r.s=t.s,t=r),t};ze.toNumber=function(){return+this};ze.toOctal=function(r,e){return O3(this,8,r,e)};ze.toPower=ze.pow=function(r){var e,t,n,i,s,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(Ji(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,s=c.rounding,r.eq(1))return It(u,n,s);if(e=sa(r.e/Lt),e>=r.d.length-1&&(t=l<0?-l:l)<=yde)return i=Fq(c,u,t,n),r.s<0?new c(1).div(i):It(i,n,s);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=Ji(+u,l),e=t==0||!isFinite(t)?sa(l*(Math.log("0."+Bs(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Yt=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),i=D3(r.times(Fh(u,n+t)),n),i.d&&(i=It(i,n+5,1),Ow(i.d,n,s)&&(e=n+10,i=It(D3(r.times(Fh(u,e+t)),e),e+5,1),+Bs(i.d).slice(n+1,n+15)+1==1e14&&(i=It(i,n+1,0)))),i.s=a,Yt=!0,c.rounding=s,It(i,n,s))};ze.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=pl(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Ja(r,1,Vh),e===void 0?e=i.rounding:Ja(e,0,8),n=It(new i(n),r,e),t=pl(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};ze.toSignificantDigits=ze.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Ja(r,1,Vh),e===void 0?e=n.rounding:Ja(e,0,8)),It(new n(t),r,e)};ze.toString=function(){var r=this,e=r.constructor,t=pl(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};ze.truncated=ze.trunc=function(){return It(new this.constructor(this),this.e+1,1)};ze.valueOf=ze.toJSON=function(){var r=this,e=r.constructor,t=pl(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function Bs(r){var e,t,n,i=r.length-1,s="",a=r[0];if(i>0){for(s+=a,e=1;e<i;e++)n=r[e]+"",t=Lt-n.length,t&&(s+=Lh(t)),s+=n;a=r[e],n=a+"",t=Lt-n.length,t&&(s+=Lh(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}o(Bs,"digitsToString");function Ja(r,e,t){if(r!==~~r||r<e||r>t)throw Error(kh+r)}o(Ja,"checkInt32");function Ow(r,e,t,n){var i,s,a,u;for(s=r[0];s>=10;s/=10)--e;return--e<0?(e+=Lt,i=0):(i=Math.ceil((e+1)/Lt),e%=Lt),s=Ji(10,Lt-e),u=r[i]%s|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==s||t>3&&u+1==s/2)&&(r[i+1]/s/100|0)==Ji(10,e-2)-1||(u==s/2||u==0)&&(r[i+1]/s/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(r[i+1]/s/1e3|0)==Ji(10,e-3)-1,a}o(Ow,"checkRoundingDigits");function lT(r,e,t){for(var n,i=[0],s,a=0,u=r.length;a<u;){for(s=i.length;s--;)i[s]*=e;for(i[0]+=I3.indexOf(r.charAt(a++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}o(lT,"convertBase");function bde(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/vT(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Ay(r,1,e.times(i),new r(1));for(var s=t;s--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(bde,"cosine");var Sn=(function(){function r(n,i,s){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*i+u,n[c]=a%s|0,u=a/s|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,i,s,a){var u,c;if(s!=a)c=s>a?1:-1;else for(u=c=0;u<s;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}o(e,"compare");function t(n,i,s,a){for(var u=0;s--;)n[s]-=u,u=n[s]<i[s]?1:0,n[s]=u*a+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,i,s,a,u,c){var l,p,d,g,y,v,x,S,A,D,C,E,I,B,q,R,z,K,H,J,ge=n.constructor,ve=n.s==i.s?1:-1,le=n.d,Z=i.d;if(!le||!le[0]||!Z||!Z[0])return new ge(!n.s||!i.s||(le?Z&&le[0]==Z[0]:!Z)?NaN:le&&le[0]==0||!Z?ve*0:ve/0);for(c?(y=1,p=n.e-i.e):(c=ac,y=Lt,p=sa(n.e/y)-sa(i.e/y)),H=Z.length,z=le.length,A=new ge(ve),D=A.d=[],d=0;Z[d]==(le[d]||0);d++);if(Z[d]>(le[d]||0)&&p--,s==null?(B=s=ge.precision,a=ge.rounding):u?B=s+(n.e-i.e)+1:B=s,B<0)D.push(1),v=!0;else{if(B=B/y+2|0,d=0,H==1){for(g=0,Z=Z[0],B++;(d<z||g)&&B--;d++)q=g*c+(le[d]||0),D[d]=q/Z|0,g=q%Z|0;v=g||d<z}else{for(g=c/(Z[0]+1)|0,g>1&&(Z=r(Z,g,c),le=r(le,g,c),H=Z.length,z=le.length),R=H,C=le.slice(0,H),E=C.length;E<H;)C[E++]=0;J=Z.slice(),J.unshift(0),K=Z[0],Z[1]>=c/2&&++K;do g=0,l=e(Z,C,H,E),l<0?(I=C[0],H!=E&&(I=I*c+(C[1]||0)),g=I/K|0,g>1?(g>=c&&(g=c-1),x=r(Z,g,c),S=x.length,E=C.length,l=e(x,C,S,E),l==1&&(g--,t(x,H<S?J:Z,S,c))):(g==0&&(l=g=1),x=Z.slice()),S=x.length,S<E&&x.unshift(0),t(C,x,E,c),l==-1&&(E=C.length,l=e(Z,C,H,E),l<1&&(g++,t(C,H<E?J:Z,E,c))),E=C.length):l===0&&(g++,C=[0]),D[d++]=g,l&&C[0]?C[E++]=le[R]||0:(C=[le[R]],E=1);while((R++<z||C[0]!==void 0)&&B--);v=C[0]!==void 0}D[0]||D.shift()}if(y==1)A.e=p,Dq=v;else{for(d=1,g=D[0];g>=10;g/=10)d++;A.e=d+p*y-1,It(A,u?s+A.e+1:s,a,v)}return A}})();function It(r,e,t,n){var i,s,a,u,c,l,p,d,g,y=r.constructor;e:if(e!=null){if(d=r.d,!d)return r;for(i=1,u=d[0];u>=10;u/=10)i++;if(s=e-i,s<0)s+=Lt,a=e,p=d[g=0],c=p/Ji(10,i-a-1)%10|0;else if(g=Math.ceil((s+1)/Lt),u=d.length,g>=u)if(n){for(;u++<=g;)d.push(0);p=c=0,i=1,s%=Lt,a=s-Lt+1}else break e;else{for(p=u=d[g],i=1;u>=10;u/=10)i++;s%=Lt,a=s-Lt+i,c=a<0?0:p/Ji(10,i-a-1)%10|0}if(n=n||e<0||d[g+1]!==void 0||(a<0?p:p%Ji(10,i-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(s>0?a>0?p/Ji(10,i-a):0:d[g-1])%10&1||t==(r.s<0?8:7)),e<1||!d[0])return d.length=0,l?(e-=r.e+1,d[0]=Ji(10,(Lt-e%Lt)%Lt),r.e=-e||0):d[0]=r.e=0,r;if(s==0?(d.length=g,u=1,g--):(d.length=g+1,u=Ji(10,Lt-s),d[g]=a>0?(p/Ji(10,i-a)%Ji(10,a)|0)*u:0),l)for(;;)if(g==0){for(s=1,a=d[0];a>=10;a/=10)s++;for(a=d[0]+=u,u=1;a>=10;a/=10)u++;s!=u&&(r.e++,d[0]==ac&&(d[0]=1));break}else{if(d[g]+=u,d[g]!=ac)break;d[g--]=0,u=1}for(s=d.length;d[--s]===0;)d.pop()}return Yt&&(r.e>y.maxE?(r.d=null,r.e=NaN):r.e<y.minE&&(r.e=0,r.d=[0])),r}o(It,"finalise");function pl(r,e,t){if(!r.isFinite())return Vq(r);var n,i=r.e,s=Bs(r.d),a=s.length;return e?(t&&(n=t-a)>0?s=s.charAt(0)+"."+s.slice(1)+Lh(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(r.e<0?"e":"e+")+r.e):i<0?(s="0."+Lh(-i-1)+s,t&&(n=t-a)>0&&(s+=Lh(n))):i>=a?(s+=Lh(i+1-a),t&&(n=t-i-1)>0&&(s=s+"."+Lh(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-a)>0&&(i+1===a&&(s+="."),s+=Lh(n))),s}o(pl,"finiteToString");function gT(r,e){var t=r[0];for(e*=Lt;t>=10;t/=10)e++;return e}o(gT,"getBase10Exponent");function dT(r,e,t){if(e>Sde)throw Yt=!0,t&&(r.precision=t),Error(Oq);return It(new r(pT),e,1,!0)}o(dT,"getLn10");function fl(r,e,t){if(e>R3)throw Error(Oq);return It(new r(hT),e,t,!0)}o(fl,"getPi");function Lq(r){var e=r.length-1,t=e*Lt+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(Lq,"getPrecision");function Lh(r){for(var e="";r--;)e+="0";return e}o(Lh,"getZeroString");function Fq(r,e,t,n){var i,s=new r(1),a=Math.ceil(n/Lt+4);for(Yt=!1;;){if(t%2&&(s=s.times(e),Tq(s.d,a)&&(i=!0)),t=sa(t/2),t===0){t=s.d.length-1,i&&s.d[t]===0&&++s.d[t];break}e=e.times(e),Tq(e.d,a)}return Yt=!0,s}o(Fq,"intPow");function Iq(r){return r.d[r.d.length-1]&1}o(Iq,"isOdd");function kq(r,e,t){for(var n,i,s=new r(e[0]),a=0;++a<e.length;){if(i=new r(e[a]),!i.s){s=i;break}n=s.cmp(i),(n===t||n===0&&s.s===t)&&(s=i)}return s}o(kq,"maxOrMin");function D3(r,e){var t,n,i,s,a,u,c,l=0,p=0,d=0,g=r.constructor,y=g.rounding,v=g.precision;if(!r.d||!r.d[0]||r.e>17)return new g(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Yt=!1,c=v):c=e,u=new g(.03125);r.e>-2;)r=r.times(u),d+=5;for(n=Math.log(Ji(2,d))/Math.LN10*2+5|0,c+=n,t=s=a=new g(1),g.precision=c;;){if(s=It(s.times(r),c,1),t=t.times(++p),u=a.plus(Sn(s,t,c,1)),Bs(u.d).slice(0,c)===Bs(a.d).slice(0,c)){for(i=d;i--;)a=It(a.times(a),c,1);if(e==null)if(l<3&&Ow(a.d,c-n,y,l))g.precision=c+=10,t=s=u=new g(1),p=0,l++;else return It(a,g.precision=v,y,Yt=!0);else return g.precision=v,a}a=u}}o(D3,"naturalExponential");function Fh(r,e){var t,n,i,s,a,u,c,l,p,d,g,y=1,v=10,x=r,S=x.d,A=x.constructor,D=A.rounding,C=A.precision;if(x.s<0||!S||!S[0]||!x.e&&S[0]==1&&S.length==1)return new A(S&&!S[0]?-1/0:x.s!=1?NaN:S?0:x);if(e==null?(Yt=!1,p=C):p=e,A.precision=p+=v,t=Bs(S),n=t.charAt(0),Math.abs(s=x.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)x=x.times(r),t=Bs(x.d),n=t.charAt(0),y++;s=x.e,n>1?(x=new A("0."+t),s++):x=new A(n+"."+t.slice(1))}else return l=dT(A,p+2,C).times(s+""),x=Fh(new A(n+"."+t.slice(1)),p-v).plus(l),A.precision=C,e==null?It(x,C,D,Yt=!0):x;for(d=x,c=a=x=Sn(x.minus(1),x.plus(1),p,1),g=It(x.times(x),p,1),i=3;;){if(a=It(a.times(g),p,1),l=c.plus(Sn(a,new A(i),p,1)),Bs(l.d).slice(0,p)===Bs(c.d).slice(0,p))if(c=c.times(2),s!==0&&(c=c.plus(dT(A,p+2,C).times(s+""))),c=Sn(c,new A(y),p,1),e==null)if(Ow(c.d,p-v,D,u))A.precision=p+=v,l=a=x=Sn(d.minus(1),d.plus(1),p,1),g=It(x.times(x),p,1),i=u=1;else return It(c,A.precision=C,D,Yt=!0);else return A.precision=C,c;c=l,i+=2}}o(Fh,"naturalLogarithm");function Vq(r){return String(r.s*r.s/0)}o(Vq,"nonFiniteToString");function fT(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%Lt,t<0&&(n+=Lt),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=Lt;n<i;)r.d.push(+e.slice(n,n+=Lt));e=e.slice(n),n=Lt-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),Yt&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(fT,"parseDecimal");function xde(r,e){var t,n,i,s,a,u,c,l,p;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),_q.test(e))return fT(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(gde.test(e))t=16,e=e.toLowerCase();else if(mde.test(e))t=2;else if(vde.test(e))t=8;else throw Error(kh+e);for(s=e.search(/p/i),s>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),s=e.indexOf("."),a=s>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,s=u-s,i=Fq(n,new n(t),s,s*2)),l=lT(e,t,ac),p=l.length-1,s=p;l[s]===0;--s)l.pop();return s<0?new n(r.s*0):(r.e=gT(l,p),r.d=l,Yt=!1,a&&(r=Sn(r,i,u*4)),c&&(r=r.times(Math.abs(c)<54?Ji(2,c):Ny.pow(2,c))),Yt=!0,r)}o(xde,"parseOther");function wde(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Ay(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/vT(5,t)),e=Ay(r,2,e,e);for(var i,s=new r(5),a=new r(16),u=new r(20);t--;)i=e.times(e),e=e.times(s.plus(i.times(a.times(i).minus(u))));return e}o(wde,"sine");function Ay(r,e,t,n,i){var s,a,u,c,l=1,p=r.precision,d=Math.ceil(p/Lt);for(Yt=!1,c=t.times(t),u=new r(n);;){if(a=Sn(u.times(c),new r(e++*e++),p,1),u=i?n.plus(a):n.minus(a),n=Sn(a.times(c),new r(e++*e++),p,1),a=u.plus(n),a.d[d]!==void 0){for(s=d;a.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=a,a=s,l++}return Yt=!0,a.d.length=d+1,a}o(Ay,"taylorSeries");function vT(r,e){for(var t=r;--e;)t*=r;return t}o(vT,"tinyPow");function jq(r,e){var t,n=e.s<0,i=fl(r,r.precision,1),s=i.times(.5);if(e=e.abs(),e.lte(s))return qf=n?4:1,e;if(t=e.divToInt(i),t.isZero())qf=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(s))return qf=Iq(t)?n?2:3:n?4:1,e;qf=Iq(t)?n?1:4:n?3:2}return e.minus(i).abs()}o(jq,"toLessThanHalfPi");function O3(r,e,t,n){var i,s,a,u,c,l,p,d,g,y=r.constructor,v=t!==void 0;if(v?(Ja(t,1,Vh),n===void 0?n=y.rounding:Ja(n,0,8)):(t=y.precision,n=y.rounding),!r.isFinite())p=Vq(r);else{for(p=pl(r),a=p.indexOf("."),v?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,a>=0&&(p=p.replace(".",""),g=new y(1),g.e=p.length-a,g.d=lT(pl(g),10,i),g.e=g.d.length),d=lT(p,10,i),s=c=d.length;d[--c]==0;)d.pop();if(!d[0])p=v?"0p+0":"0";else{if(a<0?s--:(r=new y(r),r.d=d,r.e=s,r=Sn(r,g,t,n,0,i),d=r.d,s=r.e,l=Dq),a=d[t],u=i/2,l=l||d[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&d[t-1]&1||n===(r.s<0?8:7)),d.length=t,l)for(;++d[--t]>i-1;)d[t]=0,t||(++s,d.unshift(1));for(c=d.length;!d[c-1];--c);for(a=0,p="";a<c;a++)p+=I3.charAt(d[a]);if(v){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)p+="0";for(d=lT(p,i,e),c=d.length;!d[c-1];--c);for(a=1,p="1.";a<c;a++)p+=I3.charAt(d[a])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}p=(e==16?"0x":e==2?"0b":e==8?"0o":"")+p}return r.s<0?"-"+p:p}o(O3,"toStringBinary");function Tq(r,e){if(r.length>e)return r.length=e,!0}o(Tq,"truncate");function Cde(r){return new this(r).abs()}o(Cde,"abs");function Ede(r){return new this(r).acos()}o(Ede,"acos");function Ade(r){return new this(r).acosh()}o(Ade,"acosh");function Nde(r,e){return new this(r).plus(e)}o(Nde,"add");function Ide(r){return new this(r).asin()}o(Ide,"asin");function Tde(r){return new this(r).asinh()}o(Tde,"asinh");function Rde(r){return new this(r).atan()}o(Rde,"atan");function Dde(r){return new this(r).atanh()}o(Dde,"atanh");function Ode(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,s=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=fl(this,s,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?fl(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=fl(this,s,1).times(.5),t.s=r.s):e.s<0?(this.precision=s,this.rounding=1,t=this.atan(Sn(r,e,s,1)),e=fl(this,s,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Sn(r,e,s,1)),t}o(Ode,"atan2");function Bde(r){return new this(r).cbrt()}o(Bde,"cbrt");function Pde(r){return It(r=new this(r),r.e+1,2)}o(Pde,"ceil");function _de(r,e,t){return new this(r).clamp(e,t)}o(_de,"clamp");function Lde(r){if(!r||typeof r!="object")throw Error(mT+"Object expected");var e,t,n,i=r.defaults===!0,s=["precision",1,Vh,"rounding",0,8,"toExpNeg",-Ey,0,"toExpPos",0,Ey,"maxE",0,Ey,"minE",-Ey,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(t=s[e],i&&(this[t]=T3[t]),(n=r[t])!==void 0)if(sa(n)===n&&n>=s[e+1]&&n<=s[e+2])this[t]=n;else throw Error(kh+t+": "+n);if(t="crypto",i&&(this[t]=T3[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Bq);else this[t]=!1;else throw Error(kh+t+": "+n);return this}o(Lde,"config");function Fde(r){return new this(r).cos()}o(Fde,"cos");function kde(r){return new this(r).cosh()}o(kde,"cosh");function Mq(r){var e,t,n;function i(s){var a,u,c,l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,Rq(s)){l.s=s.s,Yt?!s.d||s.e>i.maxE?(l.e=NaN,l.d=null):s.e<i.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(a=0,u=s;u>=10;u/=10)a++;Yt?a>i.maxE?(l.e=NaN,l.d=null):a<i.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[s]):(l.e=a,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return fT(l,s.toString())}if(c==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),_q.test(s)?fT(l,s):xde(l,s);if(c==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,fT(l,s.toString());throw Error(kh+s)}if(o(i,"Decimal"),i.prototype=ze,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Lde,i.clone=Mq,i.isDecimal=Rq,i.abs=Cde,i.acos=Ede,i.acosh=Ade,i.add=Nde,i.asin=Ide,i.asinh=Tde,i.atan=Rde,i.atanh=Dde,i.atan2=Ode,i.cbrt=Bde,i.ceil=Pde,i.clamp=_de,i.cos=Fde,i.cosh=kde,i.div=Vde,i.exp=jde,i.floor=Mde,i.hypot=Ude,i.ln=qde,i.log=Hde,i.log10=Kde,i.log2=zde,i.max=Gde,i.min=Xde,i.mod=Wde,i.mul=Jde,i.pow=Yde,i.random=Qde,i.round=$de,i.sign=Zde,i.sin=eme,i.sinh=tme,i.sqrt=rme,i.sub=nme,i.sum=ime,i.tan=sme,i.tanh=ame,i.trunc=ome,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}o(Mq,"clone");function Vde(r,e){return new this(r).div(e)}o(Vde,"div");function jde(r){return new this(r).exp()}o(jde,"exp");function Mde(r){return It(r=new this(r),r.e+1,3)}o(Mde,"floor");function Ude(){var r,e,t=new this(0);for(Yt=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Yt=!0,new this(1/0);t=e}return Yt=!0,t.sqrt()}o(Ude,"hypot");function Rq(r){return r instanceof Ny||r&&r.toStringTag===Pq||!1}o(Rq,"isDecimalInstance");function qde(r){return new this(r).ln()}o(qde,"ln");function Hde(r,e){return new this(r).log(e)}o(Hde,"log");function zde(r){return new this(r).log(2)}o(zde,"log2");function Kde(r){return new this(r).log(10)}o(Kde,"log10");function Gde(){return kq(this,arguments,-1)}o(Gde,"max");function Xde(){return kq(this,arguments,1)}o(Xde,"min");function Wde(r,e){return new this(r).mod(e)}o(Wde,"mod");function Jde(r,e){return new this(r).mul(e)}o(Jde,"mul");function Yde(r,e){return new this(r).pow(e)}o(Yde,"pow");function Qde(r){var e,t,n,i,s=0,a=new this(1),u=[];if(r===void 0?r=this.precision:Ja(r,1,Vh),n=Math.ceil(r/Lt),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));s<n;)i=e[s],i>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);s<n;)i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((e[s+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=n/4}else throw Error(Bq);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],r%=Lt,n&&r&&(i=Ji(10,Lt-r),u[s]=(n/i|0)*i);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=Lt)u.shift();for(n=1,i=u[0];i>=10;i/=10)n++;n<Lt&&(t-=Lt-n)}return a.e=t,a.d=u,a}o(Qde,"random");function $de(r){return It(r=new this(r),r.e+1,this.rounding)}o($de,"round");function Zde(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(Zde,"sign");function eme(r){return new this(r).sin()}o(eme,"sin");function tme(r){return new this(r).sinh()}o(tme,"sinh");function rme(r){return new this(r).sqrt()}o(rme,"sqrt");function nme(r,e){return new this(r).sub(e)}o(nme,"sub");function ime(){var r=0,e=arguments,t=new this(e[r]);for(Yt=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Yt=!0,It(t,this.precision,this.rounding)}o(ime,"sum");function sme(r){return new this(r).tan()}o(sme,"tan");function ame(r){return new this(r).tanh()}o(ame,"tanh");function ome(r){return It(r=new this(r),r.e+1,1)}o(ome,"trunc");ze[Symbol.for("nodejs.util.inspect.custom")]=ze.toString;ze[Symbol.toStringTag]="Decimal";var Ny=ze.constructor=Mq(T3);pT=new Ny(pT);hT=new Ny(hT);var en=class r extends Ny{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};var Uq=lr(require("pdfkit"),1);var yT=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new Uq.default(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:i,...s}=t??{};return n||i?(this.doc.text(e,n,i,s),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,i){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,i),this):(this.doc.image(e,t),this)}rect(e,t,n,i){return this.doc.rect(e,t,n,i),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,i;typeof e=="function"?(n={},i=[e,...t]):(n=e??{},i=t),n.columns??=1;let s=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),p=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let d=[];for(let g=0;g<n.columns;g++){let y=n.size[g]/12;d[g]=p*y}for(let g=0,y=u;g<n.columns;g++){let v=g===n.columns-1,x=d[g];if(v&&n.columns>1){let D=l-a-y;D>0&&Math.abs(D-x)>.01&&(x=D)}let S={y:s,x:y,width:x};i[g](S),y+=x,c>0&&!v&&(y+=c)}return this}};var ST=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var UL=lr(require("fs"),1),m7=lr(require("path"),1),Jw=lr(require("crypto"),1),Qh=lr(n7(),1);var br=class extends Error{static{o(this,"NFeTsError")}};var LL=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},$T=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},Xr=o(r=>new LL(r),"left"),gr=o(r=>r===void 0?new $T(void 0):new $T(r),"right");var zve=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),Xf=o(r=>typeof r=="string"?Xr(new br(r)):r instanceof Error?Xr(new br(r.message,{cause:r.cause})):zve(r)?Xr(new br(r.message)):Xr(new br("unexpected error")),"leftFromError");var ZT=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var FL="http://www.w3.org/2000/09/xmldsig#",i7="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",kL=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Cl=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),VL=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var Xw={includeComments:!1,exclusive:!0};var B0=o(r=>{throw new br("Didn't expect to get here")},"unreachable");var qy=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Cl.SHA1,i=Xw){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=i}assemble(e,t,n){let i=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:FL},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:i}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:i7}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:FL},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Cl.SHA256:return VL.SHA256;case Cl.SHA1:return VL.SHA1;default:return B0(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Cl.SHA256:return kL.RSA_SHA256;case Cl.SHA1:return kL.RSA_SHA1;default:return B0(this.algorithm)}}};var eR=class extends qy{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n;if(!e[i])return Xr(new br(`Node ${String(i)} not found`));let u=await this.toolkit.build(this.ns(e,i),{headless:!0,rootName:String(i),renderOpts:{pretty:!1}}),c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let p=e;return p.Signature=this.assemble(c,l.value,a),gr(p)}ns(e,t){let n=e.$?.xmlns,{$:i,...s}=e[t],{xmlns:a,...u}=i??{};return{$:{xmlns:n,...u},...s}}};var tR=class extends qy{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n,u=this.toolkit.getNode(e,i);if(!u)return Xr(new br(`Node ${i} not found`));let c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let p=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return gr(this.toolkit.appendNode(e,p))}};var mLe=require("reflect-metadata"),a7=require("class-validator");var lLe=require("reflect-metadata");var jL="__SkipValidation__";var s7=require("class-transformer");var rR=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&rR(t)},"clearEmptyValues"),nR=o((r,e,t={})=>{let n=(0,s7.plainToInstance)(e,r);return t.clearEmptyValues&&rR(n),n},"plainToInstance");var bu="__ValidateErrors__",o7=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(o7(n.children,e?`${e}.${n.property}`:n.property));let i=Object.values(n.constraints??{}).map(s=>e?`${e}.${s}`:s).join(", ");return i?t.concat(i):t},[]),"mapConstraintsToErrors"),Ht=o(r=>(e,t,n)=>{let i=n.value;n.value=function(...s){let a=Reflect.getMetadata(jL,this.constructor);if(Reflect.getMetadata(jL,this.constructor.prototype,t.toString())===!0||a===!0)return i?.apply(this,s);let[c,...l]=s,p=nR(c,r),d=(0,a7.validateSync)(p,{whitelist:!0});if(rR(p),d.length){let g=Reflect.getMetadata(bu,this)??[];Reflect.defineMetadata(bu,g.concat(o7(d,i?.name)),this)}return i?.apply(this,[p,...l])}},"Validates");var bLe=require("reflect-metadata");var u7=require("class-validator");var c7=o(r=>(e,t)=>{(0,u7.registerDecorator)({name:"isDecimal",target:e.constructor,propertyName:t,options:r,validator:{validate(n){return n instanceof en?!0:typeof n=="string"||typeof n=="number"||typeof n=="bigint"},defaultMessage(n){return`${n.property} is not a valid Decimal value`}}})},"IsDecimal");var ELe=require("reflect-metadata"),ML=require("class-validator");var Hy=Symbol("choice"),zy=o(r=>r==null||r==="","isEmpty"),on=o(r=>e=>{let{properties:t,required:n=!1,...i}=r,s=Reflect.getMetadata(Hy,e)??[],a={properties:t,required:n};s.push(a),Reflect.defineMetadata(Hy,s,e);for(let u of t)(0,ML.registerDecorator)({name:"choice",target:e,propertyName:u,options:i,validator:{validate(c,l){let p=l.object,d=l.property,g=Reflect.getMetadata(Hy,e);if(!g)return!0;let y=g.find(v=>v.properties.includes(d));if(!y||zy(c))return!0;for(let v of y.properties){if(v===d)continue;let x=p[v];if(!zy(x))return!1}for(let v of g)if(v!==y)for(let x of v.properties){let S=p[x];if(!zy(S))return!1}return!0},defaultMessage(c){let l=Reflect.getMetadata(Hy,e);if(!l)return`${c.property} validation error`;let p=l.find(g=>g.properties.includes(c.property));if(!p)return`${c.property} validation error`;let d=c.object;for(let g of p.properties){let y=d[g];if(!zy(y)&&g!==c.property)return`${c.property} cannot be set because ${g} is already set. Only one property from this choice group is allowed.`}for(let g of l)if(g!==p)for(let y of g.properties){let v=d[y];if(!zy(v))return`${c.property} cannot be set because ${y} from a different choice group is already set.`}return`${c.property} validation error`}}});if(n)for(let u of t)(0,ML.registerDecorator)({name:"choiceGroupRequired",target:e,propertyName:u,options:{...i,always:!0},validator:{validate(c,l){let p=l.object,d=Reflect.getMetadata(Hy,e);if(!d)return!0;let g=d.find(y=>y.properties.includes(l.property));if(!g?.required)return!0;for(let y of g.properties){let v=p[y];if(!zy(v))return!0}return l.property!==g.properties[0]},defaultMessage(c){let l=Reflect.getMetadata(Hy,e);if(!l)return"At least one property from a choice group must be provided";let p=l.find(d=>d.properties.includes(c.property));return p?`You must provide a value for one of the following properties: ${p.properties.join(", ")}`:"At least one property from a choice group must be provided"}}})},"Choice");var ILe=require("reflect-metadata");var l7=require("class-transformer");var ne=o(({fixed:r,...e}={fixed:2})=>(t,n)=>{c7(e)(t,n),(0,l7.Transform)(({value:i})=>en.newOrUndefined(i)?.toFixed(r))(t,n)},"TransformDecimal");var h7=require("class-transformer"),d7=require("class-validator");var iR=lr(require("dayjs"),1),f7=lr(require("dayjs/plugin/utc"),1),p7=lr(require("dayjs/plugin/timezone"),1);iR.default.extend(f7.default);iR.default.extend(p7.default);var Ww=iR.default;var Yh=o((r={})=>(e,t)=>{(0,h7.Transform)(({value:n})=>{let i=n instanceof Date?n.toISOString():n;return i?Ww(i).tz("America/Sao_Paulo").format(r.format):void 0})(e,t),(0,d7.IsDateString)()(e,t)},"TransformDateString");var Ky=class{static{o(this,"ASN1")}extractCertificateInfo(e){let n=e.subject.split(`
|
|
112
|
+
`;return typeof n=="function"&&n(null,g),g},"render")});var Pae=Q(r4=>{"use strict";var D_e=HU();r4.render=D_e.render;r4.renderToFile=o(function(e,t,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),u='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+r4.render(t,n);s.writeFile(e,u,i)},"renderToFile")});var _ae=Q(n4=>{"use strict";var zU=mI();function O_e(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}o(O_e,"clearCanvas");function B_e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o(B_e,"getCanvasElement");n4.render=o(function(e,t,n){let i=n,s=t;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),t||(s=B_e()),i=zU.getOptions(i);let a=zU.getImageWidth(e.modules.size,i),u=s.getContext("2d"),c=u.createImageData(a,a);return zU.qrToImageData(c.data,e,i),O_e(u,s,a),u.putImageData(c,0,0),s},"render");n4.renderToDataURL=o(function(e,t,n){let i=n;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),i||(i={});let s=n4.render(e,t,i),a=i.type||"image/png",u=i.rendererOpts||{};return s.toDataURL(a,u.quality)},"renderToDataURL")});var Fae=Q(gI=>{"use strict";var P_e=iU(),KU=CU(),Lae=_ae(),__e=HU();function GU(r,e,t,n,i){let s=[].slice.call(arguments,1),a=s.length,u=typeof s[a-1]=="function";if(!u&&!P_e())throw new Error("Callback required as last argument");if(u){if(a<2)throw new Error("Too few arguments provided");a===2?(i=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,l){try{let p=KU.create(t,n);c(r(p,e,n))}catch(p){l(p)}})}try{let c=KU.create(t,n);i(null,r(c,e,n))}catch(c){i(c)}}o(GU,"renderCanvas");gI.create=KU.create;gI.toCanvas=GU.bind(null,Lae.render);gI.toDataURL=GU.bind(null,Lae.renderToDataURL);gI.toString=GU.bind(null,function(r,e,t){return __e.render(r,t)})});var Mae=Q(f0=>{"use strict";var kae=iU(),XU=CU(),L_e=xae(),Vae=wae(),F_e=Dae(),jae=Pae();function vI(r,e,t){if(typeof r>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(kae())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}o(vI,"checkParams");function k_e(r){return r.slice((r.lastIndexOf(".")-1>>>0)+2).toLowerCase()}o(k_e,"getTypeFromFilename");function i4(r){switch(r){case"svg":return jae;case"txt":case"utf8":return Vae;case"png":case"image/png":default:return L_e}}o(i4,"getRendererFromType");function V_e(r){switch(r){case"svg":return jae;case"terminal":return F_e;case"utf8":default:return Vae}}o(V_e,"getStringRendererFromType");function yI(r,e,t){if(!t.cb)return new Promise(function(n,i){try{let s=XU.create(e,t.opts);return r(s,t.opts,function(a,u){return a?i(a):n(u)})}catch(s){i(s)}});try{let n=XU.create(e,t.opts);return r(n,t.opts,t.cb)}catch(n){t.cb(n)}}o(yI,"render");f0.create=XU.create;f0.toCanvas=Fae().toCanvas;f0.toString=o(function(e,t,n){let i=vI(e,t,n),s=i.opts?i.opts.type:void 0,a=V_e(s);return yI(a.render,e,i)},"toString");f0.toDataURL=o(function(e,t,n){let i=vI(e,t,n),s=i4(i.opts.type);return yI(s.renderToDataURL,e,i)},"toDataURL");f0.toBuffer=o(function(e,t,n){let i=vI(e,t,n),s=i4(i.opts.type);return yI(s.renderToBuffer,e,i)},"toBuffer");f0.toFile=o(function(e,t,n,i){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!kae())throw new Error("Too few arguments provided");let s=vI(t,n,i),a=s.opts.type||k_e(e),c=i4(a).renderToFile.bind(null,e);return yI(c,t,s)},"toFile");f0.toFileStream=o(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=vI(t,n,e.emit.bind(e,"error")),a=i4("png").renderToFileStream.bind(null,e);yI(a,t,i)},"toFileStream")});var qae=Q((upt,Uae)=>{"use strict";Uae.exports=Mae()});var M_e={};uT(M_e,{AccessKeyBuilder:()=>Dw,DanfceDefaultPdfDocument:()=>JU,DanfceReducedPdfDocument:()=>YU,DefaultDetBuilderAggregator:()=>b2,DefaultTotalBuilderAggregator:()=>x2,NFCeDto:()=>Tf,NFeDto:()=>wh,NfceAuthorizerPipeline:()=>wM,NfceCancelPipeline:()=>xM,NfceConsultStatusPipeline:()=>EM,NfceQrcode:()=>Wo,NfceRemoteTransmitter:()=>yo,NfceVoidRangePipeline:()=>CM,NfceXmlBuilder:()=>aI,NfceXmlBuilderPipeline:()=>nU,NfeAuthorizationResponsePipeline:()=>yM,NfeAuthorizerPipeline:()=>I2,NfeCancelPipeline:()=>N2,NfeConsultStatusPipeline:()=>T2,NfeDetXmlBuilder:()=>Is,NfeRemoteTransmitter:()=>vo,NfeVoidRangePipeline:()=>fx,NfeXmlBuilder:()=>Fn,NfeXmlBuilderPipeline:()=>sI,TpEmis:()=>ia,TpEvent:()=>Mf,schemas:()=>Rw});module.exports=lde(M_e);var ia=(function(r){return r.Normal="1",r.EPEC="4",r.SVCAN="6",r.SVCRS="7",r.OFFLINE="9",r})({});var Mf=(function(r){return r.Cancelamento="110111",r})({});var Po=require("path"),w0=require("fs");var N3=require("path"),A3=require("module"),cT=require("url");var fde=typeof jest<"u"||process.env.JEST_WORKER_ID!==void 0,wy,Cq=o(()=>{if(wy!==void 0)return wy;if(fde){wy=void 0;return}try{wy=new Function("try { return import.meta.url; } catch { return undefined; }")()}catch{wy=void 0}return wy},"getImportMetaUrl"),Eq=o(()=>{if(typeof require<"u")return require;let r=Cq();if(r)return(0,A3.createRequire)(r);let e=(0,cT.pathToFileURL)((0,N3.resolve)(process.cwd(),"package.json")).href;return(0,A3.createRequire)(e)},"getRequireFn"),Aq=o(()=>{if(typeof __filename<"u")return __filename;let r=Cq();return r?(0,cT.fileURLToPath)(r):(0,N3.resolve)(process.cwd())},"getCurrentFile");var Nq=o(()=>typeof process<"u"&&typeof process.versions<"u"&&"electron"in process.versions,"isElectron"),pde=o(()=>{if(!Nq())return null;try{let e=require("electron").app;if(e?.getAppPath&&typeof e.getAppPath=="function")return{getAppPath:e.getAppPath}}catch{}return null},"getElectronApp"),hde=o(()=>{if(!Nq())return null;let r=process;if(r.resourcesPath)return r.resourcesPath;let e=pde();if(e)try{let t=e.getAppPath();if(typeof t=="string")return(0,Po.dirname)(t.replace(/\.asar$/,""))}catch{}return null},"getElectronResourcesPath"),Cy=o((r,{onFound:e,onNotFound:t})=>{let n=hde();if(n){let l=(0,Po.resolve)(n,"node_modules","nfets",r);if((0,w0.existsSync)(l))return e(l);let p=(0,Po.resolve)(n,"app.asar.unpacked","node_modules","nfets",r);if((0,w0.existsSync)(p))return e(p)}let i=Aq(),s=i.includes(".asar")?process.cwd():i,a=(0,Po.resolve)(s,"../../../../"),u=(0,Po.resolve)(a,r);if((0,w0.existsSync)(u))return e(u);let c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,r);if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,"node_modules","nfets",r);if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}c=s;for(let l=0;l<5;l++){let p=(0,Po.resolve)(c,r.replace(/^build\//,"Release/"));if((0,w0.existsSync)(p))return e(p);let d=(0,Po.dirname)(c);if(d===c)break;c=d}return t()},"search");var dde={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},Rw=o(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Cy("packages/nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Cy("nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Uf=dde;var Dw=class{static{o(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),s=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),u=e.serie.toString().padStart(3,"0"),c=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),p=(e.cNF??this.code()).toString().padStart(8,"0"),d=`${t}${n}${i}${s}${a}${u}${c}${l}${p}`;return`${d}${this.verifyingDigit(d)}`}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,s,a,u,c,l,p,d,g,y,v]=n;return{cUF:s,year:a,month:u,identification:c,mod:l,serie:p,nNF:d,tpEmis:g,cNF:y,vd:v}}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 t=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let a=0;a<8&&n>=0;a++){let u=parseInt(e[n]);i+=u*t[a],n--}let s=11-i%11;return s>9?0:s}};var Ey=9e15,Vh=1e9,I3="0123456789abcdef",pT="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",hT="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",T3={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Ey,maxE:Ey,crypto:!1},Dq,qf,Yt=!0,mT="[DecimalError] ",kh=mT+"Invalid argument: ",Oq=mT+"Precision limit exceeded",Bq=mT+"crypto unavailable",Pq="[object Decimal]",sa=Math.floor,Ji=Math.pow,mde=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,gde=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,vde=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,_q=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ac=1e7,Lt=7,yde=9007199254740991,Sde=pT.length-1,R3=hT.length-1,ze={toStringTag:Pq};ze.absoluteValue=ze.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),It(r)};ze.ceil=function(){return It(new this.constructor(this),this.e+1,2)};ze.clampedTo=ze.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(kh+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};ze.comparedTo=ze.cmp=function(r){var e,t,n,i,s=this,a=s.d,u=(r=new s.constructor(r)).d,c=s.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(s.e!==r.e)return s.e>r.e^c<0?1:-1;for(n=a.length,i=u.length,e=0,t=n<i?n:i;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1};ze.cosine=ze.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Lt,n.rounding=1,t=bde(n,jq(n,t)),n.precision=r,n.rounding=e,It(qf==2||qf==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};ze.cubeRoot=ze.cbrt=function(){var r,e,t,n,i,s,a,u,c,l,p=this,d=p.constructor;if(!p.isFinite()||p.isZero())return new d(p);for(Yt=!1,s=p.s*Ji(p.s*p,1/3),!s||Math.abs(s)==1/0?(t=Bs(p.d),r=p.e,(s=(r-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=Ji(t,1/3),r=sa((r+1)/3)-(r%3==(r<0?-1:2)),s==1/0?t="5e"+r:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new d(t),n.s=p.s):n=new d(s.toString()),a=(r=d.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(p),n=Sn(l.plus(p).times(u),l.plus(c),a+2,1),Bs(u.d).slice(0,a)===(t=Bs(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!i&&t=="4999"){if(!i&&(It(u,r+1,0),u.times(u).times(u).eq(p))){n=u;break}a+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(It(n,r+1,1),e=!n.times(n).times(n).eq(p));break}return Yt=!0,It(n,r,d.rounding,e)};ze.decimalPlaces=ze.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-sa(this.e/Lt))*Lt,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};ze.dividedBy=ze.div=function(r){return Sn(this,new this.constructor(r))};ze.dividedToIntegerBy=ze.divToInt=function(r){var e=this,t=e.constructor;return It(Sn(e,new t(r),0,1,1),t.precision,t.rounding)};ze.equals=ze.eq=function(r){return this.cmp(r)===0};ze.floor=function(){return It(new this.constructor(this),this.e+1,3)};ze.greaterThan=ze.gt=function(r){return this.cmp(r)>0};ze.greaterThanOrEqualTo=ze.gte=function(r){var e=this.cmp(r);return e==1||e===0};ze.hyperbolicCosine=ze.cosh=function(){var r,e,t,n,i,s=this,a=s.constructor,u=new a(1);if(!s.isFinite())return new a(s.s?1/0:NaN);if(s.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(s.e,s.sd())+4,a.rounding=1,i=s.d.length,i<32?(r=Math.ceil(i/3),e=(1/vT(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),s=Ay(a,1,s.times(e),new a(1),!0);for(var c,l=r,p=new a(8);l--;)c=s.times(s),s=u.minus(c.times(p.minus(c.times(p))));return It(s,a.precision=t,a.rounding=n,!0)};ze.hyperbolicSine=ze.sinh=function(){var r,e,t,n,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,t=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,n=i.d.length,n<3)i=Ay(s,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/vT(5,r)),i=Ay(s,2,i,i,!0);for(var a,u=new s(5),c=new s(16),l=new s(20);r--;)a=i.times(i),i=i.times(u.plus(a.times(c.times(a).plus(l))))}return s.precision=e,s.rounding=t,It(i,e,t,!0)};ze.hyperbolicTangent=ze.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Sn(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};ze.inverseCosine=ze.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,i=e.rounding;return t!==-1?t===0?r.isNeg()?fl(e,n,i):new e(0):new e(NaN):r.isZero()?fl(e,n+4,i).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=i,r.times(2))};ze.inverseHyperbolicCosine=ze.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Yt=!1,t=t.times(t).minus(1).sqrt().plus(t),Yt=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};ze.inverseHyperbolicSine=ze.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Yt=!1,t=t.times(t).plus(1).sqrt().plus(t),Yt=!0,n.precision=r,n.rounding=e,t.ln())};ze.inverseHyperbolicTangent=ze.atanh=function(){var r,e,t,n,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=s.precision,e=s.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?It(new s(i),r,e,!0):(s.precision=t=n-i.e,i=Sn(i.plus(1),new s(1).minus(i),t+r,1),s.precision=r+4,s.rounding=1,i=i.ln(),s.precision=r,s.rounding=e,i.times(.5))):new s(NaN)};ze.inverseSine=ze.asin=function(){var r,e,t,n,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),t=s.precision,n=s.rounding,e!==-1?e===0?(r=fl(s,t+4,n).times(.5),r.s=i.s,r):new s(NaN):(s.precision=t+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=n,i.times(2)))};ze.inverseTangent=ze.atan=function(){var r,e,t,n,i,s,a,u,c,l=this,p=l.constructor,d=p.precision,g=p.rounding;if(l.isFinite()){if(l.isZero())return new p(l);if(l.abs().eq(1)&&d+4<=R3)return a=fl(p,d+4,g).times(.25),a.s=l.s,a}else{if(!l.s)return new p(NaN);if(d+4<=R3)return a=fl(p,d+4,g).times(.5),a.s=l.s,a}for(p.precision=u=d+10,p.rounding=1,t=Math.min(28,u/Lt+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Yt=!1,e=Math.ceil(u/Lt),n=1,c=l.times(l),a=new p(l),i=l;r!==-1;)if(i=i.times(c),s=a.minus(i.div(n+=2)),i=i.times(c),a=s.plus(i.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===s.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Yt=!0,It(a,p.precision=d,p.rounding=g,!0)};ze.isFinite=function(){return!!this.d};ze.isInteger=ze.isInt=function(){return!!this.d&&sa(this.e/Lt)>this.d.length-2};ze.isNaN=function(){return!this.s};ze.isNegative=ze.isNeg=function(){return this.s<0};ze.isPositive=ze.isPos=function(){return this.s>0};ze.isZero=function(){return!!this.d&&this.d[0]===0};ze.lessThan=ze.lt=function(r){return this.cmp(r)<0};ze.lessThanOrEqualTo=ze.lte=function(r){return this.cmp(r)<1};ze.logarithm=ze.log=function(r){var e,t,n,i,s,a,u,c,l=this,p=l.constructor,d=p.precision,g=p.rounding,y=5;if(r==null)r=new p(10),e=!0;else{if(r=new p(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new p(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new p(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)s=!0;else{for(i=t[0];i%10===0;)i/=10;s=i!==1}if(Yt=!1,u=d+y,a=Fh(l,u),n=e?dT(p,u+10):Fh(r,u),c=Sn(a,n,u,1),Ow(c.d,i=d,g))do if(u+=10,a=Fh(l,u),n=e?dT(p,u+10):Fh(r,u),c=Sn(a,n,u,1),!s){+Bs(c.d).slice(i+1,i+15)+1==1e14&&(c=It(c,d+1,0));break}while(Ow(c.d,i+=10,g));return Yt=!0,It(c,d,g)};ze.minus=ze.sub=function(r){var e,t,n,i,s,a,u,c,l,p,d,g,y=this,v=y.constructor;if(r=new v(r),!y.d||!r.d)return!y.s||!r.s?r=new v(NaN):y.d?r.s=-r.s:r=new v(r.d||y.s!==r.s?y:NaN),r;if(y.s!=r.s)return r.s=-r.s,y.plus(r);if(l=y.d,g=r.d,u=v.precision,c=v.rounding,!l[0]||!g[0]){if(g[0])r.s=-r.s;else if(l[0])r=new v(y);else return new v(c===3?-0:0);return Yt?It(r,u,c):r}if(t=sa(r.e/Lt),p=sa(y.e/Lt),l=l.slice(),s=p-t,s){for(d=s<0,d?(e=l,s=-s,a=g.length):(e=g,t=p,a=l.length),n=Math.max(Math.ceil(u/Lt),a)+2,s>n&&(s=n,e.length=1),e.reverse(),n=s;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=g.length,d=n<a,d&&(a=n),n=0;n<a;n++)if(l[n]!=g[n]){d=l[n]<g[n];break}s=0}for(d&&(e=l,l=g,g=e,r.s=-r.s),a=l.length,n=g.length-a;n>0;--n)l[a++]=0;for(n=g.length;n>s;){if(l[--n]<g[n]){for(i=n;i&&l[--i]===0;)l[i]=ac-1;--l[i],l[n]+=ac}l[n]-=g[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=gT(l,t),Yt?It(r,u,c):r):new v(c===3?-0:0)};ze.modulo=ze.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?It(new n(t),n.precision,n.rounding):(Yt=!1,n.modulo==9?(e=Sn(t,r.abs(),0,3,1),e.s*=r.s):e=Sn(t,r,0,n.modulo,1),e=e.times(r),Yt=!0,t.minus(e))};ze.naturalExponential=ze.exp=function(){return D3(this)};ze.naturalLogarithm=ze.ln=function(){return Fh(this)};ze.negated=ze.neg=function(){var r=new this.constructor(this);return r.s=-r.s,It(r)};ze.plus=ze.add=function(r){var e,t,n,i,s,a,u,c,l,p,d=this,g=d.constructor;if(r=new g(r),!d.d||!r.d)return!d.s||!r.s?r=new g(NaN):d.d||(r=new g(r.d||d.s===r.s?d:NaN)),r;if(d.s!=r.s)return r.s=-r.s,d.minus(r);if(l=d.d,p=r.d,u=g.precision,c=g.rounding,!l[0]||!p[0])return p[0]||(r=new g(d)),Yt?It(r,u,c):r;if(s=sa(d.e/Lt),n=sa(r.e/Lt),l=l.slice(),i=s-n,i){for(i<0?(t=l,i=-i,a=p.length):(t=p,n=s,a=l.length),s=Math.ceil(u/Lt),a=s>a?s+1:a+1,i>a&&(i=a,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(a=l.length,i=p.length,a-i<0&&(i=a,t=p,p=l,l=t),e=0;i;)e=(l[--i]=l[i]+p[i]+e)/ac|0,l[i]%=ac;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=gT(l,n),Yt?It(r,u,c):r};ze.precision=ze.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(kh+r);return t.d?(e=Lq(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};ze.round=function(){var r=this,e=r.constructor;return It(new e(r),r.e+1,e.rounding)};ze.sine=ze.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Lt,n.rounding=1,t=wde(n,jq(n,t)),n.precision=r,n.rounding=e,It(qf>2?t.neg():t,r,e,!0)):new n(NaN)};ze.squareRoot=ze.sqrt=function(){var r,e,t,n,i,s,a=this,u=a.d,c=a.e,l=a.s,p=a.constructor;if(l!==1||!u||!u[0])return new p(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Yt=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=Bs(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=sa((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new p(e)):n=new p(l.toString()),t=(c=p.precision)+3;;)if(s=n,n=s.plus(Sn(a,s,t+2,1)).times(.5),Bs(s.d).slice(0,t)===(e=Bs(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(It(s,c+1,0),s.times(s).eq(a))){n=s;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(It(n,c+1,1),r=!n.times(n).eq(a));break}return Yt=!0,It(n,c,p.rounding,r)};ze.tangent=ze.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Sn(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,It(qf==2||qf==4?t.neg():t,r,e,!0)):new n(NaN)};ze.times=ze.mul=function(r){var e,t,n,i,s,a,u,c,l,p=this,d=p.constructor,g=p.d,y=(r=new d(r)).d;if(r.s*=p.s,!g||!g[0]||!y||!y[0])return new d(!r.s||g&&!g[0]&&!y||y&&!y[0]&&!g?NaN:!g||!y?r.s/0:r.s*0);for(t=sa(p.e/Lt)+sa(r.e/Lt),c=g.length,l=y.length,c<l&&(s=g,g=y,y=s,a=c,c=l,l=a),s=[],a=c+l,n=a;n--;)s.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=s[i]+y[n]*g[i-n-1]+e,s[i--]=u%ac|0,e=u/ac|0;s[i]=(s[i]+e)%ac|0}for(;!s[--a];)s.pop();return e?++t:s.shift(),r.d=s,r.e=gT(s,t),Yt?It(r,d.precision,d.rounding):r};ze.toBinary=function(r,e){return O3(this,2,r,e)};ze.toDecimalPlaces=ze.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Ja(r,0,Vh),e===void 0?e=n.rounding:Ja(e,0,8),It(t,r+t.e+1,e))};ze.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=pl(n,!0):(Ja(r,0,Vh),e===void 0?e=i.rounding:Ja(e,0,8),n=It(new i(n),r+1,e),t=pl(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};ze.toFixed=function(r,e){var t,n,i=this,s=i.constructor;return r===void 0?t=pl(i):(Ja(r,0,Vh),e===void 0?e=s.rounding:Ja(e,0,8),n=It(new s(i),r+i.e+1,e),t=pl(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};ze.toFraction=function(r){var e,t,n,i,s,a,u,c,l,p,d,g,y=this,v=y.d,x=y.constructor;if(!v)return new x(y);if(l=t=new x(1),n=c=new x(0),e=new x(n),s=e.e=Lq(v)-y.e-1,a=s%Lt,e.d[0]=Ji(10,a<0?Lt+a:a),r==null)r=s>0?e:l;else{if(u=new x(r),!u.isInt()||u.lt(l))throw Error(kh+u);r=u.gt(e)?s>0?e:l:u}for(Yt=!1,u=new x(Bs(v)),p=x.precision,x.precision=s=v.length*Lt*2;d=Sn(u,e,0,1,1),i=t.plus(d.times(n)),i.cmp(r)!=1;)t=n,n=i,i=l,l=c.plus(d.times(i)),c=i,i=e,e=u.minus(d.times(i)),u=i;return i=Sn(r.minus(t),n,0,1,1),c=c.plus(i.times(l)),t=t.plus(i.times(n)),c.s=l.s=y.s,g=Sn(l,n,s,1).minus(y).abs().cmp(Sn(c,t,s,1).minus(y).abs())<1?[l,n]:[c,t],x.precision=p,Yt=!0,g};ze.toHexadecimal=ze.toHex=function(r,e){return O3(this,16,r,e)};ze.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Ja(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Yt=!1,t=Sn(t,r,0,e,1).times(r),Yt=!0,It(t)):(r.s=t.s,t=r),t};ze.toNumber=function(){return+this};ze.toOctal=function(r,e){return O3(this,8,r,e)};ze.toPower=ze.pow=function(r){var e,t,n,i,s,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(Ji(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,s=c.rounding,r.eq(1))return It(u,n,s);if(e=sa(r.e/Lt),e>=r.d.length-1&&(t=l<0?-l:l)<=yde)return i=Fq(c,u,t,n),r.s<0?new c(1).div(i):It(i,n,s);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=Ji(+u,l),e=t==0||!isFinite(t)?sa(l*(Math.log("0."+Bs(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Yt=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),i=D3(r.times(Fh(u,n+t)),n),i.d&&(i=It(i,n+5,1),Ow(i.d,n,s)&&(e=n+10,i=It(D3(r.times(Fh(u,e+t)),e),e+5,1),+Bs(i.d).slice(n+1,n+15)+1==1e14&&(i=It(i,n+1,0)))),i.s=a,Yt=!0,c.rounding=s,It(i,n,s))};ze.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=pl(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Ja(r,1,Vh),e===void 0?e=i.rounding:Ja(e,0,8),n=It(new i(n),r,e),t=pl(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};ze.toSignificantDigits=ze.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Ja(r,1,Vh),e===void 0?e=n.rounding:Ja(e,0,8)),It(new n(t),r,e)};ze.toString=function(){var r=this,e=r.constructor,t=pl(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};ze.truncated=ze.trunc=function(){return It(new this.constructor(this),this.e+1,1)};ze.valueOf=ze.toJSON=function(){var r=this,e=r.constructor,t=pl(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function Bs(r){var e,t,n,i=r.length-1,s="",a=r[0];if(i>0){for(s+=a,e=1;e<i;e++)n=r[e]+"",t=Lt-n.length,t&&(s+=Lh(t)),s+=n;a=r[e],n=a+"",t=Lt-n.length,t&&(s+=Lh(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}o(Bs,"digitsToString");function Ja(r,e,t){if(r!==~~r||r<e||r>t)throw Error(kh+r)}o(Ja,"checkInt32");function Ow(r,e,t,n){var i,s,a,u;for(s=r[0];s>=10;s/=10)--e;return--e<0?(e+=Lt,i=0):(i=Math.ceil((e+1)/Lt),e%=Lt),s=Ji(10,Lt-e),u=r[i]%s|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==s||t>3&&u+1==s/2)&&(r[i+1]/s/100|0)==Ji(10,e-2)-1||(u==s/2||u==0)&&(r[i+1]/s/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(r[i+1]/s/1e3|0)==Ji(10,e-3)-1,a}o(Ow,"checkRoundingDigits");function lT(r,e,t){for(var n,i=[0],s,a=0,u=r.length;a<u;){for(s=i.length;s--;)i[s]*=e;for(i[0]+=I3.indexOf(r.charAt(a++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}o(lT,"convertBase");function bde(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/vT(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Ay(r,1,e.times(i),new r(1));for(var s=t;s--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(bde,"cosine");var Sn=(function(){function r(n,i,s){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*i+u,n[c]=a%s|0,u=a/s|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,i,s,a){var u,c;if(s!=a)c=s>a?1:-1;else for(u=c=0;u<s;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}o(e,"compare");function t(n,i,s,a){for(var u=0;s--;)n[s]-=u,u=n[s]<i[s]?1:0,n[s]=u*a+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,i,s,a,u,c){var l,p,d,g,y,v,x,S,A,D,C,E,I,B,q,R,z,K,H,J,ge=n.constructor,ve=n.s==i.s?1:-1,le=n.d,Z=i.d;if(!le||!le[0]||!Z||!Z[0])return new ge(!n.s||!i.s||(le?Z&&le[0]==Z[0]:!Z)?NaN:le&&le[0]==0||!Z?ve*0:ve/0);for(c?(y=1,p=n.e-i.e):(c=ac,y=Lt,p=sa(n.e/y)-sa(i.e/y)),H=Z.length,z=le.length,A=new ge(ve),D=A.d=[],d=0;Z[d]==(le[d]||0);d++);if(Z[d]>(le[d]||0)&&p--,s==null?(B=s=ge.precision,a=ge.rounding):u?B=s+(n.e-i.e)+1:B=s,B<0)D.push(1),v=!0;else{if(B=B/y+2|0,d=0,H==1){for(g=0,Z=Z[0],B++;(d<z||g)&&B--;d++)q=g*c+(le[d]||0),D[d]=q/Z|0,g=q%Z|0;v=g||d<z}else{for(g=c/(Z[0]+1)|0,g>1&&(Z=r(Z,g,c),le=r(le,g,c),H=Z.length,z=le.length),R=H,C=le.slice(0,H),E=C.length;E<H;)C[E++]=0;J=Z.slice(),J.unshift(0),K=Z[0],Z[1]>=c/2&&++K;do g=0,l=e(Z,C,H,E),l<0?(I=C[0],H!=E&&(I=I*c+(C[1]||0)),g=I/K|0,g>1?(g>=c&&(g=c-1),x=r(Z,g,c),S=x.length,E=C.length,l=e(x,C,S,E),l==1&&(g--,t(x,H<S?J:Z,S,c))):(g==0&&(l=g=1),x=Z.slice()),S=x.length,S<E&&x.unshift(0),t(C,x,E,c),l==-1&&(E=C.length,l=e(Z,C,H,E),l<1&&(g++,t(C,H<E?J:Z,E,c))),E=C.length):l===0&&(g++,C=[0]),D[d++]=g,l&&C[0]?C[E++]=le[R]||0:(C=[le[R]],E=1);while((R++<z||C[0]!==void 0)&&B--);v=C[0]!==void 0}D[0]||D.shift()}if(y==1)A.e=p,Dq=v;else{for(d=1,g=D[0];g>=10;g/=10)d++;A.e=d+p*y-1,It(A,u?s+A.e+1:s,a,v)}return A}})();function It(r,e,t,n){var i,s,a,u,c,l,p,d,g,y=r.constructor;e:if(e!=null){if(d=r.d,!d)return r;for(i=1,u=d[0];u>=10;u/=10)i++;if(s=e-i,s<0)s+=Lt,a=e,p=d[g=0],c=p/Ji(10,i-a-1)%10|0;else if(g=Math.ceil((s+1)/Lt),u=d.length,g>=u)if(n){for(;u++<=g;)d.push(0);p=c=0,i=1,s%=Lt,a=s-Lt+1}else break e;else{for(p=u=d[g],i=1;u>=10;u/=10)i++;s%=Lt,a=s-Lt+i,c=a<0?0:p/Ji(10,i-a-1)%10|0}if(n=n||e<0||d[g+1]!==void 0||(a<0?p:p%Ji(10,i-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(s>0?a>0?p/Ji(10,i-a):0:d[g-1])%10&1||t==(r.s<0?8:7)),e<1||!d[0])return d.length=0,l?(e-=r.e+1,d[0]=Ji(10,(Lt-e%Lt)%Lt),r.e=-e||0):d[0]=r.e=0,r;if(s==0?(d.length=g,u=1,g--):(d.length=g+1,u=Ji(10,Lt-s),d[g]=a>0?(p/Ji(10,i-a)%Ji(10,a)|0)*u:0),l)for(;;)if(g==0){for(s=1,a=d[0];a>=10;a/=10)s++;for(a=d[0]+=u,u=1;a>=10;a/=10)u++;s!=u&&(r.e++,d[0]==ac&&(d[0]=1));break}else{if(d[g]+=u,d[g]!=ac)break;d[g--]=0,u=1}for(s=d.length;d[--s]===0;)d.pop()}return Yt&&(r.e>y.maxE?(r.d=null,r.e=NaN):r.e<y.minE&&(r.e=0,r.d=[0])),r}o(It,"finalise");function pl(r,e,t){if(!r.isFinite())return Vq(r);var n,i=r.e,s=Bs(r.d),a=s.length;return e?(t&&(n=t-a)>0?s=s.charAt(0)+"."+s.slice(1)+Lh(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(r.e<0?"e":"e+")+r.e):i<0?(s="0."+Lh(-i-1)+s,t&&(n=t-a)>0&&(s+=Lh(n))):i>=a?(s+=Lh(i+1-a),t&&(n=t-i-1)>0&&(s=s+"."+Lh(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-a)>0&&(i+1===a&&(s+="."),s+=Lh(n))),s}o(pl,"finiteToString");function gT(r,e){var t=r[0];for(e*=Lt;t>=10;t/=10)e++;return e}o(gT,"getBase10Exponent");function dT(r,e,t){if(e>Sde)throw Yt=!0,t&&(r.precision=t),Error(Oq);return It(new r(pT),e,1,!0)}o(dT,"getLn10");function fl(r,e,t){if(e>R3)throw Error(Oq);return It(new r(hT),e,t,!0)}o(fl,"getPi");function Lq(r){var e=r.length-1,t=e*Lt+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(Lq,"getPrecision");function Lh(r){for(var e="";r--;)e+="0";return e}o(Lh,"getZeroString");function Fq(r,e,t,n){var i,s=new r(1),a=Math.ceil(n/Lt+4);for(Yt=!1;;){if(t%2&&(s=s.times(e),Tq(s.d,a)&&(i=!0)),t=sa(t/2),t===0){t=s.d.length-1,i&&s.d[t]===0&&++s.d[t];break}e=e.times(e),Tq(e.d,a)}return Yt=!0,s}o(Fq,"intPow");function Iq(r){return r.d[r.d.length-1]&1}o(Iq,"isOdd");function kq(r,e,t){for(var n,i,s=new r(e[0]),a=0;++a<e.length;){if(i=new r(e[a]),!i.s){s=i;break}n=s.cmp(i),(n===t||n===0&&s.s===t)&&(s=i)}return s}o(kq,"maxOrMin");function D3(r,e){var t,n,i,s,a,u,c,l=0,p=0,d=0,g=r.constructor,y=g.rounding,v=g.precision;if(!r.d||!r.d[0]||r.e>17)return new g(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Yt=!1,c=v):c=e,u=new g(.03125);r.e>-2;)r=r.times(u),d+=5;for(n=Math.log(Ji(2,d))/Math.LN10*2+5|0,c+=n,t=s=a=new g(1),g.precision=c;;){if(s=It(s.times(r),c,1),t=t.times(++p),u=a.plus(Sn(s,t,c,1)),Bs(u.d).slice(0,c)===Bs(a.d).slice(0,c)){for(i=d;i--;)a=It(a.times(a),c,1);if(e==null)if(l<3&&Ow(a.d,c-n,y,l))g.precision=c+=10,t=s=u=new g(1),p=0,l++;else return It(a,g.precision=v,y,Yt=!0);else return g.precision=v,a}a=u}}o(D3,"naturalExponential");function Fh(r,e){var t,n,i,s,a,u,c,l,p,d,g,y=1,v=10,x=r,S=x.d,A=x.constructor,D=A.rounding,C=A.precision;if(x.s<0||!S||!S[0]||!x.e&&S[0]==1&&S.length==1)return new A(S&&!S[0]?-1/0:x.s!=1?NaN:S?0:x);if(e==null?(Yt=!1,p=C):p=e,A.precision=p+=v,t=Bs(S),n=t.charAt(0),Math.abs(s=x.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)x=x.times(r),t=Bs(x.d),n=t.charAt(0),y++;s=x.e,n>1?(x=new A("0."+t),s++):x=new A(n+"."+t.slice(1))}else return l=dT(A,p+2,C).times(s+""),x=Fh(new A(n+"."+t.slice(1)),p-v).plus(l),A.precision=C,e==null?It(x,C,D,Yt=!0):x;for(d=x,c=a=x=Sn(x.minus(1),x.plus(1),p,1),g=It(x.times(x),p,1),i=3;;){if(a=It(a.times(g),p,1),l=c.plus(Sn(a,new A(i),p,1)),Bs(l.d).slice(0,p)===Bs(c.d).slice(0,p))if(c=c.times(2),s!==0&&(c=c.plus(dT(A,p+2,C).times(s+""))),c=Sn(c,new A(y),p,1),e==null)if(Ow(c.d,p-v,D,u))A.precision=p+=v,l=a=x=Sn(d.minus(1),d.plus(1),p,1),g=It(x.times(x),p,1),i=u=1;else return It(c,A.precision=C,D,Yt=!0);else return A.precision=C,c;c=l,i+=2}}o(Fh,"naturalLogarithm");function Vq(r){return String(r.s*r.s/0)}o(Vq,"nonFiniteToString");function fT(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%Lt,t<0&&(n+=Lt),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=Lt;n<i;)r.d.push(+e.slice(n,n+=Lt));e=e.slice(n),n=Lt-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),Yt&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(fT,"parseDecimal");function xde(r,e){var t,n,i,s,a,u,c,l,p;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),_q.test(e))return fT(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(gde.test(e))t=16,e=e.toLowerCase();else if(mde.test(e))t=2;else if(vde.test(e))t=8;else throw Error(kh+e);for(s=e.search(/p/i),s>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),s=e.indexOf("."),a=s>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,s=u-s,i=Fq(n,new n(t),s,s*2)),l=lT(e,t,ac),p=l.length-1,s=p;l[s]===0;--s)l.pop();return s<0?new n(r.s*0):(r.e=gT(l,p),r.d=l,Yt=!1,a&&(r=Sn(r,i,u*4)),c&&(r=r.times(Math.abs(c)<54?Ji(2,c):Ny.pow(2,c))),Yt=!0,r)}o(xde,"parseOther");function wde(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Ay(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/vT(5,t)),e=Ay(r,2,e,e);for(var i,s=new r(5),a=new r(16),u=new r(20);t--;)i=e.times(e),e=e.times(s.plus(i.times(a.times(i).minus(u))));return e}o(wde,"sine");function Ay(r,e,t,n,i){var s,a,u,c,l=1,p=r.precision,d=Math.ceil(p/Lt);for(Yt=!1,c=t.times(t),u=new r(n);;){if(a=Sn(u.times(c),new r(e++*e++),p,1),u=i?n.plus(a):n.minus(a),n=Sn(a.times(c),new r(e++*e++),p,1),a=u.plus(n),a.d[d]!==void 0){for(s=d;a.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=a,a=s,l++}return Yt=!0,a.d.length=d+1,a}o(Ay,"taylorSeries");function vT(r,e){for(var t=r;--e;)t*=r;return t}o(vT,"tinyPow");function jq(r,e){var t,n=e.s<0,i=fl(r,r.precision,1),s=i.times(.5);if(e=e.abs(),e.lte(s))return qf=n?4:1,e;if(t=e.divToInt(i),t.isZero())qf=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(s))return qf=Iq(t)?n?2:3:n?4:1,e;qf=Iq(t)?n?1:4:n?3:2}return e.minus(i).abs()}o(jq,"toLessThanHalfPi");function O3(r,e,t,n){var i,s,a,u,c,l,p,d,g,y=r.constructor,v=t!==void 0;if(v?(Ja(t,1,Vh),n===void 0?n=y.rounding:Ja(n,0,8)):(t=y.precision,n=y.rounding),!r.isFinite())p=Vq(r);else{for(p=pl(r),a=p.indexOf("."),v?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,a>=0&&(p=p.replace(".",""),g=new y(1),g.e=p.length-a,g.d=lT(pl(g),10,i),g.e=g.d.length),d=lT(p,10,i),s=c=d.length;d[--c]==0;)d.pop();if(!d[0])p=v?"0p+0":"0";else{if(a<0?s--:(r=new y(r),r.d=d,r.e=s,r=Sn(r,g,t,n,0,i),d=r.d,s=r.e,l=Dq),a=d[t],u=i/2,l=l||d[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&d[t-1]&1||n===(r.s<0?8:7)),d.length=t,l)for(;++d[--t]>i-1;)d[t]=0,t||(++s,d.unshift(1));for(c=d.length;!d[c-1];--c);for(a=0,p="";a<c;a++)p+=I3.charAt(d[a]);if(v){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)p+="0";for(d=lT(p,i,e),c=d.length;!d[c-1];--c);for(a=1,p="1.";a<c;a++)p+=I3.charAt(d[a])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}p=(e==16?"0x":e==2?"0b":e==8?"0o":"")+p}return r.s<0?"-"+p:p}o(O3,"toStringBinary");function Tq(r,e){if(r.length>e)return r.length=e,!0}o(Tq,"truncate");function Cde(r){return new this(r).abs()}o(Cde,"abs");function Ede(r){return new this(r).acos()}o(Ede,"acos");function Ade(r){return new this(r).acosh()}o(Ade,"acosh");function Nde(r,e){return new this(r).plus(e)}o(Nde,"add");function Ide(r){return new this(r).asin()}o(Ide,"asin");function Tde(r){return new this(r).asinh()}o(Tde,"asinh");function Rde(r){return new this(r).atan()}o(Rde,"atan");function Dde(r){return new this(r).atanh()}o(Dde,"atanh");function Ode(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,s=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=fl(this,s,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?fl(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=fl(this,s,1).times(.5),t.s=r.s):e.s<0?(this.precision=s,this.rounding=1,t=this.atan(Sn(r,e,s,1)),e=fl(this,s,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Sn(r,e,s,1)),t}o(Ode,"atan2");function Bde(r){return new this(r).cbrt()}o(Bde,"cbrt");function Pde(r){return It(r=new this(r),r.e+1,2)}o(Pde,"ceil");function _de(r,e,t){return new this(r).clamp(e,t)}o(_de,"clamp");function Lde(r){if(!r||typeof r!="object")throw Error(mT+"Object expected");var e,t,n,i=r.defaults===!0,s=["precision",1,Vh,"rounding",0,8,"toExpNeg",-Ey,0,"toExpPos",0,Ey,"maxE",0,Ey,"minE",-Ey,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(t=s[e],i&&(this[t]=T3[t]),(n=r[t])!==void 0)if(sa(n)===n&&n>=s[e+1]&&n<=s[e+2])this[t]=n;else throw Error(kh+t+": "+n);if(t="crypto",i&&(this[t]=T3[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Bq);else this[t]=!1;else throw Error(kh+t+": "+n);return this}o(Lde,"config");function Fde(r){return new this(r).cos()}o(Fde,"cos");function kde(r){return new this(r).cosh()}o(kde,"cosh");function Mq(r){var e,t,n;function i(s){var a,u,c,l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,Rq(s)){l.s=s.s,Yt?!s.d||s.e>i.maxE?(l.e=NaN,l.d=null):s.e<i.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(a=0,u=s;u>=10;u/=10)a++;Yt?a>i.maxE?(l.e=NaN,l.d=null):a<i.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[s]):(l.e=a,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return fT(l,s.toString())}if(c==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),_q.test(s)?fT(l,s):xde(l,s);if(c==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,fT(l,s.toString());throw Error(kh+s)}if(o(i,"Decimal"),i.prototype=ze,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Lde,i.clone=Mq,i.isDecimal=Rq,i.abs=Cde,i.acos=Ede,i.acosh=Ade,i.add=Nde,i.asin=Ide,i.asinh=Tde,i.atan=Rde,i.atanh=Dde,i.atan2=Ode,i.cbrt=Bde,i.ceil=Pde,i.clamp=_de,i.cos=Fde,i.cosh=kde,i.div=Vde,i.exp=jde,i.floor=Mde,i.hypot=Ude,i.ln=qde,i.log=Hde,i.log10=Kde,i.log2=zde,i.max=Gde,i.min=Xde,i.mod=Wde,i.mul=Jde,i.pow=Yde,i.random=Qde,i.round=$de,i.sign=Zde,i.sin=eme,i.sinh=tme,i.sqrt=rme,i.sub=nme,i.sum=ime,i.tan=sme,i.tanh=ame,i.trunc=ome,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}o(Mq,"clone");function Vde(r,e){return new this(r).div(e)}o(Vde,"div");function jde(r){return new this(r).exp()}o(jde,"exp");function Mde(r){return It(r=new this(r),r.e+1,3)}o(Mde,"floor");function Ude(){var r,e,t=new this(0);for(Yt=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Yt=!0,new this(1/0);t=e}return Yt=!0,t.sqrt()}o(Ude,"hypot");function Rq(r){return r instanceof Ny||r&&r.toStringTag===Pq||!1}o(Rq,"isDecimalInstance");function qde(r){return new this(r).ln()}o(qde,"ln");function Hde(r,e){return new this(r).log(e)}o(Hde,"log");function zde(r){return new this(r).log(2)}o(zde,"log2");function Kde(r){return new this(r).log(10)}o(Kde,"log10");function Gde(){return kq(this,arguments,-1)}o(Gde,"max");function Xde(){return kq(this,arguments,1)}o(Xde,"min");function Wde(r,e){return new this(r).mod(e)}o(Wde,"mod");function Jde(r,e){return new this(r).mul(e)}o(Jde,"mul");function Yde(r,e){return new this(r).pow(e)}o(Yde,"pow");function Qde(r){var e,t,n,i,s=0,a=new this(1),u=[];if(r===void 0?r=this.precision:Ja(r,1,Vh),n=Math.ceil(r/Lt),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));s<n;)i=e[s],i>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);s<n;)i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((e[s+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=n/4}else throw Error(Bq);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],r%=Lt,n&&r&&(i=Ji(10,Lt-r),u[s]=(n/i|0)*i);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=Lt)u.shift();for(n=1,i=u[0];i>=10;i/=10)n++;n<Lt&&(t-=Lt-n)}return a.e=t,a.d=u,a}o(Qde,"random");function $de(r){return It(r=new this(r),r.e+1,this.rounding)}o($de,"round");function Zde(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(Zde,"sign");function eme(r){return new this(r).sin()}o(eme,"sin");function tme(r){return new this(r).sinh()}o(tme,"sinh");function rme(r){return new this(r).sqrt()}o(rme,"sqrt");function nme(r,e){return new this(r).sub(e)}o(nme,"sub");function ime(){var r=0,e=arguments,t=new this(e[r]);for(Yt=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Yt=!0,It(t,this.precision,this.rounding)}o(ime,"sum");function sme(r){return new this(r).tan()}o(sme,"tan");function ame(r){return new this(r).tanh()}o(ame,"tanh");function ome(r){return It(r=new this(r),r.e+1,1)}o(ome,"trunc");ze[Symbol.for("nodejs.util.inspect.custom")]=ze.toString;ze[Symbol.toStringTag]="Decimal";var Ny=ze.constructor=Mq(T3);pT=new Ny(pT);hT=new Ny(hT);var en=class r extends Ny{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};var Uq=lr(require("pdfkit"),1);var yT=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new Uq.default(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:i,...s}=t??{};return n||i?(this.doc.text(e,n,i,s),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,i){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,i),this):(this.doc.image(e,t),this)}rect(e,t,n,i){return this.doc.rect(e,t,n,i),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,i;typeof e=="function"?(n={},i=[e,...t]):(n=e??{},i=t),n.columns??=1;let s=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),p=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let d=[];for(let g=0;g<n.columns;g++){let y=n.size[g]/12;d[g]=p*y}for(let g=0,y=u;g<n.columns;g++){let v=g===n.columns-1,x=d[g];if(v&&n.columns>1){let D=l-a-y;D>0&&Math.abs(D-x)>.01&&(x=D)}let S={y:s,x:y,width:x};i[g](S),y+=x,c>0&&!v&&(y+=c)}return this}};var ST=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var UL=lr(require("fs"),1),m7=lr(require("path"),1),Jw=lr(require("crypto"),1),Qh=lr(n7(),1);var br=class extends Error{static{o(this,"NFeTsError")}};var LL=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},$T=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},Xr=o(r=>new LL(r),"left"),gr=o(r=>r===void 0?new $T(void 0):new $T(r),"right");var zve=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),Xf=o(r=>typeof r=="string"?Xr(new br(r)):r instanceof Error?Xr(new br(r.message,{cause:r.cause})):zve(r)?Xr(new br(r.message)):Xr(new br("unexpected error")),"leftFromError");var ZT=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var FL="http://www.w3.org/2000/09/xmldsig#",i7="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",kL=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Cl=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),VL=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var Xw={includeComments:!1,exclusive:!0};var B0=o(r=>{throw new br("Didn't expect to get here")},"unreachable");var qy=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Cl.SHA1,i=Xw){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=i}assemble(e,t,n){let i=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:FL},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:i}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:i7}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:FL},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Cl.SHA256:return VL.SHA256;case Cl.SHA1:return VL.SHA1;default:return B0(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Cl.SHA256:return kL.RSA_SHA256;case Cl.SHA1:return kL.RSA_SHA1;default:return B0(this.algorithm)}}};var eR=class extends qy{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n;if(!e[i])return Xr(new br(`Node ${String(i)} not found`));let u=await this.toolkit.build(this.ns(e,i),{headless:!0,rootName:String(i),renderOpts:{pretty:!1}}),c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let p=e;return p.Signature=this.assemble(c,l.value,a),gr(p)}ns(e,t){let n=e.$?.xmlns,{$:i,...s}=e[t],{xmlns:a,...u}=i??{};return{$:{xmlns:n,...u},...s}}};var tR=class extends qy{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n,u=this.toolkit.getNode(e,i);if(!u)return Xr(new br(`Node ${i} not found`));let c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let p=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return gr(this.toolkit.appendNode(e,p))}};var mLe=require("reflect-metadata"),a7=require("class-validator");var lLe=require("reflect-metadata");var jL="__SkipValidation__";var s7=require("class-transformer");var rR=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&rR(t)},"clearEmptyValues"),nR=o((r,e,t={})=>{let n=(0,s7.plainToInstance)(e,r);return t.clearEmptyValues&&rR(n),n},"plainToInstance");var bu="__ValidateErrors__",o7=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(o7(n.children,e?`${e}.${n.property}`:n.property));let i=Object.values(n.constraints??{}).map(s=>e?`${e}.${s}`:s).join(", ");return i?t.concat(i):t},[]),"mapConstraintsToErrors"),Ht=o(r=>(e,t,n)=>{let i=n.value;n.value=function(...s){let a=Reflect.getMetadata(jL,this.constructor);if(Reflect.getMetadata(jL,this.constructor.prototype,t.toString())===!0||a===!0)return i?.apply(this,s);let[c,...l]=s;if(!c)return i?.apply(this,s);let p=nR(c,r),d=(0,a7.validateSync)(p,{whitelist:!0});if(rR(p),d.length){let g=Reflect.getMetadata(bu,this)??[];Reflect.defineMetadata(bu,g.concat(o7(d,i?.name)),this)}return i?.apply(this,[p,...l])}},"Validates");var bLe=require("reflect-metadata");var u7=require("class-validator");var c7=o(r=>(e,t)=>{(0,u7.registerDecorator)({name:"isDecimal",target:e.constructor,propertyName:t,options:r,validator:{validate(n){return n instanceof en?!0:typeof n=="string"||typeof n=="number"||typeof n=="bigint"},defaultMessage(n){return`${n.property} is not a valid Decimal value`}}})},"IsDecimal");var ELe=require("reflect-metadata"),ML=require("class-validator");var Hy=Symbol("choice"),zy=o(r=>r==null||r==="","isEmpty"),on=o(r=>e=>{let{properties:t,required:n=!1,...i}=r,s=Reflect.getMetadata(Hy,e)??[],a={properties:t,required:n};s.push(a),Reflect.defineMetadata(Hy,s,e);for(let u of t)(0,ML.registerDecorator)({name:"choice",target:e,propertyName:u,options:i,validator:{validate(c,l){let p=l.object,d=l.property,g=Reflect.getMetadata(Hy,e);if(!g)return!0;let y=g.find(v=>v.properties.includes(d));if(!y||zy(c))return!0;for(let v of y.properties){if(v===d)continue;let x=p[v];if(!zy(x))return!1}for(let v of g)if(v!==y)for(let x of v.properties){let S=p[x];if(!zy(S))return!1}return!0},defaultMessage(c){let l=Reflect.getMetadata(Hy,e);if(!l)return`${c.property} validation error`;let p=l.find(g=>g.properties.includes(c.property));if(!p)return`${c.property} validation error`;let d=c.object;for(let g of p.properties){let y=d[g];if(!zy(y)&&g!==c.property)return`${c.property} cannot be set because ${g} is already set. Only one property from this choice group is allowed.`}for(let g of l)if(g!==p)for(let y of g.properties){let v=d[y];if(!zy(v))return`${c.property} cannot be set because ${y} from a different choice group is already set.`}return`${c.property} validation error`}}});if(n)for(let u of t)(0,ML.registerDecorator)({name:"choiceGroupRequired",target:e,propertyName:u,options:{...i,always:!0},validator:{validate(c,l){let p=l.object,d=Reflect.getMetadata(Hy,e);if(!d)return!0;let g=d.find(y=>y.properties.includes(l.property));if(!g?.required)return!0;for(let y of g.properties){let v=p[y];if(!zy(v))return!0}return l.property!==g.properties[0]},defaultMessage(c){let l=Reflect.getMetadata(Hy,e);if(!l)return"At least one property from a choice group must be provided";let p=l.find(d=>d.properties.includes(c.property));return p?`You must provide a value for one of the following properties: ${p.properties.join(", ")}`:"At least one property from a choice group must be provided"}}})},"Choice");var ILe=require("reflect-metadata");var l7=require("class-transformer");var ne=o(({fixed:r,...e}={fixed:2})=>(t,n)=>{c7(e)(t,n),(0,l7.Transform)(({value:i})=>en.newOrUndefined(i)?.toFixed(r))(t,n)},"TransformDecimal");var h7=require("class-transformer"),d7=require("class-validator");var iR=lr(require("dayjs"),1),f7=lr(require("dayjs/plugin/utc"),1),p7=lr(require("dayjs/plugin/timezone"),1);iR.default.extend(f7.default);iR.default.extend(p7.default);var Ww=iR.default;var Yh=o((r={})=>(e,t)=>{(0,h7.Transform)(({value:n})=>{let i=n instanceof Date?n.toISOString():n;return i?Ww(i).tz("America/Sao_Paulo").format(r.format):void 0})(e,t),(0,d7.IsDateString)()(e,t)},"TransformDateString");var Ky=class{static{o(this,"ASN1")}extractCertificateInfo(e){let n=e.subject.split(`
|
|
113
113
|
`).reduce((s,a)=>{let[u,c]=a.split("=").map(l=>l.trim());return!u||!c?s:s.set(u,c)},new Map),i=this.oid("2.16.76.1.3.1",e.raw);return{CNPJ:this.oid("2.16.76.1.3.3",e.raw),CPF:i,CN:n.get("CN"),O:n.get("O"),OU:n.get("OU"),ST:n.get("ST"),L:n.get("L"),C:n.get("C")}}oid(e,t){let n=this.marker(e),i=t.indexOf(n);if(i===-1)return;let s=[t.subarray(0,i),t.subarray(i)];if(s.length<=1)return;let u=s[0].subarray(-4),c=u.subarray(-2);u[0]===48?c=u:u[1]===48&&(c=u.subarray(-3));let l=Buffer.concat([c,n,s[1]]),p=this.length(l),d=n.length,g=l.subarray(2+d,2+d+p),y=g.length-c.length-2;if(y<=0||y>g.length)return;let x=g.subarray(-y).toString("utf8");return x.substring(Buffer.from(x).findIndex((S,A)=>x.charCodeAt(A)>=32&&x.charCodeAt(A)<=126))}length(e){return e.length<2?0:e[1]<=127?e[1]:Buffer.from([e[1]&15]).reduce((t,n)=>t<<8|n,0)}marker(e){let t=e.split("."),n=t.slice(2).reduce((i,s)=>{let a=this.base128(i,Number.parseInt(s,10),!0);return i.length=0,i.push(...a),i},[]);return Buffer.from([6,n.length+1,40*Number.parseInt(t[0],10)+Number.parseInt(t[1],10),...n])}base128(e,t,n){let i=[...e];if(t>127){let a=this.base128(e,Math.floor(t/128),!1);a.length=0,i.push(...a)}let s=t%128;return n?i.push(s):i.push(128|s),i}};var sR=class{static{o(this,"NativeCertificateRepository")}httpClient;signer;cache;constructor(e,t,n=new ZT){this.httpClient=e,this.signer=t,this.cache=n}async read(e){try{let{password:t,pfxPathOrBase64:n}=e;if(!n)return Xr(new br("Certificate path is required"));let i=await this.getPfxBuffer(e);if(i.isLeft())return i;let s=Qh.default.asn1.fromDer(i.value.toString("binary")),a=Qh.default.pkcs12.pkcs12FromAsn1(s,t),{certBag:u}=Qh.default.pki.oids,l=a.getBags({bagType:u})[u];if(!l?.length)return Xr(new br("Cannot read certificate"));let[{cert:p},...d]=l;if(!p)return Xr(new br("Issuer Certificate not found"));let g=d.reduce((v,{cert:x})=>(x&&v.push(new Jw.default.X509Certificate(Qh.default.pki.certificateToPem(x))),v),[]),y=new Jw.default.X509Certificate(Qh.default.pki.certificateToPem(p));return gr({ca:g,password:t,certificate:y,privateKey:this.getPrivateKey(a)})}catch(t){return Xf(t)}}getPrivateKey(e){let{pkcs8ShroudedKeyBag:t}=Qh.default.pki.oids,i=e.getBags({bagType:t})[t]?.[0]?.key;if(i)return Jw.default.createPrivateKey(Qh.default.pki.privateKeyToPem(i))}async sign(e,t,n=Cl.SHA1){return this.signer.sign(e,t,n)}getCertificateInfo(e){return new Ky().extractCertificateInfo(e)}getStringCertificate(e){return e.raw.toString("base64")}getStringPrivateKey(e){try{return e.export({type:"pkcs8",format:"pem"})}catch{throw new br("Cannot extract private key")}}async getPfxBuffer(e){let{pfxPathOrBase64:t,password:n}=e,i=this.getCacheKey(t,n),s=await this.cache.get(i);if(s)return gr(s);if(m7.default.isAbsolute(t)||UL.default.existsSync(t))return this.hitBufferOnCache(i,UL.default.readFileSync(t));if(this.isValidRemoteUrl(t))try{let a=await this.httpClient.get(t,{responseType:"arraybuffer"});return await this.hitBufferOnCache(i,Buffer.from(a.data))}catch(a){return Xf(a)}return this.hitBufferOnCache(i,Buffer.from(t,"base64"))}getCacheKey(e,t){return Jw.default.createHash("sha256").update(`${e}.${t}`).digest("hex")}async hitBufferOnCache(e,t){return await this.cache.set(e,t),gr(t)}isValidRemoteUrl(e){try{return new URL(e),!0}catch{return!1}}};var DZ=lr(require("os"),1),OZ=require("crypto"),$D=require("https"),BZ=lr(v$(),1);function zC(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(zC,"bind");var{toString:w2e}=Object.prototype,{getPrototypeOf:Y8}=Object,{iterator:FD,toStringTag:S$}=Symbol,kD=(r=>e=>{let t=w2e.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),mc=o(r=>(r=r.toLowerCase(),e=>kD(e)===r),"kindOfTest"),VD=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:T1}=Array,I1=VD("undefined");function KC(r){return r!==null&&!I1(r)&&r.constructor!==null&&!I1(r.constructor)&&oo(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(KC,"isBuffer");var b$=mc("ArrayBuffer");function C2e(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&b$(r.buffer),e}o(C2e,"isArrayBufferView");var E2e=VD("string"),oo=VD("function"),x$=VD("number"),GC=o(r=>r!==null&&typeof r=="object","isObject"),A2e=o(r=>r===!0||r===!1,"isBoolean"),LD=o(r=>{if(kD(r)!=="object")return!1;let e=Y8(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(S$ in r)&&!(FD in r)},"isPlainObject"),N2e=o(r=>{if(!GC(r)||KC(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),I2e=mc("Date"),T2e=mc("File"),R2e=mc("Blob"),D2e=mc("FileList"),O2e=o(r=>GC(r)&&oo(r.pipe),"isStream"),B2e=o(r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||oo(r.append)&&((e=kD(r))==="formdata"||e==="object"&&oo(r.toString)&&r.toString()==="[object FormData]"))},"isFormData"),P2e=mc("URLSearchParams"),[_2e,L2e,F2e,k2e]=["ReadableStream","Request","Response","Headers"].map(mc),V2e=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function XC(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),T1(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(KC(r))return;let s=t?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,u;for(n=0;n<a;n++)u=s[n],e.call(null,r[u],u,r)}}o(XC,"forEach");function w$(r,e){if(KC(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}o(w$,"findKey");var G0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,C$=o(r=>!I1(r)&&r!==G0,"isContextDefined");function J8(){let{caseless:r,skipUndefined:e}=C$(this)&&this||{},t={},n=o((i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let a=r&&w$(t,s)||s;LD(t[a])&&LD(i)?t[a]=J8(t[a],i):LD(i)?t[a]=J8({},i):T1(i)?t[a]=i.slice():(!e||!I1(i))&&(t[a]=i)},"assignValue");for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&XC(arguments[i],n);return t}o(J8,"merge");var j2e=o((r,e,t,{allOwnKeys:n}={})=>(XC(e,(i,s)=>{t&&oo(i)?Object.defineProperty(r,s,{value:zC(i,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),"extend"),M2e=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),U2e=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),q2e=o((r,e,t,n)=>{let i,s,a,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)a=i[s],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&Y8(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),H2e=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),z2e=o(r=>{if(!r)return null;if(T1(r))return r;let e=r.length;if(!x$(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),K2e=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Y8(Uint8Array)),G2e=o((r,e)=>{let n=(r&&r[FD]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},"forEachEntry"),X2e=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),W2e=mc("HTMLFormElement"),J2e=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),y$=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Y2e=mc("RegExp"),E$=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};XC(t,(i,s)=>{let a;(a=e(i,s,r))!==!1&&(n[s]=a||i)}),Object.defineProperties(r,n)},"reduceDescriptors"),Q2e=o(r=>{E$(r,(e,t)=>{if(oo(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(oo(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),$2e=o((r,e)=>{let t={},n=o(i=>{i.forEach(s=>{t[s]=!0})},"define");return T1(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),Z2e=o(()=>{},"noop"),eIe=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function tIe(r){return!!(r&&oo(r.append)&&r[S$]==="FormData"&&r[FD])}o(tIe,"isSpecCompliantForm");var rIe=o(r=>{let e=new Array(10),t=o((n,i)=>{if(GC(n)){if(e.indexOf(n)>=0)return;if(KC(n))return n;if(!("toJSON"in n)){e[i]=n;let s=T1(n)?[]:{};return XC(n,(a,u)=>{let c=t(a,i+1);!I1(c)&&(s[u]=c)}),e[i]=void 0,s}}return n},"visit");return t(r,0)},"toJSONObject"),nIe=mc("AsyncFunction"),iIe=o(r=>r&&(GC(r)||oo(r))&&oo(r.then)&&oo(r.catch),"isThenable"),A$=((r,e)=>r?setImmediate:e?((t,n)=>(G0.addEventListener("message",({source:i,data:s})=>{i===G0&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),G0.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",oo(G0.postMessage)),sIe=typeof queueMicrotask<"u"?queueMicrotask.bind(G0):typeof process<"u"&&process.nextTick||A$,aIe=o(r=>r!=null&&oo(r[FD]),"isIterable"),oe={isArray:T1,isArrayBuffer:b$,isBuffer:KC,isFormData:B2e,isArrayBufferView:C2e,isString:E2e,isNumber:x$,isBoolean:A2e,isObject:GC,isPlainObject:LD,isEmptyObject:N2e,isReadableStream:_2e,isRequest:L2e,isResponse:F2e,isHeaders:k2e,isUndefined:I1,isDate:I2e,isFile:T2e,isBlob:R2e,isRegExp:Y2e,isFunction:oo,isStream:O2e,isURLSearchParams:P2e,isTypedArray:K2e,isFileList:D2e,forEach:XC,merge:J8,extend:j2e,trim:V2e,stripBOM:M2e,inherits:U2e,toFlatObject:q2e,kindOf:kD,kindOfTest:mc,endsWith:H2e,toArray:z2e,forEachEntry:G2e,matchAll:X2e,isHTMLForm:W2e,hasOwnProperty:y$,hasOwnProp:y$,reduceDescriptors:E$,freezeMethods:Q2e,toObjectSet:$2e,toCamelCase:J2e,noop:Z2e,toFiniteNumber:eIe,findKey:w$,global:G0,isContextDefined:C$,isSpecCompliantForm:tIe,toJSONObject:rIe,isAsyncFn:nIe,isThenable:iIe,setImmediate:A$,asap:sIe,isIterable:aIe};var Vo=class N$ extends Error{static{o(this,"AxiosError")}static from(e,t,n,i,s,a){let u=new N$(e.message,t||e.code,n,i,s);return u.cause=e,u.name=e.name,a&&Object.assign(u,a),u}constructor(e,t,n,i,s){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}};Vo.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Vo.ERR_BAD_OPTION="ERR_BAD_OPTION";Vo.ECONNABORTED="ECONNABORTED";Vo.ETIMEDOUT="ETIMEDOUT";Vo.ERR_NETWORK="ERR_NETWORK";Vo.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Vo.ERR_DEPRECATED="ERR_DEPRECATED";Vo.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Vo.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Vo.ERR_CANCELED="ERR_CANCELED";Vo.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Vo.ERR_INVALID_URL="ERR_INVALID_URL";var st=Vo;var O$=lr(D$(),1),jD=O$.default;function tV(r){return oe.isPlainObject(r)||oe.isArray(r)}o(tV,"isVisitable");function P$(r){return oe.endsWith(r,"[]")?r.slice(0,-2):r}o(P$,"removeBrackets");function B$(r,e,t){return r?r.concat(e).map(o(function(i,s){return i=P$(i),!t&&s?"["+i+"]":i},"each")).join(t?".":""):e}o(B$,"renderKey");function gIe(r){return oe.isArray(r)&&!r.some(tV)}o(gIe,"isFlatArray");var vIe=oe.toFlatObject(oe,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function yIe(r,e,t){if(!oe.isObject(r))throw new TypeError("target must be an object");e=e||new(jD||FormData),t=oe.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(x,S){return!oe.isUndefined(S[x])},"defined"));let n=t.metaTokens,i=t.visitor||p,s=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(e);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(oe.isDate(v))return v.toISOString();if(oe.isBoolean(v))return v.toString();if(!c&&oe.isBlob(v))throw new st("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(v)||oe.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}o(l,"convertValue");function p(v,x,S){let A=v;if(v&&!S&&typeof v=="object"){if(oe.endsWith(x,"{}"))x=n?x:x.slice(0,-2),v=JSON.stringify(v);else if(oe.isArray(v)&&gIe(v)||(oe.isFileList(v)||oe.endsWith(x,"[]"))&&(A=oe.toArray(v)))return x=P$(x),A.forEach(o(function(C,E){!(oe.isUndefined(C)||C===null)&&e.append(a===!0?B$([x],E,s):a===null?x:x+"[]",l(C))},"each")),!1}return tV(v)?!0:(e.append(B$(S,x,s),l(v)),!1)}o(p,"defaultVisitor");let d=[],g=Object.assign(vIe,{defaultVisitor:p,convertValue:l,isVisitable:tV});function y(v,x){if(!oe.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(v),oe.forEach(v,o(function(A,D){(!(oe.isUndefined(A)||A===null)&&i.call(e,A,oe.isString(D)?D.trim():D,x,g))===!0&&y(A,x?x.concat(D):[D])},"each")),d.pop()}}if(o(y,"build"),!oe.isObject(r))throw new TypeError("data must be an object");return y(r),e}o(yIe,"toFormData");var Cd=yIe;function _$(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,o(function(n){return e[n]},"replacer"))}o(_$,"encode");function L$(r,e){this._pairs=[],r&&Cd(r,this,e)}o(L$,"AxiosURLSearchParams");var F$=L$.prototype;F$.append=o(function(e,t){this._pairs.push([e,t])},"append");F$.toString=o(function(e){let t=e?function(n){return e.call(this,n,_$)}:_$;return this._pairs.map(o(function(i){return t(i[0])+"="+t(i[1])},"each"),"").join("&")},"toString");var k$=L$;function SIe(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(SIe,"encode");function X0(r,e,t){if(!e)return r;let n=t&&t.encode||SIe,i=oe.isFunction(t)?{serialize:t}:t,s=i&&i.serialize,a;if(s?a=s(e,i):a=oe.isURLSearchParams(e)?e.toString():new k$(e,i).toString(n),a){let u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}o(X0,"buildURL");var bIe=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,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){oe.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},rV=bIe;var Ed={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var U$=lr(require("crypto"),1);var V$=lr(require("url"),1),j$=V$.default.URLSearchParams;var nV="abcdefghijklmnopqrstuvwxyz",M$="0123456789",q$={DIGIT:M$,ALPHA:nV,ALPHA_DIGIT:nV+nV.toUpperCase()+M$},xIe=o((r=16,e=q$.ALPHA_DIGIT)=>{let t="",{length:n}=e,i=new Uint32Array(r);U$.default.randomFillSync(i);for(let s=0;s<r;s++)t+=e[i[s]%n];return t},"generateString"),H$={isNode:!0,classes:{URLSearchParams:j$,FormData:jD,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:q$,generateString:xIe,protocols:["http","https","file","data"]};var aV={};uT(aV,{hasBrowserEnv:()=>sV,hasStandardBrowserEnv:()=>wIe,hasStandardBrowserWebWorkerEnv:()=>CIe,navigator:()=>iV,origin:()=>EIe});var sV=typeof window<"u"&&typeof document<"u",iV=typeof navigator=="object"&&navigator||void 0,wIe=sV&&(!iV||["ReactNative","NativeScript","NS"].indexOf(iV.product)<0),CIe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",EIe=sV&&window.location.href||"http://localhost";var Yr={...aV,...H$};function oV(r,e){return Cd(r,new Yr.classes.URLSearchParams,{visitor:o(function(t,n,i,s){return Yr.isNode&&oe.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(oV,"toURLEncodedForm");function AIe(r){return oe.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(AIe,"parsePropPath");function NIe(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}o(NIe,"arrayToObject");function IIe(r){function e(t,n,i,s){let a=t[s++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=s>=t.length;return a=!a&&oe.isArray(i)?i.length:a,c?(oe.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!u):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),e(t,n,i[a],s)&&oe.isArray(i[a])&&(i[a]=NIe(i[a])),!u)}if(o(e,"buildPath"),oe.isFormData(r)&&oe.isFunction(r.entries)){let t={};return oe.forEachEntry(r,(n,i)=>{e(AIe(n),i,t,0)}),t}return null}o(IIe,"formDataToJSON");var MD=IIe;function TIe(r,e,t){if(oe.isString(r))try{return(e||JSON.parse)(r),oe.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(TIe,"stringifySafely");var uV={transitional:Ed,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=oe.isObject(e);if(s&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(MD(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return oV(e,this.formSerializer).toString();if((u=oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Cd(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),TIe(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=this.transitional||uV.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(n&&!this.responseType||i)){let a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?st.from(u,st.ERR_BAD_RESPONSE,this,null,this.response):u}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yr.classes.FormData,Blob:Yr.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],r=>{uV.headers[r]={}});var R1=uV;var RIe=oe.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"]),z$=o((r=>{let e={},t,n,i;return r&&r.split(`
|
|
114
114
|
`).forEach(o(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!t||e[t]&&RIe[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)},"parser")),e}),"default");var K$=Symbol("internals");function WC(r){return r&&String(r).trim().toLowerCase()}o(WC,"normalizeHeader");function UD(r){return r===!1||r==null?r:oe.isArray(r)?r.map(UD):String(r)}o(UD,"normalizeValue");function DIe(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}o(DIe,"parseTokens");var OIe=o(r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()),"isValidHeaderName");function cV(r,e,t,n,i){if(oe.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!oe.isString(e)){if(oe.isString(n))return e.indexOf(n)!==-1;if(oe.isRegExp(n))return n.test(e)}}o(cV,"matchHeaderValue");function BIe(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}o(BIe,"formatHeader");function PIe(r,e){let t=oe.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:o(function(i,s,a){return this[n].call(this,e,i,s,a)},"value"),configurable:!0})})}o(PIe,"buildAccessors");var qD=class{static{o(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,c,l){let p=WC(c);if(!p)throw new Error("header name must be a non-empty string");let d=oe.findKey(i,p);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=UD(u))}o(s,"setHeader");let a=o((u,c)=>oe.forEach(u,(l,p)=>s(l,p,c)),"setHeaders");if(oe.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(oe.isString(e)&&(e=e.trim())&&!OIe(e))a(z$(e),t);else if(oe.isObject(e)&&oe.isIterable(e)){let u={},c,l;for(let p of e){if(!oe.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[l=p[0]]=(c=u[l])?oe.isArray(c)?[...c,p[1]]:[c,p[1]]:p[1]}a(u,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=WC(e),e){let n=oe.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return DIe(i);if(oe.isFunction(t))return t.call(this,i,n);if(oe.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=WC(e),e){let n=oe.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||cV(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(a){if(a=WC(a),a){let u=oe.findKey(n,a);u&&(!t||cV(n,n[u],u,t))&&(delete n[u],i=!0)}}return o(s,"deleteHeader"),oe.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||cV(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return oe.forEach(this,(i,s)=>{let a=oe.findKey(n,s);if(a){t[a]=UD(i),delete t[s];return}let u=e?BIe(s):String(s).trim();u!==s&&delete t[s],t[u]=UD(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return oe.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&oe.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
115
115
|
`)}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,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[K$]=this[K$]={accessors:{}}).accessors,i=this.prototype;function s(a){let u=WC(a);n[u]||(PIe(i,a),n[u]=!0)}return o(s,"defineAccessor"),oe.isArray(e)?e.forEach(s):s(e),this}};qD.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(qD.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:o(()=>r,"get"),set(n){this[t]=n}}});oe.freezeMethods(qD);var oi=qD;function JC(r,e){let t=this||R1,n=e||t,i=oi.from(n.headers),s=n.data;return oe.forEach(r,o(function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),s}o(JC,"transformData");function YC(r){return!!(r&&r.__CANCEL__)}o(YC,"isCancel");var _Ie=class extends st{static{o(this,"CanceledError")}constructor(e,t,n){super(e??"canceled",st.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}},jo=_Ie;function jl(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new st("Request failed with status code "+t.status,[st.ERR_BAD_REQUEST,st.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}o(jl,"settle");function lV(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}o(lV,"isAbsoluteURL");function fV(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}o(fV,"combineURLs");function W0(r,e,t){let n=!lV(e);return r&&(n||t==!1)?fV(r,e):e}o(W0,"buildFullPath");var oZ=lr(gF(),1),uZ=lr(require("http"),1),cZ=lr(require("https"),1),gV=lr(require("http2"),1),vV=lr(require("util"),1),lZ=lr(RF(),1),ip=lr(require("zlib"),1);var J0="1.13.5";function QC(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}o(QC,"parseProtocol");var LIe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function pV(r,e,t){let n=t&&t.Blob||Yr.classes.Blob,i=QC(r);if(e===void 0&&n&&(e=!0),i==="data"){r=i.length?r.slice(i.length+1):r;let s=LIe.exec(r);if(!s)throw new st("Invalid URL",st.ERR_INVALID_URL);let a=s[1],u=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),u?"base64":"utf8");if(e){if(!n)throw new st("Blob is not supported",st.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new st("Unsupported protocol "+i,st.ERR_NOT_SUPPORT)}o(pV,"fromDataURI");var np=lr(require("stream"),1);var G$=lr(require("stream"),1);var hV=Symbol("internals"),FIe=class extends G$.default.Transform{static{o(this,"AxiosTransformStream")}constructor(e){e=oe.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!oe.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let t=this[hV]={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"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[hV];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let i=this[hV],s=i.maxRate,a=this.readableHighWaterMark,u=i.timeWindow,c=1e3/u,l=s/c,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0,d=o((y,v)=>{let x=Buffer.byteLength(y);i.bytesSeen+=x,i.bytes+=x,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(y)?process.nextTick(v):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(v)}},"pushChunk"),g=o((y,v)=>{let x=Buffer.byteLength(y),S=null,A=a,D,C=0;if(s){let E=Date.now();(!i.ts||(C=E-i.ts)>=u)&&(i.ts=E,D=l-i.bytes,i.bytes=D<0?-D:0,C=0),D=l-i.bytes}if(s){if(D<=0)return setTimeout(()=>{v(null,y)},u-C);D<A&&(A=D)}A&&x>A&&x-A>p&&(S=y.subarray(A),y=y.subarray(0,A)),d(y,S?()=>{process.nextTick(v,null,S)}:v)},"transformChunk");g(e,o(function y(v,x){if(v)return n(v);x?g(x,y):n(null)},"transformNextChunk"))}},dV=FIe;var fZ=require("events");var W$=lr(require("util"),1),J$=require("stream");var{asyncIterator:X$}=Symbol,kIe=o(async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[X$]?yield*r[X$]():yield r},"readBlob"),HD=kIe;var VIe=Yr.ALPHABET.ALPHA_DIGIT+"-_",$C=typeof TextEncoder=="function"?new TextEncoder:new W$.default.TextEncoder,Y0=`\r
|
|
@@ -129,7 +129,7 @@ ${e.join(`
|
|
|
129
129
|
<?`):this.result.push("<?"),this.result.push(t),e.nodeValue&&(this.result.push(" "),this.result.push(this.NormalizeString(e.nodeValue,ar.ProcessingInstruction))),this.state===Go.BeforeDocElement?this.result.push(`?>
|
|
130
130
|
`):this.result.push("?>"))}WriteElementNode(e){let t=this.state;this.state===Go.BeforeDocElement&&(this.state=Go.InsideDocElement),this.result.push("<"),this.result.push(e.nodeName);let n=this.WriteNamespacesAxis(e);this.WriteAttributesAxis(e),this.result.push(">");for(let i=e.firstChild;i!=null;i=i.nextSibling)this.WriteNode(i);for(this.result.push("</"),this.result.push(e.nodeName),this.result.push(">"),t===Go.BeforeDocElement&&(this.state=Go.AfterDocElement);n--;)this.visibleNamespaces.Pop()}WriteNamespacesAxis(e){let t=[],n=0;for(let s=0;s<e.attributes.length;s++){let a=e.attributes[s];if(!lM(a)){if(a.prefix&&!this.IsNamespaceRendered(a.prefix,a.namespaceURI)){let p={prefix:a.prefix,namespace:a.namespaceURI};t.push(p),this.visibleNamespaces.Add(p),n++}continue}if(a.localName==="xmlns"&&!a.prefix&&!a.nodeValue){let p={prefix:a.prefix,namespace:a.nodeValue};t.push(p),this.visibleNamespaces.Add(p),n++}let u=null,c;(c=/xmlns:([\w.-]+)/.exec(a.nodeName))&&(u=c[1]);let l=!0;if(this.exclusive&&!this.IsNamespaceInclusive(e,u)){let p=jne(e,u);if(p>1)l=!1;else if(p===0)continue}if(!this.IsNamespaceRendered(u,a.nodeValue)&&l){let p={prefix:u,namespace:a.nodeValue};t.push(p),this.visibleNamespaces.Add(p),n++}}if(!this.IsNamespaceRendered(e.prefix,e.namespaceURI)&&e.namespaceURI!=="http://www.w3.org/2000/xmlns/"){let s={prefix:e.prefix,namespace:e.namespaceURI};t.push(s),this.visibleNamespaces.Add(s),n++}t.sort(sBe);let i=null;return t.forEach(s=>{s.prefix!==i&&(i=s.prefix,this.result.push(" xmlns"),s.prefix&&this.result.push(":"+s.prefix),this.result.push('="'),this.result.push(s.namespace||""),this.result.push('"'))}),n}WriteAttributesAxis(e){let t=[];for(let n=0;n<e.attributes.length;n++){let i=e.attributes[n];lM(i)||t.push(i)}t.sort(aBe),t.forEach(n=>{n!=null&&(this.result.push(" "),this.result.push(n.nodeName),this.result.push('="'),this.result.push(this.NormalizeString(n.nodeValue,ar.Attribute)),this.result.push('"'))})}NormalizeString(e,t){let n=[];if(e)for(let i=0;i<e.length;i++){let s=e[i];s==="<"&&(t===ar.Attribute||this.IsTextNode(t))?n.push("<"):s===">"&&this.IsTextNode(t)?n.push(">"):s==="&"&&(t===ar.Attribute||this.IsTextNode(t))?n.push("&"):s==='"'&&t===ar.Attribute?n.push("""):s===" "&&t===ar.Attribute?n.push("	"):s===`
|
|
131
131
|
`&&t===ar.Attribute?n.push("
"):s==="\r"?n.push("
"):n.push(s)}return n.join("")}IsTextNode(e){switch(e){case ar.Text:case ar.CDATA:case ar.SignificantWhitespace:case ar.Whitespace:return!0}return!1}IsNamespaceInclusive(e,t){let n=t||null;return e.prefix===n?!1:this.inclusiveNamespacesPrefixList.indexOf(n||"")!==-1}IsNamespaceRendered(e,t){if(e=e||"",t=t||"",!e&&!t||e==="xml"&&t==="http://www.w3.org/XML/1998/namespace")return!0;let n=this.visibleNamespaces.GetPrefix(e);return n?n.namespace===t:!1}};function sBe(r,e){return r==e?0:r?e?r.prefix?e.prefix?r.prefix<e.prefix?-1:r.prefix>e.prefix?1:0:1:-1:1:-1}o(sBe,"XmlDsigC14NTransformNamespacesComparer");function aBe(r,e){if(!r.namespaceURI&&e.namespaceURI)return-1;if(!e.namespaceURI&&r.namespaceURI)return 1;let t=(r.namespaceURI||"")+r.localName,n=(e.namespaceURI||"")+e.localName;return t===n?0:t<n?-1:1}o(aBe,"XmlDsigC14NTransformAttributesComparer");function jne(r,e,t=0){let n=e||null;if(r.prefix===n)return++t;if(r.attributes)for(let i=0;i<r.attributes.length;i++){let s=r.attributes[i];if(!lM(s)&&e&&r.attributes[i].prefix===e)return++t}for(let i=r.firstChild;i;i=i.nextSibling)if(i.nodeType===ar.Element){let a=jne(i,e,t);if(i.nodeType===ar.Element&&a)return++t+a}return t}o(jne,"IsNamespaceUsed");function lM(r){let e=/xmlns:/;return!!(r!==null&&r.nodeType===ar.Attribute&&(r.nodeName==="xmlns"||e.test(r.nodeName)))}o(lM,"IsNamespaceNode");var n_=class extends Vu{static{o(this,"SignatureMethodOther")}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(n.nodeType!==ar.Element||n.nodeName===we.ElementNames.HMACOutputLength)continue;let i;switch(n.localName){case we.ElementNames.RSAPSSParams:i=Dc;break;default:break}if(i){let s=new i;s.LoadXml(n),this.Add(s)}}}};n_=et([or({localName:"Other"})],n_);var $l=class extends Wn{static{o(this,"SignatureMethod")}};et([Rn({localName:we.AttributeNames.Algorithm,required:!0,defaultValue:""}),wt("design:type",String)],$l.prototype,"Algorithm",void 0);et([vr({localName:we.ElementNames.HMACOutputLength,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,converter:aE}),wt("design:type",Number)],$l.prototype,"HMACOutputLength",void 0);et([vr({parser:n_,noRoot:!0,minOccurs:0}),wt("design:type",n_)],$l.prototype,"Any",void 0);$l=et([or({localName:we.ElementNames.SignatureMethod})],$l);var Wb=class extends Wn{static{o(this,"CanonicalizationMethod")}};et([Rn({localName:we.AttributeNames.Algorithm,required:!0,defaultValue:we.DefaultCanonMethod}),wt("design:type",String)],Wb.prototype,"Algorithm",void 0);Wb=et([or({localName:we.ElementNames.CanonicalizationMethod})],Wb);var Jb=class extends Wn{static{o(this,"DataObject")}};et([Rn({localName:we.AttributeNames.Id,defaultValue:""}),wt("design:type",String)],Jb.prototype,"Id",void 0);et([Rn({localName:we.AttributeNames.MimeType,defaultValue:""}),wt("design:type",String)],Jb.prototype,"MimeType",void 0);et([Rn({localName:we.AttributeNames.Encoding,defaultValue:""}),wt("design:type",String)],Jb.prototype,"Encoding",void 0);Jb=et([or({localName:we.ElementNames.Object})],Jb);var g2=class extends Vu{static{o(this,"DataObjects")}};g2=et([or({localName:"xmldsig_objects",parser:Jb})],g2);var ha=class extends Wn{static{o(this,"Transform")}constructor(){super(...arguments),this.innerXml=null}GetOutput(){throw new $e(Fe.METHOD_NOT_IMPLEMENTED)}LoadInnerXml(e){if(!e)throw new $e(Fe.PARAM_REQUIRED,"node");this.innerXml=e}GetInnerXml(){return this.innerXml}};et([Rn({localName:we.AttributeNames.Algorithm,defaultValue:""}),wt("design:type",String)],ha.prototype,"Algorithm",void 0);et([vr({localName:we.ElementNames.XPath,defaultValue:""}),wt("design:type",String)],ha.prototype,"XPath",void 0);ha=et([or({localName:we.ElementNames.Transform})],ha);var _p=class extends ha{static{o(this,"XmlDsigBase64Transform")}constructor(){super(...arguments),this.Algorithm=we.AlgorithmNamespaces.XmlDsigBase64Transform}GetOutput(){if(!this.innerXml)throw new $e(Fe.PARAM_REQUIRED,"innerXml");return rn.FromString(this.innerXml.textContent||"","base64")}};var Zl=class extends ha{static{o(this,"XmlDsigC14NTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",this.xmlCanonicalizer=new Ql(!1,!1)}GetOutput(){if(!this.innerXml)throw new $e(Fe.PARAM_REQUIRED,"innerXml");return this.xmlCanonicalizer.Canonicalize(this.innerXml)}},ef=class extends Zl{static{o(this,"XmlDsigC14NWithCommentsTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments",this.xmlCanonicalizer=new Ql(!0,!1)}};var Lp=class extends ha{static{o(this,"XmlDsigEnvelopedSignatureTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"}GetOutput(){if(!this.innerXml)throw new $e(Fe.PARAM_REQUIRED,"innerXml");let e=this.innerXml.firstChild,t=[];for(;e;)Uo(e)&&e.localName===we.ElementNames.Signature&&e.namespaceURI===we.NamespaceURI&&t.push(e),e=e.nextSibling;for(let n of t)n.parentNode?.removeChild(n);return this.innerXml}};var tf=class extends ha{static{o(this,"XmlDsigExcC14NTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#",this.xmlCanonicalizer=new Ql(!1,!0)}get InclusiveNamespacesPrefixList(){return this.xmlCanonicalizer.InclusiveNamespacesPrefixList}set InclusiveNamespacesPrefixList(e){this.xmlCanonicalizer.InclusiveNamespacesPrefixList=e}LoadXml(e){if(super.LoadXml(e),this.Element&&this.Element.childNodes)for(let t=0;t<this.Element.childNodes.length;t++){let n=this.Element.childNodes[t];if(n&&n.nodeType===1)switch(n.localName){case"InclusiveNamespaces":this.setInclusiveNamespacesElement(n);break}}}GetOutput(){if(!this.innerXml)throw new $e(Fe.PARAM_REQUIRED,"innerXml");return this.xmlCanonicalizer.Canonicalize(this.innerXml)}setInclusiveNamespacesElement(e){let t=e.getAttribute("PrefixList");t&&t.length>0&&(this.xmlCanonicalizer.InclusiveNamespacesPrefixList=t)}},rf=class extends tf{static{o(this,"XmlDsigExcC14NWithCommentsTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments",this.xmlCanonicalizer=new Ql(!0,!0)}};function Mne(r){return r.parentNode?Mne(r.parentNode):r}o(Mne,"lookupParentNode");var Yb=class extends ha{static{o(this,"XmlDsigXPathTransform")}constructor(){super(...arguments),this.Algorithm=we.AlgorithmNamespaces.XmlDsigXPathTransform}GetOutput(){if(!this.innerXml)throw new $e(Fe.PARAM_REQUIRED,"innerXml");this.Filter(Mne(this.innerXml),this.XPath)}Filter(e,t){let n=e.childNodes,i=[];for(let s=0;n&&s<n.length;s++){let a=n.item(s);i.push(a)}i.forEach(s=>{this.Evaluate(s,t)?s.parentNode&&s.parentNode.removeChild(s):this.Filter(s,t)})}GetEvaluator(e){return typeof self<"u"?e.ownerDocument==null?e:e.ownerDocument:P1("xpath")}Evaluate(e,t){try{let n=this.GetEvaluator(e),i=this.GetXml();if(!i||!i.firstChild)throw new Error("XML element or firstChild is not defined");let s=i.firstChild,a=`boolean(${t})`,u=typeof self>"u"?P1("xpath"):self;return!n.evaluate(a,e,{lookupNamespaceURI:o(l=>s.lookupNamespaceURI(l),"lookupNamespaceURI")},u.XPathResult.ANY_TYPE,null).booleanValue}catch{return!1}}};et([vr({localName:we.ElementNames.XPath,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,required:!0}),wt("design:type",String)],Yb.prototype,"XPath",void 0);var Qb=class extends Vu{static{o(this,"Transforms")}OnLoadXml(e){super.OnLoadXml(e),this.items=this.GetIterator().map(t=>{switch(t.Algorithm){case we.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform:return Pv(t,Lp);case we.AlgorithmNamespaces.XmlDsigC14NTransform:return Pv(t,Zl);case we.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform:return Pv(t,ef);case we.AlgorithmNamespaces.XmlDsigExcC14NTransform:return Pv(t,tf);case we.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform:return Pv(t,rf);case we.AlgorithmNamespaces.XmlDsigBase64Transform:return Pv(t,_p);case we.AlgorithmNamespaces.XmlDsigXPathTransform:return Pv(t,Yb);default:try{let n=v2.CreateFromName(t.Algorithm);if(!t.Element)throw new Error("Transform element is not defined");return n.LoadXml(t.Element),n}catch{throw new $e(Fe.CRYPTOGRAPHIC_UNKNOWN_TRANSFORM,t.Algorithm)}}})}};Qb=et([or({localName:we.ElementNames.Transforms,parser:ha})],Qb);function Pv(r,e){let t=new e;if(!r.Element)throw new Error("Transform element is not defined");return t.LoadXml(r.Element),t}o(Pv,"ChangeTransform");var nf=class extends Wn{static{o(this,"Reference")}constructor(e){super(),this.DigestMethod=new ju,e&&(this.Uri=e)}};et([Rn({defaultValue:""}),wt("design:type",String)],nf.prototype,"Id",void 0);et([Rn({localName:we.AttributeNames.URI}),wt("design:type",String)],nf.prototype,"Uri",void 0);et([Rn({localName:we.AttributeNames.Type,defaultValue:""}),wt("design:type",String)],nf.prototype,"Type",void 0);et([vr({parser:Qb}),wt("design:type",Qb)],nf.prototype,"Transforms",void 0);et([vr({required:!0,parser:ju}),wt("design:type",ju)],nf.prototype,"DigestMethod",void 0);et([vr({required:!0,localName:we.ElementNames.DigestValue,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,converter:Du}),wt("design:type",Uint8Array)],nf.prototype,"DigestValue",void 0);nf=et([or({localName:we.ElementNames.Reference}),wt("design:paramtypes",[String])],nf);var $b=class extends Vu{static{o(this,"References")}};$b=et([or({localName:"References",parser:nf})],$b);var Fp=class extends Wn{static{o(this,"SignedInfo")}};et([Rn({localName:we.AttributeNames.Id,defaultValue:""}),wt("design:type",String)],Fp.prototype,"Id",void 0);et([vr({parser:Wb,required:!0}),wt("design:type",Wb)],Fp.prototype,"CanonicalizationMethod",void 0);et([vr({parser:$l,required:!0}),wt("design:type",$l)],Fp.prototype,"SignatureMethod",void 0);et([vr({parser:$b,minOccurs:1,noRoot:!0}),wt("design:type",$b)],Fp.prototype,"References",void 0);Fp=et([or({localName:we.ElementNames.SignedInfo})],Fp);var rx="http://www.w3.org/2001/04/xmldsig-more#",nx="ecdsa",_v=class extends co{static{o(this,"EcdsaPublicKey")}};et([vr({localName:we.ElementNames.X,namespaceURI:rx,prefix:nx,required:!0,converter:Du}),wt("design:type",Uint8Array)],_v.prototype,"X",void 0);et([vr({localName:we.ElementNames.Y,namespaceURI:rx,prefix:nx,required:!0,converter:Du}),wt("design:type",Uint8Array)],_v.prototype,"Y",void 0);_v=et([or({localName:we.ElementNames.PublicKey,namespaceURI:rx,prefix:nx})],_v);var Zb=class extends co{static{o(this,"NamedCurve")}};et([Rn({localName:we.AttributeNames.URI,required:!0}),wt("design:type",String)],Zb.prototype,"Uri",void 0);Zb=et([or({localName:we.ElementNames.NamedCurve,namespaceURI:rx,prefix:nx})],Zb);var ex=class extends co{static{o(this,"DomainParameters")}};et([vr({parser:Zb}),wt("design:type",Zb)],ex.prototype,"NamedCurve",void 0);ex=et([or({localName:we.ElementNames.DomainParameters,namespaceURI:rx,prefix:nx})],ex);var tx=class extends Ko{static{o(this,"EcdsaKeyValue")}constructor(){super(...arguments),this.name=we.ElementNames.ECDSAKeyValue,this.key=null,this.jwk=null,this.keyUsage=null}static canImportCryptoKey(e){return e.algorithm.name.toUpperCase()===Bp.toUpperCase()}get NamedCurve(){return qne(this.DomainParameters.NamedCurve.Uri)}async importKey(e){if(!e.algorithm.name||e.algorithm.name.toUpperCase()!=="ECDSA")throw new $e(Fe.ALGORITHM_WRONG_NAME,e.algorithm.name);let t=await Mi.crypto.subtle.exportKey("jwk",e);return this.key=e,this.jwk=t,this.PublicKey=new _v,this.PublicKey.X=rn.FromString(t.x||"","base64url"),this.PublicKey.Y=rn.FromString(t.y||"","base64url"),this.DomainParameters||(this.DomainParameters=new ex),this.DomainParameters.NamedCurve||(this.DomainParameters.NamedCurve=new Zb),this.DomainParameters.NamedCurve.Uri=qne(t.crv||""),this.keyUsage=e.usages,this}async exportKey(e){if(this.key)return this.key;let t=rn.ToBase64Url(this.PublicKey.X),n=rn.ToBase64Url(this.PublicKey.Y),i=oBe(this.DomainParameters.NamedCurve.Uri),s={kty:"EC",crv:i,x:t,y:n,ext:!0};this.keyUsage=["verify"];let a=await Mi.crypto.subtle.importKey("jwk",s,{name:"ECDSA",namedCurve:i},!0,this.keyUsage);return this.key=a,this.key}};et([vr({parser:ex}),wt("design:type",ex)],tx.prototype,"DomainParameters",void 0);et([vr({parser:_v,required:!0}),wt("design:type",_v)],tx.prototype,"PublicKey",void 0);tx=et([or({localName:we.ElementNames.ECDSAKeyValue,namespaceURI:rx,prefix:nx})],tx);function qne(r){switch(r){case"P-256":return"urn:oid:1.2.840.10045.3.1.7";case"P-384":return"urn:oid:1.3.132.0.34";case"P-521":return"urn:oid:1.3.132.0.35"}throw new $e(Fe.CRYPTOGRAPHIC,"Unknown NamedCurve")}o(qne,"GetNamedCurveOid");function oBe(r){switch(r){case"urn:oid:1.2.840.10045.3.1.7":return"P-256";case"urn:oid:1.3.132.0.34":return"P-384";case"urn:oid:1.3.132.0.35":return"P-521"}throw new $e(Fe.CRYPTOGRAPHIC,"Unknown NamedCurve OID")}o(oBe,"GetNamedCurveFromOid");var uBe=class extends Map{static{o(this,"KeyInfoClauseRegistry")}},Pm=new uBe;Pm.set(we.ElementNames.RSAKeyValue,Gb);Pm.set(we.ElementNames.ECDSAKeyValue,tx);var i_=class{static{o(this,"KeyInfoClauseFactory")}static create(e){let t=Pm.get(e);if(!t)throw new $e(Fe.KEY_INFO_CLAUSE_NOT_SUPPORTED,e);return new t}};var y2=class extends Ko{static{o(this,"KeyValue")}set Value(e){this.element=null,this.value=e}get Value(){return this.value}constructor(e){super(),e&&(this.Value=e)}async importKey(e){for(let[,t]of Pm)if(t.canImportCryptoKey(e)){let n=new t;return await n.importKey(e),this.Value=n,this}throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e.algorithm.name)}async exportKey(e){if(!this.Value)throw new $e(Fe.NULL_REFERENCE);return this.Value.exportKey(e)}OnGetXml(e){if(!this.Value)throw new $e(Fe.CRYPTOGRAPHIC,"KeyValue has empty value");let t=this.Value.GetXml();t&&e.appendChild(t)}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(Uo(n))try{let i=n.localName,s=i_.create(i);s.LoadXml(n),this.value=s;return}catch{}}throw new $e(Fe.CRYPTOGRAPHIC,"Unsupported KeyValue in use")}};y2=et([or({localName:we.ElementNames.KeyValue}),wt("design:paramtypes",[Ko])],y2);var cBe={"2.5.4.3":{short:"CN",long:"CommonName"},"2.5.4.6":{short:"C",long:"Country"},"2.5.4.5":{long:"DeviceSerialNumber"},"0.9.2342.19200300.100.1.25":{short:"DC",long:"DomainComponent"},"1.2.840.113549.1.9.1":{short:"E",long:"EMail"},"2.5.4.42":{short:"G",long:"GivenName"},"2.5.4.43":{short:"I",long:"Initials"},"2.5.4.7":{short:"L",long:"Locality"},"2.5.4.10":{short:"O",long:"Organization"},"2.5.4.11":{short:"OU",long:"OrganizationUnit"},"2.5.4.8":{short:"ST",long:"State"},"2.5.4.9":{short:"Street",long:"StreetAddress"},"2.5.4.4":{short:"SN",long:"SurName"},"2.5.4.12":{short:"T",long:"Title"},"1.2.840.113549.1.9.8":{long:"UnstructuredAddress"},"1.2.840.113549.1.9.2":{long:"UnstructuredName"}},ix=class{static{o(this,"X509Certificate")}constructor(e){if(this.publicKey=null,e){let t=new Uint8Array(e);this.LoadRaw(t),this.raw=t}}get SerialNumber(){return this.simpl.serialNumber.valueBlock.toString()}get Issuer(){return this.NameToString(this.simpl.issuer)}get Subject(){return this.NameToString(this.simpl.subject)}async Thumbprint(e="SHA-1"){return Mi.crypto.subtle.digest(e,this.raw)}get PublicKey(){return this.publicKey}GetRaw(){return this.raw}async exportKey(e){if(e){let t={algorithm:e,usages:["verify"]};if(t.algorithm.name.toUpperCase()===Bp){let i=this.simpl.subjectPublicKeyInfo.toJSON();if("crv"in i&&i.crv)t.algorithm.namedCurve=i.crv;else throw new Error("Cannot get Curved name from the ECDSA public key")}this.isHashedAlgorithm(t.algorithm)&&typeof t.algorithm.hash=="string"&&(t.algorithm.hash={name:t.algorithm.hash});let n=await this.simpl.getPublicKey({algorithm:t});return this.publicKey=n,n}return this.simpl.subjectPublicKeyInfo.algorithm.algorithmId==="1.2.840.113549.1.1.1"?this.publicKey=await this.simpl.getPublicKey({algorithm:{algorithm:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},usages:["verify"]}}):this.publicKey=await this.simpl.getPublicKey(),this.publicKey}NameToString(e,t=","){let n=[];return e.typesAndValues.forEach(i=>{let s=i.type,a=cBe[s.toString()],u=a?a.short:null;n.push(`${u||s}=${i.value.valueBlock.value}`)}),n.join(t+" ")}LoadRaw(e){this.raw=new Uint8Array(e);let t=ui(this.raw.buffer);this.simpl=new pa({schema:t.result})}isHashedAlgorithm(e){return!!e.hash}};var s_=class extends Wn{static{o(this,"X509IssuerSerial")}};et([vr({localName:we.ElementNames.X509IssuerName,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,required:!0}),wt("design:type",String)],s_.prototype,"X509IssuerName",void 0);et([vr({localName:we.ElementNames.X509SerialNumber,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,required:!0}),wt("design:type",String)],s_.prototype,"X509SerialNumber",void 0);s_=et([or({localName:we.ElementNames.X509IssuerSerial})],s_);var Lv;(function(r){r[r.None=0]="None",r[r.EndCertOnly=1]="EndCertOnly",r[r.ExcludeRoot=2]="ExcludeRoot",r[r.WholeChain=3]="WholeChain"})(Lv||(Lv={}));var sx=class extends Ko{static{o(this,"KeyInfoX509Data")}constructor(e,t=Lv.None){if(super(),this.x509crl=null,this.SubjectKeyIdList=[],e){if(e instanceof Uint8Array)this.AddCertificate(new ix(e));else if(e instanceof ix)switch(t){case Lv.None:case Lv.EndCertOnly:this.AddCertificate(e);break;case Lv.ExcludeRoot:this.AddCertificatesChainFrom(e,!1);break;case Lv.WholeChain:this.AddCertificatesChainFrom(e,!0);break}}}async importKey(e){throw new $e(Fe.METHOD_NOT_SUPPORTED)}async exportKey(e){if(!this.Certificates.length)throw new $e(Fe.NULL_REFERENCE);return this.Key=await this.Certificates[0].exportKey(e),this.Key}get Certificates(){return this.X509CertificateList}get CRL(){return this.x509crl}set CRL(e){this.x509crl=e}get IssuerSerials(){return this.IssuerSerialList}get SubjectKeyIds(){return this.SubjectKeyIdList}get SubjectNames(){return this.SubjectNameList}AddCertificate(e){if(!e)throw new $e(Fe.PARAM_REQUIRED,"certificate");this.X509CertificateList||(this.X509CertificateList=[]),this.X509CertificateList.push(e)}AddIssuerSerial(e,t){if(e==null)throw new $e(Fe.PARAM_REQUIRED,"issuerName");this.IssuerSerialList==null&&(this.IssuerSerialList=[]);let n={issuerName:e,serialNumber:t};this.IssuerSerialList.push(n)}AddSubjectKeyId(e){if(this.SubjectKeyIdList&&(this.SubjectKeyIdList=[]),typeof e=="string"){if(e!=null){let t=rn.FromBase64(e);this.SubjectKeyIdList.push(t)}}else this.SubjectKeyIdList.push(e)}AddSubjectName(e){this.SubjectNameList==null&&(this.SubjectNameList=[]),this.SubjectNameList.push(e)}GetXml(){let e=this.CreateDocument(),t=this.CreateElement(e),n=this.GetPrefix();if(this.IssuerSerialList!=null&&this.IssuerSerialList.length>0&&this.IssuerSerialList.forEach(i=>{let s=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509IssuerSerial),a=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509IssuerName);a.textContent=i.issuerName,s.appendChild(a);let u=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509SerialNumber);u.textContent=i.serialNumber,s.appendChild(u),t.appendChild(s)}),this.SubjectKeyIdList!=null&&this.SubjectKeyIdList.length>0&&this.SubjectKeyIdList.forEach(i=>{let s=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509SKI);s.textContent=rn.ToBase64(i),t.appendChild(s)}),this.SubjectNameList!=null&&this.SubjectNameList.length>0&&this.SubjectNameList.forEach(i=>{let s=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509SubjectName);s.textContent=i,t.appendChild(s)}),this.X509CertificateList!=null&&this.X509CertificateList.length>0&&this.X509CertificateList.forEach(i=>{let s=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509Certificate);s.textContent=rn.ToBase64(i.GetRaw()),t.appendChild(s)}),this.x509crl!=null){let i=e.createElementNS(we.NamespaceURI,n+we.ElementNames.X509CRL);i.textContent=rn.ToBase64(this.x509crl),t.appendChild(i)}return t}LoadXml(e){super.LoadXml(e),this.IssuerSerialList&&(this.IssuerSerialList=[]),this.SubjectKeyIdList&&(this.SubjectKeyIdList=[]),this.SubjectNameList&&(this.SubjectNameList=[]),this.X509CertificateList&&(this.X509CertificateList=[]),this.x509crl=null;let t=this.GetChildren(we.ElementNames.X509IssuerSerial);t&&t.forEach(i=>{let s=Wn.GetChild(i,we.ElementNames.X509IssuerName,we.NamespaceURI,!0),a=Wn.GetChild(i,we.ElementNames.X509SerialNumber,we.NamespaceURI,!0);s&&s.textContent&&a&&a.textContent&&this.AddIssuerSerial(s.textContent,a.textContent)}),t=this.GetChildren(we.ElementNames.X509SKI),t&&t.forEach(i=>{if(i.textContent){let s=rn.FromBase64(i.textContent);this.AddSubjectKeyId(s)}}),t=this.GetChildren(we.ElementNames.X509SubjectName),t?.forEach(i=>{i.textContent&&this.AddSubjectName(i.textContent)}),t=this.GetChildren(we.ElementNames.X509Certificate),t&&t.forEach(i=>{if(i.textContent){let s=rn.FromBase64(i.textContent);this.AddCertificate(new ix(s))}});let n=this.GetChild(we.ElementNames.X509CRL,!1);n&&n.textContent&&(this.x509crl=rn.FromBase64(n.textContent))}AddCertificatesChainFrom(e,t){}};sx=et([or({localName:we.ElementNames.X509Data}),wt("design:paramtypes",[Object,Object])],sx);var S2=class extends Ko{static{o(this,"SPKIData")}async importKey(e){let t=await Mi.crypto.subtle.exportKey("spki",e);return this.SPKIexp=new Uint8Array(t),this.Key=e,this}async exportKey(e){if(!this.SPKIexp)throw new Error("SPKI data is not defined");let t=await Mi.crypto.subtle.importKey("spki",this.SPKIexp,e,!0,["verify"]);return this.Key=t,t}};et([vr({localName:we.ElementNames.SPKIexp,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,required:!0,converter:Du}),wt("design:type",Object)],S2.prototype,"SPKIexp",void 0);S2=et([or({localName:we.ElementNames.SPKIData})],S2);var Fv=class extends Vu{static{o(this,"KeyInfo")}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(n.nodeType!==ar.Element)continue;let i=null;switch(n.localName){case we.ElementNames.KeyValue:i=y2;break;case we.ElementNames.X509Data:i=sx;break;case we.ElementNames.SPKIData:i=S2;break;case we.ElementNames.KeyName:case we.ElementNames.RetrievalMethod:case we.ElementNames.PGPData:case we.ElementNames.MgmtData:}if(i){let s=new i;s.LoadXml(n),this.Add(s)}}}};et([Rn({localName:we.AttributeNames.Id,defaultValue:""}),wt("design:type",String)],Fv.prototype,"Id",void 0);Fv=et([or({localName:we.ElementNames.KeyInfo})],Fv);var _m=class extends Wn{static{o(this,"Signature")}};et([Rn({localName:we.AttributeNames.Id,defaultValue:""}),wt("design:type",String)],_m.prototype,"Id",void 0);et([vr({parser:Fp,required:!0}),wt("design:type",Fp)],_m.prototype,"SignedInfo",void 0);et([vr({localName:we.ElementNames.SignatureValue,namespaceURI:we.NamespaceURI,prefix:we.DefaultPrefix,required:!0,converter:Du,defaultValue:null}),wt("design:type",Object)],_m.prototype,"SignatureValue",void 0);et([vr({parser:Fv}),wt("design:type",Fv)],_m.prototype,"KeyInfo",void 0);et([vr({parser:g2,noRoot:!0}),wt("design:type",g2)],_m.prototype,"ObjectList",void 0);_m=et([or({localName:we.ElementNames.Signature})],_m);var fBe=class extends Map{static{o(this,"AlgorithmRegistry")}},Kr=new fBe;Kr.set(QP,{type:"signature",algorithm:qb});Kr.set($P,{type:"signature",algorithm:Hb});Kr.set(ZP,{type:"signature",algorithm:zb});Kr.set(e_,{type:"signature",algorithm:Kb});Kr.set(QP,{type:"signature",algorithm:qb});Kr.set($P,{type:"signature",algorithm:Hb});Kr.set(ZP,{type:"signature",algorithm:zb});Kr.set(e_,{type:"signature",algorithm:Kb});Kr.set(cM,{type:"signature",algorithm:r_});Kr.set(KP,{type:"signature",algorithm:kb});Kr.set(GP,{type:"signature",algorithm:Vb});Kr.set(XP,{type:"signature",algorithm:jb});Kr.set(WP,{type:"signature",algorithm:Mb});Kr.set(KP.toUpperCase(),{type:"signature",algorithm:kb});Kr.set(GP.toUpperCase(),{type:"signature",algorithm:Vb});Kr.set(XP.toUpperCase(),{type:"signature",algorithm:jb});Kr.set(WP.toUpperCase(),{type:"signature",algorithm:Mb});Kr.set(nM,{type:"signature",algorithm:p2});Kr.set(iM,{type:"signature",algorithm:h2});Kr.set(sM,{type:"signature",algorithm:d2});Kr.set(aM,{type:"signature",algorithm:m2});Kr.set(Pb,{type:"hash",algorithm:qP});Kr.set(_b,{type:"hash",algorithm:f2});Kr.set(Lb,{type:"hash",algorithm:HP});Kr.set(Fb,{type:"hash",algorithm:zP});var kv=class{static{o(this,"AlgorithmFactory")}static createHashAlgorithmFromNamespace(e){for(let[t,{type:n,algorithm:i}]of Kr)if(n==="hash"&&t===e)return new i;throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e)}static createSignatureAlgorithmFromMethod(e){for(let[t,{type:n,algorithm:i}]of Kr)if(n==="signature"&&e.Algorithm===t){let s=new i;return s.fromMethod&&s.fromMethod(e),s}throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e.Algorithm)}static createHashAlgorithmFromAlgorithm(e){for(let[,{type:t,algorithm:n}]of Kr)if(t==="hash"){let i=new n;if(i.algorithm.name.toUpperCase()===e.name.toUpperCase())return i}throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e.name)}static createSignatureAlgorithmFromAlgorithm(e){for(let[,{type:t,algorithm:n}]of Kr)if(t==="signature"){let i=n.fromAlgorithm(e);if(i)return i}throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e.name)}};var pBe=class extends Map{static{o(this,"TransformRegistry")}},kp=new pBe;kp.set(we.AlgorithmNamespaces.XmlDsigBase64Transform,_p);kp.set(we.AlgorithmNamespaces.XmlDsigC14NTransform,Zl);kp.set(we.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform,ef);kp.set(we.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform,Lp);kp.set(we.AlgorithmNamespaces.XmlDsigExcC14NTransform,tf);kp.set(we.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform,rf);var v2=class{static{o(this,"CryptoConfig")}static CreateFromName(e){if(!e)throw new $e(Fe.PARAM_REQUIRED,"name");let t=kp.get(e);if(t)return new t;let n;switch(e){case we.AlgorithmNamespaces.XmlDsigBase64Transform:n=new _p;break;case we.AlgorithmNamespaces.XmlDsigC14NTransform:n=new Zl;break;case we.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform:n=new ef;break;case we.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform:n=new Lp;break;case we.AlgorithmNamespaces.XmlDsigXPathTransform:throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e);case we.AlgorithmNamespaces.XmlDsigXsltTransform:throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e);case we.AlgorithmNamespaces.XmlDsigExcC14NTransform:n=new tf;break;case we.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform:n=new rf;break;case we.AlgorithmNamespaces.XmlDecryptionTransform:throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e);default:throw new $e(Fe.ALGORITHM_NOT_SUPPORTED,e)}return n}static CreateSignatureAlgorithm(e){return kv.createSignatureAlgorithmFromMethod(e)}static CreateHashAlgorithm(e){return kv.createHashAlgorithmFromNamespace(e)}static GetHashAlgorithm(e){let t=typeof e=="string"?{name:e}:e;return kv.createHashAlgorithmFromAlgorithm(t)}static GetSignatureAlgorithm(e){let t=typeof e=="string"?{name:e}:e;return"hash"in t&&typeof t.hash=="string"&&(t.hash={name:t.hash}),kv.createSignatureAlgorithmFromAlgorithm(t)}static CreateSignatureMethod(e){let t=new $l;return t.Algorithm=e.namespaceURI,e.toMethod&&e.toMethod(t),t}static RegisterSignatureAlgorithm(e,t){Kr.set(e,{type:"signature",algorithm:t})}static RegisterHashAlgorithm(e,t){Kr.set(e,{type:"hash",algorithm:t})}static RegisterKeyInfoClause(e,t){Pm.set(e,t)}static RegisterTransform(e,t){kp.set(e,t)}};var a_=lr(E8(),1);var Hne={xmldec:{version:"1.0",encoding:"UTF-8",standalone:void 0}};var zne={explicitArray:!1,explicitRoot:!1,preserveChildrenOrder:!0};var he={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},Kne=Object.keys(he);var qe={Production:"1",Homolog:"2"};var fM={[he.AC]:"America/Rio_Branco",[he.AL]:"America/Maceio",[he.AM]:"America/Manaus",[he.AP]:"America/Belem",[he.BA]:"America/Bahia",[he.CE]:"America/Fortaleza",[he.DF]:"America/Sao_Paulo",[he.ES]:"America/Sao_Paulo",[he.GO]:"America/Sao_Paulo",[he.MA]:"America/Fortaleza",[he.MG]:"America/Sao_Paulo",[he.MS]:"America/Campo_Grande",[he.MT]:"America/Cuiaba",[he.PA]:"America/Belem",[he.PB]:"America/Fortaleza",[he.PE]:"America/Recife",[he.PI]:"America/Fortaleza",[he.PR]:"America/Sao_Paulo",[he.RJ]:"America/Sao_Paulo",[he.RN]:"America/Fortaleza",[he.RO]:"America/Porto_Velho",[he.RR]:"America/Boa_Vista",[he.RS]:"America/Sao_Paulo",[he.SC]:"America/Sao_Paulo",[he.SE]:"America/Maceio",[he.SP]:"America/Sao_Paulo",[he.TO]:"America/Araguaina"};var ax=class{static{o(this,"Xml2JsToolkit")}xml2js;constructor(e=dBe){this.xml2js=e,ote({XMLSerializer:a_.default.XMLSerializer,DOMParser:a_.default.DOMParser,DOMImplementation:a_.default.DOMImplementation})}async validate(e,t){if(!e||e.trim().length===0)return Xr(new br("Please provide a valid xml content"));if(!t||t.trim().length===0)return Xr(new br("Please provide a valid existing xsd path"));try{return await PZ.validate(e,t),gr()}catch(n){return Xf(n)}}parse(e,t){return new Promise((n,i)=>new this.xml2js.Parser({...zne,...t}).parseString(e,(s,a)=>s?i(s):n(a)))}build(e,t){return Promise.resolve(new this.xml2js.Builder({...Hne,...t}).buildObject(e))}digest(e,t,n=Xw){return this.hash(this.canonicalize(e,n),t)}canonicalize(e,t=Xw){let n=uo(this.clear(e));return new Ql(t.includeComments,t.exclusive).Canonicalize(n)}getNode(e,t){let i=uo(e).documentElement.getElementsByTagName(t).item(0);return i?this.clear(vc(i)):null}getFirstNode(e){let n=uo(e).documentElement.firstChild;return n?this.clear(vc(n)):null}getAttribute(e,t){return uo(e).documentElement.getAttribute(t)}appendNode(e,t){let n=uo(e),{documentElement:i}=uo(t);return n.documentElement.appendChild(i),this.clear(vc(n))}insertBefore(e,t,n){let i=uo(e),s=i.documentElement.getElementsByTagName(t).item(0);if(!s?.parentNode)throw new br(`No element found with tag "${t}" to insert before`);let{documentElement:a}=uo(n);return s.parentNode.insertBefore(a,s),this.clear(vc(i))}hash(e,t){return Gne.default.createHash(t).update(e,"utf8").digest().toString("base64")}clear(e){return['xmlns:default="http://www.w3.org/2000/09/xmldsig#"',' standalone="no"',"default:",":default",`
|
|
132
|
-
`,"\r"," "].reduce((n,i)=>n.replace(i,""),e.replace(/(>)\s*(<)/gm,"$1$2"))}};var b2=class{static{o(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:en.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:en.newOrZero(n?.vFrete).add(e.vFrete??t).toFixed(2),vSeg:en.newOrZero(n?.vSeg).add(e.vSeg??t).toFixed(2),vDesc:en.newOrZero(n?.vDesc).add(e.vDesc??t).toFixed(2),vOutro:en.newOrZero(n?.vOutro).add(e.vOutro??t).toFixed(2)}}))}cofins(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vCOFINS:en.newOrZero(n?.vCOFINS).add(e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS??t).toFixed(2)}}))}pis(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vPIS:en.newOrZero(n?.vPIS).add(e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS??t).toFixed(2)}}))}icms(e){let t=en.from(0),[n]=Object.keys(e),i=e[n];this.builder.increment(({ICMSTot:s})=>({ICMSTot:{vBC:en.newOrZero(s?.vBC).add(i.vBC??t).toFixed(2),vICMS:en.newOrZero(s?.vICMS).add(i.vICMS??t).toFixed(2),vICMSDeson:en.newOrZero(s?.vICMSDeson).add(i.vICMSDeson??t).toFixed(2),vBCST:en.newOrZero(s?.vBCST).add(i.vBCST??t).toFixed(2),vST:en.newOrZero(s?.vST).add(i.vICMSST??t).toFixed(2)}}))}};var x2=class{static{o(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=en.from(0),t=this.builder.schema===Uf.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:i},s)=>({vNFTot:t?s.reduce((a,u)=>a.add(u?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:en.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(n?.vICMSDeson??e).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(i?.vServ??e).toFixed(2)}}))}};var Xne={[Mf.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};var pM=lr(require("crypto"),1);var o_=class{static{o(this,"CryptoSignerRepository")}async sign(e,t,n){try{if(!t.privateKey)return Xr(new br("Certificate private key not found"));let s=pM.default.sign(n,Buffer.from(e),{key:t.privateKey,padding:pM.default.constants.RSA_PKCS1_PADDING}).toString("base64");return await Promise.resolve(gr(s))}catch(i){return Promise.resolve(Xf(i))}}};var ox=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=B1.create();toolkit=new ax;caching=new ST;signerRepository=new o_;certificates=new sR(this.http,this.signerRepository,this.caching);soap=new ZD(this.toolkit,this.certificates);signer=new eR(this.toolkit,this.certificates);xmlSigner=new tR(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(bu,this)}};var eie=lr(require("path"),1);var Wne=require("class-transformer"),Oc=require("class-validator");function u_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(u_,"_ts_decorate");function dM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(dM,"_ts_metadata");var Lm=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};u_([(0,Oc.IsEnum)(qe),dM("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Lm.prototype,"tpAmb",void 0);u_([(0,Oc.IsEnum)(he),dM("design:type",typeof StateCode>"u"?Object:StateCode)],Lm.prototype,"cUF",void 0);u_([(0,Oc.IsOptional)()],Lm.prototype,"xServ",void 0);var hM=class{static{o(this,"ConsultStatusRequest")}consStatServ};u_([(0,Oc.IsNotEmptyObject)(),(0,Oc.IsObject)(),(0,Oc.ValidateNested)(),(0,Wne.Type)(()=>Lm),dM("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],hM.prototype,"consStatServ",void 0);var l_=require("class-transformer"),ur=require("class-validator");function Zi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zi,"_ts_decorate");function Ks(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ks,"_ts_metadata");var c_=class{static{o(this,"InfInutAttributes")}Id};Zi([(0,ur.IsString)(),Ks("design:type",String)],c_.prototype,"Id",void 0);var w2=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Zi([(0,ur.IsString)(),Ks("design:type",String)],w2.prototype,"xmlns",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],w2.prototype,"versao",void 0);var zs=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Zi([(0,ur.ValidateNested)(),(0,l_.Type)(()=>c_),Ks("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],zs.prototype,"$",void 0);Zi([(0,ur.IsEnum)(qe),Ks("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],zs.prototype,"tpAmb",void 0);Zi([(0,ur.IsOptional)()],zs.prototype,"xServ",void 0);Zi([(0,ur.IsEnum)(he),Ks("design:type",typeof StateCode>"u"?Object:StateCode)],zs.prototype,"cUF",void 0);Zi([(0,ur.IsString)(),(0,ur.Length)(2,2),(0,ur.Matches)(/^[0-9]{2}$/),Ks("design:type",String)],zs.prototype,"ano",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],zs.prototype,"CNPJ",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],zs.prototype,"CPF",void 0);Zi([(0,ur.IsString)(),(0,ur.Length)(2,2),(0,ur.Matches)(/^(55|65)$/),Ks("design:type",String)],zs.prototype,"mod",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,3}$/),Ks("design:type",String)],zs.prototype,"serie",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,9}$/),Ks("design:type",String)],zs.prototype,"nNFIni",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,9}$/),Ks("design:type",String)],zs.prototype,"nNFFin",void 0);Zi([(0,ur.IsString)(),(0,ur.MinLength)(15),(0,ur.MaxLength)(255),Ks("design:type",String)],zs.prototype,"xJust",void 0);zs=Zi([on({properties:["CNPJ","CPF"],required:!0})],zs);var Vp=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Zi([(0,ur.IsObject)(),(0,ur.ValidateNested)(),(0,l_.Type)(()=>w2),Ks("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Vp.prototype,"$",void 0);Zi([(0,ur.IsObject)(),(0,ur.ValidateNested)(),(0,l_.Type)(()=>zs),Ks("design:type",typeof IInfInut>"u"?Object:IInfInut)],Vp.prototype,"infInut",void 0);Zi([(0,ur.Allow)(),Ks("design:type",typeof Signature>"u"?Object:Signature)],Vp.prototype,"Signature",void 0);var sf=require("class-validator");function mM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mM,"_ts_decorate");function Jne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jne,"_ts_metadata");var Vv=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};mM([(0,sf.IsEnum)(qe),Jne("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Vv.prototype,"tpAmb",void 0);mM([(0,sf.IsOptional)()],Vv.prototype,"xServ",void 0);mM([(0,sf.IsString)(),(0,sf.Length)(44,44),(0,sf.Matches)(/^[0-9]{44}$/),Jne("design:type",String)],Vv.prototype,"chNFe",void 0);var Xo=require("class-validator");function C2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(C2,"_ts_decorate");function f_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(f_,"_ts_metadata");var jp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};C2([(0,Xo.IsEnum)(qe),(0,Xo.IsOptional)(),f_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],jp.prototype,"tpAmb",void 0);C2([(0,Xo.IsEnum)(he),(0,Xo.IsOptional)(),f_("design:type",typeof StateCode>"u"?Object:StateCode)],jp.prototype,"cUF",void 0);C2([(0,Xo.IsString)(),(0,Xo.IsOptional)(),f_("design:type",String)],jp.prototype,"idLote",void 0);C2([(0,Xo.IsOptional)(),(0,Xo.IsEnum)(["0","1"])],jp.prototype,"indSinc",void 0);C2([(0,Xo.IsNotEmpty)(),f_("design:type",typeof T>"u"?Object:T)],jp.prototype,"NFe",void 0);var p_=require("class-validator");function Yne(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yne,"_ts_decorate");function Qne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qne,"_ts_metadata");var ux=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;nRec};Yne([(0,p_.IsEnum)(qe),Qne("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ux.prototype,"tpAmb",void 0);Yne([(0,p_.IsString)(),Qne("design:type",String)],ux.prototype,"nRec",void 0);var $r=require("class-validator"),E2=require("class-transformer");function es(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(es,"_ts_decorate");function bs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bs,"_ts_metadata");var h_=class{static{o(this,"InfEventoAttributes")}Id};es([(0,$r.IsString)(),bs("design:type",String)],h_.prototype,"Id",void 0);var Ss=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>h_),bs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Ss.prototype,"$",void 0);es([(0,$r.IsString)(),bs("design:type",typeof StateCode>"u"?Object:StateCode)],Ss.prototype,"cOrgao",void 0);es([(0,$r.IsString)(),bs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ss.prototype,"tpAmb",void 0);es([(0,$r.IsString)(),(0,$r.IsOptional)(),bs("design:type",String)],Ss.prototype,"CNPJ",void 0);es([(0,$r.IsString)(),(0,$r.IsOptional)(),bs("design:type",String)],Ss.prototype,"CPF",void 0);es([(0,$r.IsString)(),bs("design:type",String)],Ss.prototype,"chNFe",void 0);es([Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),bs("design:type",String)],Ss.prototype,"dhEvento",void 0);es([(0,$r.IsEnum)(Mf),bs("design:type",typeof Mf>"u"?Object:Mf)],Ss.prototype,"tpEvento",void 0);es([(0,$r.IsNumber)(),bs("design:type",Number)],Ss.prototype,"nSeqEvento",void 0);es([(0,$r.IsString)(),bs("design:type",String)],Ss.prototype,"verEvento",void 0);es([(0,$r.IsObject)(),bs("design:type",typeof T>"u"?Object:T)],Ss.prototype,"detEvento",void 0);Ss=es([on({properties:["CNPJ","CPF"],required:!0})],Ss);var d_=class{static{o(this,"EventoItemAttributes")}xmlns};es([(0,$r.IsString)(),bs("design:type",String)],d_.prototype,"xmlns",void 0);var af=class{static{o(this,"EventoItem")}$;infEvento;Signature};es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>d_),bs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],af.prototype,"$",void 0);es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>Ss),bs("design:type",typeof Ss>"u"?Object:Ss)],af.prototype,"infEvento",void 0);es([(0,$r.Allow)(),bs("design:type",typeof Signature>"u"?Object:Signature)],af.prototype,"Signature",void 0);var cx=class{static{o(this,"EventoPayload")}idLote;evento};es([(0,$r.IsString)(),bs("design:type",String)],cx.prototype,"idLote",void 0);es([(0,$r.IsNotEmpty)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>af),bs("design:type",typeof af>"u"?Object:af)],cx.prototype,"evento",void 0);var Mu=require("class-validator");function lx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lx,"_ts_decorate");function m_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(m_,"_ts_metadata");var Bc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};lx([(0,Mu.IsOptional)()],Bc.prototype,"xServ",void 0);lx([(0,Mu.IsString)(),(0,Mu.IsIn)(Object.values(Kne)),m_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],Bc.prototype,"UF",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"IE",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"CNPJ",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"CPF",void 0);Bc=lx([on({properties:["IE","CNPJ","CPF"],required:!0})],Bc);var $ne={AM:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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 mBe={[he.AC]:"SVRS",[he.AL]:"SVRS",[he.AM]:"AM",[he.AP]:"SVRS",[he.BA]:"BA",[he.CE]:"SVRS",[he.DF]:"SVRS",[he.ES]:"SVRS",[he.GO]:"GO",[he.MA]:"SVAN",[he.MG]:"MG",[he.MS]:"MS",[he.MT]:"MT",[he.PA]:"SVRS",[he.PB]:"SVRS",[he.PE]:"PE",[he.PI]:"SVRS",[he.PR]:"PR",[he.RJ]:"SVRS",[he.RN]:"SVRS",[he.RO]:"SVRS",[he.RR]:"SVRS",[he.RS]:"RS",[he.SC]:"SVRS",[he.SE]:"SVRS",[he.SP]:"SP",[he.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Zne=mBe;var g_={[he.AC]:"SVCAN",[he.AL]:"SVCAN",[he.AM]:"SVCRS",[he.AP]:"SVCAN",[he.BA]:"SVCRS",[he.CE]:"SVCAN",[he.DF]:"SVCAN",[he.ES]:"SVCAN",[he.GO]:"SVCRS",[he.MA]:"SVCRS",[he.MG]:"SVCAN",[he.MS]:"SVCRS",[he.MT]:"SVCRS",[he.PA]:"SVCAN",[he.PB]:"SVCAN",[he.PE]:"SVCRS",[he.PI]:"SVCAN",[he.PR]:"SVCRS",[he.RJ]:"SVCAN",[he.RN]:"SVCAN",[he.RO]:"SVCAN",[he.RR]:"SVCAN",[he.RS]:"SVCAN",[he.SC]:"SVCAN",[he.SE]:"SVCAN",[he.SP]:"SVCAN",[he.TO]:"SVCAN"};function jv(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jv,"_ts_decorate");function Oi(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Oi,"_ts_metadata");var vo=class{static{o(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:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Uf.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?g_[t]:Zne[t];return $ne[i][n][e.service]}errors(){return Reflect.getMetadata(bu,this)}validate(e){try{let t=this.errors();return t?Xr(new br(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),gr(e))}finally{Reflect.deleteMetadata(bu,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return eie.default.resolve(Rw(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:he[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"})}};jv([Ht(Lm),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultStatus",null);jv([Ht(Vp),Oi("design:type",Function),Oi("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"inutilizacao",null);jv([Ht(Vv),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultaProtocolo",null);jv([Ht(jp),Oi("design:type",Function),Oi("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"autorizacao",null);jv([Ht(ux),Oi("design:type",Function),Oi("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"retAutorizacao",null);jv([Ht(cx),Oi("design:type",Function),Oi("design:paramtypes",[Object]),Oi("design:returntype",Promise)],vo.prototype,"recepcaoEvento",null);jv([Ht(Bc),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultaCadastro",null);var Uu=class extends ox{static{o(this,"TransmissionPipeline")}certificate;transmitter=new vo(this.soap);constructor(e){super(e),this.certificate=e}};function gBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gBe,"_ts_decorate");function gM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gM,"_ts_metadata");var A2=class extends Uu{static{o(this,"EventPipeline")}async event(e,t,n){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let s=t.chNFe.slice(0,2);this.transmitter.configure({cUF:s,...n,certificate:i.value});let a=Xne[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:p}=t,d=["ID",e,p,c.toString().padStart(2,"0")].join(""),g={$:{xmlns:this.xmlns},infEvento:{$:{Id:d},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:p,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(g);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?Xr(new br(t.join(", "))):gr(e)}};gBe([Ht(af),gM("design:type",Function),gM("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),gM("design:returntype",void 0)],A2.prototype,"validated",null);var N2=class extends A2{static{o(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},i=await this.event(Mf.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};var v_=class extends br{static{o(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var tie=(function(r){return r.Autorizada="100",r.AutorizadaForaDoPrazo="150",r.UsoDenegado="110",r.NfeDenegada="205",r.DenegadaIrregularidadeEmissor="301",r.DenegadaIrregularidadeDestinatario="302",r.DenegadaNaoHabilitadaNaUf="303",r})({});var I2=class extends Uu{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.handleNfeBatch(n.value,e.xml);if(i.isLeft())return i;let[s]=i.value;this.transmitter.configure({cUF:s.infNFe.ide.cUF,tpAmb:s.infNFe.ide.tpAmb,...t,contingency:this.contingency(s),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let a=await this.transmitter.autorizacao({...e,NFe:i.value});if(a.isLeft())return a;let u=a.value;return this.isSyncResponse(u)?gr(await this.response(i.value,u)):await this.handleAsyncResponse(i.value,u)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(tie).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let i={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],i=await Promise.all(e.map((s,a)=>this.protocol(s,n[a])));return i.length>1?{xml:i,response:t}:{xml:i[0],response:t}}async signNfe(e,t){return this.signer.sign(t,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,t){if(!Array.isArray(t)){let i=await this.toolkit.parse(t),s=await this.signNfe(e,i);return s.isLeft()?Xr(s.value):gr([s.value])}let n=await Promise.all(t.map(async i=>this.signNfe(e,await this.toolkit.parse(i))));return n.some(i=>i.isLeft())?Xr(new br("Failed to sign a NFe in batch")):gr(n.filter(i=>i.isRight()).map(i=>i.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:{nRec:i}}=t.retEnviNFe,s=1;for(;s<=3;)try{await new Promise(c=>setTimeout(c,1e3));let a=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(a.isLeft())continue;let u=a.value.retConsReciNFe.protNFe;if(!u||Array.isArray(u)&&u.length===0)continue;return gr(await this.response(e,{retEnviNFe:{...a.value.retConsReciNFe,protNFe:u}}))}finally{s++}return Xr(new v_)}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.infNFe.ide;if(!(!t||!n||i===ia.Normal))return{dhCont:t,xJust:n}}};function vBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vBe,"_ts_decorate");function vM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vM,"_ts_metadata");var fx=class extends Uu{static{o(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let s=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,s,i.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),u={$:{xmlns:this.xmlns},infInut:{$:{Id:a},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:s,CNPJ:i.CNPJ,CPF:i.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},c=this.validated(u);if(c.isLeft())return c;let l=await this.signer.sign(c.value,{tag:"infInut",mark:"Id"},n.value);return l.isLeft()?l:await this.transmitter.inutilizacao(l.value)}validated(e){let t=this.errors();return t?Xr(new br(t.join(", "))):gr(e)}};vBe([Ht(Vp),vM("design:type",Function),vM("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),vM("design:returntype",void 0)],fx.prototype,"validated",null);var T2=class extends Uu{static{o(this,"NfeConsultStatusPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({...e,certificate:t.value}),await this.transmitter.consultStatus(e))}};var yM=class extends Uu{static{o(this,"NfeAuthorizationResponsePipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({cUF:e.cUF,tpAmb:e.tpAmb,certificate:t.value}),this.transmitter.retAutorizacao(e))}};var rie=lr(require("crypto"),1);var Wo=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:gr(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):B0(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==ia.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),d=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${d}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=rie.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(gr(`${u}${s}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:i}=e,s=t?t.replace(/\D/g,""):n?n.replace(/\D/g,""):i?.replace(/\D/g,"");return s?s.length===11?{tipo:"1",documento:s}:s.length===14?{tipo:"2",documento:s}:i&&s.length>=3&&s.length<=14?{tipo:"3",documento:s}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==ia.OFFLINE)return gr(`${i}${a}|${u}|${s}`);let c=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:p,documento:d}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),g=`${a}|${u}|${s}|${c}|${l}|${p}|${d}`,y=await this.certificateRepository.sign(g,t.certificate,Cl.SHA1);return y.isLeft()?y:gr(`${i}${g}|${y.value}`)}};var SM={AC:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[qe.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"}},[qe.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:{[qe.Homolog]:{},[qe.Production]:{}}};var nie={[qe.Homolog]:{[he.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[he.AL]:"www.sefaz.al.gov.br/nfce/consulta",[he.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[he.AM]:"www.sefaz.am.gov.br/nfce/consulta",[he.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[he.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[he.DF]:"www.fazenda.df.gov.br/nfce/consulta",[he.ES]:"www.sefaz.es.gov.br/nfce/consulta",[he.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[he.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[he.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[he.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[he.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[he.PA]:"www.sefa.pa.gov.br/nfce/consulta",[he.PB]:"www.sefaz.pb.gov.br/nfcehom",[he.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[he.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[he.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[he.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[he.RN]:"www.set.rn.gov.br/nfce/consulta",[he.RO]:"www.sefin.ro.gov.br/nfce/consulta",[he.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[he.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[he.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[he.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[he.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[he.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[qe.Production]:{[he.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[he.AL]:"www.sefaz.al.gov.br/nfce/consulta",[he.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[he.AM]:"www.sefaz.am.gov.br/nfce/consulta",[he.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[he.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[he.DF]:"www.fazenda.df.gov.br/nfce/consulta",[he.ES]:"www.sefaz.es.gov.br/nfce/consulta",[he.GO]:"www.sefaz.go.gov.br/nfce/consulta",[he.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[he.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[he.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[he.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[he.PA]:"www.sefa.pa.gov.br/nfce/consulta",[he.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[he.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[he.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[he.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[he.RN]:"www.set.rn.gov.br/nfce/consulta",[he.RO]:"www.sefin.ro.gov.br/nfce/consulta",[he.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[he.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[he.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[he.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[he.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[he.TO]:"www.sefaz.to.gov.br/nfce/consulta",[he.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var yBe={[he.AC]:"SVRS",[he.AL]:"SVRS",[he.AM]:"AM",[he.AP]:"SVRS",[he.BA]:"SVRS",[he.CE]:"SVRS",[he.DF]:"SVRS",[he.ES]:"SVRS",[he.GO]:"GO",[he.MA]:"SVRS",[he.MG]:"MG",[he.MS]:"MS",[he.MT]:"MT",[he.PA]:"SVRS",[he.PB]:"SVRS",[he.PE]:"SVRS",[he.PI]:"SVRS",[he.PR]:"PR",[he.RJ]:"SVRS",[he.RN]:"SVRS",[he.RO]:"SVRS",[he.RR]:"SVRS",[he.RS]:"RS",[he.SC]:"SVRS",[he.SE]:"SVRS",[he.SP]:"SP",[he.TO]:"SVRS",SVRS:"SVRS"},iie=yBe;var Jo=require("class-validator");function R2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R2,"_ts_decorate");function y_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(y_,"_ts_metadata");var Mp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};R2([(0,Jo.IsEnum)(qe),(0,Jo.IsOptional)(),y_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Mp.prototype,"tpAmb",void 0);R2([(0,Jo.IsEnum)(he),(0,Jo.IsOptional)(),y_("design:type",typeof StateCode>"u"?Object:StateCode)],Mp.prototype,"cUF",void 0);R2([(0,Jo.IsString)(),(0,Jo.IsOptional)(),y_("design:type",String)],Mp.prototype,"idLote",void 0);R2([(0,Jo.IsOptional)(),(0,Jo.IsEnum)(["0","1"])],Mp.prototype,"indSinc",void 0);R2([(0,Jo.IsNotEmpty)(),y_("design:type",typeof T>"u"?Object:T)],Mp.prototype,"NFe",void 0);function SBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SBe,"_ts_decorate");function bM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bM,"_ts_metadata");var yo=class extends vo{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=iie[t],u=SM[i][n][e.service];if(u)return u;let c=Object.keys(he).find(l=>he[l]===t);return SM[c][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return nie[n][t]}async autorizacao(e){return super.autorizacao(e)}};SBe([Ht(Mp),bM("design:type",Function),bM("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),bM("design:returntype",Promise)],yo.prototype,"autorizacao",null);var xM=class extends N2{static{o(this,"NfceCancelPipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var wM=class extends I2{static{o(this,"NfceAuthorizerPipeline")}certificate;qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var CM=class extends fx{static{o(this,"NfceVoidRangePipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var EM=class extends T2{static{o(this,"NfceConsultStatusPipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var Rie=lr(require("path"),1);var qa=require("class-validator");var Pt=require("class-validator"),Li=require("class-transformer");var xt=require("class-validator"),D2=require("class-transformer");function Kt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Kt,"_ts_decorate");function Gt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gt,"_ts_metadata");var Up=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"AAMM",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"CNPJ",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"nNF",void 0);var Yo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"AAMM",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"CNPJ",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"CPF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"IE",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"nNF",void 0);Yo=Kt([on({properties:["CNPJ","CPF"],required:!0})],Yo);var px=class{static{o(this,"RefECF")}mod;nECF;nCOO};Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"nECF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"nCOO",void 0);var qp=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refNFe",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refNFeSig",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>Up),Gt("design:type",typeof IRefNF>"u"?Object:IRefNF)],qp.prototype,"refNF",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>Yo),Gt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],qp.prototype,"refNFP",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refCTe",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>px),Gt("design:type",typeof IRefECF>"u"?Object:IRefECF)],qp.prototype,"refECF",void 0);var nn=class{static{o(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};Kt([(0,xt.IsEnum)(he),Gt("design:type",typeof StateCode>"u"?Object:StateCode)],nn.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"cNF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"natOp",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"nNF",void 0);Kt([Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhEmi",void 0);Kt([(0,xt.IsOptional)(),Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhSaiEnt",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"tpNF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"idDest",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"cMunFG",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"tpImp",void 0);Kt([(0,xt.IsString)(),Gt("design:type",typeof TpEmis>"u"?Object:TpEmis)],nn.prototype,"tpEmis",void 0);Kt([(0,xt.IsString)(),(0,xt.IsOptional)(),Gt("design:type",String)],nn.prototype,"cDV",void 0);Kt([(0,xt.IsString)(),Gt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],nn.prototype,"tpAmb",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"finNFe",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indFinal",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indPres",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indIntermed",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"procEmi",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"verProc",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhCont",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"xJust",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,D2.Type)(()=>qp),Gt("design:type",Array)],nn.prototype,"NFref",void 0);var ts=require("class-validator");var sie=require("class-transformer");var Xs=require("class-validator");function Pc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Pc,"_ts_decorate");function _c(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_c,"_ts_metadata");var Gs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xLgr",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"nro",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xCpl",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xBairro",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"cMun",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xMun",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"UF",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"CEP",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"cPais",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xPais",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"fone",void 0);function Lc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Lc,"_ts_decorate");function of(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(of,"_ts_metadata");var xs=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CNPJ",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CPF",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"xNome",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"xFant",void 0);Lc([(0,ts.ValidateNested)(),(0,sie.Type)(()=>Gs),of("design:type",typeof Gs>"u"?Object:Gs)],xs.prototype,"enderEmit",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IE",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IEST",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IM",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CNAE",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CRT",void 0);xs=Lc([on({properties:["CNPJ","CPF"],required:!0})],xs);var wi=require("class-validator"),aie=require("class-transformer");var Jn=require("class-validator");function Fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Fc,"_ts_decorate");function kc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kc,"_ts_metadata");var Fa=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xLgr",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"nro",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xCpl",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xBairro",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"cMun",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xMun",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"UF",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"CEP",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"cPais",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xPais",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"fone",void 0);function Vc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Vc,"_ts_decorate");function uf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uf,"_ts_metadata");var ws=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"CNPJ",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"CPF",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"idEstrangeiro",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"xNome",void 0);Vc([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,aie.Type)(()=>Fa),uf("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],ws.prototype,"enderDest",void 0);Vc([(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"indIEDest",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"IE",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"ISUF",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"IM",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"email",void 0);ws=Vc([on({properties:["CNPJ","CPF"],required:!0})],ws);var mn=require("class-validator");function Ws(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ws,"_ts_decorate");function da(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(da,"_ts_metadata");var Pn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CNPJ",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CPF",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xNome",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xLgr",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"nro",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xCpl",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xBairro",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"cMun",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xMun",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"UF",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CEP",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"cPais",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xPais",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"fone",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"email",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"IE",void 0);Pn=Ws([on({properties:["CNPJ","CPF"]})],Pn);var hx=require("class-validator");function AM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(AM,"_ts_decorate");function oie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oie,"_ts_metadata");var cf=class{static{o(this,"AutXML")}CNPJ;CPF};AM([(0,hx.IsOptional)(),(0,hx.IsString)(),oie("design:type",String)],cf.prototype,"CNPJ",void 0);AM([(0,hx.IsOptional)(),(0,hx.IsString)(),oie("design:type",String)],cf.prototype,"CPF",void 0);cf=AM([on({properties:["CNPJ","CPF"]})],cf);var O2=require("class-validator");function uie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uie,"_ts_decorate");function cie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cie,"_ts_metadata");var Fm=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};uie([(0,O2.IsString)(),cie("design:type",String)],Fm.prototype,"CNPJ",void 0);uie([(0,O2.IsOptional)(),(0,O2.IsString)(),cie("design:type",String)],Fm.prototype,"idCadIntTran",void 0);var Mv=require("class-validator");function NM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NM,"_ts_decorate");function IM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(IM,"_ts_metadata");var Hp=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};NM([(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"UFSaidaPais",void 0);NM([(0,Mv.IsOptional)(),(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"xLocExporta",void 0);NM([(0,Mv.IsOptional)(),(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"xLocDespacho",void 0);var km=require("class-validator");function TM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(TM,"_ts_decorate");function RM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RM,"_ts_metadata");var zp=class{static{o(this,"Compra")}xNEmp;xPed;xCont};TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xNEmp",void 0);TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xPed",void 0);TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xCont",void 0);var lf=require("class-validator");function dx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dx,"_ts_decorate");function mx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mx,"_ts_metadata");var qu=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"CNPJ",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"xContato",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"email",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"fone",void 0);dx([(0,lf.IsOptional)(),(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"idCSRT",void 0);dx([(0,lf.IsOptional)(),(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"hashCSRT",void 0);var pf=require("class-validator"),V2=require("class-transformer");var jc=require("class-validator");function cn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(cn,"_ts_decorate");function ln(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ln,"_ts_metadata");var Gr=class{static{o(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};cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vBC",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSDeson",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPUFDest",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSUFDest",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSUFRemet",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCP",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vBCST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPSTRet",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMono",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMono",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMonoReten",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMonoReten",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMonoRet",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMonoRet",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vProd",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFrete",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vSeg",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vDesc",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vII",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vIPI",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vIPIDevol",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vPIS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vCOFINS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vOutro",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vNF",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vTotTrib",void 0);var qn=require("class-validator");function Hu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hu,"_ts_decorate");function zu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zu,"_ts_metadata");var ma=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vServ",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vBC",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vISS",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vPIS",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vCOFINS",void 0);Hu([(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"dCompet",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDeducao",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vOutro",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDescIncond",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDescCond",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vISSRet",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"cRegTrib",void 0);var Vm=require("class-validator");function Uv(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Uv,"_ts_decorate");function qv(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qv,"_ts_metadata");var Mc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetPIS",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetCOFINS",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetCSLL",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vBCIRRF",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vIRRF",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vBCRetPrev",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetPrev",void 0);var Wp=require("class-validator");var Gp=require("class-validator");function DM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DM,"_ts_decorate");function OM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(OM,"_ts_metadata");var Hv=class{static{o(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vDif",void 0);DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vDevTrib",void 0);DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vIBSMun",void 0);var _M=require("class-transformer");function BM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BM,"_ts_decorate");function PM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PM,"_ts_metadata");var zv=class{static{o(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vDif",void 0);BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vDevTrib",void 0);BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vIBSUF",void 0);function B2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B2,"_ts_decorate");function P2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(P2,"_ts_metadata");var Kp=class{static{o(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};B2([(0,Gp.IsOptional)(),(0,Gp.ValidateNested)(),(0,_M.Type)(()=>zv),P2("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Kp.prototype,"gIBSUF",void 0);B2([(0,Gp.IsOptional)(),(0,Gp.ValidateNested)(),(0,_M.Type)(()=>Hv),P2("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Kp.prototype,"gIBSMun",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vIBS",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vCredPres",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vCredPresCondSus",void 0);var x_=require("class-transformer");var gx=require("class-validator");function _2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_2,"_ts_decorate");function L2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(L2,"_ts_metadata");var Xp=class{static{o(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vDif",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vDevTrib",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCBS",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCredPres",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCredPresCondSus",void 0);var Kv=require("class-validator");function vx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vx,"_ts_decorate");function yx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yx,"_ts_metadata");var ff=class{static{o(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMono",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMono",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMonoReten",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMonoReten",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMonoRet",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMonoRet",void 0);function S_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(S_,"_ts_decorate");function b_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(b_,"_ts_metadata");var jm=class{static{o(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};S_([(0,Wp.IsOptional)(),ne({fixed:2}),b_("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jm.prototype,"vBCIBSCBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>Kp),b_("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],jm.prototype,"gIBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>Xp),b_("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],jm.prototype,"gCBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>ff),b_("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],jm.prototype,"gMono",void 0);function F2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(F2,"_ts_decorate");function k2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(k2,"_ts_metadata");var Uc=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib;IBSCBSTot;vNFTot};F2([(0,pf.ValidateNested)(),(0,V2.Type)(()=>Gr),k2("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Uc.prototype,"ICMSTot",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>ma),k2("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Uc.prototype,"ISSQNtot",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>Mc),k2("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Uc.prototype,"retTrib",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>jm),k2("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Uc.prototype,"IBSCBSTot",void 0);F2([(0,pf.IsOptional)(),ne({fixed:2}),k2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Uc.prototype,"vNFTot",void 0);var Bi=require("class-validator"),Ax=require("class-transformer");var va=require("class-validator");function Mm(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mm,"_ts_decorate");function Gv(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gv,"_ts_metadata");var ga=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"CNPJ",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"CPF",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xNome",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"IE",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xEnder",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xMun",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"UF",void 0);ga=Mm([on({properties:["CNPJ","CPF"]})],ga);var hf=require("class-validator");function Sx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sx,"_ts_decorate");function bx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bx,"_ts_metadata");var Qo=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vServ",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vBCRet",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:4}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"pICMSRet",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vICMSRet",void 0);Sx([(0,hf.IsOptional)(),(0,hf.IsString)(),bx("design:type",String)],Qo.prototype,"CFOP",void 0);Sx([(0,hf.IsOptional)(),(0,hf.IsString)(),bx("design:type",String)],Qo.prototype,"cMunFG",void 0);var So=require("class-validator");function xx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xx,"_ts_decorate");function wx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wx,"_ts_metadata");var df=class{static{o(this,"VeicTransp")}placa;UF;RNTC};xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"placa",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"UF",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"RNTC",void 0);var Xv=class{static{o(this,"Reboque")}placa;UF;RNTC};xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"placa",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"UF",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"RNTC",void 0);var Ku=require("class-validator");function Cx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cx,"_ts_decorate");function Ex(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ex,"_ts_metadata");var mf=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"qVol",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"esp",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"marca",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"nVol",void 0);Cx([(0,Ku.IsOptional)(),ne({fixed:3}),Ex("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mf.prototype,"pesoL",void 0);Cx([(0,Ku.IsOptional)(),ne({fixed:3}),Ex("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mf.prototype,"pesoB",void 0);function Jp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Jp,"_ts_decorate");function Um(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Um,"_ts_metadata");var ya=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Jp([(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"modFrete",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>ga),Um("design:type",typeof ga>"u"?Object:ga)],ya.prototype,"transporta",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>Qo),Um("design:type",typeof Qo>"u"?Object:Qo)],ya.prototype,"retTransp",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>df),Um("design:type",typeof df>"u"?Object:df)],ya.prototype,"veicTransp",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)({each:!0}),(0,Ax.Type)(()=>Xv),(0,Bi.ArrayMaxSize)(5),Um("design:type",Array)],ya.prototype,"reboque",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"vagao",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"balsa",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)({each:!0}),(0,Ax.Type)(()=>mf),(0,Bi.ArrayMaxSize)(5e3),Um("design:type",Array)],ya.prototype,"vol",void 0);ya=Jp([on({properties:["veicTransp","reboque"]}),on({properties:["vagao","balsa"]})],ya);var rs=require("class-validator"),LM=require("class-transformer");function Qp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qp,"_ts_decorate");function $p(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($p,"_ts_metadata");var Yp=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Yp.prototype,"nFat",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vOrig",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vDesc",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vLiq",void 0);var Nx=class{static{o(this,"Dup")}nDup;dVenc;vDup};Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Nx.prototype,"nDup",void 0);Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Nx.prototype,"dVenc",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nx.prototype,"vDup",void 0);var qm=class{static{o(this,"Cobr")}fat;dup};Qp([(0,rs.IsOptional)(),(0,rs.ValidateNested)(),(0,LM.Type)(()=>Yp),$p("design:type",typeof Yp>"u"?Object:Yp)],qm.prototype,"fat",void 0);Qp([(0,rs.IsOptional)(),(0,rs.ValidateNested)({each:!0}),(0,rs.ArrayMaxSize)(120),(0,LM.Type)(()=>Nx),$p("design:type",Array)],qm.prototype,"dup",void 0);var zm=require("class-validator"),hie=require("class-transformer");var gf=require("class-validator"),lie=require("class-transformer");var bo=require("class-validator");function Ix(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ix,"_ts_decorate");function Tx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Tx,"_ts_metadata");var $o=class{static{o(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"tpIntegra",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"CNPJ",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"tBand",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"cAut",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"CNPJReceb",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"idTermPag",void 0);function j2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j2,"_ts_decorate");function M2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M2,"_ts_metadata");var Zp=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};j2([(0,gf.IsOptional)(),(0,gf.IsString)(),M2("design:type",String)],Zp.prototype,"indPag",void 0);j2([(0,gf.IsString)(),M2("design:type",typeof TPag>"u"?Object:TPag)],Zp.prototype,"tPag",void 0);j2([ne({fixed:2}),M2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zp.prototype,"vPag",void 0);j2([(0,gf.IsOptional)(),(0,gf.ValidateNested)(),(0,lie.Type)(()=>$o),M2("design:type",typeof $o>"u"?Object:$o)],Zp.prototype,"card",void 0);j2([(0,gf.IsOptional)(),(0,gf.IsString)(),M2("design:type",String)],Zp.prototype,"xPag",void 0);function fie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fie,"_ts_decorate");function pie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(pie,"_ts_metadata");var Hm=class{static{o(this,"Pag")}detPag;vTroco};fie([(0,zm.ValidateNested)({each:!0}),(0,zm.ArrayMinSize)(1),(0,zm.ArrayMaxSize)(100),(0,hie.Type)(()=>Zp),pie("design:type",Array)],Hm.prototype,"detPag",void 0);fie([(0,zm.IsOptional)(),ne({fixed:2}),pie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hm.prototype,"vTroco",void 0);var hi=require("class-validator"),w_=require("class-transformer");function eh(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eh,"_ts_decorate");function th(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(th,"_ts_metadata");var Rx=class{static{o(this,"InfAdicObs")}xCampo;xTexto};eh([(0,hi.IsString)(),th("design:type",String)],Rx.prototype,"xCampo",void 0);eh([(0,hi.IsString)(),th("design:type",String)],Rx.prototype,"xTexto",void 0);var U2=class{static{o(this,"ProcRef")}nProc;indProc};eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],U2.prototype,"nProc",void 0);eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],U2.prototype,"indProc",void 0);var qc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],qc.prototype,"infAdFisco",void 0);eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],qc.prototype,"infCpl",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>Rx),(0,hi.ArrayMaxSize)(10),th("design:type",Array)],qc.prototype,"obsCont",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>Rx),(0,hi.ArrayMaxSize)(10),th("design:type",Array)],qc.prototype,"obsFisco",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>U2),(0,hi.ArrayMaxSize)(100),th("design:type",Array)],qc.prototype,"procRef",void 0);var wn=require("class-validator"),E_=require("class-transformer");function ka(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ka,"_ts_decorate");function Va(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Va,"_ts_metadata");var C_=class{static{o(this,"ForDiaAttributes")}dia};ka([(0,wn.IsString)(),Va("design:type",String)],C_.prototype,"dia",void 0);var q2=class{static{o(this,"ForDia")}$;qtde};ka([(0,wn.IsObject)(),(0,wn.IsNotEmptyObject)(),(0,E_.Type)(()=>C_),Va("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],q2.prototype,"$",void 0);ka([(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],q2.prototype,"qtde",void 0);var H2=class{static{o(this,"Deduc")}xDed;vDed};ka([(0,wn.IsString)(),Va("design:type",String)],H2.prototype,"xDed",void 0);ka([ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],H2.prototype,"vDed",void 0);var Sa=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};ka([(0,wn.IsString)(),Va("design:type",String)],Sa.prototype,"safra",void 0);ka([(0,wn.IsString)(),Va("design:type",String)],Sa.prototype,"ref",void 0);ka([(0,wn.ValidateNested)({each:!0}),(0,wn.ArrayMaxSize)(31),(0,E_.Type)(()=>q2),Va("design:type",Array)],Sa.prototype,"forDia",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotMes",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotAnt",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotGer",void 0);ka([(0,wn.IsOptional)(),(0,wn.ValidateNested)({each:!0}),(0,wn.ArrayMaxSize)(10),(0,E_.Type)(()=>H2),Va("design:type",Array)],Sa.prototype,"deduc",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vFor",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vTotDed",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vLiqFor",void 0);var Qs=require("class-validator"),Gx=require("class-transformer");var ut=require("class-validator");var vf=require("class-transformer");var Hc=require("class-validator");function z2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z2,"_ts_decorate");function K2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K2,"_ts_metadata");var rh=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};z2([(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"nLote",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"qLote",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"dFab",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"dVal",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"cAgreg",void 0);var pn=require("class-validator"),die=require("class-transformer");function Es(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Es,"_ts_decorate");function Js(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Js,"_ts_metadata");var Km=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nAdicao",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nSeqAdic",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"cFabricante",void 0);Es([ne({fixed:2}),Js("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Km.prototype,"vDescDI",void 0);Es([(0,pn.IsOptional)(),(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nDraw",void 0);var Cs=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"nDI",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"dDI",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"xLocDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"UFDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"dDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"tpViaTransp",void 0);Es([(0,pn.IsOptional)(),ne({fixed:2}),Js("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cs.prototype,"vAFRMM",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"tpIntermedio",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"CNPJ",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"CPF",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"UFTerceiro",void 0);Es([(0,pn.IsArray)(),(0,pn.ValidateNested)({each:!0}),(0,die.Type)(()=>Km),(0,pn.ArrayMaxSize)(999),(0,pn.ArrayMinSize)(1),Js("design:type",Array)],Cs.prototype,"adi",void 0);Cs=Es([on({properties:["CNPJ","CPF"],required:!0})],Cs);var mie=require("class-transformer"),nh=require("class-validator");function G2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(G2,"_ts_decorate");function X2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X2,"_ts_metadata");var Dx=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};G2([(0,nh.IsString)(),X2("design:type",String)],Dx.prototype,"nRE",void 0);G2([(0,nh.IsString)(),X2("design:type",String)],Dx.prototype,"chNFe",void 0);G2([ne({fixed:4}),X2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dx.prototype,"qExport",void 0);var Ox=class{static{o(this,"DetExport")}nDraw;exportInd};G2([(0,nh.IsOptional)(),(0,nh.IsString)(),X2("design:type",String)],Ox.prototype,"nDraw",void 0);G2([(0,nh.IsOptional)(),(0,nh.ValidateNested)(),(0,mie.Type)(()=>Dx),X2("design:type",typeof IExportInd>"u"?Object:IExportInd)],Ox.prototype,"exportInd",void 0);var FM=require("class-validator");function gie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gie,"_ts_decorate");function vie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vie,"_ts_metadata");var Bx=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};gie([(0,FM.IsString)(),vie("design:type",String)],Bx.prototype,"cProdFisco",void 0);gie([(0,FM.IsString)(),vie("design:type",String)],Bx.prototype,"cOperNFF",void 0);var jM=require("class-validator");function kM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(kM,"_ts_decorate");function VM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(VM,"_ts_metadata");var Wv=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};kM([(0,jM.IsString)(),VM("design:type",String)],Wv.prototype,"xEmb",void 0);kM([ne({fixed:3}),VM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wv.prototype,"qVolEmb",void 0);kM([(0,jM.IsString)(),VM("design:type",String)],Wv.prototype,"uEmb",void 0);var Hn=require("class-validator");function Yn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yn,"_ts_decorate");function Qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qn,"_ts_metadata");var gn=class{static{o(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};Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpOp",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"chassi",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cCor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"xCor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pot",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cilin",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pesoL",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pesoB",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"nSerie",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpComb",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"nMotor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"CMT",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"dist",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"anoMod",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"anoFab",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpPint",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"espVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"VIN",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"condVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cMod",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cCorDENATRAN",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"lota",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpRest",void 0);var qM=require("class-validator");function MM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(MM,"_ts_decorate");function UM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(UM,"_ts_metadata");var Jv=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};MM([(0,qM.IsString)(),UM("design:type",String)],Jv.prototype,"cProdANVISA",void 0);MM([(0,qM.IsString)(),UM("design:type",String)],Jv.prototype,"xMotivoIsencao",void 0);MM([ne({fixed:2}),UM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jv.prototype,"vPMC",void 0);var W2=require("class-validator");function A_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A_,"_ts_decorate");function N_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N_,"_ts_metadata");var Gm=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"tpArma",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"nSerie",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"nCano",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"descr",void 0);var jr=require("class-validator"),I_=require("class-transformer");function $n(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($n,"_ts_decorate");function Zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zn,"_ts_metadata");var Px=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};$n([(0,jr.IsString)(),Zn("design:type",String)],Px.prototype,"indImport",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Px.prototype,"cUFOrig",void 0);$n([ne({fixed:4}),(0,jr.Max)(100),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Px.prototype,"pOrig",void 0);var _x=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};$n([ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"qBCProd",void 0);$n([ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"vAliqProd",void 0);$n([ne({fixed:2}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"vCIDE",void 0);var Xm=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nBico",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nBomba",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nTanque",void 0);$n([ne({fixed:3}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xm.prototype,"vEncIni",void 0);$n([ne({fixed:3}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xm.prototype,"vEncFin",void 0);var Ys=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"cProdANP",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"descANP",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGLP",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGNn",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGNi",void 0);$n([(0,jr.IsOptional)(),ne({fixed:2}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"vPart",void 0);$n([(0,jr.IsString)(),(0,jr.IsOptional)(),Zn("design:type",String)],Ys.prototype,"CODIF",void 0);$n([(0,jr.IsOptional)(),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"qTemp",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"UFCons",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)(),(0,I_.Type)(()=>_x),Zn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ys.prototype,"CIDE",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)(),(0,I_.Type)(()=>Xm),Zn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ys.prototype,"encerrante",void 0);$n([(0,jr.IsOptional)(),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pBio",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)({each:!0}),(0,I_.Type)(()=>Px),(0,jr.ArrayMaxSize)(30),(0,jr.IsOptional)(),Zn("design:type",Array)],Ys.prototype,"origComb",void 0);function yr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yr,"_ts_decorate");function xr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xr,"_ts_metadata");var Xt=class{static{o(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};yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cEAN",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cBarra",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"xProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"NCM",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ArrayMaxSize)(8),(0,ut.IsString)({each:!0}),xr("design:type",Array)],Xt.prototype,"NVE",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CEST",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"indEscala",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CNPJFab",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cBenef",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),xr("design:type",Object)],Xt.prototype,"gCred",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"EXTIPI",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CFOP",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"uCom",void 0);yr([ne({fixed:4}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"qCom",void 0);yr([ne({fixed:10}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vUnCom",void 0);yr([ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cEANTrib",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"uTrib",void 0);yr([ne({fixed:4}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"qTrib",void 0);yr([ne({fixed:10}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vUnTrib",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vFrete",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vSeg",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vDesc",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vOutro",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"indTot",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(100),(0,vf.Type)(()=>Cs),xr("design:type",Array)],Xt.prototype,"DI",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,vf.Type)(()=>Ox),xr("design:type",Array)],Xt.prototype,"detExport",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"xPed",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nItemPed",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nFCI",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,vf.Type)(()=>rh),xr("design:type",Array)],Xt.prototype,"rastro",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Bx),xr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Xt.prototype,"infProdNFF",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Wv),xr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Xt.prototype,"infProdEmb",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>gn),xr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Xt.prototype,"veicProd",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Jv),xr("design:type",typeof IMed>"u"?Object:IMed)],Xt.prototype,"med",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)({each:!0}),(0,vf.Type)(()=>Gm),(0,ut.ArrayMaxSize)(500),xr("design:type",Array)],Xt.prototype,"arma",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Ys),xr("design:type",typeof IComb>"u"?Object:IComb)],Xt.prototype,"comb",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nRECOPI",void 0);Xt=yr([on({properties:["veicProd","med","arma","comb"]})],Xt);var $u=require("class-transformer"),En=require("class-validator");var fe=require("class-validator"),Ns=require("class-transformer");function Ee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ee,"_ts_decorate");function Ne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ne,"_ts_metadata");var ih=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"vICMS",void 0);var Zo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vICMSST",void 0);var yf=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"vICMS",void 0);var sh=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"vICMSST",void 0);var Yv=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yv.prototype,"vICMSDeson",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"motDesICMS",void 0);var Gu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ee([(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),(0,fe.Max)(100),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pDif",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vICMSDif",void 0);var ah=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],ah.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ah.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vICMSSTRet",void 0);var xo=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vICMSST",void 0);var wo=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMSST",void 0);var As=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ee([(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pMVAST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pRedBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pBCOp",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"UFST",void 0);var oh=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],oh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],oh.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vICMSSTRet",void 0);var Qv=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],Qv.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Qv.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qv.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qv.prototype,"vCredICMSSN",void 0);var J2=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],J2.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],J2.prototype,"CSOSN",void 0);var zc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vCredICMSSN",void 0);var uh=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"vICMSST",void 0);var ch=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],ch.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ch.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vICMSSTRet",void 0);var ba=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vCredICMSSN",void 0);var zn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ih),Ne("design:type",typeof IICMS00>"u"?Object:IICMS00)],zn.prototype,"ICMS00",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Zo),Ne("design:type",typeof IICMS10>"u"?Object:IICMS10)],zn.prototype,"ICMS10",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>yf),Ne("design:type",typeof IICMS20>"u"?Object:IICMS20)],zn.prototype,"ICMS20",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>sh),Ne("design:type",typeof IICMS30>"u"?Object:IICMS30)],zn.prototype,"ICMS30",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Yv),Ne("design:type",typeof IICMS40>"u"?Object:IICMS40)],zn.prototype,"ICMS40",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Gu),Ne("design:type",typeof IICMS51>"u"?Object:IICMS51)],zn.prototype,"ICMS51",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ah),Ne("design:type",typeof IICMS60>"u"?Object:IICMS60)],zn.prototype,"ICMS60",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>xo),Ne("design:type",typeof IICMS70>"u"?Object:IICMS70)],zn.prototype,"ICMS70",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>wo),Ne("design:type",typeof IICMS90>"u"?Object:IICMS90)],zn.prototype,"ICMS90",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>As),Ne("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],zn.prototype,"ICMSPart",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>oh),Ne("design:type",typeof IICMSST>"u"?Object:IICMSST)],zn.prototype,"ICMSST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Qv),Ne("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],zn.prototype,"ICMSSN101",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>J2),Ne("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],zn.prototype,"ICMSSN102",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>zc),Ne("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],zn.prototype,"ICMSSN201",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>uh),Ne("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],zn.prototype,"ICMSSN202",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ch),Ne("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],zn.prototype,"ICMSSN500",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ba),Ne("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],zn.prototype,"ICMSSN900",void 0);zn=Ee([on({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],zn);var _n=require("class-validator"),HM=require("class-transformer");function eu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eu,"_ts_decorate");function tu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tu,"_ts_metadata");var lh=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};eu([(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"CST",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vBC",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"pIPI",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"qUnid",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vUnid",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vIPI",void 0);var T_=class{static{o(this,"IPINT")}CST};eu([(0,_n.IsString)(),tu("design:type",String)],T_.prototype,"CST",void 0);var Xu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"CNPJProd",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"cSelo",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"qSelo",void 0);eu([(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"cEnq",void 0);eu([(0,_n.IsOptional)(),(0,_n.ValidateNested)(),(0,HM.Type)(()=>lh),tu("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Xu.prototype,"IPITrib",void 0);eu([(0,_n.IsOptional)(),(0,_n.ValidateNested)(),(0,HM.Type)(()=>T_),tu("design:type",typeof IIPINT>"u"?Object:IIPINT)],Xu.prototype,"IPINT",void 0);var bf=require("class-validator");function R_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R_,"_ts_decorate");function D_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D_,"_ts_metadata");var Sf=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vBC",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vDespAdu",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vII",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vIOF",void 0);var Wt=require("class-validator"),Y2=require("class-transformer");function ei(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ei,"_ts_decorate");function ti(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ti,"_ts_metadata");var fh=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],fh.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"vPIS",void 0);var ph=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"vPIS",void 0);var Lx=class{static{o(this,"PISNT")}CST};ei([(0,Wt.IsString)(),ti("design:type",String)],Lx.prototype,"CST",void 0);var Kc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],Kc.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"vPIS",void 0);var xf=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>fh),ti("design:type",typeof fh>"u"?Object:fh)],xf.prototype,"PISAliq",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>ph),ti("design:type",typeof ph>"u"?Object:ph)],xf.prototype,"PISQtde",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>Lx),ti("design:type",typeof Lx>"u"?Object:Lx)],xf.prototype,"PISNT",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>Kc),ti("design:type",typeof Kc>"u"?Object:Kc)],xf.prototype,"PISOutr",void 0);var Gc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],Gc.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"vPIS",void 0);var Jt=require("class-validator"),Q2=require("class-transformer");function ri(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ri,"_ts_decorate");function ni(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ni,"_ts_metadata");var hh=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],hh.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"vCOFINS",void 0);var dh=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"vCOFINS",void 0);var Fx=class{static{o(this,"COFINSNT")}CST};ri([(0,Jt.IsString)(),ni("design:type",String)],Fx.prototype,"CST",void 0);var Xc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],Xc.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"vCOFINS",void 0);var wf=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>hh),ni("design:type",typeof hh>"u"?Object:hh)],wf.prototype,"COFINSAliq",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>dh),ni("design:type",typeof dh>"u"?Object:dh)],wf.prototype,"COFINSQtde",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>Fx),ni("design:type",typeof Fx>"u"?Object:Fx)],wf.prototype,"COFINSNT",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>Xc),ni("design:type",typeof Xc>"u"?Object:Xc)],wf.prototype,"COFINSOutr",void 0);var Wc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],Wc.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"vCOFINS",void 0);var Co=require("class-validator");function kx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(kx,"_ts_decorate");function Vx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Vx,"_ts_metadata");var Wu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vBC",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vAliq",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vISSQN",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cMunFG",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cListServ",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cSitTrib",void 0);var qi=require("class-validator");function mh(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mh,"_ts_decorate");function gh(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gh,"_ts_metadata");var ja=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vBCUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vBCFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSInter",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSInterPart",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vICMSUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vICMSUFRemet",void 0);var di=require("class-validator");var jx=require("class-validator");function yie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yie,"_ts_decorate");function Sie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sie,"_ts_metadata");var Wm=class{static{o(this,"TransferenciaCredito")}vIBS;vCBS};yie([(0,jx.IsOptional)(),(0,jx.IsString)(),Sie("design:type",String)],Wm.prototype,"vIBS",void 0);yie([(0,jx.IsOptional)(),(0,jx.IsString)(),Sie("design:type",String)],Wm.prototype,"vCBS",void 0);var O_=require("class-validator");function zM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zM,"_ts_decorate");function KM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KM,"_ts_metadata");var vh=class{static{o(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"tpCredPresIBSZFM",void 0);zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"vCredPresIBSZFM",void 0);zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"competApur",void 0);var Ma=require("class-validator"),GM=require("class-transformer");function Ef(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ef,"_ts_decorate");function Af(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Af,"_ts_metadata");var Jm=class{static{o(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"vCredPresCondSus",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"pCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"vCredPres",void 0);var Ym=class{static{o(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"vCredPresCondSus",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"pCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"vCredPres",void 0);var Cf=class{static{o(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};Ef([(0,Ma.IsOptional)(),(0,Ma.ValidateNested)(),(0,GM.Type)(()=>Jm),Af("design:type",typeof Jm>"u"?Object:Jm)],Cf.prototype,"gIBSCredPres",void 0);Ef([(0,Ma.IsOptional)(),(0,Ma.ValidateNested)(),(0,GM.Type)(()=>Ym),Af("design:type",typeof Ym>"u"?Object:Ym)],Cf.prototype,"gCBSCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Cf.prototype,"vBCCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Cf.prototype,"cCredPres",void 0);var XM=require("class-validator");function bie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bie,"_ts_decorate");function xie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xie,"_ts_metadata");var Qm=class{static{o(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};bie([(0,XM.IsString)(),xie("design:type",String)],Qm.prototype,"vIBSEstCred",void 0);bie([(0,XM.IsString)(),xie("design:type",String)],Qm.prototype,"vCBSEstCred",void 0);var B_=require("class-validator");function WM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(WM,"_ts_decorate");function JM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JM,"_ts_metadata");var yh=class{static{o(this,"AjusteCompet")}competApur;vCBS;vIBS};WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"competApur",void 0);WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"vCBS",void 0);WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"vIBS",void 0);var Rr=require("class-validator");function Pi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Pi,"_ts_decorate");function _i(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_i,"_ts_metadata");var Cn=class{static{o(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vTotIBSMonoItem",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vTotCBSMonoItem",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBS",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBS",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMono",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMono",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMono",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBSReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBSReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBSRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBSRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoDif",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoDif",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"pDifIBS",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"pDifCBS",void 0);var ru=require("class-validator");var Sh=require("class-validator");function $m(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($m,"_ts_decorate");function Zm(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zm,"_ts_metadata");var Eo=class{static{o(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"CSTReg",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"cClassTribReg",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegIBSUF",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegIBSUF",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegIBSMun",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegIBSMun",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegCBS",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegCBS",void 0);var iI=require("class-transformer");var Yc=require("class-validator"),P_=require("class-transformer");var wie=require("class-validator");function bBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bBe,"_ts_decorate");function xBe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xBe,"_ts_metadata");var Ua=class{static{o(this,"DevTrib")}vDevTrib};bBe([(0,wie.IsString)(),xBe("design:type",String)],Ua.prototype,"vDevTrib",void 0);var YM=require("class-validator");function Cie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cie,"_ts_decorate");function Eie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Eie,"_ts_metadata");var xa=class{static{o(this,"Dif")}pDif;vDif};Cie([(0,YM.IsString)(),Eie("design:type",String)],xa.prototype,"pDif",void 0);Cie([(0,YM.IsString)(),Eie("design:type",String)],xa.prototype,"vDif",void 0);var QM=require("class-validator");function Aie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Aie,"_ts_decorate");function Nie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nie,"_ts_metadata");var wa=class{static{o(this,"Red")}pAliqEfet;pRedAliq};Aie([(0,QM.IsString)(),Nie("design:type",String)],wa.prototype,"pAliqEfet",void 0);Aie([(0,QM.IsString)(),Nie("design:type",String)],wa.prototype,"pRedAliq",void 0);function $2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($2,"_ts_decorate");function Z2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z2,"_ts_metadata");var Jc=class{static{o(this,"IBSMun")}pIBSMun;vIBSMun;gDevTrib;gDif;gRed};$2([(0,Yc.IsString)(),Z2("design:type",String)],Jc.prototype,"pIBSMun",void 0);$2([(0,Yc.IsString)(),Z2("design:type",String)],Jc.prototype,"vIBSMun",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>Ua),Z2("design:type",typeof Ua>"u"?Object:Ua)],Jc.prototype,"gDevTrib",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>xa),Z2("design:type",typeof xa>"u"?Object:xa)],Jc.prototype,"gDif",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>wa),Z2("design:type",typeof wa>"u"?Object:wa)],Jc.prototype,"gRed",void 0);var $c=require("class-validator"),__=require("class-transformer");function eI(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eI,"_ts_decorate");function tI(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tI,"_ts_metadata");var Qc=class{static{o(this,"IBSUF")}pIBSUF;vIBSUF;gDevTrib;gDif;gRed};eI([(0,$c.IsString)(),tI("design:type",String)],Qc.prototype,"pIBSUF",void 0);eI([(0,$c.IsString)(),tI("design:type",String)],Qc.prototype,"vIBSUF",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>Ua),tI("design:type",typeof Ua>"u"?Object:Ua)],Qc.prototype,"gDevTrib",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>xa),tI("design:type",typeof xa>"u"?Object:xa)],Qc.prototype,"gDif",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>wa),tI("design:type",typeof wa>"u"?Object:wa)],Qc.prototype,"gRed",void 0);var el=require("class-validator"),L_=require("class-transformer");function rI(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(rI,"_ts_decorate");function nI(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nI,"_ts_metadata");var Zc=class{static{o(this,"CBS")}pCBS;vCBS;gDevTrib;gDif;gRed};rI([(0,el.IsString)(),nI("design:type",String)],Zc.prototype,"pCBS",void 0);rI([(0,el.IsString)(),nI("design:type",String)],Zc.prototype,"vCBS",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>Ua),nI("design:type",typeof Ua>"u"?Object:Ua)],Zc.prototype,"gDevTrib",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>xa),nI("design:type",typeof xa>"u"?Object:xa)],Zc.prototype,"gDif",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>wa),nI("design:type",typeof wa>"u"?Object:wa)],Zc.prototype,"gRed",void 0);function Mx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mx,"_ts_decorate");function Ux(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ux,"_ts_metadata");var Ju=class{static{o(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};Mx([(0,ru.IsString)(),Ux("design:type",String)],Ju.prototype,"vBC",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Qc),Ux("design:type",typeof Qc>"u"?Object:Qc)],Ju.prototype,"gIBSUF",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Jc),Ux("design:type",typeof Jc>"u"?Object:Jc)],Ju.prototype,"gIBSMun",void 0);Mx([(0,ru.IsString)(),Ux("design:type",String)],Ju.prototype,"vIBS",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Zc),Ux("design:type",typeof Zc>"u"?Object:Zc)],Ju.prototype,"gCBS",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Eo),Ux("design:type",typeof Eo>"u"?Object:Eo)],Ju.prototype,"gTribRegular",void 0);var e0=require("class-transformer");function Nf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Nf,"_ts_decorate");function If(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(If,"_ts_metadata");var ns=class{static{o(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"CST",void 0);Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"cClassTrib",void 0);Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"indDoacao",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Wm),If("design:type",typeof Wm>"u"?Object:Wm)],ns.prototype,"gTransfCred",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>vh),If("design:type",typeof vh>"u"?Object:vh)],ns.prototype,"gCredPresIBSZFM",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Cf),If("design:type",typeof Cf>"u"?Object:Cf)],ns.prototype,"gCredPresOper",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>yh),If("design:type",typeof yh>"u"?Object:yh)],ns.prototype,"gAjusteCompet",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Qm),If("design:type",typeof Qm>"u"?Object:Qm)],ns.prototype,"gEstornoCred",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Cn),If("design:type",typeof Cn>"u"?Object:Cn)],ns.prototype,"gIBSCBSMono",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Ju),If("design:type",typeof Ju>"u"?Object:Ju)],ns.prototype,"gIBSCBS",void 0);var bh=require("class-validator");function t0(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(t0,"_ts_decorate");function r0(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(r0,"_ts_metadata");var Yu=class{static{o(this,"IS")}cClassTrib;CSTIS;pISEspec;vBCIS;uTrib;qTrib;pIS;vIS};t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"cClassTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"CSTIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"pISEspec",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"vBCIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"uTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"qTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"pIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"vIS",void 0);function nu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nu,"_ts_decorate");function Qu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qu,"_ts_metadata");var Hi=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IBSCBS;IS};nu([(0,En.IsOptional)(),(0,En.IsNumber)(),Qu("design:type",Number)],Hi.prototype,"vTotTrib",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>zn),Qu("design:type",typeof IICMS>"u"?Object:IICMS)],Hi.prototype,"ICMS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Xu),Qu("design:type",typeof IIPI>"u"?Object:IIPI)],Hi.prototype,"IPI",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Wu),Qu("design:type",typeof IISSQN>"u"?Object:IISSQN)],Hi.prototype,"ISSQN",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Sf),Qu("design:type",typeof III>"u"?Object:III)],Hi.prototype,"II",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>xf),Qu("design:type",typeof IPIS>"u"?Object:IPIS)],Hi.prototype,"PIS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Gc),Qu("design:type",typeof IPISST>"u"?Object:IPISST)],Hi.prototype,"PISST",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>wf),Qu("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Hi.prototype,"COFINS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Wc),Qu("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Hi.prototype,"COFINSST",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>ja),Qu("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Hi.prototype,"ICMSUFDest",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>ns),Qu("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],Hi.prototype,"IBSCBS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Yu),Qu("design:type",typeof IIS>"u"?Object:IIS)],Hi.prototype,"IS",void 0);Hi=nu([on({properties:["ICMS","ISSQN"]})],Hi);var $v=require("class-validator"),Iie=require("class-transformer");function $M(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($M,"_ts_decorate");function ZM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ZM,"_ts_metadata");var F_=class{static{o(this,"IpiDevol")}vIPIDevol};$M([(0,$v.IsString)(),ZM("design:type",String)],F_.prototype,"vIPIDevol",void 0);var qx=class{static{o(this,"Devol")}pDevol;IPI};$M([(0,$v.IsString)(),ZM("design:type",String)],qx.prototype,"pDevol",void 0);$M([(0,$v.IsOptional)(),(0,$v.ValidateNested)(),(0,Iie.Type)(()=>F_),ZM("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],qx.prototype,"IPI",void 0);var xh=require("class-validator"),eU=require("class-transformer");function k_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k_,"_ts_decorate");function V_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V_,"_ts_metadata");var Hx=class{static{o(this,"Observation")}xCampo;xTexto};k_([(0,xh.IsString)(),V_("design:type",String)],Hx.prototype,"xCampo",void 0);k_([(0,xh.IsString)(),V_("design:type",String)],Hx.prototype,"xTexto",void 0);var zx=class{static{o(this,"ObsItem")}obsCont;obsFisco};k_([(0,xh.IsOptional)(),(0,xh.ValidateNested)(),(0,eU.Type)(()=>Hx),V_("design:type",typeof IObservation>"u"?Object:IObservation)],zx.prototype,"obsCont",void 0);k_([(0,xh.IsOptional)(),(0,xh.ValidateNested)(),(0,eU.Type)(()=>Hx),V_("design:type",typeof IObservation>"u"?Object:IObservation)],zx.prototype,"obsFisco",void 0);function n0(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(n0,"_ts_decorate");function i0(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(i0,"_ts_metadata");var Kx=class{static{o(this,"DetAttributes")}nItem};n0([(0,Qs.IsString)(),i0("design:type",String)],Kx.prototype,"nItem",void 0);var tl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};n0([(0,Qs.IsObject)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Kx),i0("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],tl.prototype,"$",void 0);n0([(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Xt),i0("design:type",typeof IProd>"u"?Object:IProd)],tl.prototype,"prod",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Hi),i0("design:type",typeof IImposto>"u"?Object:IImposto)],tl.prototype,"imposto",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>qx),i0("design:type",typeof IDevol>"u"?Object:IDevol)],tl.prototype,"impostoDevol",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.IsString)(),i0("design:type",String)],tl.prototype,"infAdProd",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>zx),i0("design:type",typeof IObsItem>"u"?Object:IObsItem)],tl.prototype,"obsItem",void 0);n0([(0,Qs.IsOptional)(),ne({fixed:2}),i0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tl.prototype,"vItem",void 0);var Zs=require("class-validator");function rl(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(rl,"_ts_decorate");function nl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nl,"_ts_metadata");var $s=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"CNPJ",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"xOrgao",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"matr",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"xAgente",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"fone",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"UF",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"nDAR",void 0);rl([(0,Zs.IsOptional)(),Yh({format:"YYYY-MM-DD"}),nl("design:type",typeof Date>"u"?Object:Date)],$s.prototype,"dEmi",void 0);rl([(0,Zs.IsOptional)(),ne({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$s.prototype,"vDAR",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"repEmi",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsDate)(),nl("design:type",typeof Date>"u"?Object:Date)],$s.prototype,"dPag",void 0);var Tie=require("class-validator");function wBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wBe,"_ts_decorate");function CBe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CBe,"_ts_metadata");var Zv=class{static{o(this,"InfSolicNFF")}xSolic};wBe([(0,Tie.IsString)(),CBe("design:type",String)],Zv.prototype,"xSolic",void 0);function Ci(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ci,"_ts_decorate");function Ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ei,"_ts_metadata");var ey=class{static{o(this,"InfNFeAttributes")}Id;versao};Ci([(0,Pt.IsOptional)(),(0,Pt.IsString)(),Ei("design:type",String)],ey.prototype,"Id",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.IsString)(),Ei("design:type",String)],ey.prototype,"versao",void 0);var Ln=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Li.Type)(()=>ey),(0,Pt.ValidateNested)(),Ei("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],Ln.prototype,"$",void 0);Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>nn),Ei("design:type",typeof IIde>"u"?Object:IIde)],Ln.prototype,"ide",void 0);Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>xs),Ei("design:type",typeof IEmit>"u"?Object:IEmit)],Ln.prototype,"emit",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>$s),Ei("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],Ln.prototype,"avulsa",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>ws),Ei("design:type",typeof IDest>"u"?Object:IDest)],Ln.prototype,"dest",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Pn),Ei("design:type",typeof ILocal>"u"?Object:ILocal)],Ln.prototype,"retirada",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Pn),Ei("design:type",typeof ILocal>"u"?Object:ILocal)],Ln.prototype,"entrega",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)({each:!0}),(0,Pt.ArrayMaxSize)(10),(0,Li.Type)(()=>cf),Ei("design:type",Array)],Ln.prototype,"autXML",void 0);Ci([(0,Pt.ValidateNested)({each:!0}),(0,Pt.ArrayMaxSize)(990),(0,Pt.ArrayMinSize)(1),(0,Li.Type)(()=>tl),Ei("design:type",Array)],Ln.prototype,"det",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Uc),Ei("design:type",typeof ITotal>"u"?Object:ITotal)],Ln.prototype,"total",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>ya),Ei("design:type",typeof ITransp>"u"?Object:ITransp)],Ln.prototype,"transp",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qm),Ei("design:type",typeof ICobr>"u"?Object:ICobr)],Ln.prototype,"cobr",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Hm),Ei("design:type",typeof IPag>"u"?Object:IPag)],Ln.prototype,"pag",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Fm),Ei("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],Ln.prototype,"infIntermed",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qc),Ei("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],Ln.prototype,"infAdic",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Hp),Ei("design:type",typeof IExporta>"u"?Object:IExporta)],Ln.prototype,"exporta",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>zp),Ei("design:type",typeof ICompra>"u"?Object:ICompra)],Ln.prototype,"compra",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Sa),Ei("design:type",typeof ICana>"u"?Object:ICana)],Ln.prototype,"cana",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qu),Ei("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],Ln.prototype,"infRespTec",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Zv),Ei("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],Ln.prototype,"infSolicNFF",void 0);var tU=require("class-transformer");function j_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j_,"_ts_decorate");function M_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M_,"_ts_metadata");var Xx=class{static{o(this,"NFeAttributes")}xmlns};j_([(0,qa.IsString)(),(0,qa.IsNotEmpty)(),M_("design:type",String)],Xx.prototype,"xmlns",void 0);var wh=class{static{o(this,"NFe")}$;infNFe;Signature};j_([(0,qa.IsObject)(),(0,qa.IsNotEmptyObject)(),(0,tU.Type)(()=>Xx),(0,qa.ValidateNested)(),M_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],wh.prototype,"$",void 0);j_([(0,qa.IsObject)(),(0,qa.IsNotEmptyObject)(),(0,tU.Type)(()=>Ln),(0,qa.ValidateNested)(),M_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],wh.prototype,"infNFe",void 0);j_([(0,qa.Allow)(),M_("design:type",typeof Signature>"u"?Object:Signature)],wh.prototype,"Signature",void 0);function iu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(iu,"_ts_decorate");function wr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wr,"_ts_metadata");var Is=class{static{o(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}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.listener?.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.listener?.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}ibscbs(e){return this.schema===Uf.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===Uf.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.imposto(this.data.imposto);let e={...this.data};return this.data={},e}};iu([Ht(Kx),wr("design:type",Function),wr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),wr("design:returntype",void 0)],Is.prototype,"det",null);iu([Ht(Xt),wr("design:type",Function),wr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),wr("design:returntype",void 0)],Is.prototype,"prod",null);iu([Ht(Hi),wr("design:type",Function),wr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),wr("design:returntype",void 0)],Is.prototype,"imposto",null);iu([Ht(zn),wr("design:type",Function),wr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),wr("design:returntype",void 0)],Is.prototype,"icms",null);iu([Ht(Wu),wr("design:type",Function),wr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),wr("design:returntype",void 0)],Is.prototype,"issqn",null);iu([Ht(Sf),wr("design:type",Function),wr("design:paramtypes",[typeof III>"u"?Object:III]),wr("design:returntype",void 0)],Is.prototype,"ii",null);iu([Ht(Xu),wr("design:type",Function),wr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),wr("design:returntype",void 0)],Is.prototype,"ipi",null);iu([Ht(xf),wr("design:type",Function),wr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),wr("design:returntype",void 0)],Is.prototype,"pis",null);iu([Ht(Gc),wr("design:type",Function),wr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),wr("design:returntype",void 0)],Is.prototype,"pisst",null);iu([Ht(wf),wr("design:type",Function),wr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),wr("design:returntype",void 0)],Is.prototype,"cofins",null);iu([Ht(Wc),wr("design:type",Function),wr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),wr("design:returntype",void 0)],Is.prototype,"cofinsst",null);iu([Ht(ja),wr("design:type",Function),wr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),wr("design:returntype",void 0)],Is.prototype,"icmsufdest",null);iu([Ht(ns),wr("design:type",Function),wr("design:paramtypes",[typeof ns>"u"?Object:ns]),wr("design:returntype",void 0)],Is.prototype,"ibscbs",null);function is(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(is,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Fn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return wh}root="NFe";$det=new b2(this);$total=new x2(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=Is.create(this.$det,this.schema)}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,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this.schema!==Uf.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...this.data.infNFe.total.IBSCBSTot,gCBS:{...this.data.infNFe.total.IBSCBSTot?.gCBS},gIBS:{...this.data.infNFe.total.IBSCBSTot?.gIBS,gIBSMun:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSMun},gIBSUF:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSUF}},gMono:{...this.data.infNFe.total.IBSCBSTot?.gMono}},vNFTot:e.vNFTot}}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(bu,this),this}toObject(){if(this.$data!==void 0)return gr(this.$data);let e=this.errors();return e?Xr(new br(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=nR(this.data,this.entity,{clearEmptyValues:!0}),gr(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:gr(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==qe.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:t}=this.data.infNFe.ide;if(t!==ia.Normal)return;switch(g_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=ia.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=ia.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===ia.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(bu,this)}collect(e){let t=Reflect.getMetadata(bu,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(bu,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Dw().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}}};is([Ht(ey),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Fn.prototype,"infNFe",null);is([Ht(nn),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Fn.prototype,"ide",null);is([Ht(xs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Fn.prototype,"emit",null);is([Ht($s),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Fn.prototype,"avulsa",null);is([Ht(ws),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Fn.prototype,"dest",null);is([Ht(Pn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Fn.prototype,"retirada",null);is([Ht(Pn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Fn.prototype,"entrega",null);is([Ht(cf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Fn.prototype,"autXML",null);is([Ht(Uc),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Fn.prototype,"total",null);is([Ht(ya),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Fn.prototype,"transp",null);is([Ht(qm),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Fn.prototype,"cobr",null);is([Ht(Hm),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Fn.prototype,"pag",null);is([Ht(Fm),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Fn.prototype,"infIntermed",null);is([Ht(qc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Fn.prototype,"infAdic",null);is([Ht(Hp),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Fn.prototype,"exporta",null);is([Ht(zp),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Fn.prototype,"compra",null);is([Ht(Sa),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Fn.prototype,"cana",null);is([Ht(qu),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Fn.prototype,"infRespTec",null);is([Ht(Zv),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Fn.prototype,"infSolicNFF",null);var sI=class extends ox{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=Fn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return Rie.default.resolve(Rw(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return gr(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return gr(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?t:gr(e)}};var H_=require("class-transformer"),Ao=require("class-validator");var rU=require("class-validator");function Die(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Die,"_ts_decorate");function Oie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Oie,"_ts_metadata");var Wx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};Die([(0,rU.IsString)(),Oie("design:type",String)],Wx.prototype,"qrCode",void 0);Die([(0,rU.IsString)(),Oie("design:type",String)],Wx.prototype,"urlChave",void 0);function U_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U_,"_ts_decorate");function q_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(q_,"_ts_metadata");var Tf=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Xx),(0,Ao.ValidateNested)(),q_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Tf.prototype,"$",void 0);U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Ln),(0,Ao.ValidateNested)(),q_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Tf.prototype,"infNFe",void 0);U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Wx),(0,Ao.ValidateNested)(),q_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Tf.prototype,"infNFeSupl",void 0);U_([(0,Ao.Allow)(),q_("design:type",typeof Signature>"u"?Object:Signature)],Tf.prototype,"Signature",void 0);var aI=class extends Fn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Tf}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}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===ia.Normal)return this.data.infNFe.ide.tpEmis=ia.OFFLINE,void 0}};var nU=class extends sI{static{o(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new Wo(this.certificates);transmitter=new yo(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=aI.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return Xr(new br("Certificate is required to assemble NFCe XML with QR Code"));let n=await this.toolkit.parse(t.value),i=await this.generateQrCode(n,this.options,this.certificate);if(i.isLeft())return i;let s=await this.toolkit.build(n,{rootName:"NFe"}),a=await this.toolkit.build(i.value,{rootName:"infNFeSupl"}),u=this.toolkit.insertBefore(s,"Signature",a);return gr(u)}async generateQrCode(e,t,n){let i=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),s={...t.qrCode};switch(s.version??=i.version,s.version){case"200":return await this.nfceQrcode.execute(e,{version:s.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url,CSC:s.CSC,CSCId:s.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:s.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url})}default:return B0(s.version)}}};var Bie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qO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JRU5ErkJggg==";var Jx=class r{static{o(this,"Header")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),i=e?.x??t,s=this.context.data.infNFe.emit,{enderEmit:a}=s,{xNome:u}=s,c=this.context.defaults.font,l=`${c}-Bold`,p="left";this.builder.row({left:i,right:n},d=>this.builder.text(this.identification(s),{...d,continued:!0,align:p}).font(l).text(` ${u}`,{...d,align:p}).font(c)).row({left:i,right:n},d=>this.builder.text(this.addressLine1(a),{...d,continued:!0,align:p}).text(this.addressLine2(a),{...d,continued:!0,align:p}).text(this.addressLine3(a),{...d,align:p})).row({left:i,right:n},d=>this.builder.text(this.addressLine4(a),{...d,align:p}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}addressLine4(e){let{fone:t}=e;return t?`Fone: ${t.replace(/(\d{2})(\d{4,5})(\d{4})/,"($1) $2-$3")}`:""}staticTexts(){let{left:e,right:t}=this.builder.pageMargins();this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return Bie}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){r._instance=void 0}};var Ch=class r{static{o(this,"FiscalMessages")}context;static _instance;constants={issuedInContingency:"EMITIDA EM CONTING\xCANCIA",pendingOfAuthorization:"Pendente de autoriza\xE7\xE3o",notProtocoledInNormalEmission:"PENDENTE DE AUTORIZA\xC7\xC3O - SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return`${this.constants.issuedInContingency}
|
|
132
|
+
`,"\r"," "].reduce((n,i)=>n.replace(i,""),e.replace(/(>)\s*(<)/gm,"$1$2"))}};var b2=class{static{o(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:en.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:en.newOrZero(n?.vFrete).add(e.vFrete??t).toFixed(2),vSeg:en.newOrZero(n?.vSeg).add(e.vSeg??t).toFixed(2),vDesc:en.newOrZero(n?.vDesc).add(e.vDesc??t).toFixed(2),vOutro:en.newOrZero(n?.vOutro).add(e.vOutro??t).toFixed(2)}}))}cofins(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vCOFINS:en.newOrZero(n?.vCOFINS).add(e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS??t).toFixed(2)}}))}pis(e){let t=en.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vPIS:en.newOrZero(n?.vPIS).add(e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS??t).toFixed(2)}}))}icms(e){let t=en.from(0),[n]=Object.keys(e),i=e[n];this.builder.increment(({ICMSTot:s})=>({ICMSTot:{vBC:en.newOrZero(s?.vBC).add(i.vBC??t).toFixed(2),vICMS:en.newOrZero(s?.vICMS).add(i.vICMS??t).toFixed(2),vICMSDeson:en.newOrZero(s?.vICMSDeson).add(i.vICMSDeson??t).toFixed(2),vBCST:en.newOrZero(s?.vBCST).add(i.vBCST??t).toFixed(2),vST:en.newOrZero(s?.vST).add(i.vICMSST??t).toFixed(2)}}))}};var x2=class{static{o(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=en.from(0),t=this.builder.schema===Uf.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:i},s)=>({vNFTot:t?s.reduce((a,u)=>a.add(u?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:en.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(n?.vICMSDeson??e).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(i?.vServ??e).toFixed(2)}}))}};var Xne={[Mf.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};var pM=lr(require("crypto"),1);var o_=class{static{o(this,"CryptoSignerRepository")}async sign(e,t,n){try{if(!t.privateKey)return Xr(new br("Certificate private key not found"));let s=pM.default.sign(n,Buffer.from(e),{key:t.privateKey,padding:pM.default.constants.RSA_PKCS1_PADDING}).toString("base64");return await Promise.resolve(gr(s))}catch(i){return Promise.resolve(Xf(i))}}};var ox=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=B1.create();toolkit=new ax;caching=new ST;signerRepository=new o_;certificates=new sR(this.http,this.signerRepository,this.caching);soap=new ZD(this.toolkit,this.certificates);signer=new eR(this.toolkit,this.certificates);xmlSigner=new tR(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(bu,this)}};var eie=lr(require("path"),1);var Wne=require("class-transformer"),Oc=require("class-validator");function u_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(u_,"_ts_decorate");function dM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(dM,"_ts_metadata");var Lm=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};u_([(0,Oc.IsEnum)(qe),dM("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Lm.prototype,"tpAmb",void 0);u_([(0,Oc.IsEnum)(he),dM("design:type",typeof StateCode>"u"?Object:StateCode)],Lm.prototype,"cUF",void 0);u_([(0,Oc.IsOptional)()],Lm.prototype,"xServ",void 0);var hM=class{static{o(this,"ConsultStatusRequest")}consStatServ};u_([(0,Oc.IsNotEmptyObject)(),(0,Oc.IsObject)(),(0,Oc.ValidateNested)(),(0,Wne.Type)(()=>Lm),dM("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],hM.prototype,"consStatServ",void 0);var l_=require("class-transformer"),ur=require("class-validator");function Zi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zi,"_ts_decorate");function Ks(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ks,"_ts_metadata");var c_=class{static{o(this,"InfInutAttributes")}Id};Zi([(0,ur.IsString)(),Ks("design:type",String)],c_.prototype,"Id",void 0);var w2=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Zi([(0,ur.IsString)(),Ks("design:type",String)],w2.prototype,"xmlns",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],w2.prototype,"versao",void 0);var zs=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Zi([(0,ur.ValidateNested)(),(0,l_.Type)(()=>c_),Ks("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],zs.prototype,"$",void 0);Zi([(0,ur.IsEnum)(qe),Ks("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],zs.prototype,"tpAmb",void 0);Zi([(0,ur.IsOptional)()],zs.prototype,"xServ",void 0);Zi([(0,ur.IsEnum)(he),Ks("design:type",typeof StateCode>"u"?Object:StateCode)],zs.prototype,"cUF",void 0);Zi([(0,ur.IsString)(),(0,ur.Length)(2,2),(0,ur.Matches)(/^[0-9]{2}$/),Ks("design:type",String)],zs.prototype,"ano",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],zs.prototype,"CNPJ",void 0);Zi([(0,ur.IsString)(),(0,ur.IsOptional)(),Ks("design:type",String)],zs.prototype,"CPF",void 0);Zi([(0,ur.IsString)(),(0,ur.Length)(2,2),(0,ur.Matches)(/^(55|65)$/),Ks("design:type",String)],zs.prototype,"mod",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,3}$/),Ks("design:type",String)],zs.prototype,"serie",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,9}$/),Ks("design:type",String)],zs.prototype,"nNFIni",void 0);Zi([(0,ur.IsString)(),(0,ur.Matches)(/^[0-9]{1,9}$/),Ks("design:type",String)],zs.prototype,"nNFFin",void 0);Zi([(0,ur.IsString)(),(0,ur.MinLength)(15),(0,ur.MaxLength)(255),Ks("design:type",String)],zs.prototype,"xJust",void 0);zs=Zi([on({properties:["CNPJ","CPF"],required:!0})],zs);var Vp=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Zi([(0,ur.IsObject)(),(0,ur.ValidateNested)(),(0,l_.Type)(()=>w2),Ks("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Vp.prototype,"$",void 0);Zi([(0,ur.IsObject)(),(0,ur.ValidateNested)(),(0,l_.Type)(()=>zs),Ks("design:type",typeof IInfInut>"u"?Object:IInfInut)],Vp.prototype,"infInut",void 0);Zi([(0,ur.Allow)(),Ks("design:type",typeof Signature>"u"?Object:Signature)],Vp.prototype,"Signature",void 0);var sf=require("class-validator");function mM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mM,"_ts_decorate");function Jne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jne,"_ts_metadata");var Vv=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};mM([(0,sf.IsEnum)(qe),Jne("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Vv.prototype,"tpAmb",void 0);mM([(0,sf.IsOptional)()],Vv.prototype,"xServ",void 0);mM([(0,sf.IsString)(),(0,sf.Length)(44,44),(0,sf.Matches)(/^[0-9]{44}$/),Jne("design:type",String)],Vv.prototype,"chNFe",void 0);var Xo=require("class-validator");function C2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(C2,"_ts_decorate");function f_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(f_,"_ts_metadata");var jp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};C2([(0,Xo.IsEnum)(qe),(0,Xo.IsOptional)(),f_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],jp.prototype,"tpAmb",void 0);C2([(0,Xo.IsEnum)(he),(0,Xo.IsOptional)(),f_("design:type",typeof StateCode>"u"?Object:StateCode)],jp.prototype,"cUF",void 0);C2([(0,Xo.IsString)(),(0,Xo.IsOptional)(),f_("design:type",String)],jp.prototype,"idLote",void 0);C2([(0,Xo.IsOptional)(),(0,Xo.IsEnum)(["0","1"])],jp.prototype,"indSinc",void 0);C2([(0,Xo.IsNotEmpty)(),f_("design:type",typeof T>"u"?Object:T)],jp.prototype,"NFe",void 0);var p_=require("class-validator");function Yne(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yne,"_ts_decorate");function Qne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qne,"_ts_metadata");var ux=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;nRec};Yne([(0,p_.IsEnum)(qe),Qne("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ux.prototype,"tpAmb",void 0);Yne([(0,p_.IsString)(),Qne("design:type",String)],ux.prototype,"nRec",void 0);var $r=require("class-validator"),E2=require("class-transformer");function es(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(es,"_ts_decorate");function bs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bs,"_ts_metadata");var h_=class{static{o(this,"InfEventoAttributes")}Id};es([(0,$r.IsString)(),bs("design:type",String)],h_.prototype,"Id",void 0);var Ss=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>h_),bs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Ss.prototype,"$",void 0);es([(0,$r.IsString)(),bs("design:type",typeof StateCode>"u"?Object:StateCode)],Ss.prototype,"cOrgao",void 0);es([(0,$r.IsString)(),bs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ss.prototype,"tpAmb",void 0);es([(0,$r.IsString)(),(0,$r.IsOptional)(),bs("design:type",String)],Ss.prototype,"CNPJ",void 0);es([(0,$r.IsString)(),(0,$r.IsOptional)(),bs("design:type",String)],Ss.prototype,"CPF",void 0);es([(0,$r.IsString)(),bs("design:type",String)],Ss.prototype,"chNFe",void 0);es([Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),bs("design:type",String)],Ss.prototype,"dhEvento",void 0);es([(0,$r.IsEnum)(Mf),bs("design:type",typeof Mf>"u"?Object:Mf)],Ss.prototype,"tpEvento",void 0);es([(0,$r.IsNumber)(),bs("design:type",Number)],Ss.prototype,"nSeqEvento",void 0);es([(0,$r.IsString)(),bs("design:type",String)],Ss.prototype,"verEvento",void 0);es([(0,$r.IsObject)(),bs("design:type",typeof T>"u"?Object:T)],Ss.prototype,"detEvento",void 0);Ss=es([on({properties:["CNPJ","CPF"],required:!0})],Ss);var d_=class{static{o(this,"EventoItemAttributes")}xmlns};es([(0,$r.IsString)(),bs("design:type",String)],d_.prototype,"xmlns",void 0);var af=class{static{o(this,"EventoItem")}$;infEvento;Signature};es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>d_),bs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],af.prototype,"$",void 0);es([(0,$r.IsObject)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>Ss),bs("design:type",typeof Ss>"u"?Object:Ss)],af.prototype,"infEvento",void 0);es([(0,$r.Allow)(),bs("design:type",typeof Signature>"u"?Object:Signature)],af.prototype,"Signature",void 0);var cx=class{static{o(this,"EventoPayload")}idLote;evento};es([(0,$r.IsString)(),bs("design:type",String)],cx.prototype,"idLote",void 0);es([(0,$r.IsNotEmpty)(),(0,$r.ValidateNested)(),(0,E2.Type)(()=>af),bs("design:type",typeof af>"u"?Object:af)],cx.prototype,"evento",void 0);var Mu=require("class-validator");function lx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lx,"_ts_decorate");function m_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(m_,"_ts_metadata");var Bc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};lx([(0,Mu.IsOptional)()],Bc.prototype,"xServ",void 0);lx([(0,Mu.IsString)(),(0,Mu.IsIn)(Object.values(Kne)),m_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],Bc.prototype,"UF",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"IE",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"CNPJ",void 0);lx([(0,Mu.IsOptional)(),(0,Mu.IsString)(),m_("design:type",String)],Bc.prototype,"CPF",void 0);Bc=lx([on({properties:["IE","CNPJ","CPF"],required:!0})],Bc);var $ne={AM:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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 mBe={[he.AC]:"SVRS",[he.AL]:"SVRS",[he.AM]:"AM",[he.AP]:"SVRS",[he.BA]:"BA",[he.CE]:"SVRS",[he.DF]:"SVRS",[he.ES]:"SVRS",[he.GO]:"GO",[he.MA]:"SVAN",[he.MG]:"MG",[he.MS]:"MS",[he.MT]:"MT",[he.PA]:"SVRS",[he.PB]:"SVRS",[he.PE]:"PE",[he.PI]:"SVRS",[he.PR]:"PR",[he.RJ]:"SVRS",[he.RN]:"SVRS",[he.RO]:"SVRS",[he.RR]:"SVRS",[he.RS]:"RS",[he.SC]:"SVRS",[he.SE]:"SVRS",[he.SP]:"SP",[he.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Zne=mBe;var g_={[he.AC]:"SVCAN",[he.AL]:"SVCAN",[he.AM]:"SVCRS",[he.AP]:"SVCAN",[he.BA]:"SVCRS",[he.CE]:"SVCAN",[he.DF]:"SVCAN",[he.ES]:"SVCAN",[he.GO]:"SVCRS",[he.MA]:"SVCRS",[he.MG]:"SVCAN",[he.MS]:"SVCRS",[he.MT]:"SVCRS",[he.PA]:"SVCAN",[he.PB]:"SVCAN",[he.PE]:"SVCRS",[he.PI]:"SVCAN",[he.PR]:"SVCRS",[he.RJ]:"SVCAN",[he.RN]:"SVCAN",[he.RO]:"SVCAN",[he.RR]:"SVCAN",[he.RS]:"SVCAN",[he.SC]:"SVCAN",[he.SE]:"SVCAN",[he.SP]:"SVCAN",[he.TO]:"SVCAN"};function jv(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jv,"_ts_decorate");function Oi(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Oi,"_ts_metadata");var vo=class{static{o(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:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Uf.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?g_[t]:Zne[t];return $ne[i][n][e.service]}errors(){return Reflect.getMetadata(bu,this)}validate(e){try{let t=this.errors();return t?Xr(new br(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),gr(e))}finally{Reflect.deleteMetadata(bu,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return eie.default.resolve(Rw(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:he[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"})}};jv([Ht(Lm),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultStatus",null);jv([Ht(Vp),Oi("design:type",Function),Oi("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"inutilizacao",null);jv([Ht(Vv),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultaProtocolo",null);jv([Ht(jp),Oi("design:type",Function),Oi("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"autorizacao",null);jv([Ht(ux),Oi("design:type",Function),Oi("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Oi("design:returntype",Promise)],vo.prototype,"retAutorizacao",null);jv([Ht(cx),Oi("design:type",Function),Oi("design:paramtypes",[Object]),Oi("design:returntype",Promise)],vo.prototype,"recepcaoEvento",null);jv([Ht(Bc),Oi("design:type",Function),Oi("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Oi("design:returntype",Promise)],vo.prototype,"consultaCadastro",null);var Uu=class extends ox{static{o(this,"TransmissionPipeline")}certificate;transmitter=new vo(this.soap);constructor(e){super(e),this.certificate=e}};function gBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gBe,"_ts_decorate");function gM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gM,"_ts_metadata");var A2=class extends Uu{static{o(this,"EventPipeline")}async event(e,t,n){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let s=t.chNFe.slice(0,2);this.transmitter.configure({cUF:s,...n,certificate:i.value});let a=Xne[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:p}=t,d=["ID",e,p,c.toString().padStart(2,"0")].join(""),g={$:{xmlns:this.xmlns},infEvento:{$:{Id:d},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:p,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(g);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?Xr(new br(t.join(", "))):gr(e)}};gBe([Ht(af),gM("design:type",Function),gM("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),gM("design:returntype",void 0)],A2.prototype,"validated",null);var N2=class extends A2{static{o(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},i=await this.event(Mf.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};var v_=class extends br{static{o(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var tie=(function(r){return r.Autorizada="100",r.AutorizadaForaDoPrazo="150",r.UsoDenegado="110",r.NfeDenegada="205",r.DenegadaIrregularidadeEmissor="301",r.DenegadaIrregularidadeDestinatario="302",r.DenegadaNaoHabilitadaNaUf="303",r})({});var I2=class extends Uu{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.handleNfeBatch(n.value,e.xml);if(i.isLeft())return i;let[s]=i.value;this.transmitter.configure({cUF:s.infNFe.ide.cUF,tpAmb:s.infNFe.ide.tpAmb,...t,contingency:this.contingency(s),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let a=await this.transmitter.autorizacao({...e,NFe:i.value});if(a.isLeft())return a;let u=a.value;return this.isSyncResponse(u)?gr(await this.response(i.value,u)):await this.handleAsyncResponse(i.value,u)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(tie).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let i={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],i=await Promise.all(e.map((s,a)=>this.protocol(s,n[a])));return i.length>1?{xml:i,response:t}:{xml:i[0],response:t}}async signNfe(e,t){return this.signer.sign(t,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,t){if(!Array.isArray(t)){let i=await this.toolkit.parse(t),s=await this.signNfe(e,i);return s.isLeft()?Xr(s.value):gr([s.value])}let n=await Promise.all(t.map(async i=>this.signNfe(e,await this.toolkit.parse(i))));return n.some(i=>i.isLeft())?Xr(new br("Failed to sign a NFe in batch")):gr(n.filter(i=>i.isRight()).map(i=>i.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:{nRec:i}}=t.retEnviNFe,s=1;for(;s<=3;)try{await new Promise(c=>setTimeout(c,1e3));let a=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(a.isLeft())continue;let u=a.value.retConsReciNFe.protNFe;if(!u||Array.isArray(u)&&u.length===0)continue;return gr(await this.response(e,{retEnviNFe:{...a.value.retConsReciNFe,protNFe:u}}))}finally{s++}return Xr(new v_)}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.infNFe.ide;if(!(!t||!n||i===ia.Normal))return{dhCont:t,xJust:n}}};function vBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vBe,"_ts_decorate");function vM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vM,"_ts_metadata");var fx=class extends Uu{static{o(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let s=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,s,i.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),u={$:{xmlns:this.xmlns},infInut:{$:{Id:a},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:s,CNPJ:i.CNPJ,CPF:i.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},c=this.validated(u);if(c.isLeft())return c;let l=await this.signer.sign(c.value,{tag:"infInut",mark:"Id"},n.value);return l.isLeft()?l:await this.transmitter.inutilizacao(l.value)}validated(e){let t=this.errors();return t?Xr(new br(t.join(", "))):gr(e)}};vBe([Ht(Vp),vM("design:type",Function),vM("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),vM("design:returntype",void 0)],fx.prototype,"validated",null);var T2=class extends Uu{static{o(this,"NfeConsultStatusPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({...e,certificate:t.value}),await this.transmitter.consultStatus(e))}};var yM=class extends Uu{static{o(this,"NfeAuthorizationResponsePipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({cUF:e.cUF,tpAmb:e.tpAmb,certificate:t.value}),this.transmitter.retAutorizacao(e))}};var rie=lr(require("crypto"),1);var Wo=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:gr(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):B0(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==ia.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),d=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${d}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=rie.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(gr(`${u}${s}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:i}=e,s=t?t.replace(/\D/g,""):n?n.replace(/\D/g,""):i?.replace(/\D/g,"");return s?s.length===11?{tipo:"1",documento:s}:s.length===14?{tipo:"2",documento:s}:i&&s.length>=3&&s.length<=14?{tipo:"3",documento:s}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==ia.OFFLINE)return gr(`${i}${a}|${u}|${s}`);let c=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:p,documento:d}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),g=`${a}|${u}|${s}|${c}|${l}|${p}|${d}`,y=await this.certificateRepository.sign(g,t.certificate,Cl.SHA1);return y.isLeft()?y:gr(`${i}${g}|${y.value}`)}};var SM={AC:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[qe.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"}},[qe.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:{[qe.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[qe.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[qe.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"}},[qe.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:{[qe.Homolog]:{},[qe.Production]:{}}};var nie={[qe.Homolog]:{[he.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[he.AL]:"www.sefaz.al.gov.br/nfce/consulta",[he.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[he.AM]:"www.sefaz.am.gov.br/nfce/consulta",[he.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[he.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[he.DF]:"www.fazenda.df.gov.br/nfce/consulta",[he.ES]:"www.sefaz.es.gov.br/nfce/consulta",[he.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[he.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[he.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[he.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[he.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[he.PA]:"www.sefa.pa.gov.br/nfce/consulta",[he.PB]:"www.sefaz.pb.gov.br/nfcehom",[he.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[he.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[he.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[he.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[he.RN]:"www.set.rn.gov.br/nfce/consulta",[he.RO]:"www.sefin.ro.gov.br/nfce/consulta",[he.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[he.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[he.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[he.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[he.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[he.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[qe.Production]:{[he.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[he.AL]:"www.sefaz.al.gov.br/nfce/consulta",[he.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[he.AM]:"www.sefaz.am.gov.br/nfce/consulta",[he.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[he.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[he.DF]:"www.fazenda.df.gov.br/nfce/consulta",[he.ES]:"www.sefaz.es.gov.br/nfce/consulta",[he.GO]:"www.sefaz.go.gov.br/nfce/consulta",[he.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[he.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[he.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[he.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[he.PA]:"www.sefa.pa.gov.br/nfce/consulta",[he.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[he.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[he.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[he.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[he.RN]:"www.set.rn.gov.br/nfce/consulta",[he.RO]:"www.sefin.ro.gov.br/nfce/consulta",[he.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[he.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[he.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[he.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[he.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[he.TO]:"www.sefaz.to.gov.br/nfce/consulta",[he.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var yBe={[he.AC]:"SVRS",[he.AL]:"SVRS",[he.AM]:"AM",[he.AP]:"SVRS",[he.BA]:"SVRS",[he.CE]:"SVRS",[he.DF]:"SVRS",[he.ES]:"SVRS",[he.GO]:"GO",[he.MA]:"SVRS",[he.MG]:"MG",[he.MS]:"MS",[he.MT]:"MT",[he.PA]:"SVRS",[he.PB]:"SVRS",[he.PE]:"SVRS",[he.PI]:"SVRS",[he.PR]:"PR",[he.RJ]:"SVRS",[he.RN]:"SVRS",[he.RO]:"SVRS",[he.RR]:"SVRS",[he.RS]:"RS",[he.SC]:"SVRS",[he.SE]:"SVRS",[he.SP]:"SP",[he.TO]:"SVRS",SVRS:"SVRS"},iie=yBe;var Jo=require("class-validator");function R2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R2,"_ts_decorate");function y_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(y_,"_ts_metadata");var Mp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};R2([(0,Jo.IsEnum)(qe),(0,Jo.IsOptional)(),y_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Mp.prototype,"tpAmb",void 0);R2([(0,Jo.IsEnum)(he),(0,Jo.IsOptional)(),y_("design:type",typeof StateCode>"u"?Object:StateCode)],Mp.prototype,"cUF",void 0);R2([(0,Jo.IsString)(),(0,Jo.IsOptional)(),y_("design:type",String)],Mp.prototype,"idLote",void 0);R2([(0,Jo.IsOptional)(),(0,Jo.IsEnum)(["0","1"])],Mp.prototype,"indSinc",void 0);R2([(0,Jo.IsNotEmpty)(),y_("design:type",typeof T>"u"?Object:T)],Mp.prototype,"NFe",void 0);function SBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SBe,"_ts_decorate");function bM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bM,"_ts_metadata");var yo=class extends vo{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=iie[t],u=SM[i][n][e.service];if(u)return u;let c=Object.keys(he).find(l=>he[l]===t);return SM[c][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return nie[n][t]}async autorizacao(e){return super.autorizacao(e)}};SBe([Ht(Mp),bM("design:type",Function),bM("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),bM("design:returntype",Promise)],yo.prototype,"autorizacao",null);var xM=class extends N2{static{o(this,"NfceCancelPipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var wM=class extends I2{static{o(this,"NfceAuthorizerPipeline")}certificate;qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var CM=class extends fx{static{o(this,"NfceVoidRangePipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var EM=class extends T2{static{o(this,"NfceConsultStatusPipeline")}qrCode=new Wo(this.certificates);transmitter=new yo(this.soap,this.qrCode)};var Rie=lr(require("path"),1);var qa=require("class-validator");var Pt=require("class-validator"),Li=require("class-transformer");var xt=require("class-validator"),D2=require("class-transformer");function Kt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Kt,"_ts_decorate");function Gt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gt,"_ts_metadata");var Up=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"AAMM",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"CNPJ",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Up.prototype,"nNF",void 0);var Yo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"AAMM",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"CNPJ",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"CPF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"IE",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],Yo.prototype,"nNF",void 0);Yo=Kt([on({properties:["CNPJ","CPF"],required:!0})],Yo);var px=class{static{o(this,"RefECF")}mod;nECF;nCOO};Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"nECF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],px.prototype,"nCOO",void 0);var qp=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refNFe",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refNFeSig",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>Up),Gt("design:type",typeof IRefNF>"u"?Object:IRefNF)],qp.prototype,"refNF",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>Yo),Gt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],qp.prototype,"refNFP",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],qp.prototype,"refCTe",void 0);Kt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,D2.Type)(()=>px),Gt("design:type",typeof IRefECF>"u"?Object:IRefECF)],qp.prototype,"refECF",void 0);var nn=class{static{o(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};Kt([(0,xt.IsEnum)(he),Gt("design:type",typeof StateCode>"u"?Object:StateCode)],nn.prototype,"cUF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"cNF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"natOp",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"mod",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"serie",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"nNF",void 0);Kt([Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhEmi",void 0);Kt([(0,xt.IsOptional)(),Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhSaiEnt",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"tpNF",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"idDest",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"cMunFG",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"tpImp",void 0);Kt([(0,xt.IsString)(),Gt("design:type",typeof TpEmis>"u"?Object:TpEmis)],nn.prototype,"tpEmis",void 0);Kt([(0,xt.IsString)(),(0,xt.IsOptional)(),Gt("design:type",String)],nn.prototype,"cDV",void 0);Kt([(0,xt.IsString)(),Gt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],nn.prototype,"tpAmb",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"finNFe",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indFinal",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indPres",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"indIntermed",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"procEmi",void 0);Kt([(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"verProc",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Yh({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Gt("design:type",String)],nn.prototype,"dhCont",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsString)(),Gt("design:type",String)],nn.prototype,"xJust",void 0);Kt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,D2.Type)(()=>qp),Gt("design:type",Array)],nn.prototype,"NFref",void 0);var ts=require("class-validator");var sie=require("class-transformer");var Xs=require("class-validator");function Pc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Pc,"_ts_decorate");function _c(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_c,"_ts_metadata");var Gs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xLgr",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"nro",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xCpl",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xBairro",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"cMun",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xMun",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"UF",void 0);Pc([(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"CEP",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"cPais",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"xPais",void 0);Pc([(0,Xs.IsOptional)(),(0,Xs.IsString)(),_c("design:type",String)],Gs.prototype,"fone",void 0);function Lc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Lc,"_ts_decorate");function of(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(of,"_ts_metadata");var xs=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CNPJ",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CPF",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"xNome",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"xFant",void 0);Lc([(0,ts.ValidateNested)(),(0,sie.Type)(()=>Gs),of("design:type",typeof Gs>"u"?Object:Gs)],xs.prototype,"enderEmit",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IE",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IEST",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"IM",void 0);Lc([(0,ts.IsOptional)(),(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CNAE",void 0);Lc([(0,ts.IsString)(),of("design:type",String)],xs.prototype,"CRT",void 0);xs=Lc([on({properties:["CNPJ","CPF"],required:!0})],xs);var wi=require("class-validator"),aie=require("class-transformer");var Jn=require("class-validator");function Fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Fc,"_ts_decorate");function kc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kc,"_ts_metadata");var Fa=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xLgr",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"nro",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xCpl",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xBairro",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"cMun",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xMun",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"UF",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"CEP",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"cPais",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"xPais",void 0);Fc([(0,Jn.IsOptional)(),(0,Jn.IsString)(),kc("design:type",String)],Fa.prototype,"fone",void 0);function Vc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Vc,"_ts_decorate");function uf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uf,"_ts_metadata");var ws=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"CNPJ",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"CPF",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"idEstrangeiro",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"xNome",void 0);Vc([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,aie.Type)(()=>Fa),uf("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],ws.prototype,"enderDest",void 0);Vc([(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"indIEDest",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"IE",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"ISUF",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"IM",void 0);Vc([(0,wi.IsOptional)(),(0,wi.IsString)(),uf("design:type",String)],ws.prototype,"email",void 0);ws=Vc([on({properties:["CNPJ","CPF"],required:!0})],ws);var mn=require("class-validator");function Ws(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ws,"_ts_decorate");function da(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(da,"_ts_metadata");var Pn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CNPJ",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CPF",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xNome",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xLgr",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"nro",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xCpl",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xBairro",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"cMun",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xMun",void 0);Ws([(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"UF",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"CEP",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"cPais",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"xPais",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"fone",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"email",void 0);Ws([(0,mn.IsOptional)(),(0,mn.IsString)(),da("design:type",String)],Pn.prototype,"IE",void 0);Pn=Ws([on({properties:["CNPJ","CPF"]})],Pn);var hx=require("class-validator");function AM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(AM,"_ts_decorate");function oie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oie,"_ts_metadata");var cf=class{static{o(this,"AutXML")}CNPJ;CPF};AM([(0,hx.IsOptional)(),(0,hx.IsString)(),oie("design:type",String)],cf.prototype,"CNPJ",void 0);AM([(0,hx.IsOptional)(),(0,hx.IsString)(),oie("design:type",String)],cf.prototype,"CPF",void 0);cf=AM([on({properties:["CNPJ","CPF"]})],cf);var O2=require("class-validator");function uie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uie,"_ts_decorate");function cie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cie,"_ts_metadata");var Fm=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};uie([(0,O2.IsString)(),cie("design:type",String)],Fm.prototype,"CNPJ",void 0);uie([(0,O2.IsOptional)(),(0,O2.IsString)(),cie("design:type",String)],Fm.prototype,"idCadIntTran",void 0);var Mv=require("class-validator");function NM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NM,"_ts_decorate");function IM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(IM,"_ts_metadata");var Hp=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};NM([(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"UFSaidaPais",void 0);NM([(0,Mv.IsOptional)(),(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"xLocExporta",void 0);NM([(0,Mv.IsOptional)(),(0,Mv.IsString)(),IM("design:type",String)],Hp.prototype,"xLocDespacho",void 0);var km=require("class-validator");function TM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(TM,"_ts_decorate");function RM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RM,"_ts_metadata");var zp=class{static{o(this,"Compra")}xNEmp;xPed;xCont};TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xNEmp",void 0);TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xPed",void 0);TM([(0,km.IsOptional)(),(0,km.IsString)(),RM("design:type",String)],zp.prototype,"xCont",void 0);var lf=require("class-validator");function dx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dx,"_ts_decorate");function mx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mx,"_ts_metadata");var qu=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"CNPJ",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"xContato",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"email",void 0);dx([(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"fone",void 0);dx([(0,lf.IsOptional)(),(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"idCSRT",void 0);dx([(0,lf.IsOptional)(),(0,lf.IsString)(),mx("design:type",String)],qu.prototype,"hashCSRT",void 0);var pf=require("class-validator"),V2=require("class-transformer");var jc=require("class-validator");function cn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(cn,"_ts_decorate");function ln(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ln,"_ts_metadata");var Gr=class{static{o(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};cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vBC",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSDeson",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPUFDest",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSUFDest",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSUFRemet",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCP",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vBCST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPST",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFCPSTRet",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMono",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMono",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMonoReten",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMonoReten",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"qBCMonoRet",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vICMSMonoRet",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vProd",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vFrete",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vSeg",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vDesc",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vII",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vIPI",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vIPIDevol",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vPIS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vCOFINS",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vOutro",void 0);cn([ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vNF",void 0);cn([(0,jc.IsOptional)(),ne({fixed:2}),ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gr.prototype,"vTotTrib",void 0);var qn=require("class-validator");function Hu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hu,"_ts_decorate");function zu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zu,"_ts_metadata");var ma=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vServ",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vBC",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vISS",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vPIS",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vCOFINS",void 0);Hu([(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"dCompet",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDeducao",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vOutro",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDescIncond",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vDescCond",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"vISSRet",void 0);Hu([(0,qn.IsOptional)(),(0,qn.IsString)(),zu("design:type",String)],ma.prototype,"cRegTrib",void 0);var Vm=require("class-validator");function Uv(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Uv,"_ts_decorate");function qv(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qv,"_ts_metadata");var Mc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetPIS",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetCOFINS",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetCSLL",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vBCIRRF",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vIRRF",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vBCRetPrev",void 0);Uv([(0,Vm.IsOptional)(),ne({fixed:2}),qv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mc.prototype,"vRetPrev",void 0);var Wp=require("class-validator");var Gp=require("class-validator");function DM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DM,"_ts_decorate");function OM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(OM,"_ts_metadata");var Hv=class{static{o(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vDif",void 0);DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vDevTrib",void 0);DM([ne({fixed:2}),OM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hv.prototype,"vIBSMun",void 0);var _M=require("class-transformer");function BM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BM,"_ts_decorate");function PM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PM,"_ts_metadata");var zv=class{static{o(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vDif",void 0);BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vDevTrib",void 0);BM([ne({fixed:2}),PM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zv.prototype,"vIBSUF",void 0);function B2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B2,"_ts_decorate");function P2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(P2,"_ts_metadata");var Kp=class{static{o(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};B2([(0,Gp.IsOptional)(),(0,Gp.ValidateNested)(),(0,_M.Type)(()=>zv),P2("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Kp.prototype,"gIBSUF",void 0);B2([(0,Gp.IsOptional)(),(0,Gp.ValidateNested)(),(0,_M.Type)(()=>Hv),P2("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Kp.prototype,"gIBSMun",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vIBS",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vCredPres",void 0);B2([(0,Gp.IsOptional)(),ne({fixed:2}),P2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kp.prototype,"vCredPresCondSus",void 0);var x_=require("class-transformer");var gx=require("class-validator");function _2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_2,"_ts_decorate");function L2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(L2,"_ts_metadata");var Xp=class{static{o(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vDif",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vDevTrib",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCBS",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCredPres",void 0);_2([(0,gx.IsOptional)(),ne({fixed:2}),L2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xp.prototype,"vCredPresCondSus",void 0);var Kv=require("class-validator");function vx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vx,"_ts_decorate");function yx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yx,"_ts_metadata");var ff=class{static{o(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMono",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMono",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMonoReten",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMonoReten",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vIBSMonoRet",void 0);vx([(0,Kv.IsOptional)(),ne({fixed:2}),yx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ff.prototype,"vCBSMonoRet",void 0);function S_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(S_,"_ts_decorate");function b_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(b_,"_ts_metadata");var jm=class{static{o(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};S_([(0,Wp.IsOptional)(),ne({fixed:2}),b_("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jm.prototype,"vBCIBSCBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>Kp),b_("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],jm.prototype,"gIBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>Xp),b_("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],jm.prototype,"gCBS",void 0);S_([(0,Wp.IsOptional)(),(0,Wp.ValidateNested)(),(0,x_.Type)(()=>ff),b_("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],jm.prototype,"gMono",void 0);function F2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(F2,"_ts_decorate");function k2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(k2,"_ts_metadata");var Uc=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib;IBSCBSTot;vNFTot};F2([(0,pf.ValidateNested)(),(0,V2.Type)(()=>Gr),k2("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Uc.prototype,"ICMSTot",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>ma),k2("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Uc.prototype,"ISSQNtot",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>Mc),k2("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Uc.prototype,"retTrib",void 0);F2([(0,pf.IsOptional)(),(0,pf.ValidateNested)(),(0,V2.Type)(()=>jm),k2("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Uc.prototype,"IBSCBSTot",void 0);F2([(0,pf.IsOptional)(),ne({fixed:2}),k2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Uc.prototype,"vNFTot",void 0);var Bi=require("class-validator"),Ax=require("class-transformer");var va=require("class-validator");function Mm(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mm,"_ts_decorate");function Gv(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gv,"_ts_metadata");var ga=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"CNPJ",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"CPF",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xNome",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"IE",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xEnder",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"xMun",void 0);Mm([(0,va.IsOptional)(),(0,va.IsString)(),Gv("design:type",String)],ga.prototype,"UF",void 0);ga=Mm([on({properties:["CNPJ","CPF"]})],ga);var hf=require("class-validator");function Sx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sx,"_ts_decorate");function bx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bx,"_ts_metadata");var Qo=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vServ",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vBCRet",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:4}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"pICMSRet",void 0);Sx([(0,hf.IsOptional)(),ne({fixed:2}),bx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vICMSRet",void 0);Sx([(0,hf.IsOptional)(),(0,hf.IsString)(),bx("design:type",String)],Qo.prototype,"CFOP",void 0);Sx([(0,hf.IsOptional)(),(0,hf.IsString)(),bx("design:type",String)],Qo.prototype,"cMunFG",void 0);var So=require("class-validator");function xx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xx,"_ts_decorate");function wx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wx,"_ts_metadata");var df=class{static{o(this,"VeicTransp")}placa;UF;RNTC};xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"placa",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"UF",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],df.prototype,"RNTC",void 0);var Xv=class{static{o(this,"Reboque")}placa;UF;RNTC};xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"placa",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"UF",void 0);xx([(0,So.IsOptional)(),(0,So.IsString)(),wx("design:type",String)],Xv.prototype,"RNTC",void 0);var Ku=require("class-validator");function Cx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cx,"_ts_decorate");function Ex(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ex,"_ts_metadata");var mf=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"qVol",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"esp",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"marca",void 0);Cx([(0,Ku.IsOptional)(),(0,Ku.IsString)(),Ex("design:type",String)],mf.prototype,"nVol",void 0);Cx([(0,Ku.IsOptional)(),ne({fixed:3}),Ex("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mf.prototype,"pesoL",void 0);Cx([(0,Ku.IsOptional)(),ne({fixed:3}),Ex("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mf.prototype,"pesoB",void 0);function Jp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Jp,"_ts_decorate");function Um(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Um,"_ts_metadata");var ya=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Jp([(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"modFrete",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>ga),Um("design:type",typeof ga>"u"?Object:ga)],ya.prototype,"transporta",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>Qo),Um("design:type",typeof Qo>"u"?Object:Qo)],ya.prototype,"retTransp",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)(),(0,Ax.Type)(()=>df),Um("design:type",typeof df>"u"?Object:df)],ya.prototype,"veicTransp",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)({each:!0}),(0,Ax.Type)(()=>Xv),(0,Bi.ArrayMaxSize)(5),Um("design:type",Array)],ya.prototype,"reboque",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"vagao",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.IsString)(),Um("design:type",String)],ya.prototype,"balsa",void 0);Jp([(0,Bi.IsOptional)(),(0,Bi.ValidateNested)({each:!0}),(0,Ax.Type)(()=>mf),(0,Bi.ArrayMaxSize)(5e3),Um("design:type",Array)],ya.prototype,"vol",void 0);ya=Jp([on({properties:["veicTransp","reboque"]}),on({properties:["vagao","balsa"]})],ya);var rs=require("class-validator"),LM=require("class-transformer");function Qp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qp,"_ts_decorate");function $p(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($p,"_ts_metadata");var Yp=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Yp.prototype,"nFat",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vOrig",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vDesc",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yp.prototype,"vLiq",void 0);var Nx=class{static{o(this,"Dup")}nDup;dVenc;vDup};Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Nx.prototype,"nDup",void 0);Qp([(0,rs.IsOptional)(),(0,rs.IsString)(),$p("design:type",String)],Nx.prototype,"dVenc",void 0);Qp([(0,rs.IsOptional)(),ne({fixed:2}),$p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nx.prototype,"vDup",void 0);var qm=class{static{o(this,"Cobr")}fat;dup};Qp([(0,rs.IsOptional)(),(0,rs.ValidateNested)(),(0,LM.Type)(()=>Yp),$p("design:type",typeof Yp>"u"?Object:Yp)],qm.prototype,"fat",void 0);Qp([(0,rs.IsOptional)(),(0,rs.ValidateNested)({each:!0}),(0,rs.ArrayMaxSize)(120),(0,LM.Type)(()=>Nx),$p("design:type",Array)],qm.prototype,"dup",void 0);var zm=require("class-validator"),hie=require("class-transformer");var gf=require("class-validator"),lie=require("class-transformer");var bo=require("class-validator");function Ix(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ix,"_ts_decorate");function Tx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Tx,"_ts_metadata");var $o=class{static{o(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"tpIntegra",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"CNPJ",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"tBand",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"cAut",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"CNPJReceb",void 0);Ix([(0,bo.IsOptional)(),(0,bo.IsString)(),Tx("design:type",String)],$o.prototype,"idTermPag",void 0);function j2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j2,"_ts_decorate");function M2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M2,"_ts_metadata");var Zp=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};j2([(0,gf.IsOptional)(),(0,gf.IsString)(),M2("design:type",String)],Zp.prototype,"indPag",void 0);j2([(0,gf.IsString)(),M2("design:type",typeof TPag>"u"?Object:TPag)],Zp.prototype,"tPag",void 0);j2([ne({fixed:2}),M2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zp.prototype,"vPag",void 0);j2([(0,gf.IsOptional)(),(0,gf.ValidateNested)(),(0,lie.Type)(()=>$o),M2("design:type",typeof $o>"u"?Object:$o)],Zp.prototype,"card",void 0);j2([(0,gf.IsOptional)(),(0,gf.IsString)(),M2("design:type",String)],Zp.prototype,"xPag",void 0);function fie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fie,"_ts_decorate");function pie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(pie,"_ts_metadata");var Hm=class{static{o(this,"Pag")}detPag;vTroco};fie([(0,zm.ValidateNested)({each:!0}),(0,zm.ArrayMinSize)(1),(0,zm.ArrayMaxSize)(100),(0,hie.Type)(()=>Zp),pie("design:type",Array)],Hm.prototype,"detPag",void 0);fie([(0,zm.IsOptional)(),ne({fixed:2}),pie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hm.prototype,"vTroco",void 0);var hi=require("class-validator"),w_=require("class-transformer");function eh(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eh,"_ts_decorate");function th(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(th,"_ts_metadata");var Rx=class{static{o(this,"InfAdicObs")}xCampo;xTexto};eh([(0,hi.IsString)(),th("design:type",String)],Rx.prototype,"xCampo",void 0);eh([(0,hi.IsString)(),th("design:type",String)],Rx.prototype,"xTexto",void 0);var U2=class{static{o(this,"ProcRef")}nProc;indProc};eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],U2.prototype,"nProc",void 0);eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],U2.prototype,"indProc",void 0);var qc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],qc.prototype,"infAdFisco",void 0);eh([(0,hi.IsOptional)(),(0,hi.IsString)(),th("design:type",String)],qc.prototype,"infCpl",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>Rx),(0,hi.ArrayMaxSize)(10),th("design:type",Array)],qc.prototype,"obsCont",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>Rx),(0,hi.ArrayMaxSize)(10),th("design:type",Array)],qc.prototype,"obsFisco",void 0);eh([(0,hi.IsOptional)(),(0,hi.ValidateNested)({each:!0}),(0,w_.Type)(()=>U2),(0,hi.ArrayMaxSize)(100),th("design:type",Array)],qc.prototype,"procRef",void 0);var wn=require("class-validator"),E_=require("class-transformer");function ka(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ka,"_ts_decorate");function Va(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Va,"_ts_metadata");var C_=class{static{o(this,"ForDiaAttributes")}dia};ka([(0,wn.IsString)(),Va("design:type",String)],C_.prototype,"dia",void 0);var q2=class{static{o(this,"ForDia")}$;qtde};ka([(0,wn.IsObject)(),(0,wn.IsNotEmptyObject)(),(0,E_.Type)(()=>C_),Va("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],q2.prototype,"$",void 0);ka([(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],q2.prototype,"qtde",void 0);var H2=class{static{o(this,"Deduc")}xDed;vDed};ka([(0,wn.IsString)(),Va("design:type",String)],H2.prototype,"xDed",void 0);ka([ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],H2.prototype,"vDed",void 0);var Sa=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};ka([(0,wn.IsString)(),Va("design:type",String)],Sa.prototype,"safra",void 0);ka([(0,wn.IsString)(),Va("design:type",String)],Sa.prototype,"ref",void 0);ka([(0,wn.ValidateNested)({each:!0}),(0,wn.ArrayMaxSize)(31),(0,E_.Type)(()=>q2),Va("design:type",Array)],Sa.prototype,"forDia",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotMes",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotAnt",void 0);ka([(0,wn.IsOptional)(),(0,wn.IsString)(),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"qTotGer",void 0);ka([(0,wn.IsOptional)(),(0,wn.ValidateNested)({each:!0}),(0,wn.ArrayMaxSize)(10),(0,E_.Type)(()=>H2),Va("design:type",Array)],Sa.prototype,"deduc",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vFor",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vTotDed",void 0);ka([(0,wn.IsOptional)(),ne({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sa.prototype,"vLiqFor",void 0);var Qs=require("class-validator"),Gx=require("class-transformer");var ut=require("class-validator");var vf=require("class-transformer");var Hc=require("class-validator");function z2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z2,"_ts_decorate");function K2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K2,"_ts_metadata");var rh=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};z2([(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"nLote",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"qLote",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"dFab",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"dVal",void 0);z2([(0,Hc.IsOptional)(),(0,Hc.IsString)(),K2("design:type",String)],rh.prototype,"cAgreg",void 0);var pn=require("class-validator"),die=require("class-transformer");function Es(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Es,"_ts_decorate");function Js(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Js,"_ts_metadata");var Km=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nAdicao",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nSeqAdic",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"cFabricante",void 0);Es([ne({fixed:2}),Js("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Km.prototype,"vDescDI",void 0);Es([(0,pn.IsOptional)(),(0,pn.IsString)(),Js("design:type",String)],Km.prototype,"nDraw",void 0);var Cs=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"nDI",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"dDI",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"xLocDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"UFDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"dDesemb",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"tpViaTransp",void 0);Es([(0,pn.IsOptional)(),ne({fixed:2}),Js("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cs.prototype,"vAFRMM",void 0);Es([(0,pn.IsString)(),Js("design:type",String)],Cs.prototype,"tpIntermedio",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"CNPJ",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"CPF",void 0);Es([(0,pn.IsString)(),(0,pn.IsOptional)(),Js("design:type",String)],Cs.prototype,"UFTerceiro",void 0);Es([(0,pn.IsArray)(),(0,pn.ValidateNested)({each:!0}),(0,die.Type)(()=>Km),(0,pn.ArrayMaxSize)(999),(0,pn.ArrayMinSize)(1),Js("design:type",Array)],Cs.prototype,"adi",void 0);Cs=Es([on({properties:["CNPJ","CPF"],required:!0})],Cs);var mie=require("class-transformer"),nh=require("class-validator");function G2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(G2,"_ts_decorate");function X2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X2,"_ts_metadata");var Dx=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};G2([(0,nh.IsString)(),X2("design:type",String)],Dx.prototype,"nRE",void 0);G2([(0,nh.IsString)(),X2("design:type",String)],Dx.prototype,"chNFe",void 0);G2([ne({fixed:4}),X2("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dx.prototype,"qExport",void 0);var Ox=class{static{o(this,"DetExport")}nDraw;exportInd};G2([(0,nh.IsOptional)(),(0,nh.IsString)(),X2("design:type",String)],Ox.prototype,"nDraw",void 0);G2([(0,nh.IsOptional)(),(0,nh.ValidateNested)(),(0,mie.Type)(()=>Dx),X2("design:type",typeof IExportInd>"u"?Object:IExportInd)],Ox.prototype,"exportInd",void 0);var FM=require("class-validator");function gie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gie,"_ts_decorate");function vie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vie,"_ts_metadata");var Bx=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};gie([(0,FM.IsString)(),vie("design:type",String)],Bx.prototype,"cProdFisco",void 0);gie([(0,FM.IsString)(),vie("design:type",String)],Bx.prototype,"cOperNFF",void 0);var jM=require("class-validator");function kM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(kM,"_ts_decorate");function VM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(VM,"_ts_metadata");var Wv=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};kM([(0,jM.IsString)(),VM("design:type",String)],Wv.prototype,"xEmb",void 0);kM([ne({fixed:3}),VM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wv.prototype,"qVolEmb",void 0);kM([(0,jM.IsString)(),VM("design:type",String)],Wv.prototype,"uEmb",void 0);var Hn=require("class-validator");function Yn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yn,"_ts_decorate");function Qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qn,"_ts_metadata");var gn=class{static{o(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};Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpOp",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"chassi",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cCor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"xCor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pot",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cilin",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pesoL",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"pesoB",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"nSerie",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpComb",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"nMotor",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"CMT",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"dist",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"anoMod",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"anoFab",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpPint",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"espVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"VIN",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"condVeic",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cMod",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"cCorDENATRAN",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"lota",void 0);Yn([(0,Hn.IsString)(),Qn("design:type",String)],gn.prototype,"tpRest",void 0);var qM=require("class-validator");function MM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(MM,"_ts_decorate");function UM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(UM,"_ts_metadata");var Jv=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};MM([(0,qM.IsString)(),UM("design:type",String)],Jv.prototype,"cProdANVISA",void 0);MM([(0,qM.IsString)(),UM("design:type",String)],Jv.prototype,"xMotivoIsencao",void 0);MM([ne({fixed:2}),UM("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jv.prototype,"vPMC",void 0);var W2=require("class-validator");function A_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A_,"_ts_decorate");function N_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N_,"_ts_metadata");var Gm=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"tpArma",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"nSerie",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"nCano",void 0);A_([(0,W2.IsString)(),N_("design:type",String)],Gm.prototype,"descr",void 0);var jr=require("class-validator"),I_=require("class-transformer");function $n(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($n,"_ts_decorate");function Zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zn,"_ts_metadata");var Px=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};$n([(0,jr.IsString)(),Zn("design:type",String)],Px.prototype,"indImport",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Px.prototype,"cUFOrig",void 0);$n([ne({fixed:4}),(0,jr.Max)(100),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Px.prototype,"pOrig",void 0);var _x=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};$n([ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"qBCProd",void 0);$n([ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"vAliqProd",void 0);$n([ne({fixed:2}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_x.prototype,"vCIDE",void 0);var Xm=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nBico",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nBomba",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Xm.prototype,"nTanque",void 0);$n([ne({fixed:3}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xm.prototype,"vEncIni",void 0);$n([ne({fixed:3}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xm.prototype,"vEncFin",void 0);var Ys=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"cProdANP",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"descANP",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGLP",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGNn",void 0);$n([(0,jr.IsOptional)(),(0,jr.Max)(100),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pGNi",void 0);$n([(0,jr.IsOptional)(),ne({fixed:2}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"vPart",void 0);$n([(0,jr.IsString)(),(0,jr.IsOptional)(),Zn("design:type",String)],Ys.prototype,"CODIF",void 0);$n([(0,jr.IsOptional)(),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"qTemp",void 0);$n([(0,jr.IsString)(),Zn("design:type",String)],Ys.prototype,"UFCons",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)(),(0,I_.Type)(()=>_x),Zn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ys.prototype,"CIDE",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)(),(0,I_.Type)(()=>Xm),Zn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ys.prototype,"encerrante",void 0);$n([(0,jr.IsOptional)(),ne({fixed:4}),Zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ys.prototype,"pBio",void 0);$n([(0,jr.IsObject)(),(0,jr.ValidateNested)({each:!0}),(0,I_.Type)(()=>Px),(0,jr.ArrayMaxSize)(30),(0,jr.IsOptional)(),Zn("design:type",Array)],Ys.prototype,"origComb",void 0);function yr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yr,"_ts_decorate");function xr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xr,"_ts_metadata");var Xt=class{static{o(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};yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cEAN",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cBarra",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"xProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"NCM",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ArrayMaxSize)(8),(0,ut.IsString)({each:!0}),xr("design:type",Array)],Xt.prototype,"NVE",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CEST",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"indEscala",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CNPJFab",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cBenef",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),xr("design:type",Object)],Xt.prototype,"gCred",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"EXTIPI",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"CFOP",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"uCom",void 0);yr([ne({fixed:4}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"qCom",void 0);yr([ne({fixed:10}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vUnCom",void 0);yr([ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vProd",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"cEANTrib",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"uTrib",void 0);yr([ne({fixed:4}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"qTrib",void 0);yr([ne({fixed:10}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vUnTrib",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vFrete",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vSeg",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vDesc",void 0);yr([(0,ut.IsOptional)(),ne({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xt.prototype,"vOutro",void 0);yr([(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"indTot",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(100),(0,vf.Type)(()=>Cs),xr("design:type",Array)],Xt.prototype,"DI",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,vf.Type)(()=>Ox),xr("design:type",Array)],Xt.prototype,"detExport",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"xPed",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nItemPed",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nFCI",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,vf.Type)(()=>rh),xr("design:type",Array)],Xt.prototype,"rastro",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Bx),xr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Xt.prototype,"infProdNFF",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Wv),xr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Xt.prototype,"infProdEmb",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>gn),xr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Xt.prototype,"veicProd",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Jv),xr("design:type",typeof IMed>"u"?Object:IMed)],Xt.prototype,"med",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)({each:!0}),(0,vf.Type)(()=>Gm),(0,ut.ArrayMaxSize)(500),xr("design:type",Array)],Xt.prototype,"arma",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,vf.Type)(()=>Ys),xr("design:type",typeof IComb>"u"?Object:IComb)],Xt.prototype,"comb",void 0);yr([(0,ut.IsOptional)(),(0,ut.IsString)(),xr("design:type",String)],Xt.prototype,"nRECOPI",void 0);Xt=yr([on({properties:["veicProd","med","arma","comb"]})],Xt);var $u=require("class-transformer"),En=require("class-validator");var fe=require("class-validator"),Ns=require("class-transformer");function Ee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ee,"_ts_decorate");function Ne(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ne,"_ts_metadata");var ih=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ih.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ih.prototype,"vICMS",void 0);var Zo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Zo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vICMSST",void 0);var yf=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],yf.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yf.prototype,"vICMS",void 0);var sh=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],sh.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sh.prototype,"vICMSST",void 0);var Yv=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ee([(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yv.prototype,"vICMSDeson",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Yv.prototype,"motDesICMS",void 0);var Gu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ee([(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],Gu.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),(0,fe.Max)(100),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"pDif",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gu.prototype,"vICMSDif",void 0);var ah=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],ah.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ah.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ah.prototype,"vICMSSTRet",void 0);var xo=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],xo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xo.prototype,"vICMSST",void 0);var wo=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],wo.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMSST",void 0);var As=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ee([(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pMVAST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pRedBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],As.prototype,"pBCOp",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],As.prototype,"UFST",void 0);var oh=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],oh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],oh.prototype,"CST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oh.prototype,"vICMSSTRet",void 0);var Qv=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],Qv.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],Qv.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qv.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qv.prototype,"vCredICMSSN",void 0);var J2=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],J2.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],J2.prototype,"CSOSN",void 0);var zc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],zc.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zc.prototype,"vCredICMSSN",void 0);var uh=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ee([(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],uh.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uh.prototype,"vICMSST",void 0);var ch=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ee([(0,fe.IsString)(),Ne("design:type",String)],ch.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ch.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vBCSTRet",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"pST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vICMSSubstituto",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ch.prototype,"vICMSSTRet",void 0);var ba=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ee([(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"orig",void 0);Ee([(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"CSOSN",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"modBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pRedBC",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pICMS",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vICMS",void 0);Ee([(0,fe.IsOptional)(),(0,fe.IsString)(),Ne("design:type",String)],ba.prototype,"modBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vBCST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vICMSST",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:4}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"pCredSN",void 0);Ee([(0,fe.IsOptional)(),ne({fixed:2}),Ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ba.prototype,"vCredICMSSN",void 0);var zn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ih),Ne("design:type",typeof IICMS00>"u"?Object:IICMS00)],zn.prototype,"ICMS00",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Zo),Ne("design:type",typeof IICMS10>"u"?Object:IICMS10)],zn.prototype,"ICMS10",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>yf),Ne("design:type",typeof IICMS20>"u"?Object:IICMS20)],zn.prototype,"ICMS20",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>sh),Ne("design:type",typeof IICMS30>"u"?Object:IICMS30)],zn.prototype,"ICMS30",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Yv),Ne("design:type",typeof IICMS40>"u"?Object:IICMS40)],zn.prototype,"ICMS40",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Gu),Ne("design:type",typeof IICMS51>"u"?Object:IICMS51)],zn.prototype,"ICMS51",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ah),Ne("design:type",typeof IICMS60>"u"?Object:IICMS60)],zn.prototype,"ICMS60",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>xo),Ne("design:type",typeof IICMS70>"u"?Object:IICMS70)],zn.prototype,"ICMS70",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>wo),Ne("design:type",typeof IICMS90>"u"?Object:IICMS90)],zn.prototype,"ICMS90",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>As),Ne("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],zn.prototype,"ICMSPart",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>oh),Ne("design:type",typeof IICMSST>"u"?Object:IICMSST)],zn.prototype,"ICMSST",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>Qv),Ne("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],zn.prototype,"ICMSSN101",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>J2),Ne("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],zn.prototype,"ICMSSN102",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>zc),Ne("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],zn.prototype,"ICMSSN201",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>uh),Ne("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],zn.prototype,"ICMSSN202",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ch),Ne("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],zn.prototype,"ICMSSN500",void 0);Ee([(0,fe.IsOptional)(),(0,fe.ValidateNested)(),(0,Ns.Type)(()=>ba),Ne("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],zn.prototype,"ICMSSN900",void 0);zn=Ee([on({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],zn);var _n=require("class-validator"),HM=require("class-transformer");function eu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eu,"_ts_decorate");function tu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tu,"_ts_metadata");var lh=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};eu([(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"CST",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vBC",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"pIPI",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"qUnid",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vUnid",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],lh.prototype,"vIPI",void 0);var T_=class{static{o(this,"IPINT")}CST};eu([(0,_n.IsString)(),tu("design:type",String)],T_.prototype,"CST",void 0);var Xu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"CNPJProd",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"cSelo",void 0);eu([(0,_n.IsOptional)(),(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"qSelo",void 0);eu([(0,_n.IsString)(),tu("design:type",String)],Xu.prototype,"cEnq",void 0);eu([(0,_n.IsOptional)(),(0,_n.ValidateNested)(),(0,HM.Type)(()=>lh),tu("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Xu.prototype,"IPITrib",void 0);eu([(0,_n.IsOptional)(),(0,_n.ValidateNested)(),(0,HM.Type)(()=>T_),tu("design:type",typeof IIPINT>"u"?Object:IIPINT)],Xu.prototype,"IPINT",void 0);var bf=require("class-validator");function R_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R_,"_ts_decorate");function D_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D_,"_ts_metadata");var Sf=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vBC",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vDespAdu",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vII",void 0);R_([(0,bf.IsOptional)(),(0,bf.IsString)(),D_("design:type",String)],Sf.prototype,"vIOF",void 0);var Wt=require("class-validator"),Y2=require("class-transformer");function ei(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ei,"_ts_decorate");function ti(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ti,"_ts_metadata");var fh=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],fh.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],fh.prototype,"vPIS",void 0);var ph=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],ph.prototype,"vPIS",void 0);var Lx=class{static{o(this,"PISNT")}CST};ei([(0,Wt.IsString)(),ti("design:type",String)],Lx.prototype,"CST",void 0);var Kc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"CST",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],Kc.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Kc.prototype,"vPIS",void 0);var xf=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>fh),ti("design:type",typeof fh>"u"?Object:fh)],xf.prototype,"PISAliq",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>ph),ti("design:type",typeof ph>"u"?Object:ph)],xf.prototype,"PISQtde",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>Lx),ti("design:type",typeof Lx>"u"?Object:Lx)],xf.prototype,"PISNT",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.ValidateNested)(),(0,Y2.Type)(()=>Kc),ti("design:type",typeof Kc>"u"?Object:Kc)],xf.prototype,"PISOutr",void 0);var Gc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ne({fixed:2}),ti("design:type",String)],Gc.prototype,"vBC",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"pPIS",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"qBCProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"vAliqProd",void 0);ei([(0,Wt.IsOptional)(),(0,Wt.IsString)(),ti("design:type",String)],Gc.prototype,"vPIS",void 0);var Jt=require("class-validator"),Q2=require("class-transformer");function ri(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ri,"_ts_decorate");function ni(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ni,"_ts_metadata");var hh=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],hh.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],hh.prototype,"vCOFINS",void 0);var dh=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],dh.prototype,"vCOFINS",void 0);var Fx=class{static{o(this,"COFINSNT")}CST};ri([(0,Jt.IsString)(),ni("design:type",String)],Fx.prototype,"CST",void 0);var Xc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"CST",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],Xc.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Xc.prototype,"vCOFINS",void 0);var wf=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>hh),ni("design:type",typeof hh>"u"?Object:hh)],wf.prototype,"COFINSAliq",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>dh),ni("design:type",typeof dh>"u"?Object:dh)],wf.prototype,"COFINSQtde",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>Fx),ni("design:type",typeof Fx>"u"?Object:Fx)],wf.prototype,"COFINSNT",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.ValidateNested)(),(0,Q2.Type)(()=>Xc),ni("design:type",typeof Xc>"u"?Object:Xc)],wf.prototype,"COFINSOutr",void 0);var Wc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ne({fixed:2}),ni("design:type",String)],Wc.prototype,"vBC",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"pCOFINS",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"qBCProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"vAliqProd",void 0);ri([(0,Jt.IsOptional)(),(0,Jt.IsString)(),ni("design:type",String)],Wc.prototype,"vCOFINS",void 0);var Co=require("class-validator");function kx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(kx,"_ts_decorate");function Vx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Vx,"_ts_metadata");var Wu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vBC",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vAliq",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"vISSQN",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cMunFG",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cListServ",void 0);kx([(0,Co.IsOptional)(),(0,Co.IsString)(),Vx("design:type",String)],Wu.prototype,"cSitTrib",void 0);var qi=require("class-validator");function mh(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mh,"_ts_decorate");function gh(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gh,"_ts_metadata");var ja=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vBCUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vBCFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSInter",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"pICMSInterPart",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vFCPUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vICMSUFDest",void 0);mh([(0,qi.IsOptional)(),(0,qi.IsString)(),gh("design:type",String)],ja.prototype,"vICMSUFRemet",void 0);var di=require("class-validator");var jx=require("class-validator");function yie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yie,"_ts_decorate");function Sie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sie,"_ts_metadata");var Wm=class{static{o(this,"TransferenciaCredito")}vIBS;vCBS};yie([(0,jx.IsOptional)(),(0,jx.IsString)(),Sie("design:type",String)],Wm.prototype,"vIBS",void 0);yie([(0,jx.IsOptional)(),(0,jx.IsString)(),Sie("design:type",String)],Wm.prototype,"vCBS",void 0);var O_=require("class-validator");function zM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zM,"_ts_decorate");function KM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KM,"_ts_metadata");var vh=class{static{o(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"tpCredPresIBSZFM",void 0);zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"vCredPresIBSZFM",void 0);zM([(0,O_.IsString)(),KM("design:type",String)],vh.prototype,"competApur",void 0);var Ma=require("class-validator"),GM=require("class-transformer");function Ef(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ef,"_ts_decorate");function Af(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Af,"_ts_metadata");var Jm=class{static{o(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"vCredPresCondSus",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"pCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Jm.prototype,"vCredPres",void 0);var Ym=class{static{o(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"vCredPresCondSus",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"pCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Ym.prototype,"vCredPres",void 0);var Cf=class{static{o(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};Ef([(0,Ma.IsOptional)(),(0,Ma.ValidateNested)(),(0,GM.Type)(()=>Jm),Af("design:type",typeof Jm>"u"?Object:Jm)],Cf.prototype,"gIBSCredPres",void 0);Ef([(0,Ma.IsOptional)(),(0,Ma.ValidateNested)(),(0,GM.Type)(()=>Ym),Af("design:type",typeof Ym>"u"?Object:Ym)],Cf.prototype,"gCBSCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Cf.prototype,"vBCCredPres",void 0);Ef([(0,Ma.IsString)(),Af("design:type",String)],Cf.prototype,"cCredPres",void 0);var XM=require("class-validator");function bie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bie,"_ts_decorate");function xie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xie,"_ts_metadata");var Qm=class{static{o(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};bie([(0,XM.IsString)(),xie("design:type",String)],Qm.prototype,"vIBSEstCred",void 0);bie([(0,XM.IsString)(),xie("design:type",String)],Qm.prototype,"vCBSEstCred",void 0);var B_=require("class-validator");function WM(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(WM,"_ts_decorate");function JM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JM,"_ts_metadata");var yh=class{static{o(this,"AjusteCompet")}competApur;vCBS;vIBS};WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"competApur",void 0);WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"vCBS",void 0);WM([(0,B_.IsString)(),JM("design:type",String)],yh.prototype,"vIBS",void 0);var Rr=require("class-validator");function Pi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Pi,"_ts_decorate");function _i(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_i,"_ts_metadata");var Cn=class{static{o(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vTotIBSMonoItem",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vTotCBSMonoItem",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBS",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBS",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMono",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMono",void 0);Pi([(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMono",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBSReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBSReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMonoReten",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemIBSRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"adRemCBSRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"qBCMonoRet",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vIBSMonoDif",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"vCBSMonoDif",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"pDifIBS",void 0);Pi([(0,Rr.IsOptional)(),(0,Rr.IsString)(),_i("design:type",String)],Cn.prototype,"pDifCBS",void 0);var ru=require("class-validator");var Sh=require("class-validator");function $m(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($m,"_ts_decorate");function Zm(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zm,"_ts_metadata");var Eo=class{static{o(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"CSTReg",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"cClassTribReg",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegIBSUF",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegIBSUF",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegIBSMun",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegIBSMun",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"pAliqEfetRegCBS",void 0);$m([(0,Sh.IsString)(),Zm("design:type",String)],Eo.prototype,"vTribRegCBS",void 0);var iI=require("class-transformer");var Yc=require("class-validator"),P_=require("class-transformer");var wie=require("class-validator");function bBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bBe,"_ts_decorate");function xBe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xBe,"_ts_metadata");var Ua=class{static{o(this,"DevTrib")}vDevTrib};bBe([(0,wie.IsString)(),xBe("design:type",String)],Ua.prototype,"vDevTrib",void 0);var YM=require("class-validator");function Cie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cie,"_ts_decorate");function Eie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Eie,"_ts_metadata");var xa=class{static{o(this,"Dif")}pDif;vDif};Cie([(0,YM.IsString)(),Eie("design:type",String)],xa.prototype,"pDif",void 0);Cie([(0,YM.IsString)(),Eie("design:type",String)],xa.prototype,"vDif",void 0);var QM=require("class-validator");function Aie(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Aie,"_ts_decorate");function Nie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nie,"_ts_metadata");var wa=class{static{o(this,"Red")}pAliqEfet;pRedAliq};Aie([(0,QM.IsString)(),Nie("design:type",String)],wa.prototype,"pAliqEfet",void 0);Aie([(0,QM.IsString)(),Nie("design:type",String)],wa.prototype,"pRedAliq",void 0);function $2(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($2,"_ts_decorate");function Z2(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z2,"_ts_metadata");var Jc=class{static{o(this,"IBSMun")}pIBSMun;vIBSMun;gDevTrib;gDif;gRed};$2([(0,Yc.IsString)(),Z2("design:type",String)],Jc.prototype,"pIBSMun",void 0);$2([(0,Yc.IsString)(),Z2("design:type",String)],Jc.prototype,"vIBSMun",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>Ua),Z2("design:type",typeof Ua>"u"?Object:Ua)],Jc.prototype,"gDevTrib",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>xa),Z2("design:type",typeof xa>"u"?Object:xa)],Jc.prototype,"gDif",void 0);$2([(0,Yc.IsOptional)(),(0,Yc.ValidateNested)(),(0,P_.Type)(()=>wa),Z2("design:type",typeof wa>"u"?Object:wa)],Jc.prototype,"gRed",void 0);var $c=require("class-validator"),__=require("class-transformer");function eI(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eI,"_ts_decorate");function tI(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tI,"_ts_metadata");var Qc=class{static{o(this,"IBSUF")}pIBSUF;vIBSUF;gDevTrib;gDif;gRed};eI([(0,$c.IsString)(),tI("design:type",String)],Qc.prototype,"pIBSUF",void 0);eI([(0,$c.IsString)(),tI("design:type",String)],Qc.prototype,"vIBSUF",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>Ua),tI("design:type",typeof Ua>"u"?Object:Ua)],Qc.prototype,"gDevTrib",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>xa),tI("design:type",typeof xa>"u"?Object:xa)],Qc.prototype,"gDif",void 0);eI([(0,$c.IsOptional)(),(0,$c.ValidateNested)(),(0,__.Type)(()=>wa),tI("design:type",typeof wa>"u"?Object:wa)],Qc.prototype,"gRed",void 0);var el=require("class-validator"),L_=require("class-transformer");function rI(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(rI,"_ts_decorate");function nI(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nI,"_ts_metadata");var Zc=class{static{o(this,"CBS")}pCBS;vCBS;gDevTrib;gDif;gRed};rI([(0,el.IsString)(),nI("design:type",String)],Zc.prototype,"pCBS",void 0);rI([(0,el.IsString)(),nI("design:type",String)],Zc.prototype,"vCBS",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>Ua),nI("design:type",typeof Ua>"u"?Object:Ua)],Zc.prototype,"gDevTrib",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>xa),nI("design:type",typeof xa>"u"?Object:xa)],Zc.prototype,"gDif",void 0);rI([(0,el.IsOptional)(),(0,el.ValidateNested)(),(0,L_.Type)(()=>wa),nI("design:type",typeof wa>"u"?Object:wa)],Zc.prototype,"gRed",void 0);function Mx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mx,"_ts_decorate");function Ux(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ux,"_ts_metadata");var Ju=class{static{o(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};Mx([(0,ru.IsString)(),Ux("design:type",String)],Ju.prototype,"vBC",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Qc),Ux("design:type",typeof Qc>"u"?Object:Qc)],Ju.prototype,"gIBSUF",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Jc),Ux("design:type",typeof Jc>"u"?Object:Jc)],Ju.prototype,"gIBSMun",void 0);Mx([(0,ru.IsString)(),Ux("design:type",String)],Ju.prototype,"vIBS",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Zc),Ux("design:type",typeof Zc>"u"?Object:Zc)],Ju.prototype,"gCBS",void 0);Mx([(0,ru.IsOptional)(),(0,ru.ValidateNested)(),(0,iI.Type)(()=>Eo),Ux("design:type",typeof Eo>"u"?Object:Eo)],Ju.prototype,"gTribRegular",void 0);var e0=require("class-transformer");function Nf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Nf,"_ts_decorate");function If(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(If,"_ts_metadata");var ns=class{static{o(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"CST",void 0);Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"cClassTrib",void 0);Nf([(0,di.IsOptional)(),(0,di.IsString)(),If("design:type",String)],ns.prototype,"indDoacao",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Wm),If("design:type",typeof Wm>"u"?Object:Wm)],ns.prototype,"gTransfCred",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>vh),If("design:type",typeof vh>"u"?Object:vh)],ns.prototype,"gCredPresIBSZFM",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Cf),If("design:type",typeof Cf>"u"?Object:Cf)],ns.prototype,"gCredPresOper",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>yh),If("design:type",typeof yh>"u"?Object:yh)],ns.prototype,"gAjusteCompet",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Qm),If("design:type",typeof Qm>"u"?Object:Qm)],ns.prototype,"gEstornoCred",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Cn),If("design:type",typeof Cn>"u"?Object:Cn)],ns.prototype,"gIBSCBSMono",void 0);Nf([(0,di.IsOptional)(),(0,di.ValidateNested)(),(0,e0.Type)(()=>Ju),If("design:type",typeof Ju>"u"?Object:Ju)],ns.prototype,"gIBSCBS",void 0);var bh=require("class-validator");function t0(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(t0,"_ts_decorate");function r0(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(r0,"_ts_metadata");var Yu=class{static{o(this,"IS")}cClassTrib;CSTIS;pISEspec;vBCIS;uTrib;qTrib;pIS;vIS};t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"cClassTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"CSTIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"pISEspec",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"vBCIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"uTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"qTrib",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"pIS",void 0);t0([(0,bh.IsString)(),r0("design:type",String)],Yu.prototype,"vIS",void 0);function nu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nu,"_ts_decorate");function Qu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qu,"_ts_metadata");var Hi=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IBSCBS;IS};nu([(0,En.IsOptional)(),(0,En.IsNumber)(),Qu("design:type",Number)],Hi.prototype,"vTotTrib",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>zn),Qu("design:type",typeof IICMS>"u"?Object:IICMS)],Hi.prototype,"ICMS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Xu),Qu("design:type",typeof IIPI>"u"?Object:IIPI)],Hi.prototype,"IPI",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Wu),Qu("design:type",typeof IISSQN>"u"?Object:IISSQN)],Hi.prototype,"ISSQN",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Sf),Qu("design:type",typeof III>"u"?Object:III)],Hi.prototype,"II",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>xf),Qu("design:type",typeof IPIS>"u"?Object:IPIS)],Hi.prototype,"PIS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Gc),Qu("design:type",typeof IPISST>"u"?Object:IPISST)],Hi.prototype,"PISST",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>wf),Qu("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Hi.prototype,"COFINS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Wc),Qu("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Hi.prototype,"COFINSST",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>ja),Qu("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Hi.prototype,"ICMSUFDest",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>ns),Qu("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],Hi.prototype,"IBSCBS",void 0);nu([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,$u.Type)(()=>Yu),Qu("design:type",typeof IIS>"u"?Object:IIS)],Hi.prototype,"IS",void 0);Hi=nu([on({properties:["ICMS","ISSQN"]})],Hi);var $v=require("class-validator"),Iie=require("class-transformer");function $M(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($M,"_ts_decorate");function ZM(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ZM,"_ts_metadata");var F_=class{static{o(this,"IpiDevol")}vIPIDevol};$M([(0,$v.IsString)(),ZM("design:type",String)],F_.prototype,"vIPIDevol",void 0);var qx=class{static{o(this,"Devol")}pDevol;IPI};$M([(0,$v.IsString)(),ZM("design:type",String)],qx.prototype,"pDevol",void 0);$M([(0,$v.IsOptional)(),(0,$v.ValidateNested)(),(0,Iie.Type)(()=>F_),ZM("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],qx.prototype,"IPI",void 0);var xh=require("class-validator"),eU=require("class-transformer");function k_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k_,"_ts_decorate");function V_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V_,"_ts_metadata");var Hx=class{static{o(this,"Observation")}xCampo;xTexto};k_([(0,xh.IsString)(),V_("design:type",String)],Hx.prototype,"xCampo",void 0);k_([(0,xh.IsString)(),V_("design:type",String)],Hx.prototype,"xTexto",void 0);var zx=class{static{o(this,"ObsItem")}obsCont;obsFisco};k_([(0,xh.IsOptional)(),(0,xh.ValidateNested)(),(0,eU.Type)(()=>Hx),V_("design:type",typeof IObservation>"u"?Object:IObservation)],zx.prototype,"obsCont",void 0);k_([(0,xh.IsOptional)(),(0,xh.ValidateNested)(),(0,eU.Type)(()=>Hx),V_("design:type",typeof IObservation>"u"?Object:IObservation)],zx.prototype,"obsFisco",void 0);function n0(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(n0,"_ts_decorate");function i0(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(i0,"_ts_metadata");var Kx=class{static{o(this,"DetAttributes")}nItem};n0([(0,Qs.IsString)(),i0("design:type",String)],Kx.prototype,"nItem",void 0);var tl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};n0([(0,Qs.IsObject)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Kx),i0("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],tl.prototype,"$",void 0);n0([(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Xt),i0("design:type",typeof IProd>"u"?Object:IProd)],tl.prototype,"prod",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>Hi),i0("design:type",typeof IImposto>"u"?Object:IImposto)],tl.prototype,"imposto",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>qx),i0("design:type",typeof IDevol>"u"?Object:IDevol)],tl.prototype,"impostoDevol",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.IsString)(),i0("design:type",String)],tl.prototype,"infAdProd",void 0);n0([(0,Qs.IsOptional)(),(0,Qs.ValidateNested)(),(0,Gx.Type)(()=>zx),i0("design:type",typeof IObsItem>"u"?Object:IObsItem)],tl.prototype,"obsItem",void 0);n0([(0,Qs.IsOptional)(),ne({fixed:2}),i0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tl.prototype,"vItem",void 0);var Zs=require("class-validator");function rl(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(rl,"_ts_decorate");function nl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nl,"_ts_metadata");var $s=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"CNPJ",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"xOrgao",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"matr",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"xAgente",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"fone",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"UF",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"nDAR",void 0);rl([(0,Zs.IsOptional)(),Yh({format:"YYYY-MM-DD"}),nl("design:type",typeof Date>"u"?Object:Date)],$s.prototype,"dEmi",void 0);rl([(0,Zs.IsOptional)(),ne({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$s.prototype,"vDAR",void 0);rl([(0,Zs.IsString)(),nl("design:type",String)],$s.prototype,"repEmi",void 0);rl([(0,Zs.IsOptional)(),(0,Zs.IsDate)(),nl("design:type",typeof Date>"u"?Object:Date)],$s.prototype,"dPag",void 0);var Tie=require("class-validator");function wBe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wBe,"_ts_decorate");function CBe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CBe,"_ts_metadata");var Zv=class{static{o(this,"InfSolicNFF")}xSolic};wBe([(0,Tie.IsString)(),CBe("design:type",String)],Zv.prototype,"xSolic",void 0);function Ci(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ci,"_ts_decorate");function Ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ei,"_ts_metadata");var ey=class{static{o(this,"InfNFeAttributes")}Id;versao};Ci([(0,Pt.IsOptional)(),(0,Pt.IsString)(),Ei("design:type",String)],ey.prototype,"Id",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.IsString)(),Ei("design:type",String)],ey.prototype,"versao",void 0);var Ln=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Li.Type)(()=>ey),(0,Pt.ValidateNested)(),Ei("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],Ln.prototype,"$",void 0);Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>nn),Ei("design:type",typeof IIde>"u"?Object:IIde)],Ln.prototype,"ide",void 0);Ci([(0,Pt.IsObject)(),(0,Pt.IsNotEmptyObject)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>xs),Ei("design:type",typeof IEmit>"u"?Object:IEmit)],Ln.prototype,"emit",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>$s),Ei("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],Ln.prototype,"avulsa",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>ws),Ei("design:type",typeof IDest>"u"?Object:IDest)],Ln.prototype,"dest",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Pn),Ei("design:type",typeof ILocal>"u"?Object:ILocal)],Ln.prototype,"retirada",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Pn),Ei("design:type",typeof ILocal>"u"?Object:ILocal)],Ln.prototype,"entrega",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)({each:!0}),(0,Pt.ArrayMaxSize)(10),(0,Li.Type)(()=>cf),Ei("design:type",Array)],Ln.prototype,"autXML",void 0);Ci([(0,Pt.ValidateNested)({each:!0}),(0,Pt.ArrayMaxSize)(990),(0,Pt.ArrayMinSize)(1),(0,Li.Type)(()=>tl),Ei("design:type",Array)],Ln.prototype,"det",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Uc),Ei("design:type",typeof ITotal>"u"?Object:ITotal)],Ln.prototype,"total",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>ya),Ei("design:type",typeof ITransp>"u"?Object:ITransp)],Ln.prototype,"transp",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qm),Ei("design:type",typeof ICobr>"u"?Object:ICobr)],Ln.prototype,"cobr",void 0);Ci([(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Hm),Ei("design:type",typeof IPag>"u"?Object:IPag)],Ln.prototype,"pag",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Fm),Ei("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],Ln.prototype,"infIntermed",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qc),Ei("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],Ln.prototype,"infAdic",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Hp),Ei("design:type",typeof IExporta>"u"?Object:IExporta)],Ln.prototype,"exporta",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>zp),Ei("design:type",typeof ICompra>"u"?Object:ICompra)],Ln.prototype,"compra",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Sa),Ei("design:type",typeof ICana>"u"?Object:ICana)],Ln.prototype,"cana",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>qu),Ei("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],Ln.prototype,"infRespTec",void 0);Ci([(0,Pt.IsOptional)(),(0,Pt.ValidateNested)(),(0,Li.Type)(()=>Zv),Ei("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],Ln.prototype,"infSolicNFF",void 0);var tU=require("class-transformer");function j_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j_,"_ts_decorate");function M_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M_,"_ts_metadata");var Xx=class{static{o(this,"NFeAttributes")}xmlns};j_([(0,qa.IsString)(),(0,qa.IsNotEmpty)(),M_("design:type",String)],Xx.prototype,"xmlns",void 0);var wh=class{static{o(this,"NFe")}$;infNFe;Signature};j_([(0,qa.IsObject)(),(0,qa.IsNotEmptyObject)(),(0,tU.Type)(()=>Xx),(0,qa.ValidateNested)(),M_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],wh.prototype,"$",void 0);j_([(0,qa.IsObject)(),(0,qa.IsNotEmptyObject)(),(0,tU.Type)(()=>Ln),(0,qa.ValidateNested)(),M_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],wh.prototype,"infNFe",void 0);j_([(0,qa.Allow)(),M_("design:type",typeof Signature>"u"?Object:Signature)],wh.prototype,"Signature",void 0);function iu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(iu,"_ts_decorate");function wr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wr,"_ts_metadata");var Is=class{static{o(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}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.listener?.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.listener?.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}ibscbs(e){return this.schema===Uf.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===Uf.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.imposto(this.data.imposto);let e={...this.data};return this.data={},e}};iu([Ht(Kx),wr("design:type",Function),wr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),wr("design:returntype",void 0)],Is.prototype,"det",null);iu([Ht(Xt),wr("design:type",Function),wr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),wr("design:returntype",void 0)],Is.prototype,"prod",null);iu([Ht(Hi),wr("design:type",Function),wr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),wr("design:returntype",void 0)],Is.prototype,"imposto",null);iu([Ht(zn),wr("design:type",Function),wr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),wr("design:returntype",void 0)],Is.prototype,"icms",null);iu([Ht(Wu),wr("design:type",Function),wr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),wr("design:returntype",void 0)],Is.prototype,"issqn",null);iu([Ht(Sf),wr("design:type",Function),wr("design:paramtypes",[typeof III>"u"?Object:III]),wr("design:returntype",void 0)],Is.prototype,"ii",null);iu([Ht(Xu),wr("design:type",Function),wr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),wr("design:returntype",void 0)],Is.prototype,"ipi",null);iu([Ht(xf),wr("design:type",Function),wr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),wr("design:returntype",void 0)],Is.prototype,"pis",null);iu([Ht(Gc),wr("design:type",Function),wr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),wr("design:returntype",void 0)],Is.prototype,"pisst",null);iu([Ht(wf),wr("design:type",Function),wr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),wr("design:returntype",void 0)],Is.prototype,"cofins",null);iu([Ht(Wc),wr("design:type",Function),wr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),wr("design:returntype",void 0)],Is.prototype,"cofinsst",null);iu([Ht(ja),wr("design:type",Function),wr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),wr("design:returntype",void 0)],Is.prototype,"icmsufdest",null);iu([Ht(ns),wr("design:type",Function),wr("design:paramtypes",[typeof ns>"u"?Object:ns]),wr("design:returntype",void 0)],Is.prototype,"ibscbs",null);function is(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(is,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Fn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return wh}root="NFe";$det=new b2(this);$total=new x2(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=Is.create(this.$det,this.schema)}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 e==null?this:(this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this)}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this.schema!==Uf.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...this.data.infNFe.total.IBSCBSTot,gCBS:{...this.data.infNFe.total.IBSCBSTot?.gCBS},gIBS:{...this.data.infNFe.total.IBSCBSTot?.gIBS,gIBSMun:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSMun},gIBSUF:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSUF}},gMono:{...this.data.infNFe.total.IBSCBSTot?.gMono}},vNFTot:e.vNFTot}}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(bu,this),this}toObject(){if(this.$data!==void 0)return gr(this.$data);let e=this.errors();return e?Xr(new br(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=nR(this.data,this.entity,{clearEmptyValues:!0}),gr(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:gr(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==qe.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:t}=this.data.infNFe.ide;if(t!==ia.Normal)return;switch(g_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=ia.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=ia.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===ia.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(bu,this)}collect(e){let t=Reflect.getMetadata(bu,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(bu,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Dw().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}}};is([Ht(ey),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Fn.prototype,"infNFe",null);is([Ht(nn),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Fn.prototype,"ide",null);is([Ht(xs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Fn.prototype,"emit",null);is([Ht($s),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Fn.prototype,"avulsa",null);is([Ht(ws),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Fn.prototype,"dest",null);is([Ht(Pn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Fn.prototype,"retirada",null);is([Ht(Pn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Fn.prototype,"entrega",null);is([Ht(cf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Fn.prototype,"autXML",null);is([Ht(Uc),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Fn.prototype,"total",null);is([Ht(ya),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Fn.prototype,"transp",null);is([Ht(qm),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Fn.prototype,"cobr",null);is([Ht(Hm),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Fn.prototype,"pag",null);is([Ht(Fm),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Fn.prototype,"infIntermed",null);is([Ht(qc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Fn.prototype,"infAdic",null);is([Ht(Hp),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Fn.prototype,"exporta",null);is([Ht(zp),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Fn.prototype,"compra",null);is([Ht(Sa),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Fn.prototype,"cana",null);is([Ht(qu),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Fn.prototype,"infRespTec",null);is([Ht(Zv),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Fn.prototype,"infSolicNFF",null);var sI=class extends ox{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=Fn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return Rie.default.resolve(Rw(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return gr(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return gr(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?t:gr(e)}};var H_=require("class-transformer"),Ao=require("class-validator");var rU=require("class-validator");function Die(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Die,"_ts_decorate");function Oie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Oie,"_ts_metadata");var Wx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};Die([(0,rU.IsString)(),Oie("design:type",String)],Wx.prototype,"qrCode",void 0);Die([(0,rU.IsString)(),Oie("design:type",String)],Wx.prototype,"urlChave",void 0);function U_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U_,"_ts_decorate");function q_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(q_,"_ts_metadata");var Tf=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Xx),(0,Ao.ValidateNested)(),q_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Tf.prototype,"$",void 0);U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Ln),(0,Ao.ValidateNested)(),q_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Tf.prototype,"infNFe",void 0);U_([(0,Ao.IsObject)(),(0,Ao.IsNotEmptyObject)(),(0,H_.Type)(()=>Wx),(0,Ao.ValidateNested)(),q_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Tf.prototype,"infNFeSupl",void 0);U_([(0,Ao.Allow)(),q_("design:type",typeof Signature>"u"?Object:Signature)],Tf.prototype,"Signature",void 0);var aI=class extends Fn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Tf}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}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===ia.Normal)return this.data.infNFe.ide.tpEmis=ia.OFFLINE,void 0}};var nU=class extends sI{static{o(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new Wo(this.certificates);transmitter=new yo(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=aI.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return Xr(new br("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,i=await this.toolkit.parse(n),s=await this.generateQrCode(i,this.options,this.certificate);if(s.isLeft())return s;let a=await this.toolkit.build(s.value,{rootName:"infNFeSupl"}),u=this.toolkit.insertBefore(n,"Signature",a);return gr(u)}async generateQrCode(e,t,n){let i=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),s={...t.qrCode};switch(s.version??=i.version,s.version){case"200":return await this.nfceQrcode.execute(e,{version:s.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url,CSC:s.CSC,CSCId:s.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:s.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url})}default:return B0(s.version)}}};var Bie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qOaEx2hNmtmrrmpWPTJf+QCAQCDQvwWloML3D+xaYcaGkc4D/DpwKLImaCFhIFP6fCXzP4NVbuzoONdqQQCAQCFRHcBoaSO/w/vlm3Ad2rqS4LwAmkMXR/hmk3SV01UBXx7Hac681uGLPxwH5vh9twDyMRSjqKwLMI2pSwmChoN3l2didXTd8tDFWBwKBwMS0NdqAWc4bEefK+W7xv4peLRX5n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RlbjwkM4w5hLQP+QnEnup7siDdJfwVwQGhYWAY+yCVvxGHKv2k7rhkqq0XFZ2Q+SdJQ7EbaFhRXohPAZ2xK6WMxIiiBXlQNfkbytfAUDIvRrX3jyoD6F3TvlXQDn4gmhMdAg8LhgTbiYMli/nsD4AbgF0yI+ARSQdsFww3Aa9F75GD0hA4aQlRPYETiu7+lZlp/PaD0zK/XXvhm1+Z0ZQZKedkiG31OOW+qJIlJynStSeSCL5jI3sZuPjchccju2Q9cUzBImCGYb+grmZEg3vmGBbFpw521paOHv+z+wAtxixCHgQNFPPZceeOmCpyhdJ024skTbfZK7GrtvJlrlCajjnfcrPQ1mI++9po7QUCJxtBaQickPz0lbefPeuU//gi6NKythBT8YFHP5VD6Vw5eRGh8rVTL9MQ+J3nLtw8ocJIgUAg8HoiuCcCJyQXn/XPLxv9AfhD0dE5V05M1JyySGRlV0X56GSSuOkYyPDtRkFhCAQCb2iCpSFwwjOwfeksSR+2uVFicdo9keBylsho558uglR2YUyNbMTwOcynliw6XtUyA4FA4NgQlIbA64YtO1pnAVfbvklwPlJLteOiQvJ6tStj0mWv2r4T8dCShZuDwhAIBN7wBKUh8LpjYEdrk+xzkN4PdNheDKpJmxxZI5L4yEmUHTC8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var Jx=class r{static{o(this,"Header")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),i=e?.x??t,s=this.context.data.infNFe.emit,{enderEmit:a}=s,{xNome:u}=s,c=this.context.defaults.font,l=`${c}-Bold`,p="left";this.builder.row({left:i,right:n},d=>this.builder.text(this.identification(s),{...d,continued:!0,align:p}).font(l).text(` ${u}`,{...d,align:p}).font(c)).row({left:i,right:n},d=>this.builder.text(this.addressLine1(a),{...d,continued:!0,align:p}).text(this.addressLine2(a),{...d,continued:!0,align:p}).text(this.addressLine3(a),{...d,align:p})).row({left:i,right:n},d=>this.builder.text(this.addressLine4(a),{...d,align:p}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}addressLine4(e){let{fone:t}=e;return t?`Fone: ${t.replace(/(\d{2})(\d{4,5})(\d{4})/,"($1) $2-$3")}`:""}staticTexts(){let{left:e,right:t}=this.builder.pageMargins();this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return Bie}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){r._instance=void 0}};var Ch=class r{static{o(this,"FiscalMessages")}context;static _instance;constants={issuedInContingency:"EMITIDA EM CONTING\xCANCIA",pendingOfAuthorization:"Pendente de autoriza\xE7\xE3o",notProtocoledInNormalEmission:"PENDENTE DE AUTORIZA\xC7\xC3O - SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return`${this.constants.issuedInContingency}
|
|
133
133
|
${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==ia.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),i=this.builder.pageWidth()-t-n;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:i,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:i,align:"center"})),e.reduce((s,a)=>s+a,0)}};var Yx=class r{static{o(this,"HomologMessage")}context;static _instance;constants={withoutFiscalValue:"EMITIDA EM AMBIENTE DE HOMOLOGA\xC7\xC3O \u2013 SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==qe.Production}withHomologMessage(){if(!this.hasHomologMessage)return;let{left:e}=this.builder.pageMargins();this.builder.text(this.constants.withoutFiscalValue,{x:e,align:"center"})}build(){return this.setup(),this.builder.moveDown(.5),this.withHomologMessage(),this.builder.font(this.context.defaults.font),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){if(!this.hasHomologMessage)return 0;this.setup();let{left:e,right:t}=this.builder.pageMargins();return this.builder.heightOfString(this.constants.withoutFiscalValue,{width:this.builder.pageWidth()-e-t,align:"center"})}};var z_=class r{static{o(this,"Items")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get columnStyles(){return[15,32,60,"*","*","*","*"]}get rowStyles(){return{border:!1}}get defaultStyle(){return{padding:{top:1,bottom:1,left:0,right:0}}}get headers(){let e={src:`${this.context.defaults.font}-Bold`};return[{font:e,text:"#"},{font:e,text:"cod."},{font:e,text:"descri\xE7\xE3o"},{font:e,align:{x:"right"},text:"qtde"},{font:e,align:{x:"right"},text:"unit."},{font:e,align:{x:"right"},text:"desc."},{font:e,align:{x:"right"},text:"total"}]}item(e){let{prod:t,$:{nItem:n}}=e,{cProd:i,xProd:s,qCom:a,uCom:u,vUnCom:c,vDesc:l,vProd:p}=t,d={size:this.context.options.textFontSize},g={font:d,text:n.padStart(3,"0")},y={font:d,text:i},v=[{font:d,align:{x:"right"},text:`${this.context.currency(a,4)} ${u}`},{font:d,align:{x:"right"},text:this.context.currency(c,10)},{font:d,align:{x:"right"},text:this.context.currency(l??0)},{font:d,align:{x:"right"},text:this.context.currency(p)}],x=this.builder.widthOfString(i),S=this.columnStyles[1];if(x>=S)return[[g,{colSpan:6,font:d,text:`${i} ${s}`}],[{colSpan:3},...v]];let A=this.builder.widthOfString(s),D=this.columnStyles[2];if(A>=D)return[[g,y,{colSpan:5,font:d,text:s}],[{colSpan:3},...v]];let C=this.getFirstLineWidth();return this.builder.widthOfString(`${i} ${s}`)<=C?[[g,y,{font:d,text:s},...v]]:[[g,y,{colSpan:5,font:d,text:s}],[{colSpan:3},...v]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n}=this.builder.pageMargins();this.builder.table({position:{x:n},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((i,s)=>i.concat(this.item(s)),[])]})}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.items(),this.builder}end(){r._instance=void 0}getFirstLineWidth(){return this.columnStyles.slice(1,3).reduce((t,n)=>t+n,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,i=this.columnStyles.reduce((a,u)=>typeof u=="number"?a+u:a,0),s=this.columnStyles.filter(a=>a==="*").length;return(n-i)/s}getAvailableWidth(e,t){if(e.colSpan){let s=t.indexOf(e),a=this.columnStyles.slice(0,s).reduce((c,l)=>typeof l=="number"?c+l:c,0),u=this.getProportionalWidth()*e.colSpan;return a+u}let n=t.indexOf(e),i=this.columnStyles[n];return typeof i=="number"?i:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let i of e){if(!i.text)continue;let s=i.text,a=this.builder.widthOfString(s),u=this.getAvailableWidth(i,e),c=a<=u?t:this.builder.heightOfString(s,{width:u});n=Math.max(n,c)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),i=n*1.2,s=n*.5,a=n*.5,u=t.reduce((l,p)=>{let d=this.item(p),[g]=d,y=this.calculateRowHeight(g,n),v=0;if(d.length>1){let C=this.calculateRowHeight(d[1],n);v=Math.max(n,C)}let{top:x,bottom:S}=this.defaultStyle.padding,A=x+S,D=d.length>1?n*.2:0;return l+y+v+d.length*A+D},0),c=n*2;return s+i+a+u+c}};var Qx=class r{static{o(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}count(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Qtde. Total de Itens",{...s}),s=>this.builder.text(`${t.length}`,{...s,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:i,vOutro:s}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new en(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",i),this.conditionalRowValue("Outras despesas total R$",s)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:i,right:s}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:i,right:s},a=>this.builder.text("Valor a Pagar R$",{...a,align:"left"}),a=>this.builder.text(this.context.currency(e),{...a,align:"right"})).font(t)}conditionalRowValue(e,t,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${n}${t}`,{...a,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.count(),this.totalizers(),this.total(),this.builder}end(){r._instance=void 0}};var zi={Dinheiro:"01",Cheque:"02",CartaoDeCredito:"03",CartaoDeDebito:"04",CartaoDaLoja:"05",ValeAlimentacao:"10",ValeRefeicao:"11",ValePresente:"12",ValeCombustivel:"13",BoletoBancario:"15",DepositoBancario:"16",PIXDinamico:"17",TransferenciaBancaria:"18",ProgramaFidelidade:"19",PIXEstatico:"20",CreditoEmLoja:"21",PagamentoNaoInformado:"22",SemPagamento:"90",PagamentoPosterior:"91",Outros:"99"},Pie={[zi.Dinheiro]:"Dinheiro",[zi.Cheque]:"Cheque",[zi.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[zi.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[zi.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[zi.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[zi.ValeRefeicao]:"Vale Refei\xE7\xE3o",[zi.ValePresente]:"Vale Presente",[zi.ValeCombustivel]:"Vale Combust\xEDvel",[zi.BoletoBancario]:"Boleto Banc\xE1rio",[zi.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[zi.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[zi.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[zi.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[zi.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[zi.CreditoEmLoja]:"Cr\xE9dito em Loja",[zi.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[zi.SemPagamento]:"Sem pagamento",[zi.PagamentoPosterior]:"Pagamento Posterior",[zi.Outros]:"Outros"};var $x=class r{static{o(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:n}=e,{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(Pie[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(n),{...a,align:"right"}))}payments(){let{pag:e}=this.context.data.infNFe,t=Array.isArray(e.detPag)?e.detPag:[e.detPag];if(t.length===0)return;let{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Forma de Pagamento",{...s,align:"left"}),s=>this.builder.text("Valor pago R$",{...s,align:"right"})),t.forEach(s=>this.payment(s))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:n}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:n},i=>this.builder.text("Troco R$",{...i,align:"left"}),i=>this.builder.text(this.context.currency(e),{...i,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.payments(),this.change(),this.builder}end(){r._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,n=Array.isArray(t)?t:[t],i=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+i}};var Zx=class r{static{o(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}statics(){let{left:e,right:t}=this.builder.pageMargins(),n=this.context.defaults.font,i=`${n}-Bold`;this.builder.font(i).row({left:e,right:t},s=>this.builder.text("Consulte pela Chave de Acesso em",{...s,align:"center"})).font(n)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:t,right:n},i=>this.builder.text(e??"",{...i,link:e,align:"center"}))}accessKey(){let{Id:e}=this.context.data.infNFe.$;if(!e)return;this.builder.moveDown(.5);let t=e.substring(3).replace(/(.{4})/g,"$1 ").trim(),{left:n,right:i}=this.builder.pageMargins();this.builder.row({left:n,right:i},s=>this.builder.text(t,{...s,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.titleFontSize)}build(){return this.builder.moveDown(.5),this.statics(),this.url(),this.accessKey(),this.builder}end(){r._instance=void 0}};var Hae=lr(qae(),1);var s4=class r{static{o(this,"QRCode")}context;static _instance;defaults={qrSize:65};qrCodeSvg;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}async getQrSvgString(e){try{return await Hae.toString(e,{margin:0,type:"svg",errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}})}catch(t){return console.error("Error generating QR code:",t),""}}drawQrCode(){if(!this.qrCodeSvg)return;let e=this.qrCodeSvg.$.viewBox,[,,t,n]=e.split(" ").map(Number),{qrSize:i}=this.defaults,s=i/t,a=i/n,u=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:c}=this.builder.pageMargins();this.builder.save().translate(c,this.builder.y()).scale(s,a),u.forEach(l=>{this.builder.path(l.$.d),l.$.fill&&this.builder.fill(l.$.fill),l.$.stroke&&this.builder.stroke(l.$.stroke)}),this.builder.restore()}async make(){let{qrCode:e}=this.context.data.infNFeSupl??{};if(!e)return this.builder;let t=await this.getQrSvgString(e);this.qrCodeSvg=await this.context.toolkit.parse(t)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}async build(){return await this.make(),this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder}end(){r._instance=void 0}height(){return this.setup(),this.defaults.qrSize+.5}};var a4=class r{static{o(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:n}=this.builder.pageMargins(),i=this.context.defaults.font,s=`${i}-Bold`;this.builder.row({left:e?.x??t,right:n},a=>this.builder.font(s).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(i))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:i}=e;return t?.length===14?`CNPJ: ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:i?.length?`Id. Estrangeiro: ${i}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:n,right:i}=this.builder.pageMargins(),s=this.identification(t),{xNome:a,enderDest:u}=t,c=this.addressLine(u),l=this.context.defaults.font,p=`${l}-Bold`;this.builder.row({left:e?.x??n,right:i},d=>this.builder.font(p).text(`CONSUMIDOR - ${s}`,{...d,align:"center"}).font(l)).row({left:e?.x??n,right:i},d=>this.builder.text(`${a}${c}`,{...d,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:i,xCpl:s,xMun:a,UF:u,CEP:c}=e;if(!t||!c)return"";let l=s?`, ${s}`:"";return` - Rua ${t}, ${n}, ${i}${l}, ${a} - ${u}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,i=n?` - ${n}`:"";return`${t}${i}`}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.dest(e),this.builder}end(){r._instance=void 0}height(){let{dest:e}=this.context.data.infNFe;if(!e)return 0;this.setup();let{xNome:t,enderDest:n}=e,i=this.addressLine(n),{left:s,right:a}=this.builder.pageMargins(),u=this.builder.pageWidth()-s-a;return this.builder.fontSize(this.context.options.textFontSize),this.builder.heightOfString(`${t}${i}`,{align:"center",width:u})}};var o4=class r{static{o(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}isProtocoled(e){return!!e}protocol(e){let t=this.context.protNFe;return this.isProtocoled(t)?this.protocoled(t.infProt,e):this.unprotocoled()}unprotocoled(){}metadata(e){let{nNF:t,serie:n,dhEmi:i}=this.context.data.infNFe.ide,s=t.padStart(9,"0"),a=n.padStart(3,"0"),{left:u,right:c}=this.builder.pageMargins(),{cUF:l}=this.context.data.infNFe.ide,p=fM[l],d=Ww(i).tz(p).format("DD/MM/YYYY HH:mm:ss"),g=this.context.defaults.font,y=`${g}-Bold`;this.builder.row({left:e?.x??u,right:c},v=>this.builder.font(y).text(`NFC-e n\xBA ${s} - s\xE9rie ${a} emitida em: ${d}`,{...v,align:"center"}).font(g))}protocoled(e,t){let{dhRecbto:n,nProt:i}=e,{left:s,right:a}=this.builder.pageMargins(),{cUF:u}=this.context.data.infNFe.ide,c=fM[u],l=i.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),p=Ww(n).tz(c).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??s,right:a},d=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${l}
|
|
134
134
|
Data de autoriza\xE7\xE3o: ${p}`,{...d,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:i,right:s}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??i,right:s},a=>this.builder.text(`$(${t}) ${n}`,{...a,align:"left"})),this.protocol(e)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.metadata(e),this.assemble(e),this.builder}end(){r._instance=void 0}};var u4=class r{static{o(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builders(){return[a4.instance(this.context),o4.instance(this.context),Ch.instance(this.context)]}get builder(){return this.context.builder}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builders.forEach(t=>t.build(e)),this.builder}end(){r._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>t instanceof Ch?e:e+(t.height?.()??0),0)}};var uw=class r{static{o(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builders(){return[s4.instance(this.context),u4.instance(this.context)]}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}get builder(){return this.context.builder}async build(){this.setup();let e=this.builders[0],t=this.builders[1],{left:n,right:i}=this.builder.pageMargins(),s=this.builder.y();await e.build();let a=this.builder.y();this.builder.row({columns:2,left:n,right:i,size:[4,8]},()=>this.builder,g=>t.build(g));let u=e.height(),c=s+u,l=t.height(),p=a+l,d=Math.max(c,p);this.builder.y()<d&&this.builder.text("",{y:d}),this.builder.moveDown(.5);for(let g of this.builders.slice(2))await g.build();return this.builder}end(){r._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+t.height(),0)}};var j_e=.35277777777777775,WU=.75,zae={"80mm":80/j_e},c4="gerado por github.com/nfets/nfets";var cw=class r{static{o(this,"Footer")}context;static _instance;constants={vTotTrib:"Tributos Totais Incidentes (Lei Federal 12.741/2012): R$"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}vTotTrib(){let{vTotTrib:e}=this.context.data.infNFe.total.ICMSTot,{left:t,right:n}=this.builder.pageMargins(),i=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:n},s=>this.builder.text(`${this.constants.vTotTrib} ${i}`,{...s,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
|
|
135
135
|
`)??"").split(`
|