nfets 0.0.147 → 0.0.148
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/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/nfe/index.cjs +49 -44
- package/dist/nfe/index.d.cts +43 -3
- package/dist/nfe/index.d.ts +43 -3
- package/dist/nfe/index.mjs +29 -24
- package/dist/{types-B8bOrWDU.d.cts → types-CxTIfVCy.d.cts} +4 -1
- package/dist/{types-B8bOrWDU.d.ts → types-CxTIfVCy.d.ts} +4 -1
- package/package.json +1 -1
package/dist/nfe/index.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as
|
|
3
|
-
]))+`;
|
|
4
|
-
Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),
|
|
5
|
-
Suggested mode is: `+U.toString(n));switch(t===U.KANJI&&!
|
|
2
|
+
import{e as $d}from"../chunk-CYG4CXYX.mjs";import{a,b as Ue,d as F,f as kd}from"../chunk-W6MRGYXP.mjs";var nd=F((zT,Nm)=>{"use strict";Nm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var or=F(qr=>{"use strict";var rd,iC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];qr.getSymbolSize=a(function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},"getSymbolSize");qr.getSymbolTotalCodewords=a(function(e){return iC[e]},"getSymbolTotalCodewords");qr.getBCHDigit=function(i){let e=0;for(;i!==0;)e++,i>>>=1;return e};qr.setToSJISFunction=a(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');rd=e},"setToSJISFunction");qr.isKanjiModeEnabled=function(){return typeof rd<"u"};qr.toSJIS=a(function(e){return rd(e)},"toSJIS")});var tl=F(go=>{"use strict";go.L={bit:1};go.M={bit:0};go.Q={bit:3};go.H={bit:2};function nC(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return go.L;case"m":case"medium":return go.M;case"q":case"quartile":return go.Q;case"h":case"high":return go.H;default:throw new Error("Unknown EC Level: "+i)}}a(nC,"fromString");go.isValid=a(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");go.from=a(function(e,t){if(go.isValid(e))return e;try{return nC(e)}catch{return t}},"from")});var Om=F((VT,Rm)=>{"use strict";function Im(){this.buffer=[],this.length=0}a(Im,"BitBuffer");Im.prototype={get:a(function(i){let e=Math.floor(i/8);return(this.buffer[e]>>>7-i%8&1)===1},"get"),put:a(function(i,e){for(let t=0;t<e;t++)this.putBit((i>>>e-t-1&1)===1)},"put"),getLengthInBits:a(function(){return this.length},"getLengthInBits"),putBit:a(function(i){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),i&&(this.buffer[e]|=128>>>this.length%8),this.length++},"putBit")};Rm.exports=Im});var xm=F((HT,Fm)=>{"use strict";function Rc(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}a(Rc,"BitMatrix");Rc.prototype.set=function(i,e,t,n){let r=i*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};Rc.prototype.get=function(i,e){return this.data[i*this.size+e]};Rc.prototype.xor=function(i,e,t){this.data[i*this.size+e]^=t};Rc.prototype.isReserved=function(i,e){return this.reservedBit[i*this.size+e]};Fm.exports=Rc});var Dm=F(ol=>{"use strict";var rC=or().getSymbolSize;ol.getRowColCoords=a(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=rC(e),r=n===145?26:Math.ceil((n-13)/(2*t-2))*2,o=[n-7];for(let s=1;s<t-1;s++)o[s]=o[s-1]-r;return o.push(6),o.reverse()},"getRowColCoords");ol.getPositions=a(function(e){let t=[],n=ol.getRowColCoords(e),r=n.length;for(let o=0;o<r;o++)for(let s=0;s<r;s++)o===0&&s===0||o===0&&s===r-1||o===r-1&&s===0||t.push([n[o],n[s]]);return t},"getPositions")});var Pm=F(wm=>{"use strict";var sC=or().getSymbolSize,Am=7;wm.getPositions=a(function(e){let t=sC(e);return[[0,0],[t-Am,0],[0,t-Am]]},"getPositions")});var Em=F(oe=>{"use strict";oe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Zr={N1:3,N2:3,N3:40,N4:10};oe.isValid=a(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");oe.from=a(function(e){return oe.isValid(e)?parseInt(e,10):void 0},"from");oe.getPenaltyN1=a(function(e){let t=e.size,n=0,r=0,o=0,s=null,c=null;for(let f=0;f<t;f++){r=o=0,s=c=null;for(let l=0;l<t;l++){let u=e.get(f,l);u===s?r++:(r>=5&&(n+=Zr.N1+(r-5)),s=u,r=1),u=e.get(l,f),u===c?o++:(o>=5&&(n+=Zr.N1+(o-5)),c=u,o=1)}r>=5&&(n+=Zr.N1+(r-5)),o>=5&&(n+=Zr.N1+(o-5))}return n},"getPenaltyN1");oe.getPenaltyN2=a(function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){let s=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);(s===4||s===0)&&n++}return n*Zr.N2},"getPenaltyN2");oe.getPenaltyN3=a(function(e){let t=e.size,n=0,r=0,o=0;for(let s=0;s<t;s++){r=o=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(s,c),c>=10&&(r===1488||r===93)&&n++,o=o<<1&2047|e.get(c,s),c>=10&&(o===1488||o===93)&&n++}return n*Zr.N3},"getPenaltyN3");oe.getPenaltyN4=a(function(e){let t=0,n=e.data.length;for(let o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(t*100/n/5)-10)*Zr.N4},"getPenaltyN4");function aC(i,e,t){switch(i){case oe.Patterns.PATTERN000:return(e+t)%2===0;case oe.Patterns.PATTERN001:return e%2===0;case oe.Patterns.PATTERN010:return t%3===0;case oe.Patterns.PATTERN011:return(e+t)%3===0;case oe.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case oe.Patterns.PATTERN101:return e*t%2+e*t%3===0;case oe.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case oe.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}a(aC,"getMaskAt");oe.applyMask=a(function(e,t){let n=t.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)t.isReserved(o,r)||t.xor(o,r,aC(e,o,r))},"applyMask");oe.getBestMask=a(function(e,t){let n=Object.keys(oe.Patterns).length,r=0,o=1/0;for(let s=0;s<n;s++){t(s),oe.applyMask(s,e);let c=oe.getPenaltyN1(e)+oe.getPenaltyN2(e)+oe.getPenaltyN3(e)+oe.getPenaltyN4(e);oe.applyMask(s,e),c<o&&(o=c,r=s)}return r},"getBestMask")});var ad=F(sd=>{"use strict";var ir=tl(),il=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],nl=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];sd.getBlocksCount=a(function(e,t){switch(t){case ir.L:return il[(e-1)*4+0];case ir.M:return il[(e-1)*4+1];case ir.Q:return il[(e-1)*4+2];case ir.H:return il[(e-1)*4+3];default:return}},"getBlocksCount");sd.getTotalCodewordsCount=a(function(e,t){switch(t){case ir.L:return nl[(e-1)*4+0];case ir.M:return nl[(e-1)*4+1];case ir.Q:return nl[(e-1)*4+2];case ir.H:return nl[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var zm=F(sl=>{"use strict";var Oc=new Uint8Array(512),rl=new Uint8Array(256);a((function(){let e=1;for(let t=0;t<255;t++)Oc[t]=e,rl[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Oc[t]=Oc[t-255]}),"initTables")();sl.log=a(function(e){if(e<1)throw new Error("log("+e+")");return rl[e]},"log");sl.exp=a(function(e){return Oc[e]},"exp");sl.mul=a(function(e,t){return e===0||t===0?0:Oc[rl[e]+rl[t]]},"mul")});var Tm=F(Fc=>{"use strict";var cd=zm();Fc.mul=a(function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]^=cd.mul(e[r],t[o]);return n},"mul");Fc.mod=a(function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let r=n[0];for(let s=0;s<t.length;s++)n[s]^=cd.mul(t[s],r);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n},"mod");Fc.generateECPolynomial=a(function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=Fc.mul(t,new Uint8Array([1,cd.exp(n)]));return t},"generateECPolynomial")});var Bm=F((e2,jm)=>{"use strict";var Mm=Tm();function fd(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}a(fd,"ReedSolomonEncoder");fd.prototype.initialize=a(function(e){this.degree=e,this.genPoly=Mm.generateECPolynomial(this.degree)},"initialize");fd.prototype.encode=a(function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Mm.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let o=new Uint8Array(this.degree);return o.set(n,r),o}return n},"encode");jm.exports=fd});var ld=F(Vm=>{"use strict";Vm.isValid=a(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var pd=F(mn=>{"use strict";var Lm="[0-9]+",cC="[A-Z $%*+\\-./:]+",xc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";xc=xc.replace(/u/g,"\\u");var fC="(?:(?![A-Z0-9 $%*+\\-./:]|"+xc+`)(?:.|[\r
|
|
3
|
+
]))+`;mn.KANJI=new RegExp(xc,"g");mn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");mn.BYTE=new RegExp(fC,"g");mn.NUMERIC=new RegExp(Lm,"g");mn.ALPHANUMERIC=new RegExp(cC,"g");var lC=new RegExp("^"+xc+"$"),pC=new RegExp("^"+Lm+"$"),dC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");mn.testKanji=a(function(e){return lC.test(e)},"testKanji");mn.testNumeric=a(function(e){return pC.test(e)},"testNumeric");mn.testAlphanumeric=a(function(e){return dC.test(e)},"testAlphanumeric")});var nr=F(He=>{"use strict";var uC=ld(),dd=pd();He.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};He.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};He.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};He.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};He.MIXED={bit:-1};He.getCharCountIndicator=a(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!uC.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},"getCharCountIndicator");He.getBestModeForData=a(function(e){return dd.testNumeric(e)?He.NUMERIC:dd.testAlphanumeric(e)?He.ALPHANUMERIC:dd.testKanji(e)?He.KANJI:He.BYTE},"getBestModeForData");He.toString=a(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");He.isValid=a(function(e){return e&&e.bit&&e.ccBits},"isValid");function hC(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return He.NUMERIC;case"alphanumeric":return He.ALPHANUMERIC;case"kanji":return He.KANJI;case"byte":return He.BYTE;default:throw new Error("Unknown mode: "+i)}}a(hC,"fromString");He.from=a(function(e,t){if(He.isValid(e))return e;try{return hC(e)}catch{return t}},"from")});var qm=F(Yr=>{"use strict";var al=or(),mC=ad(),Hm=tl(),rr=nr(),ud=ld(),Qm=7973,Um=al.getBCHDigit(Qm);function gC(i,e,t){for(let n=1;n<=40;n++)if(e<=Yr.getCapacity(n,t,i))return n}a(gC,"getBestVersionForDataLength");function Gm(i,e){return rr.getCharCountIndicator(i,e)+4}a(Gm,"getReservedBitsCount");function vC(i,e){let t=0;return i.forEach(function(n){let r=Gm(n.mode,e);t+=r+n.getBitsLength()}),t}a(vC,"getTotalBitsFromDataArray");function yC(i,e){for(let t=1;t<=40;t++)if(vC(i,t)<=Yr.getCapacity(t,e,rr.MIXED))return t}a(yC,"getBestVersionForMixedData");Yr.from=a(function(e,t){return ud.isValid(e)?parseInt(e,10):t},"from");Yr.getCapacity=a(function(e,t,n){if(!ud.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=rr.BYTE);let r=al.getSymbolTotalCodewords(e),o=mC.getTotalCodewordsCount(e,t),s=(r-o)*8;if(n===rr.MIXED)return s;let c=s-Gm(n,e);switch(n){case rr.NUMERIC:return Math.floor(c/10*3);case rr.ALPHANUMERIC:return Math.floor(c/11*2);case rr.KANJI:return Math.floor(c/13);case rr.BYTE:default:return Math.floor(c/8)}},"getCapacity");Yr.getBestVersionForData=a(function(e,t){let n,r=Hm.from(t,Hm.M);if(Array.isArray(e)){if(e.length>1)return yC(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return gC(n.mode,n.getLength(),r)},"getBestVersionForData");Yr.getEncodedBits=a(function(e){if(!ud.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;al.getBCHDigit(t)-Um>=0;)t^=Qm<<al.getBCHDigit(t)-Um;return e<<12|t},"getEncodedBits")});var Xm=F(Jm=>{"use strict";var hd=or(),Ym=1335,SC=21522,Zm=hd.getBCHDigit(Ym);Jm.getEncodedBits=a(function(e,t){let n=e.bit<<3|t,r=n<<10;for(;hd.getBCHDigit(r)-Zm>=0;)r^=Ym<<hd.getBCHDigit(r)-Zm;return(n<<10|r)^SC},"getEncodedBits")});var _m=F((d2,Wm)=>{"use strict";var CC=nr();function fa(i){this.mode=CC.NUMERIC,this.data=i.toString()}a(fa,"NumericData");fa.getBitsLength=a(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");fa.prototype.getLength=a(function(){return this.data.length},"getLength");fa.prototype.getBitsLength=a(function(){return fa.getBitsLength(this.data.length)},"getBitsLength");fa.prototype.write=a(function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,o*3+1))},"write");Wm.exports=fa});var km=F((h2,Km)=>{"use strict";var bC=nr(),md=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function la(i){this.mode=bC.ALPHANUMERIC,this.data=i}a(la,"AlphanumericData");la.getBitsLength=a(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");la.prototype.getLength=a(function(){return this.data.length},"getLength");la.prototype.getBitsLength=a(function(){return la.getBitsLength(this.data.length)},"getBitsLength");la.prototype.write=a(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=md.indexOf(this.data[t])*45;n+=md.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(md.indexOf(this.data[t]),6)},"write");Km.exports=la});var eg=F((g2,$m)=>{"use strict";var NC=nr();function pa(i){this.mode=NC.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}a(pa,"ByteData");pa.getBitsLength=a(function(e){return e*8},"getBitsLength");pa.prototype.getLength=a(function(){return this.data.length},"getLength");pa.prototype.getBitsLength=a(function(){return pa.getBitsLength(this.data.length)},"getBitsLength");pa.prototype.write=function(i){for(let e=0,t=this.data.length;e<t;e++)i.put(this.data[e],8)};$m.exports=pa});var og=F((y2,tg)=>{"use strict";var IC=nr(),RC=or();function da(i){this.mode=IC.KANJI,this.data=i}a(da,"KanjiData");da.getBitsLength=a(function(e){return e*13},"getBitsLength");da.prototype.getLength=a(function(){return this.data.length},"getLength");da.prototype.getBitsLength=a(function(){return da.getBitsLength(this.data.length)},"getBitsLength");da.prototype.write=function(i){let e;for(e=0;e<this.data.length;e++){let t=RC.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
4
|
+
Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),i.put(t,13)}};tg.exports=da});var ig=F((C2,gd)=>{"use strict";var Dc={single_source_shortest_paths:a(function(i,e,t){var n={},r={};r[e]=0;var o=Dc.PriorityQueue.make();o.push(e,0);for(var s,c,f,l,u,h,g,y,S;!o.empty();){s=o.pop(),c=s.value,l=s.cost,u=i[c]||{};for(f in u)u.hasOwnProperty(f)&&(h=u[f],g=l+h,y=r[f],S=typeof r[f]>"u",(S||y>g)&&(r[f]=g,o.push(f,g),n[f]=c))}if(typeof t<"u"&&typeof r[t]>"u"){var N=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(N)}return n},"single_source_shortest_paths"),extract_shortest_path_from_predecessor_list:a(function(i,e){for(var t=[],n=e,r;n;)t.push(n),r=i[n],n=i[n];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:a(function(i,e,t){var n=Dc.single_source_shortest_paths(i,e,t);return Dc.extract_shortest_path_from_predecessor_list(n,t)},"find_path"),PriorityQueue:{make:a(function(i){var e=Dc.PriorityQueue,t={},n;i=i||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=i.sorter||e.default_sorter,t},"make"),default_sorter:a(function(i,e){return i.cost-e.cost},"default_sorter"),push:a(function(i,e){var t={value:i,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},"push"),pop:a(function(){return this.queue.shift()},"pop"),empty:a(function(){return this.queue.length===0},"empty")}};typeof gd<"u"&&(gd.exports=Dc)});var pg=F(ua=>{"use strict";var U=nr(),sg=_m(),ag=km(),cg=eg(),fg=og(),Ac=pd(),cl=or(),OC=ig();function ng(i){return unescape(encodeURIComponent(i)).length}a(ng,"getStringByteLength");function wc(i,e,t){let n=[],r;for(;(r=i.exec(t))!==null;)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}a(wc,"getSegments");function lg(i){let e=wc(Ac.NUMERIC,U.NUMERIC,i),t=wc(Ac.ALPHANUMERIC,U.ALPHANUMERIC,i),n,r;return cl.isKanjiModeEnabled()?(n=wc(Ac.BYTE,U.BYTE,i),r=wc(Ac.KANJI,U.KANJI,i)):(n=wc(Ac.BYTE_KANJI,U.BYTE,i),r=[]),e.concat(t,n,r).sort(function(s,c){return s.index-c.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}a(lg,"getSegmentsFromString");function vd(i,e){switch(e){case U.NUMERIC:return sg.getBitsLength(i);case U.ALPHANUMERIC:return ag.getBitsLength(i);case U.KANJI:return fg.getBitsLength(i);case U.BYTE:return cg.getBitsLength(i)}}a(vd,"getSegmentBitsLength");function FC(i){return i.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}a(FC,"mergeSegments");function xC(i){let e=[];for(let t=0;t<i.length;t++){let n=i[t];switch(n.mode){case U.NUMERIC:e.push([n,{data:n.data,mode:U.ALPHANUMERIC,length:n.length},{data:n.data,mode:U.BYTE,length:n.length}]);break;case U.ALPHANUMERIC:e.push([n,{data:n.data,mode:U.BYTE,length:n.length}]);break;case U.KANJI:e.push([n,{data:n.data,mode:U.BYTE,length:ng(n.data)}]);break;case U.BYTE:e.push([{data:n.data,mode:U.BYTE,length:ng(n.data)}])}}return e}a(xC,"buildNodes");function DC(i,e){let t={},n={start:{}},r=["start"];for(let o=0;o<i.length;o++){let s=i[o],c=[];for(let f=0;f<s.length;f++){let l=s[f],u=""+o+f;c.push(u),t[u]={node:l,lastCount:0},n[u]={};for(let h=0;h<r.length;h++){let g=r[h];t[g]&&t[g].node.mode===l.mode?(n[g][u]=vd(t[g].lastCount+l.length,l.mode)-vd(t[g].lastCount,l.mode),t[g].lastCount+=l.length):(t[g]&&(t[g].lastCount=l.length),n[g][u]=vd(l.length,l.mode)+4+U.getCharCountIndicator(l.mode,e))}}r=c}for(let o=0;o<r.length;o++)n[r[o]].end=0;return{map:n,table:t}}a(DC,"buildGraph");function rg(i,e){let t,n=U.getBestModeForData(i);if(t=U.from(e,n),t!==U.BYTE&&t.bit<n.bit)throw new Error('"'+i+'" cannot be encoded with mode '+U.toString(t)+`.
|
|
5
|
+
Suggested mode is: `+U.toString(n));switch(t===U.KANJI&&!cl.isKanjiModeEnabled()&&(t=U.BYTE),t){case U.NUMERIC:return new sg(i);case U.ALPHANUMERIC:return new ag(i);case U.KANJI:return new fg(i);case U.BYTE:return new cg(i)}}a(rg,"buildSingleSegment");ua.fromArray=a(function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(rg(n,null)):n.data&&t.push(rg(n.data,n.mode)),t},[])},"fromArray");ua.fromString=a(function(e,t){let n=lg(e,cl.isKanjiModeEnabled()),r=xC(n),o=DC(r,t),s=OC.find_path(o.map,"start","end"),c=[];for(let f=1;f<s.length-1;f++)c.push(o.table[s[f]].node);return ua.fromArray(FC(c))},"fromString");ua.rawSplit=a(function(e){return ua.fromArray(lg(e,cl.isKanjiModeEnabled()))},"rawSplit")});var Id=F(dg=>{"use strict";var ll=or(),yd=tl(),AC=Om(),wC=xm(),PC=Dm(),EC=Pm(),bd=Em(),Nd=ad(),zC=Bm(),fl=qm(),TC=Xm(),MC=nr(),Sd=pg();function jC(i,e){let t=i.size,n=EC.getPositions(e);for(let r=0;r<n.length;r++){let o=n[r][0],s=n[r][1];for(let c=-1;c<=7;c++)if(!(o+c<=-1||t<=o+c))for(let f=-1;f<=7;f++)s+f<=-1||t<=s+f||(c>=0&&c<=6&&(f===0||f===6)||f>=0&&f<=6&&(c===0||c===6)||c>=2&&c<=4&&f>=2&&f<=4?i.set(o+c,s+f,!0,!0):i.set(o+c,s+f,!1,!0))}}a(jC,"setupFinderPattern");function BC(i){let e=i.size;for(let t=8;t<e-8;t++){let n=t%2===0;i.set(t,6,n,!0),i.set(6,t,n,!0)}}a(BC,"setupTimingPattern");function VC(i,e){let t=PC.getPositions(e);for(let n=0;n<t.length;n++){let r=t[n][0],o=t[n][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?i.set(r+s,o+c,!0,!0):i.set(r+s,o+c,!1,!0)}}a(VC,"setupAlignmentPattern");function LC(i,e){let t=i.size,n=fl.getEncodedBits(e),r,o,s;for(let c=0;c<18;c++)r=Math.floor(c/3),o=c%3+t-8-3,s=(n>>c&1)===1,i.set(r,o,s,!0),i.set(o,r,s,!0)}a(LC,"setupVersionInfo");function Cd(i,e,t){let n=i.size,r=TC.getEncodedBits(e,t),o,s;for(o=0;o<15;o++)s=(r>>o&1)===1,o<6?i.set(o,8,s,!0):o<8?i.set(o+1,8,s,!0):i.set(n-15+o,8,s,!0),o<8?i.set(8,n-o-1,s,!0):o<9?i.set(8,15-o-1+1,s,!0):i.set(8,15-o-1,s,!0);i.set(n-8,8,1,!0)}a(Cd,"setupFormatInfo");function HC(i,e){let t=i.size,n=-1,r=t-1,o=7,s=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let f=0;f<2;f++)if(!i.isReserved(r,c-f)){let l=!1;s<e.length&&(l=(e[s]>>>o&1)===1),i.set(r,c-f,l),o--,o===-1&&(s++,o=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}a(HC,"setupData");function UC(i,e,t){let n=new AC;t.forEach(function(f){n.put(f.mode.bit,4),n.put(f.getLength(),MC.getCharCountIndicator(f.mode,i)),f.write(n)});let r=ll.getSymbolTotalCodewords(i),o=Nd.getTotalCodewordsCount(i,e),s=(r-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let c=(s-n.getLengthInBits())/8;for(let f=0;f<c;f++)n.put(f%2?17:236,8);return QC(n,i,e)}a(UC,"createData");function QC(i,e,t){let n=ll.getSymbolTotalCodewords(e),r=Nd.getTotalCodewordsCount(e,t),o=n-r,s=Nd.getBlocksCount(e,t),c=n%s,f=s-c,l=Math.floor(n/s),u=Math.floor(o/s),h=u+1,g=l-u,y=new zC(g),S=0,N=new Array(s),D=new Array(s),z=0,be=new Uint8Array(i.buffer);for(let Ai=0;Ai<s;Ai++){let jl=Ai<f?u:h;N[Ai]=be.slice(S,S+jl),D[Ai]=y.encode(N[Ai]),S+=jl,z=Math.max(z,jl)}let _=new Uint8Array(n),Q=0,Re,Kt;for(Re=0;Re<z;Re++)for(Kt=0;Kt<s;Kt++)Re<N[Kt].length&&(_[Q++]=N[Kt][Re]);for(Re=0;Re<g;Re++)for(Kt=0;Kt<s;Kt++)_[Q++]=D[Kt][Re];return _}a(QC,"createCodewords");function GC(i,e,t,n){let r;if(Array.isArray(i))r=Sd.fromArray(i);else if(typeof i=="string"){let l=e;if(!l){let u=Sd.rawSplit(i);l=fl.getBestVersionForData(u,t)}r=Sd.fromString(i,l||40)}else throw new Error("Invalid data");let o=fl.getBestVersionForData(r,t);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
|
|
6
6
|
The chosen QR Code version cannot contain this amount of data.
|
|
7
|
-
Minimum version required to store current data is: `+
|
|
8
|
-
`);let s=xC(e,t,r),c=op.getSymbolSize(e),f=new yC(c);return RC(f,e),OC(f),FC(f,e),ld(f,t,0),e>=7&&DC(f,e),AC(f,s),isNaN(n)&&(n=dd.getBestMask(f,ld.bind(null,f,t))),dd.applyMask(n,f),ld(f,t,n),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}a(PC,"createSymbol");ig.create=a(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=fd.M,r,i;return typeof t<"u"&&(n=fd.from(t.errorCorrectionLevel,fd.M),r=tp.from(t.version),i=dd.from(t.maskPattern),t.toSJISFunc&&op.setToSJISFunction(t.toSJISFunc)),PC(e,r,n,i)},"create")});var md=F((p2,rg)=>{"use strict";var EC=He("util"),ng=He("stream"),Xo=rg.exports=function(){ng.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};EC.inherits(Xo,ng);Xo.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e}),process.nextTick((function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}).bind(this))};Xo.prototype.write=function(o,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let t;return Buffer.isBuffer(o)?t=o:t=Buffer.from(o,e||this._encoding),this._buffers.push(t),this._buffered+=t.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};Xo.prototype.end=function(o,e){o&&this.write(o,e),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};Xo.prototype.destroySoon=Xo.prototype.end;Xo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Xo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Xo.prototype._processReadAllowingLess=function(o){this._reads.shift();let e=this._buffers[0];e.length>o.length?(this._buffered-=o.length,this._buffers[0]=e.slice(o.length),o.func.call(this,e.slice(0,o.length))):(this._buffered-=e.length,this._buffers.shift(),o.func.call(this,e))};Xo.prototype._processRead=function(o){this._reads.shift();let e=0,t=0,n=Buffer.alloc(o.length);for(;e<o.length;){let r=this._buffers[t++],i=Math.min(r.length,o.length-e);r.copy(n,e,0,i),e+=i,i!==r.length&&(this._buffers[--t]=r.slice(i))}t>0&&this._buffers.splice(0,t),this._buffered-=o.length,o.func.call(this,n)};Xo.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let o=this._reads[0];if(o.allowLess)this._processReadAllowingLess(o);else if(this._buffered>=o.length)this._processRead(o);else break}this._buffers&&!this.writable&&this._end()}catch(o){this.emit("error",o)}}});var vd=F(gd=>{"use strict";var Kn=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];gd.getImagePasses=function(o,e){let t=[],n=o%8,r=e%8,i=(o-n)/8,s=(e-r)/8;for(let c=0;c<Kn.length;c++){let f=Kn[c],p=i*f.x.length,u=s*f.y.length;for(let h=0;h<f.x.length&&f.x[h]<n;h++)p++;for(let h=0;h<f.y.length&&f.y[h]<r;h++)u++;p>0&&u>0&&t.push({width:p,height:u,index:c})}return t};gd.getInterlaceIterator=function(o){return function(e,t,n){let r=e%Kn[n].x.length,i=(e-r)/Kn[n].x.length*8+Kn[n].x[r],s=t%Kn[n].y.length,c=(t-s)/Kn[n].y.length*8+Kn[n].y[s];return i*4+c*o*4}}});var yd=F((d2,sg)=>{"use strict";sg.exports=a(function(e,t,n){let r=e+t-n,i=Math.abs(r-e),s=Math.abs(r-t),c=Math.abs(r-n);return i<=s&&i<=c?e:s<=c?t:n},"paethPredictor")});var Sd=F((h2,cg)=>{"use strict";var zC=vd(),TC=yd();function ag(o,e,t){let n=o*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}a(ag,"getByteWidth");var pa=cg.exports=function(o,e){let t=o.width,n=o.height,r=o.interlace,i=o.bpp,s=o.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],r){let c=zC.getImagePasses(t,n);for(let f=0;f<c.length;f++)this._images.push({byteWidth:ag(c[f].width,i,s),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:ag(t,i,s),height:n,lineIndex:0});s===8?this._xComparison=i:s===16?this._xComparison=i*2:this._xComparison=1};pa.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};pa.prototype._unFilterType1=function(o,e,t){let n=this._xComparison,r=n-1;for(let i=0;i<t;i++){let s=o[1+i],c=i>r?e[i-n]:0;e[i]=s+c}};pa.prototype._unFilterType2=function(o,e,t){let n=this._lastLine;for(let r=0;r<t;r++){let i=o[1+r],s=n?n[r]:0;e[r]=i+s}};pa.prototype._unFilterType3=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let s=0;s<t;s++){let c=o[1+s],f=i?i[s]:0,p=s>r?e[s-n]:0,u=Math.floor((p+f)/2);e[s]=c+u}};pa.prototype._unFilterType4=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let s=0;s<t;s++){let c=o[1+s],f=i?i[s]:0,p=s>r?e[s-n]:0,u=s>r&&i?i[s-n]:0,h=TC(p,f,u);e[s]=c+h}};pa.prototype._reverseFilterLine=function(o){let e=o[0],t,n=this._images[this._imageIndex],r=n.byteWidth;if(e===0)t=o.slice(1,r+1);else switch(t=Buffer.alloc(r),e){case 1:this._unFilterType1(o,t,r);break;case 2:this._unFilterType2(o,t,r);break;case 3:this._unFilterType3(o,t,r);break;case 4:this._unFilterType4(o,t,r);break;default:throw new Error("Unrecognised filter type - "+e)}this.write(t),n.lineIndex++,n.lineIndex>=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=t,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var lg=F((g2,pg)=>{"use strict";var MC=He("util"),fg=md(),jC=Sd(),BC=pg.exports=function(o){fg.call(this);let e=[],t=this;this._filter=new jC(o,{read:this.read.bind(this),write:a(function(n){e.push(n)},"write"),complete:a(function(){t.emit("complete",Buffer.concat(e))},"complete")}),this._filter.start()};MC.inherits(BC,fg)});var la=F((y2,dg)=>{"use strict";dg.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var Nd=F((S2,ug)=>{"use strict";var Cd=[];(function(){for(let o=0;o<256;o++){let e=o;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Cd[o]=e}})();var bd=ug.exports=function(){this._crc=-1};bd.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=Cd[(this._crc^o[e])&255]^this._crc>>>8;return!0};bd.prototype.crc32=function(){return this._crc^-1};bd.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=Cd[(e^o[t])&255]^e>>>8;return e^-1}});var Id=F((C2,hg)=>{"use strict";var Ye=la(),VC=Nd(),$e=hg.exports=function(o,e){this._options=o,o.checkCRC=o.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[Ye.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[Ye.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[Ye.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[Ye.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[Ye.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[Ye.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};$e.prototype.start=function(){this.read(Ye.PNG_SIGNATURE.length,this._parseSignature.bind(this))};$e.prototype._parseSignature=function(o){let e=Ye.PNG_SIGNATURE;for(let t=0;t<e.length;t++)if(o[t]!==e[t]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._parseChunkBegin=function(o){let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n="";for(let i=4;i<8;i++)n+=String.fromCharCode(o[i]);let r=!!(o[4]&32);if(!this._hasIHDR&&t!==Ye.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new VC,this._crc.write(Buffer.from(n)),this._chunks[t])return this._chunks[t](e);if(!r){this.error(new Error("Unsupported critical chunk type "+n));return}this.read(e+4,this._skipChunk.bind(this))};$e.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};$e.prototype._parseChunkEnd=function(o){let e=o.readInt32BE(0),t=this._crc.crc32();if(this._options.checkCRC&&t!==e){this.error(new Error("Crc error - "+e+" - "+t));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._handleIHDR=function(o){this.read(o,this._parseIHDR.bind(this))};$e.prototype._parseIHDR=function(o){this._crc.write(o);let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n=o[8],r=o[9],i=o[10],s=o[11],c=o[12];if(n!==8&&n!==4&&n!==2&&n!==1&&n!==16){this.error(new Error("Unsupported bit depth "+n));return}if(!(r in Ye.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(i!==0){this.error(new Error("Unsupported compression method"));return}if(s!==0){this.error(new Error("Unsupported filter method"));return}if(c!==0&&c!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=r;let f=Ye.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:t,depth:n,interlace:!!c,palette:!!(r&Ye.COLORTYPE_PALETTE),color:!!(r&Ye.COLORTYPE_COLOR),alpha:!!(r&Ye.COLORTYPE_ALPHA),bpp:f,colorType:r}),this._handleChunkEnd()};$e.prototype._handlePLTE=function(o){this.read(o,this._parsePLTE.bind(this))};$e.prototype._parsePLTE=function(o){this._crc.write(o);let e=Math.floor(o.length/3);for(let t=0;t<e;t++)this._palette.push([o[t*3],o[t*3+1],o[t*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};$e.prototype._handleTRNS=function(o){this.simpleTransparency(),this.read(o,this._parseTRNS.bind(this))};$e.prototype._parseTRNS=function(o){if(this._crc.write(o),this._colorType===Ye.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(o.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let e=0;e<o.length;e++)this._palette[e][3]=o[e];this.palette(this._palette)}this._colorType===Ye.COLORTYPE_GRAYSCALE&&this.transColor([o.readUInt16BE(0)]),this._colorType===Ye.COLORTYPE_COLOR&&this.transColor([o.readUInt16BE(0),o.readUInt16BE(2),o.readUInt16BE(4)]),this._handleChunkEnd()};$e.prototype._handleGAMA=function(o){this.read(o,this._parseGAMA.bind(this))};$e.prototype._parseGAMA=function(o){this._crc.write(o),this.gamma(o.readUInt32BE(0)/Ye.GAMMA_DIVISION),this._handleChunkEnd()};$e.prototype._handleIDAT=function(o){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-o,this._parseIDAT.bind(this,o))};$e.prototype._parseIDAT=function(o,e){if(this._crc.write(e),this._colorType===Ye.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(e);let t=o-e.length;t>0?this._handleIDAT(t):this._handleChunkEnd()};$e.prototype._handleIEND=function(o){this.read(o,this._parseIEND.bind(this))};$e.prototype._parseIEND=function(o){this._crc.write(o),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var Rd=F(gg=>{"use strict";var mg=vd(),LC=[function(){},function(o,e,t,n){if(n===e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=255},function(o,e,t,n){if(n+1>=e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=e[n+1]},function(o,e,t,n){if(n+2>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=255},function(o,e,t,n){if(n+3>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=e[n+3]}],HC=[function(){},function(o,e,t,n){let r=e[0];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=n},function(o,e,t){let n=e[0];o[t]=n,o[t+1]=n,o[t+2]=n,o[t+3]=e[1]},function(o,e,t,n){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=n},function(o,e,t){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=e[3]}];function UC(o,e){let t=[],n=0;function r(){if(n===o.length)throw new Error("Ran out of data");let i=o[n];n++;let s,c,f,p,u,h,v,y;switch(e){default:throw new Error("unrecognised depth");case 16:v=o[n],n++,t.push((i<<8)+v);break;case 4:v=i&15,y=i>>4,t.push(y,v);break;case 2:u=i&3,h=i>>2&3,v=i>>4&3,y=i>>6&3,t.push(y,v,h,u);break;case 1:s=i&1,c=i>>1&1,f=i>>2&1,p=i>>3&1,u=i>>4&1,h=i>>5&1,v=i>>6&1,y=i>>7&1,t.push(y,v,h,u,p,f,c,s);break}}return a(r,"split"),{get:a(function(i){for(;t.length<i;)r();let s=t.slice(0,i);return t=t.slice(i),s},"get"),resetAfterLine:a(function(){t.length=0},"resetAfterLine"),end:a(function(){if(n!==o.length)throw new Error("extra data found")},"end")}}a(UC,"bitRetriever");function QC(o,e,t,n,r,i){let s=o.width,c=o.height,f=o.index;for(let p=0;p<c;p++)for(let u=0;u<s;u++){let h=t(u,p,f);LC[n](e,r,h,i),i+=n}return i}a(QC,"mapImage8Bit");function GC(o,e,t,n,r,i){let s=o.width,c=o.height,f=o.index;for(let p=0;p<c;p++){for(let u=0;u<s;u++){let h=r.get(n),v=t(u,p,f);HC[n](e,h,v,i)}r.resetAfterLine()}}a(GC,"mapImageCustomBit");gg.dataToBitMap=function(o,e){let t=e.width,n=e.height,r=e.depth,i=e.bpp,s=e.interlace,c;r!==8&&(c=UC(o,r));let f;r<=8?f=Buffer.alloc(t*n*4):f=new Uint16Array(t*n*4);let p=Math.pow(2,r)-1,u=0,h,v;if(s)h=mg.getImagePasses(t,n),v=mg.getInterlaceIterator(t,n);else{let y=0;v=a(function(){let S=y;return y+=4,S},"getPxPos"),h=[{width:t,height:n}]}for(let y=0;y<h.length;y++)r===8?u=QC(h[y],f,v,i,o,u):GC(h[y],f,v,i,c,p);if(r===8){if(u!==o.length)throw new Error("extra data found")}else c.end();return f}});var Od=F((I2,vg)=>{"use strict";function qC(o,e,t,n,r){let i=0;for(let s=0;s<n;s++)for(let c=0;c<t;c++){let f=r[o[i]];if(!f)throw new Error("index "+o[i]+" not in palette");for(let p=0;p<4;p++)e[i+p]=f[p];i+=4}}a(qC,"dePalette");function ZC(o,e,t,n,r){let i=0;for(let s=0;s<n;s++)for(let c=0;c<t;c++){let f=!1;if(r.length===1?r[0]===o[i]&&(f=!0):r[0]===o[i]&&r[1]===o[i+1]&&r[2]===o[i+2]&&(f=!0),f)for(let p=0;p<4;p++)e[i+p]=0;i+=4}}a(ZC,"replaceTransparentColor");function YC(o,e,t,n,r){let i=255,s=Math.pow(2,r)-1,c=0;for(let f=0;f<n;f++)for(let p=0;p<t;p++){for(let u=0;u<4;u++)e[c+u]=Math.floor(o[c+u]*i/s+.5);c+=4}}a(YC,"scaleDepth");vg.exports=function(o,e){let t=e.depth,n=e.width,r=e.height,i=e.colorType,s=e.transColor,c=e.palette,f=o;return i===3?qC(o,f,n,r,c):(s&&ZC(o,f,n,r,s),t!==8&&(t===16&&(f=Buffer.alloc(n*r*4)),YC(o,f,n,r,t))),f}});var Cg=F((O2,Sg)=>{"use strict";var XC=He("util"),Fd=He("zlib"),yg=md(),JC=lg(),WC=Id(),_C=Rd(),KC=Od(),Ri=Sg.exports=function(o){yg.call(this),this._parser=new WC(o,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=o,this.writable=!0,this._parser.start()};XC.inherits(Ri,yg);Ri.prototype._handleError=function(o){this.emit("error",o),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};Ri.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Fd.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,n=Math.max(t,Fd.Z_MIN_CHUNK);this._inflate=Fd.createInflate({chunkSize:n});let r=t,i=this.emit.bind(this,"error");this._inflate.on("error",function(c){r&&i(c)}),this._filter.on("complete",this._complete.bind(this));let s=this._filter.write.bind(this._filter);this._inflate.on("data",function(c){r&&(c.length>r&&(c=c.slice(0,r)),r-=c.length,s(c))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(o)};Ri.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new JC(this._bitmapInfo)};Ri.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};Ri.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};Ri.prototype._simpleTransparency=function(){this._metaData.alpha=!0};Ri.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};Ri.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};Ri.prototype._complete=function(o){if(this.errord)return;let e;try{let t=_C.dataToBitMap(o,this._bitmapInfo);e=KC(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Ng=F((F2,bg)=>{"use strict";var go=la();bg.exports=function(o,e,t,n){let r=[go.COLORTYPE_COLOR_ALPHA,go.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let S=(function(){let N=new ArrayBuffer(2);return new DataView(N).setInt16(0,256,!0),new Int16Array(N)[0]!==256})();if(n.bitDepth===8||n.bitDepth===16&&S)return o}let i=n.bitDepth!==16?o:new Uint16Array(o.buffer),s=255,c=go.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let f=go.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(s=65535,f*=2);let p=Buffer.alloc(e*t*f),u=0,h=0,v=n.bgColor||{};v.red===void 0&&(v.red=s),v.green===void 0&&(v.green=s),v.blue===void 0&&(v.blue=s);function y(){let S,N,A,z=s;switch(n.inputColorType){case go.COLORTYPE_COLOR_ALPHA:z=i[u+3],S=i[u],N=i[u+1],A=i[u+2];break;case go.COLORTYPE_COLOR:S=i[u],N=i[u+1],A=i[u+2];break;case go.COLORTYPE_ALPHA:z=i[u+1],S=i[u],N=S,A=S;break;case go.COLORTYPE_GRAYSCALE:S=i[u],N=S,A=S;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(r||(z/=s,S=Math.min(Math.max(Math.round((1-z)*v.red+z*S),0),s),N=Math.min(Math.max(Math.round((1-z)*v.green+z*N),0),s),A=Math.min(Math.max(Math.round((1-z)*v.blue+z*A),0),s))),{red:S,green:N,blue:A,alpha:z}}a(y,"getRGBA");for(let S=0;S<t;S++)for(let N=0;N<e;N++){let A=y(i,u);switch(n.colorType){case go.COLORTYPE_COLOR_ALPHA:case go.COLORTYPE_COLOR:n.bitDepth===8?(p[h]=A.red,p[h+1]=A.green,p[h+2]=A.blue,r&&(p[h+3]=A.alpha)):(p.writeUInt16BE(A.red,h),p.writeUInt16BE(A.green,h+2),p.writeUInt16BE(A.blue,h+4),r&&p.writeUInt16BE(A.alpha,h+6));break;case go.COLORTYPE_ALPHA:case go.COLORTYPE_GRAYSCALE:{let z=(A.red+A.green+A.blue)/3;n.bitDepth===8?(p[h]=z,r&&(p[h+1]=A.alpha)):(p.writeUInt16BE(z,h),r&&p.writeUInt16BE(A.alpha,h+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}u+=c,h+=f}return p}});var Og=F((A2,Rg)=>{"use strict";var Ig=yd();function kC(o,e,t,n,r){for(let i=0;i<t;i++)n[r+i]=o[e+i]}a(kC,"filterNone");function $C(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++)n+=Math.abs(o[i]);return n}a($C,"filterSumNone");function eb(o,e,t,n,r,i){for(let s=0;s<t;s++){let c=s>=i?o[e+s-i]:0,f=o[e+s]-c;n[r+s]=f}}a(eb,"filterSub");function tb(o,e,t,n){let r=0;for(let i=0;i<t;i++){let s=i>=n?o[e+i-n]:0,c=o[e+i]-s;r+=Math.abs(c)}return r}a(tb,"filterSumSub");function ob(o,e,t,n,r){for(let i=0;i<t;i++){let s=e>0?o[e+i-t]:0,c=o[e+i]-s;n[r+i]=c}}a(ob,"filterUp");function ib(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++){let s=e>0?o[i-t]:0,c=o[i]-s;n+=Math.abs(c)}return n}a(ib,"filterSumUp");function nb(o,e,t,n,r,i){for(let s=0;s<t;s++){let c=s>=i?o[e+s-i]:0,f=e>0?o[e+s-t]:0,p=o[e+s]-(c+f>>1);n[r+s]=p}}a(nb,"filterAvg");function rb(o,e,t,n){let r=0;for(let i=0;i<t;i++){let s=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,f=o[e+i]-(s+c>>1);r+=Math.abs(f)}return r}a(rb,"filterSumAvg");function sb(o,e,t,n,r,i){for(let s=0;s<t;s++){let c=s>=i?o[e+s-i]:0,f=e>0?o[e+s-t]:0,p=e>0&&s>=i?o[e+s-(t+i)]:0,u=o[e+s]-Ig(c,f,p);n[r+s]=u}}a(sb,"filterPaeth");function ab(o,e,t,n){let r=0;for(let i=0;i<t;i++){let s=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,f=e>0&&i>=n?o[e+i-(t+n)]:0,p=o[e+i]-Ig(s,c,f);r+=Math.abs(p)}return r}a(ab,"filterSumPaeth");var cb={0:kC,1:eb,2:ob,3:nb,4:sb},fb={0:$C,1:tb,2:ib,3:rb,4:ab};Rg.exports=function(o,e,t,n,r){let i;if(!("filterType"in n)||n.filterType===-1)i=[0,1,2,3,4];else if(typeof n.filterType=="number")i=[n.filterType];else throw new Error("unrecognised filter types");n.bitDepth===16&&(r*=2);let s=e*r,c=0,f=0,p=Buffer.alloc((s+1)*t),u=i[0];for(let h=0;h<t;h++){if(i.length>1){let v=1/0;for(let y=0;y<i.length;y++){let S=fb[i[y]](o,f,s,r);S<v&&(u=i[y],v=S)}}p[c]=u,c++,cb[u](o,f,s,p,c,r),c+=s,f+=s}return p}});var Dd=F((w2,Fg)=>{"use strict";var At=la(),pb=Nd(),lb=Ng(),db=Og(),ub=He("zlib"),kn=Fg.exports=function(o){if(this._options=o,o.deflateChunkSize=o.deflateChunkSize||32*1024,o.deflateLevel=o.deflateLevel!=null?o.deflateLevel:9,o.deflateStrategy=o.deflateStrategy!=null?o.deflateStrategy:3,o.inputHasAlpha=o.inputHasAlpha!=null?o.inputHasAlpha:!0,o.deflateFactory=o.deflateFactory||ub.createDeflate,o.bitDepth=o.bitDepth||8,o.colorType=typeof o.colorType=="number"?o.colorType:At.COLORTYPE_COLOR_ALPHA,o.inputColorType=typeof o.inputColorType=="number"?o.inputColorType:At.COLORTYPE_COLOR_ALPHA,[At.COLORTYPE_GRAYSCALE,At.COLORTYPE_COLOR,At.COLORTYPE_COLOR_ALPHA,At.COLORTYPE_ALPHA].indexOf(o.colorType)===-1)throw new Error("option color type:"+o.colorType+" is not supported at present");if([At.COLORTYPE_GRAYSCALE,At.COLORTYPE_COLOR,At.COLORTYPE_COLOR_ALPHA,At.COLORTYPE_ALPHA].indexOf(o.inputColorType)===-1)throw new Error("option input color type:"+o.inputColorType+" is not supported at present");if(o.bitDepth!==8&&o.bitDepth!==16)throw new Error("option bit depth:"+o.bitDepth+" is not supported at present")};kn.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};kn.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};kn.prototype.filterData=function(o,e,t){let n=lb(o,e,t,this._options),r=At.COLORTYPE_TO_BPP_MAP[this._options.colorType];return db(n,e,t,this._options,r)};kn.prototype._packChunk=function(o,e){let t=e?e.length:0,n=Buffer.alloc(t+12);return n.writeUInt32BE(t,0),n.writeUInt32BE(o,4),e&&e.copy(n,8),n.writeInt32BE(pb.crc32(n.slice(4,n.length-4)),n.length-4),n};kn.prototype.packGAMA=function(o){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(o*At.GAMMA_DIVISION),0),this._packChunk(At.TYPE_gAMA,e)};kn.prototype.packIHDR=function(o,e){let t=Buffer.alloc(13);return t.writeUInt32BE(o,0),t.writeUInt32BE(e,4),t[8]=this._options.bitDepth,t[9]=this._options.colorType,t[10]=0,t[11]=0,t[12]=0,this._packChunk(At.TYPE_IHDR,t)};kn.prototype.packIDAT=function(o){return this._packChunk(At.TYPE_IDAT,o)};kn.prototype.packIEND=function(){return this._packChunk(At.TYPE_IEND,null)}});var wg=F((P2,xg)=>{"use strict";var hb=He("util"),Dg=He("stream"),mb=la(),gb=Dd(),Ag=xg.exports=function(o){Dg.call(this);let e=o||{};this._packer=new gb(e),this._deflate=this._packer.createDeflate(),this.readable=!0};hb.inherits(Ag,Dg);Ag.prototype.pack=function(o,e,t,n){this.emit("data",Buffer.from(mb.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),n&&this.emit("data",this._packer.packGAMA(n));let r=this._packer.filterData(o,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(i){this.emit("data",this._packer.packIDAT(i))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(r)}});var jg=F((Nc,Mg)=>{"use strict";var Pg=He("assert").ok,da=He("zlib"),vb=He("util"),Eg=He("buffer").kMaxLength;function Vr(o){if(!(this instanceof Vr))return new Vr(o);o&&o.chunkSize<da.Z_MIN_CHUNK&&(o.chunkSize=da.Z_MIN_CHUNK),da.Inflate.call(this,o),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,o&&o.maxLength!=null&&(this._maxLength=o.maxLength)}a(Vr,"Inflate");function yb(o){return new Vr(o)}a(yb,"createInflate");function zg(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}a(zg,"_close");Vr.prototype._processChunk=function(o,e,t){if(typeof t=="function")return da.Inflate._processChunk.call(this,o,e,t);let n=this,r=o&&o.length,i=this._chunkSize-this._offset,s=this._maxLength,c=0,f=[],p=0,u;this.on("error",function(S){u=S});function h(S,N){if(n._hadError)return;let A=i-N;if(Pg(A>=0,"have should not go down"),A>0){let z=n._buffer.slice(n._offset,n._offset+A);if(n._offset+=A,z.length>s&&(z=z.slice(0,s)),f.push(z),p+=z.length,s-=z.length,s===0)return!1}return(N===0||n._offset>=n._chunkSize)&&(i=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),N===0?(c+=r-S,r=S,!0):!1}a(h,"handleChunk"),Pg(this._handle,"zlib binding closed");let v;do v=this._handle.writeSync(e,o,c,r,this._buffer,this._offset,i),v=v||this._writeState;while(!this._hadError&&h(v[0],v[1]));if(this._hadError)throw u;if(p>=Eg)throw zg(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Eg.toString(16)+" bytes");let y=Buffer.concat(f,p);return zg(this),y};vb.inherits(Vr,da.Inflate);function Sb(o,e){if(typeof e=="string"&&(e=Buffer.from(e)),!(e instanceof Buffer))throw new TypeError("Not a string or buffer");let t=o._finishFlushFlag;return t==null&&(t=da.Z_FINISH),o._processChunk(e,t)}a(Sb,"zlibBufferSync");function Tg(o,e){return Sb(new Vr(e),o)}a(Tg,"inflateSync");Mg.exports=Nc=Tg;Nc.Inflate=Vr;Nc.createInflate=yb;Nc.inflateSync=Tg});var Ad=F((z2,Vg)=>{"use strict";var Bg=Vg.exports=function(o){this._buffer=o,this._reads=[]};Bg.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};Bg.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let o=this._reads[0];if(this._buffer.length&&(this._buffer.length>=o.length||o.allowLess)){this._reads.shift();let e=this._buffer;this._buffer=e.slice(o.length),o.func.call(this,e.slice(0,o.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var Hg=F(Lg=>{"use strict";var Cb=Ad(),bb=Sd();Lg.process=function(o,e){let t=[],n=new Cb(o);return new bb(e,{read:n.read.bind(n),write:a(function(i){t.push(i)},"write"),complete:a(function(){},"complete")}).start(),n.process(),Buffer.concat(t)}});var qg=F((j2,Gg)=>{"use strict";var Ug=!0,Qg=He("zlib"),Nb=jg();Qg.deflateSync||(Ug=!1);var Ib=Ad(),Rb=Hg(),Ob=Id(),Fb=Rd(),Db=Od();Gg.exports=function(o,e){if(!Ug)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t;function n(Q){t=Q}a(n,"handleError");let r;function i(Q){r=Q}a(i,"handleMetaData");function s(Q){r.transColor=Q}a(s,"handleTransColor");function c(Q){r.palette=Q}a(c,"handlePalette");function f(){r.alpha=!0}a(f,"handleSimpleTransparency");let p;function u(Q){p=Q}a(u,"handleGamma");let h=[];function v(Q){h.push(Q)}a(v,"handleInflateData");let y=new Ib(o);if(new Ob(e,{read:y.read.bind(y),error:n,metadata:i,gamma:u,palette:c,transColor:s,inflateData:v,simpleTransparency:f}).start(),y.process(),t)throw t;let N=Buffer.concat(h);h.length=0;let A;if(r.interlace)A=Qg.inflateSync(N);else{let Ie=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;A=Nb(N,{chunkSize:Ie,maxLength:Ie})}if(N=null,!A||!A.length)throw new Error("bad png - invalid inflate data response");let z=Rb.process(A,r);N=null;let Ce=Fb.dataToBitMap(z,r);z=null;let _=Db(Ce,r);return r.data=_,r.gamma=p||0,r}});var Jg=F((V2,Xg)=>{"use strict";var Zg=!0,Yg=He("zlib");Yg.deflateSync||(Zg=!1);var Ab=la(),xb=Dd();Xg.exports=function(o,e){if(!Zg)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t=e||{},n=new xb(t),r=[];r.push(Buffer.from(Ab.PNG_SIGNATURE)),r.push(n.packIHDR(o.width,o.height)),o.gamma&&r.push(n.packGAMA(o.gamma));let i=n.filterData(o.data,o.width,o.height),s=Yg.deflateSync(i,n.getDeflateOptions());if(i=null,!s||!s.length)throw new Error("bad png - invalid compressed data response");return r.push(n.packIDAT(s)),r.push(n.packIEND()),Buffer.concat(r)}});var Wg=F(xd=>{"use strict";var wb=qg(),Pb=Jg();xd.read=function(o,e){return wb(o,e||{})};xd.write=function(o,e){return Pb(o,e)}});var kg=F(Kg=>{"use strict";var Eb=He("util"),_g=He("stream"),zb=Cg(),Tb=wg(),Mb=Wg(),Mt=Kg.PNG=function(o){_g.call(this),o=o||{},this.width=o.width|0,this.height=o.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,o.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new zb(o),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",(function(e){this.data=e,this.emit("parsed",e)}).bind(this)),this._packer=new Tb(o),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};Eb.inherits(Mt,_g);Mt.sync=Mb;Mt.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick((function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}).bind(this)),this)};Mt.prototype.parse=function(o,e){if(e){let t,n;t=(function(r){this.removeListener("error",n),this.data=r,e(null,this)}).bind(this),n=(function(r){this.removeListener("parsed",t),e(r,null)}).bind(this),this.once("parsed",t),this.once("error",n)}return this.end(o),this};Mt.prototype.write=function(o){return this._parser.write(o),!0};Mt.prototype.end=function(o){this._parser.end(o)};Mt.prototype._metadata=function(o){this.width=o.width,this.height=o.height,this.emit("metadata",o)};Mt.prototype._gamma=function(o){this.gamma=o};Mt.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};Mt.bitblt=function(o,e,t,n,r,i,s,c){if(t|=0,n|=0,r|=0,i|=0,s|=0,c|=0,t>o.width||n>o.height||t+r>o.width||n+i>o.height)throw new Error("bitblt reading outside image");if(s>e.width||c>e.height||s+r>e.width||c+i>e.height)throw new Error("bitblt writing outside image");for(let f=0;f<i;f++)o.data.copy(e.data,(c+f)*e.width+s<<2,(n+f)*o.width+t<<2,(n+f)*o.width+t+r<<2)};Mt.prototype.bitblt=function(o,e,t,n,r,i,s){return Mt.bitblt(this,o,e,t,n,r,i,s),this};Mt.adjustGamma=function(o){if(o.gamma){for(let e=0;e<o.height;e++)for(let t=0;t<o.width;t++){let n=o.width*e+t<<2;for(let r=0;r<3;r++){let i=o.data[n+r]/255;i=Math.pow(i,1/2.2/o.gamma),o.data[n+r]=Math.round(i*255)}}o.gamma=0}};Mt.prototype.adjustGamma=function(){Mt.adjustGamma(this)}});var Ic=F(Lr=>{"use strict";function $g(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let e=o.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+o);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}a($g,"hex2rgba");Lr.getOptions=a(function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:n,scale:n?4:r,margin:t,color:{dark:$g(e.color.dark||"#000000ff"),light:$g(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");Lr.getScale=a(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");Lr.getImageWidth=a(function(e,t){let n=Lr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");Lr.qrToImageData=a(function(e,t,n){let r=t.modules.size,i=t.modules.data,s=Lr.getScale(r,n),c=Math.floor((r+n.margin*2)*s),f=n.margin*s,p=[n.color.light,n.color.dark];for(let u=0;u<c;u++)for(let h=0;h<c;h++){let v=(u*c+h)*4,y=n.color.light;if(u>=f&&h>=f&&u<c-f&&h<c-f){let S=Math.floor((u-f)/s),N=Math.floor((h-f)/s);y=p[i[S*r+N]?1:0]}e[v++]=y.r,e[v++]=y.g,e[v++]=y.b,e[v]=y.a}},"qrToImageData")});var ev=F(Oi=>{"use strict";var jb=He("fs"),Bb=kg().PNG,wd=Ic();Oi.render=a(function(e,t){let n=wd.getOptions(t),r=n.rendererOpts,i=wd.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let s=new Bb(r);return wd.qrToImageData(s.data,e,n),s},"render");Oi.renderToDataURL=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),Oi.renderToBuffer(e,t,function(r,i){r&&n(r);let s="data:image/png;base64,";s+=i.toString("base64"),n(null,s)})},"renderToDataURL");Oi.renderToBuffer=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=Oi.render(e,t),i=[];r.on("error",n),r.on("data",function(s){i.push(s)}),r.on("end",function(){n(null,Buffer.concat(i))}),r.pack()},"renderToBuffer");Oi.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=!1,s=a((...f)=>{i||(i=!0,r.apply(null,f))},"done"),c=jb.createWriteStream(e);c.on("error",s),c.on("close",s),Oi.renderToFileStream(c,t,n)},"renderToFile");Oi.renderToFileStream=a(function(e,t,n){Oi.render(t,n).pack().pipe(e)},"renderToFileStream")});var tv=F(ip=>{"use strict";var Vb=Ic(),Lb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},Hb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function Ub(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}a(Ub,"getBlockChar");ip.render=function(o,e,t){let n=Vb.getOptions(e),r=Lb;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=Hb);let i=o.modules.size,s=o.modules.data,c="",f=Array(i+n.margin*2+1).join(r.WW);f=Array(n.margin/2+1).join(f+`
|
|
9
|
-
`);let
|
|
10
|
-
`}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};
|
|
11
|
-
`;for(let u=0;u<n;++u){c+=s;for(let h=0;h<n;h++)c+=r[u*n+h]?
|
|
7
|
+
Minimum version required to store current data is: `+o+`.
|
|
8
|
+
`);let s=UC(e,t,r),c=ll.getSymbolSize(e),f=new wC(c);return jC(f,e),BC(f),VC(f,e),Cd(f,t,0),e>=7&&LC(f,e),HC(f,s),isNaN(n)&&(n=bd.getBestMask(f,Cd.bind(null,f,t))),bd.applyMask(n,f),Cd(f,t,n),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}a(GC,"createSymbol");dg.create=a(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=yd.M,r,o;return typeof t<"u"&&(n=yd.from(t.errorCorrectionLevel,yd.M),r=fl.from(t.version),o=bd.from(t.maskPattern),t.toSJISFunc&&ll.setToSJISFunction(t.toSJISFunc)),GC(e,r,n,o)},"create")});var Rd=F((F2,hg)=>{"use strict";var qC=Ue("util"),ug=Ue("stream"),Wo=hg.exports=function(){ug.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};qC.inherits(Wo,ug);Wo.prototype.read=function(i,e){this._reads.push({length:Math.abs(i),allowLess:i<0,func:e}),process.nextTick((function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}).bind(this))};Wo.prototype.write=function(i,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let t;return Buffer.isBuffer(i)?t=i:t=Buffer.from(i,e||this._encoding),this._buffers.push(t),this._buffered+=t.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};Wo.prototype.end=function(i,e){i&&this.write(i,e),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};Wo.prototype.destroySoon=Wo.prototype.end;Wo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Wo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Wo.prototype._processReadAllowingLess=function(i){this._reads.shift();let e=this._buffers[0];e.length>i.length?(this._buffered-=i.length,this._buffers[0]=e.slice(i.length),i.func.call(this,e.slice(0,i.length))):(this._buffered-=e.length,this._buffers.shift(),i.func.call(this,e))};Wo.prototype._processRead=function(i){this._reads.shift();let e=0,t=0,n=Buffer.alloc(i.length);for(;e<i.length;){let r=this._buffers[t++],o=Math.min(r.length,i.length-e);r.copy(n,e,0,o),e+=o,o!==r.length&&(this._buffers[--t]=r.slice(o))}t>0&&this._buffers.splice(0,t),this._buffered-=i.length,i.func.call(this,n)};Wo.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let i=this._reads[0];if(i.allowLess)this._processReadAllowingLess(i);else if(this._buffered>=i.length)this._processRead(i);else break}this._buffers&&!this.writable&&this._end()}catch(i){this.emit("error",i)}}});var Fd=F(Od=>{"use strict";var sr=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];Od.getImagePasses=function(i,e){let t=[],n=i%8,r=e%8,o=(i-n)/8,s=(e-r)/8;for(let c=0;c<sr.length;c++){let f=sr[c],l=o*f.x.length,u=s*f.y.length;for(let h=0;h<f.x.length&&f.x[h]<n;h++)l++;for(let h=0;h<f.y.length&&f.y[h]<r;h++)u++;l>0&&u>0&&t.push({width:l,height:u,index:c})}return t};Od.getInterlaceIterator=function(i){return function(e,t,n){let r=e%sr[n].x.length,o=(e-r)/sr[n].x.length*8+sr[n].x[r],s=t%sr[n].y.length,c=(t-s)/sr[n].y.length*8+sr[n].y[s];return o*4+c*i*4}}});var xd=F((D2,mg)=>{"use strict";mg.exports=a(function(e,t,n){let r=e+t-n,o=Math.abs(r-e),s=Math.abs(r-t),c=Math.abs(r-n);return o<=s&&o<=c?e:s<=c?t:n},"paethPredictor")});var Dd=F((w2,vg)=>{"use strict";var ZC=Fd(),YC=xd();function gg(i,e,t){let n=i*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}a(gg,"getByteWidth");var ha=vg.exports=function(i,e){let t=i.width,n=i.height,r=i.interlace,o=i.bpp,s=i.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],r){let c=ZC.getImagePasses(t,n);for(let f=0;f<c.length;f++)this._images.push({byteWidth:gg(c[f].width,o,s),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:gg(t,o,s),height:n,lineIndex:0});s===8?this._xComparison=o:s===16?this._xComparison=o*2:this._xComparison=1};ha.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};ha.prototype._unFilterType1=function(i,e,t){let n=this._xComparison,r=n-1;for(let o=0;o<t;o++){let s=i[1+o],c=o>r?e[o-n]:0;e[o]=s+c}};ha.prototype._unFilterType2=function(i,e,t){let n=this._lastLine;for(let r=0;r<t;r++){let o=i[1+r],s=n?n[r]:0;e[r]=o+s}};ha.prototype._unFilterType3=function(i,e,t){let n=this._xComparison,r=n-1,o=this._lastLine;for(let s=0;s<t;s++){let c=i[1+s],f=o?o[s]:0,l=s>r?e[s-n]:0,u=Math.floor((l+f)/2);e[s]=c+u}};ha.prototype._unFilterType4=function(i,e,t){let n=this._xComparison,r=n-1,o=this._lastLine;for(let s=0;s<t;s++){let c=i[1+s],f=o?o[s]:0,l=s>r?e[s-n]:0,u=s>r&&o?o[s-n]:0,h=YC(l,f,u);e[s]=c+h}};ha.prototype._reverseFilterLine=function(i){let e=i[0],t,n=this._images[this._imageIndex],r=n.byteWidth;if(e===0)t=i.slice(1,r+1);else switch(t=Buffer.alloc(r),e){case 1:this._unFilterType1(i,t,r);break;case 2:this._unFilterType2(i,t,r);break;case 3:this._unFilterType3(i,t,r);break;case 4:this._unFilterType4(i,t,r);break;default:throw new Error("Unrecognised filter type - "+e)}this.write(t),n.lineIndex++,n.lineIndex>=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=t,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var Cg=F((E2,Sg)=>{"use strict";var JC=Ue("util"),yg=Rd(),XC=Dd(),WC=Sg.exports=function(i){yg.call(this);let e=[],t=this;this._filter=new XC(i,{read:this.read.bind(this),write:a(function(n){e.push(n)},"write"),complete:a(function(){t.emit("complete",Buffer.concat(e))},"complete")}),this._filter.start()};JC.inherits(WC,yg)});var ma=F((T2,bg)=>{"use strict";bg.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var Pd=F((M2,Ng)=>{"use strict";var Ad=[];(function(){for(let i=0;i<256;i++){let e=i;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Ad[i]=e}})();var wd=Ng.exports=function(){this._crc=-1};wd.prototype.write=function(i){for(let e=0;e<i.length;e++)this._crc=Ad[(this._crc^i[e])&255]^this._crc>>>8;return!0};wd.prototype.crc32=function(){return this._crc^-1};wd.crc32=function(i){let e=-1;for(let t=0;t<i.length;t++)e=Ad[(e^i[t])&255]^e>>>8;return e^-1}});var Ed=F((j2,Ig)=>{"use strict";var Ye=ma(),_C=Pd(),$e=Ig.exports=function(i,e){this._options=i,i.checkCRC=i.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[Ye.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[Ye.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[Ye.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[Ye.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[Ye.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[Ye.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};$e.prototype.start=function(){this.read(Ye.PNG_SIGNATURE.length,this._parseSignature.bind(this))};$e.prototype._parseSignature=function(i){let e=Ye.PNG_SIGNATURE;for(let t=0;t<e.length;t++)if(i[t]!==e[t]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._parseChunkBegin=function(i){let e=i.readUInt32BE(0),t=i.readUInt32BE(4),n="";for(let o=4;o<8;o++)n+=String.fromCharCode(i[o]);let r=!!(i[4]&32);if(!this._hasIHDR&&t!==Ye.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new _C,this._crc.write(Buffer.from(n)),this._chunks[t])return this._chunks[t](e);if(!r){this.error(new Error("Unsupported critical chunk type "+n));return}this.read(e+4,this._skipChunk.bind(this))};$e.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};$e.prototype._parseChunkEnd=function(i){let e=i.readInt32BE(0),t=this._crc.crc32();if(this._options.checkCRC&&t!==e){this.error(new Error("Crc error - "+e+" - "+t));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};$e.prototype._handleIHDR=function(i){this.read(i,this._parseIHDR.bind(this))};$e.prototype._parseIHDR=function(i){this._crc.write(i);let e=i.readUInt32BE(0),t=i.readUInt32BE(4),n=i[8],r=i[9],o=i[10],s=i[11],c=i[12];if(n!==8&&n!==4&&n!==2&&n!==1&&n!==16){this.error(new Error("Unsupported bit depth "+n));return}if(!(r in Ye.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(o!==0){this.error(new Error("Unsupported compression method"));return}if(s!==0){this.error(new Error("Unsupported filter method"));return}if(c!==0&&c!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=r;let f=Ye.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:t,depth:n,interlace:!!c,palette:!!(r&Ye.COLORTYPE_PALETTE),color:!!(r&Ye.COLORTYPE_COLOR),alpha:!!(r&Ye.COLORTYPE_ALPHA),bpp:f,colorType:r}),this._handleChunkEnd()};$e.prototype._handlePLTE=function(i){this.read(i,this._parsePLTE.bind(this))};$e.prototype._parsePLTE=function(i){this._crc.write(i);let e=Math.floor(i.length/3);for(let t=0;t<e;t++)this._palette.push([i[t*3],i[t*3+1],i[t*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};$e.prototype._handleTRNS=function(i){this.simpleTransparency(),this.read(i,this._parseTRNS.bind(this))};$e.prototype._parseTRNS=function(i){if(this._crc.write(i),this._colorType===Ye.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(i.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let e=0;e<i.length;e++)this._palette[e][3]=i[e];this.palette(this._palette)}this._colorType===Ye.COLORTYPE_GRAYSCALE&&this.transColor([i.readUInt16BE(0)]),this._colorType===Ye.COLORTYPE_COLOR&&this.transColor([i.readUInt16BE(0),i.readUInt16BE(2),i.readUInt16BE(4)]),this._handleChunkEnd()};$e.prototype._handleGAMA=function(i){this.read(i,this._parseGAMA.bind(this))};$e.prototype._parseGAMA=function(i){this._crc.write(i),this.gamma(i.readUInt32BE(0)/Ye.GAMMA_DIVISION),this._handleChunkEnd()};$e.prototype._handleIDAT=function(i){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-i,this._parseIDAT.bind(this,i))};$e.prototype._parseIDAT=function(i,e){if(this._crc.write(e),this._colorType===Ye.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(e);let t=i-e.length;t>0?this._handleIDAT(t):this._handleChunkEnd()};$e.prototype._handleIEND=function(i){this.read(i,this._parseIEND.bind(this))};$e.prototype._parseIEND=function(i){this._crc.write(i),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var zd=F(Og=>{"use strict";var Rg=Fd(),KC=[function(){},function(i,e,t,n){if(n===e.length)throw new Error("Ran out of data");let r=e[n];i[t]=r,i[t+1]=r,i[t+2]=r,i[t+3]=255},function(i,e,t,n){if(n+1>=e.length)throw new Error("Ran out of data");let r=e[n];i[t]=r,i[t+1]=r,i[t+2]=r,i[t+3]=e[n+1]},function(i,e,t,n){if(n+2>=e.length)throw new Error("Ran out of data");i[t]=e[n],i[t+1]=e[n+1],i[t+2]=e[n+2],i[t+3]=255},function(i,e,t,n){if(n+3>=e.length)throw new Error("Ran out of data");i[t]=e[n],i[t+1]=e[n+1],i[t+2]=e[n+2],i[t+3]=e[n+3]}],kC=[function(){},function(i,e,t,n){let r=e[0];i[t]=r,i[t+1]=r,i[t+2]=r,i[t+3]=n},function(i,e,t){let n=e[0];i[t]=n,i[t+1]=n,i[t+2]=n,i[t+3]=e[1]},function(i,e,t,n){i[t]=e[0],i[t+1]=e[1],i[t+2]=e[2],i[t+3]=n},function(i,e,t){i[t]=e[0],i[t+1]=e[1],i[t+2]=e[2],i[t+3]=e[3]}];function $C(i,e){let t=[],n=0;function r(){if(n===i.length)throw new Error("Ran out of data");let o=i[n];n++;let s,c,f,l,u,h,g,y;switch(e){default:throw new Error("unrecognised depth");case 16:g=i[n],n++,t.push((o<<8)+g);break;case 4:g=o&15,y=o>>4,t.push(y,g);break;case 2:u=o&3,h=o>>2&3,g=o>>4&3,y=o>>6&3,t.push(y,g,h,u);break;case 1:s=o&1,c=o>>1&1,f=o>>2&1,l=o>>3&1,u=o>>4&1,h=o>>5&1,g=o>>6&1,y=o>>7&1,t.push(y,g,h,u,l,f,c,s);break}}return a(r,"split"),{get:a(function(o){for(;t.length<o;)r();let s=t.slice(0,o);return t=t.slice(o),s},"get"),resetAfterLine:a(function(){t.length=0},"resetAfterLine"),end:a(function(){if(n!==i.length)throw new Error("extra data found")},"end")}}a($C,"bitRetriever");function eb(i,e,t,n,r,o){let s=i.width,c=i.height,f=i.index;for(let l=0;l<c;l++)for(let u=0;u<s;u++){let h=t(u,l,f);KC[n](e,r,h,o),o+=n}return o}a(eb,"mapImage8Bit");function tb(i,e,t,n,r,o){let s=i.width,c=i.height,f=i.index;for(let l=0;l<c;l++){for(let u=0;u<s;u++){let h=r.get(n),g=t(u,l,f);kC[n](e,h,g,o)}r.resetAfterLine()}}a(tb,"mapImageCustomBit");Og.dataToBitMap=function(i,e){let t=e.width,n=e.height,r=e.depth,o=e.bpp,s=e.interlace,c;r!==8&&(c=$C(i,r));let f;r<=8?f=Buffer.alloc(t*n*4):f=new Uint16Array(t*n*4);let l=Math.pow(2,r)-1,u=0,h,g;if(s)h=Rg.getImagePasses(t,n),g=Rg.getInterlaceIterator(t,n);else{let y=0;g=a(function(){let S=y;return y+=4,S},"getPxPos"),h=[{width:t,height:n}]}for(let y=0;y<h.length;y++)r===8?u=eb(h[y],f,g,o,i,u):tb(h[y],f,g,o,c,l);if(r===8){if(u!==i.length)throw new Error("extra data found")}else c.end();return f}});var Td=F((L2,Fg)=>{"use strict";function ob(i,e,t,n,r){let o=0;for(let s=0;s<n;s++)for(let c=0;c<t;c++){let f=r[i[o]];if(!f)throw new Error("index "+i[o]+" not in palette");for(let l=0;l<4;l++)e[o+l]=f[l];o+=4}}a(ob,"dePalette");function ib(i,e,t,n,r){let o=0;for(let s=0;s<n;s++)for(let c=0;c<t;c++){let f=!1;if(r.length===1?r[0]===i[o]&&(f=!0):r[0]===i[o]&&r[1]===i[o+1]&&r[2]===i[o+2]&&(f=!0),f)for(let l=0;l<4;l++)e[o+l]=0;o+=4}}a(ib,"replaceTransparentColor");function nb(i,e,t,n,r){let o=255,s=Math.pow(2,r)-1,c=0;for(let f=0;f<n;f++)for(let l=0;l<t;l++){for(let u=0;u<4;u++)e[c+u]=Math.floor(i[c+u]*o/s+.5);c+=4}}a(nb,"scaleDepth");Fg.exports=function(i,e){let t=e.depth,n=e.width,r=e.height,o=e.colorType,s=e.transColor,c=e.palette,f=i;return o===3?ob(i,f,n,r,c):(s&&ib(i,f,n,r,s),t!==8&&(t===16&&(f=Buffer.alloc(n*r*4)),nb(i,f,n,r,t))),f}});var Ag=F((U2,Dg)=>{"use strict";var rb=Ue("util"),Md=Ue("zlib"),xg=Rd(),sb=Cg(),ab=Ed(),cb=zd(),fb=Td(),Fi=Dg.exports=function(i){xg.call(this),this._parser=new ab(i,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=i,this.writable=!0,this._parser.start()};rb.inherits(Fi,xg);Fi.prototype._handleError=function(i){this.emit("error",i),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};Fi.prototype._inflateData=function(i){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Md.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,n=Math.max(t,Md.Z_MIN_CHUNK);this._inflate=Md.createInflate({chunkSize:n});let r=t,o=this.emit.bind(this,"error");this._inflate.on("error",function(c){r&&o(c)}),this._filter.on("complete",this._complete.bind(this));let s=this._filter.write.bind(this._filter);this._inflate.on("data",function(c){r&&(c.length>r&&(c=c.slice(0,r)),r-=c.length,s(c))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(i)};Fi.prototype._handleMetaData=function(i){this._metaData=i,this._bitmapInfo=Object.create(i),this._filter=new sb(this._bitmapInfo)};Fi.prototype._handleTransColor=function(i){this._bitmapInfo.transColor=i};Fi.prototype._handlePalette=function(i){this._bitmapInfo.palette=i};Fi.prototype._simpleTransparency=function(){this._metaData.alpha=!0};Fi.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};Fi.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};Fi.prototype._complete=function(i){if(this.errord)return;let e;try{let t=cb.dataToBitMap(i,this._bitmapInfo);e=fb(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Pg=F((Q2,wg)=>{"use strict";var vo=ma();wg.exports=function(i,e,t,n){let r=[vo.COLORTYPE_COLOR_ALPHA,vo.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let S=(function(){let N=new ArrayBuffer(2);return new DataView(N).setInt16(0,256,!0),new Int16Array(N)[0]!==256})();if(n.bitDepth===8||n.bitDepth===16&&S)return i}let o=n.bitDepth!==16?i:new Uint16Array(i.buffer),s=255,c=vo.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let f=vo.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(s=65535,f*=2);let l=Buffer.alloc(e*t*f),u=0,h=0,g=n.bgColor||{};g.red===void 0&&(g.red=s),g.green===void 0&&(g.green=s),g.blue===void 0&&(g.blue=s);function y(){let S,N,D,z=s;switch(n.inputColorType){case vo.COLORTYPE_COLOR_ALPHA:z=o[u+3],S=o[u],N=o[u+1],D=o[u+2];break;case vo.COLORTYPE_COLOR:S=o[u],N=o[u+1],D=o[u+2];break;case vo.COLORTYPE_ALPHA:z=o[u+1],S=o[u],N=S,D=S;break;case vo.COLORTYPE_GRAYSCALE:S=o[u],N=S,D=S;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(r||(z/=s,S=Math.min(Math.max(Math.round((1-z)*g.red+z*S),0),s),N=Math.min(Math.max(Math.round((1-z)*g.green+z*N),0),s),D=Math.min(Math.max(Math.round((1-z)*g.blue+z*D),0),s))),{red:S,green:N,blue:D,alpha:z}}a(y,"getRGBA");for(let S=0;S<t;S++)for(let N=0;N<e;N++){let D=y(o,u);switch(n.colorType){case vo.COLORTYPE_COLOR_ALPHA:case vo.COLORTYPE_COLOR:n.bitDepth===8?(l[h]=D.red,l[h+1]=D.green,l[h+2]=D.blue,r&&(l[h+3]=D.alpha)):(l.writeUInt16BE(D.red,h),l.writeUInt16BE(D.green,h+2),l.writeUInt16BE(D.blue,h+4),r&&l.writeUInt16BE(D.alpha,h+6));break;case vo.COLORTYPE_ALPHA:case vo.COLORTYPE_GRAYSCALE:{let z=(D.red+D.green+D.blue)/3;n.bitDepth===8?(l[h]=z,r&&(l[h+1]=D.alpha)):(l.writeUInt16BE(z,h),r&&l.writeUInt16BE(D.alpha,h+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}u+=c,h+=f}return l}});var Tg=F((q2,zg)=>{"use strict";var Eg=xd();function lb(i,e,t,n,r){for(let o=0;o<t;o++)n[r+o]=i[e+o]}a(lb,"filterNone");function pb(i,e,t){let n=0,r=e+t;for(let o=e;o<r;o++)n+=Math.abs(i[o]);return n}a(pb,"filterSumNone");function db(i,e,t,n,r,o){for(let s=0;s<t;s++){let c=s>=o?i[e+s-o]:0,f=i[e+s]-c;n[r+s]=f}}a(db,"filterSub");function ub(i,e,t,n){let r=0;for(let o=0;o<t;o++){let s=o>=n?i[e+o-n]:0,c=i[e+o]-s;r+=Math.abs(c)}return r}a(ub,"filterSumSub");function hb(i,e,t,n,r){for(let o=0;o<t;o++){let s=e>0?i[e+o-t]:0,c=i[e+o]-s;n[r+o]=c}}a(hb,"filterUp");function mb(i,e,t){let n=0,r=e+t;for(let o=e;o<r;o++){let s=e>0?i[o-t]:0,c=i[o]-s;n+=Math.abs(c)}return n}a(mb,"filterSumUp");function gb(i,e,t,n,r,o){for(let s=0;s<t;s++){let c=s>=o?i[e+s-o]:0,f=e>0?i[e+s-t]:0,l=i[e+s]-(c+f>>1);n[r+s]=l}}a(gb,"filterAvg");function vb(i,e,t,n){let r=0;for(let o=0;o<t;o++){let s=o>=n?i[e+o-n]:0,c=e>0?i[e+o-t]:0,f=i[e+o]-(s+c>>1);r+=Math.abs(f)}return r}a(vb,"filterSumAvg");function yb(i,e,t,n,r,o){for(let s=0;s<t;s++){let c=s>=o?i[e+s-o]:0,f=e>0?i[e+s-t]:0,l=e>0&&s>=o?i[e+s-(t+o)]:0,u=i[e+s]-Eg(c,f,l);n[r+s]=u}}a(yb,"filterPaeth");function Sb(i,e,t,n){let r=0;for(let o=0;o<t;o++){let s=o>=n?i[e+o-n]:0,c=e>0?i[e+o-t]:0,f=e>0&&o>=n?i[e+o-(t+n)]:0,l=i[e+o]-Eg(s,c,f);r+=Math.abs(l)}return r}a(Sb,"filterSumPaeth");var Cb={0:lb,1:db,2:hb,3:gb,4:yb},bb={0:pb,1:ub,2:mb,3:vb,4:Sb};zg.exports=function(i,e,t,n,r){let o;if(!("filterType"in n)||n.filterType===-1)o=[0,1,2,3,4];else if(typeof n.filterType=="number")o=[n.filterType];else throw new Error("unrecognised filter types");n.bitDepth===16&&(r*=2);let s=e*r,c=0,f=0,l=Buffer.alloc((s+1)*t),u=o[0];for(let h=0;h<t;h++){if(o.length>1){let g=1/0;for(let y=0;y<o.length;y++){let S=bb[o[y]](i,f,s,r);S<g&&(u=o[y],g=S)}}l[c]=u,c++,Cb[u](i,f,s,l,c,r),c+=s,f+=s}return l}});var jd=F((Y2,Mg)=>{"use strict";var Dt=ma(),Nb=Pd(),Ib=Pg(),Rb=Tg(),Ob=Ue("zlib"),ar=Mg.exports=function(i){if(this._options=i,i.deflateChunkSize=i.deflateChunkSize||32*1024,i.deflateLevel=i.deflateLevel!=null?i.deflateLevel:9,i.deflateStrategy=i.deflateStrategy!=null?i.deflateStrategy:3,i.inputHasAlpha=i.inputHasAlpha!=null?i.inputHasAlpha:!0,i.deflateFactory=i.deflateFactory||Ob.createDeflate,i.bitDepth=i.bitDepth||8,i.colorType=typeof i.colorType=="number"?i.colorType:Dt.COLORTYPE_COLOR_ALPHA,i.inputColorType=typeof i.inputColorType=="number"?i.inputColorType:Dt.COLORTYPE_COLOR_ALPHA,[Dt.COLORTYPE_GRAYSCALE,Dt.COLORTYPE_COLOR,Dt.COLORTYPE_COLOR_ALPHA,Dt.COLORTYPE_ALPHA].indexOf(i.colorType)===-1)throw new Error("option color type:"+i.colorType+" is not supported at present");if([Dt.COLORTYPE_GRAYSCALE,Dt.COLORTYPE_COLOR,Dt.COLORTYPE_COLOR_ALPHA,Dt.COLORTYPE_ALPHA].indexOf(i.inputColorType)===-1)throw new Error("option input color type:"+i.inputColorType+" is not supported at present");if(i.bitDepth!==8&&i.bitDepth!==16)throw new Error("option bit depth:"+i.bitDepth+" is not supported at present")};ar.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};ar.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};ar.prototype.filterData=function(i,e,t){let n=Ib(i,e,t,this._options),r=Dt.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Rb(n,e,t,this._options,r)};ar.prototype._packChunk=function(i,e){let t=e?e.length:0,n=Buffer.alloc(t+12);return n.writeUInt32BE(t,0),n.writeUInt32BE(i,4),e&&e.copy(n,8),n.writeInt32BE(Nb.crc32(n.slice(4,n.length-4)),n.length-4),n};ar.prototype.packGAMA=function(i){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(i*Dt.GAMMA_DIVISION),0),this._packChunk(Dt.TYPE_gAMA,e)};ar.prototype.packIHDR=function(i,e){let t=Buffer.alloc(13);return t.writeUInt32BE(i,0),t.writeUInt32BE(e,4),t[8]=this._options.bitDepth,t[9]=this._options.colorType,t[10]=0,t[11]=0,t[12]=0,this._packChunk(Dt.TYPE_IHDR,t)};ar.prototype.packIDAT=function(i){return this._packChunk(Dt.TYPE_IDAT,i)};ar.prototype.packIEND=function(){return this._packChunk(Dt.TYPE_IEND,null)}});var Lg=F((J2,Vg)=>{"use strict";var Fb=Ue("util"),jg=Ue("stream"),xb=ma(),Db=jd(),Bg=Vg.exports=function(i){jg.call(this);let e=i||{};this._packer=new Db(e),this._deflate=this._packer.createDeflate(),this.readable=!0};Fb.inherits(Bg,jg);Bg.prototype.pack=function(i,e,t,n){this.emit("data",Buffer.from(xb.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),n&&this.emit("data",this._packer.packGAMA(n));let r=this._packer.filterData(i,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(o){this.emit("data",this._packer.packIDAT(o))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(r)}});var Zg=F((Pc,qg)=>{"use strict";var Hg=Ue("assert").ok,ga=Ue("zlib"),Ab=Ue("util"),Ug=Ue("buffer").kMaxLength;function Jr(i){if(!(this instanceof Jr))return new Jr(i);i&&i.chunkSize<ga.Z_MIN_CHUNK&&(i.chunkSize=ga.Z_MIN_CHUNK),ga.Inflate.call(this,i),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,i&&i.maxLength!=null&&(this._maxLength=i.maxLength)}a(Jr,"Inflate");function wb(i){return new Jr(i)}a(wb,"createInflate");function Qg(i,e){e&&process.nextTick(e),i._handle&&(i._handle.close(),i._handle=null)}a(Qg,"_close");Jr.prototype._processChunk=function(i,e,t){if(typeof t=="function")return ga.Inflate._processChunk.call(this,i,e,t);let n=this,r=i&&i.length,o=this._chunkSize-this._offset,s=this._maxLength,c=0,f=[],l=0,u;this.on("error",function(S){u=S});function h(S,N){if(n._hadError)return;let D=o-N;if(Hg(D>=0,"have should not go down"),D>0){let z=n._buffer.slice(n._offset,n._offset+D);if(n._offset+=D,z.length>s&&(z=z.slice(0,s)),f.push(z),l+=z.length,s-=z.length,s===0)return!1}return(N===0||n._offset>=n._chunkSize)&&(o=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),N===0?(c+=r-S,r=S,!0):!1}a(h,"handleChunk"),Hg(this._handle,"zlib binding closed");let g;do g=this._handle.writeSync(e,i,c,r,this._buffer,this._offset,o),g=g||this._writeState;while(!this._hadError&&h(g[0],g[1]));if(this._hadError)throw u;if(l>=Ug)throw Qg(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Ug.toString(16)+" bytes");let y=Buffer.concat(f,l);return Qg(this),y};Ab.inherits(Jr,ga.Inflate);function Pb(i,e){if(typeof e=="string"&&(e=Buffer.from(e)),!(e instanceof Buffer))throw new TypeError("Not a string or buffer");let t=i._finishFlushFlag;return t==null&&(t=ga.Z_FINISH),i._processChunk(e,t)}a(Pb,"zlibBufferSync");function Gg(i,e){return Pb(new Jr(e),i)}a(Gg,"inflateSync");qg.exports=Pc=Gg;Pc.Inflate=Jr;Pc.createInflate=wb;Pc.inflateSync=Gg});var Bd=F((W2,Jg)=>{"use strict";var Yg=Jg.exports=function(i){this._buffer=i,this._reads=[]};Yg.prototype.read=function(i,e){this._reads.push({length:Math.abs(i),allowLess:i<0,func:e})};Yg.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let i=this._reads[0];if(this._buffer.length&&(this._buffer.length>=i.length||i.allowLess)){this._reads.shift();let e=this._buffer;this._buffer=e.slice(i.length),i.func.call(this,e.slice(0,i.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var Wg=F(Xg=>{"use strict";var Eb=Bd(),zb=Dd();Xg.process=function(i,e){let t=[],n=new Eb(i);return new zb(e,{read:n.read.bind(n),write:a(function(o){t.push(o)},"write"),complete:a(function(){},"complete")}).start(),n.process(),Buffer.concat(t)}});var $g=F((k2,kg)=>{"use strict";var _g=!0,Kg=Ue("zlib"),Tb=Zg();Kg.deflateSync||(_g=!1);var Mb=Bd(),jb=Wg(),Bb=Ed(),Vb=zd(),Lb=Td();kg.exports=function(i,e){if(!_g)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t;function n(Q){t=Q}a(n,"handleError");let r;function o(Q){r=Q}a(o,"handleMetaData");function s(Q){r.transColor=Q}a(s,"handleTransColor");function c(Q){r.palette=Q}a(c,"handlePalette");function f(){r.alpha=!0}a(f,"handleSimpleTransparency");let l;function u(Q){l=Q}a(u,"handleGamma");let h=[];function g(Q){h.push(Q)}a(g,"handleInflateData");let y=new Mb(i);if(new Bb(e,{read:y.read.bind(y),error:n,metadata:o,gamma:u,palette:c,transColor:s,inflateData:g,simpleTransparency:f}).start(),y.process(),t)throw t;let N=Buffer.concat(h);h.length=0;let D;if(r.interlace)D=Kg.inflateSync(N);else{let Re=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;D=Tb(N,{chunkSize:Re,maxLength:Re})}if(N=null,!D||!D.length)throw new Error("bad png - invalid inflate data response");let z=jb.process(D,r);N=null;let be=Vb.dataToBitMap(z,r);z=null;let _=Lb(be,r);return r.data=_,r.gamma=l||0,r}});var iv=F((eM,ov)=>{"use strict";var ev=!0,tv=Ue("zlib");tv.deflateSync||(ev=!1);var Hb=ma(),Ub=jd();ov.exports=function(i,e){if(!ev)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t=e||{},n=new Ub(t),r=[];r.push(Buffer.from(Hb.PNG_SIGNATURE)),r.push(n.packIHDR(i.width,i.height)),i.gamma&&r.push(n.packGAMA(i.gamma));let o=n.filterData(i.data,i.width,i.height),s=tv.deflateSync(o,n.getDeflateOptions());if(o=null,!s||!s.length)throw new Error("bad png - invalid compressed data response");return r.push(n.packIDAT(s)),r.push(n.packIEND()),Buffer.concat(r)}});var nv=F(Vd=>{"use strict";var Qb=$g(),Gb=iv();Vd.read=function(i,e){return Qb(i,e||{})};Vd.write=function(i,e){return Gb(i,e)}});var av=F(sv=>{"use strict";var qb=Ue("util"),rv=Ue("stream"),Zb=Ag(),Yb=Lg(),Jb=nv(),Mt=sv.PNG=function(i){rv.call(this),i=i||{},this.width=i.width|0,this.height=i.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,i.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new Zb(i),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",(function(e){this.data=e,this.emit("parsed",e)}).bind(this)),this._packer=new Yb(i),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};qb.inherits(Mt,rv);Mt.sync=Jb;Mt.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick((function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}).bind(this)),this)};Mt.prototype.parse=function(i,e){if(e){let t,n;t=(function(r){this.removeListener("error",n),this.data=r,e(null,this)}).bind(this),n=(function(r){this.removeListener("parsed",t),e(r,null)}).bind(this),this.once("parsed",t),this.once("error",n)}return this.end(i),this};Mt.prototype.write=function(i){return this._parser.write(i),!0};Mt.prototype.end=function(i){this._parser.end(i)};Mt.prototype._metadata=function(i){this.width=i.width,this.height=i.height,this.emit("metadata",i)};Mt.prototype._gamma=function(i){this.gamma=i};Mt.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};Mt.bitblt=function(i,e,t,n,r,o,s,c){if(t|=0,n|=0,r|=0,o|=0,s|=0,c|=0,t>i.width||n>i.height||t+r>i.width||n+o>i.height)throw new Error("bitblt reading outside image");if(s>e.width||c>e.height||s+r>e.width||c+o>e.height)throw new Error("bitblt writing outside image");for(let f=0;f<o;f++)i.data.copy(e.data,(c+f)*e.width+s<<2,(n+f)*i.width+t<<2,(n+f)*i.width+t+r<<2)};Mt.prototype.bitblt=function(i,e,t,n,r,o,s){return Mt.bitblt(this,i,e,t,n,r,o,s),this};Mt.adjustGamma=function(i){if(i.gamma){for(let e=0;e<i.height;e++)for(let t=0;t<i.width;t++){let n=i.width*e+t<<2;for(let r=0;r<3;r++){let o=i.data[n+r]/255;o=Math.pow(o,1/2.2/i.gamma),i.data[n+r]=Math.round(o*255)}}i.gamma=0}};Mt.prototype.adjustGamma=function(){Mt.adjustGamma(this)}});var Ec=F(Xr=>{"use strict";function cv(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let e=i.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+i);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}a(cv,"hex2rgba");Xr.getOptions=a(function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:n,scale:n?4:r,margin:t,color:{dark:cv(e.color.dark||"#000000ff"),light:cv(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");Xr.getScale=a(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");Xr.getImageWidth=a(function(e,t){let n=Xr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");Xr.qrToImageData=a(function(e,t,n){let r=t.modules.size,o=t.modules.data,s=Xr.getScale(r,n),c=Math.floor((r+n.margin*2)*s),f=n.margin*s,l=[n.color.light,n.color.dark];for(let u=0;u<c;u++)for(let h=0;h<c;h++){let g=(u*c+h)*4,y=n.color.light;if(u>=f&&h>=f&&u<c-f&&h<c-f){let S=Math.floor((u-f)/s),N=Math.floor((h-f)/s);y=l[o[S*r+N]?1:0]}e[g++]=y.r,e[g++]=y.g,e[g++]=y.b,e[g]=y.a}},"qrToImageData")});var fv=F(xi=>{"use strict";var Xb=Ue("fs"),Wb=av().PNG,Ld=Ec();xi.render=a(function(e,t){let n=Ld.getOptions(t),r=n.rendererOpts,o=Ld.getImageWidth(e.modules.size,n);r.width=o,r.height=o;let s=new Wb(r);return Ld.qrToImageData(s.data,e,n),s},"render");xi.renderToDataURL=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),xi.renderToBuffer(e,t,function(r,o){r&&n(r);let s="data:image/png;base64,";s+=o.toString("base64"),n(null,s)})},"renderToDataURL");xi.renderToBuffer=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=xi.render(e,t),o=[];r.on("error",n),r.on("data",function(s){o.push(s)}),r.on("end",function(){n(null,Buffer.concat(o))}),r.pack()},"renderToBuffer");xi.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let o=!1,s=a((...f)=>{o||(o=!0,r.apply(null,f))},"done"),c=Xb.createWriteStream(e);c.on("error",s),c.on("close",s),xi.renderToFileStream(c,t,n)},"renderToFile");xi.renderToFileStream=a(function(e,t,n){xi.render(t,n).pack().pipe(e)},"renderToFileStream")});var lv=F(pl=>{"use strict";var _b=Ec(),Kb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},kb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function $b(i,e,t){return i&&e?t.BB:i&&!e?t.BW:!i&&e?t.WB:t.WW}a($b,"getBlockChar");pl.render=function(i,e,t){let n=_b.getOptions(e),r=Kb;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=kb);let o=i.modules.size,s=i.modules.data,c="",f=Array(o+n.margin*2+1).join(r.WW);f=Array(n.margin/2+1).join(f+`
|
|
9
|
+
`);let l=Array(n.margin+1).join(r.WW);c+=f;for(let u=0;u<o;u+=2){c+=l;for(let h=0;h<o;h++){let g=s[u*o+h],y=s[(u+1)*o+h];c+=$b(g,y,r)}c+=l+`
|
|
10
|
+
`}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};pl.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let o=Ue("fs"),s=pl.render(t,n);o.writeFile(e,s,r)},"renderToFile")});var dv=F(pv=>{"use strict";pv.render=function(i,e,t){let n=i.modules.size,r=i.modules.data,o="\x1B[40m \x1B[0m",s="\x1B[47m \x1B[0m",c="",f=Array(n+3).join(s),l=Array(2).join(s);c+=f+`
|
|
11
|
+
`;for(let u=0;u<n;++u){c+=s;for(let h=0;h<n;h++)c+=r[u*n+h]?o:s;c+=l+`
|
|
12
12
|
`}return c+=f+`
|
|
13
|
-
`,typeof t=="function"&&t(null,c),c}});var
|
|
14
|
-
`+s,h=s;for(let
|
|
15
|
-
`;return typeof n=="function"&&n(null,v),v},"render")});var dv=F(np=>{"use strict";var Kb=Td();np.render=Kb.render;np.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=He("fs"),c='<?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">'+np.render(t,n);i.writeFile(e,c,r)},"renderToFile")});var uv=F(rp=>{"use strict";var Md=Ic();function kb(o,e,t){o.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"}a(kb,"clearCanvas");function $b(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}a($b,"getCanvasElement");rp.render=a(function(e,t,n){let r=n,i=t;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),t||(i=$b()),r=Md.getOptions(r);let s=Md.getImageWidth(e.modules.size,r),c=i.getContext("2d"),f=c.createImageData(s,s);return Md.qrToImageData(f.data,e,r),kb(c,i,s),c.putImageData(f,0,0),i},"render");rp.renderToDataURL=a(function(e,t,n){let r=n;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),r||(r={});let i=rp.render(e,t,r),s=r.type||"image/png",c=r.rendererOpts||{};return i.toDataURL(s,c.quality)},"renderToDataURL")});var mv=F(Rc=>{"use strict";var eN=Wl(),jd=hd(),hv=uv(),tN=Td();function Bd(o,e,t,n,r){let i=[].slice.call(arguments,1),s=i.length,c=typeof i[s-1]=="function";if(!c&&!eN())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(r=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(f,p){try{let u=jd.create(t,n);f(o(u,e,n))}catch(u){p(u)}})}try{let f=jd.create(t,n);r(null,o(f,e,n))}catch(f){r(f)}}a(Bd,"renderCanvas");Rc.create=jd.create;Rc.toCanvas=Bd.bind(null,hv.render);Rc.toDataURL=Bd.bind(null,hv.renderToDataURL);Rc.toString=Bd.bind(null,function(o,e,t){return tN.render(o,t)})});var Sv=F($n=>{"use strict";var gv=Wl(),Vd=hd(),oN=ev(),vv=tv(),iN=fv(),yv=dv();function Oc(o,e,t){if(typeof o>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(gv())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}a(Oc,"checkParams");function nN(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}a(nN,"getTypeFromFilename");function sp(o){switch(o){case"svg":return yv;case"txt":case"utf8":return vv;default:return oN}}a(sp,"getRendererFromType");function rN(o){switch(o){case"svg":return yv;case"terminal":return iN;default:return vv}}a(rN,"getStringRendererFromType");function Fc(o,e,t){if(!t.cb)return new Promise(function(n,r){try{let i=Vd.create(e,t.opts);return o(i,t.opts,function(s,c){return s?r(s):n(c)})}catch(i){r(i)}});try{let n=Vd.create(e,t.opts);return o(n,t.opts,t.cb)}catch(n){t.cb(n)}}a(Fc,"render");$n.create=Vd.create;$n.toCanvas=mv().toCanvas;$n.toString=a(function(e,t,n){let r=Oc(e,t,n),i=r.opts?r.opts.type:void 0,s=rN(i);return Fc(s.render,e,r)},"toString");$n.toDataURL=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToDataURL,e,r)},"toDataURL");$n.toBuffer=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToBuffer,e,r)},"toBuffer");$n.toFile=a(function(e,t,n,r){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!gv())throw new Error("Too few arguments provided");let i=Oc(t,n,r),s=i.opts.type||nN(e),f=sp(s).renderToFile.bind(null,e);return Fc(f,t,i)},"toFile");$n.toFileStream=a(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let r=Oc(t,n,e.emit.bind(e,"error")),s=sp("png").renderToFileStream.bind(null,e);Fc(s,t,r)},"toFileStream")});var Ld=F((aM,Cv)=>{"use strict";Cv.exports=Sv()});import{NFeTsError as xv}from"nfets/core";var Ac=class extends xv{static{a(this,"XmlValidationError")}xml;name="XmlValidationError";constructor(e,t,n){super(e,n),this.xml=t}};var Ue=(function(o){return o.Normal="1",o.EPEC="4",o.SVCAN="6",o.SVCRS="7",o.OFFLINE="9",o})({});var Qe=(function(o){return o.Cancelamento="110111",o.CancelamentoSubstituicao="110112",o.ConfirmacaoOperacao="210200",o.CienciaOperacao="210210",o.DesconhecimentoOperacao="210220",o.OperacaoNaoRealizada="210240",o})({});var Zd=(function(o){return o.RegistradoEVinculado="135",o})({}),Yd=(function(o){return o.RegistradoEVinculado="135",o.RegistradoNaoVinculado="136",o.CancelamentoHomologadoForaPrazo="155",o})({});var Xd=(function(o){return o.InutilizacaoHomologada="102",o})({});import{search as Jd}from"nfets/core";var Ur={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"},DN=[Ur.PL_009_V4],jt=[Ur.PL_010_V1,Ur.PL_010_V1_21,Ur.PL_010_V1_30],Wd=Ur.PL_009_V4,xc=a(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Jd("packages/nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Jd("nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),_d=Ur;var wv=2.834645669291339,R=a(o=>o*wv,"mm"),wN={A4:[R(210),R(297)]},Kd={top:R(5),right:R(5),bottom:R(5),left:R(5)};var wc=class{static{a(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),r=e.month.toString().padStart(2,"0"),i=(e.identification??"").padStart(14,"0"),s=e.mod.toString().padStart(2,"0"),c=e.serie.toString().padStart(3,"0"),f=e.nNF.toString().padStart(9,"0"),p=e.tpEmis.toString().padStart(1,"0"),u=(e.cNF??this.code()).toString().padStart(8,"0"),h=`${t}${n}${r}${i}${s}${c}${f}${p}${u}`;return`${h}${this.verifyingDigit(h)}`}decompile(e){if(e=e.trim().replace(/^NFe/,""),e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([A-Z0-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[r,i,s,c,f,p,u,h,v,y,S]=n;return{cUF:i,year:s,month:c,identification:f,mod:p,serie:u,nNF:h,tpEmis:v,cNF:y,vd:S}}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=[4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2],n=48,r=43,i=0;for(let c=0;c<r;c++){let f=e.charCodeAt(c)-n;i+=f*t[c]}return i%11<2?0:11-i%11}};import{Xml2JsToolkit as Pv}from"nfets/core";import{left as Ap,NFeTsError as xp,right as kd}from"nfets/core";var Ev=new Set([Qe.Cancelamento,Qe.CancelamentoSubstituicao]),$d=class{static{a(this,"NfeComplements")}toolkit;constructor(e=new Pv){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return Ap(new xp("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return Ap(new xp("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return Ap(new xp("Access key not found in protNFe"));let i=this.findMatchingRetEvento(t,r);return i?kd(this.toolkit.appendNode(e,i)):kd(e)}findMatchingRetEvento(e,t){for(let n of this.toolkit.getNodes(e,"retEvento")){let r=this.toolkit.getNodeValue(n,"cStat"),i=this.toolkit.getNodeValue(n,"tpEvento"),s=this.toolkit.getNodeValue(n,"chNFe");if(r&&Object.values(Yd).includes(r)&&i&&Ev.has(i)&&s===t)return n}return null}};import{Decimal as eu}from"nfets/core";var Pc=class{static{a(this,"DefaultDetBuilderAggregator")}builder;zero=eu.from(0);constructor(e){this.builder=e}prod(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vProd:this.sum(t?.vProd,e.vProd),vFrete:this.sum(t?.vFrete,e.vFrete),vSeg:this.sum(t?.vSeg,e.vSeg),vDesc:this.sum(t?.vDesc,e.vDesc),vOutro:this.sum(t?.vOutro,e.vOutro)}}))}issqn(e){this.builder.increment(({ISSQNtot:t})=>({ISSQNtot:{vISS:this.sum(t?.vISS,e.vISSQN)}}))}cofins(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vCOFINS:this.sum(t?.vCOFINS,e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS)}}))}pis(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vPIS:this.sum(t?.vPIS,e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS)}}))}icms(e){let[t]=Object.keys(e),n=e[t];this.builder.increment(({ICMSTot:r})=>({ICMSTot:{vBC:this.sum(r?.vBC,n.vBC),vICMS:this.sum(r?.vICMS,n.vICMS),vICMSDeson:this.sum(r?.vICMSDeson,n.vICMSDeson),vBCST:this.sum(r?.vBCST,n.vBCST),vST:this.sum(r?.vST,n.vICMSST),vFCP:this.sum(r?.vFCP,n.vFCP),vFCPST:this.sum(r?.vFCPST,n.vFCPST),vFCPSTRet:this.sum(r?.vFCPSTRet,n.vFCPSTRet),qBCMono:this.sum(r?.qBCMono,n.qBCMono),vICMSMono:this.sum(r?.vICMSMono,n.vICMSMono),qBCMonoReten:this.sum(r?.qBCMonoReten,n.qBCMonoReten),vICMSMonoReten:this.sum(r?.vICMSMonoReten,n.vICMSMonoReten),qBCMonoRet:this.sum(r?.qBCMonoRet,n.qBCMonoRet),vICMSMonoRet:this.sum(r?.vICMSMonoRet,n.vICMSMonoRet)}}))}imposto(e){e.vTotTrib!=null&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vTotTrib:this.sum(t?.vTotTrib,e.vTotTrib)}}))}ii(e){e.vII&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vII:this.sum(t?.vII,e.vII)}}))}ipi(e){let t=e.IPITrib?.vIPI;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPI:this.sum(n?.vIPI,t)}}))}impostoDevol(e){let t=e.IPI?.vIPIDevol;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPIDevol:this.sum(n?.vIPIDevol,t)}}))}sum(e,t,n=2){return eu.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as wp}from"nfets/core";var Ec=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=wp.from(0),t=jt.includes(this.builder.schema??"");this.builder.increment(({ICMSTot:n,ISSQNtot:r},i)=>{let s=this.resolveDeductibleVICMSDeson(i);return{...t?{vNFTot:i.reduce((c,f)=>c.add(f?.vItem??e),e).toFixed(2)}:{},ICMSTot:{vNF:wp.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(s).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vICMSMonoReten??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(r?.vServ??e).toFixed(2)}}})}resolveDeductibleVICMSDeson(e){let t=wp.from(0);return e.length?e.reduce((n,r)=>{let i=r?.imposto?.ICMS;if(!i)return n;let[s]=Object.keys(i),c=i[s];return c?.indDeduzDeson!=="1"||c.vICMSDeson==null?n:n.add(c.vICMSDeson)},t).toFixed(2):t.toFixed(2)}};import{NFeTsError as qy,right as Zy,Validates as Yy,left as Xy}from"nfets/core";var Qr={[Qe.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"},[Qe.CancelamentoSubstituicao]:{method:"envEventoCancSubstNFe",version:"1.00",descEvento:"Cancelamento por substituicao"},[Qe.ConfirmacaoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Confirmacao da Operacao"},[Qe.CienciaOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Ciencia da Operacao"},[Qe.DesconhecimentoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Desconhecimento da Operacao"},[Qe.OperacaoNaoRealizada]:{method:"envConfRecebto",version:"1.00",descEvento:"Operacao nao Realizada"}};import{left as uu,NFeTsError as hu,right as mu}from"nfets/core";import{Xml2JsToolkit as zv,NativeCertificateRepository as Tv,SoapRemoteTransmissionRepository as Mv,MemoryCacheAdapter as jv}from"nfets/core";import{EntitySigner as Bv,ValidateErrorsMetadata as Vv,XmlSigner as Lv}from"nfets/core";var Gr=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=qd.create();toolkit=new zv;caching=new jv;certificates=new Tv(this.http,this.caching);soap=new Mv(this.toolkit,this.certificates);signer=new Bv(this.toolkit,this.certificates);xmlSigner=new Lv(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Vv,this)}};import wy from"path";import{NFeTsError as Py,StateCodes as Ey}from"nfets/core";import{ValidateErrorsMetadata as du,Validates as mn}from"nfets/core";import{left as zy,right as Ty}from"nfets/core";import{StateCodes as Hv,Environment as Uv}from"nfets/core";import{Type as Qv}from"class-transformer";import{IsEnum as tu,IsNotEmptyObject as Gv,IsObject as qv,ValidateNested as Zv,IsOptional as Yv}from"class-validator";function zc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(zc,"_ts_decorate");function Ep(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ep,"_ts_metadata");var un=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};zc([tu(Uv),Ep("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],un.prototype,"tpAmb",void 0);zc([tu(Hv),Ep("design:type",typeof StateCode>"u"?Object:StateCode)],un.prototype,"cUF",void 0);zc([Yv()],un.prototype,"xServ",void 0);var Pp=class{static{a(this,"ConsultStatusRequest")}consStatServ};zc([Gv(),qv(),Zv(),Qv(()=>un),Ep("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],Pp.prototype,"consStatServ",void 0);import{Choice as Xv}from"nfets/core";import{StateCodes as Jv,Environment as Wv}from"nfets/core";import{Type as zp}from"class-transformer";import{IsEnum as ou,IsOptional as Mc,IsString as vo,Length as iu,MinLength as _v,MaxLength as Kv,Matches as Oa,ValidateNested as Tp,Allow as kv,IsObject as nu}from"class-validator";function Ge(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ge,"_ts_decorate");function tt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(tt,"_ts_metadata");var Tc=class{static{a(this,"InfInutAttributes")}Id};Ge([vo(),tt("design:type",String)],Tc.prototype,"Id",void 0);var Ra=class{static{a(this,"InutNFeAttributes")}xmlns;versao};Ge([vo(),tt("design:type",String)],Ra.prototype,"xmlns",void 0);Ge([vo(),Mc(),tt("design:type",String)],Ra.prototype,"versao",void 0);var et=class{static{a(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ge([Tp(),zp(()=>Tc),tt("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],et.prototype,"$",void 0);Ge([ou(Wv),tt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],et.prototype,"tpAmb",void 0);Ge([Mc()],et.prototype,"xServ",void 0);Ge([ou(Jv),tt("design:type",typeof StateCode>"u"?Object:StateCode)],et.prototype,"cUF",void 0);Ge([vo(),iu(2,2),Oa(/^[0-9]{2}$/),tt("design:type",String)],et.prototype,"ano",void 0);Ge([vo(),Mc(),tt("design:type",String)],et.prototype,"CNPJ",void 0);Ge([vo(),Mc(),tt("design:type",String)],et.prototype,"CPF",void 0);Ge([vo(),iu(2,2),Oa(/^(55|65)$/),tt("design:type",String)],et.prototype,"mod",void 0);Ge([vo(),Oa(/^[0-9]{1,3}$/),tt("design:type",String)],et.prototype,"serie",void 0);Ge([vo(),Oa(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFIni",void 0);Ge([vo(),Oa(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFFin",void 0);Ge([vo(),_v(15),Kv(255),tt("design:type",String)],et.prototype,"xJust",void 0);et=Ge([Xv({properties:["CNPJ","CPF"],required:!0})],et);var Di=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};Ge([nu(),Tp(),zp(()=>Ra),tt("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Di.prototype,"$",void 0);Ge([nu(),Tp(),zp(()=>et),tt("design:type",typeof IInfInut>"u"?Object:IInfInut)],Di.prototype,"infInut",void 0);Ge([kv(),tt("design:type",typeof Signature>"u"?Object:Signature)],Di.prototype,"Signature",void 0);import{Environment as $v}from"nfets/core";import{IsEnum as ey,IsOptional as ty,IsString as oy,Length as iy,Matches as ny}from"class-validator";function Mp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Mp,"_ts_decorate");function ru(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ru,"_ts_metadata");var ir=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};Mp([ey($v),ru("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ir.prototype,"tpAmb",void 0);Mp([ty()],ir.prototype,"xServ",void 0);Mp([oy(),iy(44,44),ny(/^[A-Z0-9]{44}$/),ru("design:type",String)],ir.prototype,"chNFe",void 0);import{StateCodes as ry,Environment as sy}from"nfets/core";import{IsEnum as jp,IsOptional as Bc,IsString as ay,IsNotEmpty as cy}from"class-validator";function Fa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Fa,"_ts_decorate");function jc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(jc,"_ts_metadata");var yo=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Fa([jp(sy),Bc(),jc("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],yo.prototype,"tpAmb",void 0);Fa([jp(ry),Bc(),jc("design:type",typeof StateCode>"u"?Object:StateCode)],yo.prototype,"cUF",void 0);Fa([ay(),Bc(),jc("design:type",String)],yo.prototype,"idLote",void 0);Fa([Bc(),jp(["0","1"])],yo.prototype,"indSinc",void 0);Fa([cy(),jc("design:type",typeof T>"u"?Object:T)],yo.prototype,"NFe",void 0);import{Environment as fy}from"nfets/core";import{IsEnum as py,IsString as ly}from"class-validator";function su(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(su,"_ts_decorate");function au(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(au,"_ts_metadata");var qr=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;nRec};su([py(fy),au("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],qr.prototype,"tpAmb",void 0);su([ly(),au("design:type",String)],qr.prototype,"nRec",void 0);import{IsString as Ai,IsNotEmpty as dy,ValidateNested as Hc,IsObject as Uc,IsOptional as cu,IsEnum as uy,IsNumber as hy,Allow as my}from"class-validator";import{Type as Qc}from"class-transformer";import{Choice as gy,TransformDateString as vy}from"nfets/core";function qe(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(qe,"_ts_decorate");function Je(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Je,"_ts_metadata");var Vc=class{static{a(this,"InfEventoAttributes")}Id};qe([Ai(),Je("design:type",String)],Vc.prototype,"Id",void 0);var Xe=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qe([Uc(),Hc(),Qc(()=>Vc),Je("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Xe.prototype,"$",void 0);qe([Ai(),Je("design:type",typeof StateCode>"u"?Object:StateCode)],Xe.prototype,"cOrgao",void 0);qe([Ai(),Je("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Xe.prototype,"tpAmb",void 0);qe([Ai(),cu(),Je("design:type",String)],Xe.prototype,"CNPJ",void 0);qe([Ai(),cu(),Je("design:type",String)],Xe.prototype,"CPF",void 0);qe([Ai(),Je("design:type",String)],Xe.prototype,"chNFe",void 0);qe([vy({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Je("design:type",String)],Xe.prototype,"dhEvento",void 0);qe([uy(Qe),Je("design:type",typeof Qe>"u"?Object:Qe)],Xe.prototype,"tpEvento",void 0);qe([hy(),Je("design:type",Number)],Xe.prototype,"nSeqEvento",void 0);qe([Ai(),Je("design:type",String)],Xe.prototype,"verEvento",void 0);qe([Uc(),Je("design:type",typeof T>"u"?Object:T)],Xe.prototype,"detEvento",void 0);Xe=qe([gy({properties:["CNPJ","CPF"],required:!0})],Xe);var Lc=class{static{a(this,"EventoItemAttributes")}xmlns};qe([Ai(),Je("design:type",String)],Lc.prototype,"xmlns",void 0);var Jo=class{static{a(this,"EventoItem")}$;infEvento;Signature};qe([Uc(),Hc(),Qc(()=>Lc),Je("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Jo.prototype,"$",void 0);qe([Uc(),Hc(),Qc(()=>Xe),Je("design:type",typeof Xe>"u"?Object:Xe)],Jo.prototype,"infEvento",void 0);qe([my(),Je("design:type",typeof Signature>"u"?Object:Signature)],Jo.prototype,"Signature",void 0);var Zr=class{static{a(this,"EventoPayload")}idLote;evento};qe([Ai(),Je("design:type",String)],Zr.prototype,"idLote",void 0);qe([dy(),Hc(),Qc(()=>Jo),Je("design:type",typeof Jo>"u"?Object:Jo)],Zr.prototype,"evento",void 0);import{StateAcronyms as yy}from"nfets/core";import{Choice as Sy}from"nfets/core";import{IsIn as Cy,IsOptional as qc,IsString as Zc}from"class-validator";function Yr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Yr,"_ts_decorate");function Gc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Gc,"_ts_metadata");var So=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};Yr([qc()],So.prototype,"xServ",void 0);Yr([Zc(),Cy(Object.values(yy)),Gc("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],So.prototype,"UF",void 0);Yr([qc(),Zc(),Gc("design:type",String)],So.prototype,"IE",void 0);Yr([qc(),Zc(),Gc("design:type",String)],So.prototype,"CNPJ",void 0);Yr([qc(),Zc(),Gc("design:type",String)],So.prototype,"CPF",void 0);So=Yr([Sy({properties:["IE","CNPJ","CPF"],required:!0})],So);import{StateCodes as by,Environment as Ny}from"nfets/core";import{Choice as Iy}from"nfets/core";import{Type as Ry}from"class-transformer";import{IsEnum as fu,IsObject as Oy,IsOptional as pu,IsString as Bp,Length as Fy,Matches as Dy,ValidateNested as Ay}from"class-validator";function nr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(nr,"_ts_decorate");function Xr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Xr,"_ts_metadata");var Yc=class{static{a(this,"ConsChNFe")}chNFe};nr([Bp(),Fy(44,44),Dy(/^[A-Z0-9]{44}$/),Xr("design:type",String)],Yc.prototype,"chNFe",void 0);var Co=class{static{a(this,"DistribuicaoDFePayload")}tpAmb;cUFAutor;CNPJ="";CPF="";consChNFe};nr([fu(Ny),Xr("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Co.prototype,"tpAmb",void 0);nr([fu(by),Xr("design:type",typeof StateCode>"u"?Object:StateCode)],Co.prototype,"cUFAutor",void 0);nr([pu(),Bp(),Xr("design:type",String)],Co.prototype,"CNPJ",void 0);nr([pu(),Bp(),Xr("design:type",String)],Co.prototype,"CPF",void 0);nr([Oy(),Ay(),Ry(()=>Yc),Xr("design:type",typeof IConsChNFe>"u"?Object:IConsChNFe)],Co.prototype,"consChNFe",void 0);Co=nr([Iy({properties:["CNPJ","CPF"],required:!0})],Co);import{Environment as L}from"nfets/core";var Vp={AM:{[L.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"}},[L.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:{[L.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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"}},[L.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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:{[L.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:"NFeInutilizacao",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"}},[L.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:"NFeInutilizacao",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:{[L.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"}},[L.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:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[L.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"}},[L.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:{[L.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"}},[L.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:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[L.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[L.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[L.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"}},[L.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:{[L.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"}},[L.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:{[L.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"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[L.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"}},[L.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:{[L.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"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};import{StateCodes as K}from"nfets/core";var xy={[K.AC]:"SVRS",[K.AL]:"SVRS",[K.AM]:"AM",[K.AP]:"SVRS",[K.BA]:"BA",[K.CE]:"SVRS",[K.DF]:"SVRS",[K.ES]:"SVRS",[K.GO]:"GO",[K.MA]:"SVAN",[K.MG]:"MG",[K.MS]:"MS",[K.MT]:"MT",[K.PA]:"SVRS",[K.PB]:"SVRS",[K.PE]:"PE",[K.PI]:"SVRS",[K.PR]:"PR",[K.RJ]:"SVRS",[K.RN]:"SVRS",[K.RO]:"SVRS",[K.RR]:"SVRS",[K.RS]:"RS",[K.SC]:"SVRS",[K.SE]:"SVRS",[K.SP]:"SP",[K.TO]:"SVRS",91:"AN",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},lu=xy;import{StateCodes as k}from"nfets/core";var Xc={[k.AC]:"SVCAN",[k.AL]:"SVCAN",[k.AM]:"SVCRS",[k.AP]:"SVCAN",[k.BA]:"SVCRS",[k.CE]:"SVCAN",[k.DF]:"SVCAN",[k.ES]:"SVCAN",[k.GO]:"SVCRS",[k.MA]:"SVCRS",[k.MG]:"SVCAN",[k.MS]:"SVCRS",[k.MT]:"SVCRS",[k.PA]:"SVCAN",[k.PB]:"SVCAN",[k.PE]:"SVCRS",[k.PI]:"SVCAN",[k.PR]:"SVCRS",[k.RJ]:"SVCAN",[k.RN]:"SVCAN",[k.RO]:"SVCAN",[k.RR]:"SVCAN",[k.RS]:"SVCAN",[k.SC]:"SVCAN",[k.SE]:"SVCAN",[k.SP]:"SVCAN",[k.TO]:"SVCAN"};function hn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(hn,"_ts_decorate");function re(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(re,"_ts_metadata");var Bt=class{static{a(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}xmlns="http://www.portalfiscal.inf.br/nfe";options={timeout:6e4};configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=_d.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,r=this.options.contingency?Xc[t]:lu[t];return Vp[r][n][e.service]}errors(){return Reflect.getMetadata(du,this)}validate(e){try{let t=this.errors();return t?zy(new Py(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ty(e))}finally{Reflect.deleteMetadata(du,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return wy.resolve(xc(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,r.version)},method:r.method})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:r}=t.value.infInut,i=t.value,s=this.service({cUF:n,tpAmb:r,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:s.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(i,s.version)},method:s.method})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,r.version)},method:r.method})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,timeout:this.options.timeout,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,r.version)},method:r.method})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,r.version)},method:r.method})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,r.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,r.version)},method:r.method})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:Ey[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,r.version)},method:r.method})}async distribuicaoDFe(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=Vp.AN[n.tpAmb].NfeDistribuicaoDFe;return this.remoteTransmissionRepository.send({root:"nfeDistDFeInteresse",url:r.url,xsd:this.xsd("distDFeInt_v1.01.xsd"),payload:{nfeDadosMsg:{distDFeInt:this.ns(n,r.version)}},method:r.method})}};hn([mn(un),re("design:type",Function),re("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),re("design:returntype",Promise)],Bt.prototype,"consultStatus",null);hn([mn(Di),re("design:type",Function),re("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"inutilizacao",null);hn([mn(ir),re("design:type",Function),re("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),re("design:returntype",Promise)],Bt.prototype,"consultaProtocolo",null);hn([mn(yo),re("design:type",Function),re("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"autorizacao",null);hn([mn(qr),re("design:type",Function),re("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"retAutorizacao",null);hn([mn(Zr),re("design:type",Function),re("design:paramtypes",[Object]),re("design:returntype",Promise)],Bt.prototype,"recepcaoEvento",null);hn([mn(So),re("design:type",Function),re("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),re("design:returntype",Promise)],Bt.prototype,"consultaCadastro",null);hn([mn(Co),re("design:type",Function),re("design:paramtypes",[typeof IDistribuicaoDFePayload>"u"?Object:IDistribuicaoDFePayload]),re("design:returntype",Promise)],Bt.prototype,"distribuicaoDFe",null);var ft=class extends Gr{static{a(this,"TransmissionPipeline")}certificate;transmitter=new Bt(this.soap);constructor(e){super(e),this.certificate=e}issuerFromIdentification(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,"");if(!t)return uu(new hu("CNPJ/CPF do emitente \xE9 obrigat\xF3rio"));if(t.length===11)return mu({CPF:t,idDigits:t.padStart(14,"0")});let n=t.padStart(14,"0");return n.length!==14?uu(new hu("CNPJ/CPF do emitente \xE9 inv\xE1lido")):mu({CNPJ:n,idDigits:n})}};import{StateCodes as My}from"nfets/core";import{Decimal as jy}from"nfets/core";var By=["MT"],Vy=[My.MT],Ly=[[/[áàâãªä]/g,"a"],[/[ÁÀÂÃÄ]/g,"A"],[/[ÍÌÎÏ]/g,"I"],[/[íìîï]/g,"i"],[/[éèêë]/g,"e"],[/[ÉÈÊË]/g,"E"],[/[óòôõºö]/g,"o"],[/[ÓÒÔÕÖ]/g,"O"],[/[úùûü]/g,"u"],[/[ÚÙÛÜ]/g,"U"],[/ç/g,"c"],[/Ç/g,"C"],[/ñ/g,"n"],[/Ñ/g,"N"]];function Hy(o){if(!o)return!1;let e=o.toUpperCase();return By.includes(e)||Vy.includes(e)}a(Hy,"shouldStripSefazAccents");function Uy(o){return Ly.reduce((e,[t,n])=>e.replace(t,n),o)}a(Uy,"replaceSefazSpecialChars");function Jr(o,e){return Hy(e)?Lp(o):o}a(Jr,"sanitizeSefazText");function Qy(o){return o===null||typeof o!="object"||o instanceof Date||o instanceof jy?!1:!ArrayBuffer.isView(o)}a(Qy,"isWalkableObject");function Lp(o){if(typeof o=="string")return Uy(o);if(Array.isArray(o))return o.map(n=>Lp(n));if(!Qy(o))return o;let e={};for(let[t,n]of Object.entries(o))e[t]=Lp(n);return e}a(Lp,"walk");function Gy(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Gy,"_ts_decorate");function Hp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hp,"_ts_metadata");var rr=class extends ft{static{a(this,"EventPipeline")}async event(e,t,n){let r=await this.certificates.read(this.certificate);if(r.isLeft())return r;let i=t.chNFe.slice(0,2);this.transmitter.configure({cUF:t.cOrgao??i,...n,certificate:r.value});let s=Qr[e],c=this.issuerFromIdentification(t.identification);if(c.isLeft())return c;let{nSeqEvento:f,dhEvento:p,chNFe:u}=t,h=["ID",e,u,f.toString().padStart(2,"0")].join(""),v=Jr({$:{xmlns:this.xmlns},infEvento:{$:{Id:h},cOrgao:t.cOrgao??i,tpAmb:n.tpAmb,CNPJ:c.value.CNPJ,CPF:c.value.CPF,chNFe:u,dhEvento:p,tpEvento:e,nSeqEvento:f,verEvento:s.version,detEvento:{$:{versao:s.version},descEvento:s.descEvento,...t.detEvento}}},i),y=this.validated(v);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},r.value)}versionedEvent(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infEvento;if(!Object.values(Zd).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"evento"});let i={evento:e,retEvento:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procEventoNFe"})}validated(e){let t=this.errors();return t?Xy(new qy(t.join(", "))):Zy(e)}};Gy([Yy(Jo),Hp("design:type",Function),Hp("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Hp("design:returntype",void 0)],rr.prototype,"validated",null);import{left as Jy,NFeTsError as Wy,right as _y}from"nfets/core";var Jc=class extends rr{static{a(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,identification:e.identification},r=await this.event(Qe.Cancelamento,n,t);if(r.isLeft())return r;let i=r.value,s=Qr[Qe.Cancelamento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i});if(c.isLeft())return c;let f=c.value,p=f.retEnvEvento.retEvento;if(!p)return Jy(new Wy("Evento de cancelamento n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return _y({xml:u,response:f})}};var sr=(function(o){return o.Asynchronous="0",o.Synchronous="1",o})({});var Up=(function(o){return o.LotReceived="103",o.ProcessedBatch="104",o})({});import{NFeTsError as Ky}from"nfets/core";var Da=class extends Ky{static{a(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};import{left as Wc,right as Aa,NFeTsError as ky}from"nfets/core";var gn=(function(o){return o.Autorizada="100",o.AutorizadaForaDoPrazo="150",o.UsoDenegado="110",o.NfeDenegada="205",o.DenegadaIrregularidadeEmissor="301",o.DenegadaIrregularidadeDestinatario="302",o.DenegadaNaoHabilitadaNaUf="303",o})({});var _c=class extends ft{static{a(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=sr.Synchronous;let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=await this.handleNfeBatch(n.value,e.xml);if(r.isLeft())return r;let[i]=r.value;this.transmitter.configure({cUF:i.infNFe.ide.cUF,tpAmb:i.infNFe.ide.tpAmb,...t,contingency:this.contingency(i),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let s=await this.transmitter.autorizacao({...e,NFe:r.value});if(s.isLeft())return s;let c=s.value;return this.isLotNotProcessed(c,e)?Aa(await this.handleLotNotProcessed(r.value,c)):e.indSinc===sr.Synchronous&&this.isSyncResponse(c)?Aa(await this.response(r.value,c)):e.indSinc===sr.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):Wc(new Da)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(gn).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let r={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(r,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],r=await Promise.all(e.map((i,s)=>this.protocol(i,n[s])));return r.length>1?{xml:r,response:t}:{xml:r[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 r=await this.toolkit.parse(t),i=await this.signNfe(e,r);return i.isLeft()?Wc(i.value):Aa([i.value])}let n=await Promise.all(t.map(async r=>this.signNfe(e,await this.toolkit.parse(r))));return n.some(r=>r.isLeft())?Wc(new ky("Failed to sign a NFe in batch")):Aa(n.filter(r=>r.isRight()).map(r=>r.value))}isLotNotProcessed(e,t){let{cStat:n}=e.retEnviNFe,r=t.indSinc??sr.Synchronous;return r===sr.Asynchronous&&n!==Up.LotReceived.toString()||r===sr.Synchronous&&n!==Up.ProcessedBatch.toString()}async handleLotNotProcessed(e,t){return this.response(e,this.toRejectionSyncResponse(e,t))}toRejectionSyncResponse(e,t){let{retEnviNFe:n}=t,r=e.map(i=>this.buildRejectionProtNFe(i,n));return{retEnviNFe:{...n,protNFe:r.length===1?r[0]:r}}}buildRejectionProtNFe(e,t){return{$:{versao:t.$.versao},infProt:{tpAmb:t.tpAmb,verAplic:t.verAplic,chNFe:e.infNFe.$.Id?.substring(3)??"",dhRecbto:t.dhRecbto,nProt:"",digVal:"",cStat:t.cStat,xMotivo:t.xMotivo}}}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}hasReceipt(e){return"infRec"in e.retEnviNFe&&!!e.retEnviNFe.infRec.nRec}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:r}=t.retEnviNFe,{nRec:i}=r;for(let s=1;s<=3;s++){await new Promise(p=>setTimeout(p,1e3));let c=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(c.isLeft())continue;let f=c.value.retConsReciNFe.protNFe;if(!(!f||Array.isArray(f)&&f.length===0))return Aa(await this.response(e,{retEnviNFe:{...c.value.retConsReciNFe,protNFe:f}}))}return Wc(new Da)}contingency(e){let{dhCont:t,xJust:n,tpEmis:r}=e.infNFe.ide;if(!(!t||!n||r===Ue.Normal))return{dhCont:t,xJust:n}}};import{left as gu,NFeTsError as vu,right as yu,Validates as e0}from"nfets/core";function $y(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a($y,"_ts_decorate");function Qp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Qp,"_ts_metadata");var xa=class extends ft{static{a(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.issuerFromIdentification(e.identification);if(r.isLeft())return r;this.transmitter.configure({...t,certificate:n.value});let i=e.ano??new Date().getFullYear().toString().slice(2),s=["ID",t.cUF,i,r.value.idDigits,e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),c=Jr({$:{xmlns:this.xmlns},infInut:{$:{Id:s},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:i,CNPJ:r.value.CNPJ,CPF:r.value.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},t.cUF),f=this.validated(c);if(f.isLeft())return f;let p=await this.signer.sign(f.value,{tag:"infInut",mark:"Id"},n.value);if(p.isLeft())return p;let u=await this.transmitter.inutilizacao(p.value);if(u.isLeft())return u;let h=u.value,v=h.retInutNFe;if(!v)return gu(new vu("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=v.$.versao,S=await this.protocol(this.versionedInutNFe(p.value,y),v,y);return yu({xml:S,response:h})}versionedInutNFe(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infInut;if(!Object.values(Xd).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"inutNFe"});let i={inutNFe:e,retInutNFe:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procInutNFe"})}validated(e){let t=this.errors();return t?gu(new vu(t.join(", "))):yu(e)}};$y([e0(Di),Qp("design:type",Function),Qp("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Qp("design:returntype",void 0)],xa.prototype,"validated",null);var Kc=class extends ft{static{a(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 kc=class extends ft{static{a(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Su=class extends ft{static{a(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))}};import{left as t0,NFeTsError as o0,right as i0}from"nfets/core";var Cu=class extends rr{static{a(this,"NfeManifestacaoPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:e.xJust?{xJust:e.xJust}:{},nSeqEvento:e.nSeqEvento??1,identification:e.identification,cOrgao:"91"},r=await this.event(e.tpEvento,n,t);if(r.isLeft())return r;let i=r.value,s=Qr[e.tpEvento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i});if(c.isLeft())return c;let f=c.value,p=f.retEnvEvento.retEvento;if(!p)return t0(new o0("Evento de manifesta\xE7\xE3o n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return i0({xml:u,response:f})}};import{gunzipSync as n0}from"zlib";import{right as r0}from"nfets/core";var bu=class extends ft{static{a(this,"NfeDistribuicaoDFePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.issuerFromIdentification(e.identification);if(r.isLeft())return r;this.transmitter.configure({cUF:"91",...t,certificate:n.value});let i=await this.transmitter.distribuicaoDFe({tpAmb:t.tpAmb,cUFAutor:e.cUFAutor,CNPJ:r.value.CNPJ,CPF:r.value.CPF,consChNFe:{chNFe:e.chNFe}});if(i.isLeft())return i;let s=i.value.nfeDistDFeInteresseResult.retDistDFeInt,c=s.loteDistDFeInt?.docZip;return r0({response:s,xml:c?n0(Buffer.from(c.$value,"base64")).toString("utf8"):void 0})}};import s0 from"crypto";import{right as $c,SignatureAlgorithm as a0,unreachable as c0}from"nfets/core";var pt=class{static{a(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:$c(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):c0(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:r}=t,i=e.infNFe.ide.tpAmb,s=Number.parseInt(r),c=e.infNFe.$.Id?.substring(3),f=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ue.OFFLINE)return`${c}|${f}|${i}|${s}`;let u=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),h=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${f}|${i}|${h}|${v}|${u}|${s}`}async execute200(e,t){let{urlService:n,CSC:r}=t,i=this.getSequence(e,t),s=s0.createHash("sha1").update(`${i}${r}`).digest("hex").toUpperCase(),c=`${n}?p=`;return Promise.resolve($c(`${c}${i}|${s}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:r}=e,i=t?t.replace(/\D/g,""):n?n.replace(/[^A-Z0-9]/g,""):r?.replace(/\D/g,"");return i?i.length===11?{tipo:"2",documento:i}:i.length===14?{tipo:"1",documento:i}:r&&i.length>=3&&i.length<=14?{tipo:"3",documento:i}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,r=`${n}?p=`,i=e.infNFe.ide.tpAmb,s=e.infNFe.$.Id?.substring(3),c=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ue.OFFLINE)return $c(`${r}${s}|${c}|${i}`);let f=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),p=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:u,documento:h}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),v=`${s}|${c}|${i}|${f}|${p}|${u}|${h}`,y=await this.certificateRepository.sign(v,t.certificate,a0.SHA1);return y.isLeft()?y:$c(`${r}${v}|${y.value}`)}};import{StateCodes as Ou}from"nfets/core";import{Environment as D}from"nfets/core";var Gp={AC:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[D.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"}},[D.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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[D.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"}},[D.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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[D.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"}},[D.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:{[D.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"}},[D.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:{[D.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"}},[D.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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[D.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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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"}},[D.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[D.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"}},[D.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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[D.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:"nfeRecepcaoEventoNF",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"}},[D.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:"nfeRecepcaoEventoNF",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:{[D.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[D.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[D.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"}},[D.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:{[D.Homolog]:{},[D.Production]:{}}};import{Environment as Nu,StateCodes as x}from"nfets/core";var Iu={[Nu.Homolog]:{[x.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[x.AL]:"www.sefaz.al.gov.br/nfce/consulta",[x.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[x.AM]:"www.sefaz.am.gov.br/nfce/consulta",[x.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[x.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[x.DF]:"www.fazenda.df.gov.br/nfce/consulta",[x.ES]:"www.sefaz.es.gov.br/nfce/consulta",[x.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[x.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[x.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[x.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[x.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[x.PA]:"www.sefa.pa.gov.br/nfce/consulta",[x.PB]:"www.sefaz.pb.gov.br/nfcehom",[x.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[x.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[x.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[x.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[x.RN]:"www.set.rn.gov.br/nfce/consulta",[x.RO]:"www.sefin.ro.gov.br/nfce/consulta",[x.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[x.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[x.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[x.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[x.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[x.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Nu.Production]:{[x.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[x.AL]:"www.sefaz.al.gov.br/nfce/consulta",[x.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[x.AM]:"www.sefaz.am.gov.br/nfce/consulta",[x.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[x.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[x.DF]:"www.fazenda.df.gov.br/nfce/consulta",[x.ES]:"www.sefaz.es.gov.br/nfce/consulta",[x.GO]:"www.sefaz.go.gov.br/nfce/consulta",[x.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[x.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[x.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[x.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[x.PA]:"www.sefa.pa.gov.br/nfce/consulta",[x.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[x.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[x.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[x.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[x.RN]:"www.set.rn.gov.br/nfce/consulta",[x.RO]:"www.sefin.ro.gov.br/nfce/consulta",[x.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[x.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[x.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[x.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[x.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[x.TO]:"www.sefaz.to.gov.br/nfce/consulta",[x.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};import{StateCodes as $}from"nfets/core";var f0={[$.AC]:"SVRS",[$.AL]:"SVRS",[$.AM]:"AM",[$.AP]:"SVRS",[$.BA]:"SVRS",[$.CE]:"SVRS",[$.DF]:"SVRS",[$.ES]:"SVRS",[$.GO]:"GO",[$.MA]:"SVRS",[$.MG]:"MG",[$.MS]:"MS",[$.MT]:"MT",[$.PA]:"SVRS",[$.PB]:"SVRS",[$.PE]:"SVRS",[$.PI]:"SVRS",[$.PR]:"PR",[$.RJ]:"SVRS",[$.RN]:"SVRS",[$.RO]:"SVRS",[$.RR]:"SVRS",[$.RS]:"RS",[$.SC]:"SVRS",[$.SE]:"SVRS",[$.SP]:"SP",[$.TO]:"SVRS",SVRS:"SVRS"},Ru=f0;var ef=class extends yo{static{a(this,"NfceAutorizacaoPayload")}};import{Validates as l0}from"nfets/core";function p0(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(p0,"_ts_decorate");function qp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qp,"_ts_metadata");var ot=class extends Bt{static{a(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={timeout:6e4};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,r=Ru[t],c=Gp[r][n][e.service];if(c)return c;let f=Object.keys(Ou).find(p=>Ou[p]===t);return Gp[f][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return Iu[n][t]}async autorizacao(e){return super.autorizacao(e)}};p0([l0(ef),qp("design:type",Function),qp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),qp("design:returntype",Promise)],ot.prototype,"autorizacao",null);var Fu=class extends Jc{static{a(this,"NfceCancelPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var tf=class extends _c{static{a(this,"NfceAuthorizerPipeline")}certificate;qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};import{DigestAlgorithm as d0,SignatureAlgorithm as Du,left as Zp,right as of,NFeTsError as Yp}from"nfets/core";var Au=class extends tf{static{a(this,"NfceContingencyXmlAuthorizerPipeline")}certificate;qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}async handleNfeBatch(e,t){if(!Array.isArray(t))return this.parseContingencyXml(t).then(r=>r.isLeft()?r:of([r.value]));let n=await Promise.all(t.map(r=>this.parseContingencyXml(r)));if(n.some(r=>r.isLeft())){let r=n.find(i=>i.isLeft());return Zp(r?.value??new Yp("NFC-e XML must be signed"))}return of(n.filter(r=>r.isRight()).map(r=>r.value))}async parseContingencyXml(e){let t=await this.toolkit.parse(e);return this.assertSignatureIntegrity(t)}async assertSignatureIntegrity(e){let t=e.Signature?.SignedInfo?.Reference?.DigestValue;if(!t)return Zp(new Yp("NFC-e XML must be signed"));let n=await this.rebuildInfNFeNode(e);if(n.isLeft())return n;let r=this.signatureAlgorithm(e);return this.toolkit.digest(n.value,r)!==t?Zp(new Yp("NFC-e XML signature digest mismatch")):of(e)}async rebuildInfNFeNode(e){let t=e.$?.xmlns,{$:n,...r}=e.infNFe??{};delete n.xmlns;let i=await this.toolkit.build({$:{xmlns:t,...n},...r},{headless:!0,rootName:"infNFe",renderOpts:{pretty:!1}});return of(i)}signatureAlgorithm(e){return e.Signature?.SignedInfo?.Reference?.DigestMethod?.$?.Algorithm===d0.SHA256?Du.SHA256:Du.SHA1}};var xu=class extends xa{static{a(this,"NfceVoidRangePipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var wu=class extends Kc{static{a(this,"NfceConsultStatusPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var Pu=class extends kc{static{a(this,"NfceConsultProtocoloPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};import MS from"path";import{left as jS,right as ql}from"nfets/core";import{Allow as AS,IsNotEmpty as xS,IsNotEmptyObject as im,IsObject as nm,IsString as wS,ValidateNested as rm}from"class-validator";import{ArrayMaxSize as tm,ArrayMinSize as DS,IsNotEmptyObject as Ul,IsObject as Ql,IsOptional as ct,IsString as om,ValidateNested as Fe}from"class-validator";import{Type as De}from"class-transformer";import{ArrayMaxSize as Eu,IsArray as zu,IsEnum as u0,IsOptional as Re,IsString as P,ValidateNested as _r}from"class-validator";import{Type as Kr}from"class-transformer";import{Choice as h0,TransformDateString as rf,TransformDecimal as m0}from"nfets/core";import{StateCodes as g0}from"nfets/core";function I(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(I,"_ts_decorate");function O(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(O,"_ts_metadata");var xi=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};I([P(),O("design:type",String)],xi.prototype,"cUF",void 0);I([P(),O("design:type",String)],xi.prototype,"AAMM",void 0);I([P(),O("design:type",String)],xi.prototype,"CNPJ",void 0);I([P(),O("design:type",String)],xi.prototype,"mod",void 0);I([P(),O("design:type",String)],xi.prototype,"serie",void 0);I([P(),O("design:type",String)],xi.prototype,"nNF",void 0);var Qt=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};I([P(),O("design:type",String)],Qt.prototype,"cUF",void 0);I([P(),O("design:type",String)],Qt.prototype,"AAMM",void 0);I([Re(),P(),O("design:type",String)],Qt.prototype,"CNPJ",void 0);I([Re(),P(),O("design:type",String)],Qt.prototype,"CPF",void 0);I([P(),O("design:type",String)],Qt.prototype,"IE",void 0);I([P(),O("design:type",String)],Qt.prototype,"mod",void 0);I([P(),O("design:type",String)],Qt.prototype,"serie",void 0);I([P(),O("design:type",String)],Qt.prototype,"nNF",void 0);Qt=I([h0({properties:["CNPJ","CPF"],required:!0})],Qt);var Wr=class{static{a(this,"RefECF")}mod;nECF;nCOO};I([P(),O("design:type",String)],Wr.prototype,"mod",void 0);I([P(),O("design:type",String)],Wr.prototype,"nECF",void 0);I([P(),O("design:type",String)],Wr.prototype,"nCOO",void 0);var wi=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};I([Re(),P(),O("design:type",String)],wi.prototype,"refNFe",void 0);I([Re(),P(),O("design:type",String)],wi.prototype,"refNFeSig",void 0);I([Re(),_r(),Kr(()=>xi),O("design:type",typeof IRefNF>"u"?Object:IRefNF)],wi.prototype,"refNF",void 0);I([Re(),_r(),Kr(()=>Qt),O("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],wi.prototype,"refNFP",void 0);I([Re(),P(),O("design:type",String)],wi.prototype,"refCTe",void 0);I([Re(),_r(),Kr(()=>Wr),O("design:type",typeof IRefECF>"u"?Object:IRefECF)],wi.prototype,"refECF",void 0);var ar=class{static{a(this,"CompraGov")}tpEnteGov;pRedutor;tpOperGov;refDFeAnt};I([P(),O("design:type",String)],ar.prototype,"tpEnteGov",void 0);I([m0({fixed:4}),O("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"pRedutor",void 0);I([P(),O("design:type",String)],ar.prototype,"tpOperGov",void 0);I([Re(),P(),O("design:type",String)],ar.prototype,"refDFeAnt",void 0);var nf=class{static{a(this,"PagAntecipado")}refNFe};I([zu(),Eu(99),P({each:!0}),O("design:type",Array)],nf.prototype,"refNFe",void 0);var B=class{static{a(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;dPrevEntrega;tpNF;idDest;cMunFG;cMunFGIBS;tpImp;tpEmis;cDV="";tpAmb;finNFe;tpNFDebito;tpNFCredito;indFinal;indPres;indIntermed;cIndOp;procEmi;verProc;dhCont;xJust;NFref;gCompraGov;gPagAntecipado};I([u0(g0),O("design:type",typeof StateCode>"u"?Object:StateCode)],B.prototype,"cUF",void 0);I([P(),O("design:type",String)],B.prototype,"cNF",void 0);I([P(),O("design:type",String)],B.prototype,"natOp",void 0);I([P(),O("design:type",String)],B.prototype,"mod",void 0);I([P(),O("design:type",String)],B.prototype,"serie",void 0);I([P(),O("design:type",String)],B.prototype,"nNF",void 0);I([rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhEmi",void 0);I([Re(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhSaiEnt",void 0);I([Re(),rf({format:"YYYY-MM-DD"}),O("design:type",String)],B.prototype,"dPrevEntrega",void 0);I([P(),O("design:type",String)],B.prototype,"tpNF",void 0);I([P(),O("design:type",String)],B.prototype,"idDest",void 0);I([P(),O("design:type",String)],B.prototype,"cMunFG",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"cMunFGIBS",void 0);I([P(),O("design:type",String)],B.prototype,"tpImp",void 0);I([P(),O("design:type",typeof TpEmis>"u"?Object:TpEmis)],B.prototype,"tpEmis",void 0);I([P(),Re(),O("design:type",String)],B.prototype,"cDV",void 0);I([P(),O("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],B.prototype,"tpAmb",void 0);I([P(),O("design:type",String)],B.prototype,"finNFe",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"tpNFDebito",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"tpNFCredito",void 0);I([P(),O("design:type",String)],B.prototype,"indFinal",void 0);I([P(),O("design:type",String)],B.prototype,"indPres",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"indIntermed",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"cIndOp",void 0);I([P(),O("design:type",String)],B.prototype,"procEmi",void 0);I([P(),O("design:type",String)],B.prototype,"verProc",void 0);I([Re(),P(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhCont",void 0);I([Re(),P(),O("design:type",String)],B.prototype,"xJust",void 0);I([Re(),zu(),Eu(999),_r({each:!0}),Kr(()=>wi),O("design:type",Array)],B.prototype,"NFref",void 0);I([Re(),_r(),Kr(()=>ar),O("design:type",typeof ICompraGov>"u"?Object:ICompraGov)],B.prototype,"gCompraGov",void 0);I([Re(),_r(),Kr(()=>nf),O("design:type",typeof IPagAntecipado>"u"?Object:IPagAntecipado)],B.prototype,"gPagAntecipado",void 0);import{IsOptional as cr,IsString as Wo,ValidateNested as v0}from"class-validator";import{Choice as y0}from"nfets/core";import{Type as S0}from"class-transformer";import{IsOptional as sf,IsString as Io}from"class-validator";function bo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(bo,"_ts_decorate");function No(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(No,"_ts_metadata");var it=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};bo([Io(),No("design:type",String)],it.prototype,"xLgr",void 0);bo([Io(),No("design:type",String)],it.prototype,"nro",void 0);bo([sf(),Io(),No("design:type",String)],it.prototype,"xCpl",void 0);bo([Io(),No("design:type",String)],it.prototype,"xBairro",void 0);bo([Io(),No("design:type",String)],it.prototype,"cMun",void 0);bo([Io(),No("design:type",String)],it.prototype,"xMun",void 0);bo([Io(),No("design:type",String)],it.prototype,"UF",void 0);bo([Io(),No("design:type",String)],it.prototype,"CEP",void 0);bo([sf(),Io(),No("design:type",String)],it.prototype,"cPais",void 0);bo([sf(),Io(),No("design:type",String)],it.prototype,"xPais",void 0);bo([sf(),Io(),No("design:type",String)],it.prototype,"fone",void 0);function kt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(kt,"_ts_decorate");function Ro(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ro,"_ts_metadata");var Ze=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT;ISUFEmit};kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"CNPJ",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"CPF",void 0);kt([Wo(),Ro("design:type",String)],Ze.prototype,"xNome",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"xFant",void 0);kt([v0(),S0(()=>it),Ro("design:type",typeof it>"u"?Object:it)],Ze.prototype,"enderEmit",void 0);kt([Wo(),Ro("design:type",String)],Ze.prototype,"IE",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"IEST",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"IM",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"CNAE",void 0);kt([Wo(),Ro("design:type",String)],Ze.prototype,"CRT",void 0);kt([cr(),Wo(),Ro("design:type",String)],Ze.prototype,"ISUFEmit",void 0);Ze=kt([y0({properties:["CNPJ","CPF"],required:!0})],Ze);import{IsOptional as Pi,IsString as Ei,ValidateNested as C0}from"class-validator";import{Type as b0}from"class-transformer";import{IsOptional as Do,IsString as Ao}from"class-validator";function Oo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Oo,"_ts_decorate");function Fo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Fo,"_ts_metadata");var xt=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"xLgr",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"nro",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"xCpl",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"xBairro",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"cMun",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"xMun",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"UF",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"CEP",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"cPais",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"xPais",void 0);Oo([Do(),Ao(),Fo("design:type",String)],xt.prototype,"fone",void 0);import{Choice as N0}from"nfets/core";function xo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(xo,"_ts_decorate");function _o(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(_o,"_ts_metadata");var We=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"CNPJ",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"CPF",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"idEstrangeiro",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"xNome",void 0);xo([Pi(),C0(),b0(()=>xt),_o("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],We.prototype,"enderDest",void 0);xo([Ei(),_o("design:type",String)],We.prototype,"indIEDest",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"IE",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"ISUF",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"IM",void 0);xo([Pi(),Ei(),_o("design:type",String)],We.prototype,"email",void 0);We=xo([N0({properties:["CNPJ","CPF"],required:!0})],We);import{IsOptional as Ko,IsString as dt}from"class-validator";import{Choice as I0}from"nfets/core";function nt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(nt,"_ts_decorate");function lt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(lt,"_ts_metadata");var ee=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"CNPJ",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"CPF",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"xNome",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"xLgr",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"nro",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"xCpl",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"xBairro",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"cMun",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"xMun",void 0);nt([dt(),lt("design:type",String)],ee.prototype,"UF",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"CEP",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"cPais",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"xPais",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"fone",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"email",void 0);nt([Ko(),dt(),lt("design:type",String)],ee.prototype,"IE",void 0);ee=nt([I0({properties:["CNPJ","CPF"]})],ee);import{IsOptional as Mu,IsString as ju}from"class-validator";import{Choice as R0}from"nfets/core";function Xp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Xp,"_ts_decorate");function Tu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Tu,"_ts_metadata");var ko=class{static{a(this,"AutXML")}CNPJ;CPF};Xp([Mu(),ju(),Tu("design:type",String)],ko.prototype,"CNPJ",void 0);Xp([Mu(),ju(),Tu("design:type",String)],ko.prototype,"CPF",void 0);ko=Xp([R0({properties:["CNPJ","CPF"]})],ko);import{IsOptional as O0,IsString as Lu}from"class-validator";function Bu(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Bu,"_ts_decorate");function Vu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Vu,"_ts_metadata");var vn=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};Bu([Lu(),Vu("design:type",String)],vn.prototype,"CNPJ",void 0);Bu([O0(),Lu(),Vu("design:type",String)],vn.prototype,"idCadIntTran",void 0);import{IsOptional as Hu,IsString as _p}from"class-validator";function Jp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Jp,"_ts_decorate");function Wp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Wp,"_ts_metadata");var zi=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Jp([_p(),Wp("design:type",String)],zi.prototype,"UFSaidaPais",void 0);Jp([Hu(),_p(),Wp("design:type",String)],zi.prototype,"xLocExporta",void 0);Jp([Hu(),_p(),Wp("design:type",String)],zi.prototype,"xLocDespacho",void 0);import{IsOptional as $p,IsString as el}from"class-validator";function Kp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Kp,"_ts_decorate");function kp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(kp,"_ts_metadata");var Ti=class{static{a(this,"Compra")}xNEmp;xPed;xCont};Kp([$p(),el(),kp("design:type",String)],Ti.prototype,"xNEmp",void 0);Kp([$p(),el(),kp("design:type",String)],Ti.prototype,"xPed",void 0);Kp([$p(),el(),kp("design:type",String)],Ti.prototype,"xCont",void 0);import{IsOptional as Uu,IsString as es}from"class-validator";function kr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(kr,"_ts_decorate");function $r(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a($r,"_ts_metadata");var $t=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};kr([es(),$r("design:type",String)],$t.prototype,"CNPJ",void 0);kr([es(),$r("design:type",String)],$t.prototype,"xContato",void 0);kr([es(),$r("design:type",String)],$t.prototype,"email",void 0);kr([es(),$r("design:type",String)],$t.prototype,"fone",void 0);kr([Uu(),es(),$r("design:type",String)],$t.prototype,"idCSRT",void 0);kr([Uu(),es(),$r("design:type",String)],$t.prototype,"hashCSRT",void 0);import{IsOptional as Ha,ValidateNested as Ua}from"class-validator";import{Type as Qa}from"class-transformer";import{IsOptional as $o}from"class-validator";import{TransformDecimal as Z}from"nfets/core";function G(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(G,"_ts_decorate");function q(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(q,"_ts_metadata");var V=class{static{a(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBC",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSDeson",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPUFDest",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFDest",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFRemet",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCP",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBCST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPSTRet",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMono",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMono",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoReten",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoReten",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoRet",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoRet",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vProd",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFrete",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vSeg",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vDesc",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vII",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPI",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPIDevol",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vPIS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vCOFINS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vOutro",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vNF",void 0);G([$o(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vTotTrib",void 0);import{IsOptional as wo,IsString as Qu}from"class-validator";import{TransformDecimal as ei}from"nfets/core";function eo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(eo,"_ts_decorate");function to(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(to,"_ts_metadata");var ut=class{static{a(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vServ",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBC",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISS",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vPIS",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vCOFINS",void 0);eo([Qu(),to("design:type",String)],ut.prototype,"dCompet",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDeducao",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vOutro",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescIncond",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescCond",void 0);eo([wo(),ei({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISSRet",void 0);eo([wo(),Qu(),to("design:type",String)],ut.prototype,"cRegTrib",void 0);import{IsOptional as lr}from"class-validator";import{TransformDecimal as dr}from"nfets/core";function fr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(fr,"_ts_decorate");function pr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(pr,"_ts_metadata");var Po=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vRetPIS",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vRetCOFINS",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vRetCSLL",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vBCIRRF",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vIRRF",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vBCRetPrev",void 0);fr([lr(),dr({fixed:2}),pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vRetPrev",void 0);import{IsOptional as La,ValidateNested as af}from"class-validator";import{IsOptional as Ea,ValidateNested as Gu}from"class-validator";import{TransformDecimal as il}from"nfets/core";function tl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(tl,"_ts_decorate");function ol(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ol,"_ts_metadata");var ur=class{static{a(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};tl([il({fixed:2}),ol("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDif",void 0);tl([il({fixed:2}),ol("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDevTrib",void 0);tl([il({fixed:2}),ol("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vIBSMun",void 0);import{Type as qu}from"class-transformer";import{TransformDecimal as sl}from"nfets/core";function nl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(nl,"_ts_decorate");function rl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(rl,"_ts_metadata");var hr=class{static{a(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};nl([sl({fixed:2}),rl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hr.prototype,"vDif",void 0);nl([sl({fixed:2}),rl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hr.prototype,"vDevTrib",void 0);nl([sl({fixed:2}),rl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hr.prototype,"vIBSUF",void 0);import{TransformDecimal as al}from"nfets/core";function wa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(wa,"_ts_decorate");function Pa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Pa,"_ts_metadata");var Mi=class{static{a(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};wa([Ea(),Gu(),qu(()=>hr),Pa("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Mi.prototype,"gIBSUF",void 0);wa([Ea(),Gu(),qu(()=>ur),Pa("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Mi.prototype,"gIBSMun",void 0);wa([Ea(),al({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vIBS",void 0);wa([Ea(),al({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCredPres",void 0);wa([Ea(),al({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as F0}from"nfets/core";import{Type as cf}from"class-transformer";import{TransformDecimal as Ma}from"nfets/core";import{IsOptional as ja}from"class-validator";function za(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(za,"_ts_decorate");function Ta(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ta,"_ts_metadata");var ji=class{static{a(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ji.prototype,"vDif",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ji.prototype,"vDevTrib",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ji.prototype,"vCBS",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ji.prototype,"vCredPres",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ji.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as is}from"nfets/core";import{IsOptional as ns}from"class-validator";function ts(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ts,"_ts_decorate");function os(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(os,"_ts_metadata");var ti=class{static{a(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vIBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vCBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vIBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vCBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vIBSMonoRet",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ti.prototype,"vCBSMonoRet",void 0);import{IsOptional as Xu}from"class-validator";import{TransformDecimal as Ju}from"nfets/core";function Zu(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Zu,"_ts_decorate");function Yu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Yu,"_ts_metadata");var rs=class{static{a(this,"EstornoCredTot")}vIBSEstCred;vCBSEstCred};Zu([Xu(),Ju({fixed:2}),Yu("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rs.prototype,"vIBSEstCred",void 0);Zu([Xu(),Ju({fixed:2}),Yu("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rs.prototype,"vCBSEstCred",void 0);function Ba(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ba,"_ts_decorate");function Va(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Va,"_ts_metadata");var Eo=class{static{a(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono;gEstornoCred};Ba([La(),F0({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBCIBSCBS",void 0);Ba([La(),af(),cf(()=>Mi),Va("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],Eo.prototype,"gIBS",void 0);Ba([La(),af(),cf(()=>ji),Va("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],Eo.prototype,"gCBS",void 0);Ba([La(),af(),cf(()=>ti),Va("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],Eo.prototype,"gMono",void 0);Ba([La(),af(),cf(()=>rs),Va("design:type",typeof IEstornoCredTot>"u"?Object:IEstornoCredTot)],Eo.prototype,"gEstornoCred",void 0);import{TransformDecimal as x0}from"nfets/core";import{IsOptional as w0}from"class-validator";function D0(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(D0,"_ts_decorate");function A0(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(A0,"_ts_metadata");var mr=class{static{a(this,"ISTot")}vIS="0.00"};D0([w0(),x0({fixed:2}),A0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mr.prototype,"vIS",void 0);import{TransformDecimal as P0}from"nfets/core";function ss(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ss,"_ts_decorate");function as(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(as,"_ts_metadata");var oo=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib;ISTot;IBSCBSTot;vNFTot};ss([Ua(),Qa(()=>V),as("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],oo.prototype,"ICMSTot",void 0);ss([Ha(),Ua(),Qa(()=>ut),as("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],oo.prototype,"ISSQNtot",void 0);ss([Ha(),Ua(),Qa(()=>Po),as("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],oo.prototype,"retTrib",void 0);ss([Ha(),Ua(),Qa(()=>mr),as("design:type",typeof IISTot>"u"?Object:IISTot)],oo.prototype,"ISTot",void 0);ss([Ha(),Ua(),Qa(()=>Eo),as("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],oo.prototype,"IBSCBSTot",void 0);ss([Ha(),P0({fixed:2}),as("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oo.prototype,"vNFTot",void 0);import{ArrayMaxSize as ku,IsOptional as Cr,IsString as cl,ValidateNested as Ga}from"class-validator";import{Type as qa}from"class-transformer";import{IsOptional as vr,IsString as yr}from"class-validator";import{Choice as E0}from"nfets/core";function yn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(yn,"_ts_decorate");function gr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gr,"_ts_metadata");var ht=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};yn([vr(),yr(),gr("design:type",String)],ht.prototype,"CNPJ",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"CPF",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"xNome",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"IE",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"xEnder",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"xMun",void 0);yn([vr(),yr(),gr("design:type",String)],ht.prototype,"UF",void 0);ht=yn([E0({properties:["CNPJ","CPF"]})],ht);import{IsOptional as ps,IsString as Wu}from"class-validator";import{TransformDecimal as ff}from"nfets/core";function cs(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(cs,"_ts_decorate");function fs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(fs,"_ts_metadata");var Gt=class{static{a(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};cs([ps(),ff({fixed:2}),fs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vServ",void 0);cs([ps(),ff({fixed:2}),fs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vBCRet",void 0);cs([ps(),ff({fixed:4}),fs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"pICMSRet",void 0);cs([ps(),ff({fixed:2}),fs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vICMSRet",void 0);cs([ps(),Wu(),fs("design:type",String)],Gt.prototype,"CFOP",void 0);cs([ps(),Wu(),fs("design:type",String)],Gt.prototype,"cMunFG",void 0);import{IsOptional as us,IsString as hs}from"class-validator";function ls(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ls,"_ts_decorate");function ds(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ds,"_ts_metadata");var oi=class{static{a(this,"VeicTransp")}placa;UF;RNTC};ls([us(),hs(),ds("design:type",String)],oi.prototype,"placa",void 0);ls([us(),hs(),ds("design:type",String)],oi.prototype,"UF",void 0);ls([us(),hs(),ds("design:type",String)],oi.prototype,"RNTC",void 0);var Sr=class{static{a(this,"Reboque")}placa;UF;RNTC};ls([us(),hs(),ds("design:type",String)],Sr.prototype,"placa",void 0);ls([us(),hs(),ds("design:type",String)],Sr.prototype,"UF",void 0);ls([us(),hs(),ds("design:type",String)],Sr.prototype,"RNTC",void 0);import{IsOptional as vs,IsString as pf}from"class-validator";import{TransformDecimal as _u}from"nfets/core";function ms(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ms,"_ts_decorate");function gs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gs,"_ts_metadata");var ii=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};ms([vs(),pf(),gs("design:type",String)],ii.prototype,"qVol",void 0);ms([vs(),pf(),gs("design:type",String)],ii.prototype,"esp",void 0);ms([vs(),pf(),gs("design:type",String)],ii.prototype,"marca",void 0);ms([vs(),pf(),gs("design:type",String)],ii.prototype,"nVol",void 0);ms([vs(),_u({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"pesoL",void 0);ms([vs(),_u({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"pesoB",void 0);import{Choice as Ku}from"nfets/core";function Bi(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Bi,"_ts_decorate");function Sn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Sn,"_ts_metadata");var mt=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Bi([cl(),Sn("design:type",String)],mt.prototype,"modFrete",void 0);Bi([Cr(),Ga(),qa(()=>ht),Sn("design:type",typeof ht>"u"?Object:ht)],mt.prototype,"transporta",void 0);Bi([Cr(),Ga(),qa(()=>Gt),Sn("design:type",typeof Gt>"u"?Object:Gt)],mt.prototype,"retTransp",void 0);Bi([Cr(),Ga(),qa(()=>oi),Sn("design:type",typeof oi>"u"?Object:oi)],mt.prototype,"veicTransp",void 0);Bi([Cr(),Ga({each:!0}),qa(()=>Sr),ku(5),Sn("design:type",Array)],mt.prototype,"reboque",void 0);Bi([Cr(),cl(),Sn("design:type",String)],mt.prototype,"vagao",void 0);Bi([Cr(),cl(),Sn("design:type",String)],mt.prototype,"balsa",void 0);Bi([Cr(),Ga({each:!0}),qa(()=>ii),ku(5e3),Sn("design:type",Array)],mt.prototype,"vol",void 0);mt=Bi([Ku({properties:["veicTransp","reboque"]}),Ku({properties:["vagao","balsa"]})],mt);import{ArrayMaxSize as z0,IsOptional as Ui,IsString as fl,ValidateNested as $u}from"class-validator";import{Type as eh}from"class-transformer";import{TransformDecimal as lf}from"nfets/core";function Li(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Li,"_ts_decorate");function Hi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hi,"_ts_metadata");var Vi=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Li([Ui(),fl(),Hi("design:type",String)],Vi.prototype,"nFat",void 0);Li([Ui(),lf({fixed:2}),Hi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vOrig",void 0);Li([Ui(),lf({fixed:2}),Hi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vDesc",void 0);Li([Ui(),lf({fixed:2}),Hi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vLiq",void 0);var ys=class{static{a(this,"Dup")}nDup;dVenc;vDup};Li([Ui(),fl(),Hi("design:type",String)],ys.prototype,"nDup",void 0);Li([Ui(),fl(),Hi("design:type",String)],ys.prototype,"dVenc",void 0);Li([Ui(),lf({fixed:2}),Hi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ys.prototype,"vDup",void 0);var Cn=class{static{a(this,"Cobr")}fat;dup};Li([Ui(),$u(),eh(()=>Vi),Hi("design:type",typeof Vi>"u"?Object:Vi)],Cn.prototype,"fat",void 0);Li([Ui(),$u({each:!0}),z0(120),eh(()=>ys),Hi("design:type",Array)],Cn.prototype,"dup",void 0);import{ArrayMaxSize as V0,ArrayMinSize as L0,IsOptional as H0,ValidateNested as U0}from"class-validator";import{Type as Q0}from"class-transformer";import{IsOptional as Is,IsString as Za,ValidateNested as T0}from"class-validator";import{Type as M0}from"class-transformer";import{IsOptional as bs,IsString as Ns}from"class-validator";function Ss(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ss,"_ts_decorate");function Cs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Cs,"_ts_metadata");var qt=class{static{a(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"tpIntegra",void 0);Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"CNPJ",void 0);Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"tBand",void 0);Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"cAut",void 0);Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"CNPJReceb",void 0);Ss([bs(),Ns(),Cs("design:type",String)],qt.prototype,"idTermPag",void 0);import{TransformDecimal as j0,TransformDateString as B0}from"nfets/core";function bn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(bn,"_ts_decorate");function Nn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Nn,"_ts_metadata");var io=class{static{a(this,"DetPag")}indPag;tPag;xPag;vPag;dPag;CNPJPag;UFPag;card};bn([Is(),Za(),Nn("design:type",String)],io.prototype,"indPag",void 0);bn([Za(),Nn("design:type",typeof TPag>"u"?Object:TPag)],io.prototype,"tPag",void 0);bn([Is(),Za(),Nn("design:type",String)],io.prototype,"xPag",void 0);bn([j0({fixed:2}),Nn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],io.prototype,"vPag",void 0);bn([Is(),B0({format:"YYYY-MM-DD"}),Nn("design:type",String)],io.prototype,"dPag",void 0);bn([Is(),Za(),Nn("design:type",String)],io.prototype,"CNPJPag",void 0);bn([Is(),Za(),Nn("design:type",String)],io.prototype,"UFPag",void 0);bn([Is(),T0(),M0(()=>qt),Nn("design:type",typeof qt>"u"?Object:qt)],io.prototype,"card",void 0);import{TransformDecimal as G0}from"nfets/core";function th(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(th,"_ts_decorate");function oh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(oh,"_ts_metadata");var In=class{static{a(this,"Pag")}detPag;vTroco};th([U0({each:!0}),L0(1),V0(100),Q0(()=>io),oh("design:type",Array)],In.prototype,"detPag",void 0);th([H0(),G0({fixed:2}),oh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],In.prototype,"vTroco",void 0);import{ArrayMaxSize as pl,IsOptional as br,IsString as Os,ValidateNested as ll}from"class-validator";import{Type as dl}from"class-transformer";function Qi(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Qi,"_ts_decorate");function Gi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Gi,"_ts_metadata");var Rs=class{static{a(this,"InfAdicObs")}xCampo;xTexto};Qi([Os(),Gi("design:type",String)],Rs.prototype,"xCampo",void 0);Qi([Os(),Gi("design:type",String)],Rs.prototype,"xTexto",void 0);var Ya=class{static{a(this,"ProcRef")}nProc;indProc};Qi([br(),Os(),Gi("design:type",String)],Ya.prototype,"nProc",void 0);Qi([br(),Os(),Gi("design:type",String)],Ya.prototype,"indProc",void 0);var zo=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Qi([br(),Os(),Gi("design:type",String)],zo.prototype,"infAdFisco",void 0);Qi([br(),Os(),Gi("design:type",String)],zo.prototype,"infCpl",void 0);Qi([br(),ll({each:!0}),dl(()=>Rs),pl(10),Gi("design:type",Array)],zo.prototype,"obsCont",void 0);Qi([br(),ll({each:!0}),dl(()=>Rs),pl(10),Gi("design:type",Array)],zo.prototype,"obsFisco",void 0);Qi([br(),ll({each:!0}),dl(()=>Ya),pl(100),Gi("design:type",Array)],zo.prototype,"procRef",void 0);import{ArrayMaxSize as ih,IsNotEmptyObject as q0,IsObject as Z0,IsOptional as Nr,IsString as Rn,ValidateNested as nh}from"class-validator";import{Type as ul}from"class-transformer";import{TransformDecimal as uf}from"nfets/core";function wt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(wt,"_ts_decorate");function Pt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Pt,"_ts_metadata");var df=class{static{a(this,"ForDiaAttributes")}dia};wt([Rn(),Pt("design:type",String)],df.prototype,"dia",void 0);var Xa=class{static{a(this,"ForDia")}$;qtde};wt([Z0(),q0(),ul(()=>df),Pt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Xa.prototype,"$",void 0);wt([Rn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xa.prototype,"qtde",void 0);var Ja=class{static{a(this,"Deduc")}xDed;vDed};wt([Rn(),Pt("design:type",String)],Ja.prototype,"xDed",void 0);wt([uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vDed",void 0);var gt=class{static{a(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};wt([Rn(),Pt("design:type",String)],gt.prototype,"safra",void 0);wt([Rn(),Pt("design:type",String)],gt.prototype,"ref",void 0);wt([nh({each:!0}),ih(31),ul(()=>Xa),Pt("design:type",Array)],gt.prototype,"forDia",void 0);wt([Nr(),Rn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotMes",void 0);wt([Nr(),Rn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotAnt",void 0);wt([Nr(),Rn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotGer",void 0);wt([Nr(),nh({each:!0}),ih(10),ul(()=>Ja),Pt("design:type",Array)],gt.prototype,"deduc",void 0);wt([Nr(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vFor",void 0);wt([Nr(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vTotDed",void 0);wt([Nr(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vLiqFor",void 0);import{IsObject as gS,IsOptional as Ys,IsString as _h,ValidateNested as Xs}from"class-validator";import{Type as Js}from"class-transformer";import{ArrayMaxSize as Ps,IsArray as tc,IsObject as Es,IsOptional as J,IsString as be,ValidateNested as ri}from"class-validator";import{TransformDecimal as Yi}from"nfets/core";import{Type as si}from"class-transformer";import{IsOptional as hf,IsString as Ka}from"class-validator";function Wa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Wa,"_ts_decorate");function _a(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(_a,"_ts_metadata");var qi=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};Wa([Ka(),_a("design:type",String)],qi.prototype,"nLote",void 0);Wa([hf(),Ka(),_a("design:type",String)],qi.prototype,"qLote",void 0);Wa([hf(),Ka(),_a("design:type",String)],qi.prototype,"dFab",void 0);Wa([hf(),Ka(),_a("design:type",String)],qi.prototype,"dVal",void 0);Wa([hf(),Ka(),_a("design:type",String)],qi.prototype,"cAgreg",void 0);import{Choice as sS}from"nfets/core";import{IsString as Vt,IsOptional as ka,IsArray as Y0,ValidateNested as X0,ArrayMaxSize as J0,ArrayMinSize as W0}from"class-validator";import{Type as _0}from"class-transformer";import{TransformDecimal as rh,Choice as K0}from"nfets/core";function Ke(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ke,"_ts_decorate");function rt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(rt,"_ts_metadata");var On=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Ke([Vt(),rt("design:type",String)],On.prototype,"nAdicao",void 0);Ke([Vt(),rt("design:type",String)],On.prototype,"nSeqAdic",void 0);Ke([Vt(),rt("design:type",String)],On.prototype,"cFabricante",void 0);Ke([rh({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],On.prototype,"vDescDI",void 0);Ke([ka(),Vt(),rt("design:type",String)],On.prototype,"nDraw",void 0);var _e=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Ke([Vt(),rt("design:type",String)],_e.prototype,"nDI",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"dDI",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"xLocDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"UFDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"dDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"tpViaTransp",void 0);Ke([ka(),rh({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vAFRMM",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"tpIntermedio",void 0);Ke([Vt(),ka(),rt("design:type",String)],_e.prototype,"CNPJ",void 0);Ke([Vt(),ka(),rt("design:type",String)],_e.prototype,"CPF",void 0);Ke([Vt(),ka(),rt("design:type",String)],_e.prototype,"UFTerceiro",void 0);Ke([Y0(),X0({each:!0}),_0(()=>On),J0(999),W0(1),rt("design:type",Array)],_e.prototype,"adi",void 0);_e=Ke([K0({properties:["CNPJ","CPF"],required:!0})],_e);import{Type as k0}from"class-transformer";import{IsOptional as sh,IsString as hl,ValidateNested as $0}from"class-validator";import{TransformDecimal as eS}from"nfets/core";function $a(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a($a,"_ts_decorate");function ec(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ec,"_ts_metadata");var Fs=class{static{a(this,"ExportInd")}nRE;chNFe;qExport};$a([hl(),ec("design:type",String)],Fs.prototype,"nRE",void 0);$a([hl(),ec("design:type",String)],Fs.prototype,"chNFe",void 0);$a([eS({fixed:4}),ec("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fs.prototype,"qExport",void 0);var Ds=class{static{a(this,"DetExport")}nDraw;exportInd};$a([sh(),hl(),ec("design:type",String)],Ds.prototype,"nDraw",void 0);$a([sh(),$0(),k0(()=>Fs),ec("design:type",typeof IExportInd>"u"?Object:IExportInd)],Ds.prototype,"exportInd",void 0);import{IsString as fh}from"class-validator";function ah(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ah,"_ts_decorate");function ch(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ch,"_ts_metadata");var As=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};ah([fh(),ch("design:type",String)],As.prototype,"cProdFisco",void 0);ah([fh(),ch("design:type",String)],As.prototype,"cOperNFF",void 0);import{IsString as ph}from"class-validator";import{TransformDecimal as tS}from"nfets/core";function ml(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ml,"_ts_decorate");function gl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gl,"_ts_metadata");var Ir=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};ml([ph(),gl("design:type",String)],Ir.prototype,"xEmb",void 0);ml([tS({fixed:3}),gl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"qVolEmb",void 0);ml([ph(),gl("design:type",String)],Ir.prototype,"uEmb",void 0);import{IsString as ce}from"class-validator";function se(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(se,"_ts_decorate");function ae(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ae,"_ts_metadata");var X=class{static{a(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};se([ce(),ae("design:type",String)],X.prototype,"tpOp",void 0);se([ce(),ae("design:type",String)],X.prototype,"chassi",void 0);se([ce(),ae("design:type",String)],X.prototype,"cCor",void 0);se([ce(),ae("design:type",String)],X.prototype,"xCor",void 0);se([ce(),ae("design:type",String)],X.prototype,"pot",void 0);se([ce(),ae("design:type",String)],X.prototype,"cilin",void 0);se([ce(),ae("design:type",String)],X.prototype,"pesoL",void 0);se([ce(),ae("design:type",String)],X.prototype,"pesoB",void 0);se([ce(),ae("design:type",String)],X.prototype,"nSerie",void 0);se([ce(),ae("design:type",String)],X.prototype,"tpComb",void 0);se([ce(),ae("design:type",String)],X.prototype,"nMotor",void 0);se([ce(),ae("design:type",String)],X.prototype,"CMT",void 0);se([ce(),ae("design:type",String)],X.prototype,"dist",void 0);se([ce(),ae("design:type",String)],X.prototype,"anoMod",void 0);se([ce(),ae("design:type",String)],X.prototype,"anoFab",void 0);se([ce(),ae("design:type",String)],X.prototype,"tpPint",void 0);se([ce(),ae("design:type",String)],X.prototype,"tpVeic",void 0);se([ce(),ae("design:type",String)],X.prototype,"espVeic",void 0);se([ce(),ae("design:type",String)],X.prototype,"VIN",void 0);se([ce(),ae("design:type",String)],X.prototype,"condVeic",void 0);se([ce(),ae("design:type",String)],X.prototype,"cMod",void 0);se([ce(),ae("design:type",String)],X.prototype,"cCorDENATRAN",void 0);se([ce(),ae("design:type",String)],X.prototype,"lota",void 0);se([ce(),ae("design:type",String)],X.prototype,"tpRest",void 0);import{IsString as lh}from"class-validator";import{TransformDecimal as oS}from"nfets/core";function vl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(vl,"_ts_decorate");function yl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(yl,"_ts_metadata");var Rr=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};vl([lh(),yl("design:type",String)],Rr.prototype,"cProdANVISA",void 0);vl([lh(),yl("design:type",String)],Rr.prototype,"xMotivoIsencao",void 0);vl([oS({fixed:2}),yl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.prototype,"vPMC",void 0);import{IsString as vf}from"class-validator";function mf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(mf,"_ts_decorate");function gf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gf,"_ts_metadata");var Fn=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};mf([vf(),gf("design:type",String)],Fn.prototype,"tpArma",void 0);mf([vf(),gf("design:type",String)],Fn.prototype,"nSerie",void 0);mf([vf(),gf("design:type",String)],Fn.prototype,"nCano",void 0);mf([vf(),gf("design:type",String)],Fn.prototype,"descr",void 0);import{IsString as Zi,IsOptional as ni,IsObject as dh,IsArray as iS,ValidateNested as Sl,ArrayMaxSize as nS}from"class-validator";import{Type as Cl}from"class-transformer";import{TransformDecimal as no}from"nfets/core";function fe(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(fe,"_ts_decorate");function pe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(pe,"_ts_metadata");var xs=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};fe([Zi(),pe("design:type",String)],xs.prototype,"indImport",void 0);fe([Zi(),pe("design:type",String)],xs.prototype,"cUFOrig",void 0);fe([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xs.prototype,"pOrig",void 0);var ws=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};fe([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"qBCProd",void 0);fe([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vAliqProd",void 0);fe([no({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vCIDE",void 0);var Dn=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};fe([Zi(),pe("design:type",String)],Dn.prototype,"nBico",void 0);fe([Zi(),pe("design:type",String)],Dn.prototype,"nBomba",void 0);fe([Zi(),pe("design:type",String)],Dn.prototype,"nTanque",void 0);fe([no({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"vEncIni",void 0);fe([no({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"vEncFin",void 0);var st=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};fe([Zi(),pe("design:type",String)],st.prototype,"cProdANP",void 0);fe([Zi(),pe("design:type",String)],st.prototype,"descANP",void 0);fe([ni(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGLP",void 0);fe([ni(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNn",void 0);fe([ni(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNi",void 0);fe([ni(),no({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vPart",void 0);fe([Zi(),ni(),pe("design:type",String)],st.prototype,"CODIF",void 0);fe([ni(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"qTemp",void 0);fe([Zi(),pe("design:type",String)],st.prototype,"UFCons",void 0);fe([ni(),dh(),Sl(),Cl(()=>ws),pe("design:type",typeof ICIDE>"u"?Object:ICIDE)],st.prototype,"CIDE",void 0);fe([ni(),dh(),Sl(),Cl(()=>Dn),pe("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],st.prototype,"encerrante",void 0);fe([ni(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pBio",void 0);fe([iS(),Sl({each:!0}),Cl(()=>xs),nS(30),ni(),pe("design:type",Array)],st.prototype,"origComb",void 0);import{IsString as rS}from"class-validator";import{TransformDecimal as uh}from"nfets/core";function bl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(bl,"_ts_decorate");function Nl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Nl,"_ts_metadata");var Or=class{static{a(this,"GCred")}cCredPresumido;pCredPresumido;vCredPresumido};bl([rS(),Nl("design:type",String)],Or.prototype,"cCredPresumido",void 0);bl([uh({fixed:4}),Nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Or.prototype,"pCredPresumido",void 0);bl([uh({fixed:2}),Nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Or.prototype,"vCredPresumido",void 0);function M(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(M,"_ts_decorate");function j(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(j,"_ts_metadata");var w=class{static{a(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;tpCredPresIBSZFM;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;cBarraTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;indBemMovelUsado;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};M([be(),j("design:type",String)],w.prototype,"cProd",void 0);M([be(),j("design:type",String)],w.prototype,"cEAN",void 0);M([J(),be(),j("design:type",String)],w.prototype,"cBarra",void 0);M([be(),j("design:type",String)],w.prototype,"xProd",void 0);M([be(),j("design:type",String)],w.prototype,"NCM",void 0);M([J(),tc(),Ps(8),be({each:!0}),j("design:type",Array)],w.prototype,"NVE",void 0);M([J(),be(),j("design:type",String)],w.prototype,"CEST",void 0);M([J(),be(),j("design:type",String)],w.prototype,"indEscala",void 0);M([J(),be(),j("design:type",String)],w.prototype,"CNPJFab",void 0);M([J(),be(),j("design:type",String)],w.prototype,"cBenef",void 0);M([J(),tc(),Ps(4),ri({each:!0}),si(()=>Or),j("design:type",Array)],w.prototype,"gCred",void 0);M([J(),be(),j("design:type",String)],w.prototype,"tpCredPresIBSZFM",void 0);M([J(),be(),j("design:type",String)],w.prototype,"EXTIPI",void 0);M([be(),j("design:type",String)],w.prototype,"CFOP",void 0);M([be(),j("design:type",String)],w.prototype,"uCom",void 0);M([Yi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qCom",void 0);M([Yi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnCom",void 0);M([Yi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vProd",void 0);M([be(),j("design:type",String)],w.prototype,"cEANTrib",void 0);M([J(),be(),j("design:type",String)],w.prototype,"cBarraTrib",void 0);M([be(),j("design:type",String)],w.prototype,"uTrib",void 0);M([Yi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qTrib",void 0);M([Yi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnTrib",void 0);M([J(),Yi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vFrete",void 0);M([J(),Yi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vSeg",void 0);M([J(),Yi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vDesc",void 0);M([J(),Yi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vOutro",void 0);M([be(),j("design:type",String)],w.prototype,"indTot",void 0);M([J(),be(),j("design:type",String)],w.prototype,"indBemMovelUsado",void 0);M([J(),tc(),ri({each:!0}),Ps(100),si(()=>_e),j("design:type",Array)],w.prototype,"DI",void 0);M([J(),tc(),ri({each:!0}),Ps(500),si(()=>Ds),j("design:type",Array)],w.prototype,"detExport",void 0);M([J(),be(),j("design:type",String)],w.prototype,"xPed",void 0);M([J(),be(),j("design:type",String)],w.prototype,"nItemPed",void 0);M([J(),be(),j("design:type",String)],w.prototype,"nFCI",void 0);M([J(),tc(),ri({each:!0}),Ps(500),si(()=>qi),j("design:type",Array)],w.prototype,"rastro",void 0);M([J(),Es(),ri(),si(()=>As),j("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],w.prototype,"infProdNFF",void 0);M([J(),Es(),ri(),si(()=>Ir),j("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],w.prototype,"infProdEmb",void 0);M([J(),Es(),ri(),si(()=>X),j("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],w.prototype,"veicProd",void 0);M([J(),Es(),ri(),si(()=>Rr),j("design:type",typeof IMed>"u"?Object:IMed)],w.prototype,"med",void 0);M([J(),Es(),ri({each:!0}),si(()=>Fn),Ps(500),j("design:type",Array)],w.prototype,"arma",void 0);M([J(),Es(),ri(),si(()=>st),j("design:type",typeof IComb>"u"?Object:IComb)],w.prototype,"comb",void 0);M([J(),be(),j("design:type",String)],w.prototype,"nRECOPI",void 0);w=M([sS({properties:["veicProd","med","arma","comb"]})],w);import{Type as Qo}from"class-transformer";import{IsOptional as uo,ValidateNested as Go}from"class-validator";import{IsOptional as m,IsString as b,Max as Il,ValidateNested as xe}from"class-validator";import{Type as we}from"class-transformer";import{Choice as aS,TransformDecimal as g}from"nfets/core";function l(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(l,"_ts_decorate");function d(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(d,"_ts_metadata");var ro=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};l([b(),d("design:type",String)],ro.prototype,"orig",void 0);l([b(),d("design:type",String)],ro.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],ro.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vFCP",void 0);var An=class{static{a(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};l([b(),d("design:type",String)],An.prototype,"orig",void 0);l([b(),d("design:type",String)],An.prototype,"CST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"qBCMono",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"adRemICMS",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"vICMSMono",void 0);var Ae=class{static{a(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};l([b(),d("design:type",String)],Ae.prototype,"orig",void 0);l([b(),d("design:type",String)],Ae.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],Ae.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vFCP",void 0);l([m(),b(),d("design:type",String)],Ae.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCFCPST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vFCPST",void 0);var Zt=class{static{a(this,"ICMS15")}orig;CST;qBCMono;adRemICMS;vICMSMono;qBCMonoReten;adRemICMSReten;vICMSMonoReten;pRedAdRem;motRedAdRem};l([b(),d("design:type",String)],Zt.prototype,"orig",void 0);l([b(),d("design:type",String)],Zt.prototype,"CST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"qBCMono",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"adRemICMS",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vICMSMono",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"qBCMonoReten",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"adRemICMSReten",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vICMSMonoReten",void 0);l([m(),g({fixed:4}),Il(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"pRedAdRem",void 0);l([m(),b(),d("design:type",String)],Zt.prototype,"motRedAdRem",void 0);var Et=class{static{a(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS};l([b(),d("design:type",String)],Et.prototype,"orig",void 0);l([b(),d("design:type",String)],Et.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],Et.prototype,"modBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pRedBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],Et.prototype,"motDesICMS",void 0);var vt=class{static{a(this,"ICMS30")}orig;CST;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST;vICMSDeson;motDesICMS};l([b(),d("design:type",String)],vt.prototype,"orig",void 0);l([b(),d("design:type",String)],vt.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],vt.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCFCPST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],vt.prototype,"motDesICMS",void 0);var Fr=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};l([b(),d("design:type",String)],Fr.prototype,"orig",void 0);l([b(),d("design:type",String)],Fr.prototype,"CST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],Fr.prototype,"motDesICMS",void 0);var so=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};l([b(),d("design:type",String)],so.prototype,"orig",void 0);l([b(),d("design:type",String)],so.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],so.prototype,"modBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pRedBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vICMS",void 0);l([m(),g({fixed:4}),Il(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pDif",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vICMSDif",void 0);var Yt=class{static{a(this,"ICMS53")}orig;CST;qBCMono;adRemICMS;vICMSMonoOp;pDif;vICMSMonoDif;vICMSMono;qBCMonoDif;adRemICMSDif};l([b(),d("design:type",String)],Yt.prototype,"orig",void 0);l([b(),d("design:type",String)],Yt.prototype,"CST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMono",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"adRemICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoOp",void 0);l([m(),g({fixed:4}),Il(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"pDif",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoDif",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMono",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMonoDif",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"adRemICMSDif",void 0);var yt=class{static{a(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};l([b(),d("design:type",String)],yt.prototype,"orig",void 0);l([b(),d("design:type",String)],yt.prototype,"CST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSubstituto",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSTRet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCFCPSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pFCPSTRet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vFCPSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pRedBCEfet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCEfet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pICMSEfet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSEfet",void 0);var xn=class{static{a(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};l([b(),d("design:type",String)],xn.prototype,"orig",void 0);l([b(),d("design:type",String)],xn.prototype,"CST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xn.prototype,"qBCMonoRet",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xn.prototype,"adRemICMSRet",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xn.prototype,"vICMSMonoRet",void 0);var le=class{static{a(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};l([b(),d("design:type",String)],le.prototype,"orig",void 0);l([b(),d("design:type",String)],le.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],le.prototype,"modBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pRedBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],le.prototype,"motDesICMS",void 0);l([m(),b(),d("design:type",String)],le.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCFCPST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vFCPST",void 0);var de=class{static{a(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};l([b(),d("design:type",String)],de.prototype,"orig",void 0);l([b(),d("design:type",String)],de.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],de.prototype,"modBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pRedBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],de.prototype,"motDesICMS",void 0);l([m(),b(),d("design:type",String)],de.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCFCPST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vFCPST",void 0);var ke=class{static{a(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};l([b(),d("design:type",String)],ke.prototype,"orig",void 0);l([b(),d("design:type",String)],ke.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],ke.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pRedBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vICMS",void 0);l([m(),b(),d("design:type",String)],ke.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vICMSST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pBCOp",void 0);l([m(),b(),d("design:type",String)],ke.prototype,"UFST",void 0);var Xi=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([b(),d("design:type",String)],Xi.prototype,"orig",void 0);l([b(),d("design:type",String)],Xi.prototype,"CST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"vBCSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"pST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"vICMSSubstituto",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"vICMSSTRet",void 0);var Dr=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],Dr.prototype,"orig",void 0);l([b(),d("design:type",String)],Dr.prototype,"CSOSN",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dr.prototype,"pCredSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dr.prototype,"vCredICMSSN",void 0);var oc=class{static{a(this,"ICMSSN102")}orig;CSOSN};l([b(),d("design:type",String)],oc.prototype,"orig",void 0);l([b(),d("design:type",String)],oc.prototype,"CSOSN",void 0);var To=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],To.prototype,"orig",void 0);l([b(),d("design:type",String)],To.prototype,"CSOSN",void 0);l([m(),b(),d("design:type",String)],To.prototype,"modBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"vICMSST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"pCredSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"vCredICMSSN",void 0);var Ji=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};l([b(),d("design:type",String)],Ji.prototype,"orig",void 0);l([b(),d("design:type",String)],Ji.prototype,"CSOSN",void 0);l([m(),b(),d("design:type",String)],Ji.prototype,"modBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ji.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ji.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ji.prototype,"vICMSST",void 0);var St=class{static{a(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};l([b(),d("design:type",String)],St.prototype,"orig",void 0);l([b(),d("design:type",String)],St.prototype,"CSOSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSubstituto",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSTRet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCFCPSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pFCPSTRet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vFCPSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pRedBCEfet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCEfet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pICMSEfet",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSEfet",void 0);var Ct=class{static{a(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],Ct.prototype,"orig",void 0);l([b(),d("design:type",String)],Ct.prototype,"CSOSN",void 0);l([m(),b(),d("design:type",String)],Ct.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pRedBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMS",void 0);l([m(),b(),d("design:type",String)],Ct.prototype,"modBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMSST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pCredSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vCredICMSSN",void 0);var Y=class{static{a(this,"ICMS")}ICMS00;ICMS02;ICMS10;ICMS15;ICMS20;ICMS30;ICMS40;ICMS51;ICMS53;ICMS60;ICMS61;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};l([m(),xe(),we(()=>ro),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],Y.prototype,"ICMS00",void 0);l([m(),xe(),we(()=>An),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],Y.prototype,"ICMS02",void 0);l([m(),xe(),we(()=>Ae),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],Y.prototype,"ICMS10",void 0);l([m(),xe(),we(()=>Zt),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],Y.prototype,"ICMS15",void 0);l([m(),xe(),we(()=>Et),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],Y.prototype,"ICMS20",void 0);l([m(),xe(),we(()=>vt),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],Y.prototype,"ICMS30",void 0);l([m(),xe(),we(()=>Fr),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],Y.prototype,"ICMS40",void 0);l([m(),xe(),we(()=>so),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],Y.prototype,"ICMS51",void 0);l([m(),xe(),we(()=>Yt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],Y.prototype,"ICMS53",void 0);l([m(),xe(),we(()=>yt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],Y.prototype,"ICMS60",void 0);l([m(),xe(),we(()=>xn),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],Y.prototype,"ICMS61",void 0);l([m(),xe(),we(()=>le),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],Y.prototype,"ICMS70",void 0);l([m(),xe(),we(()=>de),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],Y.prototype,"ICMS90",void 0);l([m(),xe(),we(()=>ke),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Y.prototype,"ICMSPart",void 0);l([m(),xe(),we(()=>Xi),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],Y.prototype,"ICMSST",void 0);l([m(),xe(),we(()=>Dr),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Y.prototype,"ICMSSN101",void 0);l([m(),xe(),we(()=>oc),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Y.prototype,"ICMSSN102",void 0);l([m(),xe(),we(()=>To),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Y.prototype,"ICMSSN201",void 0);l([m(),xe(),we(()=>Ji),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Y.prototype,"ICMSSN202",void 0);l([m(),xe(),we(()=>St),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Y.prototype,"ICMSSN500",void 0);l([m(),xe(),we(()=>Ct),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Y.prototype,"ICMSSN900",void 0);Y=l([aS({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Y);import{IsOptional as ai,IsString as Mo,ValidateNested as hh}from"class-validator";import{Type as mh}from"class-transformer";function Xt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Xt,"_ts_decorate");function Jt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Jt,"_ts_metadata");var Wi=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Xt([Mo(),Jt("design:type",String)],Wi.prototype,"CST",void 0);Xt([ai(),Mo(),Jt("design:type",String)],Wi.prototype,"vBC",void 0);Xt([ai(),Mo(),Jt("design:type",String)],Wi.prototype,"pIPI",void 0);Xt([ai(),Mo(),Jt("design:type",String)],Wi.prototype,"qUnid",void 0);Xt([ai(),Mo(),Jt("design:type",String)],Wi.prototype,"vUnid",void 0);Xt([ai(),Mo(),Jt("design:type",String)],Wi.prototype,"vIPI",void 0);var yf=class{static{a(this,"IPINT")}CST};Xt([Mo(),Jt("design:type",String)],yf.prototype,"CST",void 0);var ao=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Xt([ai(),Mo(),Jt("design:type",String)],ao.prototype,"CNPJProd",void 0);Xt([ai(),Mo(),Jt("design:type",String)],ao.prototype,"cSelo",void 0);Xt([ai(),Mo(),Jt("design:type",String)],ao.prototype,"qSelo",void 0);Xt([Mo(),Jt("design:type",String)],ao.prototype,"cEnq",void 0);Xt([ai(),hh(),mh(()=>Wi),Jt("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],ao.prototype,"IPITrib",void 0);Xt([ai(),hh(),mh(()=>yf),Jt("design:type",typeof IIPINT>"u"?Object:IIPINT)],ao.prototype,"IPINT",void 0);import{IsOptional as bf,IsString as Nf}from"class-validator";function Sf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Sf,"_ts_decorate");function Cf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Cf,"_ts_metadata");var ci=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Sf([bf(),Nf(),Cf("design:type",String)],ci.prototype,"vBC",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ci.prototype,"vDespAdu",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ci.prototype,"vII",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ci.prototype,"vIOF",void 0);import{IsOptional as Ee,IsString as ze,ValidateNested as If}from"class-validator";import{Type as Rf}from"class-transformer";import{TransformDecimal as pi}from"nfets/core";function ue(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ue,"_ts_decorate");function he(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(he,"_ts_metadata");var _i=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};ue([ze(),he("design:type",String)],_i.prototype,"CST",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],_i.prototype,"vBC",void 0);ue([Ee(),ze(),pi({fixed:4}),he("design:type",String)],_i.prototype,"pPIS",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],_i.prototype,"vPIS",void 0);var Ki=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ue([ze(),he("design:type",String)],Ki.prototype,"CST",void 0);ue([Ee(),ze(),he("design:type",String)],Ki.prototype,"qBCProd",void 0);ue([Ee(),ze(),he("design:type",String)],Ki.prototype,"vAliqProd",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],Ki.prototype,"vPIS",void 0);var zs=class{static{a(this,"PISNT")}CST};ue([ze(),he("design:type",String)],zs.prototype,"CST",void 0);var jo=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ue([ze(),he("design:type",String)],jo.prototype,"CST",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],jo.prototype,"vBC",void 0);ue([Ee(),ze(),pi({fixed:4}),he("design:type",String)],jo.prototype,"pPIS",void 0);ue([Ee(),ze(),he("design:type",String)],jo.prototype,"qBCProd",void 0);ue([Ee(),ze(),he("design:type",String)],jo.prototype,"vAliqProd",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],jo.prototype,"vPIS",void 0);var fi=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ue([Ee(),If(),Rf(()=>_i),he("design:type",typeof _i>"u"?Object:_i)],fi.prototype,"PISAliq",void 0);ue([Ee(),If(),Rf(()=>Ki),he("design:type",typeof Ki>"u"?Object:Ki)],fi.prototype,"PISQtde",void 0);ue([Ee(),If(),Rf(()=>zs),he("design:type",typeof zs>"u"?Object:zs)],fi.prototype,"PISNT",void 0);ue([Ee(),If(),Rf(()=>jo),he("design:type",typeof jo>"u"?Object:jo)],fi.prototype,"PISOutr",void 0);var Bo=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],Bo.prototype,"vBC",void 0);ue([Ee(),ze(),pi({fixed:4}),he("design:type",String)],Bo.prototype,"pPIS",void 0);ue([Ee(),ze(),he("design:type",String)],Bo.prototype,"qBCProd",void 0);ue([Ee(),ze(),he("design:type",String)],Bo.prototype,"vAliqProd",void 0);ue([Ee(),ze(),pi({fixed:2}),he("design:type",String)],Bo.prototype,"vPIS",void 0);import{IsOptional as Te,IsString as Me,ValidateNested as Of}from"class-validator";import{Type as Ff}from"class-transformer";import{TransformDecimal as di}from"nfets/core";function me(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(me,"_ts_decorate");function ge(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ge,"_ts_metadata");var ki=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};me([Me(),ge("design:type",String)],ki.prototype,"CST",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],ki.prototype,"vBC",void 0);me([Te(),Me(),di({fixed:4}),ge("design:type",String)],ki.prototype,"pCOFINS",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],ki.prototype,"vCOFINS",void 0);var $i=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};me([Me(),ge("design:type",String)],$i.prototype,"CST",void 0);me([Te(),Me(),ge("design:type",String)],$i.prototype,"qBCProd",void 0);me([Te(),Me(),ge("design:type",String)],$i.prototype,"vAliqProd",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],$i.prototype,"vCOFINS",void 0);var Ts=class{static{a(this,"COFINSNT")}CST};me([Me(),ge("design:type",String)],Ts.prototype,"CST",void 0);var Vo=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([Me(),ge("design:type",String)],Vo.prototype,"CST",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],Vo.prototype,"vBC",void 0);me([Te(),Me(),di({fixed:4}),ge("design:type",String)],Vo.prototype,"pCOFINS",void 0);me([Te(),Me(),ge("design:type",String)],Vo.prototype,"qBCProd",void 0);me([Te(),Me(),ge("design:type",String)],Vo.prototype,"vAliqProd",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],Vo.prototype,"vCOFINS",void 0);var li=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};me([Te(),Of(),Ff(()=>ki),ge("design:type",typeof ki>"u"?Object:ki)],li.prototype,"COFINSAliq",void 0);me([Te(),Of(),Ff(()=>$i),ge("design:type",typeof $i>"u"?Object:$i)],li.prototype,"COFINSQtde",void 0);me([Te(),Of(),Ff(()=>Ts),ge("design:type",typeof Ts>"u"?Object:Ts)],li.prototype,"COFINSNT",void 0);me([Te(),Of(),Ff(()=>Vo),ge("design:type",typeof Vo>"u"?Object:Vo)],li.prototype,"COFINSOutr",void 0);var Lo=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([Te(),Me(),di({fixed:2}),ge("design:type",String)],Lo.prototype,"vBC",void 0);me([Te(),Me(),di({fixed:4}),ge("design:type",String)],Lo.prototype,"pCOFINS",void 0);me([Te(),Me(),ge("design:type",String)],Lo.prototype,"qBCProd",void 0);me([Te(),Me(),ge("design:type",String)],Lo.prototype,"vAliqProd",void 0);me([Te(),Me(),di({fixed:2}),ge("design:type",String)],Lo.prototype,"vCOFINS",void 0);import{IsOptional as Lt,IsString as wn}from"class-validator";import{TransformDecimal as Pn}from"nfets/core";function bt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(bt,"_ts_decorate");function Nt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Nt,"_ts_metadata");var Oe=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vBC",void 0);bt([Lt(),Pn({fixed:4}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vAliq",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vISSQN",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"cMunFG",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"cListServ",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vDeducao",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vOutro",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vDescIncond",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vDescCond",void 0);bt([Lt(),Pn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oe.prototype,"vISSRet",void 0);bt([wn(),Nt("design:type",String)],Oe.prototype,"indISS",void 0);bt([wn(),Nt("design:type",String)],Oe.prototype,"indIncentivo",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"cServico",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"cMun",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"cPais",void 0);bt([Lt(),wn(),Nt("design:type",String)],Oe.prototype,"nProcesso",void 0);import{IsOptional as on,IsString as nn}from"class-validator";function en(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(en,"_ts_decorate");function tn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(tn,"_ts_metadata");var zt=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};en([on(),nn(),tn("design:type",String)],zt.prototype,"vBCUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"vBCFCPUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"pFCPUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"pICMSUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"pICMSInter",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"pICMSInterPart",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"vFCPUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"vICMSUFDest",void 0);en([on(),nn(),tn("design:type",String)],zt.prototype,"vICMSUFRemet",void 0);import{IsOptional as Ni,IsString as jl,ValidateNested as wr}from"class-validator";import{IsOptional as yh,IsString as Sh}from"class-validator";function gh(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(gh,"_ts_decorate");function vh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(vh,"_ts_metadata");var En=class{static{a(this,"TransferenciaCredito")}vIBS;vCBS};gh([yh(),Sh(),vh("design:type",String)],En.prototype,"vIBS",void 0);gh([yh(),Sh(),vh("design:type",String)],En.prototype,"vCBS",void 0);import{IsString as Fl}from"class-validator";function Rl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Rl,"_ts_decorate");function Ol(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ol,"_ts_metadata");var rn=class{static{a(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};Rl([Fl(),Ol("design:type",String)],rn.prototype,"tpCredPresIBSZFM",void 0);Rl([Fl(),Ol("design:type",String)],rn.prototype,"vCredPresIBSZFM",void 0);Rl([Fl(),Ol("design:type",String)],rn.prototype,"competApur",void 0);import{IsOptional as Ch,IsString as Mn,ValidateNested as bh}from"class-validator";import{Type as Nh}from"class-transformer";function hi(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(hi,"_ts_decorate");function mi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(mi,"_ts_metadata");var zn=class{static{a(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};hi([Mn(),mi("design:type",String)],zn.prototype,"vCredPresCondSus",void 0);hi([Mn(),mi("design:type",String)],zn.prototype,"pCredPres",void 0);hi([Mn(),mi("design:type",String)],zn.prototype,"vCredPres",void 0);var Tn=class{static{a(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};hi([Mn(),mi("design:type",String)],Tn.prototype,"vCredPresCondSus",void 0);hi([Mn(),mi("design:type",String)],Tn.prototype,"pCredPres",void 0);hi([Mn(),mi("design:type",String)],Tn.prototype,"vCredPres",void 0);var ui=class{static{a(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};hi([Ch(),bh(),Nh(()=>zn),mi("design:type",typeof zn>"u"?Object:zn)],ui.prototype,"gIBSCredPres",void 0);hi([Ch(),bh(),Nh(()=>Tn),mi("design:type",typeof Tn>"u"?Object:Tn)],ui.prototype,"gCBSCredPres",void 0);hi([Mn(),mi("design:type",String)],ui.prototype,"vBCCredPres",void 0);hi([Mn(),mi("design:type",String)],ui.prototype,"cCredPres",void 0);import{IsString as Oh}from"class-validator";function Ih(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ih,"_ts_decorate");function Rh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Rh,"_ts_metadata");var jn=class{static{a(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Ih([Oh(),Rh("design:type",String)],jn.prototype,"vIBSEstCred",void 0);Ih([Oh(),Rh("design:type",String)],jn.prototype,"vCBSEstCred",void 0);import{IsString as xl}from"class-validator";function Dl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Dl,"_ts_decorate");function Al(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Al,"_ts_metadata");var sn=class{static{a(this,"AjusteCompet")}competApur;vCBS;vIBS};Dl([xl(),Al("design:type",String)],sn.prototype,"competApur",void 0);Dl([xl(),Al("design:type",String)],sn.prototype,"vCBS",void 0);Dl([xl(),Al("design:type",String)],sn.prototype,"vIBS",void 0);import{IsOptional as Df,ValidateNested as Af}from"class-validator";import{TransformDecimal as Pe}from"nfets/core";import{Type as xf}from"class-transformer";function oe(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(oe,"_ts_decorate");function ie(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ie,"_ts_metadata");var gi=class{static{a(this,"MonoPadrao")}qBCMono;adRemIBS;adRemCBS;vIBSMono;vCBSMono};oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"qBCMono",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemIBS",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemCBS",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vIBSMono",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vCBSMono",void 0);var vi=class{static{a(this,"MonoReten")}qBCMonoReten;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten};oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"qBCMonoReten",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemIBSReten",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vIBSMonoReten",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemCBSReten",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vCBSMonoReten",void 0);var yi=class{static{a(this,"MonoRet")}qBCMonoRet;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet};oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"qBCMonoRet",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"adRemIBSRet",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"vIBSMonoRet",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"adRemCBSRet",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"vCBSMonoRet",void 0);var an=class{static{a(this,"MonoDif")}pDifIBS;vIBSMonoDif;pDifCBS;vCBSMonoDif};oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"pDifIBS",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"vIBSMonoDif",void 0);oe([Pe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"pDifCBS",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"vCBSMonoDif",void 0);var co=class{static{a(this,"IBSCBSMono")}gMonoPadrao;gMonoReten;gMonoRet;gMonoDif;vTotIBSMonoItem;vTotCBSMonoItem};oe([Df(),Af(),xf(()=>gi),ie("design:type",typeof gi>"u"?Object:gi)],co.prototype,"gMonoPadrao",void 0);oe([Df(),Af(),xf(()=>vi),ie("design:type",typeof vi>"u"?Object:vi)],co.prototype,"gMonoReten",void 0);oe([Df(),Af(),xf(()=>yi),ie("design:type",typeof yi>"u"?Object:yi)],co.prototype,"gMonoRet",void 0);oe([Df(),Af(),xf(()=>an),ie("design:type",typeof an>"u"?Object:an)],co.prototype,"gMonoDif",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTotIBSMonoItem",void 0);oe([Pe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTotCBSMonoItem",void 0);import{IsOptional as ac,ValidateNested as cc}from"class-validator";import{TransformDecimal as Uh}from"nfets/core";import{TransformDecimal as Ms}from"nfets/core";import{IsString as Fh}from"class-validator";function Bn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Bn,"_ts_decorate");function Vn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Vn,"_ts_metadata");var Ht=class{static{a(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};Bn([Fh(),Vn("design:type",String)],Ht.prototype,"CSTReg",void 0);Bn([Fh(),Vn("design:type",String)],Ht.prototype,"cClassTribReg",void 0);Bn([Ms({fixed:4}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSUF",void 0);Bn([Ms({fixed:2}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSUF",void 0);Bn([Ms({fixed:4}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSMun",void 0);Bn([Ms({fixed:2}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSMun",void 0);Bn([Ms({fixed:4}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegCBS",void 0);Bn([Ms({fixed:2}),Vn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegCBS",void 0);import{TransformDecimal as Vs}from"nfets/core";function js(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(js,"_ts_decorate");function Bs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Bs,"_ts_metadata");var fo=class{static{a(this,"TribCompraGov")}pAliqIBSUF;vTribIBSUF;pAliqIBSMun;vTribIBSMun;pAliqCBS;vTribCBS};js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqIBSUF",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribIBSUF",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqIBSMun",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribIBSMun",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqCBS",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribCBS",void 0);import{Type as fc}from"class-transformer";import{IsOptional as wl,ValidateNested as Pl}from"class-validator";import{TransformDecimal as jh}from"nfets/core";import{Type as El}from"class-transformer";import{TransformDecimal as xh}from"nfets/core";import{IsOptional as cS}from"class-validator";function Dh(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Dh,"_ts_decorate");function Ah(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ah,"_ts_metadata");var It=class{static{a(this,"DevTrib")}pDevTrib;vDevTrib};Dh([cS(),xh({fixed:4}),Ah("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pDevTrib",void 0);Dh([xh({fixed:2}),Ah("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vDevTrib",void 0);import{TransformDecimal as Eh}from"nfets/core";function wh(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(wh,"_ts_decorate");function Ph(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ph,"_ts_metadata");var Rt=class{static{a(this,"Dif")}pDif;vDif};wh([Eh({fixed:4}),Ph("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pDif",void 0);wh([Eh({fixed:2}),Ph("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vDif",void 0);import{TransformDecimal as Mh}from"nfets/core";function zh(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(zh,"_ts_decorate");function Th(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Th,"_ts_metadata");var Ot=class{static{a(this,"Red")}pRedAliq;pAliqEfet};zh([Mh({fixed:4}),Th("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pRedAliq",void 0);zh([Mh({fixed:4}),Th("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pAliqEfet",void 0);function ic(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ic,"_ts_decorate");function nc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(nc,"_ts_metadata");var Ho=class{static{a(this,"IBSMun")}pIBSMun;gDif;gDevTrib;gRed;vIBSMun};ic([jh({fixed:4}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"pIBSMun",void 0);ic([wl(),Pl(),El(()=>Rt),nc("design:type",typeof Rt>"u"?Object:Rt)],Ho.prototype,"gDif",void 0);ic([wl(),Pl(),El(()=>It),nc("design:type",typeof It>"u"?Object:It)],Ho.prototype,"gDevTrib",void 0);ic([wl(),Pl(),El(()=>Ot),nc("design:type",typeof Ot>"u"?Object:Ot)],Ho.prototype,"gRed",void 0);ic([jh({fixed:2}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vIBSMun",void 0);import{IsOptional as zl,ValidateNested as Tl}from"class-validator";import{TransformDecimal as Bh}from"nfets/core";import{Type as Ml}from"class-transformer";function rc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(rc,"_ts_decorate");function sc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(sc,"_ts_metadata");var Uo=class{static{a(this,"IBSUF")}pIBSUF;gDif;gDevTrib;gRed;vIBSUF};rc([Bh({fixed:4}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Uo.prototype,"pIBSUF",void 0);rc([zl(),Tl(),Ml(()=>Rt),sc("design:type",typeof Rt>"u"?Object:Rt)],Uo.prototype,"gDif",void 0);rc([zl(),Tl(),Ml(()=>It),sc("design:type",typeof It>"u"?Object:It)],Uo.prototype,"gDevTrib",void 0);rc([zl(),Tl(),Ml(()=>Ot),sc("design:type",typeof Ot>"u"?Object:Ot)],Uo.prototype,"gRed",void 0);rc([Bh({fixed:2}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Uo.prototype,"vIBSUF",void 0);import{IsOptional as Ef,ValidateNested as zf}from"class-validator";import{TransformDecimal as Hh}from"nfets/core";import{Type as Tf}from"class-transformer";import{TransformDecimal as Vh}from"nfets/core";import{IsOptional as fS,IsString as Lh}from"class-validator";function wf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(wf,"_ts_decorate");function Pf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Pf,"_ts_metadata");var Si=class{static{a(this,"ALCZFMCBS")}tpALCZFMCBS;nProcSuframa;pAliqEfetRegCBS;vTribRegCBS};wf([Lh(),Pf("design:type",String)],Si.prototype,"tpALCZFMCBS",void 0);wf([fS(),Lh(),Pf("design:type",String)],Si.prototype,"nProcSuframa",void 0);wf([Vh({fixed:4}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"pAliqEfetRegCBS",void 0);wf([Vh({fixed:2}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"vTribRegCBS",void 0);function Ls(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ls,"_ts_decorate");function Hs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hs,"_ts_metadata");var po=class{static{a(this,"CBS")}pCBS;gDif;gDevTrib;gRed;gALCZFMCBS;vCBS};Ls([Hh({fixed:4}),Hs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"pCBS",void 0);Ls([Ef(),zf(),Tf(()=>Rt),Hs("design:type",typeof Rt>"u"?Object:Rt)],po.prototype,"gDif",void 0);Ls([Ef(),zf(),Tf(()=>It),Hs("design:type",typeof It>"u"?Object:It)],po.prototype,"gDevTrib",void 0);Ls([Ef(),zf(),Tf(()=>Ot),Hs("design:type",typeof Ot>"u"?Object:Ot)],po.prototype,"gRed",void 0);Ls([Ef(),zf(),Tf(()=>Si),Hs("design:type",typeof Si>"u"?Object:Si)],po.prototype,"gALCZFMCBS",void 0);Ls([Hh({fixed:2}),Hs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"vCBS",void 0);function Ar(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ar,"_ts_decorate");function xr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(xr,"_ts_metadata");var Wt=class{static{a(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular;gTribCompraGov};Ar([Uh({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vBC",void 0);Ar([ac(),cc(),fc(()=>Uo),xr("design:type",typeof Uo>"u"?Object:Uo)],Wt.prototype,"gIBSUF",void 0);Ar([ac(),cc(),fc(()=>Ho),xr("design:type",typeof Ho>"u"?Object:Ho)],Wt.prototype,"gIBSMun",void 0);Ar([Uh({fixed:2}),xr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vIBS",void 0);Ar([ac(),cc(),fc(()=>po),xr("design:type",typeof po>"u"?Object:po)],Wt.prototype,"gCBS",void 0);Ar([ac(),cc(),fc(()=>Ht),xr("design:type",typeof Ht>"u"?Object:Ht)],Wt.prototype,"gTribRegular",void 0);Ar([ac(),cc(),fc(()=>fo),xr("design:type",typeof fo>"u"?Object:fo)],Wt.prototype,"gTribCompraGov",void 0);import{Type as Pr}from"class-transformer";function Ci(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ci,"_ts_decorate");function bi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bi,"_ts_metadata");var Ft=class{static{a(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Ci([Ni(),jl(),bi("design:type",String)],Ft.prototype,"CST",void 0);Ci([Ni(),jl(),bi("design:type",String)],Ft.prototype,"cClassTrib",void 0);Ci([Ni(),jl(),bi("design:type",String)],Ft.prototype,"indDoacao",void 0);Ci([Ni(),wr(),Pr(()=>En),bi("design:type",typeof En>"u"?Object:En)],Ft.prototype,"gTransfCred",void 0);Ci([Ni(),wr(),Pr(()=>rn),bi("design:type",typeof rn>"u"?Object:rn)],Ft.prototype,"gCredPresIBSZFM",void 0);Ci([Ni(),wr(),Pr(()=>ui),bi("design:type",typeof ui>"u"?Object:ui)],Ft.prototype,"gCredPresOper",void 0);Ci([Ni(),wr(),Pr(()=>sn),bi("design:type",typeof sn>"u"?Object:sn)],Ft.prototype,"gAjusteCompet",void 0);Ci([Ni(),wr(),Pr(()=>jn),bi("design:type",typeof jn>"u"?Object:jn)],Ft.prototype,"gEstornoCred",void 0);Ci([Ni(),wr(),Pr(()=>co),bi("design:type",typeof co>"u"?Object:co)],Ft.prototype,"gIBSCBSMono",void 0);Ci([Ni(),wr(),Pr(()=>Wt),bi("design:type",typeof Wt>"u"?Object:Wt)],Ft.prototype,"gIBSCBS",void 0);import{TransformDecimal as pc}from"nfets/core";import{IsOptional as Us,IsString as Bl}from"class-validator";function Ln(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Ln,"_ts_decorate");function Hn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hn,"_ts_metadata");var Ut=class{static{a(this,"IS")}CSTIS;cClassTribIS;vBCIS;pIS;adRemIS;uTrib;qTrib;vIS};Ln([Bl(),Hn("design:type",String)],Ut.prototype,"CSTIS",void 0);Ln([Bl(),Hn("design:type",String)],Ut.prototype,"cClassTribIS",void 0);Ln([Us(),pc({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vBCIS",void 0);Ln([Us(),pc({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pIS",void 0);Ln([Us(),pc({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"adRemIS",void 0);Ln([Us(),Bl(),Hn("design:type",String)],Ut.prototype,"uTrib",void 0);Ln([Us(),pc({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"qTrib",void 0);Ln([Us(),pc({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vIS",void 0);import{Choice as pS,TransformDecimal as lS}from"nfets/core";function _t(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(_t,"_ts_decorate");function lo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(lo,"_ts_metadata");var je=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IS;IBSCBS};_t([uo(),lS({fixed:2}),lo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],je.prototype,"vTotTrib",void 0);_t([uo(),Go(),Qo(()=>Y),lo("design:type",typeof IICMS>"u"?Object:IICMS)],je.prototype,"ICMS",void 0);_t([uo(),Go(),Qo(()=>ao),lo("design:type",typeof IIPI>"u"?Object:IIPI)],je.prototype,"IPI",void 0);_t([uo(),Go(),Qo(()=>Oe),lo("design:type",typeof IISSQN>"u"?Object:IISSQN)],je.prototype,"ISSQN",void 0);_t([uo(),Go(),Qo(()=>ci),lo("design:type",typeof III>"u"?Object:III)],je.prototype,"II",void 0);_t([uo(),Go(),Qo(()=>fi),lo("design:type",typeof IPIS>"u"?Object:IPIS)],je.prototype,"PIS",void 0);_t([uo(),Go(),Qo(()=>Bo),lo("design:type",typeof IPISST>"u"?Object:IPISST)],je.prototype,"PISST",void 0);_t([uo(),Go(),Qo(()=>li),lo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],je.prototype,"COFINS",void 0);_t([uo(),Go(),Qo(()=>Lo),lo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],je.prototype,"COFINSST",void 0);_t([uo(),Go(),Qo(()=>zt),lo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],je.prototype,"ICMSUFDest",void 0);_t([uo(),Go(),Qo(()=>Ut),lo("design:type",typeof IIS>"u"?Object:IIS)],je.prototype,"IS",void 0);_t([uo(),Go(),Qo(()=>Ft),lo("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],je.prototype,"IBSCBS",void 0);je=_t([pS({properties:["ICMS","ISSQN"]})],je);import{IsOptional as dS,IsString as Qh,ValidateNested as uS}from"class-validator";import{Type as hS}from"class-transformer";function Vl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Vl,"_ts_decorate");function Ll(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ll,"_ts_metadata");var Mf=class{static{a(this,"IpiDevol")}vIPIDevol};Vl([Qh(),Ll("design:type",String)],Mf.prototype,"vIPIDevol",void 0);var Qs=class{static{a(this,"Devol")}pDevol;IPI};Vl([Qh(),Ll("design:type",String)],Qs.prototype,"pDevol",void 0);Vl([dS(),uS(),hS(()=>Mf),Ll("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Qs.prototype,"IPI",void 0);import{IsOptional as Gh,IsString as qh,ValidateNested as Zh}from"class-validator";import{Type as Yh}from"class-transformer";function jf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(jf,"_ts_decorate");function Bf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Bf,"_ts_metadata");var Gs=class{static{a(this,"Observation")}xCampo;xTexto};jf([qh(),Bf("design:type",String)],Gs.prototype,"xCampo",void 0);jf([qh(),Bf("design:type",String)],Gs.prototype,"xTexto",void 0);var qs=class{static{a(this,"ObsItem")}obsCont;obsFisco};jf([Gh(),Zh(),Yh(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsCont",void 0);jf([Gh(),Zh(),Yh(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsFisco",void 0);import{IsOptional as mS,IsString as Wh}from"class-validator";function Xh(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Xh,"_ts_decorate");function Jh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Jh,"_ts_metadata");var Un=class{static{a(this,"DFeReferenciado")}chaveAcesso;nItem};Xh([Wh(),Jh("design:type",String)],Un.prototype,"chaveAcesso",void 0);Xh([mS(),Wh(),Jh("design:type",String)],Un.prototype,"nItem",void 0);import{TransformDecimal as vS}from"nfets/core";function cn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(cn,"_ts_decorate");function fn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(fn,"_ts_metadata");var Zs=class{static{a(this,"DetAttributes")}nItem};cn([_h(),fn("design:type",String)],Zs.prototype,"nItem",void 0);var ho=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem;DFeReferenciado};cn([gS(),Xs(),Js(()=>Zs),fn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],ho.prototype,"$",void 0);cn([Xs(),Js(()=>w),fn("design:type",typeof IProd>"u"?Object:IProd)],ho.prototype,"prod",void 0);cn([Ys(),Xs(),Js(()=>je),fn("design:type",typeof IImposto>"u"?Object:IImposto)],ho.prototype,"imposto",void 0);cn([Ys(),Xs(),Js(()=>Qs),fn("design:type",typeof IDevol>"u"?Object:IDevol)],ho.prototype,"impostoDevol",void 0);cn([Ys(),_h(),fn("design:type",String)],ho.prototype,"infAdProd",void 0);cn([Ys(),Xs(),Js(()=>qs),fn("design:type",typeof IObsItem>"u"?Object:IObsItem)],ho.prototype,"obsItem",void 0);cn([Ys(),vS({fixed:2}),fn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ho.prototype,"vItem",void 0);cn([Ys(),Xs(),Js(()=>Un),fn("design:type",typeof IDFeReferenciado>"u"?Object:IDFeReferenciado)],ho.prototype,"DFeReferenciado",void 0);import{IsDate as yS,IsOptional as lc,IsString as Qn}from"class-validator";import{TransformDecimal as SS,TransformDateString as CS}from"nfets/core";function qo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(qo,"_ts_decorate");function Zo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Zo,"_ts_metadata");var at=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};qo([Qn(),Zo("design:type",String)],at.prototype,"CNPJ",void 0);qo([Qn(),Zo("design:type",String)],at.prototype,"xOrgao",void 0);qo([Qn(),Zo("design:type",String)],at.prototype,"matr",void 0);qo([Qn(),Zo("design:type",String)],at.prototype,"xAgente",void 0);qo([lc(),Qn(),Zo("design:type",String)],at.prototype,"fone",void 0);qo([Qn(),Zo("design:type",String)],at.prototype,"UF",void 0);qo([lc(),Qn(),Zo("design:type",String)],at.prototype,"nDAR",void 0);qo([lc(),CS({format:"YYYY-MM-DD"}),Zo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dEmi",void 0);qo([lc(),SS({fixed:2}),Zo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDAR",void 0);qo([Qn(),Zo("design:type",String)],at.prototype,"repEmi",void 0);qo([lc(),yS(),Zo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dPag",void 0);import{IsString as IS}from"class-validator";function bS(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(bS,"_ts_decorate");function NS(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(NS,"_ts_metadata");var Er=class{static{a(this,"InfSolicNFF")}xSolic};bS([IS(),NS("design:type",String)],Er.prototype,"xSolic",void 0);import{ArrayMaxSize as RS,IsArray as OS,IsOptional as Hl,IsString as Ws,ValidateNested as Kh}from"class-validator";import{Type as kh}from"class-transformer";import{Choice as FS}from"nfets/core";function pn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(pn,"_ts_decorate");function Gn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Gn,"_ts_metadata");var dc=class{static{a(this,"Defensivo")}nReceituario;CPFRespTec};pn([Ws(),Gn("design:type",String)],dc.prototype,"nReceituario",void 0);pn([Ws(),Gn("design:type",String)],dc.prototype,"CPFRespTec",void 0);var zr=class{static{a(this,"GuiaTransito")}tpGuia;UFGuia;serieGuia;nGuia};pn([Ws(),Gn("design:type",String)],zr.prototype,"tpGuia",void 0);pn([Ws(),Gn("design:type",String)],zr.prototype,"UFGuia",void 0);pn([Hl(),Ws(),Gn("design:type",String)],zr.prototype,"serieGuia",void 0);pn([Ws(),Gn("design:type",String)],zr.prototype,"nGuia",void 0);var Ii=class{static{a(this,"Agropecuario")}defensivo;guiaTransito};pn([Hl(),OS(),RS(20),Kh({each:!0}),kh(()=>dc),Gn("design:type",Array)],Ii.prototype,"defensivo",void 0);pn([Hl(),Kh(),kh(()=>zr),Gn("design:type",typeof IGuiaTransito>"u"?Object:IGuiaTransito)],Ii.prototype,"guiaTransito",void 0);Ii=pn([FS({properties:["defensivo","guiaTransito"]})],Ii);import{IsString as Vf,ValidateNested as $h}from"class-validator";import{Type as em}from"class-transformer";function _s(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(_s,"_ts_decorate");function Ks(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ks,"_ts_metadata");var uc=class{static{a(this,"RSAKeyValue")}Modulus;Exponent};_s([Vf(),Ks("design:type",String)],uc.prototype,"Modulus",void 0);_s([Vf(),Ks("design:type",String)],uc.prototype,"Exponent",void 0);var hc=class{static{a(this,"PAASignature")}SignatureValue;RSAKeyValue};_s([Vf(),Ks("design:type",String)],hc.prototype,"SignatureValue",void 0);_s([$h(),em(()=>uc),Ks("design:type",typeof IRSAKeyValue>"u"?Object:IRSAKeyValue)],hc.prototype,"RSAKeyValue",void 0);var qn=class{static{a(this,"InfPAA")}CNPJPAA;PAASignature};_s([Vf(),Ks("design:type",String)],qn.prototype,"CNPJPAA",void 0);_s([$h(),em(()=>hc),Ks("design:type",typeof IPAASignature>"u"?Object:IPAASignature)],qn.prototype,"PAASignature",void 0);function ve(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(ve,"_ts_decorate");function ye(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ye,"_ts_metadata");var Tr=class{static{a(this,"InfNFeAttributes")}Id;versao};ve([ct(),om(),ye("design:type",String)],Tr.prototype,"Id",void 0);ve([ct(),om(),ye("design:type",String)],Tr.prototype,"versao",void 0);var W=class{static{a(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF;agropecuario;infPAA};ve([Ql(),Ul(),De(()=>Tr),Fe(),ye("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],W.prototype,"$",void 0);ve([Ql(),Ul(),Fe(),De(()=>B),ye("design:type",typeof IIde>"u"?Object:IIde)],W.prototype,"ide",void 0);ve([Ql(),Ul(),Fe(),De(()=>Ze),ye("design:type",typeof IEmit>"u"?Object:IEmit)],W.prototype,"emit",void 0);ve([ct(),Fe(),De(()=>at),ye("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],W.prototype,"avulsa",void 0);ve([ct(),Fe(),De(()=>We),ye("design:type",typeof IDest>"u"?Object:IDest)],W.prototype,"dest",void 0);ve([ct(),Fe(),De(()=>ee),ye("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"retirada",void 0);ve([ct(),Fe(),De(()=>ee),ye("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"entrega",void 0);ve([ct(),Fe({each:!0}),tm(10),De(()=>ko),ye("design:type",Array)],W.prototype,"autXML",void 0);ve([Fe({each:!0}),tm(990),DS(1),De(()=>ho),ye("design:type",Array)],W.prototype,"det",void 0);ve([Fe(),De(()=>oo),ye("design:type",typeof ITotal>"u"?Object:ITotal)],W.prototype,"total",void 0);ve([Fe(),De(()=>mt),ye("design:type",typeof ITransp>"u"?Object:ITransp)],W.prototype,"transp",void 0);ve([ct(),Fe(),De(()=>Cn),ye("design:type",typeof ICobr>"u"?Object:ICobr)],W.prototype,"cobr",void 0);ve([Fe(),De(()=>In),ye("design:type",typeof IPag>"u"?Object:IPag)],W.prototype,"pag",void 0);ve([ct(),Fe(),De(()=>vn),ye("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],W.prototype,"infIntermed",void 0);ve([ct(),Fe(),De(()=>zo),ye("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],W.prototype,"infAdic",void 0);ve([ct(),Fe(),De(()=>zi),ye("design:type",typeof IExporta>"u"?Object:IExporta)],W.prototype,"exporta",void 0);ve([ct(),Fe(),De(()=>Ti),ye("design:type",typeof ICompra>"u"?Object:ICompra)],W.prototype,"compra",void 0);ve([ct(),Fe(),De(()=>gt),ye("design:type",typeof ICana>"u"?Object:ICana)],W.prototype,"cana",void 0);ve([ct(),Fe(),De(()=>$t),ye("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],W.prototype,"infRespTec",void 0);ve([ct(),Fe(),De(()=>Er),ye("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],W.prototype,"infSolicNFF",void 0);ve([ct(),Fe(),De(()=>Ii),ye("design:type",typeof IAgropecuario>"u"?Object:IAgropecuario)],W.prototype,"agropecuario",void 0);ve([ct(),Fe(),De(()=>qn),ye("design:type",typeof IInfPAA>"u"?Object:IInfPAA)],W.prototype,"infPAA",void 0);import{Type as sm}from"class-transformer";function Lf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Lf,"_ts_decorate");function Hf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hf,"_ts_metadata");var ks=class{static{a(this,"NFeAttributes")}xmlns};Lf([wS(),xS(),Hf("design:type",String)],ks.prototype,"xmlns",void 0);var Zn=class{static{a(this,"NFe")}$;infNFe;Signature};Lf([nm(),im(),sm(()=>ks),rm(),Hf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Zn.prototype,"$",void 0);Lf([nm(),im(),sm(()=>W),rm(),Hf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Zn.prototype,"infNFe",void 0);Lf([AS(),Hf("design:type",typeof Signature>"u"?Object:Signature)],Zn.prototype,"Signature",void 0);import{plainToInstance as PS}from"nfets/core";import{Validates as Tt}from"nfets/core";var Yo=a((o=[Wd])=>(e,t,n)=>{let r=n.value;r!=null&&(n.value=function(...i){return o.includes(this.schema)?r.apply(this,i):this})},"SchemaValidates");function Dt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Dt,"_ts_decorate");function E(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(E,"_ts_metadata");var Be=class{static{a(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.listener?.imposto(e),this}icms(e){return e?(this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this):this}issqn(e){return e?(this.data.imposto??={},this.data.imposto.ISSQN=e,this.listener?.issqn(e),this):this}ii(e){return e?(this.data.imposto??={},this.data.imposto.II=e,this.listener?.ii(e),this):this}ipi(e){return e?(this.data.imposto??={},this.data.imposto.IPI=e,this.listener?.ipi(e),this):this}pis(e){return e?(this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.pis(e),this):this}pisst(e){return e?(this.data.imposto??={},this.data.imposto.PISST=e,this):this}cofins(e){return e?(this.data.imposto??={},this.data.imposto.COFINS=e,this.listener?.cofins(e),this):this}cofinsst(e){return e?(this.data.imposto??={},this.data.imposto.COFINSST=e,this):this}icmsufdest(e){return e?(this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this):this}is(e){return e==null?this:(this.data.imposto??={},this.data.imposto.IS=e,this)}ibscbs(e){return e==null?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return e?(this.data.vItem=e.vItem,this):this}dfeReferenciado(e){return e?(this.data.DFeReferenciado=e,this):this}assemble(){let e={...this.data};return this.data={},e}};Dt([Tt(Zs),E("design:type",Function),E("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),E("design:returntype",void 0)],Be.prototype,"det",null);Dt([Tt(w),E("design:type",Function),E("design:paramtypes",[typeof IProd>"u"?Object:IProd]),E("design:returntype",void 0)],Be.prototype,"prod",null);Dt([Tt(je),E("design:type",Function),E("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),E("design:returntype",void 0)],Be.prototype,"imposto",null);Dt([Tt(Y),E("design:type",Function),E("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),E("design:returntype",void 0)],Be.prototype,"icms",null);Dt([Tt(Oe),E("design:type",Function),E("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),E("design:returntype",void 0)],Be.prototype,"issqn",null);Dt([Tt(ci),E("design:type",Function),E("design:paramtypes",[typeof III>"u"?Object:III]),E("design:returntype",void 0)],Be.prototype,"ii",null);Dt([Tt(ao),E("design:type",Function),E("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),E("design:returntype",void 0)],Be.prototype,"ipi",null);Dt([Tt(fi),E("design:type",Function),E("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),E("design:returntype",void 0)],Be.prototype,"pis",null);Dt([Tt(Bo),E("design:type",Function),E("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),E("design:returntype",void 0)],Be.prototype,"pisst",null);Dt([Tt(li),E("design:type",Function),E("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),E("design:returntype",void 0)],Be.prototype,"cofins",null);Dt([Tt(Lo),E("design:type",Function),E("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),E("design:returntype",void 0)],Be.prototype,"cofinsst",null);Dt([Tt(zt),E("design:type",Function),E("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),E("design:returntype",void 0)],Be.prototype,"icmsufdest",null);Dt([Yo(jt),Tt(Ut),E("design:type",Function),E("design:paramtypes",[typeof IIS>"u"?Object:IIS]),E("design:returntype",void 0)],Be.prototype,"is",null);Dt([Yo(jt),Tt(Ft),E("design:type",Function),E("design:paramtypes",[typeof IIBSCBS>"u"?Object:IIBSCBS]),E("design:returntype",void 0)],Be.prototype,"ibscbs",null);Dt([Yo(jt),E("design:type",Function),E("design:paramtypes",[typeof IVItem>"u"?Object:IVItem]),E("design:returntype",void 0)],Be.prototype,"vItem",null);Dt([Yo(jt),Tt(Un),E("design:type",Function),E("design:paramtypes",[typeof IDFeReferenciado>"u"?Object:IDFeReferenciado]),E("design:returntype",void 0)],Be.prototype,"dfeReferenciado",null);import{left as ES,right as Gl}from"nfets/core";import{ValidateErrorsMetadata as Uf,Validates as Ne}from"nfets/core";import{Environment as zS,NFeTsError as TS}from"nfets/core";function Se(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Se,"_ts_decorate");function C(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(C,"_ts_metadata");var H=class{static{a(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;aggregators=[new Ec(this)];root="NFe";$det=new Pc(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=Be.create(this.$det,n)}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 e==null?this:(this.data.infNFe.avulsa=e,this)}dest(e){return e==null?this:(this.data.infNFe.dest=e,this)}retirada(e){return e==null?this:(this.data.infNFe.retirada=e,this)}entrega(e){return e==null?this:(this.data.infNFe.entrega=e,this)}autXML(e){return e?.length?(this.data.infNFe.autXML=e,this):this}det(e,t){return this.data.infNFe.det=e.map((n,r)=>{let i=t(this.nfeDetXmlBuilder.det({nItem:(r+1).toString()}),n);return this.collect(i),i.assemble()}),this}total(e){return e==null?this:(this.data.infNFe.total=e,this)}ISSQNtot(e){return e==null?this:(this.data.infNFe.total.ISSQNtot??={},this.data.infNFe.total.ISSQNtot={...this.data.infNFe.total.ISSQNtot,...e},this)}ICMSTot(e){return e==null?this:(this.data.infNFe.total.ICMSTot={...this.data.infNFe.total.ICMSTot,...e},this)}IBSCBSTot(e){return e==null?this:(this.data.infNFe.total.IBSCBSTot={...this.data.infNFe.total.IBSCBSTot,...e},this)}ISTot(e){return e==null?this:(this.data.infNFe.total.ISTot={...this.data.infNFe.total.ISTot,...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}:this.data.infNFe.total.ISSQNtot},jt.includes(this.schema)&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){let t=this.data.infNFe.total.IBSCBSTot,n=e.IBSCBSTot,r=this.data.infNFe.total.ISTot,i=e.ISTot;this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...t,...n,gCBS:{...t?.gCBS,...n?.gCBS},gIBS:{...t?.gIBS,...n?.gIBS,gIBSMun:{...t?.gIBS?.gIBSMun,...n?.gIBS?.gIBSMun},gIBSUF:{...t?.gIBS?.gIBSUF,...n?.gIBS?.gIBSUF}},...n?.gMono!=null||t?.gMono!=null?{gMono:{...t?.gMono,...n?.gMono}}:{},...n?.gEstornoCred!=null||t?.gEstornoCred!=null?{gEstornoCred:{...t?.gEstornoCred,...n?.gEstornoCred}}:{}},ISTot:r||i?{...r,...i}:r,vNFTot:e.vNFTot??this.data.infNFe.total.vNFTot}}transp(e){return e==null?this:(this.data.infNFe.transp=e,this)}cobr(e){return e==null?this:(this.data.infNFe.cobr=e,this)}pag(e){return e==null?this:(this.data.infNFe.pag=e,this)}infIntermed(e){return e==null?this:(this.data.infNFe.infIntermed=e,this)}infAdic(e){return e==null?this:(this.data.infNFe.infAdic=e,this)}exporta(e){return e==null?this:(this.data.infNFe.exporta=e,this)}compra(e){return e==null?this:(this.data.infNFe.compra=e,this)}cana(e){return e==null?this:(this.data.infNFe.cana=e,this)}infRespTec(e){return e==null?this:(this.data.infNFe.infRespTec=e,this)}infSolicNFF(e){return e==null?this:(this.data.infNFe.infSolicNFF=e,this)}agropecuario(e){return e==null?this:(this.data.infNFe.agropecuario=e,this)}infPAA(e){return e==null?this:(this.data.infNFe.infPAA=e,this)}toInstance(){return PS(this.data,Zn,{clearEmptyValues:!0})}quiet(){return Reflect.deleteMetadata(Uf,this),this}toObject(){if(this.$data!==void 0)return Gl(this.$data);let e=this.errors();if(e)return ES(new TS(e.join(", ")));for(let t of this.aggregators)t.aggregate();return this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=Jr(this.toInstance(),this.data.infNFe.emit.enderEmit.UF),Gl(this.$data)}async assemble(){let e=this.toObject();return e.isLeft()?e:Gl(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==zS.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!==Ue.Normal)return;switch(Xc[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ue.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ue.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ue.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Uf,this)}collect(e){let t=Reflect.getMetadata(Uf,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Uf,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new wc().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}}};Se([Ne(Tr),C("design:type",Function),C("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),C("design:returntype",void 0)],H.prototype,"infNFe",null);Se([Ne(B),C("design:type",Function),C("design:paramtypes",[typeof IIde>"u"?Object:IIde]),C("design:returntype",void 0)],H.prototype,"ide",null);Se([Ne(Ze),C("design:type",Function),C("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),C("design:returntype",void 0)],H.prototype,"emit",null);Se([Ne(at),C("design:type",Function),C("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),C("design:returntype",void 0)],H.prototype,"avulsa",null);Se([Ne(We),C("design:type",Function),C("design:paramtypes",[typeof IDest>"u"?Object:IDest]),C("design:returntype",void 0)],H.prototype,"dest",null);Se([Ne(ee),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"retirada",null);Se([Ne(ee),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"entrega",null);Se([Ne(ko,{each:!0}),C("design:type",Function),C("design:paramtypes",[Array]),C("design:returntype",void 0)],H.prototype,"autXML",null);Se([Ne(oo),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"total",null);Se([Yo(jt),Ne(Eo),C("design:type",Function),C("design:paramtypes",[typeof IIBSCBSTot>"u"?Object:IIBSCBSTot]),C("design:returntype",void 0)],H.prototype,"IBSCBSTot",null);Se([Yo(jt),Ne(mr),C("design:type",Function),C("design:paramtypes",[typeof IISTot>"u"?Object:IISTot]),C("design:returntype",void 0)],H.prototype,"ISTot",null);Se([Yo(jt),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"buildTotalForPL_010",null);Se([Ne(mt),C("design:type",Function),C("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),C("design:returntype",void 0)],H.prototype,"transp",null);Se([Ne(Cn),C("design:type",Function),C("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),C("design:returntype",void 0)],H.prototype,"cobr",null);Se([Ne(In),C("design:type",Function),C("design:paramtypes",[typeof IPag>"u"?Object:IPag]),C("design:returntype",void 0)],H.prototype,"pag",null);Se([Ne(vn),C("design:type",Function),C("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),C("design:returntype",void 0)],H.prototype,"infIntermed",null);Se([Ne(zo),C("design:type",Function),C("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),C("design:returntype",void 0)],H.prototype,"infAdic",null);Se([Ne(zi),C("design:type",Function),C("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),C("design:returntype",void 0)],H.prototype,"exporta",null);Se([Ne(Ti),C("design:type",Function),C("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),C("design:returntype",void 0)],H.prototype,"compra",null);Se([Ne(gt),C("design:type",Function),C("design:paramtypes",[typeof ICana>"u"?Object:ICana]),C("design:returntype",void 0)],H.prototype,"cana",null);Se([Ne($t),C("design:type",Function),C("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),C("design:returntype",void 0)],H.prototype,"infRespTec",null);Se([Ne(Er),C("design:type",Function),C("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),C("design:returntype",void 0)],H.prototype,"infSolicNFF",null);Se([Yo(jt),Ne(Ii),C("design:type",Function),C("design:paramtypes",[typeof IAgropecuario>"u"?Object:IAgropecuario]),C("design:returntype",void 0)],H.prototype,"agropecuario",null);Se([Yo(jt),Ne(qn),C("design:type",Function),C("design:paramtypes",[typeof IInfPAA>"u"?Object:IInfPAA]),C("design:returntype",void 0)],H.prototype,"infPAA",null);var Qf=class extends Gr{static{a(this,"NfeXmlBuilderPipeline")}certificate;schema;builder;constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t,this.builder=H.create(this.toolkit,void 0,this.schema)}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 MS.resolve(xc(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return ql(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return ql(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()?jS(new Ac(t.value.message,e,{cause:t.value.cause})):ql(e)}};import{NFeTsError as LS}from"nfets/core";import{left as HS,right as US}from"nfets/core";import{unreachable as QS}from"nfets/core";import{plainToInstance as VS}from"nfets/core";import{Type as Zl}from"class-transformer";import{Allow as BS,IsNotEmptyObject as Yl,IsObject as Xl,ValidateNested as Jl}from"class-validator";import{IsString as fm}from"class-validator";function am(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(am,"_ts_decorate");function cm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(cm,"_ts_metadata");var $s=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};am([fm(),cm("design:type",String)],$s.prototype,"qrCode",void 0);am([fm(),cm("design:type",String)],$s.prototype,"urlChave",void 0);function Gf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(r<3?s(i):r>3?s(e,t,i):s(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}a(Gf,"_ts_decorate");function qf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qf,"_ts_metadata");var ln=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Gf([Xl(),Yl(),Zl(()=>ks),Jl(),qf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],ln.prototype,"$",void 0);Gf([Xl(),Yl(),Zl(()=>W),Jl(),qf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],ln.prototype,"infNFe",void 0);Gf([Xl(),Yl(),Zl(()=>$s),Jl(),qf("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],ln.prototype,"infNFeSupl",void 0);Gf([BS(),qf("design:type",typeof Signature>"u"?Object:Signature)],ln.prototype,"Signature",void 0);var Zf=class extends H{static{a(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};static create(e,t,n="PL_009_V4"){return new this(e,t,n)}toInstance(){return VS(this.data,ln,{clearEmptyValues:!0})}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===Ue.Normal)return this.data.infNFe.ide.tpEmis=Ue.OFFLINE,void 0}};var pm=class extends Qf{static{a(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new pt(this.certificates);transmitter=new ot(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=Zf.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 HS(new LS("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,r=await this.toolkit.parse(n),i=await this.generateQrCode(r,this.options,this.certificate);if(i.isLeft())return i;let s=await this.toolkit.build(i.value,{rootName:"infNFeSupl"}),c=this.toolkit.insertBefore(n,"Signature",s);return US(c)}async generateQrCode(e,t,n){let r=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),i={...t.qrCode};switch(i.version??=r.version,i.version){case"200":return await this.nfceQrcode.execute(e,{version:i.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url,CSC:i.CSC,CSCId:i.CSCId});case"300":{let s=await this.certificates.read(n);return s.isLeft()?s:await this.nfceQrcode.execute(e,{version:i.version,certificate:s.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url})}default:return QS(i.version)}}};var lm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtB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B+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var ea=class o{static{a(this,"Header")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),r=e?.x??t,i=this.context.data.infNFe.emit,{enderEmit:s}=i,{xNome:c}=i,f=this.context.defaults.font,p=`${f}-Bold`,u="center";this.builder.row({left:r,right:n},h=>this.builder.text(this.identification(i),{...h,align:u})).row({left:r,right:n},h=>this.builder.font(p).text(c,{...h,align:u}).font(f)).row({left:r,right:n},h=>this.builder.text(`${this.addressLine1(s)}${this.addressLine2(s)}${this.addressLine3(s)}`,{...h,align:u})).row({left:r,right:n},h=>this.builder.text(this.addressLine4(s),{...h,align:u}))}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(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{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 lm}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){o._instance=void 0}};var Yn=class o{static{a(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 o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return this.context.protNFe?.infProt?this.constants.issuedInContingency:`${this.constants.issuedInContingency}
|
|
16
|
-
${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ue.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:e?.x??t,right:n},r=>this.builder.text(this.contingencyBannerText,{...r,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:e?.x??t,right:n},r=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...r,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(){o._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:r,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:r,align:"center"})),e.reduce((i,s)=>i+s,0)}};import{Environment as GS}from"nfets/core";var ta=class o{static{a(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 o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==GS.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(){o._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 Yf=class o{static{a(this,"Items")}context;static _instance;static instance(e){return this._instance??=new o(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:r,xProd:i,qCom:s,uCom:c,vUnCom:f,vDesc:p,vProd:u}=t,h={size:this.context.options.textFontSize},v={font:h,text:n.padStart(3,"0")},y={font:h,text:r},S=[{font:h,align:{x:"right"},text:`${this.context.currency(s,4)} ${c}`},{font:h,align:{x:"right"},text:this.context.currency(f,10)},{font:h,align:{x:"right"},text:this.context.currency(p??0)},{font:h,align:{x:"right"},text:this.context.currency(u)}],N=this.builder.widthOfString(r),A=this.columnStyles[1];if(N>=A)return[[v,{colSpan:6,font:h,text:`${r} ${i}`}],[{colSpan:3},...S]];let z=this.builder.widthOfString(i),Ce=this.columnStyles[2];if(z>=Ce)return[[v,y,{colSpan:5,font:h,text:i}],[{colSpan:3},...S]];let _=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${i}`)<=_?[[v,y,{font:h,text:i},...S]]:[[v,y,{colSpan:5,font:h,text:i}],[{colSpan:3},...S]]}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((r,i)=>r.concat(this.item(i)),[])]})}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(){o._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,r=this.columnStyles.reduce((s,c)=>typeof c=="number"?s+c:s,0),i=this.columnStyles.filter(s=>s==="*").length;return(n-r)/i}getAvailableWidth(e,t){if(e.colSpan){let i=t.indexOf(e),s=this.columnStyles.slice(0,i).reduce((f,p)=>typeof p=="number"?f+p:f,0),c=this.getProportionalWidth()*e.colSpan;return s+c}let n=t.indexOf(e),r=this.columnStyles[n];return typeof r=="number"?r:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let r of e){if(!r.text)continue;let i=r.text,s=this.builder.widthOfString(i),c=this.getAvailableWidth(r,e),f=s<=c?t:this.builder.heightOfString(i,{width:c});n=Math.max(n,f)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),r=n*1.2,i=n*.5,s=n*.5,c=t.reduce((p,u)=>{let h=this.item(u),[v]=h,y=this.calculateRowHeight(v,n),S=0;if(h.length>1){let _=this.calculateRowHeight(h[1],n);S=Math.max(n,_)}let{top:N,bottom:A}=this.defaultStyle.padding,z=N+A,Ce=h.length>1?n*.2:0;return p+y+S+h.length*z+Ce},0),f=n*2;return i+r+s+c+f}};import{Decimal as qS}from"nfets/core";var oa=class o{static{a(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new o(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:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Qtde. Total de Itens",{...i}),i=>this.builder.text(`${t.length}`,{...i,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:r,vOutro:i}=this.context.data.infNFe.total.ICMSTot,{vServ:s}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new qS(e).add(s??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",r),this.conditionalRowValue("Outras despesas total R$",i)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:r,right:i}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:r,right:i},s=>this.builder.text("Valor a Pagar R$",{...s,align:"left"}),s=>this.builder.text(this.context.currency(e),{...s,align:"right"})).font(t)}conditionalRowValue(e,t,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},s=>this.builder.text(e,{...s,align:"left"}),s=>this.builder.text(`${n}${t}`,{...s,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(){o._instance=void 0}};var Ve={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"},dm={[Ve.Dinheiro]:"Dinheiro",[Ve.Cheque]:"Cheque",[Ve.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[Ve.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[Ve.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[Ve.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[Ve.ValeRefeicao]:"Vale Refei\xE7\xE3o",[Ve.ValePresente]:"Vale Presente",[Ve.ValeCombustivel]:"Vale Combust\xEDvel",[Ve.BoletoBancario]:"Boleto Banc\xE1rio",[Ve.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[Ve.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[Ve.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[Ve.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[Ve.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[Ve.CreditoEmLoja]:"Cr\xE9dito em Loja",[Ve.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[Ve.SemPagamento]:"Sem pagamento",[Ve.PagamentoPosterior]:"Pagamento Posterior",[Ve.Outros]:"Outros"};var ia=class o{static{a(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:n}=e,{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},s=>this.builder.text(dm[t],{...s,align:"left"}),s=>this.builder.text(this.context.currency(n),{...s,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:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Forma de Pagamento",{...i,align:"left"}),i=>this.builder.text("Valor pago R$",{...i,align:"right"})),t.forEach(i=>this.payment(i))}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},r=>this.builder.text("Troco R$",{...r,align:"left"}),r=>this.builder.text(this.context.currency(e),{...r,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(){o._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,n=Array.isArray(t)?t:[t],r=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+r}};var na=class o{static{a(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new o(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,r=`${n}-Bold`;this.builder.font(r).row({left:e,right:t},i=>this.builder.text("Consulte pela Chave de Acesso em",{...i,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},r=>this.builder.text(e??"",{...r,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:r}=this.builder.pageMargins();this.builder.row({left:n,right:r},i=>this.builder.text(t,{...i,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(){o._instance=void 0}};var bv=Gd(Ld(),1);var ap=class o{static{a(this,"QRCode")}context;static _instance;qrCodeSvg;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ue.Normal}get qrSize(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.hasContingency?.6:.4;return Math.floor(n*r)}async getQrSvgString(e){try{return await bv.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),r=this.qrSize,i=r/t,s=r/n,c=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:f,right:p}=this.builder.pageMargins(),u=this.builder.pageWidth()-f-p,h=f+(u-r)/2,v=this.builder.y();this.builder.save().translate(h,v).scale(i,s),c.forEach(y=>{this.builder.path(y.$.d),y.$.fill&&this.builder.fill(y.$.fill),y.$.stroke&&this.builder.stroke(y.$.stroke)}),this.builder.restore(),this.builder.text("",{y:v+r})}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.qrCodeSvg?(this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder):this.builder}end(){o._instance=void 0}height(){let{qrCode:e}=this.context.data.infNFeSupl??{};return e?(this.setup(),this.qrSize+.5):0}};var cp=class o{static{a(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:n}=this.builder.pageMargins(),r=this.context.defaults.font,i=`${r}-Bold`;this.builder.row({left:e?.x??t,right:n},s=>this.builder.font(i).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...s,align:"center"}).font(r))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:r}=e;return t?.length===14?`CNPJ: ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:r?.length?`Id. Estrangeiro: ${r}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:n,right:r}=this.builder.pageMargins(),i=this.identification(t),{xNome:s,enderDest:c}=t,f=this.addressLine(c),p=this.context.defaults.font,u=`${p}-Bold`;this.builder.row({left:e?.x??n,right:r},h=>this.builder.font(u).text(`CONSUMIDOR - ${i}`,{...h,align:"center"}).font(p)).row({left:e?.x??n,right:r},h=>this.builder.text(`${s}${f}`,{...h,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:r,xCpl:i,xMun:s,UF:c,CEP:f}=e;if(!t||!f)return"";let p=i?`, ${i}`:"";return` - Rua ${t}, ${n}, ${r}${p}, ${s} - ${c}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,r=n?` - ${n}`:"";return`${t}${r}`}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(){o._instance=void 0}height(){this.setup();let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=[this.builder.currentLineHeight()*.5],{dest:i}=this.context.data.infNFe;if(!i)return r.push(this.builder.heightOfString("CONSUMIDOR N\xC3O IDENTIFICADO",{width:n,align:"center"})),r.reduce((u,h)=>u+h,0);let s=this.identification(i),{xNome:c,enderDest:f}=i,p=this.addressLine(f);return r.push(this.builder.heightOfString(`CONSUMIDOR - ${s}`,{width:n,align:"center"}),this.builder.heightOfString(`${c}${p}`,{width:n,align:"center"})),r.reduce((u,h)=>u+h,0)}};import{dateToolkit as fp,timezones as Hd}from"nfets/core";var pp=class o{static{a(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new o(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:r}=this.context.data.infNFe.ide,i=t.padStart(9,"0"),s=n.padStart(3,"0"),{left:c,right:f}=this.builder.pageMargins(),{cUF:p}=this.context.data.infNFe.ide,u=Hd[p],h=fp(r).tz(u).format("DD/MM/YYYY HH:mm:ss"),v=this.context.defaults.font,y=`${v}-Bold`;this.builder.row({left:e?.x??c,right:f},S=>this.builder.font(y).text(`NFC-e n\xBA ${i} - s\xE9rie ${s} emitida em: ${h}`,{...S,align:"center"}).font(v))}protocoled(e,t){let{dhRecbto:n,nProt:r}=e,{left:i,right:s}=this.builder.pageMargins(),{cUF:c}=this.context.data.infNFe.ide,f=Hd[c],p=r.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),u=fp(n).tz(f).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??i,right:s},h=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${p}
|
|
17
|
-
Data de autoriza\xE7\xE3o: ${u}`,{...h,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:r,right:
|
|
18
|
-
Data de autoriza\xE7\xE3o: ${_}`,{width:r,align:"center"}))}return e.reduce((
|
|
13
|
+
`,typeof t=="function"&&t(null,c),c}});var gv=F(mv=>{"use strict";var eN="\x1B[47m",tN="\x1B[40m",Hd="\x1B[37m",Ud="\x1B[30m",Wr="\x1B[0m",oN=eN+Ud,iN=tN+Hd,nN=a(function(i,e,t){return{"00":Wr+" "+i,"01":Wr+e+"\u2584"+i,"02":Wr+t+"\u2584"+i,10:Wr+e+"\u2580"+i,11:" ",12:"\u2584",20:Wr+t+"\u2580"+i,21:"\u2580",22:"\u2588"}},"createPalette"),uv=a(function(i,e,t,n){let r=e+1;if(t>=r||n>=r||n<-1||t<-1)return"0";if(t>=e||n>=e||n<0||t<0)return"1";let o=n*e+t;return i[o]?"2":"1"},"mkCodePixel"),hv=a(function(i,e,t,n){return uv(i,e,t,n)+uv(i,e,t,n+1)},"mkCode");mv.render=function(i,e,t){let n=i.modules.size,r=i.modules.data,o=!!(e&&e.inverse),s=e&&e.inverse?iN:oN,l=nN(s,o?Ud:Hd,o?Hd:Ud),u=Wr+`
|
|
14
|
+
`+s,h=s;for(let g=-1;g<n+1;g+=2){for(let y=-1;y<n;y++)h+=l[hv(r,n,y,g)];h+=l[hv(r,n,n,g)]+u}return h+=Wr,typeof t=="function"&&t(null,h),h}});var yv=F(vv=>{"use strict";var rN=dv(),sN=gv();vv.render=function(i,e,t){return e&&e.small?sN.render(i,e,t):rN.render(i,e,t)}});var Gd=F(Cv=>{"use strict";var aN=Ec();function Sv(i,e){let t=i.a/255,n=e+'="'+i.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}a(Sv,"getColorAttrib");function Qd(i,e,t){let n=i+e;return typeof t<"u"&&(n+=" "+t),n}a(Qd,"svgCmd");function cN(i,e,t){let n="",r=0,o=!1,s=0;for(let c=0;c<i.length;c++){let f=Math.floor(c%e),l=Math.floor(c/e);!f&&!o&&(o=!0),i[c]?(s++,c>0&&f>0&&i[c-1]||(n+=o?Qd("M",f+t,.5+l+t):Qd("m",r,0),r=0,o=!1),f+1<e&&i[c+1]||(n+=Qd("h",s),s=0)):r++}return n}a(cN,"qrToPath");Cv.render=a(function(e,t,n){let r=aN.getOptions(t),o=e.modules.size,s=e.modules.data,c=o+r.margin*2,f=r.color.light.a?"<path "+Sv(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",l="<path "+Sv(r.color.dark,"stroke")+' d="'+cN(s,o,r.margin)+'"/>',u='viewBox="0 0 '+c+" "+c+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+u+' shape-rendering="crispEdges">'+f+l+`</svg>
|
|
15
|
+
`;return typeof n=="function"&&n(null,g),g},"render")});var bv=F(dl=>{"use strict";var fN=Gd();dl.render=fN.render;dl.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let o=Ue("fs"),c='<?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">'+dl.render(t,n);o.writeFile(e,c,r)},"renderToFile")});var Nv=F(ul=>{"use strict";var qd=Ec();function lN(i,e,t){i.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"}a(lN,"clearCanvas");function pN(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}a(pN,"getCanvasElement");ul.render=a(function(e,t,n){let r=n,o=t;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),t||(o=pN()),r=qd.getOptions(r);let s=qd.getImageWidth(e.modules.size,r),c=o.getContext("2d"),f=c.createImageData(s,s);return qd.qrToImageData(f.data,e,r),lN(c,o,s),c.putImageData(f,0,0),o},"render");ul.renderToDataURL=a(function(e,t,n){let r=n;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),r||(r={});let o=ul.render(e,t,r),s=r.type||"image/png",c=r.rendererOpts||{};return o.toDataURL(s,c.quality)},"renderToDataURL")});var Rv=F(zc=>{"use strict";var dN=nd(),Zd=Id(),Iv=Nv(),uN=Gd();function Yd(i,e,t,n,r){let o=[].slice.call(arguments,1),s=o.length,c=typeof o[s-1]=="function";if(!c&&!dN())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(r=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(f,l){try{let u=Zd.create(t,n);f(i(u,e,n))}catch(u){l(u)}})}try{let f=Zd.create(t,n);r(null,i(f,e,n))}catch(f){r(f)}}a(Yd,"renderCanvas");zc.create=Zd.create;zc.toCanvas=Yd.bind(null,Iv.render);zc.toDataURL=Yd.bind(null,Iv.renderToDataURL);zc.toString=Yd.bind(null,function(i,e,t){return uN.render(i,t)})});var Dv=F(cr=>{"use strict";var Ov=nd(),Jd=Id(),hN=fv(),Fv=lv(),mN=yv(),xv=bv();function Tc(i,e,t){if(typeof i>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(Ov())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}a(Tc,"checkParams");function gN(i){return i.slice((i.lastIndexOf(".")-1>>>0)+2).toLowerCase()}a(gN,"getTypeFromFilename");function hl(i){switch(i){case"svg":return xv;case"txt":case"utf8":return Fv;default:return hN}}a(hl,"getRendererFromType");function vN(i){switch(i){case"svg":return xv;case"terminal":return mN;default:return Fv}}a(vN,"getStringRendererFromType");function Mc(i,e,t){if(!t.cb)return new Promise(function(n,r){try{let o=Jd.create(e,t.opts);return i(o,t.opts,function(s,c){return s?r(s):n(c)})}catch(o){r(o)}});try{let n=Jd.create(e,t.opts);return i(n,t.opts,t.cb)}catch(n){t.cb(n)}}a(Mc,"render");cr.create=Jd.create;cr.toCanvas=Rv().toCanvas;cr.toString=a(function(e,t,n){let r=Tc(e,t,n),o=r.opts?r.opts.type:void 0,s=vN(o);return Mc(s.render,e,r)},"toString");cr.toDataURL=a(function(e,t,n){let r=Tc(e,t,n),o=hl(r.opts.type);return Mc(o.renderToDataURL,e,r)},"toDataURL");cr.toBuffer=a(function(e,t,n){let r=Tc(e,t,n),o=hl(r.opts.type);return Mc(o.renderToBuffer,e,r)},"toBuffer");cr.toFile=a(function(e,t,n,r){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!Ov())throw new Error("Too few arguments provided");let o=Tc(t,n,r),s=o.opts.type||gN(e),f=hl(s).renderToFile.bind(null,e);return Mc(f,t,o)},"toFile");cr.toFileStream=a(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let r=Tc(t,n,e.emit.bind(e,"error")),s=hl("png").renderToFileStream.bind(null,e);Mc(s,t,r)},"toFileStream")});var Xd=F((IM,Av)=>{"use strict";Av.exports=Dv()});import{NFeTsError as Uv}from"nfets/core";var Bc=class extends Uv{static{a(this,"XmlValidationError")}xml;name="XmlValidationError";constructor(e,t,n){super(e,n),this.xml=t}};var K=(function(i){return i.Normal="1",i.EPEC="4",i.SVCAN="6",i.SVCRS="7",i.OFFLINE="9",i})({});var Qe=(function(i){return i.Cancelamento="110111",i.CancelamentoSubstituicao="110112",i.ConfirmacaoOperacao="210200",i.CienciaOperacao="210210",i.DesconhecimentoOperacao="210220",i.OperacaoNaoRealizada="210240",i})({});var eu=(function(i){return i.RegistradoEVinculado="135",i})({}),tu=(function(i){return i.RegistradoEVinculado="135",i.RegistradoNaoVinculado="136",i.CancelamentoHomologadoForaPrazo="155",i})({});var ou=(function(i){return i.InutilizacaoHomologada="102",i})({});import{search as iu}from"nfets/core";var _r={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"},GN=[_r.PL_009_V4],jt=[_r.PL_010_V1,_r.PL_010_V1_21,_r.PL_010_V1_30],nu=_r.PL_009_V4,Vc=a(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return iu("packages/nfe/schemas",{onFound:a(i=>i,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return iu("nfe/schemas",{onFound:a(i=>i,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),ru=_r;var Qv=2.834645669291339,R=a(i=>i*Qv,"mm"),YN={A4:[R(210),R(297)]},su={top:R(5),right:R(5),bottom:R(5),left:R(5)};var Lc=class{static{a(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),r=e.month.toString().padStart(2,"0"),o=(e.identification??"").padStart(14,"0"),s=e.mod.toString().padStart(2,"0"),c=e.serie.toString().padStart(3,"0"),f=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),u=(e.cNF??this.code()).toString().padStart(8,"0"),h=`${t}${n}${r}${o}${s}${c}${f}${l}${u}`;return`${h}${this.verifyingDigit(h)}`}decompile(e){if(e=e.trim().replace(/^NFe/,""),e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([A-Z0-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[r,o,s,c,f,l,u,h,g,y,S]=n;return{cUF:o,year:s,month:c,identification:f,mod:l,serie:u,nNF:h,tpEmis:g,cNF:y,vd:S}}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=[4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2],n=48,r=43,o=0;for(let c=0;c<r;c++){let f=e.charCodeAt(c)-n;o+=f*t[c]}return o%11<2?0:11-o%11}};import{Xml2JsToolkit as Gv}from"nfets/core";import{left as Bl,NFeTsError as Vl,right as au}from"nfets/core";var qv=new Set([Qe.Cancelamento,Qe.CancelamentoSubstituicao]),cu=class{static{a(this,"NfeComplements")}toolkit;constructor(e=new Gv){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return Bl(new Vl("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return Bl(new Vl("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return Bl(new Vl("Access key not found in protNFe"));let o=this.findMatchingRetEvento(t,r);return o?au(this.toolkit.appendNode(e,o)):au(e)}findMatchingRetEvento(e,t){for(let n of this.toolkit.getNodes(e,"retEvento")){let r=this.toolkit.getNodeValue(n,"cStat"),o=this.toolkit.getNodeValue(n,"tpEvento"),s=this.toolkit.getNodeValue(n,"chNFe");if(r&&Object.values(tu).includes(r)&&o&&qv.has(o)&&s===t)return n}return null}};import{Decimal as fu}from"nfets/core";var Hc=class{static{a(this,"DefaultDetBuilderAggregator")}builder;zero=fu.from(0);constructor(e){this.builder=e}prod(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vProd:this.sum(t?.vProd,e.vProd),vFrete:this.sum(t?.vFrete,e.vFrete),vSeg:this.sum(t?.vSeg,e.vSeg),vDesc:this.sum(t?.vDesc,e.vDesc),vOutro:this.sum(t?.vOutro,e.vOutro)}}))}issqn(e){this.builder.increment(({ISSQNtot:t})=>({ISSQNtot:{vISS:this.sum(t?.vISS,e.vISSQN)}}))}cofins(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vCOFINS:this.sum(t?.vCOFINS,e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS)}}))}pis(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vPIS:this.sum(t?.vPIS,e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS)}}))}icms(e){let[t]=Object.keys(e),n=e[t];this.builder.increment(({ICMSTot:r})=>({ICMSTot:{vBC:this.sum(r?.vBC,n.vBC),vICMS:this.sum(r?.vICMS,n.vICMS),vICMSDeson:this.sum(r?.vICMSDeson,n.vICMSDeson),vBCST:this.sum(r?.vBCST,n.vBCST),vST:this.sum(r?.vST,n.vICMSST),vFCP:this.sum(r?.vFCP,n.vFCP),vFCPST:this.sum(r?.vFCPST,n.vFCPST),vFCPSTRet:this.sum(r?.vFCPSTRet,n.vFCPSTRet),qBCMono:this.sum(r?.qBCMono,n.qBCMono),vICMSMono:this.sum(r?.vICMSMono,n.vICMSMono),qBCMonoReten:this.sum(r?.qBCMonoReten,n.qBCMonoReten),vICMSMonoReten:this.sum(r?.vICMSMonoReten,n.vICMSMonoReten),qBCMonoRet:this.sum(r?.qBCMonoRet,n.qBCMonoRet),vICMSMonoRet:this.sum(r?.vICMSMonoRet,n.vICMSMonoRet)}}))}imposto(e){e.vTotTrib!=null&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vTotTrib:this.sum(t?.vTotTrib,e.vTotTrib)}}))}ii(e){e.vII&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vII:this.sum(t?.vII,e.vII)}}))}ipi(e){let t=e.IPITrib?.vIPI;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPI:this.sum(n?.vIPI,t)}}))}impostoDevol(e){let t=e.IPI?.vIPIDevol;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPIDevol:this.sum(n?.vIPIDevol,t)}}))}sum(e,t,n=2){return fu.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as Ll}from"nfets/core";var Uc=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=Ll.from(0),t=jt.includes(this.builder.schema??"");this.builder.increment(({ICMSTot:n,ISSQNtot:r},o)=>{let s=this.resolveDeductibleVICMSDeson(o);return{...t?{vNFTot:o.reduce((c,f)=>c.add(f?.vItem??e),e).toFixed(2)}:{},ICMSTot:{vNF:Ll.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(s).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vICMSMonoReten??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(r?.vServ??e).toFixed(2)}}})}resolveDeductibleVICMSDeson(e){let t=Ll.from(0);return e.length?e.reduce((n,r)=>{let o=r?.imposto?.ICMS;if(!o)return n;let[s]=Object.keys(o),c=o[s];return c?.indDeduzDeson!=="1"||c.vICMSDeson==null?n:n.add(c.vICMSDeson)},t).toFixed(2):t.toFixed(2)}};import{NFeTsError as o0,right as i0,Validates as n0,left as r0}from"nfets/core";var Kr={[Qe.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"},[Qe.CancelamentoSubstituicao]:{method:"envEventoCancSubstNFe",version:"1.00",descEvento:"Cancelamento por substituicao"},[Qe.ConfirmacaoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Confirmacao da Operacao"},[Qe.CienciaOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Ciencia da Operacao"},[Qe.DesconhecimentoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Desconhecimento da Operacao"},[Qe.OperacaoNaoRealizada]:{method:"envConfRecebto",version:"1.00",descEvento:"Operacao nao Realizada"}};import{left as Nu,NFeTsError as Iu,right as Ru}from"nfets/core";import{Xml2JsToolkit as Zv,NativeCertificateRepository as Yv,SoapRemoteTransmissionRepository as Jv,MemoryCacheAdapter as Xv}from"nfets/core";import{EntitySigner as Wv,ValidateErrorsMetadata as _v,XmlSigner as Kv}from"nfets/core";var kr=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=$d.create();toolkit=new Zv;caching=new Xv;certificates=new Yv(this.http,this.caching);soap=new Jv(this.toolkit,this.certificates);signer=new Wv(this.toolkit,this.certificates);xmlSigner=new Kv(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(_v,this)}};import Qy from"path";import{NFeTsError as Gy,StateCodes as qy}from"nfets/core";import{ValidateErrorsMetadata as bu,Validates as Sn}from"nfets/core";import{left as Zy,right as Yy}from"nfets/core";import{StateCodes as kv,Environment as $v}from"nfets/core";import{Type as ey}from"class-transformer";import{IsEnum as lu,IsNotEmptyObject as ty,IsObject as oy,ValidateNested as iy,IsOptional as ny}from"class-validator";function Qc(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Qc,"_ts_decorate");function Ul(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ul,"_ts_metadata");var vn=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};Qc([lu($v),Ul("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],vn.prototype,"tpAmb",void 0);Qc([lu(kv),Ul("design:type",typeof StateCode>"u"?Object:StateCode)],vn.prototype,"cUF",void 0);Qc([ny()],vn.prototype,"xServ",void 0);var Hl=class{static{a(this,"ConsultStatusRequest")}consStatServ};Qc([ty(),oy(),iy(),ey(()=>vn),Ul("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],Hl.prototype,"consStatServ",void 0);import{Choice as ry}from"nfets/core";import{StateCodes as sy,Environment as ay}from"nfets/core";import{Type as Ql}from"class-transformer";import{IsEnum as pu,IsOptional as qc,IsString as So,Length as du,MinLength as cy,MaxLength as fy,Matches as Ta,ValidateNested as Gl,Allow as ly,IsObject as uu}from"class-validator";function Ge(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ge,"_ts_decorate");function tt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(tt,"_ts_metadata");var Gc=class{static{a(this,"InfInutAttributes")}Id};Ge([So(),tt("design:type",String)],Gc.prototype,"Id",void 0);var za=class{static{a(this,"InutNFeAttributes")}xmlns;versao};Ge([So(),tt("design:type",String)],za.prototype,"xmlns",void 0);Ge([So(),qc(),tt("design:type",String)],za.prototype,"versao",void 0);var et=class{static{a(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ge([Gl(),Ql(()=>Gc),tt("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],et.prototype,"$",void 0);Ge([pu(ay),tt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],et.prototype,"tpAmb",void 0);Ge([qc()],et.prototype,"xServ",void 0);Ge([pu(sy),tt("design:type",typeof StateCode>"u"?Object:StateCode)],et.prototype,"cUF",void 0);Ge([So(),du(2,2),Ta(/^[0-9]{2}$/),tt("design:type",String)],et.prototype,"ano",void 0);Ge([So(),qc(),tt("design:type",String)],et.prototype,"CNPJ",void 0);Ge([So(),qc(),tt("design:type",String)],et.prototype,"CPF",void 0);Ge([So(),du(2,2),Ta(/^(55|65)$/),tt("design:type",String)],et.prototype,"mod",void 0);Ge([So(),Ta(/^[0-9]{1,3}$/),tt("design:type",String)],et.prototype,"serie",void 0);Ge([So(),Ta(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFIni",void 0);Ge([So(),Ta(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFFin",void 0);Ge([So(),cy(15),fy(255),tt("design:type",String)],et.prototype,"xJust",void 0);et=Ge([ry({properties:["CNPJ","CPF"],required:!0})],et);var wi=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};Ge([uu(),Gl(),Ql(()=>za),tt("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],wi.prototype,"$",void 0);Ge([uu(),Gl(),Ql(()=>et),tt("design:type",typeof IInfInut>"u"?Object:IInfInut)],wi.prototype,"infInut",void 0);Ge([ly(),tt("design:type",typeof Signature>"u"?Object:Signature)],wi.prototype,"Signature",void 0);import{Environment as py}from"nfets/core";import{IsEnum as dy,IsOptional as uy,IsString as hy,Length as my,Matches as gy}from"class-validator";function ql(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ql,"_ts_decorate");function hu(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(hu,"_ts_metadata");var dr=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};ql([dy(py),hu("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dr.prototype,"tpAmb",void 0);ql([uy()],dr.prototype,"xServ",void 0);ql([hy(),my(44,44),gy(/^[A-Z0-9]{44}$/),hu("design:type",String)],dr.prototype,"chNFe",void 0);import{StateCodes as vy,Environment as yy}from"nfets/core";import{IsEnum as Zl,IsOptional as Yc,IsString as Sy,IsNotEmpty as Cy}from"class-validator";function Ma(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ma,"_ts_decorate");function Zc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Zc,"_ts_metadata");var Co=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Ma([Zl(yy),Yc(),Zc("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Co.prototype,"tpAmb",void 0);Ma([Zl(vy),Yc(),Zc("design:type",typeof StateCode>"u"?Object:StateCode)],Co.prototype,"cUF",void 0);Ma([Sy(),Yc(),Zc("design:type",String)],Co.prototype,"idLote",void 0);Ma([Yc(),Zl(["0","1"])],Co.prototype,"indSinc",void 0);Ma([Cy(),Zc("design:type",typeof T>"u"?Object:T)],Co.prototype,"NFe",void 0);import{Environment as by}from"nfets/core";import{IsEnum as Ny,IsString as Iy}from"class-validator";function mu(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(mu,"_ts_decorate");function gu(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(gu,"_ts_metadata");var $r=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;nRec};mu([Ny(by),gu("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],$r.prototype,"tpAmb",void 0);mu([Iy(),gu("design:type",String)],$r.prototype,"nRec",void 0);import{IsString as Pi,IsNotEmpty as Ry,ValidateNested as Wc,IsObject as _c,IsOptional as vu,IsEnum as Oy,IsNumber as Fy,Allow as xy}from"class-validator";import{Type as Kc}from"class-transformer";import{Choice as Dy,TransformDateString as Ay}from"nfets/core";function qe(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(qe,"_ts_decorate");function Xe(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Xe,"_ts_metadata");var Jc=class{static{a(this,"InfEventoAttributes")}Id};qe([Pi(),Xe("design:type",String)],Jc.prototype,"Id",void 0);var Je=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qe([_c(),Wc(),Kc(()=>Jc),Xe("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Je.prototype,"$",void 0);qe([Pi(),Xe("design:type",typeof StateCode>"u"?Object:StateCode)],Je.prototype,"cOrgao",void 0);qe([Pi(),Xe("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Je.prototype,"tpAmb",void 0);qe([Pi(),vu(),Xe("design:type",String)],Je.prototype,"CNPJ",void 0);qe([Pi(),vu(),Xe("design:type",String)],Je.prototype,"CPF",void 0);qe([Pi(),Xe("design:type",String)],Je.prototype,"chNFe",void 0);qe([Ay({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Xe("design:type",String)],Je.prototype,"dhEvento",void 0);qe([Oy(Qe),Xe("design:type",typeof Qe>"u"?Object:Qe)],Je.prototype,"tpEvento",void 0);qe([Fy(),Xe("design:type",Number)],Je.prototype,"nSeqEvento",void 0);qe([Pi(),Xe("design:type",String)],Je.prototype,"verEvento",void 0);qe([_c(),Xe("design:type",typeof T>"u"?Object:T)],Je.prototype,"detEvento",void 0);Je=qe([Dy({properties:["CNPJ","CPF"],required:!0})],Je);var Xc=class{static{a(this,"EventoItemAttributes")}xmlns};qe([Pi(),Xe("design:type",String)],Xc.prototype,"xmlns",void 0);var _o=class{static{a(this,"EventoItem")}$;infEvento;Signature};qe([_c(),Wc(),Kc(()=>Xc),Xe("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],_o.prototype,"$",void 0);qe([_c(),Wc(),Kc(()=>Je),Xe("design:type",typeof Je>"u"?Object:Je)],_o.prototype,"infEvento",void 0);qe([xy(),Xe("design:type",typeof Signature>"u"?Object:Signature)],_o.prototype,"Signature",void 0);var es=class{static{a(this,"EventoPayload")}idLote;evento};qe([Pi(),Xe("design:type",String)],es.prototype,"idLote",void 0);qe([Ry(),Wc(),Kc(()=>_o),Xe("design:type",typeof _o>"u"?Object:_o)],es.prototype,"evento",void 0);import{StateAcronyms as wy}from"nfets/core";import{Choice as Py}from"nfets/core";import{IsIn as Ey,IsOptional as $c,IsString as ef}from"class-validator";function ts(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ts,"_ts_decorate");function kc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(kc,"_ts_metadata");var bo=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};ts([$c()],bo.prototype,"xServ",void 0);ts([ef(),Ey(Object.values(wy)),kc("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],bo.prototype,"UF",void 0);ts([$c(),ef(),kc("design:type",String)],bo.prototype,"IE",void 0);ts([$c(),ef(),kc("design:type",String)],bo.prototype,"CNPJ",void 0);ts([$c(),ef(),kc("design:type",String)],bo.prototype,"CPF",void 0);bo=ts([Py({properties:["IE","CNPJ","CPF"],required:!0})],bo);import{StateCodes as zy,Environment as Ty}from"nfets/core";import{Choice as My}from"nfets/core";import{Type as jy}from"class-transformer";import{IsEnum as yu,IsObject as By,IsOptional as Su,IsString as Yl,Length as Vy,Matches as Ly,ValidateNested as Hy}from"class-validator";function ur(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ur,"_ts_decorate");function os(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(os,"_ts_metadata");var tf=class{static{a(this,"ConsChNFe")}chNFe};ur([Yl(),Vy(44,44),Ly(/^[A-Z0-9]{44}$/),os("design:type",String)],tf.prototype,"chNFe",void 0);var No=class{static{a(this,"DistribuicaoDFePayload")}tpAmb;cUFAutor;CNPJ="";CPF="";consChNFe};ur([yu(Ty),os("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],No.prototype,"tpAmb",void 0);ur([yu(zy),os("design:type",typeof StateCode>"u"?Object:StateCode)],No.prototype,"cUFAutor",void 0);ur([Su(),Yl(),os("design:type",String)],No.prototype,"CNPJ",void 0);ur([Su(),Yl(),os("design:type",String)],No.prototype,"CPF",void 0);ur([By(),Hy(),jy(()=>tf),os("design:type",typeof IConsChNFe>"u"?Object:IConsChNFe)],No.prototype,"consChNFe",void 0);No=ur([My({properties:["CNPJ","CPF"],required:!0})],No);import{Environment as L}from"nfets/core";var Jl={AM:{[L.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"}},[L.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:{[L.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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"}},[L.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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:{[L.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:"NFeInutilizacao",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"}},[L.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:"NFeInutilizacao",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:{[L.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"}},[L.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:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[L.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"}},[L.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:{[L.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"}},[L.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:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[L.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[L.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[L.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"}},[L.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:{[L.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"}},[L.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:{[L.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"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[L.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"}},[L.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:{[L.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"}},[L.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};import{StateCodes as k}from"nfets/core";var Uy={[k.AC]:"SVRS",[k.AL]:"SVRS",[k.AM]:"AM",[k.AP]:"SVRS",[k.BA]:"BA",[k.CE]:"SVRS",[k.DF]:"SVRS",[k.ES]:"SVRS",[k.GO]:"GO",[k.MA]:"SVAN",[k.MG]:"MG",[k.MS]:"MS",[k.MT]:"MT",[k.PA]:"SVRS",[k.PB]:"SVRS",[k.PE]:"PE",[k.PI]:"SVRS",[k.PR]:"PR",[k.RJ]:"SVRS",[k.RN]:"SVRS",[k.RO]:"SVRS",[k.RR]:"SVRS",[k.RS]:"RS",[k.SC]:"SVRS",[k.SE]:"SVRS",[k.SP]:"SP",[k.TO]:"SVRS",91:"AN",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Cu=Uy;import{StateCodes as $}from"nfets/core";var of={[$.AC]:"SVCAN",[$.AL]:"SVCAN",[$.AM]:"SVCRS",[$.AP]:"SVCAN",[$.BA]:"SVCRS",[$.CE]:"SVCAN",[$.DF]:"SVCAN",[$.ES]:"SVCAN",[$.GO]:"SVCRS",[$.MA]:"SVCRS",[$.MG]:"SVCAN",[$.MS]:"SVCRS",[$.MT]:"SVCRS",[$.PA]:"SVCAN",[$.PB]:"SVCAN",[$.PE]:"SVCRS",[$.PI]:"SVCAN",[$.PR]:"SVCRS",[$.RJ]:"SVCAN",[$.RN]:"SVCAN",[$.RO]:"SVCAN",[$.RR]:"SVCAN",[$.RS]:"SVCAN",[$.SC]:"SVCAN",[$.SE]:"SVCAN",[$.SP]:"SVCAN",[$.TO]:"SVCAN"};function yn(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(yn,"_ts_decorate");function se(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(se,"_ts_metadata");var Bt=class{static{a(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}xmlns="http://www.portalfiscal.inf.br/nfe";options={timeout:6e4};configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=ru.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,r=this.options.contingency?of[t]:Cu[t];return Jl[r][n][e.service]}errors(){return Reflect.getMetadata(bu,this)}validate(e){try{let t=this.errors();return t?Zy(new Gy(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Yy(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 Qy.resolve(Vc(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,r.version)},method:r.method})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:r}=t.value.infInut,o=t.value,s=this.service({cUF:n,tpAmb:r,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:s.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(o,s.version)},method:s.method})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,r.version)},method:r.method})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,timeout:this.options.timeout,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,r.version)},method:r.method})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,r.version)},method:r.method})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,r.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,r.version)},method:r.method})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:qy[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,r.version)},method:r.method})}async distribuicaoDFe(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=Jl.AN[n.tpAmb].NfeDistribuicaoDFe;return this.remoteTransmissionRepository.send({root:"nfeDistDFeInteresse",url:r.url,xsd:this.xsd("distDFeInt_v1.01.xsd"),payload:{nfeDadosMsg:{distDFeInt:this.ns(n,r.version)}},method:r.method})}};yn([Sn(vn),se("design:type",Function),se("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),se("design:returntype",Promise)],Bt.prototype,"consultStatus",null);yn([Sn(wi),se("design:type",Function),se("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),se("design:returntype",Promise)],Bt.prototype,"inutilizacao",null);yn([Sn(dr),se("design:type",Function),se("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),se("design:returntype",Promise)],Bt.prototype,"consultaProtocolo",null);yn([Sn(Co),se("design:type",Function),se("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),se("design:returntype",Promise)],Bt.prototype,"autorizacao",null);yn([Sn($r),se("design:type",Function),se("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),se("design:returntype",Promise)],Bt.prototype,"retAutorizacao",null);yn([Sn(es),se("design:type",Function),se("design:paramtypes",[Object]),se("design:returntype",Promise)],Bt.prototype,"recepcaoEvento",null);yn([Sn(bo),se("design:type",Function),se("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),se("design:returntype",Promise)],Bt.prototype,"consultaCadastro",null);yn([Sn(No),se("design:type",Function),se("design:paramtypes",[typeof IDistribuicaoDFePayload>"u"?Object:IDistribuicaoDFePayload]),se("design:returntype",Promise)],Bt.prototype,"distribuicaoDFe",null);var ft=class extends kr{static{a(this,"TransmissionPipeline")}certificate;transmitter=new Bt(this.soap);constructor(e){super(e),this.certificate=e}issuerFromIdentification(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,"");if(!t)return Nu(new Iu("CNPJ/CPF do emitente \xE9 obrigat\xF3rio"));if(t.length===11)return Ru({CPF:t,idDigits:t.padStart(14,"0")});let n=t.padStart(14,"0");return n.length!==14?Nu(new Iu("CNPJ/CPF do emitente \xE9 inv\xE1lido")):Ru({CNPJ:n,idDigits:n})}};import{StateCodes as Jy}from"nfets/core";import{Decimal as Xy}from"nfets/core";var Wy=["MT"],_y=[Jy.MT],Ky=[[/[áàâãªä]/g,"a"],[/[ÁÀÂÃÄ]/g,"A"],[/[ÍÌÎÏ]/g,"I"],[/[íìîï]/g,"i"],[/[éèêë]/g,"e"],[/[ÉÈÊË]/g,"E"],[/[óòôõºö]/g,"o"],[/[ÓÒÔÕÖ]/g,"O"],[/[úùûü]/g,"u"],[/[ÚÙÛÜ]/g,"U"],[/ç/g,"c"],[/Ç/g,"C"],[/ñ/g,"n"],[/Ñ/g,"N"]];function ky(i){if(!i)return!1;let e=i.toUpperCase();return Wy.includes(e)||_y.includes(e)}a(ky,"shouldStripSefazAccents");function $y(i){return Ky.reduce((e,[t,n])=>e.replace(t,n),i)}a($y,"replaceSefazSpecialChars");function is(i,e){return ky(e)?Xl(i):i}a(is,"sanitizeSefazText");function e0(i){return i===null||typeof i!="object"||i instanceof Date||i instanceof Xy?!1:!ArrayBuffer.isView(i)}a(e0,"isWalkableObject");function Xl(i){if(typeof i=="string")return $y(i);if(Array.isArray(i))return i.map(n=>Xl(n));if(!e0(i))return i;let e={};for(let[t,n]of Object.entries(i))e[t]=Xl(n);return e}a(Xl,"walk");function t0(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(t0,"_ts_decorate");function Wl(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Wl,"_ts_metadata");var hr=class extends ft{static{a(this,"EventPipeline")}async event(e,t,n){let r=await this.certificates.read(this.certificate);if(r.isLeft())return r;let o=t.chNFe.slice(0,2);this.transmitter.configure({cUF:t.cOrgao??o,...n,certificate:r.value});let s=Kr[e],c=this.issuerFromIdentification(t.identification);if(c.isLeft())return c;let{nSeqEvento:f,dhEvento:l,chNFe:u}=t,h=["ID",e,u,f.toString().padStart(2,"0")].join(""),g=is({$:{xmlns:this.xmlns},infEvento:{$:{Id:h},cOrgao:t.cOrgao??o,tpAmb:n.tpAmb,CNPJ:c.value.CNPJ,CPF:c.value.CPF,chNFe:u,dhEvento:l,tpEvento:e,nSeqEvento:f,verEvento:s.version,detEvento:{$:{versao:s.version},descEvento:s.descEvento,...t.detEvento}}},o),y=this.validated(g);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},r.value)}versionedEvent(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infEvento;if(!Object.values(eu).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"evento"});let o={evento:e,retEvento:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(o,{renderOpts:{pretty:!1},rootName:"procEventoNFe"})}validated(e){let t=this.errors();return t?r0(new o0(t.join(", "))):i0(e)}};t0([n0(_o),Wl("design:type",Function),Wl("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Wl("design:returntype",void 0)],hr.prototype,"validated",null);import{left as s0,NFeTsError as a0,right as c0}from"nfets/core";var nf=class extends hr{static{a(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,identification:e.identification},r=await this.event(Qe.Cancelamento,n,t);if(r.isLeft())return r;let o=r.value,s=Kr[Qe.Cancelamento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:o});if(c.isLeft())return c;let f=c.value,l=f.retEnvEvento.retEvento;if(!l)return s0(new a0("Evento de cancelamento n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(o,s),l,s);return c0({xml:u,response:f})}};var mr=(function(i){return i.Asynchronous="0",i.Synchronous="1",i})({});var _l=(function(i){return i.LotReceived="103",i.ProcessedBatch="104",i})({});import{NFeTsError as f0}from"nfets/core";var ja=class extends f0{static{a(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};import{left as rf,right as Ba,NFeTsError as l0}from"nfets/core";var Cn=(function(i){return i.Autorizada="100",i.AutorizadaForaDoPrazo="150",i.UsoDenegado="110",i.NfeDenegada="205",i.DenegadaIrregularidadeEmissor="301",i.DenegadaIrregularidadeDestinatario="302",i.DenegadaNaoHabilitadaNaUf="303",i})({});var sf=class extends ft{static{a(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=mr.Synchronous;let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=await this.handleNfeBatch(n.value,e.xml);if(r.isLeft())return r;let[o]=r.value;this.transmitter.configure({cUF:o.infNFe.ide.cUF,tpAmb:o.infNFe.ide.tpAmb,...t,contingency:this.contingency(o),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let s=await this.transmitter.autorizacao({...e,NFe:r.value});if(s.isLeft())return s;let c=s.value;return this.isLotNotProcessed(c,e)?Ba(await this.handleLotNotProcessed(r.value,c)):e.indSinc===mr.Synchronous&&this.isSyncResponse(c)?Ba(await this.response(r.value,c)):e.indSinc===mr.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):rf(new ja)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(Cn).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let r={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(r,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],r=await Promise.all(e.map((o,s)=>this.protocol(o,n[s])));return r.length>1?{xml:r,response:t}:{xml:r[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 r=await this.toolkit.parse(t),o=await this.signNfe(e,r);return o.isLeft()?rf(o.value):Ba([o.value])}let n=await Promise.all(t.map(async r=>this.signNfe(e,await this.toolkit.parse(r))));return n.some(r=>r.isLeft())?rf(new l0("Failed to sign a NFe in batch")):Ba(n.filter(r=>r.isRight()).map(r=>r.value))}isLotNotProcessed(e,t){let{cStat:n}=e.retEnviNFe,r=t.indSinc??mr.Synchronous;return r===mr.Asynchronous&&n!==_l.LotReceived.toString()||r===mr.Synchronous&&n!==_l.ProcessedBatch.toString()}async handleLotNotProcessed(e,t){return this.response(e,this.toRejectionSyncResponse(e,t))}toRejectionSyncResponse(e,t){let{retEnviNFe:n}=t,r=e.map(o=>this.buildRejectionProtNFe(o,n));return{retEnviNFe:{...n,protNFe:r.length===1?r[0]:r}}}buildRejectionProtNFe(e,t){return{$:{versao:t.$.versao},infProt:{tpAmb:t.tpAmb,verAplic:t.verAplic,chNFe:e.infNFe.$.Id?.substring(3)??"",dhRecbto:t.dhRecbto,nProt:"",digVal:"",cStat:t.cStat,xMotivo:t.xMotivo}}}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}hasReceipt(e){return"infRec"in e.retEnviNFe&&!!e.retEnviNFe.infRec.nRec}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:r}=t.retEnviNFe,{nRec:o}=r;for(let s=1;s<=3;s++){await new Promise(l=>setTimeout(l,1e3));let c=await this.transmitter.retAutorizacao({nRec:o,tpAmb:n});if(c.isLeft())continue;let f=c.value.retConsReciNFe.protNFe;if(!(!f||Array.isArray(f)&&f.length===0))return Ba(await this.response(e,{retEnviNFe:{...c.value.retConsReciNFe,protNFe:f}}))}return rf(new ja)}contingency(e){let{dhCont:t,xJust:n,tpEmis:r}=e.infNFe.ide;if(!(!t||!n||r===K.Normal))return{dhCont:t,xJust:n}}};import{left as Ou,NFeTsError as Fu,right as xu,Validates as d0}from"nfets/core";function p0(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(p0,"_ts_decorate");function Kl(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Kl,"_ts_metadata");var Va=class extends ft{static{a(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.issuerFromIdentification(e.identification);if(r.isLeft())return r;this.transmitter.configure({...t,certificate:n.value});let o=e.ano??new Date().getFullYear().toString().slice(2),s=["ID",t.cUF,o,r.value.idDigits,e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),c=is({$:{xmlns:this.xmlns},infInut:{$:{Id:s},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:o,CNPJ:r.value.CNPJ,CPF:r.value.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},t.cUF),f=this.validated(c);if(f.isLeft())return f;let l=await this.signer.sign(f.value,{tag:"infInut",mark:"Id"},n.value);if(l.isLeft())return l;let u=await this.transmitter.inutilizacao(l.value);if(u.isLeft())return u;let h=u.value,g=h.retInutNFe;if(!g)return Ou(new Fu("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=g.$.versao,S=await this.protocol(this.versionedInutNFe(l.value,y),g,y);return xu({xml:S,response:h})}versionedInutNFe(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infInut;if(!Object.values(ou).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"inutNFe"});let o={inutNFe:e,retInutNFe:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(o,{renderOpts:{pretty:!1},rootName:"procInutNFe"})}validated(e){let t=this.errors();return t?Ou(new Fu(t.join(", "))):xu(e)}};p0([d0(wi),Kl("design:type",Function),Kl("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Kl("design:returntype",void 0)],Va.prototype,"validated",null);var af=class extends ft{static{a(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 cf=class extends ft{static{a(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Du=class extends ft{static{a(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))}};import{left as u0,NFeTsError as h0,right as m0}from"nfets/core";var Au=class extends hr{static{a(this,"NfeManifestacaoPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:e.xJust?{xJust:e.xJust}:{},nSeqEvento:e.nSeqEvento??1,identification:e.identification,cOrgao:"91"},r=await this.event(e.tpEvento,n,t);if(r.isLeft())return r;let o=r.value,s=Kr[e.tpEvento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:o});if(c.isLeft())return c;let f=c.value,l=f.retEnvEvento.retEvento;if(!l)return u0(new h0("Evento de manifesta\xE7\xE3o n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(o,s),l,s);return m0({xml:u,response:f})}};import{gunzipSync as g0}from"zlib";import{right as v0}from"nfets/core";var wu=class extends ft{static{a(this,"NfeDistribuicaoDFePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.issuerFromIdentification(e.identification);if(r.isLeft())return r;this.transmitter.configure({cUF:"91",...t,certificate:n.value});let o=await this.transmitter.distribuicaoDFe({tpAmb:t.tpAmb,cUFAutor:e.cUFAutor,CNPJ:r.value.CNPJ,CPF:r.value.CPF,consChNFe:{chNFe:e.chNFe}});if(o.isLeft())return o;let s=o.value.nfeDistDFeInteresseResult.retDistDFeInt,c=s.loteDistDFeInt?.docZip;return v0({response:s,xml:c?g0(Buffer.from(c.$value,"base64")).toString("utf8"):void 0})}};import y0 from"crypto";import{right as ff,SignatureAlgorithm as S0,unreachable as C0}from"nfets/core";var lt=class{static{a(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:ff(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):C0(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:r}=t,o=e.infNFe.ide.tpAmb,s=Number.parseInt(r),c=e.infNFe.$.Id?.substring(3),f=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==K.OFFLINE)return`${c}|${f}|${o}|${s}`;let u=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),h=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${f}|${o}|${h}|${g}|${u}|${s}`}async execute200(e,t){let{urlService:n,CSC:r}=t,o=this.getSequence(e,t),s=y0.createHash("sha1").update(`${o}${r}`).digest("hex").toUpperCase(),c=`${n}?p=`;return Promise.resolve(ff(`${c}${o}|${s}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:r}=e,o=t?t.replace(/\D/g,""):n?n.replace(/[^A-Z0-9]/g,""):r?.replace(/\D/g,"");return o?o.length===11?{tipo:"2",documento:o}:o.length===14?{tipo:"1",documento:o}:r&&o.length>=3&&o.length<=14?{tipo:"3",documento:o}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,r=`${n}?p=`,o=e.infNFe.ide.tpAmb,s=e.infNFe.$.Id?.substring(3),c=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==K.OFFLINE)return ff(`${r}${s}|${c}|${o}`);let f=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:u,documento:h}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),g=`${s}|${c}|${o}|${f}|${l}|${u}|${h}`,y=await this.certificateRepository.sign(g,t.certificate,S0.SHA1);return y.isLeft()?y:ff(`${r}${g}|${y.value}`)}};import{StateCodes as Tu}from"nfets/core";import{Environment as x}from"nfets/core";var kl={AC:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[x.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"}},[x.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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[x.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"}},[x.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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[x.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"}},[x.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:{[x.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"}},[x.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:{[x.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"}},[x.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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[x.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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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"}},[x.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[x.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"}},[x.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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[x.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:"nfeRecepcaoEventoNF",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"}},[x.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:"nfeRecepcaoEventoNF",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:{[x.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[x.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[x.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"}},[x.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:{[x.Homolog]:{},[x.Production]:{}}};import{Environment as Pu,StateCodes as A}from"nfets/core";var Eu={[Pu.Homolog]:{[A.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[A.AL]:"www.sefaz.al.gov.br/nfce/consulta",[A.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[A.AM]:"www.sefaz.am.gov.br/nfce/consulta",[A.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[A.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[A.DF]:"www.fazenda.df.gov.br/nfce/consulta",[A.ES]:"www.sefaz.es.gov.br/nfce/consulta",[A.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[A.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[A.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[A.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[A.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[A.PA]:"www.sefa.pa.gov.br/nfce/consulta",[A.PB]:"www.sefaz.pb.gov.br/nfcehom",[A.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[A.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[A.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[A.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[A.RN]:"www.set.rn.gov.br/nfce/consulta",[A.RO]:"www.sefin.ro.gov.br/nfce/consulta",[A.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[A.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[A.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[A.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[A.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[A.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Pu.Production]:{[A.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[A.AL]:"www.sefaz.al.gov.br/nfce/consulta",[A.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[A.AM]:"www.sefaz.am.gov.br/nfce/consulta",[A.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[A.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[A.DF]:"www.fazenda.df.gov.br/nfce/consulta",[A.ES]:"www.sefaz.es.gov.br/nfce/consulta",[A.GO]:"www.sefaz.go.gov.br/nfce/consulta",[A.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[A.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[A.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[A.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[A.PA]:"www.sefa.pa.gov.br/nfce/consulta",[A.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[A.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[A.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[A.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[A.RN]:"www.set.rn.gov.br/nfce/consulta",[A.RO]:"www.sefin.ro.gov.br/nfce/consulta",[A.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[A.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[A.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[A.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[A.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[A.TO]:"www.sefaz.to.gov.br/nfce/consulta",[A.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};import{StateCodes as ee}from"nfets/core";var b0={[ee.AC]:"SVRS",[ee.AL]:"SVRS",[ee.AM]:"AM",[ee.AP]:"SVRS",[ee.BA]:"SVRS",[ee.CE]:"SVRS",[ee.DF]:"SVRS",[ee.ES]:"SVRS",[ee.GO]:"GO",[ee.MA]:"SVRS",[ee.MG]:"MG",[ee.MS]:"MS",[ee.MT]:"MT",[ee.PA]:"SVRS",[ee.PB]:"SVRS",[ee.PE]:"SVRS",[ee.PI]:"SVRS",[ee.PR]:"PR",[ee.RJ]:"SVRS",[ee.RN]:"SVRS",[ee.RO]:"SVRS",[ee.RR]:"SVRS",[ee.RS]:"RS",[ee.SC]:"SVRS",[ee.SE]:"SVRS",[ee.SP]:"SP",[ee.TO]:"SVRS",SVRS:"SVRS"},zu=b0;var lf=class extends Co{static{a(this,"NfceAutorizacaoPayload")}};import{Validates as I0}from"nfets/core";function N0(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(N0,"_ts_decorate");function $l(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a($l,"_ts_metadata");var ot=class extends Bt{static{a(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={timeout:6e4};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,r=zu[t],c=kl[r][n][e.service];if(c)return c;let f=Object.keys(Tu).find(l=>Tu[l]===t);return kl[f][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return Eu[n][t]}async autorizacao(e){return super.autorizacao(e)}};N0([I0(lf),$l("design:type",Function),$l("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),$l("design:returntype",Promise)],ot.prototype,"autorizacao",null);var Mu=class extends nf{static{a(this,"NfceCancelPipeline")}qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var pf=class extends sf{static{a(this,"NfceAuthorizerPipeline")}certificate;qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};import{DigestAlgorithm as R0,SignatureAlgorithm as ju,left as ep,right as df,NFeTsError as tp}from"nfets/core";var Bu=class extends pf{static{a(this,"NfceContingencyXmlAuthorizerPipeline")}certificate;qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}async handleNfeBatch(e,t){if(!Array.isArray(t))return this.parseContingencyXml(t).then(r=>r.isLeft()?r:df([r.value]));let n=await Promise.all(t.map(r=>this.parseContingencyXml(r)));if(n.some(r=>r.isLeft())){let r=n.find(o=>o.isLeft());return ep(r?.value??new tp("NFC-e XML must be signed"))}return df(n.filter(r=>r.isRight()).map(r=>r.value))}async parseContingencyXml(e){let t=await this.toolkit.parse(e);return this.assertSignatureIntegrity(t)}async assertSignatureIntegrity(e){let t=e.Signature?.SignedInfo?.Reference?.DigestValue;if(!t)return ep(new tp("NFC-e XML must be signed"));let n=await this.rebuildInfNFeNode(e);if(n.isLeft())return n;let r=this.signatureAlgorithm(e);return this.toolkit.digest(n.value,r)!==t?ep(new tp("NFC-e XML signature digest mismatch")):df(e)}async rebuildInfNFeNode(e){let t=e.$?.xmlns,{$:n,...r}=e.infNFe??{};delete n.xmlns;let o=await this.toolkit.build({$:{xmlns:t,...n},...r},{headless:!0,rootName:"infNFe",renderOpts:{pretty:!1}});return df(o)}signatureAlgorithm(e){return e.Signature?.SignedInfo?.Reference?.DigestMethod?.$?.Algorithm===R0.SHA256?ju.SHA256:ju.SHA1}};var Vu=class extends Va{static{a(this,"NfceVoidRangePipeline")}qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var Lu=class extends af{static{a(this,"NfceConsultStatusPipeline")}qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var Hu=class extends cf{static{a(this,"NfceConsultProtocoloPipeline")}qrCode=new lt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};import JS from"path";import{left as XS,right as $p}from"nfets/core";import{Allow as HS,IsNotEmpty as US,IsNotEmptyObject as dm,IsObject as um,IsString as QS,ValidateNested as hm}from"class-validator";import{ArrayMaxSize as lm,ArrayMinSize as LS,IsNotEmptyObject as _p,IsObject as Kp,IsOptional as ct,IsString as pm,ValidateNested as xe}from"class-validator";import{Type as De}from"class-transformer";import{ArrayMaxSize as Uu,IsArray as Qu,IsEnum as O0,IsOptional as Oe,IsString as P,ValidateNested as rs}from"class-validator";import{Type as ss}from"class-transformer";import{Choice as F0,TransformDateString as hf,TransformDecimal as x0}from"nfets/core";import{StateCodes as D0}from"nfets/core";function I(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(I,"_ts_decorate");function O(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(O,"_ts_metadata");var Ei=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};I([P(),O("design:type",String)],Ei.prototype,"cUF",void 0);I([P(),O("design:type",String)],Ei.prototype,"AAMM",void 0);I([P(),O("design:type",String)],Ei.prototype,"CNPJ",void 0);I([P(),O("design:type",String)],Ei.prototype,"mod",void 0);I([P(),O("design:type",String)],Ei.prototype,"serie",void 0);I([P(),O("design:type",String)],Ei.prototype,"nNF",void 0);var Qt=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};I([P(),O("design:type",String)],Qt.prototype,"cUF",void 0);I([P(),O("design:type",String)],Qt.prototype,"AAMM",void 0);I([Oe(),P(),O("design:type",String)],Qt.prototype,"CNPJ",void 0);I([Oe(),P(),O("design:type",String)],Qt.prototype,"CPF",void 0);I([P(),O("design:type",String)],Qt.prototype,"IE",void 0);I([P(),O("design:type",String)],Qt.prototype,"mod",void 0);I([P(),O("design:type",String)],Qt.prototype,"serie",void 0);I([P(),O("design:type",String)],Qt.prototype,"nNF",void 0);Qt=I([F0({properties:["CNPJ","CPF"],required:!0})],Qt);var ns=class{static{a(this,"RefECF")}mod;nECF;nCOO};I([P(),O("design:type",String)],ns.prototype,"mod",void 0);I([P(),O("design:type",String)],ns.prototype,"nECF",void 0);I([P(),O("design:type",String)],ns.prototype,"nCOO",void 0);var zi=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};I([Oe(),P(),O("design:type",String)],zi.prototype,"refNFe",void 0);I([Oe(),P(),O("design:type",String)],zi.prototype,"refNFeSig",void 0);I([Oe(),rs(),ss(()=>Ei),O("design:type",typeof IRefNF>"u"?Object:IRefNF)],zi.prototype,"refNF",void 0);I([Oe(),rs(),ss(()=>Qt),O("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],zi.prototype,"refNFP",void 0);I([Oe(),P(),O("design:type",String)],zi.prototype,"refCTe",void 0);I([Oe(),rs(),ss(()=>ns),O("design:type",typeof IRefECF>"u"?Object:IRefECF)],zi.prototype,"refECF",void 0);var gr=class{static{a(this,"CompraGov")}tpEnteGov;pRedutor;tpOperGov;refDFeAnt};I([P(),O("design:type",String)],gr.prototype,"tpEnteGov",void 0);I([x0({fixed:4}),O("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gr.prototype,"pRedutor",void 0);I([P(),O("design:type",String)],gr.prototype,"tpOperGov",void 0);I([Oe(),P(),O("design:type",String)],gr.prototype,"refDFeAnt",void 0);var uf=class{static{a(this,"PagAntecipado")}refNFe};I([Qu(),Uu(99),P({each:!0}),O("design:type",Array)],uf.prototype,"refNFe",void 0);var B=class{static{a(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;dPrevEntrega;tpNF;idDest;cMunFG;cMunFGIBS;tpImp;tpEmis;cDV="";tpAmb;finNFe;tpNFDebito;tpNFCredito;indFinal;indPres;indIntermed;cIndOp;procEmi;verProc;dhCont;xJust;NFref;gCompraGov;gPagAntecipado};I([O0(D0),O("design:type",typeof StateCode>"u"?Object:StateCode)],B.prototype,"cUF",void 0);I([P(),O("design:type",String)],B.prototype,"cNF",void 0);I([P(),O("design:type",String)],B.prototype,"natOp",void 0);I([P(),O("design:type",String)],B.prototype,"mod",void 0);I([P(),O("design:type",String)],B.prototype,"serie",void 0);I([P(),O("design:type",String)],B.prototype,"nNF",void 0);I([hf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhEmi",void 0);I([Oe(),hf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhSaiEnt",void 0);I([Oe(),hf({format:"YYYY-MM-DD"}),O("design:type",String)],B.prototype,"dPrevEntrega",void 0);I([P(),O("design:type",String)],B.prototype,"tpNF",void 0);I([P(),O("design:type",String)],B.prototype,"idDest",void 0);I([P(),O("design:type",String)],B.prototype,"cMunFG",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"cMunFGIBS",void 0);I([P(),O("design:type",String)],B.prototype,"tpImp",void 0);I([P(),O("design:type",typeof TpEmis>"u"?Object:TpEmis)],B.prototype,"tpEmis",void 0);I([P(),Oe(),O("design:type",String)],B.prototype,"cDV",void 0);I([P(),O("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],B.prototype,"tpAmb",void 0);I([P(),O("design:type",String)],B.prototype,"finNFe",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"tpNFDebito",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"tpNFCredito",void 0);I([P(),O("design:type",String)],B.prototype,"indFinal",void 0);I([P(),O("design:type",String)],B.prototype,"indPres",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"indIntermed",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"cIndOp",void 0);I([P(),O("design:type",String)],B.prototype,"procEmi",void 0);I([P(),O("design:type",String)],B.prototype,"verProc",void 0);I([Oe(),P(),hf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),O("design:type",String)],B.prototype,"dhCont",void 0);I([Oe(),P(),O("design:type",String)],B.prototype,"xJust",void 0);I([Oe(),Qu(),Uu(999),rs({each:!0}),ss(()=>zi),O("design:type",Array)],B.prototype,"NFref",void 0);I([Oe(),rs(),ss(()=>gr),O("design:type",typeof ICompraGov>"u"?Object:ICompraGov)],B.prototype,"gCompraGov",void 0);I([Oe(),rs(),ss(()=>uf),O("design:type",typeof IPagAntecipado>"u"?Object:IPagAntecipado)],B.prototype,"gPagAntecipado",void 0);import{IsOptional as vr,IsString as Ko,ValidateNested as A0}from"class-validator";import{Choice as w0}from"nfets/core";import{Type as P0}from"class-transformer";import{IsOptional as mf,IsString as Oo}from"class-validator";function Io(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Io,"_ts_decorate");function Ro(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ro,"_ts_metadata");var it=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Io([Oo(),Ro("design:type",String)],it.prototype,"xLgr",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"nro",void 0);Io([mf(),Oo(),Ro("design:type",String)],it.prototype,"xCpl",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"xBairro",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"cMun",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"xMun",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"UF",void 0);Io([Oo(),Ro("design:type",String)],it.prototype,"CEP",void 0);Io([mf(),Oo(),Ro("design:type",String)],it.prototype,"cPais",void 0);Io([mf(),Oo(),Ro("design:type",String)],it.prototype,"xPais",void 0);Io([mf(),Oo(),Ro("design:type",String)],it.prototype,"fone",void 0);function kt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(kt,"_ts_decorate");function Fo(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Fo,"_ts_metadata");var Ze=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT;ISUFEmit};kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"CNPJ",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"CPF",void 0);kt([Ko(),Fo("design:type",String)],Ze.prototype,"xNome",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"xFant",void 0);kt([A0(),P0(()=>it),Fo("design:type",typeof it>"u"?Object:it)],Ze.prototype,"enderEmit",void 0);kt([Ko(),Fo("design:type",String)],Ze.prototype,"IE",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"IEST",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"IM",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"CNAE",void 0);kt([Ko(),Fo("design:type",String)],Ze.prototype,"CRT",void 0);kt([vr(),Ko(),Fo("design:type",String)],Ze.prototype,"ISUFEmit",void 0);Ze=kt([w0({properties:["CNPJ","CPF"],required:!0})],Ze);import{IsOptional as Ti,IsString as Mi,ValidateNested as E0}from"class-validator";import{Type as z0}from"class-transformer";import{IsOptional as Ao,IsString as wo}from"class-validator";function xo(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(xo,"_ts_decorate");function Do(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Do,"_ts_metadata");var At=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};xo([Ao(),wo(),Do("design:type",String)],At.prototype,"xLgr",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"nro",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"xCpl",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"xBairro",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"cMun",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"xMun",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"UF",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"CEP",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"cPais",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"xPais",void 0);xo([Ao(),wo(),Do("design:type",String)],At.prototype,"fone",void 0);import{Choice as T0}from"nfets/core";function Po(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Po,"_ts_decorate");function ko(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ko,"_ts_metadata");var We=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"CNPJ",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"CPF",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"idEstrangeiro",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"xNome",void 0);Po([Ti(),E0(),z0(()=>At),ko("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],We.prototype,"enderDest",void 0);Po([Mi(),ko("design:type",String)],We.prototype,"indIEDest",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"IE",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"ISUF",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"IM",void 0);Po([Ti(),Mi(),ko("design:type",String)],We.prototype,"email",void 0);We=Po([T0({properties:["CNPJ","CPF"],required:!0})],We);import{IsOptional as $o,IsString as dt}from"class-validator";import{Choice as M0}from"nfets/core";function nt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(nt,"_ts_decorate");function pt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(pt,"_ts_metadata");var te=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};nt([$o(),dt(),pt("design:type",String)],te.prototype,"CNPJ",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"CPF",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"xNome",void 0);nt([dt(),pt("design:type",String)],te.prototype,"xLgr",void 0);nt([dt(),pt("design:type",String)],te.prototype,"nro",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"xCpl",void 0);nt([dt(),pt("design:type",String)],te.prototype,"xBairro",void 0);nt([dt(),pt("design:type",String)],te.prototype,"cMun",void 0);nt([dt(),pt("design:type",String)],te.prototype,"xMun",void 0);nt([dt(),pt("design:type",String)],te.prototype,"UF",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"CEP",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"cPais",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"xPais",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"fone",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"email",void 0);nt([$o(),dt(),pt("design:type",String)],te.prototype,"IE",void 0);te=nt([M0({properties:["CNPJ","CPF"]})],te);import{IsOptional as qu,IsString as Zu}from"class-validator";import{Choice as j0}from"nfets/core";function op(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(op,"_ts_decorate");function Gu(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Gu,"_ts_metadata");var ei=class{static{a(this,"AutXML")}CNPJ;CPF};op([qu(),Zu(),Gu("design:type",String)],ei.prototype,"CNPJ",void 0);op([qu(),Zu(),Gu("design:type",String)],ei.prototype,"CPF",void 0);ei=op([j0({properties:["CNPJ","CPF"]})],ei);import{IsOptional as B0,IsString as Xu}from"class-validator";function Yu(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Yu,"_ts_decorate");function Ju(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ju,"_ts_metadata");var bn=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};Yu([Xu(),Ju("design:type",String)],bn.prototype,"CNPJ",void 0);Yu([B0(),Xu(),Ju("design:type",String)],bn.prototype,"idCadIntTran",void 0);import{IsOptional as Wu,IsString as rp}from"class-validator";function ip(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ip,"_ts_decorate");function np(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(np,"_ts_metadata");var ji=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};ip([rp(),np("design:type",String)],ji.prototype,"UFSaidaPais",void 0);ip([Wu(),rp(),np("design:type",String)],ji.prototype,"xLocExporta",void 0);ip([Wu(),rp(),np("design:type",String)],ji.prototype,"xLocDespacho",void 0);import{IsOptional as cp,IsString as fp}from"class-validator";function sp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(sp,"_ts_decorate");function ap(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ap,"_ts_metadata");var Bi=class{static{a(this,"Compra")}xNEmp;xPed;xCont};sp([cp(),fp(),ap("design:type",String)],Bi.prototype,"xNEmp",void 0);sp([cp(),fp(),ap("design:type",String)],Bi.prototype,"xPed",void 0);sp([cp(),fp(),ap("design:type",String)],Bi.prototype,"xCont",void 0);import{IsOptional as _u,IsString as fs}from"class-validator";function as(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(as,"_ts_decorate");function cs(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(cs,"_ts_metadata");var $t=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};as([fs(),cs("design:type",String)],$t.prototype,"CNPJ",void 0);as([fs(),cs("design:type",String)],$t.prototype,"xContato",void 0);as([fs(),cs("design:type",String)],$t.prototype,"email",void 0);as([fs(),cs("design:type",String)],$t.prototype,"fone",void 0);as([_u(),fs(),cs("design:type",String)],$t.prototype,"idCSRT",void 0);as([_u(),fs(),cs("design:type",String)],$t.prototype,"hashCSRT",void 0);import{IsOptional as Wa,ValidateNested as _a}from"class-validator";import{Type as Ka}from"class-transformer";import{IsOptional as ti}from"class-validator";import{TransformDecimal as Z}from"nfets/core";function G(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(G,"_ts_decorate");function q(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(q,"_ts_metadata");var V=class{static{a(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBC",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSDeson",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPUFDest",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFDest",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFRemet",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCP",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBCST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPST",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPSTRet",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMono",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMono",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoReten",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoReten",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoRet",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoRet",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vProd",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFrete",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vSeg",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vDesc",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vII",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPI",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPIDevol",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vPIS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vCOFINS",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vOutro",void 0);G([Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vNF",void 0);G([ti(),Z({fixed:2}),q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vTotTrib",void 0);import{IsOptional as Eo,IsString as Ku}from"class-validator";import{TransformDecimal as oi}from"nfets/core";function eo(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(eo,"_ts_decorate");function to(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(to,"_ts_metadata");var ut=class{static{a(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vServ",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBC",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISS",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vPIS",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vCOFINS",void 0);eo([Ku(),to("design:type",String)],ut.prototype,"dCompet",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDeducao",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vOutro",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescIncond",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescCond",void 0);eo([Eo(),oi({fixed:2}),to("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISSRet",void 0);eo([Eo(),Ku(),to("design:type",String)],ut.prototype,"cRegTrib",void 0);import{IsOptional as Cr}from"class-validator";import{TransformDecimal as br}from"nfets/core";function yr(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(yr,"_ts_decorate");function Sr(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Sr,"_ts_metadata");var zo=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vRetPIS",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vRetCOFINS",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vRetCSLL",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vBCIRRF",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vIRRF",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vBCRetPrev",void 0);yr([Cr(),br({fixed:2}),Sr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vRetPrev",void 0);import{IsOptional as Xa,ValidateNested as gf}from"class-validator";import{IsOptional as Ua,ValidateNested as ku}from"class-validator";import{TransformDecimal as dp}from"nfets/core";function lp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(lp,"_ts_decorate");function pp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(pp,"_ts_metadata");var Nr=class{static{a(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};lp([dp({fixed:2}),pp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nr.prototype,"vDif",void 0);lp([dp({fixed:2}),pp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nr.prototype,"vDevTrib",void 0);lp([dp({fixed:2}),pp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nr.prototype,"vIBSMun",void 0);import{Type as $u}from"class-transformer";import{TransformDecimal as mp}from"nfets/core";function up(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(up,"_ts_decorate");function hp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(hp,"_ts_metadata");var Ir=class{static{a(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};up([mp({fixed:2}),hp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"vDif",void 0);up([mp({fixed:2}),hp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"vDevTrib",void 0);up([mp({fixed:2}),hp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"vIBSUF",void 0);import{TransformDecimal as gp}from"nfets/core";function La(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(La,"_ts_decorate");function Ha(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ha,"_ts_metadata");var Vi=class{static{a(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};La([Ua(),ku(),$u(()=>Ir),Ha("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Vi.prototype,"gIBSUF",void 0);La([Ua(),ku(),$u(()=>Nr),Ha("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Vi.prototype,"gIBSMun",void 0);La([Ua(),gp({fixed:2}),Ha("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vIBS",void 0);La([Ua(),gp({fixed:2}),Ha("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vCredPres",void 0);La([Ua(),gp({fixed:2}),Ha("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as V0}from"nfets/core";import{Type as vf}from"class-transformer";import{TransformDecimal as qa}from"nfets/core";import{IsOptional as Za}from"class-validator";function Qa(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Qa,"_ts_decorate");function Ga(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ga,"_ts_metadata");var Li=class{static{a(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};Qa([Za(),qa({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"vDif",void 0);Qa([Za(),qa({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"vDevTrib",void 0);Qa([Za(),qa({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"vCBS",void 0);Qa([Za(),qa({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"vCredPres",void 0);Qa([Za(),qa({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Li.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as ds}from"nfets/core";import{IsOptional as us}from"class-validator";function ls(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ls,"_ts_decorate");function ps(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ps,"_ts_metadata");var ii=class{static{a(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vIBSMono",void 0);ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vCBSMono",void 0);ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vIBSMonoReten",void 0);ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vCBSMonoReten",void 0);ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vIBSMonoRet",void 0);ls([us(),ds({fixed:2}),ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ii.prototype,"vCBSMonoRet",void 0);import{IsOptional as oh}from"class-validator";import{TransformDecimal as ih}from"nfets/core";function eh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(eh,"_ts_decorate");function th(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(th,"_ts_metadata");var hs=class{static{a(this,"EstornoCredTot")}vIBSEstCred;vCBSEstCred};eh([oh(),ih({fixed:2}),th("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hs.prototype,"vIBSEstCred",void 0);eh([oh(),ih({fixed:2}),th("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hs.prototype,"vCBSEstCred",void 0);function Ya(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ya,"_ts_decorate");function Ja(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ja,"_ts_metadata");var To=class{static{a(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono;gEstornoCred};Ya([Xa(),V0({fixed:2}),Ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],To.prototype,"vBCIBSCBS",void 0);Ya([Xa(),gf(),vf(()=>Vi),Ja("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],To.prototype,"gIBS",void 0);Ya([Xa(),gf(),vf(()=>Li),Ja("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],To.prototype,"gCBS",void 0);Ya([Xa(),gf(),vf(()=>ii),Ja("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],To.prototype,"gMono",void 0);Ya([Xa(),gf(),vf(()=>hs),Ja("design:type",typeof IEstornoCredTot>"u"?Object:IEstornoCredTot)],To.prototype,"gEstornoCred",void 0);import{TransformDecimal as U0}from"nfets/core";import{IsOptional as Q0}from"class-validator";function L0(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(L0,"_ts_decorate");function H0(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(H0,"_ts_metadata");var Rr=class{static{a(this,"ISTot")}vIS="0.00"};L0([Q0(),U0({fixed:2}),H0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.prototype,"vIS",void 0);import{TransformDecimal as G0}from"nfets/core";function ms(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ms,"_ts_decorate");function gs(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(gs,"_ts_metadata");var oo=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib;ISTot;IBSCBSTot;vNFTot};ms([_a(),Ka(()=>V),gs("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],oo.prototype,"ICMSTot",void 0);ms([Wa(),_a(),Ka(()=>ut),gs("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],oo.prototype,"ISSQNtot",void 0);ms([Wa(),_a(),Ka(()=>zo),gs("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],oo.prototype,"retTrib",void 0);ms([Wa(),_a(),Ka(()=>Rr),gs("design:type",typeof IISTot>"u"?Object:IISTot)],oo.prototype,"ISTot",void 0);ms([Wa(),_a(),Ka(()=>To),gs("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],oo.prototype,"IBSCBSTot",void 0);ms([Wa(),G0({fixed:2}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oo.prototype,"vNFTot",void 0);import{ArrayMaxSize as ah,IsOptional as Ar,IsString as vp,ValidateNested as ka}from"class-validator";import{Type as $a}from"class-transformer";import{IsOptional as Fr,IsString as xr}from"class-validator";import{Choice as q0}from"nfets/core";function Nn(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Nn,"_ts_decorate");function Or(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Or,"_ts_metadata");var ht=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"CNPJ",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"CPF",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"xNome",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"IE",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"xEnder",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"xMun",void 0);Nn([Fr(),xr(),Or("design:type",String)],ht.prototype,"UF",void 0);ht=Nn([q0({properties:["CNPJ","CPF"]})],ht);import{IsOptional as Ss,IsString as nh}from"class-validator";import{TransformDecimal as yf}from"nfets/core";function vs(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(vs,"_ts_decorate");function ys(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ys,"_ts_metadata");var Gt=class{static{a(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};vs([Ss(),yf({fixed:2}),ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vServ",void 0);vs([Ss(),yf({fixed:2}),ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vBCRet",void 0);vs([Ss(),yf({fixed:4}),ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"pICMSRet",void 0);vs([Ss(),yf({fixed:2}),ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vICMSRet",void 0);vs([Ss(),nh(),ys("design:type",String)],Gt.prototype,"CFOP",void 0);vs([Ss(),nh(),ys("design:type",String)],Gt.prototype,"cMunFG",void 0);import{IsOptional as Ns,IsString as Is}from"class-validator";function Cs(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Cs,"_ts_decorate");function bs(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(bs,"_ts_metadata");var ni=class{static{a(this,"VeicTransp")}placa;UF;RNTC};Cs([Ns(),Is(),bs("design:type",String)],ni.prototype,"placa",void 0);Cs([Ns(),Is(),bs("design:type",String)],ni.prototype,"UF",void 0);Cs([Ns(),Is(),bs("design:type",String)],ni.prototype,"RNTC",void 0);var Dr=class{static{a(this,"Reboque")}placa;UF;RNTC};Cs([Ns(),Is(),bs("design:type",String)],Dr.prototype,"placa",void 0);Cs([Ns(),Is(),bs("design:type",String)],Dr.prototype,"UF",void 0);Cs([Ns(),Is(),bs("design:type",String)],Dr.prototype,"RNTC",void 0);import{IsOptional as Fs,IsString as Sf}from"class-validator";import{TransformDecimal as rh}from"nfets/core";function Rs(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Rs,"_ts_decorate");function Os(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Os,"_ts_metadata");var ri=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Rs([Fs(),Sf(),Os("design:type",String)],ri.prototype,"qVol",void 0);Rs([Fs(),Sf(),Os("design:type",String)],ri.prototype,"esp",void 0);Rs([Fs(),Sf(),Os("design:type",String)],ri.prototype,"marca",void 0);Rs([Fs(),Sf(),Os("design:type",String)],ri.prototype,"nVol",void 0);Rs([Fs(),rh({fixed:3}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ri.prototype,"pesoL",void 0);Rs([Fs(),rh({fixed:3}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ri.prototype,"pesoB",void 0);import{Choice as sh}from"nfets/core";function Hi(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Hi,"_ts_decorate");function In(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(In,"_ts_metadata");var mt=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Hi([vp(),In("design:type",String)],mt.prototype,"modFrete",void 0);Hi([Ar(),ka(),$a(()=>ht),In("design:type",typeof ht>"u"?Object:ht)],mt.prototype,"transporta",void 0);Hi([Ar(),ka(),$a(()=>Gt),In("design:type",typeof Gt>"u"?Object:Gt)],mt.prototype,"retTransp",void 0);Hi([Ar(),ka(),$a(()=>ni),In("design:type",typeof ni>"u"?Object:ni)],mt.prototype,"veicTransp",void 0);Hi([Ar(),ka({each:!0}),$a(()=>Dr),ah(5),In("design:type",Array)],mt.prototype,"reboque",void 0);Hi([Ar(),vp(),In("design:type",String)],mt.prototype,"vagao",void 0);Hi([Ar(),vp(),In("design:type",String)],mt.prototype,"balsa",void 0);Hi([Ar(),ka({each:!0}),$a(()=>ri),ah(5e3),In("design:type",Array)],mt.prototype,"vol",void 0);mt=Hi([sh({properties:["veicTransp","reboque"]}),sh({properties:["vagao","balsa"]})],mt);import{ArrayMaxSize as Z0,IsOptional as qi,IsString as yp,ValidateNested as ch}from"class-validator";import{Type as fh}from"class-transformer";import{TransformDecimal as Cf}from"nfets/core";function Qi(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Qi,"_ts_decorate");function Gi(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Gi,"_ts_metadata");var Ui=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Qi([qi(),yp(),Gi("design:type",String)],Ui.prototype,"nFat",void 0);Qi([qi(),Cf({fixed:2}),Gi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ui.prototype,"vOrig",void 0);Qi([qi(),Cf({fixed:2}),Gi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ui.prototype,"vDesc",void 0);Qi([qi(),Cf({fixed:2}),Gi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ui.prototype,"vLiq",void 0);var xs=class{static{a(this,"Dup")}nDup;dVenc;vDup};Qi([qi(),yp(),Gi("design:type",String)],xs.prototype,"nDup",void 0);Qi([qi(),yp(),Gi("design:type",String)],xs.prototype,"dVenc",void 0);Qi([qi(),Cf({fixed:2}),Gi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xs.prototype,"vDup",void 0);var Rn=class{static{a(this,"Cobr")}fat;dup};Qi([qi(),ch(),fh(()=>Ui),Gi("design:type",typeof Ui>"u"?Object:Ui)],Rn.prototype,"fat",void 0);Qi([qi(),ch({each:!0}),Z0(120),fh(()=>xs),Gi("design:type",Array)],Rn.prototype,"dup",void 0);import{ArrayMaxSize as _0,ArrayMinSize as K0,IsOptional as k0,ValidateNested as $0}from"class-validator";import{Type as eS}from"class-transformer";import{IsOptional as Es,IsString as ec,ValidateNested as Y0}from"class-validator";import{Type as J0}from"class-transformer";import{IsOptional as ws,IsString as Ps}from"class-validator";function Ds(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ds,"_ts_decorate");function As(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(As,"_ts_metadata");var qt=class{static{a(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"tpIntegra",void 0);Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"CNPJ",void 0);Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"tBand",void 0);Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"cAut",void 0);Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"CNPJReceb",void 0);Ds([ws(),Ps(),As("design:type",String)],qt.prototype,"idTermPag",void 0);import{TransformDecimal as X0,TransformDateString as W0}from"nfets/core";function On(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(On,"_ts_decorate");function Fn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Fn,"_ts_metadata");var io=class{static{a(this,"DetPag")}indPag;tPag;xPag;vPag;dPag;CNPJPag;UFPag;card};On([Es(),ec(),Fn("design:type",String)],io.prototype,"indPag",void 0);On([ec(),Fn("design:type",typeof TPag>"u"?Object:TPag)],io.prototype,"tPag",void 0);On([Es(),ec(),Fn("design:type",String)],io.prototype,"xPag",void 0);On([X0({fixed:2}),Fn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],io.prototype,"vPag",void 0);On([Es(),W0({format:"YYYY-MM-DD"}),Fn("design:type",String)],io.prototype,"dPag",void 0);On([Es(),ec(),Fn("design:type",String)],io.prototype,"CNPJPag",void 0);On([Es(),ec(),Fn("design:type",String)],io.prototype,"UFPag",void 0);On([Es(),Y0(),J0(()=>qt),Fn("design:type",typeof qt>"u"?Object:qt)],io.prototype,"card",void 0);import{TransformDecimal as tS}from"nfets/core";function lh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(lh,"_ts_decorate");function ph(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ph,"_ts_metadata");var xn=class{static{a(this,"Pag")}detPag;vTroco};lh([$0({each:!0}),K0(1),_0(100),eS(()=>io),ph("design:type",Array)],xn.prototype,"detPag",void 0);lh([k0(),tS({fixed:2}),ph("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xn.prototype,"vTroco",void 0);import{ArrayMaxSize as Sp,IsOptional as wr,IsString as Ts,ValidateNested as Cp}from"class-validator";import{Type as bp}from"class-transformer";function Zi(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Zi,"_ts_decorate");function Yi(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Yi,"_ts_metadata");var zs=class{static{a(this,"InfAdicObs")}xCampo;xTexto};Zi([Ts(),Yi("design:type",String)],zs.prototype,"xCampo",void 0);Zi([Ts(),Yi("design:type",String)],zs.prototype,"xTexto",void 0);var tc=class{static{a(this,"ProcRef")}nProc;indProc};Zi([wr(),Ts(),Yi("design:type",String)],tc.prototype,"nProc",void 0);Zi([wr(),Ts(),Yi("design:type",String)],tc.prototype,"indProc",void 0);var Mo=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Zi([wr(),Ts(),Yi("design:type",String)],Mo.prototype,"infAdFisco",void 0);Zi([wr(),Ts(),Yi("design:type",String)],Mo.prototype,"infCpl",void 0);Zi([wr(),Cp({each:!0}),bp(()=>zs),Sp(10),Yi("design:type",Array)],Mo.prototype,"obsCont",void 0);Zi([wr(),Cp({each:!0}),bp(()=>zs),Sp(10),Yi("design:type",Array)],Mo.prototype,"obsFisco",void 0);Zi([wr(),Cp({each:!0}),bp(()=>tc),Sp(100),Yi("design:type",Array)],Mo.prototype,"procRef",void 0);import{ArrayMaxSize as dh,IsNotEmptyObject as oS,IsObject as iS,IsOptional as Pr,IsString as Dn,ValidateNested as uh}from"class-validator";import{Type as Np}from"class-transformer";import{TransformDecimal as Nf}from"nfets/core";function wt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(wt,"_ts_decorate");function Pt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Pt,"_ts_metadata");var bf=class{static{a(this,"ForDiaAttributes")}dia};wt([Dn(),Pt("design:type",String)],bf.prototype,"dia",void 0);var oc=class{static{a(this,"ForDia")}$;qtde};wt([iS(),oS(),Np(()=>bf),Pt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],oc.prototype,"$",void 0);wt([Dn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"qtde",void 0);var ic=class{static{a(this,"Deduc")}xDed;vDed};wt([Dn(),Pt("design:type",String)],ic.prototype,"xDed",void 0);wt([Nf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vDed",void 0);var gt=class{static{a(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};wt([Dn(),Pt("design:type",String)],gt.prototype,"safra",void 0);wt([Dn(),Pt("design:type",String)],gt.prototype,"ref",void 0);wt([uh({each:!0}),dh(31),Np(()=>oc),Pt("design:type",Array)],gt.prototype,"forDia",void 0);wt([Pr(),Dn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotMes",void 0);wt([Pr(),Dn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotAnt",void 0);wt([Pr(),Dn(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotGer",void 0);wt([Pr(),uh({each:!0}),dh(10),Np(()=>ic),Pt("design:type",Array)],gt.prototype,"deduc",void 0);wt([Pr(),Nf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vFor",void 0);wt([Pr(),Nf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vTotDed",void 0);wt([Pr(),Nf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vLiqFor",void 0);import{IsObject as DS,IsOptional as ta,IsString as rm,ValidateNested as oa}from"class-validator";import{Type as ia}from"class-transformer";import{ArrayMaxSize as Hs,IsArray as lc,IsObject as Us,IsOptional as X,IsString as Ne,ValidateNested as ai}from"class-validator";import{TransformDecimal as Wi}from"nfets/core";import{Type as ci}from"class-transformer";import{IsOptional as If,IsString as sc}from"class-validator";function nc(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(nc,"_ts_decorate");function rc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(rc,"_ts_metadata");var Ji=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};nc([sc(),rc("design:type",String)],Ji.prototype,"nLote",void 0);nc([If(),sc(),rc("design:type",String)],Ji.prototype,"qLote",void 0);nc([If(),sc(),rc("design:type",String)],Ji.prototype,"dFab",void 0);nc([If(),sc(),rc("design:type",String)],Ji.prototype,"dVal",void 0);nc([If(),sc(),rc("design:type",String)],Ji.prototype,"cAgreg",void 0);import{Choice as yS}from"nfets/core";import{IsString as Vt,IsOptional as ac,IsArray as nS,ValidateNested as rS,ArrayMaxSize as sS,ArrayMinSize as aS}from"class-validator";import{Type as cS}from"class-transformer";import{TransformDecimal as hh,Choice as fS}from"nfets/core";function Ke(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ke,"_ts_decorate");function rt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(rt,"_ts_metadata");var An=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Ke([Vt(),rt("design:type",String)],An.prototype,"nAdicao",void 0);Ke([Vt(),rt("design:type",String)],An.prototype,"nSeqAdic",void 0);Ke([Vt(),rt("design:type",String)],An.prototype,"cFabricante",void 0);Ke([hh({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"vDescDI",void 0);Ke([ac(),Vt(),rt("design:type",String)],An.prototype,"nDraw",void 0);var _e=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Ke([Vt(),rt("design:type",String)],_e.prototype,"nDI",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"dDI",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"xLocDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"UFDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"dDesemb",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"tpViaTransp",void 0);Ke([ac(),hh({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_e.prototype,"vAFRMM",void 0);Ke([Vt(),rt("design:type",String)],_e.prototype,"tpIntermedio",void 0);Ke([Vt(),ac(),rt("design:type",String)],_e.prototype,"CNPJ",void 0);Ke([Vt(),ac(),rt("design:type",String)],_e.prototype,"CPF",void 0);Ke([Vt(),ac(),rt("design:type",String)],_e.prototype,"UFTerceiro",void 0);Ke([nS(),rS({each:!0}),cS(()=>An),sS(999),aS(1),rt("design:type",Array)],_e.prototype,"adi",void 0);_e=Ke([fS({properties:["CNPJ","CPF"],required:!0})],_e);import{Type as lS}from"class-transformer";import{IsOptional as mh,IsString as Ip,ValidateNested as pS}from"class-validator";import{TransformDecimal as dS}from"nfets/core";function cc(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(cc,"_ts_decorate");function fc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(fc,"_ts_metadata");var Ms=class{static{a(this,"ExportInd")}nRE;chNFe;qExport};cc([Ip(),fc("design:type",String)],Ms.prototype,"nRE",void 0);cc([Ip(),fc("design:type",String)],Ms.prototype,"chNFe",void 0);cc([dS({fixed:4}),fc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ms.prototype,"qExport",void 0);var js=class{static{a(this,"DetExport")}nDraw;exportInd};cc([mh(),Ip(),fc("design:type",String)],js.prototype,"nDraw",void 0);cc([mh(),pS(),lS(()=>Ms),fc("design:type",typeof IExportInd>"u"?Object:IExportInd)],js.prototype,"exportInd",void 0);import{IsString as yh}from"class-validator";function gh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(gh,"_ts_decorate");function vh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(vh,"_ts_metadata");var Bs=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};gh([yh(),vh("design:type",String)],Bs.prototype,"cProdFisco",void 0);gh([yh(),vh("design:type",String)],Bs.prototype,"cOperNFF",void 0);import{IsString as Sh}from"class-validator";import{TransformDecimal as uS}from"nfets/core";function Rp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Rp,"_ts_decorate");function Op(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Op,"_ts_metadata");var Er=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};Rp([Sh(),Op("design:type",String)],Er.prototype,"xEmb",void 0);Rp([uS({fixed:3}),Op("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qVolEmb",void 0);Rp([Sh(),Op("design:type",String)],Er.prototype,"uEmb",void 0);import{IsString as fe}from"class-validator";function ae(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ae,"_ts_decorate");function ce(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ce,"_ts_metadata");var J=class{static{a(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};ae([fe(),ce("design:type",String)],J.prototype,"tpOp",void 0);ae([fe(),ce("design:type",String)],J.prototype,"chassi",void 0);ae([fe(),ce("design:type",String)],J.prototype,"cCor",void 0);ae([fe(),ce("design:type",String)],J.prototype,"xCor",void 0);ae([fe(),ce("design:type",String)],J.prototype,"pot",void 0);ae([fe(),ce("design:type",String)],J.prototype,"cilin",void 0);ae([fe(),ce("design:type",String)],J.prototype,"pesoL",void 0);ae([fe(),ce("design:type",String)],J.prototype,"pesoB",void 0);ae([fe(),ce("design:type",String)],J.prototype,"nSerie",void 0);ae([fe(),ce("design:type",String)],J.prototype,"tpComb",void 0);ae([fe(),ce("design:type",String)],J.prototype,"nMotor",void 0);ae([fe(),ce("design:type",String)],J.prototype,"CMT",void 0);ae([fe(),ce("design:type",String)],J.prototype,"dist",void 0);ae([fe(),ce("design:type",String)],J.prototype,"anoMod",void 0);ae([fe(),ce("design:type",String)],J.prototype,"anoFab",void 0);ae([fe(),ce("design:type",String)],J.prototype,"tpPint",void 0);ae([fe(),ce("design:type",String)],J.prototype,"tpVeic",void 0);ae([fe(),ce("design:type",String)],J.prototype,"espVeic",void 0);ae([fe(),ce("design:type",String)],J.prototype,"VIN",void 0);ae([fe(),ce("design:type",String)],J.prototype,"condVeic",void 0);ae([fe(),ce("design:type",String)],J.prototype,"cMod",void 0);ae([fe(),ce("design:type",String)],J.prototype,"cCorDENATRAN",void 0);ae([fe(),ce("design:type",String)],J.prototype,"lota",void 0);ae([fe(),ce("design:type",String)],J.prototype,"tpRest",void 0);import{IsString as Ch}from"class-validator";import{TransformDecimal as hS}from"nfets/core";function Fp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Fp,"_ts_decorate");function xp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(xp,"_ts_metadata");var zr=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};Fp([Ch(),xp("design:type",String)],zr.prototype,"cProdANVISA",void 0);Fp([Ch(),xp("design:type",String)],zr.prototype,"xMotivoIsencao",void 0);Fp([hS({fixed:2}),xp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zr.prototype,"vPMC",void 0);import{IsString as Ff}from"class-validator";function Rf(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Rf,"_ts_decorate");function Of(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Of,"_ts_metadata");var wn=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};Rf([Ff(),Of("design:type",String)],wn.prototype,"tpArma",void 0);Rf([Ff(),Of("design:type",String)],wn.prototype,"nSerie",void 0);Rf([Ff(),Of("design:type",String)],wn.prototype,"nCano",void 0);Rf([Ff(),Of("design:type",String)],wn.prototype,"descr",void 0);import{IsString as Xi,IsOptional as si,IsObject as bh,IsArray as mS,ValidateNested as Dp,ArrayMaxSize as gS}from"class-validator";import{Type as Ap}from"class-transformer";import{TransformDecimal as no}from"nfets/core";function le(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(le,"_ts_decorate");function pe(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(pe,"_ts_metadata");var Vs=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};le([Xi(),pe("design:type",String)],Vs.prototype,"indImport",void 0);le([Xi(),pe("design:type",String)],Vs.prototype,"cUFOrig",void 0);le([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vs.prototype,"pOrig",void 0);var Ls=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};le([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ls.prototype,"qBCProd",void 0);le([no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ls.prototype,"vAliqProd",void 0);le([no({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ls.prototype,"vCIDE",void 0);var Pn=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};le([Xi(),pe("design:type",String)],Pn.prototype,"nBico",void 0);le([Xi(),pe("design:type",String)],Pn.prototype,"nBomba",void 0);le([Xi(),pe("design:type",String)],Pn.prototype,"nTanque",void 0);le([no({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pn.prototype,"vEncIni",void 0);le([no({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pn.prototype,"vEncFin",void 0);var st=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};le([Xi(),pe("design:type",String)],st.prototype,"cProdANP",void 0);le([Xi(),pe("design:type",String)],st.prototype,"descANP",void 0);le([si(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGLP",void 0);le([si(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNn",void 0);le([si(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNi",void 0);le([si(),no({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vPart",void 0);le([Xi(),si(),pe("design:type",String)],st.prototype,"CODIF",void 0);le([si(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"qTemp",void 0);le([Xi(),pe("design:type",String)],st.prototype,"UFCons",void 0);le([si(),bh(),Dp(),Ap(()=>Ls),pe("design:type",typeof ICIDE>"u"?Object:ICIDE)],st.prototype,"CIDE",void 0);le([si(),bh(),Dp(),Ap(()=>Pn),pe("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],st.prototype,"encerrante",void 0);le([si(),no({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pBio",void 0);le([mS(),Dp({each:!0}),Ap(()=>Vs),gS(30),si(),pe("design:type",Array)],st.prototype,"origComb",void 0);import{IsString as vS}from"class-validator";import{TransformDecimal as Nh}from"nfets/core";function wp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(wp,"_ts_decorate");function Pp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Pp,"_ts_metadata");var Tr=class{static{a(this,"GCred")}cCredPresumido;pCredPresumido;vCredPresumido};wp([vS(),Pp("design:type",String)],Tr.prototype,"cCredPresumido",void 0);wp([Nh({fixed:4}),Pp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tr.prototype,"pCredPresumido",void 0);wp([Nh({fixed:2}),Pp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tr.prototype,"vCredPresumido",void 0);function M(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(M,"_ts_decorate");function j(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(j,"_ts_metadata");var w=class{static{a(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;tpCredPresIBSZFM;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;cBarraTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;indBemMovelUsado;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};M([Ne(),j("design:type",String)],w.prototype,"cProd",void 0);M([Ne(),j("design:type",String)],w.prototype,"cEAN",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"cBarra",void 0);M([Ne(),j("design:type",String)],w.prototype,"xProd",void 0);M([Ne(),j("design:type",String)],w.prototype,"NCM",void 0);M([X(),lc(),Hs(8),Ne({each:!0}),j("design:type",Array)],w.prototype,"NVE",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"CEST",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"indEscala",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"CNPJFab",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"cBenef",void 0);M([X(),lc(),Hs(4),ai({each:!0}),ci(()=>Tr),j("design:type",Array)],w.prototype,"gCred",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"tpCredPresIBSZFM",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"EXTIPI",void 0);M([Ne(),j("design:type",String)],w.prototype,"CFOP",void 0);M([Ne(),j("design:type",String)],w.prototype,"uCom",void 0);M([Wi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qCom",void 0);M([Wi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnCom",void 0);M([Wi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vProd",void 0);M([Ne(),j("design:type",String)],w.prototype,"cEANTrib",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"cBarraTrib",void 0);M([Ne(),j("design:type",String)],w.prototype,"uTrib",void 0);M([Wi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qTrib",void 0);M([Wi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnTrib",void 0);M([X(),Wi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vFrete",void 0);M([X(),Wi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vSeg",void 0);M([X(),Wi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vDesc",void 0);M([X(),Wi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vOutro",void 0);M([Ne(),j("design:type",String)],w.prototype,"indTot",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"indBemMovelUsado",void 0);M([X(),lc(),ai({each:!0}),Hs(100),ci(()=>_e),j("design:type",Array)],w.prototype,"DI",void 0);M([X(),lc(),ai({each:!0}),Hs(500),ci(()=>js),j("design:type",Array)],w.prototype,"detExport",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"xPed",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"nItemPed",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"nFCI",void 0);M([X(),lc(),ai({each:!0}),Hs(500),ci(()=>Ji),j("design:type",Array)],w.prototype,"rastro",void 0);M([X(),Us(),ai(),ci(()=>Bs),j("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],w.prototype,"infProdNFF",void 0);M([X(),Us(),ai(),ci(()=>Er),j("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],w.prototype,"infProdEmb",void 0);M([X(),Us(),ai(),ci(()=>J),j("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],w.prototype,"veicProd",void 0);M([X(),Us(),ai(),ci(()=>zr),j("design:type",typeof IMed>"u"?Object:IMed)],w.prototype,"med",void 0);M([X(),Us(),ai({each:!0}),ci(()=>wn),Hs(500),j("design:type",Array)],w.prototype,"arma",void 0);M([X(),Us(),ai(),ci(()=>st),j("design:type",typeof IComb>"u"?Object:IComb)],w.prototype,"comb",void 0);M([X(),Ne(),j("design:type",String)],w.prototype,"nRECOPI",void 0);w=M([yS({properties:["veicProd","med","arma","comb"]})],w);import{Type as qo}from"class-transformer";import{IsOptional as uo,ValidateNested as Zo}from"class-validator";import{IsOptional as m,IsString as b,Max as Ep,ValidateNested as we}from"class-validator";import{Type as Pe}from"class-transformer";import{Choice as SS,TransformDecimal as v}from"nfets/core";function p(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(p,"_ts_decorate");function d(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(d,"_ts_metadata");var ro=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};p([b(),d("design:type",String)],ro.prototype,"orig",void 0);p([b(),d("design:type",String)],ro.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],ro.prototype,"modBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vBCFCP",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vFCP",void 0);var En=class{static{a(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};p([b(),d("design:type",String)],En.prototype,"orig",void 0);p([b(),d("design:type",String)],En.prototype,"CST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],En.prototype,"qBCMono",void 0);p([v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],En.prototype,"adRemICMS",void 0);p([v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],En.prototype,"vICMSMono",void 0);var Ae=class{static{a(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([b(),d("design:type",String)],Ae.prototype,"orig",void 0);p([b(),d("design:type",String)],Ae.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],Ae.prototype,"modBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCFCP",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vFCP",void 0);p([m(),b(),d("design:type",String)],Ae.prototype,"modBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pMVAST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pRedBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCFCPST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pFCPST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vFCPST",void 0);var Zt=class{static{a(this,"ICMS15")}orig;CST;qBCMono;adRemICMS;vICMSMono;qBCMonoReten;adRemICMSReten;vICMSMonoReten;pRedAdRem;motRedAdRem};p([b(),d("design:type",String)],Zt.prototype,"orig",void 0);p([b(),d("design:type",String)],Zt.prototype,"CST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"qBCMono",void 0);p([v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"adRemICMS",void 0);p([v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vICMSMono",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"qBCMonoReten",void 0);p([v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"adRemICMSReten",void 0);p([v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"vICMSMonoReten",void 0);p([m(),v({fixed:4}),Ep(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"pRedAdRem",void 0);p([m(),b(),d("design:type",String)],Zt.prototype,"motRedAdRem",void 0);var Et=class{static{a(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS};p([b(),d("design:type",String)],Et.prototype,"orig",void 0);p([b(),d("design:type",String)],Et.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],Et.prototype,"modBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pRedBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBCFCP",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMSDeson",void 0);p([m(),b(),d("design:type",String)],Et.prototype,"motDesICMS",void 0);var vt=class{static{a(this,"ICMS30")}orig;CST;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST;vICMSDeson;motDesICMS};p([b(),d("design:type",String)],vt.prototype,"orig",void 0);p([b(),d("design:type",String)],vt.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],vt.prototype,"modBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pMVAST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pRedBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCFCPST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pFCPST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vFCPST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSDeson",void 0);p([m(),b(),d("design:type",String)],vt.prototype,"motDesICMS",void 0);var Mr=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};p([b(),d("design:type",String)],Mr.prototype,"orig",void 0);p([b(),d("design:type",String)],Mr.prototype,"CST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mr.prototype,"vICMSDeson",void 0);p([m(),b(),d("design:type",String)],Mr.prototype,"motDesICMS",void 0);var so=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};p([b(),d("design:type",String)],so.prototype,"orig",void 0);p([b(),d("design:type",String)],so.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],so.prototype,"modBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pRedBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vICMS",void 0);p([m(),v({fixed:4}),Ep(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"pDif",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],so.prototype,"vICMSDif",void 0);var Yt=class{static{a(this,"ICMS53")}orig;CST;qBCMono;adRemICMS;vICMSMonoOp;pDif;vICMSMonoDif;vICMSMono;qBCMonoDif;adRemICMSDif};p([b(),d("design:type",String)],Yt.prototype,"orig",void 0);p([b(),d("design:type",String)],Yt.prototype,"CST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMono",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"adRemICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoOp",void 0);p([m(),v({fixed:4}),Ep(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"pDif",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoDif",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMono",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMonoDif",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"adRemICMSDif",void 0);var yt=class{static{a(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};p([b(),d("design:type",String)],yt.prototype,"orig",void 0);p([b(),d("design:type",String)],yt.prototype,"CST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSubstituto",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSTRet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCFCPSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pFCPSTRet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vFCPSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pRedBCEfet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCEfet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pICMSEfet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSEfet",void 0);var zn=class{static{a(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};p([b(),d("design:type",String)],zn.prototype,"orig",void 0);p([b(),d("design:type",String)],zn.prototype,"CST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zn.prototype,"qBCMonoRet",void 0);p([v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zn.prototype,"adRemICMSRet",void 0);p([v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zn.prototype,"vICMSMonoRet",void 0);var de=class{static{a(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([b(),d("design:type",String)],de.prototype,"orig",void 0);p([b(),d("design:type",String)],de.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],de.prototype,"modBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pRedBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCFCP",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMSDeson",void 0);p([m(),b(),d("design:type",String)],de.prototype,"motDesICMS",void 0);p([m(),b(),d("design:type",String)],de.prototype,"modBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pMVAST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pRedBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBCFCPST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"pFCPST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vFCPST",void 0);var ue=class{static{a(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([b(),d("design:type",String)],ue.prototype,"orig",void 0);p([b(),d("design:type",String)],ue.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],ue.prototype,"modBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pRedBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vBCFCP",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vFCP",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vICMSDeson",void 0);p([m(),b(),d("design:type",String)],ue.prototype,"motDesICMS",void 0);p([m(),b(),d("design:type",String)],ue.prototype,"modBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pMVAST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pRedBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vBCFCPST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"pFCPST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ue.prototype,"vFCPST",void 0);var ke=class{static{a(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};p([b(),d("design:type",String)],ke.prototype,"orig",void 0);p([b(),d("design:type",String)],ke.prototype,"CST",void 0);p([m(),b(),d("design:type",String)],ke.prototype,"modBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pRedBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vICMS",void 0);p([m(),b(),d("design:type",String)],ke.prototype,"modBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pMVAST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pRedBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vICMSST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"pBCOp",void 0);p([m(),b(),d("design:type",String)],ke.prototype,"UFST",void 0);var _i=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};p([b(),d("design:type",String)],_i.prototype,"orig",void 0);p([b(),d("design:type",String)],_i.prototype,"CST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"vBCSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"pST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"vICMSSubstituto",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"vICMSSTRet",void 0);var jr=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};p([b(),d("design:type",String)],jr.prototype,"orig",void 0);p([b(),d("design:type",String)],jr.prototype,"CSOSN",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jr.prototype,"pCredSN",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jr.prototype,"vCredICMSSN",void 0);var pc=class{static{a(this,"ICMSSN102")}orig;CSOSN};p([b(),d("design:type",String)],pc.prototype,"orig",void 0);p([b(),d("design:type",String)],pc.prototype,"CSOSN",void 0);var jo=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};p([b(),d("design:type",String)],jo.prototype,"orig",void 0);p([b(),d("design:type",String)],jo.prototype,"CSOSN",void 0);p([m(),b(),d("design:type",String)],jo.prototype,"modBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"vICMSST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"pCredSN",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"vCredICMSSN",void 0);var Ki=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};p([b(),d("design:type",String)],Ki.prototype,"orig",void 0);p([b(),d("design:type",String)],Ki.prototype,"CSOSN",void 0);p([m(),b(),d("design:type",String)],Ki.prototype,"modBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ki.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ki.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ki.prototype,"vICMSST",void 0);var St=class{static{a(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};p([b(),d("design:type",String)],St.prototype,"orig",void 0);p([b(),d("design:type",String)],St.prototype,"CSOSN",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSubstituto",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSTRet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCFCPSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pFCPSTRet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vFCPSTRet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pRedBCEfet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCEfet",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pICMSEfet",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSEfet",void 0);var Ct=class{static{a(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};p([b(),d("design:type",String)],Ct.prototype,"orig",void 0);p([b(),d("design:type",String)],Ct.prototype,"CSOSN",void 0);p([m(),b(),d("design:type",String)],Ct.prototype,"modBC",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pRedBC",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMS",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMS",void 0);p([m(),b(),d("design:type",String)],Ct.prototype,"modBCST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBCST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMSST",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMSST",void 0);p([m(),v({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pCredSN",void 0);p([m(),v({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vCredICMSSN",void 0);var Y=class{static{a(this,"ICMS")}ICMS00;ICMS02;ICMS10;ICMS15;ICMS20;ICMS30;ICMS40;ICMS51;ICMS53;ICMS60;ICMS61;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};p([m(),we(),Pe(()=>ro),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],Y.prototype,"ICMS00",void 0);p([m(),we(),Pe(()=>En),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],Y.prototype,"ICMS02",void 0);p([m(),we(),Pe(()=>Ae),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],Y.prototype,"ICMS10",void 0);p([m(),we(),Pe(()=>Zt),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],Y.prototype,"ICMS15",void 0);p([m(),we(),Pe(()=>Et),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],Y.prototype,"ICMS20",void 0);p([m(),we(),Pe(()=>vt),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],Y.prototype,"ICMS30",void 0);p([m(),we(),Pe(()=>Mr),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],Y.prototype,"ICMS40",void 0);p([m(),we(),Pe(()=>so),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],Y.prototype,"ICMS51",void 0);p([m(),we(),Pe(()=>Yt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],Y.prototype,"ICMS53",void 0);p([m(),we(),Pe(()=>yt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],Y.prototype,"ICMS60",void 0);p([m(),we(),Pe(()=>zn),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],Y.prototype,"ICMS61",void 0);p([m(),we(),Pe(()=>de),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],Y.prototype,"ICMS70",void 0);p([m(),we(),Pe(()=>ue),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],Y.prototype,"ICMS90",void 0);p([m(),we(),Pe(()=>ke),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Y.prototype,"ICMSPart",void 0);p([m(),we(),Pe(()=>_i),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],Y.prototype,"ICMSST",void 0);p([m(),we(),Pe(()=>jr),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Y.prototype,"ICMSSN101",void 0);p([m(),we(),Pe(()=>pc),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Y.prototype,"ICMSSN102",void 0);p([m(),we(),Pe(()=>jo),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Y.prototype,"ICMSSN201",void 0);p([m(),we(),Pe(()=>Ki),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Y.prototype,"ICMSSN202",void 0);p([m(),we(),Pe(()=>St),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Y.prototype,"ICMSSN500",void 0);p([m(),we(),Pe(()=>Ct),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Y.prototype,"ICMSSN900",void 0);Y=p([SS({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Y);import{IsOptional as fi,IsString as Bo,ValidateNested as Ih}from"class-validator";import{Type as Rh}from"class-transformer";function Jt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Jt,"_ts_decorate");function Xt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Xt,"_ts_metadata");var ki=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Jt([Bo(),Xt("design:type",String)],ki.prototype,"CST",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ki.prototype,"vBC",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ki.prototype,"pIPI",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ki.prototype,"qUnid",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ki.prototype,"vUnid",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ki.prototype,"vIPI",void 0);var xf=class{static{a(this,"IPINT")}CST};Jt([Bo(),Xt("design:type",String)],xf.prototype,"CST",void 0);var ao=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Jt([fi(),Bo(),Xt("design:type",String)],ao.prototype,"CNPJProd",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ao.prototype,"cSelo",void 0);Jt([fi(),Bo(),Xt("design:type",String)],ao.prototype,"qSelo",void 0);Jt([Bo(),Xt("design:type",String)],ao.prototype,"cEnq",void 0);Jt([fi(),Ih(),Rh(()=>ki),Xt("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],ao.prototype,"IPITrib",void 0);Jt([fi(),Ih(),Rh(()=>xf),Xt("design:type",typeof IIPINT>"u"?Object:IIPINT)],ao.prototype,"IPINT",void 0);import{IsOptional as wf,IsString as Pf}from"class-validator";function Df(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Df,"_ts_decorate");function Af(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Af,"_ts_metadata");var li=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Df([wf(),Pf(),Af("design:type",String)],li.prototype,"vBC",void 0);Df([wf(),Pf(),Af("design:type",String)],li.prototype,"vDespAdu",void 0);Df([wf(),Pf(),Af("design:type",String)],li.prototype,"vII",void 0);Df([wf(),Pf(),Af("design:type",String)],li.prototype,"vIOF",void 0);import{IsOptional as ze,IsString as Te,ValidateNested as Ef}from"class-validator";import{Type as zf}from"class-transformer";import{TransformDecimal as di}from"nfets/core";function he(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(he,"_ts_decorate");function me(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(me,"_ts_metadata");var $i=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};he([Te(),me("design:type",String)],$i.prototype,"CST",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],$i.prototype,"vBC",void 0);he([ze(),Te(),di({fixed:4}),me("design:type",String)],$i.prototype,"pPIS",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],$i.prototype,"vPIS",void 0);var en=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};he([Te(),me("design:type",String)],en.prototype,"CST",void 0);he([ze(),Te(),me("design:type",String)],en.prototype,"qBCProd",void 0);he([ze(),Te(),me("design:type",String)],en.prototype,"vAliqProd",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],en.prototype,"vPIS",void 0);var Qs=class{static{a(this,"PISNT")}CST};he([Te(),me("design:type",String)],Qs.prototype,"CST",void 0);var Vo=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};he([Te(),me("design:type",String)],Vo.prototype,"CST",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],Vo.prototype,"vBC",void 0);he([ze(),Te(),di({fixed:4}),me("design:type",String)],Vo.prototype,"pPIS",void 0);he([ze(),Te(),me("design:type",String)],Vo.prototype,"qBCProd",void 0);he([ze(),Te(),me("design:type",String)],Vo.prototype,"vAliqProd",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],Vo.prototype,"vPIS",void 0);var pi=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};he([ze(),Ef(),zf(()=>$i),me("design:type",typeof $i>"u"?Object:$i)],pi.prototype,"PISAliq",void 0);he([ze(),Ef(),zf(()=>en),me("design:type",typeof en>"u"?Object:en)],pi.prototype,"PISQtde",void 0);he([ze(),Ef(),zf(()=>Qs),me("design:type",typeof Qs>"u"?Object:Qs)],pi.prototype,"PISNT",void 0);he([ze(),Ef(),zf(()=>Vo),me("design:type",typeof Vo>"u"?Object:Vo)],pi.prototype,"PISOutr",void 0);var Lo=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};he([ze(),Te(),di({fixed:2}),me("design:type",String)],Lo.prototype,"vBC",void 0);he([ze(),Te(),di({fixed:4}),me("design:type",String)],Lo.prototype,"pPIS",void 0);he([ze(),Te(),me("design:type",String)],Lo.prototype,"qBCProd",void 0);he([ze(),Te(),me("design:type",String)],Lo.prototype,"vAliqProd",void 0);he([ze(),Te(),di({fixed:2}),me("design:type",String)],Lo.prototype,"vPIS",void 0);import{IsOptional as Me,IsString as je,ValidateNested as Tf}from"class-validator";import{Type as Mf}from"class-transformer";import{TransformDecimal as hi}from"nfets/core";function ge(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ge,"_ts_decorate");function ve(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ve,"_ts_metadata");var tn=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};ge([je(),ve("design:type",String)],tn.prototype,"CST",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],tn.prototype,"vBC",void 0);ge([Me(),je(),hi({fixed:4}),ve("design:type",String)],tn.prototype,"pCOFINS",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],tn.prototype,"vCOFINS",void 0);var on=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};ge([je(),ve("design:type",String)],on.prototype,"CST",void 0);ge([Me(),je(),ve("design:type",String)],on.prototype,"qBCProd",void 0);ge([Me(),je(),ve("design:type",String)],on.prototype,"vAliqProd",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],on.prototype,"vCOFINS",void 0);var Gs=class{static{a(this,"COFINSNT")}CST};ge([je(),ve("design:type",String)],Gs.prototype,"CST",void 0);var Ho=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ge([je(),ve("design:type",String)],Ho.prototype,"CST",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],Ho.prototype,"vBC",void 0);ge([Me(),je(),hi({fixed:4}),ve("design:type",String)],Ho.prototype,"pCOFINS",void 0);ge([Me(),je(),ve("design:type",String)],Ho.prototype,"qBCProd",void 0);ge([Me(),je(),ve("design:type",String)],Ho.prototype,"vAliqProd",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],Ho.prototype,"vCOFINS",void 0);var ui=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};ge([Me(),Tf(),Mf(()=>tn),ve("design:type",typeof tn>"u"?Object:tn)],ui.prototype,"COFINSAliq",void 0);ge([Me(),Tf(),Mf(()=>on),ve("design:type",typeof on>"u"?Object:on)],ui.prototype,"COFINSQtde",void 0);ge([Me(),Tf(),Mf(()=>Gs),ve("design:type",typeof Gs>"u"?Object:Gs)],ui.prototype,"COFINSNT",void 0);ge([Me(),Tf(),Mf(()=>Ho),ve("design:type",typeof Ho>"u"?Object:Ho)],ui.prototype,"COFINSOutr",void 0);var Uo=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],Uo.prototype,"vBC",void 0);ge([Me(),je(),hi({fixed:4}),ve("design:type",String)],Uo.prototype,"pCOFINS",void 0);ge([Me(),je(),ve("design:type",String)],Uo.prototype,"qBCProd",void 0);ge([Me(),je(),ve("design:type",String)],Uo.prototype,"vAliqProd",void 0);ge([Me(),je(),hi({fixed:2}),ve("design:type",String)],Uo.prototype,"vCOFINS",void 0);import{IsOptional as Lt,IsString as Tn}from"class-validator";import{TransformDecimal as Mn}from"nfets/core";function bt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(bt,"_ts_decorate");function Nt(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Nt,"_ts_metadata");var Fe=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBC",void 0);bt([Lt(),Mn({fixed:4}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vAliq",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vISSQN",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"cMunFG",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"cListServ",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vDeducao",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vOutro",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vDescIncond",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vDescCond",void 0);bt([Lt(),Mn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vISSRet",void 0);bt([Tn(),Nt("design:type",String)],Fe.prototype,"indISS",void 0);bt([Tn(),Nt("design:type",String)],Fe.prototype,"indIncentivo",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"cServico",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"cMun",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"cPais",void 0);bt([Lt(),Tn(),Nt("design:type",String)],Fe.prototype,"nProcesso",void 0);import{IsOptional as sn,IsString as an}from"class-validator";function nn(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(nn,"_ts_decorate");function rn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(rn,"_ts_metadata");var zt=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};nn([sn(),an(),rn("design:type",String)],zt.prototype,"vBCUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"vBCFCPUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"pFCPUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"pICMSUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"pICMSInter",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"pICMSInterPart",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"vFCPUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"vICMSUFDest",void 0);nn([sn(),an(),rn("design:type",String)],zt.prototype,"vICMSUFRemet",void 0);import{IsOptional as Ri,IsString as Zp,ValidateNested as Lr}from"class-validator";import{IsOptional as xh,IsString as Dh}from"class-validator";function Oh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Oh,"_ts_decorate");function Fh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Fh,"_ts_metadata");var jn=class{static{a(this,"TransferenciaCredito")}vIBS;vCBS};Oh([xh(),Dh(),Fh("design:type",String)],jn.prototype,"vIBS",void 0);Oh([xh(),Dh(),Fh("design:type",String)],jn.prototype,"vCBS",void 0);import{IsString as Mp}from"class-validator";function zp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(zp,"_ts_decorate");function Tp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Tp,"_ts_metadata");var cn=class{static{a(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};zp([Mp(),Tp("design:type",String)],cn.prototype,"tpCredPresIBSZFM",void 0);zp([Mp(),Tp("design:type",String)],cn.prototype,"vCredPresIBSZFM",void 0);zp([Mp(),Tp("design:type",String)],cn.prototype,"competApur",void 0);import{IsOptional as Ah,IsString as Ln,ValidateNested as wh}from"class-validator";import{Type as Ph}from"class-transformer";function gi(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(gi,"_ts_decorate");function vi(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(vi,"_ts_metadata");var Bn=class{static{a(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};gi([Ln(),vi("design:type",String)],Bn.prototype,"vCredPresCondSus",void 0);gi([Ln(),vi("design:type",String)],Bn.prototype,"pCredPres",void 0);gi([Ln(),vi("design:type",String)],Bn.prototype,"vCredPres",void 0);var Vn=class{static{a(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};gi([Ln(),vi("design:type",String)],Vn.prototype,"vCredPresCondSus",void 0);gi([Ln(),vi("design:type",String)],Vn.prototype,"pCredPres",void 0);gi([Ln(),vi("design:type",String)],Vn.prototype,"vCredPres",void 0);var mi=class{static{a(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};gi([Ah(),wh(),Ph(()=>Bn),vi("design:type",typeof Bn>"u"?Object:Bn)],mi.prototype,"gIBSCredPres",void 0);gi([Ah(),wh(),Ph(()=>Vn),vi("design:type",typeof Vn>"u"?Object:Vn)],mi.prototype,"gCBSCredPres",void 0);gi([Ln(),vi("design:type",String)],mi.prototype,"vBCCredPres",void 0);gi([Ln(),vi("design:type",String)],mi.prototype,"cCredPres",void 0);import{IsString as Th}from"class-validator";function Eh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Eh,"_ts_decorate");function zh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(zh,"_ts_metadata");var Hn=class{static{a(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Eh([Th(),zh("design:type",String)],Hn.prototype,"vIBSEstCred",void 0);Eh([Th(),zh("design:type",String)],Hn.prototype,"vCBSEstCred",void 0);import{IsString as Vp}from"class-validator";function jp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(jp,"_ts_decorate");function Bp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Bp,"_ts_metadata");var fn=class{static{a(this,"AjusteCompet")}competApur;vCBS;vIBS};jp([Vp(),Bp("design:type",String)],fn.prototype,"competApur",void 0);jp([Vp(),Bp("design:type",String)],fn.prototype,"vCBS",void 0);jp([Vp(),Bp("design:type",String)],fn.prototype,"vIBS",void 0);import{IsOptional as jf,ValidateNested as Bf}from"class-validator";import{TransformDecimal as Ee}from"nfets/core";import{Type as Vf}from"class-transformer";function ie(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ie,"_ts_decorate");function ne(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(ne,"_ts_metadata");var yi=class{static{a(this,"MonoPadrao")}qBCMono;adRemIBS;adRemCBS;vIBSMono;vCBSMono};ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"qBCMono",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"adRemIBS",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"adRemCBS",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"vIBSMono",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"vCBSMono",void 0);var Si=class{static{a(this,"MonoReten")}qBCMonoReten;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten};ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"qBCMonoReten",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"adRemIBSReten",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"vIBSMonoReten",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"adRemCBSReten",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Si.prototype,"vCBSMonoReten",void 0);var Ci=class{static{a(this,"MonoRet")}qBCMonoRet;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet};ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"qBCMonoRet",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"adRemIBSRet",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vIBSMonoRet",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"adRemCBSRet",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vCBSMonoRet",void 0);var ln=class{static{a(this,"MonoDif")}pDifIBS;vIBSMonoDif;pDifCBS;vCBSMonoDif};ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"pDifIBS",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"vIBSMonoDif",void 0);ie([Ee({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"pDifCBS",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ln.prototype,"vCBSMonoDif",void 0);var co=class{static{a(this,"IBSCBSMono")}gMonoPadrao;gMonoReten;gMonoRet;gMonoDif;vTotIBSMonoItem;vTotCBSMonoItem};ie([jf(),Bf(),Vf(()=>yi),ne("design:type",typeof yi>"u"?Object:yi)],co.prototype,"gMonoPadrao",void 0);ie([jf(),Bf(),Vf(()=>Si),ne("design:type",typeof Si>"u"?Object:Si)],co.prototype,"gMonoReten",void 0);ie([jf(),Bf(),Vf(()=>Ci),ne("design:type",typeof Ci>"u"?Object:Ci)],co.prototype,"gMonoRet",void 0);ie([jf(),Bf(),Vf(()=>ln),ne("design:type",typeof ln>"u"?Object:ln)],co.prototype,"gMonoDif",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTotIBSMonoItem",void 0);ie([Ee({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTotCBSMonoItem",void 0);import{IsOptional as gc,ValidateNested as vc}from"class-validator";import{TransformDecimal as _h}from"nfets/core";import{TransformDecimal as qs}from"nfets/core";import{IsString as Mh}from"class-validator";function Un(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Un,"_ts_decorate");function Qn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Qn,"_ts_metadata");var Ht=class{static{a(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};Un([Mh(),Qn("design:type",String)],Ht.prototype,"CSTReg",void 0);Un([Mh(),Qn("design:type",String)],Ht.prototype,"cClassTribReg",void 0);Un([qs({fixed:4}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSUF",void 0);Un([qs({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSUF",void 0);Un([qs({fixed:4}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSMun",void 0);Un([qs({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSMun",void 0);Un([qs({fixed:4}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegCBS",void 0);Un([qs({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegCBS",void 0);import{TransformDecimal as Js}from"nfets/core";function Zs(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Zs,"_ts_decorate");function Ys(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ys,"_ts_metadata");var fo=class{static{a(this,"TribCompraGov")}pAliqIBSUF;vTribIBSUF;pAliqIBSMun;vTribIBSMun;pAliqCBS;vTribCBS};Zs([Js({fixed:4}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqIBSUF",void 0);Zs([Js({fixed:2}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribIBSUF",void 0);Zs([Js({fixed:4}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqIBSMun",void 0);Zs([Js({fixed:2}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribIBSMun",void 0);Zs([Js({fixed:4}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pAliqCBS",void 0);Zs([Js({fixed:2}),Ys("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vTribCBS",void 0);import{Type as yc}from"class-transformer";import{IsOptional as Lp,ValidateNested as Hp}from"class-validator";import{TransformDecimal as Zh}from"nfets/core";import{Type as Up}from"class-transformer";import{TransformDecimal as Vh}from"nfets/core";import{IsOptional as CS}from"class-validator";function jh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(jh,"_ts_decorate");function Bh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Bh,"_ts_metadata");var It=class{static{a(this,"DevTrib")}pDevTrib;vDevTrib};jh([CS(),Vh({fixed:4}),Bh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pDevTrib",void 0);jh([Vh({fixed:2}),Bh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vDevTrib",void 0);import{TransformDecimal as Uh}from"nfets/core";function Lh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Lh,"_ts_decorate");function Hh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Hh,"_ts_metadata");var Rt=class{static{a(this,"Dif")}pDif;vDif};Lh([Uh({fixed:4}),Hh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pDif",void 0);Lh([Uh({fixed:2}),Hh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vDif",void 0);import{TransformDecimal as qh}from"nfets/core";function Qh(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Qh,"_ts_decorate");function Gh(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Gh,"_ts_metadata");var Ot=class{static{a(this,"Red")}pRedAliq;pAliqEfet};Qh([qh({fixed:4}),Gh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pRedAliq",void 0);Qh([qh({fixed:4}),Gh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pAliqEfet",void 0);function dc(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(dc,"_ts_decorate");function uc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(uc,"_ts_metadata");var Qo=class{static{a(this,"IBSMun")}pIBSMun;gDif;gDevTrib;gRed;vIBSMun};dc([Zh({fixed:4}),uc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"pIBSMun",void 0);dc([Lp(),Hp(),Up(()=>Rt),uc("design:type",typeof Rt>"u"?Object:Rt)],Qo.prototype,"gDif",void 0);dc([Lp(),Hp(),Up(()=>It),uc("design:type",typeof It>"u"?Object:It)],Qo.prototype,"gDevTrib",void 0);dc([Lp(),Hp(),Up(()=>Ot),uc("design:type",typeof Ot>"u"?Object:Ot)],Qo.prototype,"gRed",void 0);dc([Zh({fixed:2}),uc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qo.prototype,"vIBSMun",void 0);import{IsOptional as Qp,ValidateNested as Gp}from"class-validator";import{TransformDecimal as Yh}from"nfets/core";import{Type as qp}from"class-transformer";function hc(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(hc,"_ts_decorate");function mc(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(mc,"_ts_metadata");var Go=class{static{a(this,"IBSUF")}pIBSUF;gDif;gDevTrib;gRed;vIBSUF};hc([Yh({fixed:4}),mc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"pIBSUF",void 0);hc([Qp(),Gp(),qp(()=>Rt),mc("design:type",typeof Rt>"u"?Object:Rt)],Go.prototype,"gDif",void 0);hc([Qp(),Gp(),qp(()=>It),mc("design:type",typeof It>"u"?Object:It)],Go.prototype,"gDevTrib",void 0);hc([Qp(),Gp(),qp(()=>Ot),mc("design:type",typeof Ot>"u"?Object:Ot)],Go.prototype,"gRed",void 0);hc([Yh({fixed:2}),mc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vIBSUF",void 0);import{IsOptional as Uf,ValidateNested as Qf}from"class-validator";import{TransformDecimal as Wh}from"nfets/core";import{Type as Gf}from"class-transformer";import{TransformDecimal as Jh}from"nfets/core";import{IsOptional as bS,IsString as Xh}from"class-validator";function Lf(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Lf,"_ts_decorate");function Hf(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Hf,"_ts_metadata");var bi=class{static{a(this,"ALCZFMCBS")}tpALCZFMCBS;nProcSuframa;pAliqEfetRegCBS;vTribRegCBS};Lf([Xh(),Hf("design:type",String)],bi.prototype,"tpALCZFMCBS",void 0);Lf([bS(),Xh(),Hf("design:type",String)],bi.prototype,"nProcSuframa",void 0);Lf([Jh({fixed:4}),Hf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"pAliqEfetRegCBS",void 0);Lf([Jh({fixed:2}),Hf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vTribRegCBS",void 0);function Xs(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Xs,"_ts_decorate");function Ws(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ws,"_ts_metadata");var lo=class{static{a(this,"CBS")}pCBS;gDif;gDevTrib;gRed;gALCZFMCBS;vCBS};Xs([Wh({fixed:4}),Ws("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lo.prototype,"pCBS",void 0);Xs([Uf(),Qf(),Gf(()=>Rt),Ws("design:type",typeof Rt>"u"?Object:Rt)],lo.prototype,"gDif",void 0);Xs([Uf(),Qf(),Gf(()=>It),Ws("design:type",typeof It>"u"?Object:It)],lo.prototype,"gDevTrib",void 0);Xs([Uf(),Qf(),Gf(()=>Ot),Ws("design:type",typeof Ot>"u"?Object:Ot)],lo.prototype,"gRed",void 0);Xs([Uf(),Qf(),Gf(()=>bi),Ws("design:type",typeof bi>"u"?Object:bi)],lo.prototype,"gALCZFMCBS",void 0);Xs([Wh({fixed:2}),Ws("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lo.prototype,"vCBS",void 0);function Br(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Br,"_ts_decorate");function Vr(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Vr,"_ts_metadata");var Wt=class{static{a(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular;gTribCompraGov};Br([_h({fixed:2}),Vr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vBC",void 0);Br([gc(),vc(),yc(()=>Go),Vr("design:type",typeof Go>"u"?Object:Go)],Wt.prototype,"gIBSUF",void 0);Br([gc(),vc(),yc(()=>Qo),Vr("design:type",typeof Qo>"u"?Object:Qo)],Wt.prototype,"gIBSMun",void 0);Br([_h({fixed:2}),Vr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vIBS",void 0);Br([gc(),vc(),yc(()=>lo),Vr("design:type",typeof lo>"u"?Object:lo)],Wt.prototype,"gCBS",void 0);Br([gc(),vc(),yc(()=>Ht),Vr("design:type",typeof Ht>"u"?Object:Ht)],Wt.prototype,"gTribRegular",void 0);Br([gc(),vc(),yc(()=>fo),Vr("design:type",typeof fo>"u"?Object:fo)],Wt.prototype,"gTribCompraGov",void 0);import{Type as Hr}from"class-transformer";function Ni(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ni,"_ts_decorate");function Ii(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Ii,"_ts_metadata");var Ft=class{static{a(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Ni([Ri(),Zp(),Ii("design:type",String)],Ft.prototype,"CST",void 0);Ni([Ri(),Zp(),Ii("design:type",String)],Ft.prototype,"cClassTrib",void 0);Ni([Ri(),Zp(),Ii("design:type",String)],Ft.prototype,"indDoacao",void 0);Ni([Ri(),Lr(),Hr(()=>jn),Ii("design:type",typeof jn>"u"?Object:jn)],Ft.prototype,"gTransfCred",void 0);Ni([Ri(),Lr(),Hr(()=>cn),Ii("design:type",typeof cn>"u"?Object:cn)],Ft.prototype,"gCredPresIBSZFM",void 0);Ni([Ri(),Lr(),Hr(()=>mi),Ii("design:type",typeof mi>"u"?Object:mi)],Ft.prototype,"gCredPresOper",void 0);Ni([Ri(),Lr(),Hr(()=>fn),Ii("design:type",typeof fn>"u"?Object:fn)],Ft.prototype,"gAjusteCompet",void 0);Ni([Ri(),Lr(),Hr(()=>Hn),Ii("design:type",typeof Hn>"u"?Object:Hn)],Ft.prototype,"gEstornoCred",void 0);Ni([Ri(),Lr(),Hr(()=>co),Ii("design:type",typeof co>"u"?Object:co)],Ft.prototype,"gIBSCBSMono",void 0);Ni([Ri(),Lr(),Hr(()=>Wt),Ii("design:type",typeof Wt>"u"?Object:Wt)],Ft.prototype,"gIBSCBS",void 0);import{TransformDecimal as Sc}from"nfets/core";import{IsOptional as _s,IsString as Yp}from"class-validator";function Gn(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Gn,"_ts_decorate");function qn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(qn,"_ts_metadata");var Ut=class{static{a(this,"IS")}CSTIS;cClassTribIS;vBCIS;pIS;adRemIS;uTrib;qTrib;vIS};Gn([Yp(),qn("design:type",String)],Ut.prototype,"CSTIS",void 0);Gn([Yp(),qn("design:type",String)],Ut.prototype,"cClassTribIS",void 0);Gn([_s(),Sc({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vBCIS",void 0);Gn([_s(),Sc({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pIS",void 0);Gn([_s(),Sc({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"adRemIS",void 0);Gn([_s(),Yp(),qn("design:type",String)],Ut.prototype,"uTrib",void 0);Gn([_s(),Sc({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"qTrib",void 0);Gn([_s(),Sc({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vIS",void 0);import{Choice as NS,TransformDecimal as IS}from"nfets/core";function _t(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(_t,"_ts_decorate");function po(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(po,"_ts_metadata");var Be=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IS;IBSCBS};_t([uo(),IS({fixed:2}),po("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Be.prototype,"vTotTrib",void 0);_t([uo(),Zo(),qo(()=>Y),po("design:type",typeof IICMS>"u"?Object:IICMS)],Be.prototype,"ICMS",void 0);_t([uo(),Zo(),qo(()=>ao),po("design:type",typeof IIPI>"u"?Object:IIPI)],Be.prototype,"IPI",void 0);_t([uo(),Zo(),qo(()=>Fe),po("design:type",typeof IISSQN>"u"?Object:IISSQN)],Be.prototype,"ISSQN",void 0);_t([uo(),Zo(),qo(()=>li),po("design:type",typeof III>"u"?Object:III)],Be.prototype,"II",void 0);_t([uo(),Zo(),qo(()=>pi),po("design:type",typeof IPIS>"u"?Object:IPIS)],Be.prototype,"PIS",void 0);_t([uo(),Zo(),qo(()=>Lo),po("design:type",typeof IPISST>"u"?Object:IPISST)],Be.prototype,"PISST",void 0);_t([uo(),Zo(),qo(()=>ui),po("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Be.prototype,"COFINS",void 0);_t([uo(),Zo(),qo(()=>Uo),po("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Be.prototype,"COFINSST",void 0);_t([uo(),Zo(),qo(()=>zt),po("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Be.prototype,"ICMSUFDest",void 0);_t([uo(),Zo(),qo(()=>Ut),po("design:type",typeof IIS>"u"?Object:IIS)],Be.prototype,"IS",void 0);_t([uo(),Zo(),qo(()=>Ft),po("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],Be.prototype,"IBSCBS",void 0);Be=_t([NS({properties:["ICMS","ISSQN"]})],Be);import{IsOptional as RS,IsString as Kh,ValidateNested as OS}from"class-validator";import{Type as FS}from"class-transformer";function Jp(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Jp,"_ts_decorate");function Xp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Xp,"_ts_metadata");var qf=class{static{a(this,"IpiDevol")}vIPIDevol};Jp([Kh(),Xp("design:type",String)],qf.prototype,"vIPIDevol",void 0);var Ks=class{static{a(this,"Devol")}pDevol;IPI};Jp([Kh(),Xp("design:type",String)],Ks.prototype,"pDevol",void 0);Jp([RS(),OS(),FS(()=>qf),Xp("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Ks.prototype,"IPI",void 0);import{IsOptional as kh,IsString as $h,ValidateNested as em}from"class-validator";import{Type as tm}from"class-transformer";function Zf(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Zf,"_ts_decorate");function Yf(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Yf,"_ts_metadata");var ks=class{static{a(this,"Observation")}xCampo;xTexto};Zf([$h(),Yf("design:type",String)],ks.prototype,"xCampo",void 0);Zf([$h(),Yf("design:type",String)],ks.prototype,"xTexto",void 0);var $s=class{static{a(this,"ObsItem")}obsCont;obsFisco};Zf([kh(),em(),tm(()=>ks),Yf("design:type",typeof IObservation>"u"?Object:IObservation)],$s.prototype,"obsCont",void 0);Zf([kh(),em(),tm(()=>ks),Yf("design:type",typeof IObservation>"u"?Object:IObservation)],$s.prototype,"obsFisco",void 0);import{IsOptional as xS,IsString as nm}from"class-validator";function om(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(om,"_ts_decorate");function im(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(im,"_ts_metadata");var Zn=class{static{a(this,"DFeReferenciado")}chaveAcesso;nItem};om([nm(),im("design:type",String)],Zn.prototype,"chaveAcesso",void 0);om([xS(),nm(),im("design:type",String)],Zn.prototype,"nItem",void 0);import{TransformDecimal as AS}from"nfets/core";function pn(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(pn,"_ts_decorate");function dn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(dn,"_ts_metadata");var ea=class{static{a(this,"DetAttributes")}nItem};pn([rm(),dn("design:type",String)],ea.prototype,"nItem",void 0);var ho=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem;DFeReferenciado};pn([DS(),oa(),ia(()=>ea),dn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],ho.prototype,"$",void 0);pn([oa(),ia(()=>w),dn("design:type",typeof IProd>"u"?Object:IProd)],ho.prototype,"prod",void 0);pn([ta(),oa(),ia(()=>Be),dn("design:type",typeof IImposto>"u"?Object:IImposto)],ho.prototype,"imposto",void 0);pn([ta(),oa(),ia(()=>Ks),dn("design:type",typeof IDevol>"u"?Object:IDevol)],ho.prototype,"impostoDevol",void 0);pn([ta(),rm(),dn("design:type",String)],ho.prototype,"infAdProd",void 0);pn([ta(),oa(),ia(()=>$s),dn("design:type",typeof IObsItem>"u"?Object:IObsItem)],ho.prototype,"obsItem",void 0);pn([ta(),AS({fixed:2}),dn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ho.prototype,"vItem",void 0);pn([ta(),oa(),ia(()=>Zn),dn("design:type",typeof IDFeReferenciado>"u"?Object:IDFeReferenciado)],ho.prototype,"DFeReferenciado",void 0);import{IsDate as wS,IsOptional as Cc,IsString as Yn}from"class-validator";import{TransformDecimal as PS,TransformDateString as ES}from"nfets/core";function Yo(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Yo,"_ts_decorate");function Jo(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Jo,"_ts_metadata");var at=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};Yo([Yn(),Jo("design:type",String)],at.prototype,"CNPJ",void 0);Yo([Yn(),Jo("design:type",String)],at.prototype,"xOrgao",void 0);Yo([Yn(),Jo("design:type",String)],at.prototype,"matr",void 0);Yo([Yn(),Jo("design:type",String)],at.prototype,"xAgente",void 0);Yo([Cc(),Yn(),Jo("design:type",String)],at.prototype,"fone",void 0);Yo([Yn(),Jo("design:type",String)],at.prototype,"UF",void 0);Yo([Cc(),Yn(),Jo("design:type",String)],at.prototype,"nDAR",void 0);Yo([Cc(),ES({format:"YYYY-MM-DD"}),Jo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dEmi",void 0);Yo([Cc(),PS({fixed:2}),Jo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDAR",void 0);Yo([Yn(),Jo("design:type",String)],at.prototype,"repEmi",void 0);Yo([Cc(),wS(),Jo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dPag",void 0);import{IsString as MS}from"class-validator";function zS(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(zS,"_ts_decorate");function TS(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(TS,"_ts_metadata");var Ur=class{static{a(this,"InfSolicNFF")}xSolic};zS([MS(),TS("design:type",String)],Ur.prototype,"xSolic",void 0);import{ArrayMaxSize as jS,IsArray as BS,IsOptional as Wp,IsString as na,ValidateNested as sm}from"class-validator";import{Type as am}from"class-transformer";import{Choice as VS}from"nfets/core";function un(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(un,"_ts_decorate");function Jn(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Jn,"_ts_metadata");var bc=class{static{a(this,"Defensivo")}nReceituario;CPFRespTec};un([na(),Jn("design:type",String)],bc.prototype,"nReceituario",void 0);un([na(),Jn("design:type",String)],bc.prototype,"CPFRespTec",void 0);var Qr=class{static{a(this,"GuiaTransito")}tpGuia;UFGuia;serieGuia;nGuia};un([na(),Jn("design:type",String)],Qr.prototype,"tpGuia",void 0);un([na(),Jn("design:type",String)],Qr.prototype,"UFGuia",void 0);un([Wp(),na(),Jn("design:type",String)],Qr.prototype,"serieGuia",void 0);un([na(),Jn("design:type",String)],Qr.prototype,"nGuia",void 0);var Oi=class{static{a(this,"Agropecuario")}defensivo;guiaTransito};un([Wp(),BS(),jS(20),sm({each:!0}),am(()=>bc),Jn("design:type",Array)],Oi.prototype,"defensivo",void 0);un([Wp(),sm(),am(()=>Qr),Jn("design:type",typeof IGuiaTransito>"u"?Object:IGuiaTransito)],Oi.prototype,"guiaTransito",void 0);Oi=un([VS({properties:["defensivo","guiaTransito"]})],Oi);import{IsString as Jf,ValidateNested as cm}from"class-validator";import{Type as fm}from"class-transformer";function ra(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ra,"_ts_decorate");function sa(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(sa,"_ts_metadata");var Nc=class{static{a(this,"RSAKeyValue")}Modulus;Exponent};ra([Jf(),sa("design:type",String)],Nc.prototype,"Modulus",void 0);ra([Jf(),sa("design:type",String)],Nc.prototype,"Exponent",void 0);var Ic=class{static{a(this,"PAASignature")}SignatureValue;RSAKeyValue};ra([Jf(),sa("design:type",String)],Ic.prototype,"SignatureValue",void 0);ra([cm(),fm(()=>Nc),sa("design:type",typeof IRSAKeyValue>"u"?Object:IRSAKeyValue)],Ic.prototype,"RSAKeyValue",void 0);var Xn=class{static{a(this,"InfPAA")}CNPJPAA;PAASignature};ra([Jf(),sa("design:type",String)],Xn.prototype,"CNPJPAA",void 0);ra([cm(),fm(()=>Ic),sa("design:type",typeof IPAASignature>"u"?Object:IPAASignature)],Xn.prototype,"PAASignature",void 0);function ye(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(ye,"_ts_decorate");function Se(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Se,"_ts_metadata");var Gr=class{static{a(this,"InfNFeAttributes")}Id;versao};ye([ct(),pm(),Se("design:type",String)],Gr.prototype,"Id",void 0);ye([ct(),pm(),Se("design:type",String)],Gr.prototype,"versao",void 0);var W=class{static{a(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF;agropecuario;infPAA};ye([Kp(),_p(),De(()=>Gr),xe(),Se("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],W.prototype,"$",void 0);ye([Kp(),_p(),xe(),De(()=>B),Se("design:type",typeof IIde>"u"?Object:IIde)],W.prototype,"ide",void 0);ye([Kp(),_p(),xe(),De(()=>Ze),Se("design:type",typeof IEmit>"u"?Object:IEmit)],W.prototype,"emit",void 0);ye([ct(),xe(),De(()=>at),Se("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],W.prototype,"avulsa",void 0);ye([ct(),xe(),De(()=>We),Se("design:type",typeof IDest>"u"?Object:IDest)],W.prototype,"dest",void 0);ye([ct(),xe(),De(()=>te),Se("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"retirada",void 0);ye([ct(),xe(),De(()=>te),Se("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"entrega",void 0);ye([ct(),xe({each:!0}),lm(10),De(()=>ei),Se("design:type",Array)],W.prototype,"autXML",void 0);ye([xe({each:!0}),lm(990),LS(1),De(()=>ho),Se("design:type",Array)],W.prototype,"det",void 0);ye([xe(),De(()=>oo),Se("design:type",typeof ITotal>"u"?Object:ITotal)],W.prototype,"total",void 0);ye([xe(),De(()=>mt),Se("design:type",typeof ITransp>"u"?Object:ITransp)],W.prototype,"transp",void 0);ye([ct(),xe(),De(()=>Rn),Se("design:type",typeof ICobr>"u"?Object:ICobr)],W.prototype,"cobr",void 0);ye([xe(),De(()=>xn),Se("design:type",typeof IPag>"u"?Object:IPag)],W.prototype,"pag",void 0);ye([ct(),xe(),De(()=>bn),Se("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],W.prototype,"infIntermed",void 0);ye([ct(),xe(),De(()=>Mo),Se("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],W.prototype,"infAdic",void 0);ye([ct(),xe(),De(()=>ji),Se("design:type",typeof IExporta>"u"?Object:IExporta)],W.prototype,"exporta",void 0);ye([ct(),xe(),De(()=>Bi),Se("design:type",typeof ICompra>"u"?Object:ICompra)],W.prototype,"compra",void 0);ye([ct(),xe(),De(()=>gt),Se("design:type",typeof ICana>"u"?Object:ICana)],W.prototype,"cana",void 0);ye([ct(),xe(),De(()=>$t),Se("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],W.prototype,"infRespTec",void 0);ye([ct(),xe(),De(()=>Ur),Se("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],W.prototype,"infSolicNFF",void 0);ye([ct(),xe(),De(()=>Oi),Se("design:type",typeof IAgropecuario>"u"?Object:IAgropecuario)],W.prototype,"agropecuario",void 0);ye([ct(),xe(),De(()=>Xn),Se("design:type",typeof IInfPAA>"u"?Object:IInfPAA)],W.prototype,"infPAA",void 0);import{Type as mm}from"class-transformer";function Xf(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Xf,"_ts_decorate");function Wf(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(Wf,"_ts_metadata");var aa=class{static{a(this,"NFeAttributes")}xmlns};Xf([QS(),US(),Wf("design:type",String)],aa.prototype,"xmlns",void 0);var Wn=class{static{a(this,"NFe")}$;infNFe;Signature};Xf([um(),dm(),mm(()=>aa),hm(),Wf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Wn.prototype,"$",void 0);Xf([um(),dm(),mm(()=>W),hm(),Wf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Wn.prototype,"infNFe",void 0);Xf([HS(),Wf("design:type",typeof Signature>"u"?Object:Signature)],Wn.prototype,"Signature",void 0);import{plainToInstance as GS}from"nfets/core";import{Validates as Tt}from"nfets/core";var Xo=a((i=[nu])=>(e,t,n)=>{let r=n.value;r!=null&&(n.value=function(...o){return i.includes(this.schema)?r.apply(this,o):this})},"SchemaValidates");function xt(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(xt,"_ts_decorate");function E(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(E,"_ts_metadata");var Ve=class{static{a(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.listener?.imposto(e),this}icms(e){return e?(this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this):this}issqn(e){return e?(this.data.imposto??={},this.data.imposto.ISSQN=e,this.listener?.issqn(e),this):this}ii(e){return e?(this.data.imposto??={},this.data.imposto.II=e,this.listener?.ii(e),this):this}ipi(e){return e?(this.data.imposto??={},this.data.imposto.IPI=e,this.listener?.ipi(e),this):this}pis(e){return e?(this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.pis(e),this):this}pisst(e){return e?(this.data.imposto??={},this.data.imposto.PISST=e,this):this}cofins(e){return e?(this.data.imposto??={},this.data.imposto.COFINS=e,this.listener?.cofins(e),this):this}cofinsst(e){return e?(this.data.imposto??={},this.data.imposto.COFINSST=e,this):this}icmsufdest(e){return e?(this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this):this}is(e){return e==null?this:(this.data.imposto??={},this.data.imposto.IS=e,this)}ibscbs(e){return e==null?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return e?(this.data.vItem=e.vItem,this):this}dfeReferenciado(e){return e?(this.data.DFeReferenciado=e,this):this}assemble(){let e={...this.data};return this.data={},e}};xt([Tt(ea),E("design:type",Function),E("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),E("design:returntype",void 0)],Ve.prototype,"det",null);xt([Tt(w),E("design:type",Function),E("design:paramtypes",[typeof IProd>"u"?Object:IProd]),E("design:returntype",void 0)],Ve.prototype,"prod",null);xt([Tt(Be),E("design:type",Function),E("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),E("design:returntype",void 0)],Ve.prototype,"imposto",null);xt([Tt(Y),E("design:type",Function),E("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),E("design:returntype",void 0)],Ve.prototype,"icms",null);xt([Tt(Fe),E("design:type",Function),E("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),E("design:returntype",void 0)],Ve.prototype,"issqn",null);xt([Tt(li),E("design:type",Function),E("design:paramtypes",[typeof III>"u"?Object:III]),E("design:returntype",void 0)],Ve.prototype,"ii",null);xt([Tt(ao),E("design:type",Function),E("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),E("design:returntype",void 0)],Ve.prototype,"ipi",null);xt([Tt(pi),E("design:type",Function),E("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),E("design:returntype",void 0)],Ve.prototype,"pis",null);xt([Tt(Lo),E("design:type",Function),E("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),E("design:returntype",void 0)],Ve.prototype,"pisst",null);xt([Tt(ui),E("design:type",Function),E("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),E("design:returntype",void 0)],Ve.prototype,"cofins",null);xt([Tt(Uo),E("design:type",Function),E("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),E("design:returntype",void 0)],Ve.prototype,"cofinsst",null);xt([Tt(zt),E("design:type",Function),E("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),E("design:returntype",void 0)],Ve.prototype,"icmsufdest",null);xt([Xo(jt),Tt(Ut),E("design:type",Function),E("design:paramtypes",[typeof IIS>"u"?Object:IIS]),E("design:returntype",void 0)],Ve.prototype,"is",null);xt([Xo(jt),Tt(Ft),E("design:type",Function),E("design:paramtypes",[typeof IIBSCBS>"u"?Object:IIBSCBS]),E("design:returntype",void 0)],Ve.prototype,"ibscbs",null);xt([Xo(jt),E("design:type",Function),E("design:paramtypes",[typeof IVItem>"u"?Object:IVItem]),E("design:returntype",void 0)],Ve.prototype,"vItem",null);xt([Xo(jt),Tt(Zn),E("design:type",Function),E("design:paramtypes",[typeof IDFeReferenciado>"u"?Object:IDFeReferenciado]),E("design:returntype",void 0)],Ve.prototype,"dfeReferenciado",null);import{left as qS,right as kp}from"nfets/core";import{ValidateErrorsMetadata as _f,Validates as Ie}from"nfets/core";import{Environment as ZS,NFeTsError as YS}from"nfets/core";function Ce(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(Ce,"_ts_decorate");function C(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(C,"_ts_metadata");var H=class{static{a(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;aggregators=[new Uc(this)];root="NFe";$det=new Hc(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=Ve.create(this.$det,n)}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 e==null?this:(this.data.infNFe.avulsa=e,this)}dest(e){return e==null?this:(this.data.infNFe.dest=e,this)}retirada(e){return e==null?this:(this.data.infNFe.retirada=e,this)}entrega(e){return e==null?this:(this.data.infNFe.entrega=e,this)}autXML(e){return e?.length?(this.data.infNFe.autXML=e,this):this}det(e,t){return this.data.infNFe.det=e.map((n,r)=>{let o=t(this.nfeDetXmlBuilder.det({nItem:(r+1).toString()}),n);return this.collect(o),o.assemble()}),this}total(e){return e==null?this:(this.data.infNFe.total=e,this)}ISSQNtot(e){return e==null?this:(this.data.infNFe.total.ISSQNtot??={},this.data.infNFe.total.ISSQNtot={...this.data.infNFe.total.ISSQNtot,...e},this)}ICMSTot(e){return e==null?this:(this.data.infNFe.total.ICMSTot={...this.data.infNFe.total.ICMSTot,...e},this)}IBSCBSTot(e){return e==null?this:(this.data.infNFe.total.IBSCBSTot={...this.data.infNFe.total.IBSCBSTot,...e},this)}ISTot(e){return e==null?this:(this.data.infNFe.total.ISTot={...this.data.infNFe.total.ISTot,...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}:this.data.infNFe.total.ISSQNtot},jt.includes(this.schema)&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){let t=this.data.infNFe.total.IBSCBSTot,n=e.IBSCBSTot,r=this.data.infNFe.total.ISTot,o=e.ISTot;this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...t,...n,gCBS:{...t?.gCBS,...n?.gCBS},gIBS:{...t?.gIBS,...n?.gIBS,gIBSMun:{...t?.gIBS?.gIBSMun,...n?.gIBS?.gIBSMun},gIBSUF:{...t?.gIBS?.gIBSUF,...n?.gIBS?.gIBSUF}},...n?.gMono!=null||t?.gMono!=null?{gMono:{...t?.gMono,...n?.gMono}}:{},...n?.gEstornoCred!=null||t?.gEstornoCred!=null?{gEstornoCred:{...t?.gEstornoCred,...n?.gEstornoCred}}:{}},ISTot:r||o?{...r,...o}:r,vNFTot:e.vNFTot??this.data.infNFe.total.vNFTot}}transp(e){return e==null?this:(this.data.infNFe.transp=e,this)}cobr(e){return e==null?this:(this.data.infNFe.cobr=e,this)}pag(e){return e==null?this:(this.data.infNFe.pag=e,this)}infIntermed(e){return e==null?this:(this.data.infNFe.infIntermed=e,this)}infAdic(e){return e==null?this:(this.data.infNFe.infAdic=e,this)}exporta(e){return e==null?this:(this.data.infNFe.exporta=e,this)}compra(e){return e==null?this:(this.data.infNFe.compra=e,this)}cana(e){return e==null?this:(this.data.infNFe.cana=e,this)}infRespTec(e){return e==null?this:(this.data.infNFe.infRespTec=e,this)}infSolicNFF(e){return e==null?this:(this.data.infNFe.infSolicNFF=e,this)}agropecuario(e){return e==null?this:(this.data.infNFe.agropecuario=e,this)}infPAA(e){return e==null?this:(this.data.infNFe.infPAA=e,this)}toInstance(){return GS(this.data,Wn,{clearEmptyValues:!0})}quiet(){return Reflect.deleteMetadata(_f,this),this}toObject(){if(this.$data!==void 0)return kp(this.$data);let e=this.errors();if(e)return qS(new YS(e.join(", ")));for(let t of this.aggregators)t.aggregate();return this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=is(this.toInstance(),this.data.infNFe.emit.enderEmit.UF),kp(this.$data)}async assemble(){let e=this.toObject();return e.isLeft()?e:kp(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==ZS.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!==K.Normal)return;switch(of[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=K.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=K.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===K.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(_f,this)}collect(e){let t=Reflect.getMetadata(_f,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(_f,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Lc().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}}};Ce([Ie(Gr),C("design:type",Function),C("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),C("design:returntype",void 0)],H.prototype,"infNFe",null);Ce([Ie(B),C("design:type",Function),C("design:paramtypes",[typeof IIde>"u"?Object:IIde]),C("design:returntype",void 0)],H.prototype,"ide",null);Ce([Ie(Ze),C("design:type",Function),C("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),C("design:returntype",void 0)],H.prototype,"emit",null);Ce([Ie(at),C("design:type",Function),C("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),C("design:returntype",void 0)],H.prototype,"avulsa",null);Ce([Ie(We),C("design:type",Function),C("design:paramtypes",[typeof IDest>"u"?Object:IDest]),C("design:returntype",void 0)],H.prototype,"dest",null);Ce([Ie(te),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"retirada",null);Ce([Ie(te),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"entrega",null);Ce([Ie(ei,{each:!0}),C("design:type",Function),C("design:paramtypes",[Array]),C("design:returntype",void 0)],H.prototype,"autXML",null);Ce([Ie(oo),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"total",null);Ce([Xo(jt),Ie(To),C("design:type",Function),C("design:paramtypes",[typeof IIBSCBSTot>"u"?Object:IIBSCBSTot]),C("design:returntype",void 0)],H.prototype,"IBSCBSTot",null);Ce([Xo(jt),Ie(Rr),C("design:type",Function),C("design:paramtypes",[typeof IISTot>"u"?Object:IISTot]),C("design:returntype",void 0)],H.prototype,"ISTot",null);Ce([Xo(jt),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"buildTotalForPL_010",null);Ce([Ie(mt),C("design:type",Function),C("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),C("design:returntype",void 0)],H.prototype,"transp",null);Ce([Ie(Rn),C("design:type",Function),C("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),C("design:returntype",void 0)],H.prototype,"cobr",null);Ce([Ie(xn),C("design:type",Function),C("design:paramtypes",[typeof IPag>"u"?Object:IPag]),C("design:returntype",void 0)],H.prototype,"pag",null);Ce([Ie(bn),C("design:type",Function),C("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),C("design:returntype",void 0)],H.prototype,"infIntermed",null);Ce([Ie(Mo),C("design:type",Function),C("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),C("design:returntype",void 0)],H.prototype,"infAdic",null);Ce([Ie(ji),C("design:type",Function),C("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),C("design:returntype",void 0)],H.prototype,"exporta",null);Ce([Ie(Bi),C("design:type",Function),C("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),C("design:returntype",void 0)],H.prototype,"compra",null);Ce([Ie(gt),C("design:type",Function),C("design:paramtypes",[typeof ICana>"u"?Object:ICana]),C("design:returntype",void 0)],H.prototype,"cana",null);Ce([Ie($t),C("design:type",Function),C("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),C("design:returntype",void 0)],H.prototype,"infRespTec",null);Ce([Ie(Ur),C("design:type",Function),C("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),C("design:returntype",void 0)],H.prototype,"infSolicNFF",null);Ce([Xo(jt),Ie(Oi),C("design:type",Function),C("design:paramtypes",[typeof IAgropecuario>"u"?Object:IAgropecuario]),C("design:returntype",void 0)],H.prototype,"agropecuario",null);Ce([Xo(jt),Ie(Xn),C("design:type",Function),C("design:paramtypes",[typeof IInfPAA>"u"?Object:IInfPAA]),C("design:returntype",void 0)],H.prototype,"infPAA",null);var Kf=class extends kr{static{a(this,"NfeXmlBuilderPipeline")}certificate;schema;builder;constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t,this.builder=H.create(this.toolkit,void 0,this.schema)}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 JS.resolve(Vc(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return $p(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return $p(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()?XS(new Bc(t.value.message,e,{cause:t.value.cause})):$p(e)}};import{NFeTsError as KS}from"nfets/core";import{left as kS,right as $S}from"nfets/core";import{unreachable as eC}from"nfets/core";import{plainToInstance as _S}from"nfets/core";import{Type as ed}from"class-transformer";import{Allow as WS,IsNotEmptyObject as td,IsObject as od,ValidateNested as id}from"class-validator";import{IsString as ym}from"class-validator";function gm(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(gm,"_ts_decorate");function vm(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a(vm,"_ts_metadata");var ca=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};gm([ym(),vm("design:type",String)],ca.prototype,"qrCode",void 0);gm([ym(),vm("design:type",String)],ca.prototype,"urlChave",void 0);function kf(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}a(kf,"_ts_decorate");function $f(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}a($f,"_ts_metadata");var hn=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};kf([od(),td(),ed(()=>aa),id(),$f("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],hn.prototype,"$",void 0);kf([od(),td(),ed(()=>W),id(),$f("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],hn.prototype,"infNFe",void 0);kf([od(),td(),ed(()=>ca),id(),$f("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],hn.prototype,"infNFeSupl",void 0);kf([WS(),$f("design:type",typeof Signature>"u"?Object:Signature)],hn.prototype,"Signature",void 0);var el=class extends H{static{a(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};static create(e,t,n="PL_009_V4"){return new this(e,t,n)}toInstance(){return _S(this.data,hn,{clearEmptyValues:!0})}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===K.Normal)return this.data.infNFe.ide.tpEmis=K.OFFLINE,void 0}};var Sm=class extends Kf{static{a(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new lt(this.certificates);transmitter=new ot(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=el.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 kS(new KS("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,r=await this.toolkit.parse(n),o=await this.generateQrCode(r,this.options,this.certificate);if(o.isLeft())return o;let s=await this.toolkit.build(o.value,{rootName:"infNFeSupl"}),c=this.toolkit.insertBefore(n,"Signature",s);return $S(c)}async generateQrCode(e,t,n){let r=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),o={...t.qrCode};switch(o.version??=r.version,o.version){case"200":return await this.nfceQrcode.execute(e,{version:o.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url,CSC:o.CSC,CSCId:o.CSCId});case"300":{let s=await this.certificates.read(n);return s.isLeft()?s:await this.nfceQrcode.execute(e,{version:o.version,certificate:s.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url})}default:return eC(o.version)}}};var Cm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z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wI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var _n=class i{static{a(this,"Header")}context;static _instance;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),r=e?.x??t,o=this.context.data.infNFe.emit,{enderEmit:s}=o,{xNome:c}=o,f=this.context.defaults.font,l=`${f}-Bold`,u="center";this.builder.row({left:r,right:n},h=>this.builder.text(this.identification(o),{...h,align:u})).row({left:r,right:n},h=>this.builder.font(l).text(c,{...h,align:u}).font(f)).row({left:r,right:n},h=>this.builder.text(`${this.addressLine1(s)}${this.addressLine2(s)}${this.addressLine3(s)}`,{...h,align:u})).row({left:r,right:n},h=>this.builder.text(this.addressLine4(s),{...h,align:u}))}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(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{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 Cm}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){i._instance=void 0}};var mo=class i{static{a(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 i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return this.context.protNFe?.infProt?this.constants.issuedInContingency:`${this.constants.issuedInContingency}
|
|
16
|
+
${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==K.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:e?.x??t,right:n},r=>this.builder.text(this.contingencyBannerText,{...r,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:e?.x??t,right:n},r=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...r,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(){i._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:r,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:r,align:"center"})),e.reduce((o,s)=>o+s,0)}};import{Environment as tC}from"nfets/core";var Kn=class i{static{a(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 i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==tC.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(){i._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 kn=class i{static{a(this,"Items")}context;static _instance;static instance(e){return this._instance??=new i(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:r,xProd:o,qCom:s,uCom:c,vUnCom:f,vDesc:l,vProd:u}=t,h={size:this.context.options.textFontSize},g={font:h,text:n.padStart(3,"0")},y={font:h,text:r},S=[{font:h,align:{x:"right"},text:`${this.context.currency(s,4)} ${c}`},{font:h,align:{x:"right"},text:this.context.currency(f,10)},{font:h,align:{x:"right"},text:this.context.currency(l??0)},{font:h,align:{x:"right"},text:this.context.currency(u)}],N=this.builder.widthOfString(r),D=this.columnStyles[1];if(N>=D)return[[g,{colSpan:6,font:h,text:`${r} ${o}`}],[{colSpan:3},...S]];let z=this.builder.widthOfString(o),be=this.columnStyles[2];if(z>=be)return[[g,y,{colSpan:5,font:h,text:o}],[{colSpan:3},...S]];let _=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${o}`)<=_?[[g,y,{font:h,text:o},...S]]:[[g,y,{colSpan:5,font:h,text:o}],[{colSpan:3},...S]]}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((r,o)=>r.concat(this.item(o)),[])]})}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(){i._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,r=this.columnStyles.reduce((s,c)=>typeof c=="number"?s+c:s,0),o=this.columnStyles.filter(s=>s==="*").length;return(n-r)/o}getAvailableWidth(e,t){if(e.colSpan){let o=t.indexOf(e),s=this.columnStyles.slice(0,o).reduce((f,l)=>typeof l=="number"?f+l:f,0),c=this.getProportionalWidth()*e.colSpan;return s+c}let n=t.indexOf(e),r=this.columnStyles[n];return typeof r=="number"?r:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let r of e){if(!r.text)continue;let o=r.text,s=this.builder.widthOfString(o),c=this.getAvailableWidth(r,e),f=s<=c?t:this.builder.heightOfString(o,{width:c});n=Math.max(n,f)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),r=n*1.2,o=n*.5,s=n*.5,c=t.reduce((l,u)=>{let h=this.item(u),[g]=h,y=this.calculateRowHeight(g,n),S=0;if(h.length>1){let _=this.calculateRowHeight(h[1],n);S=Math.max(n,_)}let{top:N,bottom:D}=this.defaultStyle.padding,z=N+D,be=h.length>1?n*.2:0;return l+y+S+h.length*z+be},0),f=n*2;return o+r+s+c+f}};import{Decimal as oC}from"nfets/core";var $n=class i{static{a(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new i(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:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},o=>this.builder.text("Qtde. Total de Itens",{...o}),o=>this.builder.text(`${t.length}`,{...o,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:r,vOutro:o}=this.context.data.infNFe.total.ICMSTot,{vServ:s}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new oC(e).add(s??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",r),this.conditionalRowValue("Outras despesas total R$",o)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:r,right:o}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:r,right:o},s=>this.builder.text("Valor a Pagar R$",{...s,align:"left"}),s=>this.builder.text(this.context.currency(e),{...s,align:"right"})).font(t)}conditionalRowValue(e,t,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:r,right:o}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:o},s=>this.builder.text(e,{...s,align:"left"}),s=>this.builder.text(`${n}${t}`,{...s,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.ibsCbs(),this.total(),this.builder}ibsCbs(){let{IBSCBSTot:e,ISTot:t}=this.context.data.infNFe.total;this.conditionalRowValue("(+) CBS R$",e?.gCBS?.vCBS),this.conditionalRowValue("(+) IBS R$",e?.gIBS?.vIBS),this.conditionalRowValue("(+) IS R$",t?.vIS)}end(){i._instance=void 0}};var Le={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"},bm={[Le.Dinheiro]:"Dinheiro",[Le.Cheque]:"Cheque",[Le.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[Le.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[Le.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[Le.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[Le.ValeRefeicao]:"Vale Refei\xE7\xE3o",[Le.ValePresente]:"Vale Presente",[Le.ValeCombustivel]:"Vale Combust\xEDvel",[Le.BoletoBancario]:"Boleto Banc\xE1rio",[Le.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[Le.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[Le.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[Le.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[Le.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[Le.CreditoEmLoja]:"Cr\xE9dito em Loja",[Le.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[Le.SemPagamento]:"Sem pagamento",[Le.PagamentoPosterior]:"Pagamento Posterior",[Le.Outros]:"Outros"};var er=class i{static{a(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:n}=e,{left:r,right:o}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:o},s=>this.builder.text(bm[t],{...s,align:"left"}),s=>this.builder.text(this.context.currency(n),{...s,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:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},o=>this.builder.text("Forma de Pagamento",{...o,align:"left"}),o=>this.builder.text("Valor pago R$",{...o,align:"right"})),t.forEach(o=>this.payment(o))}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},r=>this.builder.text("Troco R$",{...r,align:"left"}),r=>this.builder.text(this.context.currency(e),{...r,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(){i._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,n=Array.isArray(t)?t:[t],r=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+r}};var tr=class i{static{a(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new i(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,r=`${n}-Bold`;this.builder.font(r).row({left:e,right:t},o=>this.builder.text("Consulte pela Chave de Acesso em",{...o,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},r=>this.builder.text(e??"",{...r,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:r}=this.builder.pageMargins();this.builder.row({left:n,right:r},o=>this.builder.text(t,{...o,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(){i._instance=void 0}};var wv=kd(Xd(),1);var va=class i{static{a(this,"QRCode")}context;static _instance;qrCodeSvg;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==K.Normal}get qrSize(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.hasContingency?.6:.4;return Math.floor(n*r)}async getQrSvgString(e){try{return await wv.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),r=this.qrSize,o=r/t,s=r/n,c=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:f,right:l}=this.builder.pageMargins(),u=this.builder.pageWidth()-f-l,h=f+(u-r)/2,g=this.builder.y();this.builder.save().translate(h,g).scale(o,s),c.forEach(y=>{this.builder.path(y.$.d),y.$.fill&&this.builder.fill(y.$.fill),y.$.stroke&&this.builder.stroke(y.$.stroke)}),this.builder.restore(),this.builder.text("",{y:g+r})}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.qrCodeSvg?(this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder):this.builder}end(){i._instance=void 0}height(){let{qrCode:e}=this.context.data.infNFeSupl??{};return e?(this.setup(),this.qrSize+.5):0}};var ya=class i{static{a(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:n}=this.builder.pageMargins(),r=this.context.defaults.font,o=`${r}-Bold`;this.builder.row({left:e?.x??t,right:n},s=>this.builder.font(o).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...s,align:"center"}).font(r))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:r}=e;return t?.length===14?`CNPJ: ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:r?.length?`Id. Estrangeiro: ${r}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:n,right:r}=this.builder.pageMargins(),o=this.identification(t),{xNome:s,enderDest:c}=t,f=this.addressLine(c),l=this.context.defaults.font,u=`${l}-Bold`;this.builder.row({left:e?.x??n,right:r},h=>this.builder.font(u).text(`CONSUMIDOR - ${o}`,{...h,align:"center"}).font(l)).row({left:e?.x??n,right:r},h=>this.builder.text(`${s}${f}`,{...h,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:r,xCpl:o,xMun:s,UF:c,CEP:f}=e;if(!t||!f)return"";let l=o?`, ${o}`:"";return` - Rua ${t}, ${n}, ${r}${l}, ${s} - ${c}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,r=n?` - ${n}`:"";return`${t}${r}`}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(){i._instance=void 0}height(){this.setup();let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=[this.builder.currentLineHeight()*.5],{dest:o}=this.context.data.infNFe;if(!o)return r.push(this.builder.heightOfString("CONSUMIDOR N\xC3O IDENTIFICADO",{width:n,align:"center"})),r.reduce((u,h)=>u+h,0);let s=this.identification(o),{xNome:c,enderDest:f}=o,l=this.addressLine(f);return r.push(this.builder.heightOfString(`CONSUMIDOR - ${s}`,{width:n,align:"center"}),this.builder.heightOfString(`${c}${l}`,{width:n,align:"center"})),r.reduce((u,h)=>u+h,0)}};import{dateToolkit as ml,timezones as Wd}from"nfets/core";var Sa=class i{static{a(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new i(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:r}=this.context.data.infNFe.ide,o=t.padStart(9,"0"),s=n.padStart(3,"0"),{left:c,right:f}=this.builder.pageMargins(),{cUF:l}=this.context.data.infNFe.ide,u=Wd[l],h=ml(r).tz(u).format("DD/MM/YYYY HH:mm:ss"),g=this.context.defaults.font,y=`${g}-Bold`;this.builder.row({left:e?.x??c,right:f},S=>this.builder.font(y).text(`NFC-e n\xBA ${o} - s\xE9rie ${s} emitida em: ${h}`,{...S,align:"center"}).font(g))}protocoled(e,t){let{dhRecbto:n,nProt:r}=e,{left:o,right:s}=this.builder.pageMargins(),{cUF:c}=this.context.data.infNFe.ide,f=Wd[c],l=r.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),u=ml(n).tz(f).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??o,right:s},h=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${l}
|
|
17
|
+
Data de autoriza\xE7\xE3o: ${u}`,{...h,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:r,right:o}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??r,right:o},s=>this.builder.text(`$(${t}) ${n}`,{...s,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(){i._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n,{nNF:o,serie:s,dhEmi:c}=this.context.data.infNFe.ide,f=o.padStart(9,"0"),l=s.padStart(3,"0"),{cUF:u}=this.context.data.infNFe.ide,h=Wd[u],g=ml(c).tz(h).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`NFC-e n\xBA ${f} - s\xE9rie ${l} emitida em: ${g}`,{width:r,align:"center"}));let{cMsg:y,xMsg:S}=this.context.protNFe?.infProt??{};S&&e.push(this.builder.heightOfString(`$(${y}) ${S}`,{width:r,align:"left"}));let N=this.context.protNFe;if(N){let{dhRecbto:D,nProt:z}=N.infProt,be=z.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),_=ml(D).tz(h).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`Protocolo de autoriza\xE7\xE3o: ${be}
|
|
18
|
+
Data de autoriza\xE7\xE3o: ${_}`,{width:r,align:"center"}))}return e.reduce((D,z)=>D+z,0)}};var Ca=class i{static{a(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builders(){return[ya.instance(this.context),Sa.instance(this.context),mo.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(){i._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+(t.height?.()??0),0)}};var gl=.35277777777777775,_d=.75,Pv={"80mm":80/gl},yo="gerado por github.com/nfets/nfets";var ba=class i{static{a(this,"Footer")}context;static _instance;constants={vTotTrib:"Tributos Totais Incidentes (Lei Federal 12.741/2012): R$"};static instance(e){return this._instance??=new i(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(),r=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:n},o=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...o,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
|
|
19
19
|
`)??"").split(`
|
|
20
20
|
`).map(t=>t.trim().replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"")).filter(t=>t.length>0).join(`
|
|
21
|
-
`)}infCpl(){if(!this.infCplText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},n=>this.builder.text(this.infCplText,{...n,align:"center"}))}credits(){let e=this.context.options.credits;if(!e)return;this.builder.moveDown(.5);let{left:t,right:n}=this.builder.pageMargins();if(e===
|
|
22
|
-
S\xE9rie ${this.format.serie(s)}`,e+c,t+R(8),n-2*c,r-R(8)-c,{size:7,bold:!0,align:"center"})}};import{Decimal as lN,dateToolkit as Ov,timezones as dN}from"nfets/core";var up=class{static{a(this,"DanfeFormatter")}context;constructor(e){this.context=e}isNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}emitted(e,t){let n=String(e??"0").trim(),r=n.startsWith("-"),i=r?n.slice(1):n,[s,c=""]=i.split("."),f=Math.min(Math.max(c.length,2),t),u=(s.replace(/\D/g,"")||"0").replace(/\B(?=(\d{3})+(?!\d))/g,"."),h=c.padEnd(f,"0").slice(0,f),v=`${u},${h}`;return r?`-${v}`:v}decimal(e,t=2,n=t){return new lN(e??0).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:t,maximumFractionDigits:n})}currency(e){return this.decimal(e,2)}percent(e){return`${this.decimal(e,2,4)}%`}document(e,t){return e?.length===14?e.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5"):t?.length===11?t.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"):e??t??""}cep(e){return e?e.replace(/(\d{5})(\d{3})/,"$1-$2"):""}phone(e){return e?e.replace(/^(\d{2})(\d{4,5})(\d{4})$/,"($1) $2-$3"):""}number(e){return e.padStart(9,"0").replace(/(\d{3})(\d{3})(\d{3})/,"$1.$2.$3")}serie(e){return e.padStart(3,"0")}blank(e){return this.sanitize(e)||"\u2014"}accessKey(){return this.accessKeyDigits().replace(/(.{4})/g,"$1 ").trim()}accessKeyDigits(){let{Id:e}=this.context.data.infNFe.$;return(e??"").replace(/^NFe/,"")}tz(e){let{cUF:t}=this.context.data.infNFe.ide;return Ov(e).tz(dN[t])}date(e){return e?this.tz(e).format("DD/MM/YYYY"):""}time(e){return e?this.tz(e).format("HH:mm:ss"):""}dateTime(e){return e?this.tz(e).format("DD/MM/YYYY HH:mm:ss"):""}plainDate(e){if(!e)return"";let[t,n,r]=e.substring(0,10).split("-");return`${r}/${n}/${t}`}now(){return Ov().format("DD/MM/YYYY [\xE0s] HH:mm:ss")}sanitize(e){return(e??"").replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"").trim()}};var hp=class{static{a(this,"FieldBox")}context;labelSize=5;valueSize=8;titleSize=6.5;muted="#595959";padding=2.5;rowHeight=R(7);radius=R(.8);constructor(e){this.context=e}get builder(){return this.context.builder}get titleHeight(){return this.titleSize*1.2+1}get labelHeight(){return this.labelSize*1.2}text(e,t,n,r,i,s){if(!e)return;this.builder.fillColor(s.color??"black").font(s.bold?this.context.bold:this.context.defaults.font).fontSize(s.size);let c=this.builder.currentLineHeight(!0);this.builder.text(e,{x:t,y:n,width:Math.max(r,1),height:Math.max(i,c+.5),align:s.align??"left",ellipsis:s.ellipsis??s.lineBreak!==!1,lineBreak:s.lineBreak,lineGap:0})}measure(e,t,n){return e?(this.builder.font(n.bold?this.context.bold:this.context.defaults.font).fontSize(n.size),this.builder.heightOfString(e,{width:t,lineGap:0})):0}rect(e,t,n,r){this.builder.roundedRect(e,t,n,r,this.radius).stroke()}box(e,t,n,r,i){let s=this.padding;if(this.rect(e,t,n,r),this.text(i.label,e+s,t+s,n-2*s,this.labelHeight,{size:this.labelSize,color:this.muted}),!i.value)return;let c=t+s+this.labelHeight+.5;this.text(i.value,e+s,c,n-2*s,t+r-c-.5,{size:i.valueSize??this.valueSize,bold:i.bold,align:i.align??"left"})}widths(e,t){let n=t.reduce((r,i)=>r+i,0);return t.map(r=>e*r/n)}row(e,t,n,r,i){let s=this.widths(n,i.map(f=>f.weight)),c=e;return i.forEach((f,p)=>{this.box(c,t,s[p],r,f),c+=s[p]}),r}grid(e,t,n,r,i,s=this.rowHeight){let c=n/i,f=this.gridRows(r.length,i);for(let p=0;p<f;p++){let u=r.slice(p*i,(p+1)*i);u.forEach((h,v)=>{let y=v===u.length-1,S=e+v*c,N=y?e+n-S:c;this.box(S,t+p*s,N,s,h)})}return f*s}gridRows(e,t){return Math.ceil(e/t)}widthOf(e,t){return e?(this.builder.font(t.bold?this.context.bold:this.context.defaults.font).fontSize(t.size),this.builder.widthOfString(e)):0}title(e,t,n,r){return this.text(r,e,t+1,n,this.titleHeight-1,{size:this.titleSize,bold:!0,color:"black"}),this.titleHeight}};import{Environment as uN}from"nfets/core";var mp=class{static{a(this,"StatusMarks")}context;cancelled=["101","135","151","155"];denied=[gn.UsoDenegado,gn.NfeDenegada,gn.DenegadaIrregularidadeEmissor,gn.DenegadaIrregularidadeDestinatario,gn.DenegadaNaoHabilitadaNaUf];invalid="SEM VALOR FISCAL";messageSize=40;detailSize=16;lineHeight=1.3;constructor(e){this.context=e}get isHomolog(){return this.context.data.infNFe.ide.tpAmb!==uN.Production}get isContingency(){return this.context.data.infNFe.ide.tpEmis!==Ue.Normal}get isProtocoled(){return!!this.context.protNFe}get cStat(){return this.context.protNFe?.infProt.cStat}get cancellation(){return this.context.events.map(e=>e.infEvento).find(e=>e.tpEvento===Qe.Cancelamento&&this.cancelled.includes(e.cStat))}status(){if(!this.isProtocoled&&this.isContingency)return{messages:["EMITIDA EM CONTING\xCANCIA","PENDENTE DE AUTORIZA\xC7\xC3O"],valid:!0};if(!this.isProtocoled)return{messages:["NFe N\xC3O PROTOCOLADA"],valid:!1};let e=[];this.isHomolog&&e.push("NFe EMITIDA EM HOMOLOGA\xC7\xC3O");let t=this.cStat,n=this.cancellation,r;return t&&this.denied.includes(t)?(e.push("NFe DENEGADA"),r=this.context.protNFe?.infProt.xMotivo):t&&this.cancelled.includes(t)?e.push("NFe CANCELADA"):n&&(e.push("NFe CANCELADA"),r=[this.context.format.dateTime(n.dhRegEvento),n.nProt].filter(Boolean).join(" - ")),{messages:e,detail:r,valid:!e.length}}fit(e,t,n){this.context.builder.font(this.context.bold).fontSize(t);let r=this.context.builder.widthOfString(e);return r>n?t*n/r:t}watermark(e,t,n,r){let{messages:i,detail:s,valid:c}=this.status(),f=c?i:[...i,this.invalid];if(!f.length)return;let p=n*.9,u=f.map(_=>this.fit(_,this.messageSize,p)),h=s?this.fit(s,this.detailSize,p):0,v=(u.reduce((_,Q)=>_+Q,0)+h)*this.lineHeight,y=Math.min(1,r/v),S=c?f.length:f.length-1,{builder:N,fields:A}=this.context,z=t+Math.max((r-v*y)/2,0),Ce=a((_,Q)=>{let Ie=Q*y;A.text(_,e,z,n,Ie*this.lineHeight,{size:Ie,bold:!0,align:"center"}),z+=Ie*this.lineHeight},"write");N.save().fillColor("#000000",.3),f.forEach((_,Q)=>{s&&Q===S&&Ce(s,h),Ce(_,u[Q])}),s&&S===f.length&&Ce(s,h),N.restore().fillColor("black")}};var ga=class{static{a(this,"DanfePdfDocument")}stream;events=[];builder;toolkit=new mN;format=new up(this);fields=new hp(this);status=new mp(this);defaults={displayTitle:!0,font:"Helvetica",info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfe, danfe, sefaz",Title:"Documento Auxiliar da Nota Fiscal Eletr\xF4nica",Subject:"DANFE NF-e"}};options={size:"A4",layout:"portrait",qComDecimals:4,vUnComDecimals:4,showCanhoto:!0,showItemBatch:!0,showItemComplement:!1,showItemOrderNumber:!1,breakItemDescription:!0,hideTaxUnit:!1,credits:er};margins=Kd;gap=R(1);page={number:1,total:1};_blocks;get blocks(){return this._blocks??=this.createBlocks()}constructor(e){this.stream=e,this.builder=hN.new(this.defaults).pipe(this.stream)}get bold(){return`${this.defaults.font}-Bold`}sideCanhotoWidth=0;contentInset(){return this.page.number>1||this.sideCanhotoWidth<=0?0:this.sideCanhotoWidth+Qd}get contentWidth(){let{left:e,right:t}=this.margins;return this.builder.pageWidth()-e-t-this.contentInset()}get contentX(){return this.margins.left+this.contentInset()}get det(){return this.asArray(this.data.infNFe.det)}asArray(e){return e==null?[]:Array.isArray(e)?e:[e]}apply(){this.builder.configure({size:this.options.size,margins:this.margins,layout:this.options.layout})}async parse(e){let t=await this.toolkit.parse(e);"protNFe"in t&&(this.protNFe=t.protNFe),"NFe"in t?(this.data=t.NFe,this.events=this.asArray(t.retEvento)):this.data=t}visible(e){return e.filter(t=>!!t&&t.visible())}stackHeight(e){return e.reduce((t,n)=>t+this.gap+n.height(),0)}get canhoto(){if(this.options.showCanhoto)return this.blocks.canhoto}get pageTop(){return this.margins.top}get pageBottom(){let{footer:e}=this.blocks;return this.builder.pageHeight()-this.margins.bottom-e.height()}itemSpace(e){let{header:t,firstPage:n,items:r}=this.blocks,i=this.pageBottom-this.pageTop,s=t.height()+this.gap+r.headerHeight(),c=e&&this.sideCanhotoWidth<=0?this.canhoto?.height()??0:0,f=e?this.stackHeight(this.visible(n)):0;return i-c-s-f}paginate(){let{items:e,lastPage:t}=this.blocks,n=[],r=[],i=0;this.page={number:1,total:1};let s=this.itemSpace(!0);for(let f of this.det){let p=e.itemHeight(f),u=i+p<=s,h=r.length>0||this.page.number===1;!u&&h&&(n.push(r),r=[],i=0,this.page={number:2,total:1},s=this.itemSpace(!1),p=e.itemHeight(f)),r.push(f),i+=p}let c=this.stackHeight(this.visible(t));return r.length>0&&i+c>s&&(n.push(r),r=[]),n.push(r),n.map((f,p)=>({items:f,isFirst:p===0,isLast:p===n.length-1}))}draw(e){let{header:t,firstPage:n,items:r,lastPage:i,footer:s}=this.blocks,c=this.contentX,f=this.contentWidth,p=this.pageTop,u=this.canhoto;if(e.isFirst&&u&&this.sideCanhotoWidth===0&&(u.build({x:c,y:p,width:f}),p+=u.height()),t.build({x:c,y:p,width:f}),p+=t.height(),e.isFirst)for(let S of this.visible(n))p+=this.gap,S.build({x:c,y:p,width:f}),p+=S.height();let h=this.visible(i),v=e.isLast?this.pageBottom-this.stackHeight(h):this.pageBottom,y=e.items.length>0||e.isLast;if(y&&(p+=this.gap,r.slice=e,r.boxHeight=v-p,r.build({x:c,y:p,width:f})),e.isLast){let S=y?v:p;for(let N of h)S+=this.gap,N.build({x:c,y:S,width:f}),S+=N.height()}s.build({x:c,y:this.pageBottom,width:f}),e.isFirst&&u&&this.sideCanhotoWidth>0&&u.build({x:this.margins.left,y:this.pageTop,width:this.sideCanhotoWidth,height:this.builder.pageHeight()-this.margins.top-this.margins.bottom})}async build(e){await this.parse(e),this.apply(),this.builder.page();let{canhoto:t,header:n,firstPage:r,items:i,lastPage:s,footer:c}=this.blocks,f=[t,n,...r,i,...s,c];for(let u of f)await u?.prepare();let p=this.paginate();return p.forEach((u,h)=>{h>0&&this.builder.page(),this.page={number:h+1,total:p.length},this.draw(u)}),this}end(){this.builder.end()}};var gp=class o{static{a(this,"Code128C")}static patterns=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"];static startB=104;static startC=105;static latchB=100;static latchC=99;static stop=106;static codes(e){if(/^\d*$/.test(e)){if(e.length%2!==0)throw new Error("Code128C requires an even number of digits");let t=e.match(/\d{2}/g)?.map(Number)??[];return o.finish([o.startC,...t])}if(!/^[0-9A-Z]+$/.test(e))throw new Error("Code128 requires digits or uppercase letters");return o.finish(o.symbols(e))}static symbols(e){let t=[],n=0,r=o.digitRun(e,0)>=4?"C":"B";for(t.push(r==="C"?o.startC:o.startB);n<e.length;){if(r==="C"){let h=e.slice(n,n+2);if(/^\d{2}$/.test(h)){t.push(Number(h)),n+=2;continue}t.push(o.latchB),r="B";continue}let i=o.digitRun(e,n),s=i%2,c=(i-s)/2,f=c*2,u=n+s+f<e.length?1:0;if(c>=2&&s+1+c+u<s+f){for(let h=0;h<s;h+=1)t.push(e.charCodeAt(n)-32),n+=1;t.push(o.latchC),r="C";continue}t.push(e.charCodeAt(n)-32),n+=1}return t}static digitRun(e,t){let n=0;for(;e[t+n]>="0"&&e[t+n]<="9";)n+=1;return n}static finish(e){let t=e.reduce((n,r,i)=>i===0?r:n+r*i,0)%103;return[...e,t,o.stop]}static modules(e){return o.codes(e).flatMap(t=>o.patterns[t].split("").map(Number))}static draw(e,t,n,r,i,s){let c=o.modules(t),f=c.reduce((h,v)=>h+v,0),p=i/f;e.save().fillColor("black");let u=n;c.forEach((h,v)=>{let y=h*p;v%2===0&&e.rect(u,r,y,s),u+=y}),e.fill().restore()}};var va=class extends ne{static{a(this,"Header")}topHeight=R(32);emitWidth=R(80);danfeWidth=R(34);barcodeHeight=R(12);height(){let e=1+this.registrationRows().length;return this.topHeight+e*this.fields.rowHeight}get logo(){return this.context.options.logo}registrationRows(){let{emit:e}=this.infNFe;return[[{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(e.IE),weight:1},{label:"INSCRI\xC7\xC3O MUNICIPAL",value:this.format.blank(e.IM),weight:1},{label:"INSCRI\xC7\xC3O ESTADUAL DO SUBST. TRIBUT.",value:this.format.blank(e.IEST),weight:1},{label:"CNPJ / CPF",value:this.format.blank(this.format.document(e.CNPJ,e.CPF)),weight:1}]]}emitAddress(){let{enderEmit:e}=this.infNFe.emit,{xLgr:t,nro:n,xCpl:r,xBairro:i,CEP:s,xMun:c,UF:f,fone:p}=e,u=r?` - ${r}`:"",h=p?` Fone/Fax: ${this.format.phone(p)}`:"";return[`${t}, ${n}${u}`,`${i} - ${this.format.cep(s)}`,`${c} - ${f}${h}`].join(`
|
|
23
|
-
`)}drawEmit(e,t){let n=this.fields.padding,r=this.emitWidth,
|
|
21
|
+
`)}infCpl(){if(!this.infCplText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},n=>this.builder.text(this.infCplText,{...n,align:"center"}))}credits(){let e=this.context.options.credits;if(!e)return;this.builder.moveDown(.5);let{left:t,right:n}=this.builder.pageMargins();if(e===yo)return this.builder.row({left:t,right:n},r=>this.builder.text(e,{...r,link:"https://github.com/nfets/nfets",align:"center"}));this.builder.row({left:t,right:n},r=>this.builder.text(e,{...r,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(1),this.vTotTrib(),this.infCpl(),this.credits(),this.builder}end(){i._instance=void 0}height(){this.setup();let e=[this.builder.currentLineHeight()*.5],t=this.context.options.credits,{left:n,right:r}=this.builder.pageMargins(),o=this.builder.pageWidth()-n-r,{vTotTrib:s}=this.context.data.infNFe.total.ICMSTot,c=!s||!Number.parseFloat(s.toString())?"-----":this.context.currency(s);return e.push(this.builder.heightOfString(`${this.constants.vTotTrib} ${c}`,{width:o,align:"center"})),this.infCplText&&e.push(this.builder.heightOfString(this.infCplText,{width:o,align:"center"})),t&&e.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(t,{width:o,align:"center"})),e.reduce((f,l)=>f+l,0)}};var fr=class i{static{a(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new i(e)}constructor(e){this.context=e}get builders(){return[Ca.instance(this.context),va.instance(this.context),ba.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,t,n]=this.builders;return e.build(),await t.build(),n.build(),this.builder}end(){i._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+t.height(),0)}};import{PassThrough as yN}from"stream";import{PdfkitPdfBuilder as SN}from"nfets/core";import{Decimal as CN,Xml2JsToolkit as bN}from"nfets/core";var Di=class{static{a(this,"DanfcePdfDocument")}stream;builder;toolkit=new bN;defaults={displayTitle:!0,font:"Helvetica",info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfce, danfce, sefaz",Title:"Documento Auxiliar da Nota Fiscal do Consumidor Eletr\xF4nica",Subject:"DANFE NFC-e"}};options={width:"80mm",height:160,textFontSize:9*_d,titleFontSize:11*_d,credits:yo};constructor(e){this.stream=e,this.builder=SN.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let n=t(new yN);try{n.options={...this.options,height:1e4},n.apply(),n.builder.page(),await n.parse(e);for(let s of n.builders)await s.build();let{bottom:r}=n.pageMargins,o=n.builder.currentLineHeight(!0);return n.builder.y()+o+r}finally{n.end()}}pageMargins={top:12,right:8,bottom:8,left:8};height(){this.builder.page();let{top:e,bottom:t}=this.pageMargins;return this.builders.reduce((r,o)=>r+(o.height?.()??0),0)+e+t}apply(){this.builder.configure({size:[Pv[this.options.width],this.options.height],margins:this.pageMargins,layout:"portrait"})}async parse(e){let t=await this.toolkit.parse(e);"protNFe"in t&&(this.protNFe=t.protNFe),"NFe"in t?this.data=t.NFe:this.data=t}async build(e){await this.parse(e),this.options.height=await this.getDynamicHeight(e,this.clone.bind(this)),this.apply(),this.builder.page();for(let t of this.builders)await t.build();return this}end(){return this.builder.end(),this.builders.map(e=>e.end()),void 0}currency(e,t=2){return new CN(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}setCredits(e=yo){return this.options.credits=e===!1?void 0:e,this}setLogo(e){return this.options.logo=e,this}};var Ev=class i extends Di{static{a(this,"DanfceDefaultPdfDocument")}clone(e){return new i(e)}get builders(){return[_n.instance(this),mo.instance(this),Kn.instance(this),kn.instance(this),$n.instance(this),er.instance(this),tr.instance(this),fr.instance(this)]}};var zv=class i extends Di{static{a(this,"DanfceReducedPdfDocument")}clone(e){return new i(e)}get builders(){return[_n.instance(this),mo.instance(this),Kn.instance(this),$n.instance(this),er.instance(this),tr.instance(this),fr.instance(this)]}};import{PdfkitPdfBuilder as ON}from"nfets/core";import{Xml2JsToolkit as FN}from"nfets/core";var re=class{static{a(this,"DanfeBlock")}context;constructor(e){this.context=e}get builder(){return this.context.builder}get fields(){return this.context.fields}get format(){return this.context.format}get infNFe(){return this.context.data.infNFe}visible(){return!0}prepare(){return Promise.resolve()}setup(){this.builder.font(this.context.defaults.font).fillColor("black").strokeColor("black").lineWidth(.5).undash()}build(e){return this.setup(),this.draw(e??{x:this.context.margins.left,y:this.context.margins.top,width:this.context.contentWidth}),this.builder}end(){}};var Kd=R(4),Na=class extends re{static{a(this,"Canhoto")}textHeight=R(10);signatureHeight=R(7);numberWidth=R(35);spacing=Kd;innerPad=R(1.2);height(){return this.textHeight+this.signatureHeight+this.spacing}receivedText(e=!0){let{emit:t,dest:n,ide:r,total:o}=this.infNFe,s=e?"AO LADO":"ABAIXO",c=[`RECEBEMOS DE ${t.xNome} OS PRODUTOS E/OU SERVI\xC7OS CONSTANTES DA NOTA FISCAL ELETR\xD4NICA INDICADA ${s}.`,`EMISS\xC3O: ${this.format.date(r.dhEmi)}`,`VALOR TOTAL: R$ ${this.format.currency(o.ICMSTot.vNF)}`];if(n?.xNome){let f=n.enderDest,l=f?` - ${[f.xLgr,f.nro].filter(Boolean).join(", ")} ${f.xBairro??""} ${f.xMun??""}-${f.UF??""}`:"";c.push(`DESTINAT\xC1RIO: ${n.xNome}${l}`)}return c.join(" ")}draw(e){if(e.height)return this.drawSide(e);this.drawTop(e)}drawSide({x:e,y:t,width:n,height:r=0}){let o=R(24),s=Math.max(r-o,0);this.fields.rect(e,t,n,r),this.drawNumber(e,t,n,o),this.drawRotated([this.receivedText(!1),"DATA DE RECEBIMENTO","IDENTIFICA\xC7\xC3O E ASSINATURA DO RECEBEDOR"].join(" "),e,t+o,n,s),this.drawCut(e+n+this.spacing/2,t,e+n+this.spacing/2,t+r)}drawRotated(e,t,n,r,o){let s=this.innerPad;this.builder.save().translate(t,n+o).rotate(-90),this.fields.text(e,s,s,o-2*s,r-2*s,{size:6}),this.builder.restore()}drawCut(e,t,n,r){this.builder.save().lineWidth(.6).dash(4,{space:3}).moveTo(e,t).lineTo(n,r).stroke().undash().restore()}drawTop({x:e,y:t,width:n}){let r=this.innerPad,o=n-this.numberWidth;this.fields.rect(e,t,o,this.textHeight),this.fields.text(this.receivedText(),e+r,t+r,o-2*r,this.textHeight-2*r,{size:6.5}),this.fields.row(e,t+this.textHeight,o,this.signatureHeight,[{label:"DATA DE RECEBIMENTO",weight:40},{label:"IDENTIFICA\xC7\xC3O E ASSINATURA DO RECEBEDOR",weight:125}]);let s=this.textHeight+this.signatureHeight;this.drawNumber(e+o,t,this.numberWidth,s);let c=t+s+this.spacing/2;this.drawCut(e,c,e+n,c)}drawNumber(e,t,n,r){let{nNF:o,serie:s}=this.infNFe.ide,c=this.innerPad;this.fields.rect(e,t,n,r),this.fields.text("NF-e",e+c,t+R(2.5),n-2*c,16,{size:12,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(o)}
|
|
22
|
+
S\xE9rie ${this.format.serie(s)}`,e+c,t+R(8),n-2*c,r-R(8)-c,{size:7,bold:!0,align:"center"})}};import{Decimal as NN,dateToolkit as Tv,timezones as IN}from"nfets/core";var vl=class{static{a(this,"DanfeFormatter")}context;constructor(e){this.context=e}isNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}emitted(e,t){let n=String(e??"0").trim(),r=n.startsWith("-"),o=r?n.slice(1):n,[s,c=""]=o.split("."),f=Math.min(Math.max(c.length,2),t),u=(s.replace(/\D/g,"")||"0").replace(/\B(?=(\d{3})+(?!\d))/g,"."),h=c.padEnd(f,"0").slice(0,f),g=`${u},${h}`;return r?`-${g}`:g}decimal(e,t=2,n=t){return new NN(e??0).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:t,maximumFractionDigits:n})}currency(e){return this.decimal(e,2)}percent(e){return`${this.decimal(e,2,4)}%`}document(e,t){return e?.length===14?e.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5"):t?.length===11?t.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"):e??t??""}cep(e){return e?e.replace(/(\d{5})(\d{3})/,"$1-$2"):""}phone(e){return e?e.replace(/^(\d{2})(\d{4,5})(\d{4})$/,"($1) $2-$3"):""}number(e){return e.padStart(9,"0").replace(/(\d{3})(\d{3})(\d{3})/,"$1.$2.$3")}serie(e){return e.padStart(3,"0")}blank(e){return this.sanitize(e)||"\u2014"}accessKey(){return this.accessKeyDigits().replace(/(.{4})/g,"$1 ").trim()}accessKeyDigits(){let{Id:e}=this.context.data.infNFe.$;return(e??"").replace(/^NFe/,"")}tz(e){let{cUF:t}=this.context.data.infNFe.ide;return Tv(e).tz(IN[t])}date(e){return e?this.tz(e).format("DD/MM/YYYY"):""}time(e){return e?this.tz(e).format("HH:mm:ss"):""}dateTime(e){return e?this.tz(e).format("DD/MM/YYYY HH:mm:ss"):""}plainDate(e){if(!e)return"";let[t,n,r]=e.substring(0,10).split("-");return`${r}/${n}/${t}`}now(){return Tv().format("DD/MM/YYYY [\xE0s] HH:mm:ss")}sanitize(e){return(e??"").replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"").trim()}};var yl=class{static{a(this,"FieldBox")}context;labelSize=5;valueSize=8;titleSize=6.5;muted="#595959";padding=2.5;rowHeight=R(7);radius=R(.8);constructor(e){this.context=e}get builder(){return this.context.builder}get titleHeight(){return this.titleSize*1.2+1}get labelHeight(){return this.labelSize*1.2}text(e,t,n,r,o,s){if(!e)return;this.builder.fillColor(s.color??"black").font(s.bold?this.context.bold:this.context.defaults.font).fontSize(s.size);let c=this.builder.currentLineHeight(!0);this.builder.text(e,{x:t,y:n,width:Math.max(r,1),height:Math.max(o,c+.5),align:s.align??"left",ellipsis:s.ellipsis??s.lineBreak!==!1,lineBreak:s.lineBreak,lineGap:0})}measure(e,t,n){return e?(this.builder.font(n.bold?this.context.bold:this.context.defaults.font).fontSize(n.size),this.builder.heightOfString(e,{width:t,lineGap:0})):0}rect(e,t,n,r){this.builder.roundedRect(e,t,n,r,this.radius).stroke()}box(e,t,n,r,o){let s=this.padding;if(this.rect(e,t,n,r),this.text(o.label,e+s,t+s,n-2*s,this.labelHeight,{size:this.labelSize,color:this.muted}),!o.value)return;let c=t+s+this.labelHeight+.5;this.text(o.value,e+s,c,n-2*s,t+r-c-.5,{size:o.valueSize??this.valueSize,bold:o.bold,align:o.align??"left"})}widths(e,t){let n=t.reduce((r,o)=>r+o,0);return t.map(r=>e*r/n)}row(e,t,n,r,o){let s=this.widths(n,o.map(f=>f.weight)),c=e;return o.forEach((f,l)=>{this.box(c,t,s[l],r,f),c+=s[l]}),r}grid(e,t,n,r,o,s=this.rowHeight){let c=n/o,f=this.gridRows(r.length,o);for(let l=0;l<f;l++){let u=r.slice(l*o,(l+1)*o);u.forEach((h,g)=>{let y=g===u.length-1,S=e+g*c,N=y?e+n-S:c;this.box(S,t+l*s,N,s,h)})}return f*s}gridRows(e,t){return Math.ceil(e/t)}widthOf(e,t){return e?(this.builder.font(t.bold?this.context.bold:this.context.defaults.font).fontSize(t.size),this.builder.widthOfString(e)):0}title(e,t,n,r){return this.text(r,e,t+1,n,this.titleHeight-1,{size:this.titleSize,bold:!0,color:"black"}),this.titleHeight}};import{Environment as RN}from"nfets/core";var Sl=class{static{a(this,"StatusMarks")}context;cancelled=["101","135","151","155"];denied=[Cn.UsoDenegado,Cn.NfeDenegada,Cn.DenegadaIrregularidadeEmissor,Cn.DenegadaIrregularidadeDestinatario,Cn.DenegadaNaoHabilitadaNaUf];invalid="SEM VALOR FISCAL";messageSize=40;detailSize=16;lineHeight=1.3;constructor(e){this.context=e}get isHomolog(){return this.context.data.infNFe.ide.tpAmb!==RN.Production}get isContingency(){return this.context.data.infNFe.ide.tpEmis!==K.Normal}get isProtocoled(){return!!this.context.protNFe}get cStat(){return this.context.protNFe?.infProt.cStat}get cancellation(){return this.context.events.map(e=>e.infEvento).find(e=>e.tpEvento===Qe.Cancelamento&&this.cancelled.includes(e.cStat))}status(){if(!this.isProtocoled&&this.isContingency)return{messages:["EMITIDA EM CONTING\xCANCIA","PENDENTE DE AUTORIZA\xC7\xC3O"],valid:!0};if(!this.isProtocoled)return{messages:["NFe N\xC3O PROTOCOLADA"],valid:!1};let e=[];this.isHomolog&&e.push("NFe EMITIDA EM HOMOLOGA\xC7\xC3O");let t=this.cStat,n=this.cancellation,r;return t&&this.denied.includes(t)?(e.push("NFe DENEGADA"),r=this.context.protNFe?.infProt.xMotivo):t&&this.cancelled.includes(t)?e.push("NFe CANCELADA"):n&&(e.push("NFe CANCELADA"),r=[this.context.format.dateTime(n.dhRegEvento),n.nProt].filter(Boolean).join(" - ")),{messages:e,detail:r,valid:!e.length}}fit(e,t,n){this.context.builder.font(this.context.bold).fontSize(t);let r=this.context.builder.widthOfString(e);return r>n?t*n/r:t}watermark(e,t,n,r){let{messages:o,detail:s,valid:c}=this.status(),f=c?o:[...o,this.invalid];if(!f.length)return;let l=n*.9,u=f.map(_=>this.fit(_,this.messageSize,l)),h=s?this.fit(s,this.detailSize,l):0,g=(u.reduce((_,Q)=>_+Q,0)+h)*this.lineHeight,y=Math.min(1,r/g),S=c?f.length:f.length-1,{builder:N,fields:D}=this.context,z=t+Math.max((r-g*y)/2,0),be=a((_,Q)=>{let Re=Q*y;D.text(_,e,z,n,Re*this.lineHeight,{size:Re,bold:!0,align:"center"}),z+=Re*this.lineHeight},"write");N.save().fillColor("#000000",.3),f.forEach((_,Q)=>{s&&Q===S&&be(s,h),be(_,u[Q])}),s&&S===f.length&&be(s,h),N.restore().fillColor("black")}};var Ia=class{static{a(this,"DanfePdfDocument")}stream;events=[];builder;toolkit=new FN;format=new vl(this);fields=new yl(this);status=new Sl(this);defaults={displayTitle:!0,font:"Helvetica",info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfe, danfe, sefaz",Title:"Documento Auxiliar da Nota Fiscal Eletr\xF4nica",Subject:"DANFE NF-e"}};options={size:"A4",layout:"portrait",qComDecimals:4,vUnComDecimals:4,showCanhoto:!0,showItemBatch:!0,showItemComplement:!1,showItemOrderNumber:!1,breakItemDescription:!0,hideTaxUnit:!1,credits:yo};margins=su;gap=R(1);page={number:1,total:1};_blocks;get blocks(){return this._blocks??=this.createBlocks()}constructor(e){this.stream=e,this.builder=ON.new(this.defaults).pipe(this.stream)}get bold(){return`${this.defaults.font}-Bold`}sideCanhotoWidth=0;contentInset(){return this.page.number>1||this.sideCanhotoWidth<=0?0:this.sideCanhotoWidth+Kd}get contentWidth(){let{left:e,right:t}=this.margins;return this.builder.pageWidth()-e-t-this.contentInset()}get contentX(){return this.margins.left+this.contentInset()}get det(){return this.asArray(this.data.infNFe.det)}asArray(e){return e==null?[]:Array.isArray(e)?e:[e]}apply(){this.builder.configure({size:this.options.size,margins:this.margins,layout:this.options.layout})}async parse(e){let t=await this.toolkit.parse(e);"protNFe"in t&&(this.protNFe=t.protNFe),"NFe"in t?(this.data=t.NFe,this.events=this.asArray(t.retEvento)):this.data=t}visible(e){return e.filter(t=>!!t&&t.visible())}stackHeight(e){return e.reduce((t,n)=>t+this.gap+n.height(),0)}get canhoto(){if(this.options.showCanhoto)return this.blocks.canhoto}get pageTop(){return this.margins.top}get pageBottom(){let{footer:e}=this.blocks;return this.builder.pageHeight()-this.margins.bottom-e.height()}itemSpace(e){let{header:t,firstPage:n,items:r}=this.blocks,o=this.pageBottom-this.pageTop,s=t.height()+this.gap+r.headerHeight(),c=e&&this.sideCanhotoWidth<=0?this.canhoto?.height()??0:0,f=e?this.stackHeight(this.visible(n)):0;return o-c-s-f}paginate(){let{items:e,lastPage:t}=this.blocks,n=[],r=[],o=0;this.page={number:1,total:1};let s=this.itemSpace(!0);for(let f of this.det){let l=e.itemHeight(f),u=o+l<=s,h=r.length>0||this.page.number===1;!u&&h&&(n.push(r),r=[],o=0,this.page={number:2,total:1},s=this.itemSpace(!1),l=e.itemHeight(f)),r.push(f),o+=l}let c=this.stackHeight(this.visible(t));return r.length>0&&o+c>s&&(n.push(r),r=[]),n.push(r),n.map((f,l)=>({items:f,isFirst:l===0,isLast:l===n.length-1}))}draw(e){let{header:t,firstPage:n,items:r,lastPage:o,footer:s}=this.blocks,c=this.contentX,f=this.contentWidth,l=this.pageTop,u=this.canhoto;if(e.isFirst&&u&&this.sideCanhotoWidth===0&&(u.build({x:c,y:l,width:f}),l+=u.height()),t.build({x:c,y:l,width:f}),l+=t.height(),e.isFirst)for(let S of this.visible(n))l+=this.gap,S.build({x:c,y:l,width:f}),l+=S.height();let h=this.visible(o),g=e.isLast?this.pageBottom-this.stackHeight(h):this.pageBottom,y=e.items.length>0||e.isLast;if(y&&(l+=this.gap,r.slice=e,r.boxHeight=g-l,r.build({x:c,y:l,width:f})),e.isLast){let S=y?g:l;for(let N of h)S+=this.gap,N.build({x:c,y:S,width:f}),S+=N.height()}s.build({x:c,y:this.pageBottom,width:f}),e.isFirst&&u&&this.sideCanhotoWidth>0&&u.build({x:this.margins.left,y:this.pageTop,width:this.sideCanhotoWidth,height:this.builder.pageHeight()-this.margins.top-this.margins.bottom})}async build(e){await this.parse(e),this.apply(),this.builder.page();let{canhoto:t,header:n,firstPage:r,items:o,lastPage:s,footer:c}=this.blocks,f=[t,n,...r,o,...s,c];for(let u of f)await u?.prepare();let l=this.paginate();return l.forEach((u,h)=>{h>0&&this.builder.page(),this.page={number:h+1,total:l.length},this.draw(u)}),this}setCredits(e=yo){return this.options.credits=e===!1?void 0:e,this}end(){this.builder.end()}};var Ra=class i{static{a(this,"Code128C")}static patterns=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"];static startB=104;static startC=105;static latchB=100;static latchC=99;static stop=106;static codes(e){if(/^\d*$/.test(e)){if(e.length%2!==0)throw new Error("Code128C requires an even number of digits");let t=e.match(/\d{2}/g)?.map(Number)??[];return i.finish([i.startC,...t])}if(!/^[0-9A-Z]+$/.test(e))throw new Error("Code128 requires digits or uppercase letters");return i.finish(i.symbols(e))}static symbols(e){let t=[],n=0,r=i.digitRun(e,0)>=4?"C":"B";for(t.push(r==="C"?i.startC:i.startB);n<e.length;){if(r==="C"){let h=e.slice(n,n+2);if(/^\d{2}$/.test(h)){t.push(Number(h)),n+=2;continue}t.push(i.latchB),r="B";continue}let o=i.digitRun(e,n),s=o%2,c=(o-s)/2,f=c*2,u=n+s+f<e.length?1:0;if(c>=2&&s+1+c+u<s+f){for(let h=0;h<s;h+=1)t.push(e.charCodeAt(n)-32),n+=1;t.push(i.latchC),r="C";continue}t.push(e.charCodeAt(n)-32),n+=1}return t}static digitRun(e,t){let n=0;for(;e[t+n]>="0"&&e[t+n]<="9";)n+=1;return n}static finish(e){let t=e.reduce((n,r,o)=>o===0?r:n+r*o,0)%103;return[...e,t,i.stop]}static modules(e){return i.codes(e).flatMap(t=>i.patterns[t].split("").map(Number))}static draw(e,t,n,r,o,s){let c=i.modules(t),f=c.reduce((h,g)=>h+g,0),l=o/f;e.save().fillColor("black");let u=n;c.forEach((h,g)=>{let y=h*l;g%2===0&&e.rect(u,r,y,s),u+=y}),e.fill().restore()}};var Oa=class extends re{static{a(this,"Header")}topHeight=R(32);emitWidth=R(80);danfeWidth=R(34);barcodeHeight=R(12);height(){let e=1+this.registrationRows().length;return this.topHeight+e*this.fields.rowHeight}get logo(){return this.context.options.logo}registrationRows(){let{emit:e}=this.infNFe;return[[{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(e.IE),weight:1},{label:"INSCRI\xC7\xC3O MUNICIPAL",value:this.format.blank(e.IM),weight:1},{label:"INSCRI\xC7\xC3O ESTADUAL DO SUBST. TRIBUT.",value:this.format.blank(e.IEST),weight:1},{label:"CNPJ / CPF",value:this.format.blank(this.format.document(e.CNPJ,e.CPF)),weight:1}]]}emitAddress(){let{enderEmit:e}=this.infNFe.emit,{xLgr:t,nro:n,xCpl:r,xBairro:o,CEP:s,xMun:c,UF:f,fone:l}=e,u=r?` - ${r}`:"",h=l?` Fone/Fax: ${this.format.phone(l)}`:"";return[`${t}, ${n}${u}`,`${o} - ${this.format.cep(s)}`,`${c} - ${f}${h}`].join(`
|
|
23
|
+
`)}drawEmit(e,t){let n=this.fields.padding,r=this.emitWidth,o=this.topHeight;this.fields.box(e,t,r,o,{label:"IDENTIFICA\xC7\xC3O DO EMITENTE"});let s=t+n+this.fields.labelHeight,c=t+o-n-s,f=R(1),l=this.logo,u=l?c:0,h=e+n+u+(l?f:0),g=r-2*n-u-(l?f:0),{xNome:y}=this.infNFe.emit,S=this.emitAddress(),N=Math.min(this.fields.measure(y,g,{size:9,bold:!0}),R(10)),D=Math.min(this.fields.measure(S,g,{size:7}),c-N-f),z=N+f+D,be=s+Math.max((c-z)/2,0),_=be+N+f;l&&this.builder.image(l,e+n,s,{fit:[u,c],align:"center",valign:"center"}),this.fields.text(y,h,be,g,N,{size:9,bold:!0,align:"center"}),this.fields.text(S,h,_,g,D,{size:7,align:"center"})}drawDanfe(e,t){let n=this.danfeWidth,{tpNF:r,nNF:o,serie:s}=this.infNFe.ide,{number:c,total:f}=this.context.page;this.fields.rect(e,t,n,this.topHeight),this.fields.text("DANFE",e,t+R(1.5),n,14,{size:12,bold:!0,align:"center"}),this.fields.text(`Documento Auxiliar da Nota
|
|
24
24
|
Fiscal Eletr\xF4nica`,e,t+R(6.5),n,R(6),{size:7,align:"center"}),this.fields.text(`0 - ENTRADA
|
|
25
|
-
1 - SA\xCDDA`,e+R(4),t+R(13),R(20),R(6),{size:7});let
|
|
25
|
+
1 - SA\xCDDA`,e+R(4),t+R(13),R(20),R(6),{size:7});let l=R(6),u=e+n-l-R(4),h=t+R(13);this.fields.rect(u,h,l,l),this.fields.text(r,u,h+R(1),l,l,{size:11,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(o)}
|
|
26
26
|
S\xE9rie ${this.format.serie(s)}
|
|
27
|
-
Folha ${c}/${f}`,e,t+R(20.5),n,R(11),{size:8,bold:!0,align:"center"})}drawAccessKey(e,t,n){let r=this.fields.padding,
|
|
28
|
-
www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora`,e+r,c+R(2.5),n-2*r,f-R(2.5),{size:7.5,align:"center"})}protocolCell(){let e=this.context.protNFe?.infProt;if(e)return{label:"PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",value:`${e.nProt} - ${this.format.dateTime(e.dhRecbto)}`,weight:86};let{dhCont:t}=this.infNFe.ide;return{label:"PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",value:this.context.status.isContingency?`EMITIDA EM CONTING\xCANCIA ${this.format.dateTime(t)}`.trim():"",weight:86}}draw({x:e,y:t,width:n}){this.drawEmit(e,t),this.drawDanfe(e+this.emitWidth,t);let r=e+this.emitWidth+this.danfeWidth;this.drawAccessKey(r,t,e+n-r);let i=t+this.topHeight;this.fields.row(e,i,n,this.fields.rowHeight,[{label:"NATUREZA DA OPERA\xC7\xC3O",value:this.infNFe.ide.natOp,weight:114},this.protocolCell()]);for(let s of this.registrationRows())i+=this.fields.rowHeight,this.fields.row(e,i,n,this.fields.rowHeight,s)}};var ya=class extends ne{static{a(this,"Recipient")}title="DESTINAT\xC1RIO / REMETENTE";height(){return this.fields.titleHeight+3*this.fields.rowHeight}draw({x:e,y:t,width:n}){let{dest:r,ide:i}=this.infNFe,s=r?.enderDest,c=this.fields.rowHeight,f=i.dhSaiEnt,p=t+this.fields.title(e,t,n,this.title),u=[s?.xLgr,s?.nro].filter(Boolean).join(", "),h=s?.xCpl?`${u} - ${s.xCpl}`:u,v=r?.idEstrangeiro??this.format.document(r?.CNPJ,r?.CPF);this.fields.row(e,p,n,c,[{label:"NOME / RAZ\xC3O SOCIAL",value:this.format.blank(r?.xNome),weight:120},{label:"CNPJ / CPF",value:this.format.blank(v),weight:45},{label:"DATA DA EMISS\xC3O",value:this.format.blank(this.format.date(i.dhEmi)),weight:35}]),p+=c,this.fields.row(e,p,n,c,[{label:"ENDERE\xC7O",value:this.format.blank(h),weight:105},{label:"BAIRRO / DISTRITO",value:this.format.blank(s?.xBairro),weight:38},{label:"CEP",value:this.format.blank(this.format.cep(s?.CEP)),weight:22},{label:"DATA DA SA\xCDDA/ENTRADA",value:this.format.blank(this.format.date(f)),weight:35}]),p+=c,this.fields.row(e,p,n,c,[{label:"MUNIC\xCDPIO",value:this.format.blank(s?.xMun),weight:70},{label:"FONE / FAX",value:this.format.blank(this.format.phone(s?.fone)),weight:35},{label:"UF",value:this.format.blank(s?.UF),weight:10},{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(r?.IE),weight:50},{label:"HORA DA SA\xCDDA/ENTRADA",value:this.format.blank(this.format.time(f)),weight:35}])}},tr=class extends ne{static{a(this,"Location")}kind;constructor(e,t){super(e),this.kind=t}get local(){return this.infNFe[this.kind]}get title(){return this.kind==="retirada"?"INFORMA\xC7\xD5ES DO LOCAL DE RETIRADA":"INFORMA\xC7\xD5ES DO LOCAL DE ENTREGA"}visible(){return!!this.local}height(){return this.fields.titleHeight+2*this.fields.rowHeight}draw({x:e,y:t,width:n}){let r=this.local;if(!r)return;let i=this.fields.rowHeight,s=t+this.fields.title(e,t,n,this.title),c=r.xCpl?` - ${r.xCpl}`:"";this.fields.row(e,s,n,i,[{label:"NOME / RAZ\xC3O SOCIAL",value:this.format.blank(r.xNome),weight:120},{label:"CNPJ / CPF",value:this.format.blank(this.format.document(r.CNPJ,r.CPF)),weight:40},{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(r.IE),weight:40}]),s+=i,this.fields.row(e,s,n,i,[{label:"ENDERE\xC7O",value:this.format.blank(`${r.xLgr}, ${r.nro}${c}`),weight:80},{label:"BAIRRO / DISTRITO",value:this.format.blank(r.xBairro),weight:40},{label:"MUNIC\xCDPIO",value:this.format.blank(r.xMun),weight:40},{label:"UF",value:this.format.blank(r.UF),weight:10},{label:"CEP",value:this.format.blank(this.format.cep(r.CEP)),weight:30}])}};var Sa=class extends ne{static{a(this,"Invoices")}title="FATURA / DUPLICATAS";perRow=5;valueSize=6;limit=21;cellHeight=R(10);get duplicates(){return this.context.asArray(this.infNFe.cobr?.dup).slice(0,this.limit)}visible(){let{cobr:e}=this.infNFe;return!!e&&(this.duplicates.length>0||!!e.fat)}rows(){let e=this.duplicates.length;return e?this.fields.gridRows(e,this.perRow):1}height(){return this.duplicates.length?this.fields.titleHeight+this.rows()*this.cellHeight:this.fields.titleHeight+this.fields.rowHeight}drawFat(e,t,n){let r=this.infNFe.cobr?.fat;this.fields.row(e,t,n,this.fields.rowHeight,[{label:"N\xDAMERO DA FATURA",value:r?.nFat,weight:1},{label:"VALOR ORIGINAL",value:this.format.currency(r?.vOrig),weight:1,align:"right"},{label:"VALOR DO DESCONTO",value:this.format.currency(r?.vDesc),weight:1,align:"right"},{label:"VALOR L\xCDQUIDO",value:this.format.currency(r?.vLiq),weight:1,align:"right"}])}draw({x:e,y:t,width:n}){let r=t+this.fields.title(e,t,n,this.title),i=this.duplicates;if(!i.length)return this.drawFat(e,r,n);let s=this.fields.padding,c=n/this.perRow;i.forEach((f,p)=>{let u=Math.floor(p/this.perRow),h=p%this.perRow,v=e+h*c,y=r+u*this.cellHeight;this.fields.rect(v,y,c,this.cellHeight);let S=[["Num.",f.nDup??""],["Venc.",this.format.plainDate(f.dVenc)],["Valor",`R$ ${this.format.currency(f.vDup)}`]],N=this.valueSize;this.builder.font(this.context.defaults.font).fontSize(N);let A=this.builder.currentLineHeight(!0),z=v+c-s;S.forEach(([Ce,_],Q)=>{let Ie=y+s+Q*A,Kt=this.fields.widthOf(Ce,{size:N});this.fields.text(Ce,v+s,Ie,Kt,A,{size:N});let Fi=v+s+Kt+2;this.fields.text(_,Fi,Ie,Math.max(z-Fi,1),A,{size:N,align:"right",lineBreak:!1,ellipsis:!0})})})}};var vp=class extends ne{static{a(this,"LegacyTaxes")}title="C\xC1LCULO DO IMPOSTO";perRow=8;cell(e,t){return{label:e,value:this.format.currency(t),align:"right"}}cells(){let e=this.infNFe.total.ICMSTot;return[this.cell("BASE DE C\xC1LC. DO ICMS",e.vBC),this.cell("VALOR DO ICMS",e.vICMS),this.cell("BASE DE C\xC1LC. ICMS S.T.",e.vBCST),this.cell("VALOR DO ICMS SUBST.",e.vST),this.cell("V. IMP. IMPORTA\xC7\xC3O",e.vII),this.cell("V. ICMS UF REMET.",e.vICMSUFRemet),this.cell("V. FCP UF DEST.",e.vFCPUFDest),this.cell("V. TOTAL PRODUTOS",e.vProd),this.cell("VALOR DO FRETE",e.vFrete),this.cell("VALOR DO SEGURO",e.vSeg),this.cell("DESCONTO",e.vDesc),this.cell("OUTRAS DESPESAS",e.vOutro),this.cell("VALOR TOTAL IPI",e.vIPI),this.cell("V. ICMS UF DEST.",e.vICMSUFDest),this.cell("V. TOT. TRIB.",e.vTotTrib),this.cell("V. TOTAL DA NOTA",e.vNF)]}height(){let e=this.fields.gridRows(this.cells().length,this.perRow);return this.fields.titleHeight+e*this.fields.rowHeight}draw({x:e,y:t,width:n}){let r=t+this.fields.title(e,t,n,this.title);this.fields.grid(e,r,n,this.cells(),this.perRow)}};import{Decimal as gN}from"nfets/core";var Dc=class extends ne{static{a(this,"Transport")}title="TRANSPORTADOR / VOLUMES TRANSPORTADOS";conditional=!1;modFrete={0:"0-Por conta do remetente",1:"1-Por conta do destinat\xE1rio",2:"2-Por conta de terceiros",3:"3-Pr\xF3prio por conta do remetente",4:"4-Pr\xF3prio por conta do destinat\xE1rio",9:"9-Sem transporte"};get volumes(){return this.context.asArray(this.infNFe.transp.vol)}visible(){if(!this.conditional)return!0;let{transporta:e,veicTransp:t}=this.infNFe.transp;return!!e||!!t||this.volumes.length>0}height(){return this.fields.titleHeight+3*this.fields.rowHeight}sum(e,t){let n=this.volumes.map(i=>i[e]).filter(i=>i!==void 0&&i!=="");if(!n.length)return"";let r=n.reduce((i,s)=>new gN(i).plus(s??0).toString(),"0");return this.format.decimal(r,t)}draw({x:e,y:t,width:n}){let{modFrete:r,transporta:i,veicTransp:s}=this.infNFe.transp,c=this.volumes.at(0),f=this.fields.rowHeight,p=t+this.fields.title(e,t,n,this.title),u=a(h=>this.format.blank(h),"blank");this.fields.row(e,p,n,f,[{label:"NOME / RAZ\xC3O SOCIAL",value:u(i?.xNome),weight:62},{label:"FRETE",value:u(this.modFrete[r]??r),weight:40},{label:"C\xD3DIGO ANTT",value:u(s?.RNTC),weight:22},{label:"PLACA DO VE\xCDCULO",value:u(s?.placa),weight:22},{label:"UF",value:u(s?.UF),weight:10},{label:"CNPJ / CPF",value:u(this.format.document(i?.CNPJ,i?.CPF)),weight:34}]),p+=f,this.fields.row(e,p,n,f,[{label:"ENDERE\xC7O",value:u(i?.xEnder),weight:102},{label:"MUNIC\xCDPIO",value:u(i?.xMun),weight:44},{label:"UF",value:u(i?.UF),weight:10},{label:"INSCRI\xC7\xC3O ESTADUAL",value:u(i?.IE),weight:34}]),p+=f,this.fields.row(e,p,n,f,[{label:"QUANTIDADE",value:u(this.sum("qVol",0)),weight:15,align:"right"},{label:"ESP\xC9CIE",value:u(c?.esp),weight:42.5},{label:"MARCA",value:u(c?.marca),weight:42.5},{label:"NUMERA\xC7\xC3O",value:u(c?.nVol),weight:35},{label:"PESO BRUTO",value:u(this.sum("pesoB",3)),weight:37.5,align:"right"},{label:"PESO L\xCDQUIDO",value:u(this.sum("pesoL",3)),weight:37.5,align:"right"}])}},yp=class extends Dc{static{a(this,"ConditionalTransport")}conditional=!0};import{Decimal as vN}from"nfets/core";var or=class{static{a(this,"DetReader")}det;constructor(e){this.det=e}get icms(){let e=this.det.imposto?.ICMS;if(!e)return{};let[t]=Object.values(e);return t??{}}get cstCode(){let{CST:e,CSOSN:t}=this.icms;return t??e??""}cst(e=""){let{orig:t}=this.icms,n=this.cstCode;return t===void 0?n:`${t}${e}${n}`}get ipi(){return this.det.imposto?.IPI?.IPITrib}get hasTaxUnit(){let{uTrib:e,qTrib:t,vUnCom:n,vUnTrib:r}=this.det.prod,i=a(s=>new vN(s??0).toFixed(2),"fixed");return!!e&&!!t&&i(n)!==i(r)}};var Sp=class{static{a(this,"ItemDescription")}context;maxAdditionalInfo=500;icmsTaxes=[["vBCFCP"," BcFcp=%s"],["pFCP"," pFcp=%s%"],["vFCP"," vFcp=%s"],["pRedBC"," pRedBC=%s%"],["pMVAST"," IVA/MVA=%s%"],["pICMSST"," pIcmsSt=%s%"],["vBCST"," BcIcmsSt=%s"],["vICMSST"," vIcmsSt=%s"],["vBCFCPST"," BcFcpSt=%s"],["pFCPST"," pFcpSt=%s%"],["vFCPST"," vFcpSt=%s"],["vBCSTRet"," Retido na compra: BASE ICMS ST=%s"],["pST"," pSt=%s"],["vICMSSubstituto"," vICMSSubstituto=%s"],["vICMSSTRet"," VALOR ICMS ST=%s"]];icmsUfDestTaxes=[["pFCPUFDest"," pFCPUFDest=%s%"],["pICMSUFDest"," pICMSUFDest=%s%"],["pICMSInterPart"," pICMSInterPart=%s%"],["vFCPUFDest"," vFCPUFDest=%s"],["vICMSUFDest"," vICMSUFDest=%s"],["vICMSUFRemet"," vICMSUFRemet=%s"]];operations={0:"OUTROS",1:"VENDA CONCESSION\xC1RIA",2:"FATURAMENTO DIRETO CONSUMIDOR",3:"VENDA DIRETA GDE CONSUMIDORES"};fuels={1:"ALCOOL",2:"GASOLINA",3:"DIESEL",4:"GASOGENIO",5:"GAS METANO",6:"ELETRICO/INTERNA",7:"ELETRICO/EXTERNA",8:"GASOL/GNC",9:"ALCOOL/GNC",10:"DIESEL/GNC",11:"OBSERVACAO",12:"ALCOOL/GNV",13:"GASOLINA/GNV",14:"DIESEL/GNV",15:"GNV",16:"ALCOOL/GASOLINA",17:"GASOLINA/ALCOOL/GNV",18:"GASOLINA/ELETRICO"};species={1:"PASSAGEIRO",2:"CARGA",3:"MISTO",4:"CORRIDA",5:"TRACAO",6:"ESPECIAL",7:"COLECAO"};vehicles={2:"CICLOMOTO",3:"MOTONETA",4:"MOTOCICLO",5:"TRICICLO",6:"AUTOM\xD3VEL",7:"MICRO-\xD4NIBUS",8:"\xD4NIBUS",10:"REBOQUE",11:"SEMIRREBOQUE",13:"CAMIONETA",14:"CAMINH\xC3O",17:"CAMINH\xC3O TRATOR",18:"TRATOR RODAS",19:"TRATOR ESTEIRAS",20:"TRATOR MISTO",21:"QUADRICICLO",22:"ESP/\xD4NIBUS",23:"CAMINHONETE",24:"CARGA/CAM",25:"UTILIT\xC1RIO",26:"MOTOR-CASA"};colors={1:"AMARELO",2:"AZUL",3:"BEGE",4:"BRANCA",5:"CINZA",6:"DOURADA",7:"GRENA",8:"LARANJA",9:"MARROM",10:"PRATA",11:"PRETA",12:"ROSA",13:"ROXA",14:"VERDE",15:"VERMELHA",16:"FANTASIA"};conditions={1:"ACABADO",2:"INACABADO",3:"SEMI-ACABADO"};restrictions={0:"N\xC3O H\xC1",1:"ALIENA\xC7\xC3O FIDUCI\xC1RIA",2:"ARRENDAMENTO MERCANTIL",3:"RESERVA DE DOM\xCDNIO",4:"PENHOR DE VE\xCDCULOS",9:"OUTRAS"};weaponTypes={0:"USO PERMITIDO",1:"USO RESTRITO"};constructor(e){this.context=e}get options(){return this.context.options}tax(e,t){return e===void 0||e===""||e==="0"?"":t.replace("%s",this.context.format.decimal(e,2))}taxes(e){let t=new or(e).icms,n=e.imposto?.ICMSUFDest;return[...this.icmsTaxes.map(([r,i])=>this.tax(t[r],i)),...n?this.icmsUfDestTaxes.map(([r,i])=>this.tax(n[r],i)):[]].join("")}infAdProd(e){return(e.infAdProd??"").substring(0,this.maxAdditionalInfo).trim()}additionalInfo(e){let t=this.infAdProd(e);return t?`${t} `:""}anvisa(e){let t=e.prod.med?.cProdANVISA;return!this.options.showItemBatch||!t?"":`ANVISA: ${t}`}batch(e){let t=this.context.asArray(e.prod.rastro);if(!this.options.showItemBatch||t.length!==1)return"";let[{nLote:n,qLote:r,dFab:i,dVal:s}]=t,{format:c}=this.context;return[n?` Lote: ${n}`:"",r?` Quant: ${r.toString()}`:"",` Fab: ${c.plainDate(i)}`,` Val: ${c.plainDate(s)} `].join("")}fci(e){return e.prod.nFCI?` FCI:${e.prod.nFCI}`:""}label(e,t){return`${t}-${e[Number.parseInt(t,10)]??""}`}lines(e){return e.map(([t,n])=>`${t}: ${n??""}`).join(`
|
|
27
|
+
Folha ${c}/${f}`,e,t+R(20.5),n,R(11),{size:8,bold:!0,align:"center"})}drawAccessKey(e,t,n){let r=this.fields.padding,o=this.format.accessKeyDigits();this.fields.rect(e,t,n,this.barcodeHeight),o.length===44&&Ra.draw(this.builder,o,e+R(3),t+R(1.5),n-R(6),this.barcodeHeight-R(3));let s=t+this.barcodeHeight;this.fields.box(e,s,n,this.fields.rowHeight,{label:"CHAVE DE ACESSO",value:this.format.accessKey(),align:"center"});let c=s+this.fields.rowHeight,f=this.topHeight-this.barcodeHeight-this.fields.rowHeight;this.fields.rect(e,c,n,f),this.fields.text(`Consulta de autenticidade no portal nacional da NF-e
|
|
28
|
+
www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora`,e+r,c+R(2.5),n-2*r,f-R(2.5),{size:7.5,align:"center"})}protocolCell(){let e=this.context.protNFe?.infProt;if(e)return{label:"PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",value:`${e.nProt} - ${this.format.dateTime(e.dhRecbto)}`,weight:86};let{dhCont:t}=this.infNFe.ide;return{label:"PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",value:this.context.status.isContingency?`EMITIDA EM CONTING\xCANCIA ${this.format.dateTime(t)}`.trim():"",weight:86}}draw({x:e,y:t,width:n}){this.drawEmit(e,t),this.drawDanfe(e+this.emitWidth,t);let r=e+this.emitWidth+this.danfeWidth;this.drawAccessKey(r,t,e+n-r);let o=t+this.topHeight;this.fields.row(e,o,n,this.fields.rowHeight,[{label:"NATUREZA DA OPERA\xC7\xC3O",value:this.infNFe.ide.natOp,weight:114},this.protocolCell()]);for(let s of this.registrationRows())o+=this.fields.rowHeight,this.fields.row(e,o,n,this.fields.rowHeight,s)}};var Fa=class extends re{static{a(this,"Recipient")}title="DESTINAT\xC1RIO / REMETENTE";height(){return this.fields.titleHeight+3*this.fields.rowHeight}draw({x:e,y:t,width:n}){let{dest:r,ide:o}=this.infNFe,s=r?.enderDest,c=this.fields.rowHeight,f=o.dhSaiEnt,l=t+this.fields.title(e,t,n,this.title),u=[s?.xLgr,s?.nro].filter(Boolean).join(", "),h=s?.xCpl?`${u} - ${s.xCpl}`:u,g=r?.idEstrangeiro??this.format.document(r?.CNPJ,r?.CPF);this.fields.row(e,l,n,c,[{label:"NOME / RAZ\xC3O SOCIAL",value:this.format.blank(r?.xNome),weight:120},{label:"CNPJ / CPF",value:this.format.blank(g),weight:45},{label:"DATA DA EMISS\xC3O",value:this.format.blank(this.format.date(o.dhEmi)),weight:35}]),l+=c,this.fields.row(e,l,n,c,[{label:"ENDERE\xC7O",value:this.format.blank(h),weight:105},{label:"BAIRRO / DISTRITO",value:this.format.blank(s?.xBairro),weight:38},{label:"CEP",value:this.format.blank(this.format.cep(s?.CEP)),weight:22},{label:"DATA DA SA\xCDDA/ENTRADA",value:this.format.blank(this.format.date(f)),weight:35}]),l+=c,this.fields.row(e,l,n,c,[{label:"MUNIC\xCDPIO",value:this.format.blank(s?.xMun),weight:70},{label:"FONE / FAX",value:this.format.blank(this.format.phone(s?.fone)),weight:35},{label:"UF",value:this.format.blank(s?.UF),weight:10},{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(r?.IE),weight:50},{label:"HORA DA SA\xCDDA/ENTRADA",value:this.format.blank(this.format.time(f)),weight:35}])}},lr=class extends re{static{a(this,"Location")}kind;constructor(e,t){super(e),this.kind=t}get local(){return this.infNFe[this.kind]}get title(){return this.kind==="retirada"?"INFORMA\xC7\xD5ES DO LOCAL DE RETIRADA":"INFORMA\xC7\xD5ES DO LOCAL DE ENTREGA"}visible(){return!!this.local}height(){return this.fields.titleHeight+2*this.fields.rowHeight}draw({x:e,y:t,width:n}){let r=this.local;if(!r)return;let o=this.fields.rowHeight,s=t+this.fields.title(e,t,n,this.title),c=r.xCpl?` - ${r.xCpl}`:"";this.fields.row(e,s,n,o,[{label:"NOME / RAZ\xC3O SOCIAL",value:this.format.blank(r.xNome),weight:120},{label:"CNPJ / CPF",value:this.format.blank(this.format.document(r.CNPJ,r.CPF)),weight:40},{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(r.IE),weight:40}]),s+=o,this.fields.row(e,s,n,o,[{label:"ENDERE\xC7O",value:this.format.blank(`${r.xLgr}, ${r.nro}${c}`),weight:80},{label:"BAIRRO / DISTRITO",value:this.format.blank(r.xBairro),weight:40},{label:"MUNIC\xCDPIO",value:this.format.blank(r.xMun),weight:40},{label:"UF",value:this.format.blank(r.UF),weight:10},{label:"CEP",value:this.format.blank(this.format.cep(r.CEP)),weight:30}])}};var xa=class extends re{static{a(this,"Invoices")}title="FATURA / DUPLICATAS";perRow=5;valueSize=6;limit=21;cellHeight=R(10);get duplicates(){return this.context.asArray(this.infNFe.cobr?.dup).slice(0,this.limit)}visible(){let{cobr:e}=this.infNFe;return!!e&&(this.duplicates.length>0||!!e.fat)}rows(){let e=this.duplicates.length;return e?this.fields.gridRows(e,this.perRow):1}height(){return this.duplicates.length?this.fields.titleHeight+this.rows()*this.cellHeight:this.fields.titleHeight+this.fields.rowHeight}drawFat(e,t,n){let r=this.infNFe.cobr?.fat;this.fields.row(e,t,n,this.fields.rowHeight,[{label:"N\xDAMERO DA FATURA",value:r?.nFat,weight:1},{label:"VALOR ORIGINAL",value:this.format.currency(r?.vOrig),weight:1,align:"right"},{label:"VALOR DO DESCONTO",value:this.format.currency(r?.vDesc),weight:1,align:"right"},{label:"VALOR L\xCDQUIDO",value:this.format.currency(r?.vLiq),weight:1,align:"right"}])}draw({x:e,y:t,width:n}){let r=t+this.fields.title(e,t,n,this.title),o=this.duplicates;if(!o.length)return this.drawFat(e,r,n);let s=this.fields.padding,c=n/this.perRow;o.forEach((f,l)=>{let u=Math.floor(l/this.perRow),h=l%this.perRow,g=e+h*c,y=r+u*this.cellHeight;this.fields.rect(g,y,c,this.cellHeight);let S=[["Num.",f.nDup??""],["Venc.",this.format.plainDate(f.dVenc)],["Valor",`R$ ${this.format.currency(f.vDup)}`]],N=this.valueSize;this.builder.font(this.context.defaults.font).fontSize(N);let D=this.builder.currentLineHeight(!0),z=g+c-s;S.forEach(([be,_],Q)=>{let Re=y+s+Q*D,Kt=this.fields.widthOf(be,{size:N});this.fields.text(be,g+s,Re,Kt,D,{size:N});let Ai=g+s+Kt+2;this.fields.text(_,Ai,Re,Math.max(z-Ai,1),D,{size:N,align:"right",lineBreak:!1,ellipsis:!0})})})}};var Cl=class extends re{static{a(this,"LegacyTaxes")}title="C\xC1LCULO DO IMPOSTO";perRow=8;cell(e,t){return{label:e,value:this.format.currency(t),align:"right"}}cells(){let e=this.infNFe.total.ICMSTot;return[this.cell("BASE DE C\xC1LC. DO ICMS",e.vBC),this.cell("VALOR DO ICMS",e.vICMS),this.cell("BASE DE C\xC1LC. ICMS S.T.",e.vBCST),this.cell("VALOR DO ICMS SUBST.",e.vST),this.cell("V. IMP. IMPORTA\xC7\xC3O",e.vII),this.cell("V. ICMS UF REMET.",e.vICMSUFRemet),this.cell("V. FCP UF DEST.",e.vFCPUFDest),this.cell("V. TOTAL PRODUTOS",e.vProd),this.cell("VALOR DO FRETE",e.vFrete),this.cell("VALOR DO SEGURO",e.vSeg),this.cell("DESCONTO",e.vDesc),this.cell("OUTRAS DESPESAS",e.vOutro),this.cell("VALOR TOTAL IPI",e.vIPI),this.cell("V. ICMS UF DEST.",e.vICMSUFDest),this.cell("V. TOT. TRIB.",e.vTotTrib),this.cell("V. TOTAL DA NOTA",e.vNF)]}height(){let e=this.fields.gridRows(this.cells().length,this.perRow);return this.fields.titleHeight+e*this.fields.rowHeight}draw({x:e,y:t,width:n}){let r=t+this.fields.title(e,t,n,this.title);this.fields.grid(e,r,n,this.cells(),this.perRow)}};import{Decimal as xN}from"nfets/core";var jc=class extends re{static{a(this,"Transport")}title="TRANSPORTADOR / VOLUMES TRANSPORTADOS";conditional=!1;modFrete={0:"0-Por conta do remetente",1:"1-Por conta do destinat\xE1rio",2:"2-Por conta de terceiros",3:"3-Pr\xF3prio por conta do remetente",4:"4-Pr\xF3prio por conta do destinat\xE1rio",9:"9-Sem transporte"};get volumes(){return this.context.asArray(this.infNFe.transp.vol)}visible(){if(!this.conditional)return!0;let{transporta:e,veicTransp:t}=this.infNFe.transp;return!!e||!!t||this.volumes.length>0}height(){return this.fields.titleHeight+3*this.fields.rowHeight}sum(e,t){let n=this.volumes.map(o=>o[e]).filter(o=>o!==void 0&&o!=="");if(!n.length)return"";let r=n.reduce((o,s)=>new xN(o).plus(s??0).toString(),"0");return this.format.decimal(r,t)}draw({x:e,y:t,width:n}){let{modFrete:r,transporta:o,veicTransp:s}=this.infNFe.transp,c=this.volumes.at(0),f=this.fields.rowHeight,l=t+this.fields.title(e,t,n,this.title),u=a(h=>this.format.blank(h),"blank");this.fields.row(e,l,n,f,[{label:"NOME / RAZ\xC3O SOCIAL",value:u(o?.xNome),weight:62},{label:"FRETE",value:u(this.modFrete[r]??r),weight:40},{label:"C\xD3DIGO ANTT",value:u(s?.RNTC),weight:22},{label:"PLACA DO VE\xCDCULO",value:u(s?.placa),weight:22},{label:"UF",value:u(s?.UF),weight:10},{label:"CNPJ / CPF",value:u(this.format.document(o?.CNPJ,o?.CPF)),weight:34}]),l+=f,this.fields.row(e,l,n,f,[{label:"ENDERE\xC7O",value:u(o?.xEnder),weight:102},{label:"MUNIC\xCDPIO",value:u(o?.xMun),weight:44},{label:"UF",value:u(o?.UF),weight:10},{label:"INSCRI\xC7\xC3O ESTADUAL",value:u(o?.IE),weight:34}]),l+=f,this.fields.row(e,l,n,f,[{label:"QUANTIDADE",value:u(this.sum("qVol",0)),weight:15,align:"right"},{label:"ESP\xC9CIE",value:u(c?.esp),weight:42.5},{label:"MARCA",value:u(c?.marca),weight:42.5},{label:"NUMERA\xC7\xC3O",value:u(c?.nVol),weight:35},{label:"PESO BRUTO",value:u(this.sum("pesoB",3)),weight:37.5,align:"right"},{label:"PESO L\xCDQUIDO",value:u(this.sum("pesoL",3)),weight:37.5,align:"right"}])}},bl=class extends jc{static{a(this,"ConditionalTransport")}conditional=!0};import{Decimal as DN}from"nfets/core";var pr=class{static{a(this,"DetReader")}det;constructor(e){this.det=e}get icms(){let e=this.det.imposto?.ICMS;if(!e)return{};let[t]=Object.values(e);return t??{}}get cstCode(){let{CST:e,CSOSN:t}=this.icms;return t??e??""}cst(e=""){let{orig:t}=this.icms,n=this.cstCode;return t===void 0?n:`${t}${e}${n}`}get ipi(){return this.det.imposto?.IPI?.IPITrib}get hasTaxUnit(){let{uTrib:e,qTrib:t,vUnCom:n,vUnTrib:r}=this.det.prod,o=a(s=>new DN(s??0).toFixed(2),"fixed");return!!e&&!!t&&o(n)!==o(r)}};var Nl=class{static{a(this,"ItemDescription")}context;maxAdditionalInfo=500;icmsTaxes=[["vBCFCP"," BcFcp=%s"],["pFCP"," pFcp=%s%"],["vFCP"," vFcp=%s"],["pRedBC"," pRedBC=%s%"],["pMVAST"," IVA/MVA=%s%"],["pICMSST"," pIcmsSt=%s%"],["vBCST"," BcIcmsSt=%s"],["vICMSST"," vIcmsSt=%s"],["vBCFCPST"," BcFcpSt=%s"],["pFCPST"," pFcpSt=%s%"],["vFCPST"," vFcpSt=%s"],["vBCSTRet"," Retido na compra: BASE ICMS ST=%s"],["pST"," pSt=%s"],["vICMSSubstituto"," vICMSSubstituto=%s"],["vICMSSTRet"," VALOR ICMS ST=%s"]];icmsUfDestTaxes=[["pFCPUFDest"," pFCPUFDest=%s%"],["pICMSUFDest"," pICMSUFDest=%s%"],["pICMSInterPart"," pICMSInterPart=%s%"],["vFCPUFDest"," vFCPUFDest=%s"],["vICMSUFDest"," vICMSUFDest=%s"],["vICMSUFRemet"," vICMSUFRemet=%s"]];operations={0:"OUTROS",1:"VENDA CONCESSION\xC1RIA",2:"FATURAMENTO DIRETO CONSUMIDOR",3:"VENDA DIRETA GDE CONSUMIDORES"};fuels={1:"ALCOOL",2:"GASOLINA",3:"DIESEL",4:"GASOGENIO",5:"GAS METANO",6:"ELETRICO/INTERNA",7:"ELETRICO/EXTERNA",8:"GASOL/GNC",9:"ALCOOL/GNC",10:"DIESEL/GNC",11:"OBSERVACAO",12:"ALCOOL/GNV",13:"GASOLINA/GNV",14:"DIESEL/GNV",15:"GNV",16:"ALCOOL/GASOLINA",17:"GASOLINA/ALCOOL/GNV",18:"GASOLINA/ELETRICO"};species={1:"PASSAGEIRO",2:"CARGA",3:"MISTO",4:"CORRIDA",5:"TRACAO",6:"ESPECIAL",7:"COLECAO"};vehicles={2:"CICLOMOTO",3:"MOTONETA",4:"MOTOCICLO",5:"TRICICLO",6:"AUTOM\xD3VEL",7:"MICRO-\xD4NIBUS",8:"\xD4NIBUS",10:"REBOQUE",11:"SEMIRREBOQUE",13:"CAMIONETA",14:"CAMINH\xC3O",17:"CAMINH\xC3O TRATOR",18:"TRATOR RODAS",19:"TRATOR ESTEIRAS",20:"TRATOR MISTO",21:"QUADRICICLO",22:"ESP/\xD4NIBUS",23:"CAMINHONETE",24:"CARGA/CAM",25:"UTILIT\xC1RIO",26:"MOTOR-CASA"};colors={1:"AMARELO",2:"AZUL",3:"BEGE",4:"BRANCA",5:"CINZA",6:"DOURADA",7:"GRENA",8:"LARANJA",9:"MARROM",10:"PRATA",11:"PRETA",12:"ROSA",13:"ROXA",14:"VERDE",15:"VERMELHA",16:"FANTASIA"};conditions={1:"ACABADO",2:"INACABADO",3:"SEMI-ACABADO"};restrictions={0:"N\xC3O H\xC1",1:"ALIENA\xC7\xC3O FIDUCI\xC1RIA",2:"ARRENDAMENTO MERCANTIL",3:"RESERVA DE DOM\xCDNIO",4:"PENHOR DE VE\xCDCULOS",9:"OUTRAS"};weaponTypes={0:"USO PERMITIDO",1:"USO RESTRITO"};constructor(e){this.context=e}get options(){return this.context.options}tax(e,t){return e===void 0||e===""||e==="0"?"":t.replace("%s",this.context.format.decimal(e,2))}taxes(e){let t=new pr(e).icms,n=e.imposto?.ICMSUFDest;return[...this.icmsTaxes.map(([r,o])=>this.tax(t[r],o)),...n?this.icmsUfDestTaxes.map(([r,o])=>this.tax(n[r],o)):[]].join("")}infAdProd(e){return(e.infAdProd??"").substring(0,this.maxAdditionalInfo).trim()}additionalInfo(e){let t=this.infAdProd(e);return t?`${t} `:""}anvisa(e){let t=e.prod.med?.cProdANVISA;return!this.options.showItemBatch||!t?"":`ANVISA: ${t}`}batch(e){let t=this.context.asArray(e.prod.rastro);if(!this.options.showItemBatch||t.length!==1)return"";let[{nLote:n,qLote:r,dFab:o,dVal:s}]=t,{format:c}=this.context;return[n?` Lote: ${n}`:"",r?` Quant: ${r.toString()}`:"",` Fab: ${c.plainDate(o)}`,` Val: ${c.plainDate(s)} `].join("")}fci(e){return e.prod.nFCI?` FCI:${e.prod.nFCI}`:""}label(e,t){return`${t}-${e[Number.parseInt(t,10)]??""}`}lines(e){return e.map(([t,n])=>`${t}: ${n??""}`).join(`
|
|
29
29
|
`)}vehicle(e){let t=e.prod.veicProd;return t?this.lines([["TIPO DA OPERA\xC7\xC3O",this.label(this.operations,t.tpOp)],["CHASSI",t.chassi],["C\xD3DIGO DA COR",t.cCor],["NOME DA COR",t.xCor],["POT\xCANCIA DO MOTOR",t.pot],["CILINDRADAS",t.cilin],["PESO L\xCDQUIDO",t.pesoL],["PESO BRUTO",t.pesoB],["N\xDAMERO DE S\xC9RIE",t.nSerie],["COMBUST\xCDVEL",this.label(this.fuels,t.tpComb)],["N\xDAMERO DO MOTOR",t.nMotor],["CAP. M\xC1X. TRA\xC7\xC3O",t.CMT],["DIST\xC2NCIA ENTRE EIXOS",t.dist],["ANO DO MODELO",t.anoMod],["ANO DE FABRICA\xC7\xC3O",t.anoFab],["TIPO DE PINTURA",t.tpPint],["TIPO DE VE\xCDCULO",this.label(this.vehicles,t.tpVeic)],["ESP\xC9CIE DO VE\xCDCULO",this.label(this.species,t.espVeic)],["VIN (CHASSI)",t.VIN==="N"?"N-NORMAL":"R-REMARCADO"],["CONDI\xC7\xC3O DO VE\xCDCULO",this.label(this.conditions,t.condVeic)],["C\xD3DIGO MARCA MODELO",t.cMod],["C\xD3DIGO COR DENATRAN",this.label(this.colors,t.cCorDENATRAN)],["CAPACIDADE M\xC1XIMA DE LOTA\xC7\xC3O",t.lota],["RESTRI\xC7\xC3O",`${t.tpRest}-${this.restrictions[t.tpRest]??""}`]]):""}weapons(e){return this.context.asArray(e.prod.arma).map(t=>this.lines([["TIPO DA ARMA",this.label(this.weaponTypes,t.tpArma)],["N\xDAMERO DE S\xC9RIE DA ARMA",t.nSerie],["N\xDAMERO DE S\xC9RIE DO CANO",t.nCano],["DESCRI\xC7\xC3O DA ARMA",t.descr]])).join(`
|
|
30
30
|
`)}productName(e){let t=e.prod.xProd;return this.options.breakItemDescription&&(t=t.replaceAll(";",`
|
|
31
31
|
`)),this.options.showItemOrderNumber&&e.prod.nItemPed&&(t+=` (ITEM ${e.prod.nItemPed})`),t}narrative(e){let t=this.options.showItemComplement?this.batch(e)+this.taxes(e)+this.fci(e):"";return[this.anvisa(e),t].filter(Boolean).join("")}extras(e){let t=[this.narrative(e).trim(),this.vehicle(e),this.weapons(e)].filter(Boolean).join(`
|
|
@@ -34,7 +34,12 @@ www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora`,e+r,c+R(2.5),n-2
|
|
|
34
34
|
`);return this.options.breakItemDescription&&(r=r.replaceAll(";",`
|
|
35
35
|
`)),r}build(e){let t=[this.productName(e),this.details(e)].filter(Boolean).join(`
|
|
36
36
|
`);return this.options.breakItemDescription&&(t=t.replaceAll(";",`
|
|
37
|
-
`)),t}};var
|
|
38
|
-
${y}`:
|
|
37
|
+
`)),t}};var Da=class extends re{static{a(this,"DanfeItemsBlock")}description=new Nl(this.context);slice={items:[],isFirst:!0,isLast:!0};boxHeight=0;title="DADOS DOS PRODUTOS / SERVI\xC7OS";fontSize=6;headerFontSize=5;get cellPadding(){return this.fields.padding}columnLabelColor="black";minFontSize=6;pairGap=5;widths(){return this.fields.widths(this.context.contentWidth,this.columns.map(e=>e.weight))}labelsHeight(){let e=this.widths(),t=this.cellPadding,n=this.columns.map((r,o)=>this.fields.measure(r.label,e[o]-2*t,{size:this.headerFontSize,bold:!0}));return Math.max(...n)+2*t}headerHeight(){return this.fields.titleHeight+this.labelsHeight()}isRuns(e){return Array.isArray(e)}isPairs(e){return typeof e!="string"&&!Array.isArray(e)}lineHeight(){return this.builder.font(this.context.defaults.font).fontSize(this.fontSize),this.builder.currentLineHeight(!0)}fitSize(e,t,n){let r=Math.max(n,this.minFontSize),o=Math.max(t-.5,1);return this.fields.widthOf(e,{size:r})<=o?r:this.minFontSize}pairColumns(e,t){let n=e.columns??1;if(n<=1)return 1;let r=(t-this.pairGap*(n-1))/n,o={size:this.fontSize};return e.pairs.every(([c,f])=>this.fields.widthOf(c,o)+this.fields.widthOf(f,o)<=r)?n:1}cellHeight(e,t){if(this.isPairs(e)){let n=this.pairColumns(e,t);return Math.ceil(e.pairs.length/n)*this.lineHeight()}return this.isRuns(e)?e.reduce((n,r)=>{let o=r.blankBefore?this.lineHeight():0;if(!r.text)return n+o;if(!r.fit)return n+o+this.fields.measure(r.text,t,{size:this.fontSize});let s=this.fitSize(r.text,t,this.fontSize);return this.builder.font(this.context.defaults.font).fontSize(s),n+o+this.builder.currentLineHeight(!0)},0):this.fields.measure(e,t,{size:this.fontSize})}itemHeight(e){let t=this.widths(),n=this.cellPadding,r=this.cells(e).map((o,s)=>this.cellHeight(o,t[s]-2*n));return Math.max(this.lineHeight(),...r)+2*n}height(){return this.boxHeight}drawLabels(e,t,n){let r=this.widths(),o=this.cellPadding,s=e;this.columns.forEach((c,f)=>{this.fields.text(c.label,s+o,t+o,r[f]-2*o,n-2*o,{size:this.headerFontSize,bold:!0,align:"center",color:this.columnLabelColor}),s+=r[f]})}drawColumnLines(e,t,n){let r=this.widths(),o=e;r.slice(0,-1).forEach(s=>{o+=s,this.builder.moveTo(o,t).lineTo(o,n).stroke()})}drawPairs(e,t,n,r){let o=this.lineHeight(),s=this.pairColumns(e,r),c=this.pairGap,f=(r-c*(s-1))/s,l=e.muted===!1?"black":this.fields.muted;e.pairs.forEach(([u,h],g)=>{let y=n+Math.floor(g/s)*o,S=t+g%s*(f+c),N={size:this.fontSize},D=this.fields.widthOf(h,N),z=Math.max(f-D,0),be=Math.min(this.fields.widthOf(u,N),z),_=this.fields.widthOf(".",N),Q=z-be,Re=_>0&&Q>_?".".repeat(Math.floor(Q/_)):"";this.fields.text(u,S,y,be+.5,o,{...N,color:l}),Re&&this.fields.text(Re,S+be,y,Q,o,{...N,color:l}),this.fields.text(h,S,y,f,o,{...N,align:"right"})})}drawRuns(e,t,n,r,o){let s=n;e.forEach(c=>{if(c.blankBefore&&(s+=this.lineHeight()),!c.text)return;let f=c.fit?this.fitSize(c.text,r,this.fontSize):this.fontSize;this.builder.font(this.context.defaults.font).fontSize(f);let l=c.fit?this.builder.currentLineHeight(!0):this.fields.measure(c.text,r,{size:f});this.fields.text(c.text,t,s,r,l,{size:f,align:c.align??o,color:c.color,lineBreak:c.fit?!1:void 0,ellipsis:c.fit?!1:void 0}),s+=l})}drawItem(e,t,n,r){let o=this.widths(),s=this.columns,c=this.cellPadding,f=t;this.cells(e).forEach((l,u)=>{let h=o[u]-2*c,g=s[u].align??"left";this.isPairs(l)?this.drawPairs(l,f+c,n+c,h):this.isRuns(l)?this.drawRuns(l,f+c,n+c,h,g):this.fields.text(l,f+c,n+c,h,r-2*c,{size:this.fontSize,align:g}),f+=o[u]})}drawSeparator(e,t,n){this.builder.save().lineWidth(.3).dash(1,{space:1.5}).moveTo(e,t).lineTo(e+n,t).stroke().undash().restore()}draw({x:e,y:t,width:n}){let r=this.fields.title(e,t,n,this.title),o=t+r,s=this.labelsHeight(),c=t+this.boxHeight;this.fields.rect(e,o,n,s),this.drawLabels(e,o,s);let f=o+s;this.fields.rect(e,f,n,c-f),this.context.status.watermark(e,f,n,c-f),this.builder.lineWidth(.5),this.drawColumnLines(e,o,c);let l=f;this.slice.items.forEach((u,h)=>{let g=this.itemHeight(u);h>0&&this.drawSeparator(e,l,n),this.drawItem(u,e,l,g),l+=g})}};var Il=class extends Da{static{a(this,"LegacyItems")}get isSimples(){return["1","4"].includes(this.infNFe.emit.CRT)}get columns(){return[{label:"C\xD3DIGO PRODUTO",weight:17},{label:"DESCRI\xC7\xC3O DO PRODUTO / SERVI\xC7O",weight:50},{label:"NCM/SH",weight:12,align:"center"},{label:this.isSimples?"O/CSOSN":"O/CST",weight:8,align:"center"},{label:"CFOP",weight:7,align:"center"},{label:"UN",weight:7,align:"center"},{label:"QUANT",weight:13,align:"right"},{label:"VALOR UNIT",weight:13,align:"right"},{label:"VALOR TOTAL",weight:13,align:"right"},{label:"VALOR DESC",weight:11,align:"right"},{label:"B.C\xC1LC ICMS",weight:12,align:"right"},{label:"VALOR ICMS",weight:11,align:"right"},{label:"VALOR IPI",weight:10,align:"right"},{label:"AL\xCDQ. ICMS",weight:8,align:"right"},{label:"AL\xCDQ. IPI",weight:8,align:"right"}]}cells(e){let t=new pr(e),{prod:n}=e,{qComDecimals:r,vUnComDecimals:o}=this.context.options,s=t.icms,c=t.ipi,f=a(g=>this.format.decimal(g,2,r),"quantity"),l=a(g=>this.format.decimal(g,2,o),"unitValue"),u=!this.context.options.hideTaxUnit&&t.hasTaxUnit,h=a((g,y)=>u?`${g}
|
|
38
|
+
${y}`:g,"withTaxUnit");return[n.cProd,this.description.build(e),n.NCM,t.cst("/"),n.CFOP,h(n.uCom,n.uTrib),h(f(n.qCom),f(n.qTrib)),h(l(n.vUnCom),l(n.vUnTrib)),this.format.currency(n.vProd),this.format.currency(n.vDesc),this.format.currency(s.vBC),this.format.currency(s.vICMS),this.format.currency(c?.vIPI),this.format.decimal(s.pICMS),this.format.decimal(c?.pIPI)]}};var Aa=class extends re{static{a(this,"Issqn")}title="C\xC1LCULO DO ISSQN";visible(){return this.format.isNotEmpty(this.infNFe.total.ISSQNtot?.vServ)}height(){return this.fields.titleHeight+this.fields.rowHeight}draw({x:e,y:t,width:n}){let{ISSQNtot:r}=this.infNFe.total,o=t+this.fields.title(e,t,n,this.title);this.fields.row(e,o,n,this.fields.rowHeight,[{label:"INSCRI\xC7\xC3O MUNICIPAL",value:this.infNFe.emit.IM,weight:1},{label:"VALOR TOTAL DOS SERVI\xC7OS",value:this.format.currency(r?.vServ),weight:1,align:"right"},{label:"BASE DE C\xC1LCULO DO ISSQN",value:this.format.currency(r?.vBC),weight:1,align:"right"},{label:"VALOR DO ISSQN",value:this.format.currency(r?.vISS),weight:1,align:"right"}])}};var Mv=kd(Xd(),1);var Rl=class{static{a(this,"DanfeQrCode")}context;svg;constructor(e){this.context=e}get content(){let e=this.context.data.infNFeSupl?.qrCode.trim();if(e)return e}async prepare(){let e=this.content;if(!e)return;let t=await Mv.toString(e,{margin:0,type:"svg",errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}});this.svg=await this.context.toolkit.parse(t)}draw(e,t,n){if(!this.svg)return;let[,,r,o]=this.svg.$.viewBox.split(" ").map(Number),s=this.context.asArray(this.svg.path),{builder:c}=this.context;c.save().translate(e,t).scale(n/r,n/o).lineWidth(1),s.forEach(f=>{c.path(f.$.d),f.$.fill&&c.fill(f.$.fill),f.$.stroke&&c.stroke(f.$.stroke)}),c.restore()}};var wa=class extends re{static{a(this,"AdditionalData")}title="DADOS ADICIONAIS";textSize=6.5;minHeight=R(22);maxHeight=R(70);qrWidth=R(32);withQrCode=!1;qrCode;constructor(e){super(e),this.qrCode=new Rl(e)}async prepare(){this.withQrCode&&await this.qrCode.prepare()}get hasQrCode(){return this.withQrCode&&!!this.qrCode.content}widths(){let e=this.context.contentWidth,t=this.withQrCode?this.qrWidth:0,n=this.hasQrCode?t:0,r=e*.66-t,o=e-r-n;return[r,o,n]}lines(){let{infAdic:e,ide:t,dest:n}=this.infNFe,r=[],o=this.format.sanitize(e?.infAdFisco);o&&r.push(`Inf. Fisco: ${o}`);let s=this.format.sanitize(e?.infCpl).replace(/;/g,`
|
|
39
39
|
`);s&&r.push(`Inf. Contribuinte: ${s}`);for(let f of this.context.asArray(e?.obsCont))r.push(`${f.xCampo}: ${f.xTexto}`);this.context.status.isContingency&&t.dhCont&&r.push(`Emitida em conting\xEAncia em ${this.format.dateTime(t.dhCont)}. Justificativa: ${t.xJust??""}`.trim());let c=this.context.protNFe?.infProt.xMsg;return c&&r.push(`Mensagem SEFAZ: ${c}`),n?.email&&r.push(`Email do Destinat\xE1rio: ${n.email}`),r}get text(){return this.lines().join(`
|
|
40
|
-
`)}boxHeight(){let[e]=this.widths(),t=this.fields.padding,r=this.fields.measure(this.text,e-2*t,{size:this.textSize})+this.fields.labelHeight+3*t,
|
|
40
|
+
`)}boxHeight(){let[e]=this.widths(),t=this.fields.padding,r=this.fields.measure(this.text,e-2*t,{size:this.textSize})+this.fields.labelHeight+3*t,o=this.hasQrCode?this.qrWidth:0;return Math.min(Math.max(r,o,this.minHeight),this.maxHeight)}height(){return this.fields.titleHeight+this.boxHeight()}draw({x:e,y:t,width:n}){let r=this.fields.padding,o=t+this.fields.title(e,t,n,this.title),s=this.boxHeight(),[c,f,l]=this.widths();this.fields.box(e,o,c,s,{label:"INFORMA\xC7\xD5ES COMPLEMENTARES"});let u=o+r+this.fields.labelHeight+1;if(this.fields.text(this.text,e+r,u,c-2*r,o+s-u-r,{size:this.textSize}),this.fields.box(e+c,o,f,s,{label:"RESERVADO AO FISCO"}),this.hasQrCode){let h=e+c+f;this.fields.box(h,o,l,s,{label:"QR CODE"});let g=Math.min(l-4*r,s-this.fields.labelHeight-4*r);this.qrCode.draw(h+(l-g)/2,o+this.fields.labelHeight+2*r,g)}}};var Pa=class extends re{static{a(this,"Footer")}textSize=6;height(){return R(4)}draw({x:e,y:t,width:n}){let r=t+R(1),o=this.height()-R(1),s=n/2;this.fields.text(`Impresso em ${this.format.now()}`,e,r,s,o,{size:this.textSize});let{credits:c}=this.context.options;if(!c)return;this.builder.font(this.context.defaults.font).fontSize(this.textSize);let f=this.builder.currentLineHeight(!0);this.builder.text(c,{x:e+s,y:r,width:s,height:Math.max(o,f+.5),align:"right",ellipsis:!0,link:c===yo?"https://github.com/nfets/nfets":void 0})}};var jv=class extends Ia{static{a(this,"DanfeDefaultPdfDocument")}createBlocks(){return{canhoto:new Na(this),header:new Oa(this),firstPage:[new Fa(this),new lr(this,"retirada"),new lr(this,"entrega"),new xa(this),new Cl(this),new jc(this)],items:new Il(this),lastPage:[new Aa(this),new wa(this)],footer:new Pa(this)}}};var Ol=class i extends _n{static{a(this,"SimplificadoTipo2Header")}static current;static instance(e){return i.current??=new i(e)}end(){i.current=void 0}staticTexts(){let{left:e,right:t}=this.builder.pageMargins(),n=this.context.defaults.font;this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},r=>this.builder.font(`${n}-Bold`).text("DANFE Simplificado - Tipo 2",{...r,align:"center"}).font(n))}};var Fl=class i extends ba{static{a(this,"SimplificadoTipo2Footer")}static current;static instance(e){return i.current??=new i(e)}end(){i.current=void 0}get infAdFiscoText(){return(this.context.data.infNFe.infAdic?.infAdFisco?.replace(/;/g,`
|
|
41
|
+
`)??"").split(`
|
|
42
|
+
`).map(t=>t.trim().replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"")).filter(t=>t.length>0).join(`
|
|
43
|
+
`)}infAdFisco(){if(!this.infAdFiscoText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},n=>this.builder.text(this.infAdFiscoText,{...n,align:"center"}))}build(){return this.setup(),this.builder.moveDown(1),this.infAdFisco(),this.vTotTrib(),this.infCpl(),this.credits(),this.builder}height(){let e=super.height();if(!this.infAdFiscoText)return e;let{left:t,right:n}=this.builder.pageMargins();return e+this.builder.heightOfString(this.infAdFiscoText,{width:this.builder.pageWidth()-t-n,align:"center"})}};import{dateToolkit as AN,timezones as wN}from"nfets/core";var xl=class i extends Sa{static{a(this,"SimplificadoTipo2Protocols")}static current;static instance(e){return i.current??=new i(e)}end(){i.current=void 0}metadata(e){let{nNF:t,serie:n,dhEmi:r}=this.context.data.infNFe.ide,o=t.padStart(9,"0"),s=n.padStart(3,"0"),c=AN(r).tz(wN[this.context.data.infNFe.ide.cUF]).format("DD/MM/YYYY HH:mm:ss"),f=this.viaLabel,{left:l,right:u}=this.builder.pageMargins(),h=this.context.defaults.font,g=`${h}-Bold`;this.builder.row({left:e?.x??l,right:u},y=>this.builder.font(g).text(`NF-e n\xBA ${o} - s\xE9rie ${s} emitida em: ${c}${f}`,{...y,align:"center"}).font(h))}get viaLabel(){let{tpEmis:e}=this.context.data.infNFe.ide;if(e===K.Normal)return"";let t=this.context;return t.currentCopy?.()==="consumidor"?" Via consumidor":t.currentCopy?.()==="estabelecimento"?" Via estabelecimento":""}};var Dl=class i extends Ca{static{a(this,"SimplificadoTipo2RecipientAggregate")}static current;static instance(e){return i.current??=new i(e)}end(){i.current=void 0,this.builders.forEach(e=>e.end())}get builders(){return[ya.instance(this.context),xl.instance(this.context),mo.instance(this.context)]}};var Al=class i extends fr{static{a(this,"SimplificadoTipo2QrAggregate")}static current;static instance(e){return i.current??=new i(e)}end(){i.current=void 0,this.builders.forEach(e=>e.end())}get builders(){return[Dl.instance(this.context),va.instance(this.context),Fl.instance(this.context)]}};var Bv=class i extends Di{static{a(this,"DanfeSimplificadoTipo2PdfDocument")}via;currentCopy(){return this.via}constructor(e){super(e),this.builder.configure({info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfe, danfe simplificado tipo 2, sefaz",Title:"DANFE Simplificado Tipo 2",Subject:"DANFE Simplificado Tipo 2"}})}clone(e){let t=new i(e);return t.via=this.via,t}get isContingency(){return this.data.infNFe.ide.tpEmis!==K.Normal}async build(e){await this.parse(e);let t=this.isContingency?["consumidor","estabelecimento"]:[void 0];this.via=t[t.length-1],this.options.height=await this.getDynamicHeight(e,this.clone.bind(this)),this.apply();for(let n of t){this.via=n,this.builder.page();for(let r of this.builders)await r.build()}return this}get builders(){return[Ol.instance(this),mo.instance(this),Kn.instance(this),kn.instance(this),$n.instance(this),er.instance(this),tr.instance(this),Al.instance(this)]}};import{Environment as PN,dateToolkit as EN,timezones as zN}from"nfets/core";var gn=11,wl=class i{static{a(this,"SimplificadoBody")}context;static current;static instance(e){return i.current??=new i(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get font(){return this.context.defaults.font}get infNFe(){return this.context.data.infNFe}setup(){this.builder.font(this.font,this.context.options.textFontSize)}build(){return this.setup(),this.title(),this.context.showsItems()?this.reduced():this.label()}reduced(){return this.gap(.5),this.accessKey(),this.gap(),this.emitter(),this.gap(.35),this.notices(),this.gap(.35),this.operation(),this.gap(),this.recipient(),this.gap(),this.items(),this.gap(1.2),this.totals(),this.gap(1),this.tributes(),this.gap(.8),this.complementary(),this.credits(),this.builder}label(){return this.gap(.5),this.accessKey(),this.gap(.35),this.notices(),this.gap(.35),this.protocol(),this.gap(),this.emitter(),this.place(),this.gap(),this.identification(),this.gap(),this.recipient(),this.gap(1.2),this.totals(),this.epec(),this.gap(.7),this.complementary(),this.credits(),this.builder}gap(e=.9){this.builder.moveDown(e)}end(){i.current=void 0}title(){let{left:e,right:t}=this.builder.pageMargins();this.builder.font(`${this.font}-Bold`,this.context.options.titleFontSize).row({left:e,right:t},n=>this.builder.text(this.context.title(),{...n,align:"center"})),this.setup()}notices(){let{tpAmb:e,tpEmis:t}=this.infNFe.ide;e!==PN.Production&&this.line("SEM VALOR FISCAL",!0),!this.context.showsItems()&&t!==K.Normal&&this.line("EMITIDA EM CONTING\xCANCIA",!0)}operation(){let{tpNF:e,serie:t,nNF:n,dhEmi:r,tpEmis:o}=this.infNFe.ide;this.line(o===K.Normal?"EMISS\xC3O NORMAL":"EMISS\xC3O EM CONTING\xCANCIA",!0),this.typeBox(e),this.gap(.25),this.centeredFields([["N\xFAmero:",this.dotted(n)],["S\xE9rie:",t.padStart(3,"0")],["Emiss\xE3o",this.when(r,!1)]])}identification(){let{tpNF:e,serie:t,nNF:n,dhEmi:r}=this.infNFe.ide,{left:o,right:s}=this.builder.pageMargins(),c=this.builder.y(),f=this.builder.pageWidth()-o-s,l=f/3,u=this.context.options.textFontSize,h=this.builder.currentLineHeight(!0)+2;this.caption("S\xC9RIE:",t.padStart(3,"0"),o,c,l),this.builder.font(`${this.font}-Bold`,u),this.builder.text("DATA EMISS\xC3O",{x:o+l,y:c,width:l,align:"center"}),this.builder.text("TIPO OPERA\xC7\xC3O",{x:o+l*2,y:c,width:l,align:"center"});let g=c+h;this.caption("N\xBA:",this.dotted(n),o,g,l),this.builder.font(this.font,u),this.builder.text(this.when(r,!1),{x:o+l,y:g,width:l,align:"center"}),this.builder.text("0 - ENTRADA",{x:o+l*2,y:g,width:l-14,align:"left"}),this.drawType(e,o+f-gn-1,g);let y=g+h;this.builder.text("1 - SA\xCDDA",{x:o+l*2,y,width:l-14,align:"left"}),this.builder.text("",{x:o,y:y+h}),this.setup()}caption(e,t,n,r,o){let s=this.context.options.textFontSize,c=`${e} `;this.builder.font(`${this.font}-Bold`,s);let f=this.builder.widthOfString(c);this.builder.text(c,{x:n,y:r,lineBreak:!1}),this.builder.font(this.font,s),this.builder.text(t,{x:n+f,y:r,width:Math.max(o-f,10),align:"left"})}typeBox(e){let{left:t,right:n}=this.builder.pageMargins(),r=this.builder.y(),o=this.builder.pageWidth()-t-n,s="0 - ENTRADA / 1 - SA\xCDDA",c=this.builder.widthOfString(s),f=gn+4+c,l=t+(o-f)/2;this.drawType(e,l,r),this.builder.font(this.font,this.context.options.textFontSize).text(s,{x:l+gn+4,y:r+(gn-this.builder.currentLineHeight(!1))/2,width:c}),this.builder.text("",{x:t,y:r+gn+2}),this.setup()}drawType(e,t,n){this.builder.lineWidth(.3).rect(t,n,gn,gn).stroke().lineWidth(1),this.builder.font(`${this.font}-Bold`,this.context.options.textFontSize);let r=this.builder.widthOfString(e),o=this.builder.currentLineHeight(!1);this.builder.text(e,{x:t+(gn-r)/2,y:n+(gn-o)/2,lineBreak:!1})}emitter(){let{emit:e}=this.infNFe,{xLgr:t,nro:n,xBairro:r,xMun:o,UF:s}=e.enderEmit;if(this.context.showsItems()){this.line(e.xNome),this.line(`${t}, ${n} - ${r} - ${o} - ${s}`),this.centeredFields([["CNPJ:",this.taxId(e.CNPJ,e.CPF)],["IE:",e.IE]]);return}if(this.context.options.logo){this.emitterWithLogo(e.xNome,s);return}this.field("NOME/RAZ\xC3O SOCIAL:",e.xNome),this.fields([["CNPJ:",this.taxId(e.CNPJ,e.CPF)],["IE:",e.IE],["UF:",s]])}emitterWithLogo(e,t){let n=this.context.options.logo;if(!n)return;let{emit:r}=this.infNFe,{left:o,right:s}=this.builder.pageMargins(),c=this.builder.y(),f=this.builder.pageWidth()-o-s,l=this.context.options.textFontSize;this.builder.font(this.font,l);let h=(this.builder.currentLineHeight(!0)+2)*2+2,g=3/gl,y=o+h+g,S=f-h-g;this.builder.image(n,o,c,{fit:[h,h],align:"left",valign:"top"}),this.field("NOME/RAZ\xC3O SOCIAL:",e,y,S),this.fields([["CNPJ:",this.taxId(r.CNPJ,r.CPF)],["IE:",r.IE],["UF:",t]],y),this.builder.y()<c+h&&this.builder.text("",{x:o,y:c+h+2})}place(){if(this.context.showsItems())return;let{entrega:e,retirada:t}=this.infNFe,n=this.located(e),r=this.located(t),o=n?e:r?t:void 0;o&&(this.gap(),this.line(n?"INFORMA\xC7\xD5ES DO LOCAL DE ENTREGA":"INFORMA\xC7\xD5ES DO LOCAL DE RETIRADA",!0),this.field("CNPJ/CPF:",this.taxId(o.CNPJ,o.CPF)),this.fields([["",o.xNome??""],["IE:",o.IE??""]]),this.line(`${o.xLgr}, ${o.nro}`,!1,"left"),this.line(o.xBairro,!1,"left"),this.line(`${o.xMun}-${o.UF}${this.phoneSuffix(o.fone)}`,!1,"left"))}recipient(){let e=this.infNFe.dest;if(!e)return;let t=e.enderDest,n=this.taxId(e.CNPJ,e.CPF);if(this.line("DESTINAT\xC1RIO",!0,"center",!1),this.gap(.2),this.context.showsItems()){this.line(e.xNome??""),t&&this.line(`${t.xLgr}, ${t.nro} - ${t.xBairro} - ${t.xMun} - ${t.UF}`),this.centeredFields([[e.CNPJ?"CNPJ:":"CPF:",n],...e.IE?[["IE:",e.IE]]:[]]);return}if(this.field("NOME/RAZ\xC3O SOCIAL:",e.xNome??""),this.fields([["CNPJ/CPF:",n],...e.IE?[["IE:",e.IE]]:[]]),!t)return;let r=this.cep(t.CEP);this.field("ENDERE\xC7O:",`${t.xLgr}, ${t.nro} - ${t.xBairro} ${r} ${t.xMun} UF: ${t.UF}`)}items(){if(!this.context.showsItems())return;let e=kn.instance(this.context);e.build(),e.end()}totals(){let{vProd:e,vDesc:t,vNF:n}=this.infNFe.total.ICMSTot;if(this.context.showsItems()){let r=[this.infNFe.det].flat().length;this.pair("Qtd. Total de Itens",String(r),!0),this.pair("Valor Total dos Produtos R$",this.context.currency(e),!0),this.pair("Valor Descontos R$",this.context.currency(t),!0),this.pair("Valor Total R$",this.context.currency(n),!0);return}this.totalLine("VALOR TOTAL DA NOTA FISCAL:",`R$ ${this.context.currency(n)}`)}totalLine(e,t){let{left:n,right:r}=this.builder.pageMargins(),o=this.builder.y(),s=this.builder.pageWidth()-n-r,c=this.context.options.textFontSize;this.builder.font(`${this.font}-Bold`,c),this.builder.text(e,{x:n,y:o,lineBreak:!1}),this.builder.font(this.font,c),this.builder.text(t,{x:n,y:o,width:s,align:"right",lineBreak:!1}),this.builder.text("",{x:n,y:o+this.builder.currentLineHeight(!0)+2}),this.setup()}tributes(){if(!this.context.showsItems())return;let e=this.infNFe.total.ICMSTot.vTotTrib,t=e?this.context.currency(e):"-----";this.line(`Informa\xE7\xE3o dos Tributos Totais Incidentes (Lei Federal 12.741/2012): R$ ${t}`,!1,"left")}complementary(){let e=[this.infNFe.infAdic?.infCpl,this.infAdFisco()].filter(t=>t).join(`
|
|
44
|
+
`);e&&this.line(e.replace(/;/g,`
|
|
45
|
+
`),!1,"left")}credits(){let e=this.context.options.credits;if(!e)return;this.gap(.5);let{left:t,right:n}=this.builder.pageMargins();this.builder.font(this.font,this.context.options.textFontSize).row({left:t,right:n},r=>this.builder.text(e,{...r,align:"center",link:e===yo?"https://github.com/nfets/nfets":void 0})),this.setup()}infAdFisco(){return this.context.showsItems()?"":this.infNFe.infAdic?.infAdFisco??""}epec(){if(!this.context.showsEpec())return;let{tpEmis:e,dhCont:t}=this.infNFe.ide;if(e!==K.EPEC)return;let n=this.context.protNFe?.infProt,r=n?`${n.nProt} ${this.when(n.dhRecbto)}`:this.when(t);this.gap(),this.line("PROTOCOLO DE AUTORIZA\xC7\xC3O DO EPEC",!0),this.line(r)}accessKey(){let e=this.infNFe.$.Id?.substring(3)??"",t=e.replace(/(.{4})/g,"$1 ").trim();if(this.context.showsItems()){this.barcode(e),this.gap(.3),this.line("CHAVE DE ACESSO",!0,"center",!1),this.line(t),this.gap(.8),this.line("Protocolo de Autoriza\xE7\xE3o",!0,"center",!1),this.protocolValue();return}this.line("CHAVE DE ACESSO",!0,"left"),this.gap(.3),this.barcode(e),this.gap(.3),this.line(t)}protocol(){this.line("PROTOCOLO DE AUTORIZA\xC7\xC3O DE USO",!0,"center",!1),this.protocolValue()}protocolValue(){let e=this.context.protNFe?.infProt;this.line(e?`${e.nProt} ${this.when(e.dhRecbto)}`:"Pendente de autoriza\xE7\xE3o")}barcode(e){if(e.length!==44)return;let{left:t,right:n}=this.builder.pageMargins(),r=this.builder.y(),o=this.builder.pageWidth()-t-n,s=8/gl;Ra.draw(this.builder,e,t,r,o,s),this.builder.text("",{y:r+s})}pair(e,t,n=!1){let{left:r,right:o}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:o},s=>(this.builder.font(n?`${this.font}-Bold`:this.font,this.context.options.textFontSize),this.builder.text(e,{...s,align:"left"})),s=>(this.builder.font(this.font,this.context.options.textFontSize),this.builder.text(t,{...s,align:"right"}))),this.setup()}field(e,t,n,r){let{left:o,right:s}=this.builder.pageMargins(),c=n??o,f=this.builder.y(),l=this.context.options.textFontSize,u=r??this.builder.pageWidth()-o-s,h=e?`${e} `:"";this.builder.font(`${this.font}-Bold`,l);let g=h?this.builder.widthOfString(h):0;h&&this.builder.text(h,{x:c,y:f,lineBreak:!1}),this.builder.font(this.font,l);let y=Math.max(u-g,10),S=this.builder.heightOfString(t||" ",{width:y,lineGap:2});this.builder.text(t,{x:c+g,y:f,width:y,lineGap:2}),this.builder.text("",{x:o,y:f+S}),this.context.showsItems()||this.builder.moveDown(.15),this.setup()}fields(e,t){this.writeFields(e,t??this.builder.pageMargins().left)}centeredFields(e){let{left:t,right:n}=this.builder.pageMargins(),r=this.context.options.textFontSize,o=0;for(let[c,f]of e)c&&(this.builder.font(`${this.font}-Bold`,r),o+=this.builder.widthOfString(`${c} `)),f&&(this.builder.font(this.font,r),o+=this.builder.widthOfString(`${f} `));let s=this.builder.pageWidth()-t-n;this.writeFields(e,t+Math.max((s-o)/2,0))}writeFields(e,t){let{left:n}=this.builder.pageMargins(),r=this.builder.y(),o=this.context.options.textFontSize,s=t;for(let[c,f]of e)if(!(!c&&!f)){if(c){let l=`${c} `;this.builder.font(`${this.font}-Bold`,o),this.builder.text(l,{x:s,y:r,lineBreak:!1}),s+=this.builder.widthOfString(l)}if(f){let l=`${f} `;this.builder.font(this.font,o),this.builder.text(l,{x:s,y:r,lineBreak:!1}),s+=this.builder.widthOfString(l)}}this.builder.text("",{x:n,y:r+this.builder.currentLineHeight(!0)+2}),this.builder.moveDown(.15),this.setup()}line(e,t=!1,n="center",r=!0){if(!e)return;let{left:o,right:s}=this.builder.pageMargins();this.builder.font(t?`${this.font}-Bold`:this.font,this.context.options.textFontSize).row({left:o,right:s},c=>this.builder.text(e,{...c,align:n,lineGap:2})),r&&this.builder.moveDown(.15),this.setup()}when(e,t=!0){if(!e)return"";let{cUF:n}=this.infNFe.ide,r=t?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY";return EN(e).tz(zN[n]).format(r)}dotted(e){return e.padStart(9,"0").replace(/(\d{3})(\d{3})(\d{3})/,"$1.$2.$3")}cep(e){return e?e.length===8?e.replace(/(\d{5})(\d{3})/,"$1-$2"):e:""}phoneSuffix(e){let t=this.phone(e);return t?` Fone: ${t}`:""}phone(e){if(!e)return"";let t=e.length>=11?/(\d{2})(\d{5})(\d{4})/:/(\d{2})(\d{4})(\d{4})/;return e.replace(t,"($1) $2-$3")}located(e){return!!(e?.CNPJ??e?.CPF)}taxId(e,t){return e?.length===14?e.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5"):t?.length===11?t.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"):""}};var Ea=class extends Di{static{a(this,"DanfeSimplificadoDocument")}get builders(){return[wl.instance(this)]}};var Vv=class i extends Ea{static{a(this,"DanfeSimplificadoPdfDocument")}constructor(e){super(e),this.builder.configure({info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfe, danfe simplificado, sefaz",Title:"DANFE Simplificado",Subject:"DANFE Simplificado"}})}title(){return"DANFE Simplificado"}showsItems(){return!0}showsRecipientIe(){return!0}showsEpec(){return!1}clone(e){return new i(e)}};var Lv=class i extends Ea{static{a(this,"DanfeSimplificadoEtiquetaPdfDocument")}constructor(e){super(e),this.builder.configure({info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfe, danfe simplificado etiqueta, sefaz",Title:"DANFE SIMPLIFICADO - ETIQUETA",Subject:"DANFE SIMPLIFICADO - ETIQUETA"}})}title(){return"DANFE SIMPLIFICADO - ETIQUETA"}showsItems(){return!1}showsRecipientIe(){return!0}showsEpec(){return!0}clone(e){return new i(e)}};var Pl=class extends Oa{static{a(this,"RtcHeader")}crt={1:"1 - SIMPLES NACIONAL",2:"2 - SIMPLES NACIONAL - EXCESSO DE SUBLIMITE",3:"3 - REGIME NORMAL",4:"4 - MEI"};ibsApurationRegime(){let{tpRegApur:e}=this.infNFe.emit;return this.format.sanitize(e)||void 0}registrationRows(){let{emit:e}=this.infNFe,t=this.ibsApurationRegime(),n={label:"C\xD3DIGO DO REGIME TRIBUT\xC1RIO",value:this.crt[e.CRT]??e.CRT,weight:t?45:1};return[[{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(e.IE),weight:34},{label:"INSCRI\xC7\xC3O ESTADUAL DO SUBSTITUTO TRIBUT\xC1RIO",value:this.format.blank(e.IEST),weight:40},{label:"CNPJ / CPF",value:this.format.blank(this.format.document(e.CNPJ,e.CPF)),weight:36}],t?[n,{label:"TIPO DE REGIME DE APURA\xC7\xC3O DO IBS E DA CBS",value:t,weight:55}]:[n]]}};var El=class extends re{static{a(this,"RtcTotals")}perRow=6;cell(e,t){return{label:e,value:this.format.currency(t),align:"right"}}optional(e,t){return this.format.isNotEmpty(t)?[this.cell(e,t)]:[]}optionalQuantity(e,t){return this.format.isNotEmpty(t)?[{label:e,value:this.format.decimal(t,2,4),align:"right"}]:[]}products(){let e=this.infNFe.total.ICMSTot;return{title:"TOTAL DOS PRODUTOS E TOTAL DA NOTA",cells:[this.cell("VALOR TOTAL DOS PRODUTOS",e.vProd),this.cell("VALOR DO FRETE",e.vFrete),this.cell("VALOR DO SEGURO",e.vSeg),this.cell("DESCONTO",e.vDesc),this.cell("OUTRAS DESPESAS ACESS\xD3RIAS",e.vOutro),this.cell("VALOR TOTAL DA NOTA",e.vNF)]}}icmsIpi(){let e=this.infNFe.total.ICMSTot;return{title:"TOTAL DO ICMS / IPI",cells:[this.cell("BASE DE C\xC1LCULO DO ICMS",e.vBC),this.cell("VALOR DO ICMS",e.vICMS),this.cell("BASE DE C\xC1LCULO DO ICMS ST",e.vBCST),this.cell("VALOR DO ICMS ST",e.vST),this.cell("VALOR DO IPI",e.vIPI),...this.optional("VALOR DO FCP",e.vFCP),...this.optional("VALOR DO FCP RETIDO POR ST",e.vFCPST),...this.optional("VALOR DO DIFAL NA UF DE DESTINO",e.vICMSUFDest),...this.optional("VALOR DO FCP NA UF DE DESTINO",e.vFCPUFDest),...this.optionalQuantity("BC DO ICMS MONOF\xC1SICO",e.qBCMono),...this.optional("VALOR DO ICMS MONOF\xC1SICO",e.vICMSMono),...this.optionalQuantity("BC DO ICMS MONOF\xC1SICO POR RETEN\xC7\xC3O",e.qBCMonoReten),...this.optional("VALOR DO ICMS MONOF\xC1SICO POR RETEN\xC7\xC3O",e.vICMSMonoReten)]}}ibsCbsIs(){let{IBSCBSTot:e,ISTot:t}=this.infNFe.total;if(!e&&!t)return;let n=e?.gMono,r=n?[this.cell("VALOR DO IBS MONOF\xC1SICO",n.vIBSMono),this.cell("VALOR DA CBS MONOF\xC1SICA",n.vCBSMono),...this.optional("VALOR DO IBS MONOF\xC1SICO POR RETEN\xC7\xC3O",n.vIBSMonoReten),...this.optional("VALOR DA CBS MONOF\xC1SICA POR RETEN\xC7\xC3O",n.vCBSMonoReten)]:[];return{title:"TOTAL DO IBS / CBS / IS",cells:[this.cell("VALOR DA CBS",e?.gCBS?.vCBS),this.cell("VALOR DO IBS UF",e?.gIBS?.gIBSUF?.vIBSUF),this.cell("VALOR DO IBS MUNIC\xCDPIO",e?.gIBS?.gIBSMun?.vIBSMun),this.cell("VALOR DO IMPOSTO SELETIVO",t?.vIS),...r]}}sections(){let e=[this.products(),this.icmsIpi()],t=this.ibsCbsIs();return t&&e.push(t),e}sectionHeight(e){let t=this.fields.gridRows(e.cells.length,this.perRow);return this.fields.titleHeight+t*this.fields.rowHeight}height(){return this.sections().reduce((e,t,n)=>e+(n>0?this.context.gap:0)+this.sectionHeight(t),0)}draw({x:e,y:t,width:n}){let r=t;this.sections().forEach((o,s)=>{s>0&&(r+=this.context.gap);let c=r+this.fields.title(e,r,n,o.title);this.fields.grid(e,c,n,o.cells,this.perRow),r+=this.sectionHeight(o)})}};var TN=class extends pr{static{a(this,"RtcDetReader")}get ibsCbs(){return this.det.imposto?.IBSCBS?.gIBSCBS}get cClassTrib(){return this.det.imposto?.IBSCBS?.cClassTrib}get ibsCbsCst(){return this.det.imposto?.IBSCBS?.CST??""}get is(){return this.det.imposto?.IS}},zl=class extends Da{static{a(this,"RtcItems")}fontSize=5.5;compactWeights=[47,15,13,14,14,28,34,35];fittedWeights;get columns(){let[e,t,n,r,o,s,c,f]=this.columnWeights();return[{label:"DESCRI\xC7\xC3O DO PRODUTO / SERVI\xC7O",weight:e},{label:"CST / CFOP",weight:t},{label:"QTD / UN",weight:n,align:"center"},{label:"VLR UNIT",weight:r,align:"right"},{label:"VLR TOTAL",weight:o,align:"right"},{label:"BASES DE C\xC1LCULO",weight:s},{label:"AL\xCDQUOTAS",weight:c},{label:"VALOR DOS TRIBUTOS",weight:f}]}columnWeights(){if(this.fittedWeights)return this.fittedWeights;let[e,t,n,r,o,s,c,f]=this.compactWeights,l=n,u=r,h=o;for(let y of this.context.det){let{prod:S}=y;l=Math.max(l,this.weightFor(this.format.emitted(S.qCom,4),this.minFontSize),this.weightFor(`[${S.uCom}]`,this.fontSize)),u=Math.max(u,this.weightFor(this.format.emitted(S.vUnCom,10),this.minFontSize)),h=Math.max(h,this.weightFor(this.format.currency(S.vProd),this.minFontSize))}let g=e-(l-n)-(u-r)-(h-o);return this.fittedWeights=[g,t,l,u,h,s,c,f],this.fittedWeights}weightFor(e,t){let r=this.fields.widthOf(e,{size:t})+.5+this.cellPadding*2;return Math.ceil(r*200/this.context.contentWidth)}rate(e,t){return e?.gRed?.pAliqEfet??t}descriptionCell(e){let{cProd:t,NCM:n}=e.det.prod,r=this.fields.muted,o=this.description.infAdProd(e.det),s=this.description.extras(e.det),c=[`[NCM ${n}]`],f=e.cClassTrib;return f&&c.push(`[cClassTrib ${f}]`),[{text:this.description.productName(e.det)},...o?[{text:o,color:r}]:[],...s?[{text:s,color:r}]:[],{text:"",blankBefore:!0},{text:`[C\xF3d. ${t}]`,color:r},{text:c.join(" "),color:r}]}cells(e){let t=new TN(e),{prod:n}=e,r=t.icms,o=t.ipi,s=t.ibsCbs,c=t.is,f=a(u=>this.format.currency(u),"currency"),l=a(u=>this.format.percent(u),"percent");return[this.descriptionCell(t),{muted:!1,pairs:[["CST",t.ibsCbsCst],["CFOP",n.CFOP]]},[{text:this.format.emitted(n.qCom,4),align:"center",fit:!0},{text:`[${n.uCom}]`,color:this.fields.muted,align:"center"}],[{text:this.format.emitted(n.vUnCom,10),align:"right",fit:!0}],[{text:f(n.vProd),align:"right",fit:!0}],{pairs:[["ICMS",f(r.vBC)],["IBS / CBS",f(s?.vBC)],["IS",f(c?.vBCIS)],["IPI",f(o?.vBC)]]},{columns:2,pairs:[["ICMS",l(r.pICMS)],["CBS",l(this.rate(s?.gCBS,s?.gCBS?.pCBS))],["IBS UF",l(this.rate(s?.gIBSUF,s?.gIBSUF?.pIBSUF))],["IPI",l(o?.pIPI)],["IBS MUN",l(this.rate(s?.gIBSMun,s?.gIBSMun?.pIBSMun))],["IS",l(c?.pIS)]]},{columns:2,pairs:[["ICMS",f(r.vICMS)],["CBS",f(s?.gCBS?.vCBS)],["IBS UF",f(s?.gIBSUF?.vIBSUF)],["IPI",f(o?.vIPI)],["IBS MUN",f(s?.gIBSMun?.vIBSMun)],["IS",f(c?.vIS)]]}]}};var Tl=class extends wa{static{a(this,"RtcAdditionalData")}withQrCode=!0};var Ml=class extends Ia{static{a(this,"DanfeRtcPdfDocument")}createBlocks(){return{canhoto:new Na(this),header:new Pl(this),firstPage:[new Fa(this),new lr(this,"retirada"),new lr(this,"entrega"),new xa(this),new El(this),new Aa(this),new bl(this)],items:new zl(this),lastPage:[new Tl(this)],footer:new Pa(this)}}};var Hv=class extends Ml{static{a(this,"DanfeRtcLandscapePdfDocument")}sideCanhotoWidth=R(22);constructor(e){super(e),this.options={...this.options,layout:"landscape"}}};export{Lc as AccessKeyBuilder,Ev as DanfceDefaultPdfDocument,zv as DanfceReducedPdfDocument,jv as DanfeDefaultPdfDocument,su as DanfeMargins,Hv as DanfeRtcLandscapePdfDocument,Ml as DanfeRtcPdfDocument,Lv as DanfeSimplificadoEtiquetaPdfDocument,Vv as DanfeSimplificadoPdfDocument,Bv as DanfeSimplificadoTipo2PdfDocument,YN as DanfeSize,Hc as DefaultDetBuilderAggregator,nu as DefaultSchema,Uc as DefaultTotalBuilderAggregator,tu as EventoCstatToCancelRegister,eu as EventoCstatToProtocol,ou as InutCstatToProtocol,hn as NFCeDto,Wn as NFeDto,pf as NfceAuthorizerPipeline,Mu as NfceCancelPipeline,Hu as NfceConsultProtocoloPipeline,Lu as NfceConsultStatusPipeline,Bu as NfceContingencyXmlAuthorizerPipeline,lt as NfceQrcode,ot as NfceRemoteTransmitter,Vu as NfceVoidRangePipeline,el as NfceXmlBuilder,Sm as NfceXmlBuilderPipeline,Du as NfeAuthorizationResponsePipeline,sf as NfeAuthorizerPipeline,nf as NfeCancelPipeline,cu as NfeComplements,cf as NfeConsultProtocoloPipeline,af as NfeConsultStatusPipeline,Ve as NfeDetXmlBuilder,wu as NfeDistribuicaoDFePipeline,Au as NfeManifestacaoPipeline,Bt as NfeRemoteTransmitter,Va as NfeVoidRangePipeline,H as NfeXmlBuilder,Kf as NfeXmlBuilderPipeline,GN as PL_009,jt as PL_010,K as TpEmis,Qe as TpEvent,Bc as XmlValidationError,R as mm,Qv as ptPerMm,Vc as schemas};
|