nfets 0.0.139 → 0.0.141

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.
@@ -1,42 +1,43 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{e as Qd}from"../chunk-CBNKLDJE.mjs";import{a,b as Ve,d as R,f as Hd}from"../chunk-W6MRGYXP.mjs";var Jl=R((mT,lh)=>{"use strict";lh.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Yn=R(Tr=>{"use strict";var _l,GS=[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];Tr.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");Tr.getSymbolTotalCodewords=a(function(e){return GS[e]},"getSymbolTotalCodewords");Tr.getBCHDigit=function(o){let e=0;for(;o!==0;)e++,o>>>=1;return e};Tr.setToSJISFunction=a(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');_l=e},"setToSJISFunction");Tr.isKanjiModeEnabled=function(){return typeof _l<"u"};Tr.toSJIS=a(function(e){return _l(e)},"toSJIS")});var Xf=R(mo=>{"use strict";mo.L={bit:1};mo.M={bit:0};mo.Q={bit:3};mo.H={bit:2};function qS(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return mo.L;case"m":case"medium":return mo.M;case"q":case"quartile":return mo.Q;case"h":case"high":return mo.H;default:throw new Error("Unknown EC Level: "+o)}}a(qS,"fromString");mo.isValid=a(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");mo.from=a(function(e,t){if(mo.isValid(e))return e;try{return qS(e)}catch{return t}},"from")});var mh=R((ST,uh)=>{"use strict";function dh(){this.buffer=[],this.length=0}a(dh,"BitBuffer");dh.prototype={get:a(function(o){let e=Math.floor(o/8);return(this.buffer[e]>>>7-o%8&1)===1},"get"),put:a(function(o,e){for(let t=0;t<e;t++)this.putBit((o>>>e-t-1&1)===1)},"put"),getLengthInBits:a(function(){return this.length},"getLengthInBits"),putBit:a(function(o){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),o&&(this.buffer[e]|=128>>>this.length%8),this.length++},"putBit")};uh.exports=dh});var gh=R((bT,hh)=>{"use strict";function hc(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}a(hc,"BitMatrix");hc.prototype.set=function(o,e,t,n){let r=o*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};hc.prototype.get=function(o,e){return this.data[o*this.size+e]};hc.prototype.xor=function(o,e,t){this.data[o*this.size+e]^=t};hc.prototype.isReserved=function(o,e){return this.reservedBit[o*this.size+e]};hh.exports=hc});var vh=R(Jf=>{"use strict";var ZS=Yn().getSymbolSize;Jf.getRowColCoords=a(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=ZS(e),r=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s<t-1;s++)i[s]=i[s-1]-r;return i.push(6),i.reverse()},"getRowColCoords");Jf.getPositions=a(function(e){let t=[],n=Jf.getRowColCoords(e),r=n.length;for(let i=0;i<r;i++)for(let s=0;s<r;s++)i===0&&s===0||i===0&&s===r-1||i===r-1&&s===0||t.push([n[i],n[s]]);return t},"getPositions")});var Ch=R(Sh=>{"use strict";var YS=Yn().getSymbolSize,yh=7;Sh.getPositions=a(function(e){let t=YS(e);return[[0,0],[t-yh,0],[0,t-yh]]},"getPositions")});var bh=R($=>{"use strict";$.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Mr={N1:3,N2:3,N3:40,N4:10};$.isValid=a(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");$.from=a(function(e){return $.isValid(e)?parseInt(e,10):void 0},"from");$.getPenaltyN1=a(function(e){let t=e.size,n=0,r=0,i=0,s=null,c=null;for(let f=0;f<t;f++){r=i=0,s=c=null;for(let p=0;p<t;p++){let u=e.get(f,p);u===s?r++:(r>=5&&(n+=Mr.N1+(r-5)),s=u,r=1),u=e.get(p,f),u===c?i++:(i>=5&&(n+=Mr.N1+(i-5)),c=u,i=1)}r>=5&&(n+=Mr.N1+(r-5)),i>=5&&(n+=Mr.N1+(i-5))}return n},"getPenaltyN1");$.getPenaltyN2=a(function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let s=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(s===4||s===0)&&n++}return n*Mr.N2},"getPenaltyN2");$.getPenaltyN3=a(function(e){let t=e.size,n=0,r=0,i=0;for(let s=0;s<t;s++){r=i=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(s,c),c>=10&&(r===1488||r===93)&&n++,i=i<<1&2047|e.get(c,s),c>=10&&(i===1488||i===93)&&n++}return n*Mr.N3},"getPenaltyN3");$.getPenaltyN4=a(function(e){let t=0,n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/n/5)-10)*Mr.N4},"getPenaltyN4");function XS(o,e,t){switch(o){case $.Patterns.PATTERN000:return(e+t)%2===0;case $.Patterns.PATTERN001:return e%2===0;case $.Patterns.PATTERN010:return t%3===0;case $.Patterns.PATTERN011:return(e+t)%3===0;case $.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case $.Patterns.PATTERN101:return e*t%2+e*t%3===0;case $.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case $.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}a(XS,"getMaskAt");$.applyMask=a(function(e,t){let n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,XS(e,i,r))},"applyMask");$.getBestMask=a(function(e,t){let n=Object.keys($.Patterns).length,r=0,i=1/0;for(let s=0;s<n;s++){t(s),$.applyMask(s,e);let c=$.getPenaltyN1(e)+$.getPenaltyN2(e)+$.getPenaltyN3(e)+$.getPenaltyN4(e);$.applyMask(s,e),c<i&&(i=c,r=s)}return r},"getBestMask")});var Kl=R(Wl=>{"use strict";var Xn=Xf(),_f=[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],Wf=[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];Wl.getBlocksCount=a(function(e,t){switch(t){case Xn.L:return _f[(e-1)*4+0];case Xn.M:return _f[(e-1)*4+1];case Xn.Q:return _f[(e-1)*4+2];case Xn.H:return _f[(e-1)*4+3];default:return}},"getBlocksCount");Wl.getTotalCodewordsCount=a(function(e,t){switch(t){case Xn.L:return Wf[(e-1)*4+0];case Xn.M:return Wf[(e-1)*4+1];case Xn.Q:return Wf[(e-1)*4+2];case Xn.H:return Wf[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var Nh=R(kf=>{"use strict";var gc=new Uint8Array(512),Kf=new Uint8Array(256);a((function(){let e=1;for(let t=0;t<255;t++)gc[t]=e,Kf[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)gc[t]=gc[t-255]}),"initTables")();kf.log=a(function(e){if(e<1)throw new Error("log("+e+")");return Kf[e]},"log");kf.exp=a(function(e){return gc[e]},"exp");kf.mul=a(function(e,t){return e===0||t===0?0:gc[Kf[e]+Kf[t]]},"mul")});var Ih=R(vc=>{"use strict";var kl=Nh();vc.mul=a(function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]^=kl.mul(e[r],t[i]);return n},"mul");vc.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]^=kl.mul(t[s],r);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n},"mod");vc.generateECPolynomial=a(function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=vc.mul(t,new Uint8Array([1,kl.exp(n)]));return t},"generateECPolynomial")});var Fh=R((MT,Oh)=>{"use strict";var Rh=Ih();function $l(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}a($l,"ReedSolomonEncoder");$l.prototype.initialize=a(function(e){this.degree=e,this.genPoly=Rh.generateECPolynomial(this.degree)},"initialize");$l.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=Rh.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let i=new Uint8Array(this.degree);return i.set(n,r),i}return n},"encode");Oh.exports=$l});var ed=R(Dh=>{"use strict";Dh.isValid=a(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var td=R(ln=>{"use strict";var Ah="[0-9]+",JS="[A-Z $%*+\\-./:]+",yc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";yc=yc.replace(/u/g,"\\u");var _S="(?:(?![A-Z0-9 $%*+\\-./:]|"+yc+`)(?:.|[\r
3
- ]))+`;ln.KANJI=new RegExp(yc,"g");ln.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ln.BYTE=new RegExp(_S,"g");ln.NUMERIC=new RegExp(Ah,"g");ln.ALPHANUMERIC=new RegExp(JS,"g");var WS=new RegExp("^"+yc+"$"),KS=new RegExp("^"+Ah+"$"),kS=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ln.testKanji=a(function(e){return WS.test(e)},"testKanji");ln.testNumeric=a(function(e){return KS.test(e)},"testNumeric");ln.testAlphanumeric=a(function(e){return kS.test(e)},"testAlphanumeric")});var Jn=R(Be=>{"use strict";var $S=ed(),od=td();Be.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Be.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Be.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Be.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Be.MIXED={bit:-1};Be.getCharCountIndicator=a(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!$S.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");Be.getBestModeForData=a(function(e){return od.testNumeric(e)?Be.NUMERIC:od.testAlphanumeric(e)?Be.ALPHANUMERIC:od.testKanji(e)?Be.KANJI:Be.BYTE},"getBestModeForData");Be.toString=a(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");Be.isValid=a(function(e){return e&&e.bit&&e.ccBits},"isValid");function eC(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return Be.NUMERIC;case"alphanumeric":return Be.ALPHANUMERIC;case"kanji":return Be.KANJI;case"byte":return Be.BYTE;default:throw new Error("Unknown mode: "+o)}}a(eC,"fromString");Be.from=a(function(e,t){if(Be.isValid(e))return e;try{return eC(e)}catch{return t}},"from")});var zh=R(jr=>{"use strict";var $f=Yn(),tC=Kl(),xh=Xf(),_n=Jn(),id=ed(),Ph=7973,wh=$f.getBCHDigit(Ph);function oC(o,e,t){for(let n=1;n<=40;n++)if(e<=jr.getCapacity(n,t,o))return n}a(oC,"getBestVersionForDataLength");function Eh(o,e){return _n.getCharCountIndicator(o,e)+4}a(Eh,"getReservedBitsCount");function iC(o,e){let t=0;return o.forEach(function(n){let r=Eh(n.mode,e);t+=r+n.getBitsLength()}),t}a(iC,"getTotalBitsFromDataArray");function nC(o,e){for(let t=1;t<=40;t++)if(iC(o,t)<=jr.getCapacity(t,e,_n.MIXED))return t}a(nC,"getBestVersionForMixedData");jr.from=a(function(e,t){return id.isValid(e)?parseInt(e,10):t},"from");jr.getCapacity=a(function(e,t,n){if(!id.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=_n.BYTE);let r=$f.getSymbolTotalCodewords(e),i=tC.getTotalCodewordsCount(e,t),s=(r-i)*8;if(n===_n.MIXED)return s;let c=s-Eh(n,e);switch(n){case _n.NUMERIC:return Math.floor(c/10*3);case _n.ALPHANUMERIC:return Math.floor(c/11*2);case _n.KANJI:return Math.floor(c/13);case _n.BYTE:default:return Math.floor(c/8)}},"getCapacity");jr.getBestVersionForData=a(function(e,t){let n,r=xh.from(t,xh.M);if(Array.isArray(e)){if(e.length>1)return nC(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return oC(n.mode,n.getLength(),r)},"getBestVersionForData");jr.getEncodedBits=a(function(e){if(!id.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;$f.getBCHDigit(t)-wh>=0;)t^=Ph<<$f.getBCHDigit(t)-wh;return e<<12|t},"getEncodedBits")});var Bh=R(jh=>{"use strict";var nd=Yn(),Mh=1335,rC=21522,Th=nd.getBCHDigit(Mh);jh.getEncodedBits=a(function(e,t){let n=e.bit<<3|t,r=n<<10;for(;nd.getBCHDigit(r)-Th>=0;)r^=Mh<<nd.getBCHDigit(r)-Th;return(n<<10|r)^rC},"getEncodedBits")});var Lh=R((XT,Vh)=>{"use strict";var sC=Jn();function ra(o){this.mode=sC.NUMERIC,this.data=o.toString()}a(ra,"NumericData");ra.getBitsLength=a(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");ra.prototype.getLength=a(function(){return this.data.length},"getLength");ra.prototype.getBitsLength=a(function(){return ra.getBitsLength(this.data.length)},"getBitsLength");ra.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 i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},"write");Vh.exports=ra});var Hh=R((_T,Uh)=>{"use strict";var aC=Jn(),rd=["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 sa(o){this.mode=aC.ALPHANUMERIC,this.data=o}a(sa,"AlphanumericData");sa.getBitsLength=a(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");sa.prototype.getLength=a(function(){return this.data.length},"getLength");sa.prototype.getBitsLength=a(function(){return sa.getBitsLength(this.data.length)},"getBitsLength");sa.prototype.write=a(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=rd.indexOf(this.data[t])*45;n+=rd.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(rd.indexOf(this.data[t]),6)},"write");Uh.exports=sa});var Gh=R((KT,Qh)=>{"use strict";var cC=Jn();function aa(o){this.mode=cC.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}a(aa,"ByteData");aa.getBitsLength=a(function(e){return e*8},"getBitsLength");aa.prototype.getLength=a(function(){return this.data.length},"getLength");aa.prototype.getBitsLength=a(function(){return aa.getBitsLength(this.data.length)},"getBitsLength");aa.prototype.write=function(o){for(let e=0,t=this.data.length;e<t;e++)o.put(this.data[e],8)};Qh.exports=aa});var Zh=R(($T,qh)=>{"use strict";var fC=Jn(),pC=Yn();function ca(o){this.mode=fC.KANJI,this.data=o}a(ca,"KanjiData");ca.getBitsLength=a(function(e){return e*13},"getBitsLength");ca.prototype.getLength=a(function(){return this.data.length},"getLength");ca.prototype.getBitsLength=a(function(){return ca.getBitsLength(this.data.length)},"getBitsLength");ca.prototype.write=function(o){let e;for(e=0;e<this.data.length;e++){let t=pC.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),o.put(t,13)}};qh.exports=ca});var Yh=R((t2,sd)=>{"use strict";var Sc={single_source_shortest_paths:a(function(o,e,t){var n={},r={};r[e]=0;var i=Sc.PriorityQueue.make();i.push(e,0);for(var s,c,f,p,u,m,v,y,C;!i.empty();){s=i.pop(),c=s.value,p=s.cost,u=o[c]||{};for(f in u)u.hasOwnProperty(f)&&(m=u[f],v=p+m,y=r[f],C=typeof r[f]>"u",(C||y>v)&&(r[f]=v,i.push(f,v),n[f]=c))}if(typeof t<"u"&&typeof r[t]>"u"){var F=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(F)}return n},"single_source_shortest_paths"),extract_shortest_path_from_predecessor_list:a(function(o,e){for(var t=[],n=e,r;n;)t.push(n),r=o[n],n=o[n];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:a(function(o,e,t){var n=Sc.single_source_shortest_paths(o,e,t);return Sc.extract_shortest_path_from_predecessor_list(n,t)},"find_path"),PriorityQueue:{make:a(function(o){var e=Sc.PriorityQueue,t={},n;o=o||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=o.sorter||e.default_sorter,t},"make"),default_sorter:a(function(o,e){return o.cost-e.cost},"default_sorter"),push:a(function(o,e){var t={value:o,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 sd<"u"&&(sd.exports=Sc)});var eg=R(fa=>{"use strict";var H=Jn(),_h=Lh(),Wh=Hh(),Kh=Gh(),kh=Zh(),Cc=td(),ep=Yn(),lC=Yh();function Xh(o){return unescape(encodeURIComponent(o)).length}a(Xh,"getStringByteLength");function bc(o,e,t){let n=[],r;for(;(r=o.exec(t))!==null;)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}a(bc,"getSegments");function $h(o){let e=bc(Cc.NUMERIC,H.NUMERIC,o),t=bc(Cc.ALPHANUMERIC,H.ALPHANUMERIC,o),n,r;return ep.isKanjiModeEnabled()?(n=bc(Cc.BYTE,H.BYTE,o),r=bc(Cc.KANJI,H.KANJI,o)):(n=bc(Cc.BYTE_KANJI,H.BYTE,o),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($h,"getSegmentsFromString");function ad(o,e){switch(e){case H.NUMERIC:return _h.getBitsLength(o);case H.ALPHANUMERIC:return Wh.getBitsLength(o);case H.KANJI:return kh.getBitsLength(o);case H.BYTE:return Kh.getBitsLength(o)}}a(ad,"getSegmentBitsLength");function dC(o){return o.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(dC,"mergeSegments");function uC(o){let e=[];for(let t=0;t<o.length;t++){let n=o[t];switch(n.mode){case H.NUMERIC:e.push([n,{data:n.data,mode:H.ALPHANUMERIC,length:n.length},{data:n.data,mode:H.BYTE,length:n.length}]);break;case H.ALPHANUMERIC:e.push([n,{data:n.data,mode:H.BYTE,length:n.length}]);break;case H.KANJI:e.push([n,{data:n.data,mode:H.BYTE,length:Xh(n.data)}]);break;case H.BYTE:e.push([{data:n.data,mode:H.BYTE,length:Xh(n.data)}])}}return e}a(uC,"buildNodes");function mC(o,e){let t={},n={start:{}},r=["start"];for(let i=0;i<o.length;i++){let s=o[i],c=[];for(let f=0;f<s.length;f++){let p=s[f],u=""+i+f;c.push(u),t[u]={node:p,lastCount:0},n[u]={};for(let m=0;m<r.length;m++){let v=r[m];t[v]&&t[v].node.mode===p.mode?(n[v][u]=ad(t[v].lastCount+p.length,p.mode)-ad(t[v].lastCount,p.mode),t[v].lastCount+=p.length):(t[v]&&(t[v].lastCount=p.length),n[v][u]=ad(p.length,p.mode)+4+H.getCharCountIndicator(p.mode,e))}}r=c}for(let i=0;i<r.length;i++)n[r[i]].end=0;return{map:n,table:t}}a(mC,"buildGraph");function Jh(o,e){let t,n=H.getBestModeForData(o);if(t=H.from(e,n),t!==H.BYTE&&t.bit<n.bit)throw new Error('"'+o+'" cannot be encoded with mode '+H.toString(t)+`.
5
- Suggested mode is: `+H.toString(n));switch(t===H.KANJI&&!ep.isKanjiModeEnabled()&&(t=H.BYTE),t){case H.NUMERIC:return new _h(o);case H.ALPHANUMERIC:return new Wh(o);case H.KANJI:return new kh(o);case H.BYTE:return new Kh(o)}}a(Jh,"buildSingleSegment");fa.fromArray=a(function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(Jh(n,null)):n.data&&t.push(Jh(n.data,n.mode)),t},[])},"fromArray");fa.fromString=a(function(e,t){let n=$h(e,ep.isKanjiModeEnabled()),r=uC(n),i=mC(r,t),s=lC.find_path(i.map,"start","end"),c=[];for(let f=1;f<s.length-1;f++)c.push(i.table[s[f]].node);return fa.fromArray(dC(c))},"fromString");fa.rawSplit=a(function(e){return fa.fromArray($h(e,ep.isKanjiModeEnabled()))},"rawSplit")});var ud=R(tg=>{"use strict";var op=Yn(),cd=Xf(),hC=mh(),gC=gh(),vC=vh(),yC=Ch(),ld=bh(),dd=Kl(),SC=Fh(),tp=zh(),CC=Bh(),bC=Jn(),fd=eg();function NC(o,e){let t=o.size,n=yC.getPositions(e);for(let r=0;r<n.length;r++){let i=n[r][0],s=n[r][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||t<=i+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?o.set(i+c,s+f,!0,!0):o.set(i+c,s+f,!1,!0))}}a(NC,"setupFinderPattern");function IC(o){let e=o.size;for(let t=8;t<e-8;t++){let n=t%2===0;o.set(t,6,n,!0),o.set(6,t,n,!0)}}a(IC,"setupTimingPattern");function RC(o,e){let t=vC.getPositions(e);for(let n=0;n<t.length;n++){let r=t[n][0],i=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?o.set(r+s,i+c,!0,!0):o.set(r+s,i+c,!1,!0)}}a(RC,"setupAlignmentPattern");function OC(o,e){let t=o.size,n=tp.getEncodedBits(e),r,i,s;for(let c=0;c<18;c++)r=Math.floor(c/3),i=c%3+t-8-3,s=(n>>c&1)===1,o.set(r,i,s,!0),o.set(i,r,s,!0)}a(OC,"setupVersionInfo");function pd(o,e,t){let n=o.size,r=CC.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(r>>i&1)===1,i<6?o.set(i,8,s,!0):i<8?o.set(i+1,8,s,!0):o.set(n-15+i,8,s,!0),i<8?o.set(8,n-i-1,s,!0):i<9?o.set(8,15-i-1+1,s,!0):o.set(8,15-i-1,s,!0);o.set(n-8,8,1,!0)}a(pd,"setupFormatInfo");function FC(o,e){let t=o.size,n=-1,r=t-1,i=7,s=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let f=0;f<2;f++)if(!o.isReserved(r,c-f)){let p=!1;s<e.length&&(p=(e[s]>>>i&1)===1),o.set(r,c-f,p),i--,i===-1&&(s++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}a(FC,"setupData");function DC(o,e,t){let n=new hC;t.forEach(function(f){n.put(f.mode.bit,4),n.put(f.getLength(),bC.getCharCountIndicator(f.mode,o)),f.write(n)});let r=op.getSymbolTotalCodewords(o),i=dd.getTotalCodewordsCount(o,e),s=(r-i)*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 AC(n,o,e)}a(DC,"createData");function AC(o,e,t){let n=op.getSymbolTotalCodewords(e),r=dd.getTotalCodewordsCount(e,t),i=n-r,s=dd.getBlocksCount(e,t),c=n%s,f=s-c,p=Math.floor(n/s),u=Math.floor(i/s),m=u+1,v=p-u,y=new SC(v),C=0,F=new Array(s),x=new Array(s),j=0,at=new Uint8Array(o.buffer);for(let Ur=0;Ur<s;Ur++){let Fp=Ur<f?u:m;F[Ur]=at.slice(C,C+Fp),x[Ur]=y.encode(F[Ur]),C+=Fp,j=Math.max(j,Fp)}let be=new Uint8Array(n),ee=0,ct,Oi;for(ct=0;ct<j;ct++)for(Oi=0;Oi<s;Oi++)ct<F[Oi].length&&(be[ee++]=F[Oi][ct]);for(ct=0;ct<v;ct++)for(Oi=0;Oi<s;Oi++)be[ee++]=x[Oi][ct];return be}a(AC,"createCodewords");function xC(o,e,t,n){let r;if(Array.isArray(o))r=fd.fromArray(o);else if(typeof o=="string"){let p=e;if(!p){let u=fd.rawSplit(o);p=tp.getBestVersionForData(u,t)}r=fd.fromString(o,p||40)}else throw new Error("Invalid data");let i=tp.getBestVersionForData(r,t);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
2
+ import{e as Qd}from"../chunk-CBNKLDJE.mjs";import{a,b as He,d as O,f as Ud}from"../chunk-W6MRGYXP.mjs";var Jl=O((hT,lm)=>{"use strict";lm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Yn=O(Tr=>{"use strict";var _l,GS=[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];Tr.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");Tr.getSymbolTotalCodewords=a(function(e){return GS[e]},"getSymbolTotalCodewords");Tr.getBCHDigit=function(o){let e=0;for(;o!==0;)e++,o>>>=1;return e};Tr.setToSJISFunction=a(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');_l=e},"setToSJISFunction");Tr.isKanjiModeEnabled=function(){return typeof _l<"u"};Tr.toSJIS=a(function(e){return _l(e)},"toSJIS")});var Xf=O(ho=>{"use strict";ho.L={bit:1};ho.M={bit:0};ho.Q={bit:3};ho.H={bit:2};function qS(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return ho.L;case"m":case"medium":return ho.M;case"q":case"quartile":return ho.Q;case"h":case"high":return ho.H;default:throw new Error("Unknown EC Level: "+o)}}a(qS,"fromString");ho.isValid=a(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");ho.from=a(function(e,t){if(ho.isValid(e))return e;try{return qS(e)}catch{return t}},"from")});var hm=O((ST,um)=>{"use strict";function dm(){this.buffer=[],this.length=0}a(dm,"BitBuffer");dm.prototype={get:a(function(o){let e=Math.floor(o/8);return(this.buffer[e]>>>7-o%8&1)===1},"get"),put:a(function(o,e){for(let t=0;t<e;t++)this.putBit((o>>>e-t-1&1)===1)},"put"),getLengthInBits:a(function(){return this.length},"getLengthInBits"),putBit:a(function(o){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),o&&(this.buffer[e]|=128>>>this.length%8),this.length++},"putBit")};um.exports=dm});var gm=O((bT,mm)=>{"use strict";function mc(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}a(mc,"BitMatrix");mc.prototype.set=function(o,e,t,n){let r=o*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};mc.prototype.get=function(o,e){return this.data[o*this.size+e]};mc.prototype.xor=function(o,e,t){this.data[o*this.size+e]^=t};mc.prototype.isReserved=function(o,e){return this.reservedBit[o*this.size+e]};mm.exports=mc});var vm=O(Jf=>{"use strict";var ZS=Yn().getSymbolSize;Jf.getRowColCoords=a(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=ZS(e),r=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s<t-1;s++)i[s]=i[s-1]-r;return i.push(6),i.reverse()},"getRowColCoords");Jf.getPositions=a(function(e){let t=[],n=Jf.getRowColCoords(e),r=n.length;for(let i=0;i<r;i++)for(let s=0;s<r;s++)i===0&&s===0||i===0&&s===r-1||i===r-1&&s===0||t.push([n[i],n[s]]);return t},"getPositions")});var Cm=O(Sm=>{"use strict";var YS=Yn().getSymbolSize,ym=7;Sm.getPositions=a(function(e){let t=YS(e);return[[0,0],[t-ym,0],[0,t-ym]]},"getPositions")});var bm=O(ee=>{"use strict";ee.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Mr={N1:3,N2:3,N3:40,N4:10};ee.isValid=a(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");ee.from=a(function(e){return ee.isValid(e)?parseInt(e,10):void 0},"from");ee.getPenaltyN1=a(function(e){let t=e.size,n=0,r=0,i=0,s=null,c=null;for(let f=0;f<t;f++){r=i=0,s=c=null;for(let p=0;p<t;p++){let u=e.get(f,p);u===s?r++:(r>=5&&(n+=Mr.N1+(r-5)),s=u,r=1),u=e.get(p,f),u===c?i++:(i>=5&&(n+=Mr.N1+(i-5)),c=u,i=1)}r>=5&&(n+=Mr.N1+(r-5)),i>=5&&(n+=Mr.N1+(i-5))}return n},"getPenaltyN1");ee.getPenaltyN2=a(function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let s=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(s===4||s===0)&&n++}return n*Mr.N2},"getPenaltyN2");ee.getPenaltyN3=a(function(e){let t=e.size,n=0,r=0,i=0;for(let s=0;s<t;s++){r=i=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(s,c),c>=10&&(r===1488||r===93)&&n++,i=i<<1&2047|e.get(c,s),c>=10&&(i===1488||i===93)&&n++}return n*Mr.N3},"getPenaltyN3");ee.getPenaltyN4=a(function(e){let t=0,n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/n/5)-10)*Mr.N4},"getPenaltyN4");function XS(o,e,t){switch(o){case ee.Patterns.PATTERN000:return(e+t)%2===0;case ee.Patterns.PATTERN001:return e%2===0;case ee.Patterns.PATTERN010:return t%3===0;case ee.Patterns.PATTERN011:return(e+t)%3===0;case ee.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case ee.Patterns.PATTERN101:return e*t%2+e*t%3===0;case ee.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case ee.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}a(XS,"getMaskAt");ee.applyMask=a(function(e,t){let n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,XS(e,i,r))},"applyMask");ee.getBestMask=a(function(e,t){let n=Object.keys(ee.Patterns).length,r=0,i=1/0;for(let s=0;s<n;s++){t(s),ee.applyMask(s,e);let c=ee.getPenaltyN1(e)+ee.getPenaltyN2(e)+ee.getPenaltyN3(e)+ee.getPenaltyN4(e);ee.applyMask(s,e),c<i&&(i=c,r=s)}return r},"getBestMask")});var Kl=O(Wl=>{"use strict";var Xn=Xf(),_f=[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],Wf=[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];Wl.getBlocksCount=a(function(e,t){switch(t){case Xn.L:return _f[(e-1)*4+0];case Xn.M:return _f[(e-1)*4+1];case Xn.Q:return _f[(e-1)*4+2];case Xn.H:return _f[(e-1)*4+3];default:return}},"getBlocksCount");Wl.getTotalCodewordsCount=a(function(e,t){switch(t){case Xn.L:return Wf[(e-1)*4+0];case Xn.M:return Wf[(e-1)*4+1];case Xn.Q:return Wf[(e-1)*4+2];case Xn.H:return Wf[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var Nm=O(kf=>{"use strict";var gc=new Uint8Array(512),Kf=new Uint8Array(256);a((function(){let e=1;for(let t=0;t<255;t++)gc[t]=e,Kf[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)gc[t]=gc[t-255]}),"initTables")();kf.log=a(function(e){if(e<1)throw new Error("log("+e+")");return Kf[e]},"log");kf.exp=a(function(e){return gc[e]},"exp");kf.mul=a(function(e,t){return e===0||t===0?0:gc[Kf[e]+Kf[t]]},"mul")});var Im=O(vc=>{"use strict";var kl=Nm();vc.mul=a(function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]^=kl.mul(e[r],t[i]);return n},"mul");vc.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]^=kl.mul(t[s],r);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n},"mod");vc.generateECPolynomial=a(function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=vc.mul(t,new Uint8Array([1,kl.exp(n)]));return t},"generateECPolynomial")});var Fm=O((MT,Om)=>{"use strict";var Rm=Im();function $l(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}a($l,"ReedSolomonEncoder");$l.prototype.initialize=a(function(e){this.degree=e,this.genPoly=Rm.generateECPolynomial(this.degree)},"initialize");$l.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=Rm.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let i=new Uint8Array(this.degree);return i.set(n,r),i}return n},"encode");Om.exports=$l});var ed=O(Dm=>{"use strict";Dm.isValid=a(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var td=O(ln=>{"use strict";var Am="[0-9]+",JS="[A-Z $%*+\\-./:]+",yc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";yc=yc.replace(/u/g,"\\u");var _S="(?:(?![A-Z0-9 $%*+\\-./:]|"+yc+`)(?:.|[\r
3
+ ]))+`;ln.KANJI=new RegExp(yc,"g");ln.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ln.BYTE=new RegExp(_S,"g");ln.NUMERIC=new RegExp(Am,"g");ln.ALPHANUMERIC=new RegExp(JS,"g");var WS=new RegExp("^"+yc+"$"),KS=new RegExp("^"+Am+"$"),kS=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ln.testKanji=a(function(e){return WS.test(e)},"testKanji");ln.testNumeric=a(function(e){return KS.test(e)},"testNumeric");ln.testAlphanumeric=a(function(e){return kS.test(e)},"testAlphanumeric")});var Jn=O(Ve=>{"use strict";var $S=ed(),od=td();Ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Ve.MIXED={bit:-1};Ve.getCharCountIndicator=a(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!$S.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");Ve.getBestModeForData=a(function(e){return od.testNumeric(e)?Ve.NUMERIC:od.testAlphanumeric(e)?Ve.ALPHANUMERIC:od.testKanji(e)?Ve.KANJI:Ve.BYTE},"getBestModeForData");Ve.toString=a(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");Ve.isValid=a(function(e){return e&&e.bit&&e.ccBits},"isValid");function eC(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return Ve.NUMERIC;case"alphanumeric":return Ve.ALPHANUMERIC;case"kanji":return Ve.KANJI;case"byte":return Ve.BYTE;default:throw new Error("Unknown mode: "+o)}}a(eC,"fromString");Ve.from=a(function(e,t){if(Ve.isValid(e))return e;try{return eC(e)}catch{return t}},"from")});var zm=O(jr=>{"use strict";var $f=Yn(),tC=Kl(),xm=Xf(),_n=Jn(),id=ed(),Pm=7973,wm=$f.getBCHDigit(Pm);function oC(o,e,t){for(let n=1;n<=40;n++)if(e<=jr.getCapacity(n,t,o))return n}a(oC,"getBestVersionForDataLength");function Em(o,e){return _n.getCharCountIndicator(o,e)+4}a(Em,"getReservedBitsCount");function iC(o,e){let t=0;return o.forEach(function(n){let r=Em(n.mode,e);t+=r+n.getBitsLength()}),t}a(iC,"getTotalBitsFromDataArray");function nC(o,e){for(let t=1;t<=40;t++)if(iC(o,t)<=jr.getCapacity(t,e,_n.MIXED))return t}a(nC,"getBestVersionForMixedData");jr.from=a(function(e,t){return id.isValid(e)?parseInt(e,10):t},"from");jr.getCapacity=a(function(e,t,n){if(!id.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=_n.BYTE);let r=$f.getSymbolTotalCodewords(e),i=tC.getTotalCodewordsCount(e,t),s=(r-i)*8;if(n===_n.MIXED)return s;let c=s-Em(n,e);switch(n){case _n.NUMERIC:return Math.floor(c/10*3);case _n.ALPHANUMERIC:return Math.floor(c/11*2);case _n.KANJI:return Math.floor(c/13);case _n.BYTE:default:return Math.floor(c/8)}},"getCapacity");jr.getBestVersionForData=a(function(e,t){let n,r=xm.from(t,xm.M);if(Array.isArray(e)){if(e.length>1)return nC(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return oC(n.mode,n.getLength(),r)},"getBestVersionForData");jr.getEncodedBits=a(function(e){if(!id.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;$f.getBCHDigit(t)-wm>=0;)t^=Pm<<$f.getBCHDigit(t)-wm;return e<<12|t},"getEncodedBits")});var Bm=O(jm=>{"use strict";var nd=Yn(),Mm=1335,rC=21522,Tm=nd.getBCHDigit(Mm);jm.getEncodedBits=a(function(e,t){let n=e.bit<<3|t,r=n<<10;for(;nd.getBCHDigit(r)-Tm>=0;)r^=Mm<<nd.getBCHDigit(r)-Tm;return(n<<10|r)^rC},"getEncodedBits")});var Lm=O((XT,Vm)=>{"use strict";var sC=Jn();function ra(o){this.mode=sC.NUMERIC,this.data=o.toString()}a(ra,"NumericData");ra.getBitsLength=a(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");ra.prototype.getLength=a(function(){return this.data.length},"getLength");ra.prototype.getBitsLength=a(function(){return ra.getBitsLength(this.data.length)},"getBitsLength");ra.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 i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},"write");Vm.exports=ra});var Um=O((_T,Hm)=>{"use strict";var aC=Jn(),rd=["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 sa(o){this.mode=aC.ALPHANUMERIC,this.data=o}a(sa,"AlphanumericData");sa.getBitsLength=a(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");sa.prototype.getLength=a(function(){return this.data.length},"getLength");sa.prototype.getBitsLength=a(function(){return sa.getBitsLength(this.data.length)},"getBitsLength");sa.prototype.write=a(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=rd.indexOf(this.data[t])*45;n+=rd.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(rd.indexOf(this.data[t]),6)},"write");Hm.exports=sa});var Gm=O((KT,Qm)=>{"use strict";var cC=Jn();function aa(o){this.mode=cC.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}a(aa,"ByteData");aa.getBitsLength=a(function(e){return e*8},"getBitsLength");aa.prototype.getLength=a(function(){return this.data.length},"getLength");aa.prototype.getBitsLength=a(function(){return aa.getBitsLength(this.data.length)},"getBitsLength");aa.prototype.write=function(o){for(let e=0,t=this.data.length;e<t;e++)o.put(this.data[e],8)};Qm.exports=aa});var Zm=O(($T,qm)=>{"use strict";var fC=Jn(),pC=Yn();function ca(o){this.mode=fC.KANJI,this.data=o}a(ca,"KanjiData");ca.getBitsLength=a(function(e){return e*13},"getBitsLength");ca.prototype.getLength=a(function(){return this.data.length},"getLength");ca.prototype.getBitsLength=a(function(){return ca.getBitsLength(this.data.length)},"getBitsLength");ca.prototype.write=function(o){let e;for(e=0;e<this.data.length;e++){let t=pC.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),o.put(t,13)}};qm.exports=ca});var Ym=O((t2,sd)=>{"use strict";var Sc={single_source_shortest_paths:a(function(o,e,t){var n={},r={};r[e]=0;var i=Sc.PriorityQueue.make();i.push(e,0);for(var s,c,f,p,u,h,v,y,S;!i.empty();){s=i.pop(),c=s.value,p=s.cost,u=o[c]||{};for(f in u)u.hasOwnProperty(f)&&(h=u[f],v=p+h,y=r[f],S=typeof r[f]>"u",(S||y>v)&&(r[f]=v,i.push(f,v),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(o,e){for(var t=[],n=e,r;n;)t.push(n),r=o[n],n=o[n];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:a(function(o,e,t){var n=Sc.single_source_shortest_paths(o,e,t);return Sc.extract_shortest_path_from_predecessor_list(n,t)},"find_path"),PriorityQueue:{make:a(function(o){var e=Sc.PriorityQueue,t={},n;o=o||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=o.sorter||e.default_sorter,t},"make"),default_sorter:a(function(o,e){return o.cost-e.cost},"default_sorter"),push:a(function(o,e){var t={value:o,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 sd<"u"&&(sd.exports=Sc)});var eg=O(fa=>{"use strict";var U=Jn(),_m=Lm(),Wm=Um(),Km=Gm(),km=Zm(),Cc=td(),ep=Yn(),lC=Ym();function Xm(o){return unescape(encodeURIComponent(o)).length}a(Xm,"getStringByteLength");function bc(o,e,t){let n=[],r;for(;(r=o.exec(t))!==null;)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}a(bc,"getSegments");function $m(o){let e=bc(Cc.NUMERIC,U.NUMERIC,o),t=bc(Cc.ALPHANUMERIC,U.ALPHANUMERIC,o),n,r;return ep.isKanjiModeEnabled()?(n=bc(Cc.BYTE,U.BYTE,o),r=bc(Cc.KANJI,U.KANJI,o)):(n=bc(Cc.BYTE_KANJI,U.BYTE,o),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($m,"getSegmentsFromString");function ad(o,e){switch(e){case U.NUMERIC:return _m.getBitsLength(o);case U.ALPHANUMERIC:return Wm.getBitsLength(o);case U.KANJI:return km.getBitsLength(o);case U.BYTE:return Km.getBitsLength(o)}}a(ad,"getSegmentBitsLength");function dC(o){return o.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(dC,"mergeSegments");function uC(o){let e=[];for(let t=0;t<o.length;t++){let n=o[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:Xm(n.data)}]);break;case U.BYTE:e.push([{data:n.data,mode:U.BYTE,length:Xm(n.data)}])}}return e}a(uC,"buildNodes");function hC(o,e){let t={},n={start:{}},r=["start"];for(let i=0;i<o.length;i++){let s=o[i],c=[];for(let f=0;f<s.length;f++){let p=s[f],u=""+i+f;c.push(u),t[u]={node:p,lastCount:0},n[u]={};for(let h=0;h<r.length;h++){let v=r[h];t[v]&&t[v].node.mode===p.mode?(n[v][u]=ad(t[v].lastCount+p.length,p.mode)-ad(t[v].lastCount,p.mode),t[v].lastCount+=p.length):(t[v]&&(t[v].lastCount=p.length),n[v][u]=ad(p.length,p.mode)+4+U.getCharCountIndicator(p.mode,e))}}r=c}for(let i=0;i<r.length;i++)n[r[i]].end=0;return{map:n,table:t}}a(hC,"buildGraph");function Jm(o,e){let t,n=U.getBestModeForData(o);if(t=U.from(e,n),t!==U.BYTE&&t.bit<n.bit)throw new Error('"'+o+'" cannot be encoded with mode '+U.toString(t)+`.
5
+ Suggested mode is: `+U.toString(n));switch(t===U.KANJI&&!ep.isKanjiModeEnabled()&&(t=U.BYTE),t){case U.NUMERIC:return new _m(o);case U.ALPHANUMERIC:return new Wm(o);case U.KANJI:return new km(o);case U.BYTE:return new Km(o)}}a(Jm,"buildSingleSegment");fa.fromArray=a(function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(Jm(n,null)):n.data&&t.push(Jm(n.data,n.mode)),t},[])},"fromArray");fa.fromString=a(function(e,t){let n=$m(e,ep.isKanjiModeEnabled()),r=uC(n),i=hC(r,t),s=lC.find_path(i.map,"start","end"),c=[];for(let f=1;f<s.length-1;f++)c.push(i.table[s[f]].node);return fa.fromArray(dC(c))},"fromString");fa.rawSplit=a(function(e){return fa.fromArray($m(e,ep.isKanjiModeEnabled()))},"rawSplit")});var ud=O(tg=>{"use strict";var op=Yn(),cd=Xf(),mC=hm(),gC=gm(),vC=vm(),yC=Cm(),ld=bm(),dd=Kl(),SC=Fm(),tp=zm(),CC=Bm(),bC=Jn(),fd=eg();function NC(o,e){let t=o.size,n=yC.getPositions(e);for(let r=0;r<n.length;r++){let i=n[r][0],s=n[r][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||t<=i+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?o.set(i+c,s+f,!0,!0):o.set(i+c,s+f,!1,!0))}}a(NC,"setupFinderPattern");function IC(o){let e=o.size;for(let t=8;t<e-8;t++){let n=t%2===0;o.set(t,6,n,!0),o.set(6,t,n,!0)}}a(IC,"setupTimingPattern");function RC(o,e){let t=vC.getPositions(e);for(let n=0;n<t.length;n++){let r=t[n][0],i=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?o.set(r+s,i+c,!0,!0):o.set(r+s,i+c,!1,!0)}}a(RC,"setupAlignmentPattern");function OC(o,e){let t=o.size,n=tp.getEncodedBits(e),r,i,s;for(let c=0;c<18;c++)r=Math.floor(c/3),i=c%3+t-8-3,s=(n>>c&1)===1,o.set(r,i,s,!0),o.set(i,r,s,!0)}a(OC,"setupVersionInfo");function pd(o,e,t){let n=o.size,r=CC.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(r>>i&1)===1,i<6?o.set(i,8,s,!0):i<8?o.set(i+1,8,s,!0):o.set(n-15+i,8,s,!0),i<8?o.set(8,n-i-1,s,!0):i<9?o.set(8,15-i-1+1,s,!0):o.set(8,15-i-1,s,!0);o.set(n-8,8,1,!0)}a(pd,"setupFormatInfo");function FC(o,e){let t=o.size,n=-1,r=t-1,i=7,s=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let f=0;f<2;f++)if(!o.isReserved(r,c-f)){let p=!1;s<e.length&&(p=(e[s]>>>i&1)===1),o.set(r,c-f,p),i--,i===-1&&(s++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}a(FC,"setupData");function DC(o,e,t){let n=new mC;t.forEach(function(f){n.put(f.mode.bit,4),n.put(f.getLength(),bC.getCharCountIndicator(f.mode,o)),f.write(n)});let r=op.getSymbolTotalCodewords(o),i=dd.getTotalCodewordsCount(o,e),s=(r-i)*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 AC(n,o,e)}a(DC,"createData");function AC(o,e,t){let n=op.getSymbolTotalCodewords(e),r=dd.getTotalCodewordsCount(e,t),i=n-r,s=dd.getBlocksCount(e,t),c=n%s,f=s-c,p=Math.floor(n/s),u=Math.floor(i/s),h=u+1,v=p-u,y=new SC(v),S=0,N=new Array(s),x=new Array(s),z=0,we=new Uint8Array(o.buffer);for(let Hr=0;Hr<s;Hr++){let Fp=Hr<f?u:h;N[Hr]=we.slice(S,S+Fp),x[Hr]=y.encode(N[Hr]),S+=Fp,z=Math.max(z,Fp)}let te=new Uint8Array(n),_=0,Le,Oi;for(Le=0;Le<z;Le++)for(Oi=0;Oi<s;Oi++)Le<N[Oi].length&&(te[_++]=N[Oi][Le]);for(Le=0;Le<v;Le++)for(Oi=0;Oi<s;Oi++)te[_++]=x[Oi][Le];return te}a(AC,"createCodewords");function xC(o,e,t,n){let r;if(Array.isArray(o))r=fd.fromArray(o);else if(typeof o=="string"){let p=e;if(!p){let u=fd.rawSplit(o);p=tp.getBestVersionForData(u,t)}r=fd.fromString(o,p||40)}else throw new Error("Invalid data");let i=tp.getBestVersionForData(r,t);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
6
6
  The chosen QR Code version cannot contain this amount of data.
7
7
  Minimum version required to store current data is: `+i+`.
8
- `);let s=DC(e,t,r),c=op.getSymbolSize(e),f=new gC(c);return NC(f,e),IC(f),RC(f,e),pd(f,t,0),e>=7&&OC(f,e),FC(f,s),isNaN(n)&&(n=ld.getBestMask(f,pd.bind(null,f,t))),ld.applyMask(n,f),pd(f,t,n),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}a(xC,"createSymbol");tg.create=a(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=cd.M,r,i;return typeof t<"u"&&(n=cd.from(t.errorCorrectionLevel,cd.M),r=tp.from(t.version),i=ld.from(t.maskPattern),t.toSJISFunc&&op.setToSJISFunction(t.toSJISFunc)),xC(e,r,n,i)},"create")});var md=R((a2,ig)=>{"use strict";var wC=Ve("util"),og=Ve("stream"),Yo=ig.exports=function(){og.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};wC.inherits(Yo,og);Yo.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))};Yo.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};Yo.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()))};Yo.prototype.destroySoon=Yo.prototype.end;Yo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Yo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Yo.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))};Yo.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)};Yo.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 gd=R(hd=>{"use strict";var Wn=[{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]}];hd.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<Wn.length;c++){let f=Wn[c],p=i*f.x.length,u=s*f.y.length;for(let m=0;m<f.x.length&&f.x[m]<n;m++)p++;for(let m=0;m<f.y.length&&f.y[m]<r;m++)u++;p>0&&u>0&&t.push({width:p,height:u,index:c})}return t};hd.getInterlaceIterator=function(o){return function(e,t,n){let r=e%Wn[n].x.length,i=(e-r)/Wn[n].x.length*8+Wn[n].x[r],s=t%Wn[n].y.length,c=(t-s)/Wn[n].y.length*8+Wn[n].y[s];return i*4+c*o*4}}});var vd=R((f2,ng)=>{"use strict";ng.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 yd=R((l2,sg)=>{"use strict";var PC=gd(),EC=vd();function rg(o,e,t){let n=o*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}a(rg,"getByteWidth");var pa=sg.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=PC.getImagePasses(t,n);for(let f=0;f<c.length;f++)this._images.push({byteWidth:rg(c[f].width,i,s),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:rg(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,m=EC(p,f,u);e[s]=c+m}};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 fg=R((u2,cg)=>{"use strict";var zC=Ve("util"),ag=md(),TC=yd(),MC=cg.exports=function(o){ag.call(this);let e=[],t=this;this._filter=new TC(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()};zC.inherits(MC,ag)});var la=R((h2,pg)=>{"use strict";pg.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 bd=R((g2,lg)=>{"use strict";var Sd=[];(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;Sd[o]=e}})();var Cd=lg.exports=function(){this._crc=-1};Cd.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=Sd[(this._crc^o[e])&255]^this._crc>>>8;return!0};Cd.prototype.crc32=function(){return this._crc^-1};Cd.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=Sd[(e^o[t])&255]^e>>>8;return e^-1}});var Nd=R((v2,dg)=>{"use strict";var qe=la(),jC=bd(),Ke=dg.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[qe.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[qe.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[qe.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[qe.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[qe.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[qe.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(){}};Ke.prototype.start=function(){this.read(qe.PNG_SIGNATURE.length,this._parseSignature.bind(this))};Ke.prototype._parseSignature=function(o){let e=qe.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))};Ke.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!==qe.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new jC,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))};Ke.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};Ke.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};Ke.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))};Ke.prototype._handleIHDR=function(o){this.read(o,this._parseIHDR.bind(this))};Ke.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 qe.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=qe.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:t,depth:n,interlace:!!c,palette:!!(r&qe.COLORTYPE_PALETTE),color:!!(r&qe.COLORTYPE_COLOR),alpha:!!(r&qe.COLORTYPE_ALPHA),bpp:f,colorType:r}),this._handleChunkEnd()};Ke.prototype._handlePLTE=function(o){this.read(o,this._parsePLTE.bind(this))};Ke.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()};Ke.prototype._handleTRNS=function(o){this.simpleTransparency(),this.read(o,this._parseTRNS.bind(this))};Ke.prototype._parseTRNS=function(o){if(this._crc.write(o),this._colorType===qe.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===qe.COLORTYPE_GRAYSCALE&&this.transColor([o.readUInt16BE(0)]),this._colorType===qe.COLORTYPE_COLOR&&this.transColor([o.readUInt16BE(0),o.readUInt16BE(2),o.readUInt16BE(4)]),this._handleChunkEnd()};Ke.prototype._handleGAMA=function(o){this.read(o,this._parseGAMA.bind(this))};Ke.prototype._parseGAMA=function(o){this._crc.write(o),this.gamma(o.readUInt32BE(0)/qe.GAMMA_DIVISION),this._handleChunkEnd()};Ke.prototype._handleIDAT=function(o){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-o,this._parseIDAT.bind(this,o))};Ke.prototype._parseIDAT=function(o,e){if(this._crc.write(e),this._colorType===qe.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()};Ke.prototype._handleIEND=function(o){this.read(o,this._parseIEND.bind(this))};Ke.prototype._parseIEND=function(o){this._crc.write(o),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var Id=R(mg=>{"use strict";var ug=gd(),BC=[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]}],VC=[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 LC(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,m,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,m=i>>2&3,v=i>>4&3,y=i>>6&3,t.push(y,v,m,u);break;case 1:s=i&1,c=i>>1&1,f=i>>2&1,p=i>>3&1,u=i>>4&1,m=i>>5&1,v=i>>6&1,y=i>>7&1,t.push(y,v,m,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(LC,"bitRetriever");function UC(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 m=t(u,p,f);BC[n](e,r,m,i),i+=n}return i}a(UC,"mapImage8Bit");function HC(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 m=r.get(n),v=t(u,p,f);VC[n](e,m,v,i)}r.resetAfterLine()}}a(HC,"mapImageCustomBit");mg.dataToBitMap=function(o,e){let t=e.width,n=e.height,r=e.depth,i=e.bpp,s=e.interlace,c;r!==8&&(c=LC(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,m,v;if(s)m=ug.getImagePasses(t,n),v=ug.getInterlaceIterator(t,n);else{let y=0;v=a(function(){let C=y;return y+=4,C},"getPxPos"),m=[{width:t,height:n}]}for(let y=0;y<m.length;y++)r===8?u=UC(m[y],f,v,i,o,u):HC(m[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 Rd=R((C2,hg)=>{"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 GC(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(GC,"replaceTransparentColor");function qC(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(qC,"scaleDepth");hg.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&&GC(o,f,n,r,s),t!==8&&(t===16&&(f=Buffer.alloc(n*r*4)),qC(o,f,n,r,t))),f}});var yg=R((N2,vg)=>{"use strict";var ZC=Ve("util"),Od=Ve("zlib"),gg=md(),YC=fg(),XC=Nd(),JC=Id(),_C=Rd(),Ii=vg.exports=function(o){gg.call(this),this._parser=new XC(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()};ZC.inherits(Ii,gg);Ii.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};Ii.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Od.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,Od.Z_MIN_CHUNK);this._inflate=Od.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)};Ii.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new YC(this._bitmapInfo)};Ii.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};Ii.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};Ii.prototype._simpleTransparency=function(){this._metaData.alpha=!0};Ii.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};Ii.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};Ii.prototype._complete=function(o){if(this.errord)return;let e;try{let t=JC.dataToBitMap(o,this._bitmapInfo);e=_C(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Cg=R((I2,Sg)=>{"use strict";var ho=la();Sg.exports=function(o,e,t,n){let r=[ho.COLORTYPE_COLOR_ALPHA,ho.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let C=(function(){let F=new ArrayBuffer(2);return new DataView(F).setInt16(0,256,!0),new Int16Array(F)[0]!==256})();if(n.bitDepth===8||n.bitDepth===16&&C)return o}let i=n.bitDepth!==16?o:new Uint16Array(o.buffer),s=255,c=ho.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let f=ho.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(s=65535,f*=2);let p=Buffer.alloc(e*t*f),u=0,m=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 C,F,x,j=s;switch(n.inputColorType){case ho.COLORTYPE_COLOR_ALPHA:j=i[u+3],C=i[u],F=i[u+1],x=i[u+2];break;case ho.COLORTYPE_COLOR:C=i[u],F=i[u+1],x=i[u+2];break;case ho.COLORTYPE_ALPHA:j=i[u+1],C=i[u],F=C,x=C;break;case ho.COLORTYPE_GRAYSCALE:C=i[u],F=C,x=C;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(r||(j/=s,C=Math.min(Math.max(Math.round((1-j)*v.red+j*C),0),s),F=Math.min(Math.max(Math.round((1-j)*v.green+j*F),0),s),x=Math.min(Math.max(Math.round((1-j)*v.blue+j*x),0),s))),{red:C,green:F,blue:x,alpha:j}}a(y,"getRGBA");for(let C=0;C<t;C++)for(let F=0;F<e;F++){let x=y(i,u);switch(n.colorType){case ho.COLORTYPE_COLOR_ALPHA:case ho.COLORTYPE_COLOR:n.bitDepth===8?(p[m]=x.red,p[m+1]=x.green,p[m+2]=x.blue,r&&(p[m+3]=x.alpha)):(p.writeUInt16BE(x.red,m),p.writeUInt16BE(x.green,m+2),p.writeUInt16BE(x.blue,m+4),r&&p.writeUInt16BE(x.alpha,m+6));break;case ho.COLORTYPE_ALPHA:case ho.COLORTYPE_GRAYSCALE:{let j=(x.red+x.green+x.blue)/3;n.bitDepth===8?(p[m]=j,r&&(p[m+1]=x.alpha)):(p.writeUInt16BE(j,m),r&&p.writeUInt16BE(x.alpha,m+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}u+=c,m+=f}return p}});var Ig=R((O2,Ng)=>{"use strict";var bg=vd();function WC(o,e,t,n,r){for(let i=0;i<t;i++)n[r+i]=o[e+i]}a(WC,"filterNone");function KC(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++)n+=Math.abs(o[i]);return n}a(KC,"filterSumNone");function kC(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(kC,"filterSub");function $C(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($C,"filterSumSub");function eb(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(eb,"filterUp");function tb(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(tb,"filterSumUp");function ob(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(ob,"filterAvg");function ib(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(ib,"filterSumAvg");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=e>0&&s>=i?o[e+s-(t+i)]:0,u=o[e+s]-bg(c,f,p);n[r+s]=u}}a(nb,"filterPaeth");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=e>0&&i>=n?o[e+i-(t+n)]:0,p=o[e+i]-bg(s,c,f);r+=Math.abs(p)}return r}a(rb,"filterSumPaeth");var sb={0:WC,1:kC,2:eb,3:ob,4:nb},ab={0:KC,1:$C,2:tb,3:ib,4:rb};Ng.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 m=0;m<t;m++){if(i.length>1){let v=1/0;for(let y=0;y<i.length;y++){let C=ab[i[y]](o,f,s,r);C<v&&(u=i[y],v=C)}}p[c]=u,c++,sb[u](o,f,s,p,c,r),c+=s,f+=s}return p}});var Fd=R((D2,Rg)=>{"use strict";var At=la(),cb=bd(),fb=Cg(),pb=Ig(),lb=Ve("zlib"),Kn=Rg.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||lb.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=fb(o,e,t,this._options),r=At.COLORTYPE_TO_BPP_MAP[this._options.colorType];return pb(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(cb.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 Ag=R((A2,Dg)=>{"use strict";var db=Ve("util"),Og=Ve("stream"),ub=la(),mb=Fd(),Fg=Dg.exports=function(o){Og.call(this);let e=o||{};this._packer=new mb(e),this._deflate=this._packer.createDeflate(),this.readable=!0};db.inherits(Fg,Og);Fg.prototype.pack=function(o,e,t,n){this.emit("data",Buffer.from(ub.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 Tg=R((Nc,zg)=>{"use strict";var xg=Ve("assert").ok,da=Ve("zlib"),hb=Ve("util"),wg=Ve("buffer").kMaxLength;function Br(o){if(!(this instanceof Br))return new Br(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(Br,"Inflate");function gb(o){return new Br(o)}a(gb,"createInflate");function Pg(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}a(Pg,"_close");Br.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(C){u=C});function m(C,F){if(n._hadError)return;let x=i-F;if(xg(x>=0,"have should not go down"),x>0){let j=n._buffer.slice(n._offset,n._offset+x);if(n._offset+=x,j.length>s&&(j=j.slice(0,s)),f.push(j),p+=j.length,s-=j.length,s===0)return!1}return(F===0||n._offset>=n._chunkSize)&&(i=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),F===0?(c+=r-C,r=C,!0):!1}a(m,"handleChunk"),xg(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&&m(v[0],v[1]));if(this._hadError)throw u;if(p>=wg)throw Pg(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+wg.toString(16)+" bytes");let y=Buffer.concat(f,p);return Pg(this),y};hb.inherits(Br,da.Inflate);function vb(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(vb,"zlibBufferSync");function Eg(o,e){return vb(new Br(e),o)}a(Eg,"inflateSync");zg.exports=Nc=Eg;Nc.Inflate=Br;Nc.createInflate=gb;Nc.inflateSync=Eg});var Dd=R((w2,jg)=>{"use strict";var Mg=jg.exports=function(o){this._buffer=o,this._reads=[]};Mg.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};Mg.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 Vg=R(Bg=>{"use strict";var yb=Dd(),Sb=yd();Bg.process=function(o,e){let t=[],n=new yb(o);return new Sb(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=R((z2,Hg)=>{"use strict";var Lg=!0,Ug=Ve("zlib"),Cb=Tg();Ug.deflateSync||(Lg=!1);var bb=Dd(),Nb=Vg(),Ib=Nd(),Rb=Id(),Ob=Rd();Hg.exports=function(o,e){if(!Lg)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(ee){t=ee}a(n,"handleError");let r;function i(ee){r=ee}a(i,"handleMetaData");function s(ee){r.transColor=ee}a(s,"handleTransColor");function c(ee){r.palette=ee}a(c,"handlePalette");function f(){r.alpha=!0}a(f,"handleSimpleTransparency");let p;function u(ee){p=ee}a(u,"handleGamma");let m=[];function v(ee){m.push(ee)}a(v,"handleInflateData");let y=new bb(o);if(new Ib(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 F=Buffer.concat(m);m.length=0;let x;if(r.interlace)x=Ug.inflateSync(F);else{let ct=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;x=Cb(F,{chunkSize:ct,maxLength:ct})}if(F=null,!x||!x.length)throw new Error("bad png - invalid inflate data response");let j=Nb.process(x,r);F=null;let at=Rb.dataToBitMap(j,r);j=null;let be=Ob(at,r);return r.data=be,r.gamma=p||0,r}});var Yg=R((M2,Zg)=>{"use strict";var Gg=!0,qg=Ve("zlib");qg.deflateSync||(Gg=!1);var Fb=la(),Db=Fd();Zg.exports=function(o,e){if(!Gg)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 Db(t),r=[];r.push(Buffer.from(Fb.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=qg.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 Xg=R(Ad=>{"use strict";var Ab=Qg(),xb=Yg();Ad.read=function(o,e){return Ab(o,e||{})};Ad.write=function(o,e){return xb(o,e)}});var Wg=R(_g=>{"use strict";var wb=Ve("util"),Jg=Ve("stream"),Pb=yg(),Eb=Ag(),zb=Xg(),Mt=_g.PNG=function(o){Jg.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 Pb(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 Eb(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"))};wb.inherits(Mt,Jg);Mt.sync=zb;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=R(Vr=>{"use strict";function Kg(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(Kg,"hex2rgba");Vr.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:Kg(e.color.dark||"#000000ff"),light:Kg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");Vr.getScale=a(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");Vr.getImageWidth=a(function(e,t){let n=Vr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");Vr.qrToImageData=a(function(e,t,n){let r=t.modules.size,i=t.modules.data,s=Vr.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 m=0;m<c;m++){let v=(u*c+m)*4,y=n.color.light;if(u>=f&&m>=f&&u<c-f&&m<c-f){let C=Math.floor((u-f)/s),F=Math.floor((m-f)/s);y=p[i[C*r+F]?1:0]}e[v++]=y.r,e[v++]=y.g,e[v++]=y.b,e[v]=y.a}},"qrToImageData")});var kg=R(Ri=>{"use strict";var Tb=Ve("fs"),Mb=Wg().PNG,xd=Ic();Ri.render=a(function(e,t){let n=xd.getOptions(t),r=n.rendererOpts,i=xd.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let s=new Mb(r);return xd.qrToImageData(s.data,e,n),s},"render");Ri.renderToDataURL=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),Ri.renderToBuffer(e,t,function(r,i){r&&n(r);let s="data:image/png;base64,";s+=i.toString("base64"),n(null,s)})},"renderToDataURL");Ri.renderToBuffer=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=Ri.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");Ri.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=Tb.createWriteStream(e);c.on("error",s),c.on("close",s),Ri.renderToFileStream(c,t,n)},"renderToFile");Ri.renderToFileStream=a(function(e,t,n){Ri.render(t,n).pack().pipe(e)},"renderToFileStream")});var $g=R(ip=>{"use strict";var jb=Ic(),Bb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},Vb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function Lb(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}a(Lb,"getBlockChar");ip.render=function(o,e,t){let n=jb.getOptions(e),r=Bb;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=Vb);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 p=Array(n.margin+1).join(r.WW);c+=f;for(let u=0;u<i;u+=2){c+=p;for(let m=0;m<i;m++){let v=s[u*i+m],y=s[(u+1)*i+m];c+=Lb(v,y,r)}c+=p+`
10
- `}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};ip.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ve("fs"),s=ip.render(t,n);i.writeFile(e,s,r)},"renderToFile")});var tv=R(ev=>{"use strict";ev.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i="\x1B[40m \x1B[0m",s="\x1B[47m \x1B[0m",c="",f=Array(n+3).join(s),p=Array(2).join(s);c+=f+`
11
- `;for(let u=0;u<n;++u){c+=s;for(let m=0;m<n;m++)c+=r[u*n+m]?i:s;c+=p+`
8
+ `);let s=DC(e,t,r),c=op.getSymbolSize(e),f=new gC(c);return NC(f,e),IC(f),RC(f,e),pd(f,t,0),e>=7&&OC(f,e),FC(f,s),isNaN(n)&&(n=ld.getBestMask(f,pd.bind(null,f,t))),ld.applyMask(n,f),pd(f,t,n),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}a(xC,"createSymbol");tg.create=a(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=cd.M,r,i;return typeof t<"u"&&(n=cd.from(t.errorCorrectionLevel,cd.M),r=tp.from(t.version),i=ld.from(t.maskPattern),t.toSJISFunc&&op.setToSJISFunction(t.toSJISFunc)),xC(e,r,n,i)},"create")});var hd=O((a2,ig)=>{"use strict";var wC=He("util"),og=He("stream"),Yo=ig.exports=function(){og.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};wC.inherits(Yo,og);Yo.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))};Yo.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};Yo.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()))};Yo.prototype.destroySoon=Yo.prototype.end;Yo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Yo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Yo.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))};Yo.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)};Yo.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 gd=O(md=>{"use strict";var Wn=[{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]}];md.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<Wn.length;c++){let f=Wn[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};md.getInterlaceIterator=function(o){return function(e,t,n){let r=e%Wn[n].x.length,i=(e-r)/Wn[n].x.length*8+Wn[n].x[r],s=t%Wn[n].y.length,c=(t-s)/Wn[n].y.length*8+Wn[n].y[s];return i*4+c*o*4}}});var vd=O((f2,ng)=>{"use strict";ng.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 yd=O((l2,sg)=>{"use strict";var PC=gd(),EC=vd();function rg(o,e,t){let n=o*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}a(rg,"getByteWidth");var pa=sg.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=PC.getImagePasses(t,n);for(let f=0;f<c.length;f++)this._images.push({byteWidth:rg(c[f].width,i,s),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:rg(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=EC(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 fg=O((u2,cg)=>{"use strict";var zC=He("util"),ag=hd(),TC=yd(),MC=cg.exports=function(o){ag.call(this);let e=[],t=this;this._filter=new TC(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()};zC.inherits(MC,ag)});var la=O((m2,pg)=>{"use strict";pg.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 bd=O((g2,lg)=>{"use strict";var Sd=[];(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;Sd[o]=e}})();var Cd=lg.exports=function(){this._crc=-1};Cd.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=Sd[(this._crc^o[e])&255]^this._crc>>>8;return!0};Cd.prototype.crc32=function(){return this._crc^-1};Cd.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=Sd[(e^o[t])&255]^e>>>8;return e^-1}});var Nd=O((v2,dg)=>{"use strict";var Ye=la(),jC=bd(),$e=dg.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 jC,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 Id=O(hg=>{"use strict";var ug=gd(),BC=[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]}],VC=[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 LC(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(LC,"bitRetriever");function HC(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);BC[n](e,r,h,i),i+=n}return i}a(HC,"mapImage8Bit");function UC(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);VC[n](e,h,v,i)}r.resetAfterLine()}}a(UC,"mapImageCustomBit");hg.dataToBitMap=function(o,e){let t=e.width,n=e.height,r=e.depth,i=e.bpp,s=e.interlace,c;r!==8&&(c=LC(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=ug.getImagePasses(t,n),v=ug.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=HC(h[y],f,v,i,o,u):UC(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 Rd=O((C2,mg)=>{"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 GC(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(GC,"replaceTransparentColor");function qC(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(qC,"scaleDepth");mg.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&&GC(o,f,n,r,s),t!==8&&(t===16&&(f=Buffer.alloc(n*r*4)),qC(o,f,n,r,t))),f}});var yg=O((N2,vg)=>{"use strict";var ZC=He("util"),Od=He("zlib"),gg=hd(),YC=fg(),XC=Nd(),JC=Id(),_C=Rd(),Ii=vg.exports=function(o){gg.call(this),this._parser=new XC(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()};ZC.inherits(Ii,gg);Ii.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};Ii.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Od.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,Od.Z_MIN_CHUNK);this._inflate=Od.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)};Ii.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new YC(this._bitmapInfo)};Ii.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};Ii.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};Ii.prototype._simpleTransparency=function(){this._metaData.alpha=!0};Ii.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};Ii.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};Ii.prototype._complete=function(o){if(this.errord)return;let e;try{let t=JC.dataToBitMap(o,this._bitmapInfo);e=_C(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Cg=O((I2,Sg)=>{"use strict";var mo=la();Sg.exports=function(o,e,t,n){let r=[mo.COLORTYPE_COLOR_ALPHA,mo.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=mo.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let f=mo.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,x,z=s;switch(n.inputColorType){case mo.COLORTYPE_COLOR_ALPHA:z=i[u+3],S=i[u],N=i[u+1],x=i[u+2];break;case mo.COLORTYPE_COLOR:S=i[u],N=i[u+1],x=i[u+2];break;case mo.COLORTYPE_ALPHA:z=i[u+1],S=i[u],N=S,x=S;break;case mo.COLORTYPE_GRAYSCALE:S=i[u],N=S,x=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),x=Math.min(Math.max(Math.round((1-z)*v.blue+z*x),0),s))),{red:S,green:N,blue:x,alpha:z}}a(y,"getRGBA");for(let S=0;S<t;S++)for(let N=0;N<e;N++){let x=y(i,u);switch(n.colorType){case mo.COLORTYPE_COLOR_ALPHA:case mo.COLORTYPE_COLOR:n.bitDepth===8?(p[h]=x.red,p[h+1]=x.green,p[h+2]=x.blue,r&&(p[h+3]=x.alpha)):(p.writeUInt16BE(x.red,h),p.writeUInt16BE(x.green,h+2),p.writeUInt16BE(x.blue,h+4),r&&p.writeUInt16BE(x.alpha,h+6));break;case mo.COLORTYPE_ALPHA:case mo.COLORTYPE_GRAYSCALE:{let z=(x.red+x.green+x.blue)/3;n.bitDepth===8?(p[h]=z,r&&(p[h+1]=x.alpha)):(p.writeUInt16BE(z,h),r&&p.writeUInt16BE(x.alpha,h+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}u+=c,h+=f}return p}});var Ig=O((O2,Ng)=>{"use strict";var bg=vd();function WC(o,e,t,n,r){for(let i=0;i<t;i++)n[r+i]=o[e+i]}a(WC,"filterNone");function KC(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++)n+=Math.abs(o[i]);return n}a(KC,"filterSumNone");function kC(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(kC,"filterSub");function $C(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($C,"filterSumSub");function eb(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(eb,"filterUp");function tb(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(tb,"filterSumUp");function ob(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(ob,"filterAvg");function ib(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(ib,"filterSumAvg");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=e>0&&s>=i?o[e+s-(t+i)]:0,u=o[e+s]-bg(c,f,p);n[r+s]=u}}a(nb,"filterPaeth");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=e>0&&i>=n?o[e+i-(t+n)]:0,p=o[e+i]-bg(s,c,f);r+=Math.abs(p)}return r}a(rb,"filterSumPaeth");var sb={0:WC,1:kC,2:eb,3:ob,4:nb},ab={0:KC,1:$C,2:tb,3:ib,4:rb};Ng.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=ab[i[y]](o,f,s,r);S<v&&(u=i[y],v=S)}}p[c]=u,c++,sb[u](o,f,s,p,c,r),c+=s,f+=s}return p}});var Fd=O((D2,Rg)=>{"use strict";var At=la(),cb=bd(),fb=Cg(),pb=Ig(),lb=He("zlib"),Kn=Rg.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||lb.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=fb(o,e,t,this._options),r=At.COLORTYPE_TO_BPP_MAP[this._options.colorType];return pb(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(cb.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 Ag=O((A2,Dg)=>{"use strict";var db=He("util"),Og=He("stream"),ub=la(),hb=Fd(),Fg=Dg.exports=function(o){Og.call(this);let e=o||{};this._packer=new hb(e),this._deflate=this._packer.createDeflate(),this.readable=!0};db.inherits(Fg,Og);Fg.prototype.pack=function(o,e,t,n){this.emit("data",Buffer.from(ub.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 Tg=O((Nc,zg)=>{"use strict";var xg=He("assert").ok,da=He("zlib"),mb=He("util"),wg=He("buffer").kMaxLength;function Br(o){if(!(this instanceof Br))return new Br(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(Br,"Inflate");function gb(o){return new Br(o)}a(gb,"createInflate");function Pg(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}a(Pg,"_close");Br.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 x=i-N;if(xg(x>=0,"have should not go down"),x>0){let z=n._buffer.slice(n._offset,n._offset+x);if(n._offset+=x,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"),xg(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>=wg)throw Pg(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+wg.toString(16)+" bytes");let y=Buffer.concat(f,p);return Pg(this),y};mb.inherits(Br,da.Inflate);function vb(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(vb,"zlibBufferSync");function Eg(o,e){return vb(new Br(e),o)}a(Eg,"inflateSync");zg.exports=Nc=Eg;Nc.Inflate=Br;Nc.createInflate=gb;Nc.inflateSync=Eg});var Dd=O((w2,jg)=>{"use strict";var Mg=jg.exports=function(o){this._buffer=o,this._reads=[]};Mg.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};Mg.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 Vg=O(Bg=>{"use strict";var yb=Dd(),Sb=yd();Bg.process=function(o,e){let t=[],n=new yb(o);return new Sb(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=O((z2,Ug)=>{"use strict";var Lg=!0,Hg=He("zlib"),Cb=Tg();Hg.deflateSync||(Lg=!1);var bb=Dd(),Nb=Vg(),Ib=Nd(),Rb=Id(),Ob=Rd();Ug.exports=function(o,e){if(!Lg)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(_){t=_}a(n,"handleError");let r;function i(_){r=_}a(i,"handleMetaData");function s(_){r.transColor=_}a(s,"handleTransColor");function c(_){r.palette=_}a(c,"handlePalette");function f(){r.alpha=!0}a(f,"handleSimpleTransparency");let p;function u(_){p=_}a(u,"handleGamma");let h=[];function v(_){h.push(_)}a(v,"handleInflateData");let y=new bb(o);if(new Ib(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 x;if(r.interlace)x=Hg.inflateSync(N);else{let Le=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;x=Cb(N,{chunkSize:Le,maxLength:Le})}if(N=null,!x||!x.length)throw new Error("bad png - invalid inflate data response");let z=Nb.process(x,r);N=null;let we=Rb.dataToBitMap(z,r);z=null;let te=Ob(we,r);return r.data=te,r.gamma=p||0,r}});var Yg=O((M2,Zg)=>{"use strict";var Gg=!0,qg=He("zlib");qg.deflateSync||(Gg=!1);var Fb=la(),Db=Fd();Zg.exports=function(o,e){if(!Gg)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 Db(t),r=[];r.push(Buffer.from(Fb.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=qg.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 Xg=O(Ad=>{"use strict";var Ab=Qg(),xb=Yg();Ad.read=function(o,e){return Ab(o,e||{})};Ad.write=function(o,e){return xb(o,e)}});var Wg=O(_g=>{"use strict";var wb=He("util"),Jg=He("stream"),Pb=yg(),Eb=Ag(),zb=Xg(),Mt=_g.PNG=function(o){Jg.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 Pb(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 Eb(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"))};wb.inherits(Mt,Jg);Mt.sync=zb;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=O(Vr=>{"use strict";function Kg(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(Kg,"hex2rgba");Vr.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:Kg(e.color.dark||"#000000ff"),light:Kg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");Vr.getScale=a(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");Vr.getImageWidth=a(function(e,t){let n=Vr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");Vr.qrToImageData=a(function(e,t,n){let r=t.modules.size,i=t.modules.data,s=Vr.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 kg=O(Ri=>{"use strict";var Tb=He("fs"),Mb=Wg().PNG,xd=Ic();Ri.render=a(function(e,t){let n=xd.getOptions(t),r=n.rendererOpts,i=xd.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let s=new Mb(r);return xd.qrToImageData(s.data,e,n),s},"render");Ri.renderToDataURL=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),Ri.renderToBuffer(e,t,function(r,i){r&&n(r);let s="data:image/png;base64,";s+=i.toString("base64"),n(null,s)})},"renderToDataURL");Ri.renderToBuffer=a(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=Ri.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");Ri.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=Tb.createWriteStream(e);c.on("error",s),c.on("close",s),Ri.renderToFileStream(c,t,n)},"renderToFile");Ri.renderToFileStream=a(function(e,t,n){Ri.render(t,n).pack().pipe(e)},"renderToFileStream")});var $g=O(ip=>{"use strict";var jb=Ic(),Bb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},Vb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function Lb(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}a(Lb,"getBlockChar");ip.render=function(o,e,t){let n=jb.getOptions(e),r=Bb;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=Vb);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 p=Array(n.margin+1).join(r.WW);c+=f;for(let u=0;u<i;u+=2){c+=p;for(let h=0;h<i;h++){let v=s[u*i+h],y=s[(u+1)*i+h];c+=Lb(v,y,r)}c+=p+`
10
+ `}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};ip.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=He("fs"),s=ip.render(t,n);i.writeFile(e,s,r)},"renderToFile")});var tv=O(ev=>{"use strict";ev.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i="\x1B[40m \x1B[0m",s="\x1B[47m \x1B[0m",c="",f=Array(n+3).join(s),p=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]?i:s;c+=p+`
12
12
  `}return c+=f+`
13
- `,typeof t=="function"&&t(null,c),c}});var rv=R(nv=>{"use strict";var Ub="\x1B[47m",Hb="\x1B[40m",wd="\x1B[37m",Pd="\x1B[30m",Lr="\x1B[0m",Qb=Ub+Pd,Gb=Hb+wd,qb=a(function(o,e,t){return{"00":Lr+" "+o,"01":Lr+e+"\u2584"+o,"02":Lr+t+"\u2584"+o,10:Lr+e+"\u2580"+o,11:" ",12:"\u2584",20:Lr+t+"\u2580"+o,21:"\u2580",22:"\u2588"}},"createPalette"),ov=a(function(o,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 i=n*e+t;return o[i]?"2":"1"},"mkCodePixel"),iv=a(function(o,e,t,n){return ov(o,e,t,n)+ov(o,e,t,n+1)},"mkCode");nv.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i=!!(e&&e.inverse),s=e&&e.inverse?Gb:Qb,p=qb(s,i?Pd:wd,i?wd:Pd),u=Lr+`
14
- `+s,m=s;for(let v=-1;v<n+1;v+=2){for(let y=-1;y<n;y++)m+=p[iv(r,n,y,v)];m+=p[iv(r,n,n,v)]+u}return m+=Lr,typeof t=="function"&&t(null,m),m}});var av=R(sv=>{"use strict";var Zb=tv(),Yb=rv();sv.render=function(o,e,t){return e&&e.small?Yb.render(o,e,t):Zb.render(o,e,t)}});var zd=R(fv=>{"use strict";var Xb=Ic();function cv(o,e){let t=o.a/255,n=e+'="'+o.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}a(cv,"getColorAttrib");function Ed(o,e,t){let n=o+e;return typeof t<"u"&&(n+=" "+t),n}a(Ed,"svgCmd");function Jb(o,e,t){let n="",r=0,i=!1,s=0;for(let c=0;c<o.length;c++){let f=Math.floor(c%e),p=Math.floor(c/e);!f&&!i&&(i=!0),o[c]?(s++,c>0&&f>0&&o[c-1]||(n+=i?Ed("M",f+t,.5+p+t):Ed("m",r,0),r=0,i=!1),f+1<e&&o[c+1]||(n+=Ed("h",s),s=0)):r++}return n}a(Jb,"qrToPath");fv.render=a(function(e,t,n){let r=Xb.getOptions(t),i=e.modules.size,s=e.modules.data,c=i+r.margin*2,f=r.color.light.a?"<path "+cv(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",p="<path "+cv(r.color.dark,"stroke")+' d="'+Jb(s,i,r.margin)+'"/>',u='viewBox="0 0 '+c+" "+c+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+u+' shape-rendering="crispEdges">'+f+p+`</svg>
15
- `;return typeof n=="function"&&n(null,v),v},"render")});var pv=R(np=>{"use strict";var _b=zd();np.render=_b.render;np.renderToFile=a(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ve("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 lv=R(rp=>{"use strict";var Td=Ic();function Wb(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(Wb,"clearCanvas");function Kb(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}a(Kb,"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=Kb()),r=Td.getOptions(r);let s=Td.getImageWidth(e.modules.size,r),c=i.getContext("2d"),f=c.createImageData(s,s);return Td.qrToImageData(f.data,e,r),Wb(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 uv=R(Rc=>{"use strict";var kb=Jl(),Md=ud(),dv=lv(),$b=zd();function jd(o,e,t,n,r){let i=[].slice.call(arguments,1),s=i.length,c=typeof i[s-1]=="function";if(!c&&!kb())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=Md.create(t,n);f(o(u,e,n))}catch(u){p(u)}})}try{let f=Md.create(t,n);r(null,o(f,e,n))}catch(f){r(f)}}a(jd,"renderCanvas");Rc.create=Md.create;Rc.toCanvas=jd.bind(null,dv.render);Rc.toDataURL=jd.bind(null,dv.renderToDataURL);Rc.toString=jd.bind(null,function(o,e,t){return $b.render(o,t)})});var vv=R(kn=>{"use strict";var mv=Jl(),Bd=ud(),eN=kg(),hv=$g(),tN=av(),gv=pv();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(mv())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}a(Oc,"checkParams");function oN(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}a(oN,"getTypeFromFilename");function sp(o){switch(o){case"svg":return gv;case"txt":case"utf8":return hv;default:return eN}}a(sp,"getRendererFromType");function iN(o){switch(o){case"svg":return gv;case"terminal":return tN;default:return hv}}a(iN,"getStringRendererFromType");function Fc(o,e,t){if(!t.cb)return new Promise(function(n,r){try{let i=Bd.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=Bd.create(e,t.opts);return o(n,t.opts,t.cb)}catch(n){t.cb(n)}}a(Fc,"render");kn.create=Bd.create;kn.toCanvas=uv().toCanvas;kn.toString=a(function(e,t,n){let r=Oc(e,t,n),i=r.opts?r.opts.type:void 0,s=iN(i);return Fc(s.render,e,r)},"toString");kn.toDataURL=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToDataURL,e,r)},"toDataURL");kn.toBuffer=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToBuffer,e,r)},"toBuffer");kn.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&&!mv())throw new Error("Too few arguments provided");let i=Oc(t,n,r),s=i.opts.type||oN(e),f=sp(s).renderToFile.bind(null,e);return Fc(f,t,i)},"toFile");kn.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 Vd=R((nM,yv)=>{"use strict";yv.exports=vv()});import{NFeTsError as Dv}from"nfets/core";var Ac=class extends Dv{static{a(this,"XmlValidationError")}xml;name="XmlValidationError";constructor(e,t,n){super(e,n),this.xml=t}};var Le=(function(o){return o.Normal="1",o.EPEC="4",o.SVCAN="6",o.SVCRS="7",o.OFFLINE="9",o})({});var Ue=(function(o){return o.Cancelamento="110111",o.CancelamentoSubstituicao="110112",o.ConfirmacaoOperacao="210200",o.CienciaOperacao="210210",o.DesconhecimentoOperacao="210220",o.OperacaoNaoRealizada="210240",o})({});var Gd=(function(o){return o.RegistradoEVinculado="135",o})({}),qd=(function(o){return o.RegistradoEVinculado="135",o.RegistradoNaoVinculado="136",o.CancelamentoHomologadoForaPrazo="155",o})({});var Zd=(function(o){return o.InutilizacaoHomologada="102",o})({});import{search as Yd}from"nfets/core";var Hr={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"},RN=[Hr.PL_009_V4],jt=[Hr.PL_010_V1,Hr.PL_010_V1_21,Hr.PL_010_V1_30],Xd=Hr.PL_009_V4,xc=a(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Yd("packages/nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Yd("nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Jd=Hr;var Av=2.834645669291339,D=a(o=>o*Av,"mm"),DN={A4:[D(210),D(297)]},_d={top:D(5),right:D(5),bottom:D(5),left:D(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"),m=`${t}${n}${r}${i}${s}${c}${f}${p}${u}`;return`${m}${this.verifyingDigit(m)}`}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,m,v,y,C]=n;return{cUF:i,year:s,month:c,identification:f,mod:p,serie:u,nNF:m,tpEmis:v,cNF:y,vd:C}}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 xv}from"nfets/core";import{left as Dp,NFeTsError as Ap,right as Wd}from"nfets/core";var wv=new Set([Ue.Cancelamento,Ue.CancelamentoSubstituicao]),Kd=class{static{a(this,"NfeComplements")}toolkit;constructor(e=new xv){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return Dp(new Ap("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return Dp(new Ap("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return Dp(new Ap("Access key not found in protNFe"));let i=this.findMatchingRetEvento(t,r);return i?Wd(this.toolkit.appendNode(e,i)):Wd(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(qd).includes(r)&&i&&wv.has(i)&&s===t)return n}return null}};import{Decimal as kd}from"nfets/core";var Pc=class{static{a(this,"DefaultDetBuilderAggregator")}builder;zero=kd.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 kd.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as xp}from"nfets/core";var Ec=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=xp.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:xp.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=xp.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 Gy,Validates as qy,left as Zy}from"nfets/core";var Qr={[Ue.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"},[Ue.CancelamentoSubstituicao]:{method:"envEventoCancSubstNFe",version:"1.00",descEvento:"Cancelamento por substituicao"},[Ue.ConfirmacaoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Confirmacao da Operacao"},[Ue.CienciaOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Ciencia da Operacao"},[Ue.DesconhecimentoOperacao]:{method:"envConfRecebto",version:"1.00",descEvento:"Desconhecimento da Operacao"},[Ue.OperacaoNaoRealizada]:{method:"envConfRecebto",version:"1.00",descEvento:"Operacao nao Realizada"}};import{left as lu,NFeTsError as du,right as uu}from"nfets/core";import{Xml2JsToolkit as Pv,NativeCertificateRepository as Ev,SoapRemoteTransmissionRepository as zv,MemoryCacheAdapter as Tv}from"nfets/core";import{EntitySigner as Mv,ValidateErrorsMetadata as jv,XmlSigner as Bv}from"nfets/core";var Gr=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=Qd.create();toolkit=new Pv;caching=new Tv;certificates=new Ev(this.http,this.caching);soap=new zv(this.toolkit,this.certificates);signer=new Mv(this.toolkit,this.certificates);xmlSigner=new Bv(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(jv,this)}};import Ay from"path";import{NFeTsError as xy,StateCodes as wy}from"nfets/core";import{ValidateErrorsMetadata as pu,Validates as mn}from"nfets/core";import{left as Py,right as Ey}from"nfets/core";import{StateCodes as Vv,Environment as Lv}from"nfets/core";import{Type as Uv}from"class-transformer";import{IsEnum as $d,IsNotEmptyObject as Hv,IsObject as Qv,ValidateNested as Gv,IsOptional as qv}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 Pp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Pp,"_ts_metadata");var dn=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};zc([$d(Lv),Pp("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dn.prototype,"tpAmb",void 0);zc([$d(Vv),Pp("design:type",typeof StateCode>"u"?Object:StateCode)],dn.prototype,"cUF",void 0);zc([qv()],dn.prototype,"xServ",void 0);var wp=class{static{a(this,"ConsultStatusRequest")}consStatServ};zc([Hv(),Qv(),Gv(),Uv(()=>dn),Pp("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],wp.prototype,"consStatServ",void 0);import{Choice as Zv}from"nfets/core";import{StateCodes as Yv,Environment as Xv}from"nfets/core";import{Type as Ep}from"class-transformer";import{IsEnum as eu,IsOptional as Mc,IsString as go,Length as tu,MinLength as Jv,MaxLength as _v,Matches as Oa,ValidateNested as zp,Allow as Wv,IsObject as ou}from"class-validator";function He(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(He,"_ts_decorate");function $e(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a($e,"_ts_metadata");var Tc=class{static{a(this,"InfInutAttributes")}Id};He([go(),$e("design:type",String)],Tc.prototype,"Id",void 0);var Ra=class{static{a(this,"InutNFeAttributes")}xmlns;versao};He([go(),$e("design:type",String)],Ra.prototype,"xmlns",void 0);He([go(),Mc(),$e("design:type",String)],Ra.prototype,"versao",void 0);var ke=class{static{a(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};He([zp(),Ep(()=>Tc),$e("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],ke.prototype,"$",void 0);He([eu(Xv),$e("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ke.prototype,"tpAmb",void 0);He([Mc()],ke.prototype,"xServ",void 0);He([eu(Yv),$e("design:type",typeof StateCode>"u"?Object:StateCode)],ke.prototype,"cUF",void 0);He([go(),tu(2,2),Oa(/^[0-9]{2}$/),$e("design:type",String)],ke.prototype,"ano",void 0);He([go(),Mc(),$e("design:type",String)],ke.prototype,"CNPJ",void 0);He([go(),Mc(),$e("design:type",String)],ke.prototype,"CPF",void 0);He([go(),tu(2,2),Oa(/^(55|65)$/),$e("design:type",String)],ke.prototype,"mod",void 0);He([go(),Oa(/^[0-9]{1,3}$/),$e("design:type",String)],ke.prototype,"serie",void 0);He([go(),Oa(/^[0-9]{1,9}$/),$e("design:type",String)],ke.prototype,"nNFIni",void 0);He([go(),Oa(/^[0-9]{1,9}$/),$e("design:type",String)],ke.prototype,"nNFFin",void 0);He([go(),Jv(15),_v(255),$e("design:type",String)],ke.prototype,"xJust",void 0);ke=He([Zv({properties:["CNPJ","CPF"],required:!0})],ke);var Fi=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};He([ou(),zp(),Ep(()=>Ra),$e("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Fi.prototype,"$",void 0);He([ou(),zp(),Ep(()=>ke),$e("design:type",typeof IInfInut>"u"?Object:IInfInut)],Fi.prototype,"infInut",void 0);He([Wv(),$e("design:type",typeof Signature>"u"?Object:Signature)],Fi.prototype,"Signature",void 0);import{Environment as Kv}from"nfets/core";import{IsEnum as kv,IsOptional as $v,IsString as ey,Length as ty,Matches as oy}from"class-validator";function Tp(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(Tp,"_ts_decorate");function iu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(iu,"_ts_metadata");var or=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};Tp([kv(Kv),iu("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],or.prototype,"tpAmb",void 0);Tp([$v()],or.prototype,"xServ",void 0);Tp([ey(),ty(44,44),oy(/^[A-Z0-9]{44}$/),iu("design:type",String)],or.prototype,"chNFe",void 0);import{StateCodes as iy,Environment as ny}from"nfets/core";import{IsEnum as Mp,IsOptional as Bc,IsString as ry,IsNotEmpty as sy}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 vo=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Fa([Mp(ny),Bc(),jc("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],vo.prototype,"tpAmb",void 0);Fa([Mp(iy),Bc(),jc("design:type",typeof StateCode>"u"?Object:StateCode)],vo.prototype,"cUF",void 0);Fa([ry(),Bc(),jc("design:type",String)],vo.prototype,"idLote",void 0);Fa([Bc(),Mp(["0","1"])],vo.prototype,"indSinc",void 0);Fa([sy(),jc("design:type",typeof T>"u"?Object:T)],vo.prototype,"NFe",void 0);import{Environment as ay}from"nfets/core";import{IsEnum as cy,IsString as fy}from"class-validator";function nu(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(nu,"_ts_decorate");function ru(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ru,"_ts_metadata");var qr=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;nRec};nu([cy(ay),ru("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],qr.prototype,"tpAmb",void 0);nu([fy(),ru("design:type",String)],qr.prototype,"nRec",void 0);import{IsString as Di,IsNotEmpty as py,ValidateNested as Uc,IsObject as Hc,IsOptional as su,IsEnum as ly,IsNumber as dy,Allow as uy}from"class-validator";import{Type as Qc}from"class-transformer";import{Choice as my,TransformDateString as hy}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 Ye(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ye,"_ts_metadata");var Vc=class{static{a(this,"InfEventoAttributes")}Id};Qe([Di(),Ye("design:type",String)],Vc.prototype,"Id",void 0);var Ze=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Qe([Hc(),Uc(),Qc(()=>Vc),Ye("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Ze.prototype,"$",void 0);Qe([Di(),Ye("design:type",typeof StateCode>"u"?Object:StateCode)],Ze.prototype,"cOrgao",void 0);Qe([Di(),Ye("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ze.prototype,"tpAmb",void 0);Qe([Di(),su(),Ye("design:type",String)],Ze.prototype,"CNPJ",void 0);Qe([Di(),su(),Ye("design:type",String)],Ze.prototype,"CPF",void 0);Qe([Di(),Ye("design:type",String)],Ze.prototype,"chNFe",void 0);Qe([hy({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ye("design:type",String)],Ze.prototype,"dhEvento",void 0);Qe([ly(Ue),Ye("design:type",typeof Ue>"u"?Object:Ue)],Ze.prototype,"tpEvento",void 0);Qe([dy(),Ye("design:type",Number)],Ze.prototype,"nSeqEvento",void 0);Qe([Di(),Ye("design:type",String)],Ze.prototype,"verEvento",void 0);Qe([Hc(),Ye("design:type",typeof T>"u"?Object:T)],Ze.prototype,"detEvento",void 0);Ze=Qe([my({properties:["CNPJ","CPF"],required:!0})],Ze);var Lc=class{static{a(this,"EventoItemAttributes")}xmlns};Qe([Di(),Ye("design:type",String)],Lc.prototype,"xmlns",void 0);var Xo=class{static{a(this,"EventoItem")}$;infEvento;Signature};Qe([Hc(),Uc(),Qc(()=>Lc),Ye("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Xo.prototype,"$",void 0);Qe([Hc(),Uc(),Qc(()=>Ze),Ye("design:type",typeof Ze>"u"?Object:Ze)],Xo.prototype,"infEvento",void 0);Qe([uy(),Ye("design:type",typeof Signature>"u"?Object:Signature)],Xo.prototype,"Signature",void 0);var Zr=class{static{a(this,"EventoPayload")}idLote;evento};Qe([Di(),Ye("design:type",String)],Zr.prototype,"idLote",void 0);Qe([py(),Uc(),Qc(()=>Xo),Ye("design:type",typeof Xo>"u"?Object:Xo)],Zr.prototype,"evento",void 0);import{StateAcronyms as gy}from"nfets/core";import{Choice as vy}from"nfets/core";import{IsIn as yy,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 yo=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};Yr([qc()],yo.prototype,"xServ",void 0);Yr([Zc(),yy(Object.values(gy)),Gc("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],yo.prototype,"UF",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"IE",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"CNPJ",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"CPF",void 0);yo=Yr([vy({properties:["IE","CNPJ","CPF"],required:!0})],yo);import{StateCodes as Sy,Environment as Cy}from"nfets/core";import{Choice as by}from"nfets/core";import{Type as Ny}from"class-transformer";import{IsEnum as au,IsObject as Iy,IsOptional as cu,IsString as jp,Length as Ry,Matches as Oy,ValidateNested as Fy}from"class-validator";function ir(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(ir,"_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};ir([jp(),Ry(44,44),Oy(/^[A-Z0-9]{44}$/),Xr("design:type",String)],Yc.prototype,"chNFe",void 0);var So=class{static{a(this,"DistribuicaoDFePayload")}tpAmb;cUFAutor;CNPJ="";CPF="";consChNFe};ir([au(Cy),Xr("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],So.prototype,"tpAmb",void 0);ir([au(Sy),Xr("design:type",typeof StateCode>"u"?Object:StateCode)],So.prototype,"cUFAutor",void 0);ir([cu(),jp(),Xr("design:type",String)],So.prototype,"CNPJ",void 0);ir([cu(),jp(),Xr("design:type",String)],So.prototype,"CPF",void 0);ir([Iy(),Fy(),Ny(()=>Yc),Xr("design:type",typeof IConsChNFe>"u"?Object:IConsChNFe)],So.prototype,"consChNFe",void 0);So=ir([by({properties:["CNPJ","CPF"],required:!0})],So);import{Environment as L}from"nfets/core";var Bp={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 _}from"nfets/core";var Dy={[_.AC]:"SVRS",[_.AL]:"SVRS",[_.AM]:"AM",[_.AP]:"SVRS",[_.BA]:"BA",[_.CE]:"SVRS",[_.DF]:"SVRS",[_.ES]:"SVRS",[_.GO]:"GO",[_.MA]:"SVAN",[_.MG]:"MG",[_.MS]:"MS",[_.MT]:"MT",[_.PA]:"SVRS",[_.PB]:"SVRS",[_.PE]:"PE",[_.PI]:"SVRS",[_.PR]:"PR",[_.RJ]:"SVRS",[_.RN]:"SVRS",[_.RO]:"SVRS",[_.RR]:"SVRS",[_.RS]:"RS",[_.SC]:"SVRS",[_.SE]:"SVRS",[_.SP]:"SP",[_.TO]:"SVRS",91:"AN",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},fu=Dy;import{StateCodes as W}from"nfets/core";var Xc={[W.AC]:"SVCAN",[W.AL]:"SVCAN",[W.AM]:"SVCRS",[W.AP]:"SVCAN",[W.BA]:"SVCRS",[W.CE]:"SVCAN",[W.DF]:"SVCAN",[W.ES]:"SVCAN",[W.GO]:"SVCRS",[W.MA]:"SVCRS",[W.MG]:"SVCAN",[W.MS]:"SVCRS",[W.MT]:"SVCRS",[W.PA]:"SVCAN",[W.PB]:"SVCAN",[W.PE]:"SVCRS",[W.PI]:"SVCAN",[W.PR]:"SVCRS",[W.RJ]:"SVCAN",[W.RN]:"SVCAN",[W.RO]:"SVCAN",[W.RR]:"SVCAN",[W.RS]:"SVCAN",[W.SC]:"SVCAN",[W.SE]:"SVCAN",[W.SP]:"SVCAN",[W.TO]:"SVCAN"};function un(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(un,"_ts_decorate");function ne(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ne,"_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??=Jd.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]:fu[t];return Bp[r][n][e.service]}errors(){return Reflect.getMetadata(pu,this)}validate(e){try{let t=this.errors();return t?Py(new xy(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ey(e))}finally{Reflect.deleteMetadata(pu,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return Ay.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:wy[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=Bp.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})}};un([mn(dn),ne("design:type",Function),ne("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),ne("design:returntype",Promise)],Bt.prototype,"consultStatus",null);un([mn(Fi),ne("design:type",Function),ne("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),ne("design:returntype",Promise)],Bt.prototype,"inutilizacao",null);un([mn(or),ne("design:type",Function),ne("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),ne("design:returntype",Promise)],Bt.prototype,"consultaProtocolo",null);un([mn(vo),ne("design:type",Function),ne("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),ne("design:returntype",Promise)],Bt.prototype,"autorizacao",null);un([mn(qr),ne("design:type",Function),ne("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),ne("design:returntype",Promise)],Bt.prototype,"retAutorizacao",null);un([mn(Zr),ne("design:type",Function),ne("design:paramtypes",[Object]),ne("design:returntype",Promise)],Bt.prototype,"recepcaoEvento",null);un([mn(yo),ne("design:type",Function),ne("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),ne("design:returntype",Promise)],Bt.prototype,"consultaCadastro",null);un([mn(So),ne("design:type",Function),ne("design:paramtypes",[typeof IDistribuicaoDFePayload>"u"?Object:IDistribuicaoDFePayload]),ne("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 lu(new du("CNPJ/CPF do emitente \xE9 obrigat\xF3rio"));if(t.length===11)return uu({CPF:t,idDigits:t.padStart(14,"0")});let n=t.padStart(14,"0");return n.length!==14?lu(new du("CNPJ/CPF do emitente \xE9 inv\xE1lido")):uu({CNPJ:n,idDigits:n})}};import{StateCodes as zy}from"nfets/core";import{Decimal as Ty}from"nfets/core";var My=["MT"],jy=[zy.MT],By=[[/[áàâãªä]/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 Vy(o){if(!o)return!1;let e=o.toUpperCase();return My.includes(e)||jy.includes(e)}a(Vy,"shouldStripSefazAccents");function Ly(o){return By.reduce((e,[t,n])=>e.replace(t,n),o)}a(Ly,"replaceSefazSpecialChars");function Jr(o,e){return Vy(e)?Vp(o):o}a(Jr,"sanitizeSefazText");function Uy(o){return o===null||typeof o!="object"||o instanceof Date||o instanceof Ty?!1:!ArrayBuffer.isView(o)}a(Uy,"isWalkableObject");function Vp(o){if(typeof o=="string")return Ly(o);if(Array.isArray(o))return o.map(n=>Vp(n));if(!Uy(o))return o;let e={};for(let[t,n]of Object.entries(o))e[t]=Vp(n);return e}a(Vp,"walk");function Hy(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(Hy,"_ts_decorate");function Lp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Lp,"_ts_metadata");var nr=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,m=["ID",e,u,f.toString().padStart(2,"0")].join(""),v=Jr({$:{xmlns:this.xmlns},infEvento:{$:{Id:m},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(Gd).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?Zy(new Qy(t.join(", "))):Gy(e)}};Hy([qy(Xo),Lp("design:type",Function),Lp("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Lp("design:returntype",void 0)],nr.prototype,"validated",null);import{left as Yy,NFeTsError as Xy,right as Jy}from"nfets/core";var Jc=class extends nr{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(Ue.Cancelamento,n,t);if(r.isLeft())return r;let i=r.value,s=Qr[Ue.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 Yy(new Xy("Evento de cancelamento n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return Jy({xml:u,response:f})}};var rr=(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 _y}from"nfets/core";var Da=class extends _y{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 _c,right as Aa,NFeTsError as Wy}from"nfets/core";var hn=(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 Wc=class extends ft{static{a(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=rr.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===rr.Synchronous&&this.isSyncResponse(c)?Aa(await this.response(r.value,c)):e.indSinc===rr.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):_c(new Da)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(hn).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()?_c(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())?_c(new Wy("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??rr.Synchronous;return r===rr.Asynchronous&&n!==Up.LotReceived.toString()||r===rr.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 _c(new Da)}contingency(e){let{dhCont:t,xJust:n,tpEmis:r}=e.infNFe.ide;if(!(!t||!n||r===Le.Normal))return{dhCont:t,xJust:n}}};import{left as mu,NFeTsError as hu,right as gu,Validates as ky}from"nfets/core";function Ky(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(Ky,"_ts_decorate");function Hp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Hp,"_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 m=u.value,v=m.retInutNFe;if(!v)return mu(new hu("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=v.$.versao,C=await this.protocol(this.versionedInutNFe(p.value,y),v,y);return gu({xml:C,response:m})}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(Zd).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?mu(new hu(t.join(", "))):gu(e)}};Ky([ky(Fi),Hp("design:type",Function),Hp("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Hp("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 vu=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 $y,NFeTsError as e0,right as t0}from"nfets/core";var yu=class extends nr{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 $y(new e0("Evento de manifesta\xE7\xE3o n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return t0({xml:u,response:f})}};import{gunzipSync as o0}from"zlib";import{right as i0}from"nfets/core";var Su=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 i0({response:s,xml:c?o0(Buffer.from(c.$value,"base64")).toString("utf8"):void 0})}};import n0 from"crypto";import{right as $c,SignatureAlgorithm as r0,unreachable as s0}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):s0(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!==Le.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(""),m=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${f}|${i}|${m}|${v}|${u}|${s}`}async execute200(e,t){let{urlService:n,CSC:r}=t,i=this.getSequence(e,t),s=n0.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!==Le.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:m}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),v=`${s}|${c}|${i}|${f}|${p}|${u}|${m}`,y=await this.certificateRepository.sign(v,t.certificate,r0.SHA1);return y.isLeft()?y:$c(`${r}${v}|${y.value}`)}};import{StateCodes as Iu}from"nfets/core";import{Environment as O}from"nfets/core";var Qp={AC:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[O.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"}},[O.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:{[O.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"}},[O.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:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[O.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"}},[O.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:{[O.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[O.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[O.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"}},[O.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:{[O.Homolog]:{},[O.Production]:{}}};import{Environment as Cu,StateCodes as A}from"nfets/core";var bu={[Cu.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"},[Cu.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 K}from"nfets/core";var a0={[K.AC]:"SVRS",[K.AL]:"SVRS",[K.AM]:"AM",[K.AP]:"SVRS",[K.BA]:"SVRS",[K.CE]:"SVRS",[K.DF]:"SVRS",[K.ES]:"SVRS",[K.GO]:"GO",[K.MA]:"SVRS",[K.MG]:"MG",[K.MS]:"MS",[K.MT]:"MT",[K.PA]:"SVRS",[K.PB]:"SVRS",[K.PE]:"SVRS",[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",SVRS:"SVRS"},Nu=a0;var ef=class extends vo{static{a(this,"NfceAutorizacaoPayload")}};import{Validates as f0}from"nfets/core";function c0(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(c0,"_ts_decorate");function Gp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Gp,"_ts_metadata");var et=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=Nu[t],c=Qp[r][n][e.service];if(c)return c;let f=Object.keys(Iu).find(p=>Iu[p]===t);return Qp[f][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return bu[n][t]}async autorizacao(e){return super.autorizacao(e)}};c0([f0(ef),Gp("design:type",Function),Gp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Gp("design:returntype",Promise)],et.prototype,"autorizacao",null);var Ru=class extends Jc{static{a(this,"NfceCancelPipeline")}qrCode=new pt(this.certificates);transmitter=new et(this.soap,this.qrCode)};var tf=class extends Wc{static{a(this,"NfceAuthorizerPipeline")}certificate;qrCode=new pt(this.certificates);transmitter=new et(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};import{DigestAlgorithm as p0,SignatureAlgorithm as Ou,left as qp,right as of,NFeTsError as Zp}from"nfets/core";var Fu=class extends tf{static{a(this,"NfceContingencyXmlAuthorizerPipeline")}certificate;qrCode=new pt(this.certificates);transmitter=new et(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 qp(r?.value??new Zp("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 qp(new Zp("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?qp(new Zp("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===p0.SHA256?Ou.SHA256:Ou.SHA1}};var Du=class extends xa{static{a(this,"NfceVoidRangePipeline")}qrCode=new pt(this.certificates);transmitter=new et(this.soap,this.qrCode)};var Au=class extends Kc{static{a(this,"NfceConsultStatusPipeline")}qrCode=new pt(this.certificates);transmitter=new et(this.soap,this.qrCode)};var xu=class extends kc{static{a(this,"NfceConsultProtocoloPipeline")}qrCode=new pt(this.certificates);transmitter=new et(this.soap,this.qrCode)};import zS from"path";import{left as TS,right as Gl}from"nfets/core";import{Allow as FS,IsNotEmpty as DS,IsNotEmptyObject as th,IsObject as oh,IsString as AS,ValidateNested as ih}from"class-validator";import{ArrayMaxSize as $m,ArrayMinSize as OS,IsNotEmptyObject as Ul,IsObject as Hl,IsOptional as st,IsString as eh,ValidateNested as Re}from"class-validator";import{Type as Oe}from"class-transformer";import{ArrayMaxSize as wu,IsArray as Pu,IsEnum as l0,IsOptional as Ne,IsString as P,ValidateNested as Wr}from"class-validator";import{Type as Kr}from"class-transformer";import{Choice as d0,TransformDateString as rf,TransformDecimal as u0}from"nfets/core";import{StateCodes as m0}from"nfets/core";function N(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(N,"_ts_decorate");function I(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(I,"_ts_metadata");var Ai=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};N([P(),I("design:type",String)],Ai.prototype,"cUF",void 0);N([P(),I("design:type",String)],Ai.prototype,"AAMM",void 0);N([P(),I("design:type",String)],Ai.prototype,"CNPJ",void 0);N([P(),I("design:type",String)],Ai.prototype,"mod",void 0);N([P(),I("design:type",String)],Ai.prototype,"serie",void 0);N([P(),I("design:type",String)],Ai.prototype,"nNF",void 0);var Qt=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};N([P(),I("design:type",String)],Qt.prototype,"cUF",void 0);N([P(),I("design:type",String)],Qt.prototype,"AAMM",void 0);N([Ne(),P(),I("design:type",String)],Qt.prototype,"CNPJ",void 0);N([Ne(),P(),I("design:type",String)],Qt.prototype,"CPF",void 0);N([P(),I("design:type",String)],Qt.prototype,"IE",void 0);N([P(),I("design:type",String)],Qt.prototype,"mod",void 0);N([P(),I("design:type",String)],Qt.prototype,"serie",void 0);N([P(),I("design:type",String)],Qt.prototype,"nNF",void 0);Qt=N([d0({properties:["CNPJ","CPF"],required:!0})],Qt);var _r=class{static{a(this,"RefECF")}mod;nECF;nCOO};N([P(),I("design:type",String)],_r.prototype,"mod",void 0);N([P(),I("design:type",String)],_r.prototype,"nECF",void 0);N([P(),I("design:type",String)],_r.prototype,"nCOO",void 0);var xi=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};N([Ne(),P(),I("design:type",String)],xi.prototype,"refNFe",void 0);N([Ne(),P(),I("design:type",String)],xi.prototype,"refNFeSig",void 0);N([Ne(),Wr(),Kr(()=>Ai),I("design:type",typeof IRefNF>"u"?Object:IRefNF)],xi.prototype,"refNF",void 0);N([Ne(),Wr(),Kr(()=>Qt),I("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],xi.prototype,"refNFP",void 0);N([Ne(),P(),I("design:type",String)],xi.prototype,"refCTe",void 0);N([Ne(),Wr(),Kr(()=>_r),I("design:type",typeof IRefECF>"u"?Object:IRefECF)],xi.prototype,"refECF",void 0);var sr=class{static{a(this,"CompraGov")}tpEnteGov;pRedutor;tpOperGov;refDFeAnt};N([P(),I("design:type",String)],sr.prototype,"tpEnteGov",void 0);N([u0({fixed:4}),I("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"pRedutor",void 0);N([P(),I("design:type",String)],sr.prototype,"tpOperGov",void 0);N([Ne(),P(),I("design:type",String)],sr.prototype,"refDFeAnt",void 0);var nf=class{static{a(this,"PagAntecipado")}refNFe};N([Pu(),wu(99),P({each:!0}),I("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};N([l0(m0),I("design:type",typeof StateCode>"u"?Object:StateCode)],B.prototype,"cUF",void 0);N([P(),I("design:type",String)],B.prototype,"cNF",void 0);N([P(),I("design:type",String)],B.prototype,"natOp",void 0);N([P(),I("design:type",String)],B.prototype,"mod",void 0);N([P(),I("design:type",String)],B.prototype,"serie",void 0);N([P(),I("design:type",String)],B.prototype,"nNF",void 0);N([rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),I("design:type",String)],B.prototype,"dhEmi",void 0);N([Ne(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),I("design:type",String)],B.prototype,"dhSaiEnt",void 0);N([Ne(),rf({format:"YYYY-MM-DD"}),I("design:type",String)],B.prototype,"dPrevEntrega",void 0);N([P(),I("design:type",String)],B.prototype,"tpNF",void 0);N([P(),I("design:type",String)],B.prototype,"idDest",void 0);N([P(),I("design:type",String)],B.prototype,"cMunFG",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"cMunFGIBS",void 0);N([P(),I("design:type",String)],B.prototype,"tpImp",void 0);N([P(),I("design:type",typeof TpEmis>"u"?Object:TpEmis)],B.prototype,"tpEmis",void 0);N([P(),Ne(),I("design:type",String)],B.prototype,"cDV",void 0);N([P(),I("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],B.prototype,"tpAmb",void 0);N([P(),I("design:type",String)],B.prototype,"finNFe",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"tpNFDebito",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"tpNFCredito",void 0);N([P(),I("design:type",String)],B.prototype,"indFinal",void 0);N([P(),I("design:type",String)],B.prototype,"indPres",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"indIntermed",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"cIndOp",void 0);N([P(),I("design:type",String)],B.prototype,"procEmi",void 0);N([P(),I("design:type",String)],B.prototype,"verProc",void 0);N([Ne(),P(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),I("design:type",String)],B.prototype,"dhCont",void 0);N([Ne(),P(),I("design:type",String)],B.prototype,"xJust",void 0);N([Ne(),Pu(),wu(999),Wr({each:!0}),Kr(()=>xi),I("design:type",Array)],B.prototype,"NFref",void 0);N([Ne(),Wr(),Kr(()=>sr),I("design:type",typeof ICompraGov>"u"?Object:ICompraGov)],B.prototype,"gCompraGov",void 0);N([Ne(),Wr(),Kr(()=>nf),I("design:type",typeof IPagAntecipado>"u"?Object:IPagAntecipado)],B.prototype,"gPagAntecipado",void 0);import{IsOptional as ar,IsString as Jo,ValidateNested as h0}from"class-validator";import{Choice as g0}from"nfets/core";import{Type as v0}from"class-transformer";import{IsOptional as sf,IsString as No}from"class-validator";function Co(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(Co,"_ts_decorate");function bo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bo,"_ts_metadata");var tt=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Co([No(),bo("design:type",String)],tt.prototype,"xLgr",void 0);Co([No(),bo("design:type",String)],tt.prototype,"nro",void 0);Co([sf(),No(),bo("design:type",String)],tt.prototype,"xCpl",void 0);Co([No(),bo("design:type",String)],tt.prototype,"xBairro",void 0);Co([No(),bo("design:type",String)],tt.prototype,"cMun",void 0);Co([No(),bo("design:type",String)],tt.prototype,"xMun",void 0);Co([No(),bo("design:type",String)],tt.prototype,"UF",void 0);Co([No(),bo("design:type",String)],tt.prototype,"CEP",void 0);Co([sf(),No(),bo("design:type",String)],tt.prototype,"cPais",void 0);Co([sf(),No(),bo("design:type",String)],tt.prototype,"xPais",void 0);Co([sf(),No(),bo("design:type",String)],tt.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 Io(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Io,"_ts_metadata");var Ge=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT;ISUFEmit};Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"CNPJ",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"CPF",void 0);Kt([Jo(),Io("design:type",String)],Ge.prototype,"xNome",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"xFant",void 0);Kt([h0(),v0(()=>tt),Io("design:type",typeof tt>"u"?Object:tt)],Ge.prototype,"enderEmit",void 0);Kt([Jo(),Io("design:type",String)],Ge.prototype,"IE",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"IEST",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"IM",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"CNAE",void 0);Kt([Jo(),Io("design:type",String)],Ge.prototype,"CRT",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ge.prototype,"ISUFEmit",void 0);Ge=Kt([g0({properties:["CNPJ","CPF"],required:!0})],Ge);import{IsOptional as wi,IsString as Pi,ValidateNested as y0}from"class-validator";import{Type as S0}from"class-transformer";import{IsOptional as Fo,IsString as Do}from"class-validator";function Ro(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(Ro,"_ts_decorate");function Oo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Oo,"_ts_metadata");var xt=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xLgr",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"nro",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xCpl",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xBairro",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"cMun",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xMun",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"UF",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"CEP",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"cPais",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xPais",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"fone",void 0);import{Choice as C0}from"nfets/core";function Ao(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(Ao,"_ts_decorate");function _o(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(_o,"_ts_metadata");var Xe=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"CNPJ",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"CPF",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"idEstrangeiro",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"xNome",void 0);Ao([wi(),y0(),S0(()=>xt),_o("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],Xe.prototype,"enderDest",void 0);Ao([Pi(),_o("design:type",String)],Xe.prototype,"indIEDest",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"IE",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"ISUF",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"IM",void 0);Ao([wi(),Pi(),_o("design:type",String)],Xe.prototype,"email",void 0);Xe=Ao([C0({properties:["CNPJ","CPF"],required:!0})],Xe);import{IsOptional as Wo,IsString as dt}from"class-validator";import{Choice as b0}from"nfets/core";function ot(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(ot,"_ts_decorate");function lt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(lt,"_ts_metadata");var k=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};ot([Wo(),dt(),lt("design:type",String)],k.prototype,"CNPJ",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"CPF",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"xNome",void 0);ot([dt(),lt("design:type",String)],k.prototype,"xLgr",void 0);ot([dt(),lt("design:type",String)],k.prototype,"nro",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"xCpl",void 0);ot([dt(),lt("design:type",String)],k.prototype,"xBairro",void 0);ot([dt(),lt("design:type",String)],k.prototype,"cMun",void 0);ot([dt(),lt("design:type",String)],k.prototype,"xMun",void 0);ot([dt(),lt("design:type",String)],k.prototype,"UF",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"CEP",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"cPais",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"xPais",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"fone",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"email",void 0);ot([Wo(),dt(),lt("design:type",String)],k.prototype,"IE",void 0);k=ot([b0({properties:["CNPJ","CPF"]})],k);import{IsOptional as zu,IsString as Tu}from"class-validator";import{Choice as N0}from"nfets/core";function Yp(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(Yp,"_ts_decorate");function Eu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Eu,"_ts_metadata");var Ko=class{static{a(this,"AutXML")}CNPJ;CPF};Yp([zu(),Tu(),Eu("design:type",String)],Ko.prototype,"CNPJ",void 0);Yp([zu(),Tu(),Eu("design:type",String)],Ko.prototype,"CPF",void 0);Ko=Yp([N0({properties:["CNPJ","CPF"]})],Ko);import{IsOptional as I0,IsString as Bu}from"class-validator";function Mu(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(Mu,"_ts_decorate");function ju(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ju,"_ts_metadata");var gn=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};Mu([Bu(),ju("design:type",String)],gn.prototype,"CNPJ",void 0);Mu([I0(),Bu(),ju("design:type",String)],gn.prototype,"idCadIntTran",void 0);import{IsOptional as Vu,IsString as _p}from"class-validator";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 Jp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Jp,"_ts_metadata");var Ei=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Xp([_p(),Jp("design:type",String)],Ei.prototype,"UFSaidaPais",void 0);Xp([Vu(),_p(),Jp("design:type",String)],Ei.prototype,"xLocExporta",void 0);Xp([Vu(),_p(),Jp("design:type",String)],Ei.prototype,"xLocDespacho",void 0);import{IsOptional as kp,IsString as $p}from"class-validator";function Wp(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(Wp,"_ts_decorate");function Kp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Kp,"_ts_metadata");var zi=class{static{a(this,"Compra")}xNEmp;xPed;xCont};Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xNEmp",void 0);Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xPed",void 0);Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xCont",void 0);import{IsOptional as Lu,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 kt=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};kr([es(),$r("design:type",String)],kt.prototype,"CNPJ",void 0);kr([es(),$r("design:type",String)],kt.prototype,"xContato",void 0);kr([es(),$r("design:type",String)],kt.prototype,"email",void 0);kr([es(),$r("design:type",String)],kt.prototype,"fone",void 0);kr([Lu(),es(),$r("design:type",String)],kt.prototype,"idCSRT",void 0);kr([Lu(),es(),$r("design:type",String)],kt.prototype,"hashCSRT",void 0);import{IsOptional as Ua,ValidateNested as Ha}from"class-validator";import{Type as Qa}from"class-transformer";import{IsOptional as ko}from"class-validator";import{TransformDecimal as q}from"nfets/core";function Q(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(Q,"_ts_decorate");function G(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(G,"_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};Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBC",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSDeson",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPUFDest",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFDest",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFRemet",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCP",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBCST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPSTRet",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMono",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMono",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoReten",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoReten",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoRet",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoRet",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vProd",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFrete",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vSeg",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vDesc",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vII",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPI",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPIDevol",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vPIS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vCOFINS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vOutro",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vNF",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vTotTrib",void 0);import{IsOptional as xo,IsString as Uu}from"class-validator";import{TransformDecimal as $o}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 eo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(eo,"_ts_metadata");var ut=class{static{a(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vServ",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBC",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISS",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vPIS",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vCOFINS",void 0);$t([Uu(),eo("design:type",String)],ut.prototype,"dCompet",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDeducao",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vOutro",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescIncond",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescCond",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISSRet",void 0);$t([xo(),Uu(),eo("design:type",String)],ut.prototype,"cRegTrib",void 0);import{IsOptional as pr}from"class-validator";import{TransformDecimal as lr}from"nfets/core";function cr(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(cr,"_ts_decorate");function fr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(fr,"_ts_metadata");var wo=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetPIS",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetCOFINS",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetCSLL",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCIRRF",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vIRRF",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCRetPrev",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetPrev",void 0);import{IsOptional as La,ValidateNested as af}from"class-validator";import{IsOptional as Ea,ValidateNested as Hu}from"class-validator";import{TransformDecimal as ol}from"nfets/core";function el(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(el,"_ts_decorate");function tl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(tl,"_ts_metadata");var dr=class{static{a(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vDif",void 0);el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vDevTrib",void 0);el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vIBSMun",void 0);import{Type as Qu}from"class-transformer";import{TransformDecimal as rl}from"nfets/core";function il(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(il,"_ts_decorate");function nl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(nl,"_ts_metadata");var ur=class{static{a(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDif",void 0);il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDevTrib",void 0);il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vIBSUF",void 0);import{TransformDecimal as sl}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 Ti=class{static{a(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};wa([Ea(),Hu(),Qu(()=>ur),Pa("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Ti.prototype,"gIBSUF",void 0);wa([Ea(),Hu(),Qu(()=>dr),Pa("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Ti.prototype,"gIBSMun",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vIBS",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vCredPres",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as R0}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 Mi=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)],Mi.prototype,"vDif",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vDevTrib",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCBS",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCredPres",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.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 ei=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)],ei.prototype,"vIBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vIBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vIBSMonoRet",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMonoRet",void 0);import{IsOptional as Zu}from"class-validator";import{TransformDecimal as Yu}from"nfets/core";function Gu(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(Gu,"_ts_decorate");function qu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qu,"_ts_metadata");var rs=class{static{a(this,"EstornoCredTot")}vIBSEstCred;vCBSEstCred};Gu([Zu(),Yu({fixed:2}),qu("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rs.prototype,"vIBSEstCred",void 0);Gu([Zu(),Yu({fixed:2}),qu("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 Po=class{static{a(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono;gEstornoCred};Ba([La(),R0({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vBCIBSCBS",void 0);Ba([La(),af(),cf(()=>Ti),Va("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],Po.prototype,"gIBS",void 0);Ba([La(),af(),cf(()=>Mi),Va("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],Po.prototype,"gCBS",void 0);Ba([La(),af(),cf(()=>ei),Va("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],Po.prototype,"gMono",void 0);Ba([La(),af(),cf(()=>rs),Va("design:type",typeof IEstornoCredTot>"u"?Object:IEstornoCredTot)],Po.prototype,"gEstornoCred",void 0);import{TransformDecimal as D0}from"nfets/core";import{IsOptional as A0}from"class-validator";function O0(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(O0,"_ts_decorate");function F0(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(F0,"_ts_metadata");var mr=class{static{a(this,"ISTot")}vIS="0.00"};O0([A0(),D0({fixed:2}),F0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mr.prototype,"vIS",void 0);import{TransformDecimal as x0}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 to=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib;ISTot;IBSCBSTot;vNFTot};ss([Ha(),Qa(()=>V),as("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],to.prototype,"ICMSTot",void 0);ss([Ua(),Ha(),Qa(()=>ut),as("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],to.prototype,"ISSQNtot",void 0);ss([Ua(),Ha(),Qa(()=>wo),as("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],to.prototype,"retTrib",void 0);ss([Ua(),Ha(),Qa(()=>mr),as("design:type",typeof IISTot>"u"?Object:IISTot)],to.prototype,"ISTot",void 0);ss([Ua(),Ha(),Qa(()=>Po),as("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],to.prototype,"IBSCBSTot",void 0);ss([Ua(),x0({fixed:2}),as("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vNFTot",void 0);import{ArrayMaxSize as Wu,IsOptional as Sr,IsString as al,ValidateNested as Ga}from"class-validator";import{Type as qa}from"class-transformer";import{IsOptional as gr,IsString as vr}from"class-validator";import{Choice as w0}from"nfets/core";function vn(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(vn,"_ts_decorate");function hr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(hr,"_ts_metadata");var mt=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};vn([gr(),vr(),hr("design:type",String)],mt.prototype,"CNPJ",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"CPF",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"xNome",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"IE",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"xEnder",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"xMun",void 0);vn([gr(),vr(),hr("design:type",String)],mt.prototype,"UF",void 0);mt=vn([w0({properties:["CNPJ","CPF"]})],mt);import{IsOptional as ps,IsString as Xu}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(),Xu(),fs("design:type",String)],Gt.prototype,"CFOP",void 0);cs([ps(),Xu(),fs("design:type",String)],Gt.prototype,"cMunFG",void 0);import{IsOptional as us,IsString as ms}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 ti=class{static{a(this,"VeicTransp")}placa;UF;RNTC};ls([us(),ms(),ds("design:type",String)],ti.prototype,"placa",void 0);ls([us(),ms(),ds("design:type",String)],ti.prototype,"UF",void 0);ls([us(),ms(),ds("design:type",String)],ti.prototype,"RNTC",void 0);var yr=class{static{a(this,"Reboque")}placa;UF;RNTC};ls([us(),ms(),ds("design:type",String)],yr.prototype,"placa",void 0);ls([us(),ms(),ds("design:type",String)],yr.prototype,"UF",void 0);ls([us(),ms(),ds("design:type",String)],yr.prototype,"RNTC",void 0);import{IsOptional as vs,IsString as pf}from"class-validator";import{TransformDecimal as Ju}from"nfets/core";function hs(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(hs,"_ts_decorate");function gs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gs,"_ts_metadata");var oi=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};hs([vs(),pf(),gs("design:type",String)],oi.prototype,"qVol",void 0);hs([vs(),pf(),gs("design:type",String)],oi.prototype,"esp",void 0);hs([vs(),pf(),gs("design:type",String)],oi.prototype,"marca",void 0);hs([vs(),pf(),gs("design:type",String)],oi.prototype,"nVol",void 0);hs([vs(),Ju({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oi.prototype,"pesoL",void 0);hs([vs(),Ju({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oi.prototype,"pesoB",void 0);import{Choice as _u}from"nfets/core";function ji(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(ji,"_ts_decorate");function yn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(yn,"_ts_metadata");var ht=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};ji([al(),yn("design:type",String)],ht.prototype,"modFrete",void 0);ji([Sr(),Ga(),qa(()=>mt),yn("design:type",typeof mt>"u"?Object:mt)],ht.prototype,"transporta",void 0);ji([Sr(),Ga(),qa(()=>Gt),yn("design:type",typeof Gt>"u"?Object:Gt)],ht.prototype,"retTransp",void 0);ji([Sr(),Ga(),qa(()=>ti),yn("design:type",typeof ti>"u"?Object:ti)],ht.prototype,"veicTransp",void 0);ji([Sr(),Ga({each:!0}),qa(()=>yr),Wu(5),yn("design:type",Array)],ht.prototype,"reboque",void 0);ji([Sr(),al(),yn("design:type",String)],ht.prototype,"vagao",void 0);ji([Sr(),al(),yn("design:type",String)],ht.prototype,"balsa",void 0);ji([Sr(),Ga({each:!0}),qa(()=>oi),Wu(5e3),yn("design:type",Array)],ht.prototype,"vol",void 0);ht=ji([_u({properties:["veicTransp","reboque"]}),_u({properties:["vagao","balsa"]})],ht);import{ArrayMaxSize as P0,IsOptional as Ui,IsString as cl,ValidateNested as Ku}from"class-validator";import{Type as ku}from"class-transformer";import{TransformDecimal as lf}from"nfets/core";function Vi(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(Vi,"_ts_decorate");function Li(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Li,"_ts_metadata");var Bi=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Vi([Ui(),cl(),Li("design:type",String)],Bi.prototype,"nFat",void 0);Vi([Ui(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vOrig",void 0);Vi([Ui(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vDesc",void 0);Vi([Ui(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vLiq",void 0);var ys=class{static{a(this,"Dup")}nDup;dVenc;vDup};Vi([Ui(),cl(),Li("design:type",String)],ys.prototype,"nDup",void 0);Vi([Ui(),cl(),Li("design:type",String)],ys.prototype,"dVenc",void 0);Vi([Ui(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ys.prototype,"vDup",void 0);var Sn=class{static{a(this,"Cobr")}fat;dup};Vi([Ui(),Ku(),ku(()=>Bi),Li("design:type",typeof Bi>"u"?Object:Bi)],Sn.prototype,"fat",void 0);Vi([Ui(),Ku({each:!0}),P0(120),ku(()=>ys),Li("design:type",Array)],Sn.prototype,"dup",void 0);import{ArrayMaxSize as j0,ArrayMinSize as B0,IsOptional as V0,ValidateNested as L0}from"class-validator";import{Type as U0}from"class-transformer";import{IsOptional as Is,IsString as Za,ValidateNested as E0}from"class-validator";import{Type as z0}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 T0,TransformDateString as M0}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 bn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bn,"_ts_metadata");var oo=class{static{a(this,"DetPag")}indPag;tPag;xPag;vPag;dPag;CNPJPag;UFPag;card};Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"indPag",void 0);Cn([Za(),bn("design:type",typeof TPag>"u"?Object:TPag)],oo.prototype,"tPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"xPag",void 0);Cn([T0({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oo.prototype,"vPag",void 0);Cn([Is(),M0({format:"YYYY-MM-DD"}),bn("design:type",String)],oo.prototype,"dPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"CNPJPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"UFPag",void 0);Cn([Is(),E0(),z0(()=>qt),bn("design:type",typeof qt>"u"?Object:qt)],oo.prototype,"card",void 0);import{TransformDecimal as H0}from"nfets/core";function $u(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($u,"_ts_decorate");function em(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(em,"_ts_metadata");var Nn=class{static{a(this,"Pag")}detPag;vTroco};$u([L0({each:!0}),B0(1),j0(100),U0(()=>oo),em("design:type",Array)],Nn.prototype,"detPag",void 0);$u([V0(),H0({fixed:2}),em("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nn.prototype,"vTroco",void 0);import{ArrayMaxSize as fl,IsOptional as Cr,IsString as Os,ValidateNested as pl}from"class-validator";import{Type as ll}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 Qi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Qi,"_ts_metadata");var Rs=class{static{a(this,"InfAdicObs")}xCampo;xTexto};Hi([Os(),Qi("design:type",String)],Rs.prototype,"xCampo",void 0);Hi([Os(),Qi("design:type",String)],Rs.prototype,"xTexto",void 0);var Ya=class{static{a(this,"ProcRef")}nProc;indProc};Hi([Cr(),Os(),Qi("design:type",String)],Ya.prototype,"nProc",void 0);Hi([Cr(),Os(),Qi("design:type",String)],Ya.prototype,"indProc",void 0);var Eo=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Hi([Cr(),Os(),Qi("design:type",String)],Eo.prototype,"infAdFisco",void 0);Hi([Cr(),Os(),Qi("design:type",String)],Eo.prototype,"infCpl",void 0);Hi([Cr(),pl({each:!0}),ll(()=>Rs),fl(10),Qi("design:type",Array)],Eo.prototype,"obsCont",void 0);Hi([Cr(),pl({each:!0}),ll(()=>Rs),fl(10),Qi("design:type",Array)],Eo.prototype,"obsFisco",void 0);Hi([Cr(),pl({each:!0}),ll(()=>Ya),fl(100),Qi("design:type",Array)],Eo.prototype,"procRef",void 0);import{ArrayMaxSize as tm,IsNotEmptyObject as Q0,IsObject as G0,IsOptional as br,IsString as In,ValidateNested as om}from"class-validator";import{Type as dl}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([In(),Pt("design:type",String)],df.prototype,"dia",void 0);var Xa=class{static{a(this,"ForDia")}$;qtde};wt([G0(),Q0(),dl(()=>df),Pt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Xa.prototype,"$",void 0);wt([In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xa.prototype,"qtde",void 0);var Ja=class{static{a(this,"Deduc")}xDed;vDed};wt([In(),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([In(),Pt("design:type",String)],gt.prototype,"safra",void 0);wt([In(),Pt("design:type",String)],gt.prototype,"ref",void 0);wt([om({each:!0}),tm(31),dl(()=>Xa),Pt("design:type",Array)],gt.prototype,"forDia",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotMes",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotAnt",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotGer",void 0);wt([br(),om({each:!0}),tm(10),dl(()=>Ja),Pt("design:type",Array)],gt.prototype,"deduc",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vFor",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vTotDed",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vLiqFor",void 0);import{IsObject as mS,IsOptional as Ys,IsString as Jm,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 X,IsString as Se,ValidateNested as ni}from"class-validator";import{TransformDecimal as Zi}from"nfets/core";import{Type as ri}from"class-transformer";import{IsOptional as mf,IsString as Ka}from"class-validator";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 Wa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Wa,"_ts_metadata");var Gi=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_a([Ka(),Wa("design:type",String)],Gi.prototype,"nLote",void 0);_a([mf(),Ka(),Wa("design:type",String)],Gi.prototype,"qLote",void 0);_a([mf(),Ka(),Wa("design:type",String)],Gi.prototype,"dFab",void 0);_a([mf(),Ka(),Wa("design:type",String)],Gi.prototype,"dVal",void 0);_a([mf(),Ka(),Wa("design:type",String)],Gi.prototype,"cAgreg",void 0);import{Choice as nS}from"nfets/core";import{IsString as Vt,IsOptional as ka,IsArray as q0,ValidateNested as Z0,ArrayMaxSize as Y0,ArrayMinSize as X0}from"class-validator";import{Type as J0}from"class-transformer";import{TransformDecimal as im,Choice as _0}from"nfets/core";function _e(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(_e,"_ts_decorate");function it(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(it,"_ts_metadata");var Rn=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};_e([Vt(),it("design:type",String)],Rn.prototype,"nAdicao",void 0);_e([Vt(),it("design:type",String)],Rn.prototype,"nSeqAdic",void 0);_e([Vt(),it("design:type",String)],Rn.prototype,"cFabricante",void 0);_e([im({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rn.prototype,"vDescDI",void 0);_e([ka(),Vt(),it("design:type",String)],Rn.prototype,"nDraw",void 0);var Je=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};_e([Vt(),it("design:type",String)],Je.prototype,"nDI",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"dDI",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"xLocDesemb",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"UFDesemb",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"dDesemb",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"tpViaTransp",void 0);_e([ka(),im({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Je.prototype,"vAFRMM",void 0);_e([Vt(),it("design:type",String)],Je.prototype,"tpIntermedio",void 0);_e([Vt(),ka(),it("design:type",String)],Je.prototype,"CNPJ",void 0);_e([Vt(),ka(),it("design:type",String)],Je.prototype,"CPF",void 0);_e([Vt(),ka(),it("design:type",String)],Je.prototype,"UFTerceiro",void 0);_e([q0(),Z0({each:!0}),J0(()=>Rn),Y0(999),X0(1),it("design:type",Array)],Je.prototype,"adi",void 0);Je=_e([_0({properties:["CNPJ","CPF"],required:!0})],Je);import{Type as W0}from"class-transformer";import{IsOptional as nm,IsString as ul,ValidateNested as K0}from"class-validator";import{TransformDecimal as k0}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([ul(),ec("design:type",String)],Fs.prototype,"nRE",void 0);$a([ul(),ec("design:type",String)],Fs.prototype,"chNFe",void 0);$a([k0({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([nm(),ul(),ec("design:type",String)],Ds.prototype,"nDraw",void 0);$a([nm(),K0(),W0(()=>Fs),ec("design:type",typeof IExportInd>"u"?Object:IExportInd)],Ds.prototype,"exportInd",void 0);import{IsString as am}from"class-validator";function rm(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(rm,"_ts_decorate");function sm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(sm,"_ts_metadata");var As=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};rm([am(),sm("design:type",String)],As.prototype,"cProdFisco",void 0);rm([am(),sm("design:type",String)],As.prototype,"cOperNFF",void 0);import{IsString as cm}from"class-validator";import{TransformDecimal as $0}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 hl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(hl,"_ts_metadata");var Nr=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};ml([cm(),hl("design:type",String)],Nr.prototype,"xEmb",void 0);ml([$0({fixed:3}),hl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nr.prototype,"qVolEmb",void 0);ml([cm(),hl("design:type",String)],Nr.prototype,"uEmb",void 0);import{IsString as ae}from"class-validator";function re(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(re,"_ts_decorate");function se(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(se,"_ts_metadata");var Y=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};re([ae(),se("design:type",String)],Y.prototype,"tpOp",void 0);re([ae(),se("design:type",String)],Y.prototype,"chassi",void 0);re([ae(),se("design:type",String)],Y.prototype,"cCor",void 0);re([ae(),se("design:type",String)],Y.prototype,"xCor",void 0);re([ae(),se("design:type",String)],Y.prototype,"pot",void 0);re([ae(),se("design:type",String)],Y.prototype,"cilin",void 0);re([ae(),se("design:type",String)],Y.prototype,"pesoL",void 0);re([ae(),se("design:type",String)],Y.prototype,"pesoB",void 0);re([ae(),se("design:type",String)],Y.prototype,"nSerie",void 0);re([ae(),se("design:type",String)],Y.prototype,"tpComb",void 0);re([ae(),se("design:type",String)],Y.prototype,"nMotor",void 0);re([ae(),se("design:type",String)],Y.prototype,"CMT",void 0);re([ae(),se("design:type",String)],Y.prototype,"dist",void 0);re([ae(),se("design:type",String)],Y.prototype,"anoMod",void 0);re([ae(),se("design:type",String)],Y.prototype,"anoFab",void 0);re([ae(),se("design:type",String)],Y.prototype,"tpPint",void 0);re([ae(),se("design:type",String)],Y.prototype,"tpVeic",void 0);re([ae(),se("design:type",String)],Y.prototype,"espVeic",void 0);re([ae(),se("design:type",String)],Y.prototype,"VIN",void 0);re([ae(),se("design:type",String)],Y.prototype,"condVeic",void 0);re([ae(),se("design:type",String)],Y.prototype,"cMod",void 0);re([ae(),se("design:type",String)],Y.prototype,"cCorDENATRAN",void 0);re([ae(),se("design:type",String)],Y.prototype,"lota",void 0);re([ae(),se("design:type",String)],Y.prototype,"tpRest",void 0);import{IsString as fm}from"class-validator";import{TransformDecimal as eS}from"nfets/core";function gl(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(gl,"_ts_decorate");function vl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(vl,"_ts_metadata");var Ir=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};gl([fm(),vl("design:type",String)],Ir.prototype,"cProdANVISA",void 0);gl([fm(),vl("design:type",String)],Ir.prototype,"xMotivoIsencao",void 0);gl([eS({fixed:2}),vl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"vPMC",void 0);import{IsString as vf}from"class-validator";function hf(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(hf,"_ts_decorate");function gf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(gf,"_ts_metadata");var On=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};hf([vf(),gf("design:type",String)],On.prototype,"tpArma",void 0);hf([vf(),gf("design:type",String)],On.prototype,"nSerie",void 0);hf([vf(),gf("design:type",String)],On.prototype,"nCano",void 0);hf([vf(),gf("design:type",String)],On.prototype,"descr",void 0);import{IsString as qi,IsOptional as ii,IsObject as pm,IsArray as tS,ValidateNested as yl,ArrayMaxSize as oS}from"class-validator";import{Type as Sl}from"class-transformer";import{TransformDecimal as io}from"nfets/core";function ce(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(ce,"_ts_decorate");function fe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(fe,"_ts_metadata");var xs=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};ce([qi(),fe("design:type",String)],xs.prototype,"indImport",void 0);ce([qi(),fe("design:type",String)],xs.prototype,"cUFOrig",void 0);ce([io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xs.prototype,"pOrig",void 0);var ws=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ce([io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"qBCProd",void 0);ce([io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vAliqProd",void 0);ce([io({fixed:2}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vCIDE",void 0);var Fn=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ce([qi(),fe("design:type",String)],Fn.prototype,"nBico",void 0);ce([qi(),fe("design:type",String)],Fn.prototype,"nBomba",void 0);ce([qi(),fe("design:type",String)],Fn.prototype,"nTanque",void 0);ce([io({fixed:3}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fn.prototype,"vEncIni",void 0);ce([io({fixed:3}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fn.prototype,"vEncFin",void 0);var nt=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ce([qi(),fe("design:type",String)],nt.prototype,"cProdANP",void 0);ce([qi(),fe("design:type",String)],nt.prototype,"descANP",void 0);ce([ii(),io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"pGLP",void 0);ce([ii(),io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"pGNn",void 0);ce([ii(),io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"pGNi",void 0);ce([ii(),io({fixed:2}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"vPart",void 0);ce([qi(),ii(),fe("design:type",String)],nt.prototype,"CODIF",void 0);ce([ii(),io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"qTemp",void 0);ce([qi(),fe("design:type",String)],nt.prototype,"UFCons",void 0);ce([ii(),pm(),yl(),Sl(()=>ws),fe("design:type",typeof ICIDE>"u"?Object:ICIDE)],nt.prototype,"CIDE",void 0);ce([ii(),pm(),yl(),Sl(()=>Fn),fe("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],nt.prototype,"encerrante",void 0);ce([ii(),io({fixed:4}),fe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nt.prototype,"pBio",void 0);ce([tS(),yl({each:!0}),Sl(()=>xs),oS(30),ii(),fe("design:type",Array)],nt.prototype,"origComb",void 0);import{IsString as iS}from"class-validator";import{TransformDecimal as lm}from"nfets/core";function Cl(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(Cl,"_ts_decorate");function bl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bl,"_ts_metadata");var Rr=class{static{a(this,"GCred")}cCredPresumido;pCredPresumido;vCredPresumido};Cl([iS(),bl("design:type",String)],Rr.prototype,"cCredPresumido",void 0);Cl([lm({fixed:4}),bl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.prototype,"pCredPresumido",void 0);Cl([lm({fixed:2}),bl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.prototype,"vCredPresumido",void 0);function z(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(z,"_ts_decorate");function M(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(M,"_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};z([Se(),M("design:type",String)],w.prototype,"cProd",void 0);z([Se(),M("design:type",String)],w.prototype,"cEAN",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"cBarra",void 0);z([Se(),M("design:type",String)],w.prototype,"xProd",void 0);z([Se(),M("design:type",String)],w.prototype,"NCM",void 0);z([X(),tc(),Ps(8),Se({each:!0}),M("design:type",Array)],w.prototype,"NVE",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"CEST",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"indEscala",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"CNPJFab",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"cBenef",void 0);z([X(),tc(),Ps(4),ni({each:!0}),ri(()=>Rr),M("design:type",Array)],w.prototype,"gCred",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"tpCredPresIBSZFM",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"EXTIPI",void 0);z([Se(),M("design:type",String)],w.prototype,"CFOP",void 0);z([Se(),M("design:type",String)],w.prototype,"uCom",void 0);z([Zi({fixed:4}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qCom",void 0);z([Zi({fixed:10}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnCom",void 0);z([Zi({fixed:2}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vProd",void 0);z([Se(),M("design:type",String)],w.prototype,"cEANTrib",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"cBarraTrib",void 0);z([Se(),M("design:type",String)],w.prototype,"uTrib",void 0);z([Zi({fixed:4}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qTrib",void 0);z([Zi({fixed:10}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnTrib",void 0);z([X(),Zi({fixed:2}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vFrete",void 0);z([X(),Zi({fixed:2}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vSeg",void 0);z([X(),Zi({fixed:2}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vDesc",void 0);z([X(),Zi({fixed:2}),M("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vOutro",void 0);z([Se(),M("design:type",String)],w.prototype,"indTot",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"indBemMovelUsado",void 0);z([X(),tc(),ni({each:!0}),Ps(100),ri(()=>Je),M("design:type",Array)],w.prototype,"DI",void 0);z([X(),tc(),ni({each:!0}),Ps(500),ri(()=>Ds),M("design:type",Array)],w.prototype,"detExport",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"xPed",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"nItemPed",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"nFCI",void 0);z([X(),tc(),ni({each:!0}),Ps(500),ri(()=>Gi),M("design:type",Array)],w.prototype,"rastro",void 0);z([X(),Es(),ni(),ri(()=>As),M("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],w.prototype,"infProdNFF",void 0);z([X(),Es(),ni(),ri(()=>Nr),M("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],w.prototype,"infProdEmb",void 0);z([X(),Es(),ni(),ri(()=>Y),M("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],w.prototype,"veicProd",void 0);z([X(),Es(),ni(),ri(()=>Ir),M("design:type",typeof IMed>"u"?Object:IMed)],w.prototype,"med",void 0);z([X(),Es(),ni({each:!0}),ri(()=>On),Ps(500),M("design:type",Array)],w.prototype,"arma",void 0);z([X(),Es(),ni(),ri(()=>nt),M("design:type",typeof IComb>"u"?Object:IComb)],w.prototype,"comb",void 0);z([X(),Se(),M("design:type",String)],w.prototype,"nRECOPI",void 0);w=z([nS({properties:["veicProd","med","arma","comb"]})],w);import{Type as Ho}from"class-transformer";import{IsOptional as lo,ValidateNested as Qo}from"class-validator";import{IsOptional as h,IsString as b,Max as Nl,ValidateNested as De}from"class-validator";import{Type as Ae}from"class-transformer";import{Choice as rS,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 no=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};l([b(),d("design:type",String)],no.prototype,"orig",void 0);l([b(),d("design:type",String)],no.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],no.prototype,"modBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vBCFCP",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"pFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vFCP",void 0);var Dn=class{static{a(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};l([b(),d("design:type",String)],Dn.prototype,"orig",void 0);l([b(),d("design:type",String)],Dn.prototype,"CST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"qBCMono",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"adRemICMS",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"vICMSMono",void 0);var Fe=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)],Fe.prototype,"orig",void 0);l([b(),d("design:type",String)],Fe.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],Fe.prototype,"modBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCFCP",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vFCP",void 0);l([h(),b(),d("design:type",String)],Fe.prototype,"modBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pMVAST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pRedBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCFCPST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pFCPST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.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([h(),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([h(),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([h(),g({fixed:4}),Nl(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zt.prototype,"pRedAdRem",void 0);l([h(),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([h(),b(),d("design:type",String)],Et.prototype,"modBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pRedBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBCFCP",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMSDeson",void 0);l([h(),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([h(),b(),d("design:type",String)],vt.prototype,"modBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pMVAST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pRedBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCFCPST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pFCPST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vFCPST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSDeson",void 0);l([h(),b(),d("design:type",String)],vt.prototype,"motDesICMS",void 0);var Or=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};l([b(),d("design:type",String)],Or.prototype,"orig",void 0);l([b(),d("design:type",String)],Or.prototype,"CST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Or.prototype,"vICMSDeson",void 0);l([h(),b(),d("design:type",String)],Or.prototype,"motDesICMS",void 0);var ro=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};l([b(),d("design:type",String)],ro.prototype,"orig",void 0);l([b(),d("design:type",String)],ro.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],ro.prototype,"modBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pRedBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"vICMS",void 0);l([h(),g({fixed:4}),Nl(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pDif",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.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([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMono",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"adRemICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoOp",void 0);l([h(),g({fixed:4}),Nl(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"pDif",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMonoDif",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSMono",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"qBCMonoDif",void 0);l([h(),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([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSubstituto",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSSTRet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCFCPSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pFCPSTRet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vFCPSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pRedBCEfet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCEfet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pICMSEfet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSEfet",void 0);var An=class{static{a(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};l([b(),d("design:type",String)],An.prototype,"orig",void 0);l([b(),d("design:type",String)],An.prototype,"CST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"qBCMonoRet",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"adRemICMSRet",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"vICMSMonoRet",void 0);var pe=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)],pe.prototype,"orig",void 0);l([b(),d("design:type",String)],pe.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],pe.prototype,"modBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pRedBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vBCFCP",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vICMSDeson",void 0);l([h(),b(),d("design:type",String)],pe.prototype,"motDesICMS",void 0);l([h(),b(),d("design:type",String)],pe.prototype,"modBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pMVAST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pRedBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vBCFCPST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"pFCPST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pe.prototype,"vFCPST",void 0);var le=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)],le.prototype,"orig",void 0);l([b(),d("design:type",String)],le.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],le.prototype,"modBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pRedBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCFCP",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vFCP",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMSDeson",void 0);l([h(),b(),d("design:type",String)],le.prototype,"motDesICMS",void 0);l([h(),b(),d("design:type",String)],le.prototype,"modBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pMVAST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pRedBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vBCFCPST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"pFCPST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],le.prototype,"vFCPST",void 0);var We=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)],We.prototype,"orig",void 0);l([b(),d("design:type",String)],We.prototype,"CST",void 0);l([h(),b(),d("design:type",String)],We.prototype,"modBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pRedBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vICMS",void 0);l([h(),b(),d("design:type",String)],We.prototype,"modBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pMVAST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pRedBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vICMSST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"pBCOp",void 0);l([h(),b(),d("design:type",String)],We.prototype,"UFST",void 0);var Yi=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([b(),d("design:type",String)],Yi.prototype,"orig",void 0);l([b(),d("design:type",String)],Yi.prototype,"CST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vBCSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"pST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vICMSSubstituto",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vICMSSTRet",void 0);var Fr=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],Fr.prototype,"orig",void 0);l([b(),d("design:type",String)],Fr.prototype,"CSOSN",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.prototype,"pCredSN",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.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 zo=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],zo.prototype,"orig",void 0);l([b(),d("design:type",String)],zo.prototype,"CSOSN",void 0);l([h(),b(),d("design:type",String)],zo.prototype,"modBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vICMSST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"pCredSN",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vCredICMSSN",void 0);var Xi=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};l([b(),d("design:type",String)],Xi.prototype,"orig",void 0);l([b(),d("design:type",String)],Xi.prototype,"CSOSN",void 0);l([h(),b(),d("design:type",String)],Xi.prototype,"modBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.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([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSubstituto",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vICMSSTRet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCFCPSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pFCPSTRet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vFCPSTRet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pRedBCEfet",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"vBCEfet",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],St.prototype,"pICMSEfet",void 0);l([h(),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([h(),b(),d("design:type",String)],Ct.prototype,"modBC",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pRedBC",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMS",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMS",void 0);l([h(),b(),d("design:type",String)],Ct.prototype,"modBCST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vBCST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pICMSST",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vICMSST",void 0);l([h(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"pCredSN",void 0);l([h(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ct.prototype,"vCredICMSSN",void 0);var Z=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([h(),De(),Ae(()=>no),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],Z.prototype,"ICMS00",void 0);l([h(),De(),Ae(()=>Dn),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],Z.prototype,"ICMS02",void 0);l([h(),De(),Ae(()=>Fe),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],Z.prototype,"ICMS10",void 0);l([h(),De(),Ae(()=>Zt),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],Z.prototype,"ICMS15",void 0);l([h(),De(),Ae(()=>Et),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],Z.prototype,"ICMS20",void 0);l([h(),De(),Ae(()=>vt),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],Z.prototype,"ICMS30",void 0);l([h(),De(),Ae(()=>Or),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],Z.prototype,"ICMS40",void 0);l([h(),De(),Ae(()=>ro),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],Z.prototype,"ICMS51",void 0);l([h(),De(),Ae(()=>Yt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],Z.prototype,"ICMS53",void 0);l([h(),De(),Ae(()=>yt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],Z.prototype,"ICMS60",void 0);l([h(),De(),Ae(()=>An),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],Z.prototype,"ICMS61",void 0);l([h(),De(),Ae(()=>pe),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],Z.prototype,"ICMS70",void 0);l([h(),De(),Ae(()=>le),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],Z.prototype,"ICMS90",void 0);l([h(),De(),Ae(()=>We),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Z.prototype,"ICMSPart",void 0);l([h(),De(),Ae(()=>Yi),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],Z.prototype,"ICMSST",void 0);l([h(),De(),Ae(()=>Fr),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Z.prototype,"ICMSSN101",void 0);l([h(),De(),Ae(()=>oc),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Z.prototype,"ICMSSN102",void 0);l([h(),De(),Ae(()=>zo),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Z.prototype,"ICMSSN201",void 0);l([h(),De(),Ae(()=>Xi),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Z.prototype,"ICMSSN202",void 0);l([h(),De(),Ae(()=>St),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Z.prototype,"ICMSSN500",void 0);l([h(),De(),Ae(()=>Ct),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Z.prototype,"ICMSSN900",void 0);Z=l([rS({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Z);import{IsOptional as si,IsString as To,ValidateNested as dm}from"class-validator";import{Type as um}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 Ji=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Xt([To(),Jt("design:type",String)],Ji.prototype,"CST",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vBC",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"pIPI",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"qUnid",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vUnid",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vIPI",void 0);var yf=class{static{a(this,"IPINT")}CST};Xt([To(),Jt("design:type",String)],yf.prototype,"CST",void 0);var so=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Xt([si(),To(),Jt("design:type",String)],so.prototype,"CNPJProd",void 0);Xt([si(),To(),Jt("design:type",String)],so.prototype,"cSelo",void 0);Xt([si(),To(),Jt("design:type",String)],so.prototype,"qSelo",void 0);Xt([To(),Jt("design:type",String)],so.prototype,"cEnq",void 0);Xt([si(),dm(),um(()=>Ji),Jt("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],so.prototype,"IPITrib",void 0);Xt([si(),dm(),um(()=>yf),Jt("design:type",typeof IIPINT>"u"?Object:IIPINT)],so.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 ai=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vBC",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vDespAdu",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vII",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vIOF",void 0);import{IsOptional as we,IsString as Pe,ValidateNested as If}from"class-validator";import{Type as Rf}from"class-transformer";import{TransformDecimal as fi}from"nfets/core";function de(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(de,"_ts_decorate");function ue(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ue,"_ts_metadata");var _i=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};de([Pe(),ue("design:type",String)],_i.prototype,"CST",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],_i.prototype,"vBC",void 0);de([we(),Pe(),fi({fixed:4}),ue("design:type",String)],_i.prototype,"pPIS",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],_i.prototype,"vPIS",void 0);var Wi=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};de([Pe(),ue("design:type",String)],Wi.prototype,"CST",void 0);de([we(),Pe(),ue("design:type",String)],Wi.prototype,"qBCProd",void 0);de([we(),Pe(),ue("design:type",String)],Wi.prototype,"vAliqProd",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],Wi.prototype,"vPIS",void 0);var zs=class{static{a(this,"PISNT")}CST};de([Pe(),ue("design:type",String)],zs.prototype,"CST",void 0);var Mo=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};de([Pe(),ue("design:type",String)],Mo.prototype,"CST",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],Mo.prototype,"vBC",void 0);de([we(),Pe(),fi({fixed:4}),ue("design:type",String)],Mo.prototype,"pPIS",void 0);de([we(),Pe(),ue("design:type",String)],Mo.prototype,"qBCProd",void 0);de([we(),Pe(),ue("design:type",String)],Mo.prototype,"vAliqProd",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],Mo.prototype,"vPIS",void 0);var ci=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};de([we(),If(),Rf(()=>_i),ue("design:type",typeof _i>"u"?Object:_i)],ci.prototype,"PISAliq",void 0);de([we(),If(),Rf(()=>Wi),ue("design:type",typeof Wi>"u"?Object:Wi)],ci.prototype,"PISQtde",void 0);de([we(),If(),Rf(()=>zs),ue("design:type",typeof zs>"u"?Object:zs)],ci.prototype,"PISNT",void 0);de([we(),If(),Rf(()=>Mo),ue("design:type",typeof Mo>"u"?Object:Mo)],ci.prototype,"PISOutr",void 0);var jo=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],jo.prototype,"vBC",void 0);de([we(),Pe(),fi({fixed:4}),ue("design:type",String)],jo.prototype,"pPIS",void 0);de([we(),Pe(),ue("design:type",String)],jo.prototype,"qBCProd",void 0);de([we(),Pe(),ue("design:type",String)],jo.prototype,"vAliqProd",void 0);de([we(),Pe(),fi({fixed:2}),ue("design:type",String)],jo.prototype,"vPIS",void 0);import{IsOptional as Ee,IsString as ze,ValidateNested as Of}from"class-validator";import{Type as Ff}from"class-transformer";import{TransformDecimal as li}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 he(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(he,"_ts_metadata");var Ki=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};me([ze(),he("design:type",String)],Ki.prototype,"CST",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Ki.prototype,"vBC",void 0);me([Ee(),ze(),li({fixed:4}),he("design:type",String)],Ki.prototype,"pCOFINS",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Ki.prototype,"vCOFINS",void 0);var ki=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};me([ze(),he("design:type",String)],ki.prototype,"CST",void 0);me([Ee(),ze(),he("design:type",String)],ki.prototype,"qBCProd",void 0);me([Ee(),ze(),he("design:type",String)],ki.prototype,"vAliqProd",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],ki.prototype,"vCOFINS",void 0);var Ts=class{static{a(this,"COFINSNT")}CST};me([ze(),he("design:type",String)],Ts.prototype,"CST",void 0);var Bo=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([ze(),he("design:type",String)],Bo.prototype,"CST",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Bo.prototype,"vBC",void 0);me([Ee(),ze(),li({fixed:4}),he("design:type",String)],Bo.prototype,"pCOFINS",void 0);me([Ee(),ze(),he("design:type",String)],Bo.prototype,"qBCProd",void 0);me([Ee(),ze(),he("design:type",String)],Bo.prototype,"vAliqProd",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Bo.prototype,"vCOFINS",void 0);var pi=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};me([Ee(),Of(),Ff(()=>Ki),he("design:type",typeof Ki>"u"?Object:Ki)],pi.prototype,"COFINSAliq",void 0);me([Ee(),Of(),Ff(()=>ki),he("design:type",typeof ki>"u"?Object:ki)],pi.prototype,"COFINSQtde",void 0);me([Ee(),Of(),Ff(()=>Ts),he("design:type",typeof Ts>"u"?Object:Ts)],pi.prototype,"COFINSNT",void 0);me([Ee(),Of(),Ff(()=>Bo),he("design:type",typeof Bo>"u"?Object:Bo)],pi.prototype,"COFINSOutr",void 0);var Vo=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Vo.prototype,"vBC",void 0);me([Ee(),ze(),li({fixed:4}),he("design:type",String)],Vo.prototype,"pCOFINS",void 0);me([Ee(),ze(),he("design:type",String)],Vo.prototype,"qBCProd",void 0);me([Ee(),ze(),he("design:type",String)],Vo.prototype,"vAliqProd",void 0);me([Ee(),ze(),li({fixed:2}),he("design:type",String)],Vo.prototype,"vCOFINS",void 0);import{IsOptional as Lt,IsString as xn}from"class-validator";import{TransformDecimal as wn}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 Ie=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vBC",void 0);bt([Lt(),wn({fixed:4}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vAliq",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vISSQN",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cMunFG",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cListServ",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDeducao",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vOutro",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDescIncond",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDescCond",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vISSRet",void 0);bt([xn(),Nt("design:type",String)],Ie.prototype,"indISS",void 0);bt([xn(),Nt("design:type",String)],Ie.prototype,"indIncentivo",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cServico",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cMun",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cPais",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"nProcesso",void 0);import{IsOptional as tn,IsString as on}from"class-validator";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 en(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(en,"_ts_metadata");var zt=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};$i([tn(),on(),en("design:type",String)],zt.prototype,"vBCUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vBCFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSInter",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSInterPart",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vICMSUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vICMSUFRemet",void 0);import{IsOptional as bi,IsString as Ml,ValidateNested as xr}from"class-validator";import{IsOptional as gm,IsString as vm}from"class-validator";function mm(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(mm,"_ts_decorate");function hm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(hm,"_ts_metadata");var Pn=class{static{a(this,"TransferenciaCredito")}vIBS;vCBS};mm([gm(),vm(),hm("design:type",String)],Pn.prototype,"vIBS",void 0);mm([gm(),vm(),hm("design:type",String)],Pn.prototype,"vCBS",void 0);import{IsString as Ol}from"class-validator";function Il(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(Il,"_ts_decorate");function Rl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Rl,"_ts_metadata");var nn=class{static{a(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};Il([Ol(),Rl("design:type",String)],nn.prototype,"tpCredPresIBSZFM",void 0);Il([Ol(),Rl("design:type",String)],nn.prototype,"vCredPresIBSZFM",void 0);Il([Ol(),Rl("design:type",String)],nn.prototype,"competApur",void 0);import{IsOptional as ym,IsString as Tn,ValidateNested as Sm}from"class-validator";import{Type as Cm}from"class-transformer";function ui(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(ui,"_ts_decorate");function mi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(mi,"_ts_metadata");var En=class{static{a(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ui([Tn(),mi("design:type",String)],En.prototype,"vCredPresCondSus",void 0);ui([Tn(),mi("design:type",String)],En.prototype,"pCredPres",void 0);ui([Tn(),mi("design:type",String)],En.prototype,"vCredPres",void 0);var zn=class{static{a(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ui([Tn(),mi("design:type",String)],zn.prototype,"vCredPresCondSus",void 0);ui([Tn(),mi("design:type",String)],zn.prototype,"pCredPres",void 0);ui([Tn(),mi("design:type",String)],zn.prototype,"vCredPres",void 0);var di=class{static{a(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};ui([ym(),Sm(),Cm(()=>En),mi("design:type",typeof En>"u"?Object:En)],di.prototype,"gIBSCredPres",void 0);ui([ym(),Sm(),Cm(()=>zn),mi("design:type",typeof zn>"u"?Object:zn)],di.prototype,"gCBSCredPres",void 0);ui([Tn(),mi("design:type",String)],di.prototype,"vBCCredPres",void 0);ui([Tn(),mi("design:type",String)],di.prototype,"cCredPres",void 0);import{IsString as Im}from"class-validator";function bm(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(bm,"_ts_decorate");function Nm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Nm,"_ts_metadata");var Mn=class{static{a(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};bm([Im(),Nm("design:type",String)],Mn.prototype,"vIBSEstCred",void 0);bm([Im(),Nm("design:type",String)],Mn.prototype,"vCBSEstCred",void 0);import{IsString as Al}from"class-validator";function Fl(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(Fl,"_ts_decorate");function Dl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Dl,"_ts_metadata");var rn=class{static{a(this,"AjusteCompet")}competApur;vCBS;vIBS};Fl([Al(),Dl("design:type",String)],rn.prototype,"competApur",void 0);Fl([Al(),Dl("design:type",String)],rn.prototype,"vCBS",void 0);Fl([Al(),Dl("design:type",String)],rn.prototype,"vIBS",void 0);import{IsOptional as Df,ValidateNested as Af}from"class-validator";import{TransformDecimal as xe}from"nfets/core";import{Type as xf}from"class-transformer";function te(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(te,"_ts_decorate");function oe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(oe,"_ts_metadata");var hi=class{static{a(this,"MonoPadrao")}qBCMono;adRemIBS;adRemCBS;vIBSMono;vCBSMono};te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hi.prototype,"qBCMono",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hi.prototype,"adRemIBS",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hi.prototype,"adRemCBS",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hi.prototype,"vIBSMono",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hi.prototype,"vCBSMono",void 0);var gi=class{static{a(this,"MonoReten")}qBCMonoReten;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten};te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"qBCMonoReten",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemIBSReten",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vIBSMonoReten",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemCBSReten",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vCBSMonoReten",void 0);var vi=class{static{a(this,"MonoRet")}qBCMonoRet;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet};te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"qBCMonoRet",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemIBSRet",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vIBSMonoRet",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemCBSRet",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vCBSMonoRet",void 0);var sn=class{static{a(this,"MonoDif")}pDifIBS;vIBSMonoDif;pDifCBS;vCBSMonoDif};te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"pDifIBS",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"vIBSMonoDif",void 0);te([xe({fixed:4}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"pDifCBS",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"vCBSMonoDif",void 0);var ao=class{static{a(this,"IBSCBSMono")}gMonoPadrao;gMonoReten;gMonoRet;gMonoDif;vTotIBSMonoItem;vTotCBSMonoItem};te([Df(),Af(),xf(()=>hi),oe("design:type",typeof hi>"u"?Object:hi)],ao.prototype,"gMonoPadrao",void 0);te([Df(),Af(),xf(()=>gi),oe("design:type",typeof gi>"u"?Object:gi)],ao.prototype,"gMonoReten",void 0);te([Df(),Af(),xf(()=>vi),oe("design:type",typeof vi>"u"?Object:vi)],ao.prototype,"gMonoRet",void 0);te([Df(),Af(),xf(()=>sn),oe("design:type",typeof sn>"u"?Object:sn)],ao.prototype,"gMonoDif",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ao.prototype,"vTotIBSMonoItem",void 0);te([xe({fixed:2}),oe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ao.prototype,"vTotCBSMonoItem",void 0);import{IsOptional as ac,ValidateNested as cc}from"class-validator";import{TransformDecimal as Lm}from"nfets/core";import{TransformDecimal as Ms}from"nfets/core";import{IsString as Rm}from"class-validator";function jn(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(jn,"_ts_decorate");function Bn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Bn,"_ts_metadata");var Ut=class{static{a(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};jn([Rm(),Bn("design:type",String)],Ut.prototype,"CSTReg",void 0);jn([Rm(),Bn("design:type",String)],Ut.prototype,"cClassTribReg",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pAliqEfetRegIBSUF",void 0);jn([Ms({fixed:2}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vTribRegIBSUF",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pAliqEfetRegIBSMun",void 0);jn([Ms({fixed:2}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vTribRegIBSMun",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pAliqEfetRegCBS",void 0);jn([Ms({fixed:2}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.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 co=class{static{a(this,"TribCompraGov")}pAliqIBSUF;vTribIBSUF;pAliqIBSMun;vTribIBSMun;pAliqCBS;vTribCBS};js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqIBSUF",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribIBSUF",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqIBSMun",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribIBSMun",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqCBS",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribCBS",void 0);import{Type as fc}from"class-transformer";import{IsOptional as xl,ValidateNested as wl}from"class-validator";import{TransformDecimal as Tm}from"nfets/core";import{Type as Pl}from"class-transformer";import{TransformDecimal as Dm}from"nfets/core";import{IsOptional as sS}from"class-validator";function Om(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(Om,"_ts_decorate");function Fm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Fm,"_ts_metadata");var It=class{static{a(this,"DevTrib")}pDevTrib;vDevTrib};Om([sS(),Dm({fixed:4}),Fm("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pDevTrib",void 0);Om([Dm({fixed:2}),Fm("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vDevTrib",void 0);import{TransformDecimal as wm}from"nfets/core";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 xm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(xm,"_ts_metadata");var Rt=class{static{a(this,"Dif")}pDif;vDif};Am([wm({fixed:4}),xm("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pDif",void 0);Am([wm({fixed:2}),xm("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vDif",void 0);import{TransformDecimal as zm}from"nfets/core";function Pm(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(Pm,"_ts_decorate");function Em(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Em,"_ts_metadata");var Ot=class{static{a(this,"Red")}pRedAliq;pAliqEfet};Pm([zm({fixed:4}),Em("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pRedAliq",void 0);Pm([zm({fixed:4}),Em("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 Lo=class{static{a(this,"IBSMun")}pIBSMun;gDif;gDevTrib;gRed;vIBSMun};ic([Tm({fixed:4}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Lo.prototype,"pIBSMun",void 0);ic([xl(),wl(),Pl(()=>Rt),nc("design:type",typeof Rt>"u"?Object:Rt)],Lo.prototype,"gDif",void 0);ic([xl(),wl(),Pl(()=>It),nc("design:type",typeof It>"u"?Object:It)],Lo.prototype,"gDevTrib",void 0);ic([xl(),wl(),Pl(()=>Ot),nc("design:type",typeof Ot>"u"?Object:Ot)],Lo.prototype,"gRed",void 0);ic([Tm({fixed:2}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Lo.prototype,"vIBSMun",void 0);import{IsOptional as El,ValidateNested as zl}from"class-validator";import{TransformDecimal as Mm}from"nfets/core";import{Type as Tl}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([Mm({fixed:4}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Uo.prototype,"pIBSUF",void 0);rc([El(),zl(),Tl(()=>Rt),sc("design:type",typeof Rt>"u"?Object:Rt)],Uo.prototype,"gDif",void 0);rc([El(),zl(),Tl(()=>It),sc("design:type",typeof It>"u"?Object:It)],Uo.prototype,"gDevTrib",void 0);rc([El(),zl(),Tl(()=>Ot),sc("design:type",typeof Ot>"u"?Object:Ot)],Uo.prototype,"gRed",void 0);rc([Mm({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 Vm}from"nfets/core";import{Type as Tf}from"class-transformer";import{TransformDecimal as jm}from"nfets/core";import{IsOptional as aS,IsString as Bm}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 yi=class{static{a(this,"ALCZFMCBS")}tpALCZFMCBS;nProcSuframa;pAliqEfetRegCBS;vTribRegCBS};wf([Bm(),Pf("design:type",String)],yi.prototype,"tpALCZFMCBS",void 0);wf([aS(),Bm(),Pf("design:type",String)],yi.prototype,"nProcSuframa",void 0);wf([jm({fixed:4}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"pAliqEfetRegCBS",void 0);wf([jm({fixed:2}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.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 Us(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Us,"_ts_metadata");var fo=class{static{a(this,"CBS")}pCBS;gDif;gDevTrib;gRed;gALCZFMCBS;vCBS};Ls([Vm({fixed:4}),Us("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pCBS",void 0);Ls([Ef(),zf(),Tf(()=>Rt),Us("design:type",typeof Rt>"u"?Object:Rt)],fo.prototype,"gDif",void 0);Ls([Ef(),zf(),Tf(()=>It),Us("design:type",typeof It>"u"?Object:It)],fo.prototype,"gDevTrib",void 0);Ls([Ef(),zf(),Tf(()=>Ot),Us("design:type",typeof Ot>"u"?Object:Ot)],fo.prototype,"gRed",void 0);Ls([Ef(),zf(),Tf(()=>yi),Us("design:type",typeof yi>"u"?Object:yi)],fo.prototype,"gALCZFMCBS",void 0);Ls([Vm({fixed:2}),Us("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vCBS",void 0);function Dr(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(Dr,"_ts_decorate");function Ar(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ar,"_ts_metadata");var _t=class{static{a(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular;gTribCompraGov};Dr([Lm({fixed:2}),Ar("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vBC",void 0);Dr([ac(),cc(),fc(()=>Uo),Ar("design:type",typeof Uo>"u"?Object:Uo)],_t.prototype,"gIBSUF",void 0);Dr([ac(),cc(),fc(()=>Lo),Ar("design:type",typeof Lo>"u"?Object:Lo)],_t.prototype,"gIBSMun",void 0);Dr([Lm({fixed:2}),Ar("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vIBS",void 0);Dr([ac(),cc(),fc(()=>fo),Ar("design:type",typeof fo>"u"?Object:fo)],_t.prototype,"gCBS",void 0);Dr([ac(),cc(),fc(()=>Ut),Ar("design:type",typeof Ut>"u"?Object:Ut)],_t.prototype,"gTribRegular",void 0);Dr([ac(),cc(),fc(()=>co),Ar("design:type",typeof co>"u"?Object:co)],_t.prototype,"gTribCompraGov",void 0);import{Type as wr}from"class-transformer";function Si(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(Si,"_ts_decorate");function Ci(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ci,"_ts_metadata");var Ft=class{static{a(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"CST",void 0);Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"cClassTrib",void 0);Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"indDoacao",void 0);Si([bi(),xr(),wr(()=>Pn),Ci("design:type",typeof Pn>"u"?Object:Pn)],Ft.prototype,"gTransfCred",void 0);Si([bi(),xr(),wr(()=>nn),Ci("design:type",typeof nn>"u"?Object:nn)],Ft.prototype,"gCredPresIBSZFM",void 0);Si([bi(),xr(),wr(()=>di),Ci("design:type",typeof di>"u"?Object:di)],Ft.prototype,"gCredPresOper",void 0);Si([bi(),xr(),wr(()=>rn),Ci("design:type",typeof rn>"u"?Object:rn)],Ft.prototype,"gAjusteCompet",void 0);Si([bi(),xr(),wr(()=>Mn),Ci("design:type",typeof Mn>"u"?Object:Mn)],Ft.prototype,"gEstornoCred",void 0);Si([bi(),xr(),wr(()=>ao),Ci("design:type",typeof ao>"u"?Object:ao)],Ft.prototype,"gIBSCBSMono",void 0);Si([bi(),xr(),wr(()=>_t),Ci("design:type",typeof _t>"u"?Object:_t)],Ft.prototype,"gIBSCBS",void 0);import{TransformDecimal as pc}from"nfets/core";import{IsOptional as Hs,IsString as jl}from"class-validator";function Vn(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(Vn,"_ts_decorate");function Ln(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ln,"_ts_metadata");var Ht=class{static{a(this,"IS")}CSTIS;cClassTribIS;vBCIS;pIS;adRemIS;uTrib;qTrib;vIS};Vn([jl(),Ln("design:type",String)],Ht.prototype,"CSTIS",void 0);Vn([jl(),Ln("design:type",String)],Ht.prototype,"cClassTribIS",void 0);Vn([Hs(),pc({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vBCIS",void 0);Vn([Hs(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pIS",void 0);Vn([Hs(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"adRemIS",void 0);Vn([Hs(),jl(),Ln("design:type",String)],Ht.prototype,"uTrib",void 0);Vn([Hs(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"qTrib",void 0);Vn([Hs(),pc({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vIS",void 0);import{Choice as cS,TransformDecimal as fS}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 po(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(po,"_ts_metadata");var Te=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IS;IBSCBS};Wt([lo(),fS({fixed:2}),po("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Te.prototype,"vTotTrib",void 0);Wt([lo(),Qo(),Ho(()=>Z),po("design:type",typeof IICMS>"u"?Object:IICMS)],Te.prototype,"ICMS",void 0);Wt([lo(),Qo(),Ho(()=>so),po("design:type",typeof IIPI>"u"?Object:IIPI)],Te.prototype,"IPI",void 0);Wt([lo(),Qo(),Ho(()=>Ie),po("design:type",typeof IISSQN>"u"?Object:IISSQN)],Te.prototype,"ISSQN",void 0);Wt([lo(),Qo(),Ho(()=>ai),po("design:type",typeof III>"u"?Object:III)],Te.prototype,"II",void 0);Wt([lo(),Qo(),Ho(()=>ci),po("design:type",typeof IPIS>"u"?Object:IPIS)],Te.prototype,"PIS",void 0);Wt([lo(),Qo(),Ho(()=>jo),po("design:type",typeof IPISST>"u"?Object:IPISST)],Te.prototype,"PISST",void 0);Wt([lo(),Qo(),Ho(()=>pi),po("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Te.prototype,"COFINS",void 0);Wt([lo(),Qo(),Ho(()=>Vo),po("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Te.prototype,"COFINSST",void 0);Wt([lo(),Qo(),Ho(()=>zt),po("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Te.prototype,"ICMSUFDest",void 0);Wt([lo(),Qo(),Ho(()=>Ht),po("design:type",typeof IIS>"u"?Object:IIS)],Te.prototype,"IS",void 0);Wt([lo(),Qo(),Ho(()=>Ft),po("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],Te.prototype,"IBSCBS",void 0);Te=Wt([cS({properties:["ICMS","ISSQN"]})],Te);import{IsOptional as pS,IsString as Um,ValidateNested as lS}from"class-validator";import{Type as dS}from"class-transformer";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 Vl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Vl,"_ts_metadata");var Mf=class{static{a(this,"IpiDevol")}vIPIDevol};Bl([Um(),Vl("design:type",String)],Mf.prototype,"vIPIDevol",void 0);var Qs=class{static{a(this,"Devol")}pDevol;IPI};Bl([Um(),Vl("design:type",String)],Qs.prototype,"pDevol",void 0);Bl([pS(),lS(),dS(()=>Mf),Vl("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Qs.prototype,"IPI",void 0);import{IsOptional as Hm,IsString as Qm,ValidateNested as Gm}from"class-validator";import{Type as qm}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([Qm(),Bf("design:type",String)],Gs.prototype,"xCampo",void 0);jf([Qm(),Bf("design:type",String)],Gs.prototype,"xTexto",void 0);var qs=class{static{a(this,"ObsItem")}obsCont;obsFisco};jf([Hm(),Gm(),qm(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsCont",void 0);jf([Hm(),Gm(),qm(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsFisco",void 0);import{IsOptional as uS,IsString as Xm}from"class-validator";function Zm(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(Zm,"_ts_decorate");function Ym(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ym,"_ts_metadata");var Un=class{static{a(this,"DFeReferenciado")}chaveAcesso;nItem};Zm([Xm(),Ym("design:type",String)],Un.prototype,"chaveAcesso",void 0);Zm([uS(),Xm(),Ym("design:type",String)],Un.prototype,"nItem",void 0);import{TransformDecimal as hS}from"nfets/core";function an(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(an,"_ts_decorate");function cn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(cn,"_ts_metadata");var Zs=class{static{a(this,"DetAttributes")}nItem};an([Jm(),cn("design:type",String)],Zs.prototype,"nItem",void 0);var uo=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem;DFeReferenciado};an([mS(),Xs(),Js(()=>Zs),cn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],uo.prototype,"$",void 0);an([Xs(),Js(()=>w),cn("design:type",typeof IProd>"u"?Object:IProd)],uo.prototype,"prod",void 0);an([Ys(),Xs(),Js(()=>Te),cn("design:type",typeof IImposto>"u"?Object:IImposto)],uo.prototype,"imposto",void 0);an([Ys(),Xs(),Js(()=>Qs),cn("design:type",typeof IDevol>"u"?Object:IDevol)],uo.prototype,"impostoDevol",void 0);an([Ys(),Jm(),cn("design:type",String)],uo.prototype,"infAdProd",void 0);an([Ys(),Xs(),Js(()=>qs),cn("design:type",typeof IObsItem>"u"?Object:IObsItem)],uo.prototype,"obsItem",void 0);an([Ys(),hS({fixed:2}),cn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uo.prototype,"vItem",void 0);an([Ys(),Xs(),Js(()=>Un),cn("design:type",typeof IDFeReferenciado>"u"?Object:IDFeReferenciado)],uo.prototype,"DFeReferenciado",void 0);import{IsDate as gS,IsOptional as lc,IsString as Hn}from"class-validator";import{TransformDecimal as vS,TransformDateString as yS}from"nfets/core";function Go(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(Go,"_ts_decorate");function qo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qo,"_ts_metadata");var rt=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};Go([Hn(),qo("design:type",String)],rt.prototype,"CNPJ",void 0);Go([Hn(),qo("design:type",String)],rt.prototype,"xOrgao",void 0);Go([Hn(),qo("design:type",String)],rt.prototype,"matr",void 0);Go([Hn(),qo("design:type",String)],rt.prototype,"xAgente",void 0);Go([lc(),Hn(),qo("design:type",String)],rt.prototype,"fone",void 0);Go([Hn(),qo("design:type",String)],rt.prototype,"UF",void 0);Go([lc(),Hn(),qo("design:type",String)],rt.prototype,"nDAR",void 0);Go([lc(),yS({format:"YYYY-MM-DD"}),qo("design:type",typeof Date>"u"?Object:Date)],rt.prototype,"dEmi",void 0);Go([lc(),vS({fixed:2}),qo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rt.prototype,"vDAR",void 0);Go([Hn(),qo("design:type",String)],rt.prototype,"repEmi",void 0);Go([lc(),gS(),qo("design:type",typeof Date>"u"?Object:Date)],rt.prototype,"dPag",void 0);import{IsString as bS}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 Pr=class{static{a(this,"InfSolicNFF")}xSolic};SS([bS(),CS("design:type",String)],Pr.prototype,"xSolic",void 0);import{ArrayMaxSize as NS,IsArray as IS,IsOptional as Ll,IsString as _s,ValidateNested as _m}from"class-validator";import{Type as Wm}from"class-transformer";import{Choice as RS}from"nfets/core";function fn(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(fn,"_ts_decorate");function Qn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Qn,"_ts_metadata");var dc=class{static{a(this,"Defensivo")}nReceituario;CPFRespTec};fn([_s(),Qn("design:type",String)],dc.prototype,"nReceituario",void 0);fn([_s(),Qn("design:type",String)],dc.prototype,"CPFRespTec",void 0);var Er=class{static{a(this,"GuiaTransito")}tpGuia;UFGuia;serieGuia;nGuia};fn([_s(),Qn("design:type",String)],Er.prototype,"tpGuia",void 0);fn([_s(),Qn("design:type",String)],Er.prototype,"UFGuia",void 0);fn([Ll(),_s(),Qn("design:type",String)],Er.prototype,"serieGuia",void 0);fn([_s(),Qn("design:type",String)],Er.prototype,"nGuia",void 0);var Ni=class{static{a(this,"Agropecuario")}defensivo;guiaTransito};fn([Ll(),IS(),NS(20),_m({each:!0}),Wm(()=>dc),Qn("design:type",Array)],Ni.prototype,"defensivo",void 0);fn([Ll(),_m(),Wm(()=>Er),Qn("design:type",typeof IGuiaTransito>"u"?Object:IGuiaTransito)],Ni.prototype,"guiaTransito",void 0);Ni=fn([RS({properties:["defensivo","guiaTransito"]})],Ni);import{IsString as Vf,ValidateNested as Km}from"class-validator";import{Type as km}from"class-transformer";function Ws(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(Ws,"_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};Ws([Vf(),Ks("design:type",String)],uc.prototype,"Modulus",void 0);Ws([Vf(),Ks("design:type",String)],uc.prototype,"Exponent",void 0);var mc=class{static{a(this,"PAASignature")}SignatureValue;RSAKeyValue};Ws([Vf(),Ks("design:type",String)],mc.prototype,"SignatureValue",void 0);Ws([Km(),km(()=>uc),Ks("design:type",typeof IRSAKeyValue>"u"?Object:IRSAKeyValue)],mc.prototype,"RSAKeyValue",void 0);var Gn=class{static{a(this,"InfPAA")}CNPJPAA;PAASignature};Ws([Vf(),Ks("design:type",String)],Gn.prototype,"CNPJPAA",void 0);Ws([Km(),km(()=>mc),Ks("design:type",typeof IPAASignature>"u"?Object:IPAASignature)],Gn.prototype,"PAASignature",void 0);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 ve(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ve,"_ts_metadata");var zr=class{static{a(this,"InfNFeAttributes")}Id;versao};ge([st(),eh(),ve("design:type",String)],zr.prototype,"Id",void 0);ge([st(),eh(),ve("design:type",String)],zr.prototype,"versao",void 0);var J=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};ge([Hl(),Ul(),Oe(()=>zr),Re(),ve("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],J.prototype,"$",void 0);ge([Hl(),Ul(),Re(),Oe(()=>B),ve("design:type",typeof IIde>"u"?Object:IIde)],J.prototype,"ide",void 0);ge([Hl(),Ul(),Re(),Oe(()=>Ge),ve("design:type",typeof IEmit>"u"?Object:IEmit)],J.prototype,"emit",void 0);ge([st(),Re(),Oe(()=>rt),ve("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],J.prototype,"avulsa",void 0);ge([st(),Re(),Oe(()=>Xe),ve("design:type",typeof IDest>"u"?Object:IDest)],J.prototype,"dest",void 0);ge([st(),Re(),Oe(()=>k),ve("design:type",typeof ILocal>"u"?Object:ILocal)],J.prototype,"retirada",void 0);ge([st(),Re(),Oe(()=>k),ve("design:type",typeof ILocal>"u"?Object:ILocal)],J.prototype,"entrega",void 0);ge([st(),Re({each:!0}),$m(10),Oe(()=>Ko),ve("design:type",Array)],J.prototype,"autXML",void 0);ge([Re({each:!0}),$m(990),OS(1),Oe(()=>uo),ve("design:type",Array)],J.prototype,"det",void 0);ge([Re(),Oe(()=>to),ve("design:type",typeof ITotal>"u"?Object:ITotal)],J.prototype,"total",void 0);ge([Re(),Oe(()=>ht),ve("design:type",typeof ITransp>"u"?Object:ITransp)],J.prototype,"transp",void 0);ge([st(),Re(),Oe(()=>Sn),ve("design:type",typeof ICobr>"u"?Object:ICobr)],J.prototype,"cobr",void 0);ge([Re(),Oe(()=>Nn),ve("design:type",typeof IPag>"u"?Object:IPag)],J.prototype,"pag",void 0);ge([st(),Re(),Oe(()=>gn),ve("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],J.prototype,"infIntermed",void 0);ge([st(),Re(),Oe(()=>Eo),ve("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],J.prototype,"infAdic",void 0);ge([st(),Re(),Oe(()=>Ei),ve("design:type",typeof IExporta>"u"?Object:IExporta)],J.prototype,"exporta",void 0);ge([st(),Re(),Oe(()=>zi),ve("design:type",typeof ICompra>"u"?Object:ICompra)],J.prototype,"compra",void 0);ge([st(),Re(),Oe(()=>gt),ve("design:type",typeof ICana>"u"?Object:ICana)],J.prototype,"cana",void 0);ge([st(),Re(),Oe(()=>kt),ve("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],J.prototype,"infRespTec",void 0);ge([st(),Re(),Oe(()=>Pr),ve("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],J.prototype,"infSolicNFF",void 0);ge([st(),Re(),Oe(()=>Ni),ve("design:type",typeof IAgropecuario>"u"?Object:IAgropecuario)],J.prototype,"agropecuario",void 0);ge([st(),Re(),Oe(()=>Gn),ve("design:type",typeof IInfPAA>"u"?Object:IInfPAA)],J.prototype,"infPAA",void 0);import{Type as nh}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 Uf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Uf,"_ts_metadata");var ks=class{static{a(this,"NFeAttributes")}xmlns};Lf([AS(),DS(),Uf("design:type",String)],ks.prototype,"xmlns",void 0);var qn=class{static{a(this,"NFe")}$;infNFe;Signature};Lf([oh(),th(),nh(()=>ks),ih(),Uf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],qn.prototype,"$",void 0);Lf([oh(),th(),nh(()=>J),ih(),Uf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],qn.prototype,"infNFe",void 0);Lf([FS(),Uf("design:type",typeof Signature>"u"?Object:Signature)],qn.prototype,"Signature",void 0);import{plainToInstance as xS}from"nfets/core";import{Validates as Tt}from"nfets/core";var Zo=a((o=[Xd])=>(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 Me=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)],Me.prototype,"det",null);Dt([Tt(w),E("design:type",Function),E("design:paramtypes",[typeof IProd>"u"?Object:IProd]),E("design:returntype",void 0)],Me.prototype,"prod",null);Dt([Tt(Te),E("design:type",Function),E("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),E("design:returntype",void 0)],Me.prototype,"imposto",null);Dt([Tt(Z),E("design:type",Function),E("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),E("design:returntype",void 0)],Me.prototype,"icms",null);Dt([Tt(Ie),E("design:type",Function),E("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),E("design:returntype",void 0)],Me.prototype,"issqn",null);Dt([Tt(ai),E("design:type",Function),E("design:paramtypes",[typeof III>"u"?Object:III]),E("design:returntype",void 0)],Me.prototype,"ii",null);Dt([Tt(so),E("design:type",Function),E("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),E("design:returntype",void 0)],Me.prototype,"ipi",null);Dt([Tt(ci),E("design:type",Function),E("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),E("design:returntype",void 0)],Me.prototype,"pis",null);Dt([Tt(jo),E("design:type",Function),E("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),E("design:returntype",void 0)],Me.prototype,"pisst",null);Dt([Tt(pi),E("design:type",Function),E("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),E("design:returntype",void 0)],Me.prototype,"cofins",null);Dt([Tt(Vo),E("design:type",Function),E("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),E("design:returntype",void 0)],Me.prototype,"cofinsst",null);Dt([Tt(zt),E("design:type",Function),E("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),E("design:returntype",void 0)],Me.prototype,"icmsufdest",null);Dt([Zo(jt),Tt(Ht),E("design:type",Function),E("design:paramtypes",[typeof IIS>"u"?Object:IIS]),E("design:returntype",void 0)],Me.prototype,"is",null);Dt([Zo(jt),Tt(Ft),E("design:type",Function),E("design:paramtypes",[typeof IIBSCBS>"u"?Object:IIBSCBS]),E("design:returntype",void 0)],Me.prototype,"ibscbs",null);Dt([Zo(jt),E("design:type",Function),E("design:paramtypes",[typeof IVItem>"u"?Object:IVItem]),E("design:returntype",void 0)],Me.prototype,"vItem",null);Dt([Zo(jt),Tt(Un),E("design:type",Function),E("design:paramtypes",[typeof IDFeReferenciado>"u"?Object:IDFeReferenciado]),E("design:returntype",void 0)],Me.prototype,"dfeReferenciado",null);import{left as wS,right as Ql}from"nfets/core";import{ValidateErrorsMetadata as Hf,Validates as Ce}from"nfets/core";import{Environment as PS,NFeTsError as ES}from"nfets/core";function ye(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(ye,"_ts_decorate");function S(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(S,"_ts_metadata");var U=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=Me.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 xS(this.data,qn,{clearEmptyValues:!0})}quiet(){return Reflect.deleteMetadata(Hf,this),this}toObject(){if(this.$data!==void 0)return Ql(this.$data);let e=this.errors();if(e)return wS(new ES(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),Ql(this.$data)}async assemble(){let e=this.toObject();return e.isLeft()?e:Ql(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==PS.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!==Le.Normal)return;switch(Xc[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Le.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Le.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Le.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Hf,this)}collect(e){let t=Reflect.getMetadata(Hf,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Hf,(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}}};ye([Ce(zr),S("design:type",Function),S("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),S("design:returntype",void 0)],U.prototype,"infNFe",null);ye([Ce(B),S("design:type",Function),S("design:paramtypes",[typeof IIde>"u"?Object:IIde]),S("design:returntype",void 0)],U.prototype,"ide",null);ye([Ce(Ge),S("design:type",Function),S("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),S("design:returntype",void 0)],U.prototype,"emit",null);ye([Ce(rt),S("design:type",Function),S("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),S("design:returntype",void 0)],U.prototype,"avulsa",null);ye([Ce(Xe),S("design:type",Function),S("design:paramtypes",[typeof IDest>"u"?Object:IDest]),S("design:returntype",void 0)],U.prototype,"dest",null);ye([Ce(k),S("design:type",Function),S("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),S("design:returntype",void 0)],U.prototype,"retirada",null);ye([Ce(k),S("design:type",Function),S("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),S("design:returntype",void 0)],U.prototype,"entrega",null);ye([Ce(Ko,{each:!0}),S("design:type",Function),S("design:paramtypes",[Array]),S("design:returntype",void 0)],U.prototype,"autXML",null);ye([Ce(to),S("design:type",Function),S("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),S("design:returntype",void 0)],U.prototype,"total",null);ye([Zo(jt),Ce(Po),S("design:type",Function),S("design:paramtypes",[typeof IIBSCBSTot>"u"?Object:IIBSCBSTot]),S("design:returntype",void 0)],U.prototype,"IBSCBSTot",null);ye([Zo(jt),Ce(mr),S("design:type",Function),S("design:paramtypes",[typeof IISTot>"u"?Object:IISTot]),S("design:returntype",void 0)],U.prototype,"ISTot",null);ye([Zo(jt),S("design:type",Function),S("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),S("design:returntype",void 0)],U.prototype,"buildTotalForPL_010",null);ye([Ce(ht),S("design:type",Function),S("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),S("design:returntype",void 0)],U.prototype,"transp",null);ye([Ce(Sn),S("design:type",Function),S("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),S("design:returntype",void 0)],U.prototype,"cobr",null);ye([Ce(Nn),S("design:type",Function),S("design:paramtypes",[typeof IPag>"u"?Object:IPag]),S("design:returntype",void 0)],U.prototype,"pag",null);ye([Ce(gn),S("design:type",Function),S("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),S("design:returntype",void 0)],U.prototype,"infIntermed",null);ye([Ce(Eo),S("design:type",Function),S("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),S("design:returntype",void 0)],U.prototype,"infAdic",null);ye([Ce(Ei),S("design:type",Function),S("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),S("design:returntype",void 0)],U.prototype,"exporta",null);ye([Ce(zi),S("design:type",Function),S("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),S("design:returntype",void 0)],U.prototype,"compra",null);ye([Ce(gt),S("design:type",Function),S("design:paramtypes",[typeof ICana>"u"?Object:ICana]),S("design:returntype",void 0)],U.prototype,"cana",null);ye([Ce(kt),S("design:type",Function),S("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),S("design:returntype",void 0)],U.prototype,"infRespTec",null);ye([Ce(Pr),S("design:type",Function),S("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),S("design:returntype",void 0)],U.prototype,"infSolicNFF",null);ye([Zo(jt),Ce(Ni),S("design:type",Function),S("design:paramtypes",[typeof IAgropecuario>"u"?Object:IAgropecuario]),S("design:returntype",void 0)],U.prototype,"agropecuario",null);ye([Zo(jt),Ce(Gn),S("design:type",Function),S("design:paramtypes",[typeof IInfPAA>"u"?Object:IInfPAA]),S("design:returntype",void 0)],U.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=U.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 zS.resolve(xc(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Gl(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Gl(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()?TS(new Ac(t.value.message,e,{cause:t.value.cause})):Gl(e)}};import{NFeTsError as BS}from"nfets/core";import{left as VS,right as LS}from"nfets/core";import{unreachable as US}from"nfets/core";import{plainToInstance as jS}from"nfets/core";import{Type as ql}from"class-transformer";import{Allow as MS,IsNotEmptyObject as Zl,IsObject as Yl,ValidateNested as Xl}from"class-validator";import{IsString as ah}from"class-validator";function rh(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(rh,"_ts_decorate");function sh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(sh,"_ts_metadata");var $s=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};rh([ah(),sh("design:type",String)],$s.prototype,"qrCode",void 0);rh([ah(),sh("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 pn=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Gf([Yl(),Zl(),ql(()=>ks),Xl(),qf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],pn.prototype,"$",void 0);Gf([Yl(),Zl(),ql(()=>J),Xl(),qf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],pn.prototype,"infNFe",void 0);Gf([Yl(),Zl(),ql(()=>$s),Xl(),qf("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],pn.prototype,"infNFeSupl",void 0);Gf([MS(),qf("design:type",typeof Signature>"u"?Object:Signature)],pn.prototype,"Signature",void 0);var Zf=class extends U{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 jS(this.data,pn,{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===Le.Normal)return this.data.infNFe.ide.tpEmis=Le.OFFLINE,void 0}};var ch=class extends Qf{static{a(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new pt(this.certificates);transmitter=new et(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 VS(new BS("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 LS(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 US(i.version)}}};var fh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCw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8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+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},m=>this.builder.text(this.identification(i),{...m,align:u})).row({left:r,right:n},m=>this.builder.font(p).text(c,{...m,align:u}).font(f)).row({left:r,right:n},m=>this.builder.text(`${this.addressLine1(s)}${this.addressLine2(s)}${this.addressLine3(s)}`,{...m,align:u})).row({left:r,right:n},m=>this.builder.text(this.addressLine4(s),{...m,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 fh}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 Zn=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!==Le.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){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 HS}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!==HS.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,m={size:this.context.options.textFontSize},v={font:m,text:n.padStart(3,"0")},y={font:m,text:r},C=[{font:m,align:{x:"right"},text:`${this.context.currency(s,4)} ${c}`},{font:m,align:{x:"right"},text:this.context.currency(f,10)},{font:m,align:{x:"right"},text:this.context.currency(p??0)},{font:m,align:{x:"right"},text:this.context.currency(u)}],F=this.builder.widthOfString(r),x=this.columnStyles[1];if(F>=x)return[[v,{colSpan:6,font:m,text:`${r} ${i}`}],[{colSpan:3},...C]];let j=this.builder.widthOfString(i),at=this.columnStyles[2];if(j>=at)return[[v,y,{colSpan:5,font:m,text:i}],[{colSpan:3},...C]];let be=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${i}`)<=be?[[v,y,{font:m,text:i},...C]]:[[v,y,{colSpan:5,font:m,text:i}],[{colSpan:3},...C]]}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 m=this.item(u),[v]=m,y=this.calculateRowHeight(v,n),C=0;if(m.length>1){let be=this.calculateRowHeight(m[1],n);C=Math.max(n,be)}let{top:F,bottom:x}=this.defaultStyle.padding,j=F+x,at=m.length>1?n*.2:0;return p+y+C+m.length*j+at},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 je={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"},ph={[je.Dinheiro]:"Dinheiro",[je.Cheque]:"Cheque",[je.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[je.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[je.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[je.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[je.ValeRefeicao]:"Vale Refei\xE7\xE3o",[je.ValePresente]:"Vale Presente",[je.ValeCombustivel]:"Vale Combust\xEDvel",[je.BoletoBancario]:"Boleto Banc\xE1rio",[je.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[je.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[je.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[je.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[je.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[je.CreditoEmLoja]:"Cr\xE9dito em Loja",[je.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[je.SemPagamento]:"Sem pagamento",[je.PagamentoPosterior]:"Pagamento Posterior",[je.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(ph[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 Sv=Hd(Vd(),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!==Le.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 Sv.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,m=f+(u-r)/2,v=this.builder.y();this.builder.save().translate(m,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},m=>this.builder.font(u).text(`CONSUMIDOR - ${i}`,{...m,align:"center"}).font(p)).row({left:e?.x??n,right:r},m=>this.builder.text(`${s}${f}`,{...m,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,m)=>u+m,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,m)=>u+m,0)}};import{dateToolkit as fp,timezones as Ld}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=Ld[p],m=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},C=>this.builder.font(y).text(`NFC-e n\xBA ${i} - s\xE9rie ${s} emitida em: ${m}`,{...C,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=Ld[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},m=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${p}
17
- Data de autoriza\xE7\xE3o: ${u}`,{...m,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:r,right:i}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??r,right:i},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(){o._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n,{nNF:i,serie:s,dhEmi:c}=this.context.data.infNFe.ide,f=i.padStart(9,"0"),p=s.padStart(3,"0"),{cUF:u}=this.context.data.infNFe.ide,m=Ld[u],v=fp(c).tz(m).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`NFC-e n\xBA ${f} - s\xE9rie ${p} emitida em: ${v}`,{width:r,align:"center"}));let{cMsg:y,xMsg:C}=this.context.protNFe?.infProt??{};C&&e.push(this.builder.heightOfString(`$(${y}) ${C}`,{width:r,align:"left"}));let F=this.context.protNFe;if(F){let{dhRecbto:x,nProt:j}=F.infProt,at=j.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),be=fp(x).tz(m).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`Protocolo de autoriza\xE7\xE3o: ${at}
18
- Data de autoriza\xE7\xE3o: ${be}`,{width:r,align:"center"}))}return e.reduce((x,j)=>x+j,0)}};var lp=class o{static{a(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[cp.instance(this.context),pp.instance(this.context),Zn.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(){o._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+(t.height?.()??0),0)}};var nN=.35277777777777775,Ud=.75,Cv={"80mm":80/nN},$n="gerado por github.com/nfets/nfets";var dp=class o{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 o(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},i=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...i,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
13
+ `,typeof t=="function"&&t(null,c),c}});var rv=O(nv=>{"use strict";var Hb="\x1B[47m",Ub="\x1B[40m",wd="\x1B[37m",Pd="\x1B[30m",Lr="\x1B[0m",Qb=Hb+Pd,Gb=Ub+wd,qb=a(function(o,e,t){return{"00":Lr+" "+o,"01":Lr+e+"\u2584"+o,"02":Lr+t+"\u2584"+o,10:Lr+e+"\u2580"+o,11:" ",12:"\u2584",20:Lr+t+"\u2580"+o,21:"\u2580",22:"\u2588"}},"createPalette"),ov=a(function(o,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 i=n*e+t;return o[i]?"2":"1"},"mkCodePixel"),iv=a(function(o,e,t,n){return ov(o,e,t,n)+ov(o,e,t,n+1)},"mkCode");nv.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i=!!(e&&e.inverse),s=e&&e.inverse?Gb:Qb,p=qb(s,i?Pd:wd,i?wd:Pd),u=Lr+`
14
+ `+s,h=s;for(let v=-1;v<n+1;v+=2){for(let y=-1;y<n;y++)h+=p[iv(r,n,y,v)];h+=p[iv(r,n,n,v)]+u}return h+=Lr,typeof t=="function"&&t(null,h),h}});var av=O(sv=>{"use strict";var Zb=tv(),Yb=rv();sv.render=function(o,e,t){return e&&e.small?Yb.render(o,e,t):Zb.render(o,e,t)}});var zd=O(fv=>{"use strict";var Xb=Ic();function cv(o,e){let t=o.a/255,n=e+'="'+o.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}a(cv,"getColorAttrib");function Ed(o,e,t){let n=o+e;return typeof t<"u"&&(n+=" "+t),n}a(Ed,"svgCmd");function Jb(o,e,t){let n="",r=0,i=!1,s=0;for(let c=0;c<o.length;c++){let f=Math.floor(c%e),p=Math.floor(c/e);!f&&!i&&(i=!0),o[c]?(s++,c>0&&f>0&&o[c-1]||(n+=i?Ed("M",f+t,.5+p+t):Ed("m",r,0),r=0,i=!1),f+1<e&&o[c+1]||(n+=Ed("h",s),s=0)):r++}return n}a(Jb,"qrToPath");fv.render=a(function(e,t,n){let r=Xb.getOptions(t),i=e.modules.size,s=e.modules.data,c=i+r.margin*2,f=r.color.light.a?"<path "+cv(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",p="<path "+cv(r.color.dark,"stroke")+' d="'+Jb(s,i,r.margin)+'"/>',u='viewBox="0 0 '+c+" "+c+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+u+' shape-rendering="crispEdges">'+f+p+`</svg>
15
+ `;return typeof n=="function"&&n(null,v),v},"render")});var pv=O(np=>{"use strict";var _b=zd();np.render=_b.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 lv=O(rp=>{"use strict";var Td=Ic();function Wb(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(Wb,"clearCanvas");function Kb(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}a(Kb,"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=Kb()),r=Td.getOptions(r);let s=Td.getImageWidth(e.modules.size,r),c=i.getContext("2d"),f=c.createImageData(s,s);return Td.qrToImageData(f.data,e,r),Wb(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 uv=O(Rc=>{"use strict";var kb=Jl(),Md=ud(),dv=lv(),$b=zd();function jd(o,e,t,n,r){let i=[].slice.call(arguments,1),s=i.length,c=typeof i[s-1]=="function";if(!c&&!kb())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=Md.create(t,n);f(o(u,e,n))}catch(u){p(u)}})}try{let f=Md.create(t,n);r(null,o(f,e,n))}catch(f){r(f)}}a(jd,"renderCanvas");Rc.create=Md.create;Rc.toCanvas=jd.bind(null,dv.render);Rc.toDataURL=jd.bind(null,dv.renderToDataURL);Rc.toString=jd.bind(null,function(o,e,t){return $b.render(o,t)})});var vv=O(kn=>{"use strict";var hv=Jl(),Bd=ud(),eN=kg(),mv=$g(),tN=av(),gv=pv();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(hv())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}a(Oc,"checkParams");function oN(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}a(oN,"getTypeFromFilename");function sp(o){switch(o){case"svg":return gv;case"txt":case"utf8":return mv;default:return eN}}a(sp,"getRendererFromType");function iN(o){switch(o){case"svg":return gv;case"terminal":return tN;default:return mv}}a(iN,"getStringRendererFromType");function Fc(o,e,t){if(!t.cb)return new Promise(function(n,r){try{let i=Bd.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=Bd.create(e,t.opts);return o(n,t.opts,t.cb)}catch(n){t.cb(n)}}a(Fc,"render");kn.create=Bd.create;kn.toCanvas=uv().toCanvas;kn.toString=a(function(e,t,n){let r=Oc(e,t,n),i=r.opts?r.opts.type:void 0,s=iN(i);return Fc(s.render,e,r)},"toString");kn.toDataURL=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToDataURL,e,r)},"toDataURL");kn.toBuffer=a(function(e,t,n){let r=Oc(e,t,n),i=sp(r.opts.type);return Fc(i.renderToBuffer,e,r)},"toBuffer");kn.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&&!hv())throw new Error("Too few arguments provided");let i=Oc(t,n,r),s=i.opts.type||oN(e),f=sp(s).renderToFile.bind(null,e);return Fc(f,t,i)},"toFile");kn.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 Vd=O((nM,yv)=>{"use strict";yv.exports=vv()});import{NFeTsError as Dv}from"nfets/core";var Ac=class extends Dv{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 Gd=(function(o){return o.RegistradoEVinculado="135",o})({}),qd=(function(o){return o.RegistradoEVinculado="135",o.RegistradoNaoVinculado="136",o.CancelamentoHomologadoForaPrazo="155",o})({});var Zd=(function(o){return o.InutilizacaoHomologada="102",o})({});import{search as Yd}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"},RN=[Ur.PL_009_V4],jt=[Ur.PL_010_V1,Ur.PL_010_V1_21,Ur.PL_010_V1_30],Xd=Ur.PL_009_V4,xc=a(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Yd("packages/nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Yd("nfe/schemas",{onFound:a(o=>o,"onFound"),onNotFound:a(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Jd=Ur;var Av=2.834645669291339,D=a(o=>o*Av,"mm"),DN={A4:[D(210),D(297)]},_d={top:D(5),right:D(5),bottom:D(5),left:D(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 xv}from"nfets/core";import{left as Dp,NFeTsError as Ap,right as Wd}from"nfets/core";var wv=new Set([Qe.Cancelamento,Qe.CancelamentoSubstituicao]),Kd=class{static{a(this,"NfeComplements")}toolkit;constructor(e=new xv){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return Dp(new Ap("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return Dp(new Ap("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return Dp(new Ap("Access key not found in protNFe"));let i=this.findMatchingRetEvento(t,r);return i?Wd(this.toolkit.appendNode(e,i)):Wd(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(qd).includes(r)&&i&&wv.has(i)&&s===t)return n}return null}};import{Decimal as kd}from"nfets/core";var Pc=class{static{a(this,"DefaultDetBuilderAggregator")}builder;zero=kd.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 kd.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as xp}from"nfets/core";var Ec=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=xp.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:xp.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=xp.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 Gy,Validates as qy,left as Zy}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 lu,NFeTsError as du,right as uu}from"nfets/core";import{Xml2JsToolkit as Pv,NativeCertificateRepository as Ev,SoapRemoteTransmissionRepository as zv,MemoryCacheAdapter as Tv}from"nfets/core";import{EntitySigner as Mv,ValidateErrorsMetadata as jv,XmlSigner as Bv}from"nfets/core";var Gr=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=Qd.create();toolkit=new Pv;caching=new Tv;certificates=new Ev(this.http,this.caching);soap=new zv(this.toolkit,this.certificates);signer=new Mv(this.toolkit,this.certificates);xmlSigner=new Bv(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(jv,this)}};import Ay from"path";import{NFeTsError as xy,StateCodes as wy}from"nfets/core";import{ValidateErrorsMetadata as pu,Validates as hn}from"nfets/core";import{left as Py,right as Ey}from"nfets/core";import{StateCodes as Vv,Environment as Lv}from"nfets/core";import{Type as Hv}from"class-transformer";import{IsEnum as $d,IsNotEmptyObject as Uv,IsObject as Qv,ValidateNested as Gv,IsOptional as qv}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 Pp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Pp,"_ts_metadata");var dn=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};zc([$d(Lv),Pp("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dn.prototype,"tpAmb",void 0);zc([$d(Vv),Pp("design:type",typeof StateCode>"u"?Object:StateCode)],dn.prototype,"cUF",void 0);zc([qv()],dn.prototype,"xServ",void 0);var wp=class{static{a(this,"ConsultStatusRequest")}consStatServ};zc([Uv(),Qv(),Gv(),Hv(()=>dn),Pp("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],wp.prototype,"consStatServ",void 0);import{Choice as Zv}from"nfets/core";import{StateCodes as Yv,Environment as Xv}from"nfets/core";import{Type as Ep}from"class-transformer";import{IsEnum as eu,IsOptional as Mc,IsString as go,Length as tu,MinLength as Jv,MaxLength as _v,Matches as Oa,ValidateNested as zp,Allow as Wv,IsObject as ou}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([go(),tt("design:type",String)],Tc.prototype,"Id",void 0);var Ra=class{static{a(this,"InutNFeAttributes")}xmlns;versao};Ge([go(),tt("design:type",String)],Ra.prototype,"xmlns",void 0);Ge([go(),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([zp(),Ep(()=>Tc),tt("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],et.prototype,"$",void 0);Ge([eu(Xv),tt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],et.prototype,"tpAmb",void 0);Ge([Mc()],et.prototype,"xServ",void 0);Ge([eu(Yv),tt("design:type",typeof StateCode>"u"?Object:StateCode)],et.prototype,"cUF",void 0);Ge([go(),tu(2,2),Oa(/^[0-9]{2}$/),tt("design:type",String)],et.prototype,"ano",void 0);Ge([go(),Mc(),tt("design:type",String)],et.prototype,"CNPJ",void 0);Ge([go(),Mc(),tt("design:type",String)],et.prototype,"CPF",void 0);Ge([go(),tu(2,2),Oa(/^(55|65)$/),tt("design:type",String)],et.prototype,"mod",void 0);Ge([go(),Oa(/^[0-9]{1,3}$/),tt("design:type",String)],et.prototype,"serie",void 0);Ge([go(),Oa(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFIni",void 0);Ge([go(),Oa(/^[0-9]{1,9}$/),tt("design:type",String)],et.prototype,"nNFFin",void 0);Ge([go(),Jv(15),_v(255),tt("design:type",String)],et.prototype,"xJust",void 0);et=Ge([Zv({properties:["CNPJ","CPF"],required:!0})],et);var Fi=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};Ge([ou(),zp(),Ep(()=>Ra),tt("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Fi.prototype,"$",void 0);Ge([ou(),zp(),Ep(()=>et),tt("design:type",typeof IInfInut>"u"?Object:IInfInut)],Fi.prototype,"infInut",void 0);Ge([Wv(),tt("design:type",typeof Signature>"u"?Object:Signature)],Fi.prototype,"Signature",void 0);import{Environment as Kv}from"nfets/core";import{IsEnum as kv,IsOptional as $v,IsString as ey,Length as ty,Matches as oy}from"class-validator";function Tp(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(Tp,"_ts_decorate");function iu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(iu,"_ts_metadata");var or=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};Tp([kv(Kv),iu("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],or.prototype,"tpAmb",void 0);Tp([$v()],or.prototype,"xServ",void 0);Tp([ey(),ty(44,44),oy(/^[A-Z0-9]{44}$/),iu("design:type",String)],or.prototype,"chNFe",void 0);import{StateCodes as iy,Environment as ny}from"nfets/core";import{IsEnum as Mp,IsOptional as Bc,IsString as ry,IsNotEmpty as sy}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 vo=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Fa([Mp(ny),Bc(),jc("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],vo.prototype,"tpAmb",void 0);Fa([Mp(iy),Bc(),jc("design:type",typeof StateCode>"u"?Object:StateCode)],vo.prototype,"cUF",void 0);Fa([ry(),Bc(),jc("design:type",String)],vo.prototype,"idLote",void 0);Fa([Bc(),Mp(["0","1"])],vo.prototype,"indSinc",void 0);Fa([sy(),jc("design:type",typeof T>"u"?Object:T)],vo.prototype,"NFe",void 0);import{Environment as ay}from"nfets/core";import{IsEnum as cy,IsString as fy}from"class-validator";function nu(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(nu,"_ts_decorate");function ru(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ru,"_ts_metadata");var qr=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;nRec};nu([cy(ay),ru("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],qr.prototype,"tpAmb",void 0);nu([fy(),ru("design:type",String)],qr.prototype,"nRec",void 0);import{IsString as Di,IsNotEmpty as py,ValidateNested as Hc,IsObject as Uc,IsOptional as su,IsEnum as ly,IsNumber as dy,Allow as uy}from"class-validator";import{Type as Qc}from"class-transformer";import{Choice as hy,TransformDateString as my}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([Di(),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([Di(),Je("design:type",typeof StateCode>"u"?Object:StateCode)],Xe.prototype,"cOrgao",void 0);qe([Di(),Je("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Xe.prototype,"tpAmb",void 0);qe([Di(),su(),Je("design:type",String)],Xe.prototype,"CNPJ",void 0);qe([Di(),su(),Je("design:type",String)],Xe.prototype,"CPF",void 0);qe([Di(),Je("design:type",String)],Xe.prototype,"chNFe",void 0);qe([my({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Je("design:type",String)],Xe.prototype,"dhEvento",void 0);qe([ly(Qe),Je("design:type",typeof Qe>"u"?Object:Qe)],Xe.prototype,"tpEvento",void 0);qe([dy(),Je("design:type",Number)],Xe.prototype,"nSeqEvento",void 0);qe([Di(),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([hy({properties:["CNPJ","CPF"],required:!0})],Xe);var Lc=class{static{a(this,"EventoItemAttributes")}xmlns};qe([Di(),Je("design:type",String)],Lc.prototype,"xmlns",void 0);var Xo=class{static{a(this,"EventoItem")}$;infEvento;Signature};qe([Uc(),Hc(),Qc(()=>Lc),Je("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Xo.prototype,"$",void 0);qe([Uc(),Hc(),Qc(()=>Xe),Je("design:type",typeof Xe>"u"?Object:Xe)],Xo.prototype,"infEvento",void 0);qe([uy(),Je("design:type",typeof Signature>"u"?Object:Signature)],Xo.prototype,"Signature",void 0);var Zr=class{static{a(this,"EventoPayload")}idLote;evento};qe([Di(),Je("design:type",String)],Zr.prototype,"idLote",void 0);qe([py(),Hc(),Qc(()=>Xo),Je("design:type",typeof Xo>"u"?Object:Xo)],Zr.prototype,"evento",void 0);import{StateAcronyms as gy}from"nfets/core";import{Choice as vy}from"nfets/core";import{IsIn as yy,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 yo=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};Yr([qc()],yo.prototype,"xServ",void 0);Yr([Zc(),yy(Object.values(gy)),Gc("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],yo.prototype,"UF",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"IE",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"CNPJ",void 0);Yr([qc(),Zc(),Gc("design:type",String)],yo.prototype,"CPF",void 0);yo=Yr([vy({properties:["IE","CNPJ","CPF"],required:!0})],yo);import{StateCodes as Sy,Environment as Cy}from"nfets/core";import{Choice as by}from"nfets/core";import{Type as Ny}from"class-transformer";import{IsEnum as au,IsObject as Iy,IsOptional as cu,IsString as jp,Length as Ry,Matches as Oy,ValidateNested as Fy}from"class-validator";function ir(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(ir,"_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};ir([jp(),Ry(44,44),Oy(/^[A-Z0-9]{44}$/),Xr("design:type",String)],Yc.prototype,"chNFe",void 0);var So=class{static{a(this,"DistribuicaoDFePayload")}tpAmb;cUFAutor;CNPJ="";CPF="";consChNFe};ir([au(Cy),Xr("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],So.prototype,"tpAmb",void 0);ir([au(Sy),Xr("design:type",typeof StateCode>"u"?Object:StateCode)],So.prototype,"cUFAutor",void 0);ir([cu(),jp(),Xr("design:type",String)],So.prototype,"CNPJ",void 0);ir([cu(),jp(),Xr("design:type",String)],So.prototype,"CPF",void 0);ir([Iy(),Fy(),Ny(()=>Yc),Xr("design:type",typeof IConsChNFe>"u"?Object:IConsChNFe)],So.prototype,"consChNFe",void 0);So=ir([by({properties:["CNPJ","CPF"],required:!0})],So);import{Environment as L}from"nfets/core";var Bp={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 W}from"nfets/core";var Dy={[W.AC]:"SVRS",[W.AL]:"SVRS",[W.AM]:"AM",[W.AP]:"SVRS",[W.BA]:"BA",[W.CE]:"SVRS",[W.DF]:"SVRS",[W.ES]:"SVRS",[W.GO]:"GO",[W.MA]:"SVAN",[W.MG]:"MG",[W.MS]:"MS",[W.MT]:"MT",[W.PA]:"SVRS",[W.PB]:"SVRS",[W.PE]:"PE",[W.PI]:"SVRS",[W.PR]:"PR",[W.RJ]:"SVRS",[W.RN]:"SVRS",[W.RO]:"SVRS",[W.RR]:"SVRS",[W.RS]:"RS",[W.SC]:"SVRS",[W.SE]:"SVRS",[W.SP]:"SP",[W.TO]:"SVRS",91:"AN",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},fu=Dy;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 un(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(un,"_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??=Jd.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]:fu[t];return Bp[r][n][e.service]}errors(){return Reflect.getMetadata(pu,this)}validate(e){try{let t=this.errors();return t?Py(new xy(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ey(e))}finally{Reflect.deleteMetadata(pu,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return Ay.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:wy[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=Bp.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})}};un([hn(dn),re("design:type",Function),re("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),re("design:returntype",Promise)],Bt.prototype,"consultStatus",null);un([hn(Fi),re("design:type",Function),re("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"inutilizacao",null);un([hn(or),re("design:type",Function),re("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),re("design:returntype",Promise)],Bt.prototype,"consultaProtocolo",null);un([hn(vo),re("design:type",Function),re("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"autorizacao",null);un([hn(qr),re("design:type",Function),re("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),re("design:returntype",Promise)],Bt.prototype,"retAutorizacao",null);un([hn(Zr),re("design:type",Function),re("design:paramtypes",[Object]),re("design:returntype",Promise)],Bt.prototype,"recepcaoEvento",null);un([hn(yo),re("design:type",Function),re("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),re("design:returntype",Promise)],Bt.prototype,"consultaCadastro",null);un([hn(So),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 lu(new du("CNPJ/CPF do emitente \xE9 obrigat\xF3rio"));if(t.length===11)return uu({CPF:t,idDigits:t.padStart(14,"0")});let n=t.padStart(14,"0");return n.length!==14?lu(new du("CNPJ/CPF do emitente \xE9 inv\xE1lido")):uu({CNPJ:n,idDigits:n})}};import{StateCodes as zy}from"nfets/core";import{Decimal as Ty}from"nfets/core";var My=["MT"],jy=[zy.MT],By=[[/[áàâãªä]/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 Vy(o){if(!o)return!1;let e=o.toUpperCase();return My.includes(e)||jy.includes(e)}a(Vy,"shouldStripSefazAccents");function Ly(o){return By.reduce((e,[t,n])=>e.replace(t,n),o)}a(Ly,"replaceSefazSpecialChars");function Jr(o,e){return Vy(e)?Vp(o):o}a(Jr,"sanitizeSefazText");function Hy(o){return o===null||typeof o!="object"||o instanceof Date||o instanceof Ty?!1:!ArrayBuffer.isView(o)}a(Hy,"isWalkableObject");function Vp(o){if(typeof o=="string")return Ly(o);if(Array.isArray(o))return o.map(n=>Vp(n));if(!Hy(o))return o;let e={};for(let[t,n]of Object.entries(o))e[t]=Vp(n);return e}a(Vp,"walk");function Uy(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(Uy,"_ts_decorate");function Lp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Lp,"_ts_metadata");var nr=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(Gd).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?Zy(new Qy(t.join(", "))):Gy(e)}};Uy([qy(Xo),Lp("design:type",Function),Lp("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Lp("design:returntype",void 0)],nr.prototype,"validated",null);import{left as Yy,NFeTsError as Xy,right as Jy}from"nfets/core";var Jc=class extends nr{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 Yy(new Xy("Evento de cancelamento n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return Jy({xml:u,response:f})}};var rr=(function(o){return o.Asynchronous="0",o.Synchronous="1",o})({});var Hp=(function(o){return o.LotReceived="103",o.ProcessedBatch="104",o})({});import{NFeTsError as _y}from"nfets/core";var Da=class extends _y{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 _c,right as Aa,NFeTsError as Wy}from"nfets/core";var mn=(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 Wc=class extends ft{static{a(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=rr.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===rr.Synchronous&&this.isSyncResponse(c)?Aa(await this.response(r.value,c)):e.indSinc===rr.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):_c(new Da)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(mn).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()?_c(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())?_c(new Wy("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??rr.Synchronous;return r===rr.Asynchronous&&n!==Hp.LotReceived.toString()||r===rr.Synchronous&&n!==Hp.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 _c(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 hu,NFeTsError as mu,right as gu,Validates as ky}from"nfets/core";function Ky(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(Ky,"_ts_decorate");function Up(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Up,"_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 hu(new mu("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=v.$.versao,S=await this.protocol(this.versionedInutNFe(p.value,y),v,y);return gu({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(Zd).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?hu(new mu(t.join(", "))):gu(e)}};Ky([ky(Fi),Up("design:type",Function),Up("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Up("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 vu=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 $y,NFeTsError as e0,right as t0}from"nfets/core";var yu=class extends nr{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 $y(new e0("Evento de manifesta\xE7\xE3o n\xE3o retornado"));let u=await this.protocol(this.versionedEvent(i,s),p,s);return t0({xml:u,response:f})}};import{gunzipSync as o0}from"zlib";import{right as i0}from"nfets/core";var Su=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 i0({response:s,xml:c?o0(Buffer.from(c.$value,"base64")).toString("utf8"):void 0})}};import n0 from"crypto";import{right as $c,SignatureAlgorithm as r0,unreachable as s0}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):s0(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=n0.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,r0.SHA1);return y.isLeft()?y:$c(`${r}${v}|${y.value}`)}};import{StateCodes as Iu}from"nfets/core";import{Environment as F}from"nfets/core";var Qp={AC:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[F.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"}},[F.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:{[F.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"}},[F.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:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[F.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"}},[F.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:{[F.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[F.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[F.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"}},[F.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:{[F.Homolog]:{},[F.Production]:{}}};import{Environment as Cu,StateCodes as A}from"nfets/core";var bu={[Cu.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"},[Cu.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 k}from"nfets/core";var a0={[k.AC]:"SVRS",[k.AL]:"SVRS",[k.AM]:"AM",[k.AP]:"SVRS",[k.BA]:"SVRS",[k.CE]:"SVRS",[k.DF]:"SVRS",[k.ES]:"SVRS",[k.GO]:"GO",[k.MA]:"SVRS",[k.MG]:"MG",[k.MS]:"MS",[k.MT]:"MT",[k.PA]:"SVRS",[k.PB]:"SVRS",[k.PE]:"SVRS",[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",SVRS:"SVRS"},Nu=a0;var ef=class extends vo{static{a(this,"NfceAutorizacaoPayload")}};import{Validates as f0}from"nfets/core";function c0(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(c0,"_ts_decorate");function Gp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Gp,"_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=Nu[t],c=Qp[r][n][e.service];if(c)return c;let f=Object.keys(Iu).find(p=>Iu[p]===t);return Qp[f][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return bu[n][t]}async autorizacao(e){return super.autorizacao(e)}};c0([f0(ef),Gp("design:type",Function),Gp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Gp("design:returntype",Promise)],ot.prototype,"autorizacao",null);var Ru=class extends Jc{static{a(this,"NfceCancelPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var tf=class extends Wc{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 p0,SignatureAlgorithm as Ou,left as qp,right as of,NFeTsError as Zp}from"nfets/core";var Fu=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 qp(r?.value??new Zp("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 qp(new Zp("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?qp(new Zp("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===p0.SHA256?Ou.SHA256:Ou.SHA1}};var Du=class extends xa{static{a(this,"NfceVoidRangePipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var Au=class extends Kc{static{a(this,"NfceConsultStatusPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};var xu=class extends kc{static{a(this,"NfceConsultProtocoloPipeline")}qrCode=new pt(this.certificates);transmitter=new ot(this.soap,this.qrCode)};import zS from"path";import{left as TS,right as Gl}from"nfets/core";import{Allow as FS,IsNotEmpty as DS,IsNotEmptyObject as tm,IsObject as om,IsString as AS,ValidateNested as im}from"class-validator";import{ArrayMaxSize as $h,ArrayMinSize as OS,IsNotEmptyObject as Hl,IsObject as Ul,IsOptional as ct,IsString as em,ValidateNested as Re}from"class-validator";import{Type as Oe}from"class-transformer";import{ArrayMaxSize as wu,IsArray as Pu,IsEnum as l0,IsOptional as Ne,IsString as P,ValidateNested as Wr}from"class-validator";import{Type as Kr}from"class-transformer";import{Choice as d0,TransformDateString as rf,TransformDecimal as u0}from"nfets/core";import{StateCodes as h0}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 R(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(R,"_ts_metadata");var Ai=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};I([P(),R("design:type",String)],Ai.prototype,"cUF",void 0);I([P(),R("design:type",String)],Ai.prototype,"AAMM",void 0);I([P(),R("design:type",String)],Ai.prototype,"CNPJ",void 0);I([P(),R("design:type",String)],Ai.prototype,"mod",void 0);I([P(),R("design:type",String)],Ai.prototype,"serie",void 0);I([P(),R("design:type",String)],Ai.prototype,"nNF",void 0);var Qt=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};I([P(),R("design:type",String)],Qt.prototype,"cUF",void 0);I([P(),R("design:type",String)],Qt.prototype,"AAMM",void 0);I([Ne(),P(),R("design:type",String)],Qt.prototype,"CNPJ",void 0);I([Ne(),P(),R("design:type",String)],Qt.prototype,"CPF",void 0);I([P(),R("design:type",String)],Qt.prototype,"IE",void 0);I([P(),R("design:type",String)],Qt.prototype,"mod",void 0);I([P(),R("design:type",String)],Qt.prototype,"serie",void 0);I([P(),R("design:type",String)],Qt.prototype,"nNF",void 0);Qt=I([d0({properties:["CNPJ","CPF"],required:!0})],Qt);var _r=class{static{a(this,"RefECF")}mod;nECF;nCOO};I([P(),R("design:type",String)],_r.prototype,"mod",void 0);I([P(),R("design:type",String)],_r.prototype,"nECF",void 0);I([P(),R("design:type",String)],_r.prototype,"nCOO",void 0);var xi=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};I([Ne(),P(),R("design:type",String)],xi.prototype,"refNFe",void 0);I([Ne(),P(),R("design:type",String)],xi.prototype,"refNFeSig",void 0);I([Ne(),Wr(),Kr(()=>Ai),R("design:type",typeof IRefNF>"u"?Object:IRefNF)],xi.prototype,"refNF",void 0);I([Ne(),Wr(),Kr(()=>Qt),R("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],xi.prototype,"refNFP",void 0);I([Ne(),P(),R("design:type",String)],xi.prototype,"refCTe",void 0);I([Ne(),Wr(),Kr(()=>_r),R("design:type",typeof IRefECF>"u"?Object:IRefECF)],xi.prototype,"refECF",void 0);var sr=class{static{a(this,"CompraGov")}tpEnteGov;pRedutor;tpOperGov;refDFeAnt};I([P(),R("design:type",String)],sr.prototype,"tpEnteGov",void 0);I([u0({fixed:4}),R("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sr.prototype,"pRedutor",void 0);I([P(),R("design:type",String)],sr.prototype,"tpOperGov",void 0);I([Ne(),P(),R("design:type",String)],sr.prototype,"refDFeAnt",void 0);var nf=class{static{a(this,"PagAntecipado")}refNFe};I([Pu(),wu(99),P({each:!0}),R("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([l0(h0),R("design:type",typeof StateCode>"u"?Object:StateCode)],B.prototype,"cUF",void 0);I([P(),R("design:type",String)],B.prototype,"cNF",void 0);I([P(),R("design:type",String)],B.prototype,"natOp",void 0);I([P(),R("design:type",String)],B.prototype,"mod",void 0);I([P(),R("design:type",String)],B.prototype,"serie",void 0);I([P(),R("design:type",String)],B.prototype,"nNF",void 0);I([rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),R("design:type",String)],B.prototype,"dhEmi",void 0);I([Ne(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),R("design:type",String)],B.prototype,"dhSaiEnt",void 0);I([Ne(),rf({format:"YYYY-MM-DD"}),R("design:type",String)],B.prototype,"dPrevEntrega",void 0);I([P(),R("design:type",String)],B.prototype,"tpNF",void 0);I([P(),R("design:type",String)],B.prototype,"idDest",void 0);I([P(),R("design:type",String)],B.prototype,"cMunFG",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"cMunFGIBS",void 0);I([P(),R("design:type",String)],B.prototype,"tpImp",void 0);I([P(),R("design:type",typeof TpEmis>"u"?Object:TpEmis)],B.prototype,"tpEmis",void 0);I([P(),Ne(),R("design:type",String)],B.prototype,"cDV",void 0);I([P(),R("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],B.prototype,"tpAmb",void 0);I([P(),R("design:type",String)],B.prototype,"finNFe",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"tpNFDebito",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"tpNFCredito",void 0);I([P(),R("design:type",String)],B.prototype,"indFinal",void 0);I([P(),R("design:type",String)],B.prototype,"indPres",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"indIntermed",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"cIndOp",void 0);I([P(),R("design:type",String)],B.prototype,"procEmi",void 0);I([P(),R("design:type",String)],B.prototype,"verProc",void 0);I([Ne(),P(),rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),R("design:type",String)],B.prototype,"dhCont",void 0);I([Ne(),P(),R("design:type",String)],B.prototype,"xJust",void 0);I([Ne(),Pu(),wu(999),Wr({each:!0}),Kr(()=>xi),R("design:type",Array)],B.prototype,"NFref",void 0);I([Ne(),Wr(),Kr(()=>sr),R("design:type",typeof ICompraGov>"u"?Object:ICompraGov)],B.prototype,"gCompraGov",void 0);I([Ne(),Wr(),Kr(()=>nf),R("design:type",typeof IPagAntecipado>"u"?Object:IPagAntecipado)],B.prototype,"gPagAntecipado",void 0);import{IsOptional as ar,IsString as Jo,ValidateNested as m0}from"class-validator";import{Choice as g0}from"nfets/core";import{Type as v0}from"class-transformer";import{IsOptional as sf,IsString as No}from"class-validator";function Co(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(Co,"_ts_decorate");function bo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bo,"_ts_metadata");var it=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Co([No(),bo("design:type",String)],it.prototype,"xLgr",void 0);Co([No(),bo("design:type",String)],it.prototype,"nro",void 0);Co([sf(),No(),bo("design:type",String)],it.prototype,"xCpl",void 0);Co([No(),bo("design:type",String)],it.prototype,"xBairro",void 0);Co([No(),bo("design:type",String)],it.prototype,"cMun",void 0);Co([No(),bo("design:type",String)],it.prototype,"xMun",void 0);Co([No(),bo("design:type",String)],it.prototype,"UF",void 0);Co([No(),bo("design:type",String)],it.prototype,"CEP",void 0);Co([sf(),No(),bo("design:type",String)],it.prototype,"cPais",void 0);Co([sf(),No(),bo("design:type",String)],it.prototype,"xPais",void 0);Co([sf(),No(),bo("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 Io(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Io,"_ts_metadata");var Ze=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT;ISUFEmit};Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"CNPJ",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"CPF",void 0);Kt([Jo(),Io("design:type",String)],Ze.prototype,"xNome",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"xFant",void 0);Kt([m0(),v0(()=>it),Io("design:type",typeof it>"u"?Object:it)],Ze.prototype,"enderEmit",void 0);Kt([Jo(),Io("design:type",String)],Ze.prototype,"IE",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"IEST",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"IM",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"CNAE",void 0);Kt([Jo(),Io("design:type",String)],Ze.prototype,"CRT",void 0);Kt([ar(),Jo(),Io("design:type",String)],Ze.prototype,"ISUFEmit",void 0);Ze=Kt([g0({properties:["CNPJ","CPF"],required:!0})],Ze);import{IsOptional as wi,IsString as Pi,ValidateNested as y0}from"class-validator";import{Type as S0}from"class-transformer";import{IsOptional as Fo,IsString as Do}from"class-validator";function Ro(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(Ro,"_ts_decorate");function Oo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Oo,"_ts_metadata");var xt=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xLgr",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"nro",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xCpl",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xBairro",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"cMun",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xMun",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"UF",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"CEP",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"cPais",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"xPais",void 0);Ro([Fo(),Do(),Oo("design:type",String)],xt.prototype,"fone",void 0);import{Choice as C0}from"nfets/core";function Ao(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(Ao,"_ts_decorate");function _o(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(_o,"_ts_metadata");var _e=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"CNPJ",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"CPF",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"idEstrangeiro",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"xNome",void 0);Ao([wi(),y0(),S0(()=>xt),_o("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],_e.prototype,"enderDest",void 0);Ao([Pi(),_o("design:type",String)],_e.prototype,"indIEDest",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"IE",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"ISUF",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"IM",void 0);Ao([wi(),Pi(),_o("design:type",String)],_e.prototype,"email",void 0);_e=Ao([C0({properties:["CNPJ","CPF"],required:!0})],_e);import{IsOptional as Wo,IsString as dt}from"class-validator";import{Choice as b0}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 $=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};nt([Wo(),dt(),lt("design:type",String)],$.prototype,"CNPJ",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"CPF",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"xNome",void 0);nt([dt(),lt("design:type",String)],$.prototype,"xLgr",void 0);nt([dt(),lt("design:type",String)],$.prototype,"nro",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"xCpl",void 0);nt([dt(),lt("design:type",String)],$.prototype,"xBairro",void 0);nt([dt(),lt("design:type",String)],$.prototype,"cMun",void 0);nt([dt(),lt("design:type",String)],$.prototype,"xMun",void 0);nt([dt(),lt("design:type",String)],$.prototype,"UF",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"CEP",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"cPais",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"xPais",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"fone",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"email",void 0);nt([Wo(),dt(),lt("design:type",String)],$.prototype,"IE",void 0);$=nt([b0({properties:["CNPJ","CPF"]})],$);import{IsOptional as zu,IsString as Tu}from"class-validator";import{Choice as N0}from"nfets/core";function Yp(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(Yp,"_ts_decorate");function Eu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Eu,"_ts_metadata");var Ko=class{static{a(this,"AutXML")}CNPJ;CPF};Yp([zu(),Tu(),Eu("design:type",String)],Ko.prototype,"CNPJ",void 0);Yp([zu(),Tu(),Eu("design:type",String)],Ko.prototype,"CPF",void 0);Ko=Yp([N0({properties:["CNPJ","CPF"]})],Ko);import{IsOptional as I0,IsString as Bu}from"class-validator";function Mu(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(Mu,"_ts_decorate");function ju(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ju,"_ts_metadata");var gn=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};Mu([Bu(),ju("design:type",String)],gn.prototype,"CNPJ",void 0);Mu([I0(),Bu(),ju("design:type",String)],gn.prototype,"idCadIntTran",void 0);import{IsOptional as Vu,IsString as _p}from"class-validator";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 Jp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Jp,"_ts_metadata");var Ei=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Xp([_p(),Jp("design:type",String)],Ei.prototype,"UFSaidaPais",void 0);Xp([Vu(),_p(),Jp("design:type",String)],Ei.prototype,"xLocExporta",void 0);Xp([Vu(),_p(),Jp("design:type",String)],Ei.prototype,"xLocDespacho",void 0);import{IsOptional as kp,IsString as $p}from"class-validator";function Wp(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(Wp,"_ts_decorate");function Kp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Kp,"_ts_metadata");var zi=class{static{a(this,"Compra")}xNEmp;xPed;xCont};Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xNEmp",void 0);Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xPed",void 0);Wp([kp(),$p(),Kp("design:type",String)],zi.prototype,"xCont",void 0);import{IsOptional as Lu,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 kt=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};kr([es(),$r("design:type",String)],kt.prototype,"CNPJ",void 0);kr([es(),$r("design:type",String)],kt.prototype,"xContato",void 0);kr([es(),$r("design:type",String)],kt.prototype,"email",void 0);kr([es(),$r("design:type",String)],kt.prototype,"fone",void 0);kr([Lu(),es(),$r("design:type",String)],kt.prototype,"idCSRT",void 0);kr([Lu(),es(),$r("design:type",String)],kt.prototype,"hashCSRT",void 0);import{IsOptional as Ha,ValidateNested as Ua}from"class-validator";import{Type as Qa}from"class-transformer";import{IsOptional as ko}from"class-validator";import{TransformDecimal as q}from"nfets/core";function Q(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(Q,"_ts_decorate");function G(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(G,"_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};Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBC",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSDeson",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPUFDest",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFDest",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSUFRemet",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCP",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vBCST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPST",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFCPSTRet",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMono",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMono",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoReten",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoReten",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"qBCMonoRet",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vICMSMonoRet",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vProd",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vFrete",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vSeg",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vDesc",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vII",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPI",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vIPIDevol",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vPIS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vCOFINS",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vOutro",void 0);Q([q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vNF",void 0);Q([ko(),q({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],V.prototype,"vTotTrib",void 0);import{IsOptional as xo,IsString as Hu}from"class-validator";import{TransformDecimal as $o}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 eo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(eo,"_ts_metadata");var ut=class{static{a(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vServ",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBC",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISS",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vPIS",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vCOFINS",void 0);$t([Hu(),eo("design:type",String)],ut.prototype,"dCompet",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDeducao",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vOutro",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescIncond",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vDescCond",void 0);$t([xo(),$o({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vISSRet",void 0);$t([xo(),Hu(),eo("design:type",String)],ut.prototype,"cRegTrib",void 0);import{IsOptional as pr}from"class-validator";import{TransformDecimal as lr}from"nfets/core";function cr(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(cr,"_ts_decorate");function fr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(fr,"_ts_metadata");var wo=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetPIS",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetCOFINS",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetCSLL",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCIRRF",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vIRRF",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCRetPrev",void 0);cr([pr(),lr({fixed:2}),fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vRetPrev",void 0);import{IsOptional as La,ValidateNested as af}from"class-validator";import{IsOptional as Ea,ValidateNested as Uu}from"class-validator";import{TransformDecimal as ol}from"nfets/core";function el(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(el,"_ts_decorate");function tl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(tl,"_ts_metadata");var dr=class{static{a(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vDif",void 0);el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vDevTrib",void 0);el([ol({fixed:2}),tl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dr.prototype,"vIBSMun",void 0);import{Type as Qu}from"class-transformer";import{TransformDecimal as rl}from"nfets/core";function il(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(il,"_ts_decorate");function nl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(nl,"_ts_metadata");var ur=class{static{a(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDif",void 0);il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vDevTrib",void 0);il([rl({fixed:2}),nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ur.prototype,"vIBSUF",void 0);import{TransformDecimal as sl}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 Ti=class{static{a(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};wa([Ea(),Uu(),Qu(()=>ur),Pa("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Ti.prototype,"gIBSUF",void 0);wa([Ea(),Uu(),Qu(()=>dr),Pa("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Ti.prototype,"gIBSMun",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vIBS",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vCredPres",void 0);wa([Ea(),sl({fixed:2}),Pa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as R0}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 Mi=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)],Mi.prototype,"vDif",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vDevTrib",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCBS",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vCredPres",void 0);za([ja(),Ma({fixed:2}),Ta("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.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 ei=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)],ei.prototype,"vIBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMono",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vIBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMonoReten",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vIBSMonoRet",void 0);ts([ns(),is({fixed:2}),os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ei.prototype,"vCBSMonoRet",void 0);import{IsOptional as Zu}from"class-validator";import{TransformDecimal as Yu}from"nfets/core";function Gu(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(Gu,"_ts_decorate");function qu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qu,"_ts_metadata");var rs=class{static{a(this,"EstornoCredTot")}vIBSEstCred;vCBSEstCred};Gu([Zu(),Yu({fixed:2}),qu("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rs.prototype,"vIBSEstCred",void 0);Gu([Zu(),Yu({fixed:2}),qu("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 Po=class{static{a(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono;gEstornoCred};Ba([La(),R0({fixed:2}),Va("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vBCIBSCBS",void 0);Ba([La(),af(),cf(()=>Ti),Va("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],Po.prototype,"gIBS",void 0);Ba([La(),af(),cf(()=>Mi),Va("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],Po.prototype,"gCBS",void 0);Ba([La(),af(),cf(()=>ei),Va("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],Po.prototype,"gMono",void 0);Ba([La(),af(),cf(()=>rs),Va("design:type",typeof IEstornoCredTot>"u"?Object:IEstornoCredTot)],Po.prototype,"gEstornoCred",void 0);import{TransformDecimal as D0}from"nfets/core";import{IsOptional as A0}from"class-validator";function O0(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(O0,"_ts_decorate");function F0(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(F0,"_ts_metadata");var hr=class{static{a(this,"ISTot")}vIS="0.00"};O0([A0(),D0({fixed:2}),F0("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hr.prototype,"vIS",void 0);import{TransformDecimal as x0}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 to=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib;ISTot;IBSCBSTot;vNFTot};ss([Ua(),Qa(()=>V),as("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],to.prototype,"ICMSTot",void 0);ss([Ha(),Ua(),Qa(()=>ut),as("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],to.prototype,"ISSQNtot",void 0);ss([Ha(),Ua(),Qa(()=>wo),as("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],to.prototype,"retTrib",void 0);ss([Ha(),Ua(),Qa(()=>hr),as("design:type",typeof IISTot>"u"?Object:IISTot)],to.prototype,"ISTot",void 0);ss([Ha(),Ua(),Qa(()=>Po),as("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],to.prototype,"IBSCBSTot",void 0);ss([Ha(),x0({fixed:2}),as("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vNFTot",void 0);import{ArrayMaxSize as Wu,IsOptional as Sr,IsString as al,ValidateNested as Ga}from"class-validator";import{Type as qa}from"class-transformer";import{IsOptional as gr,IsString as vr}from"class-validator";import{Choice as w0}from"nfets/core";function vn(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(vn,"_ts_decorate");function mr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(mr,"_ts_metadata");var ht=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};vn([gr(),vr(),mr("design:type",String)],ht.prototype,"CNPJ",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"CPF",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"xNome",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"IE",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"xEnder",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"xMun",void 0);vn([gr(),vr(),mr("design:type",String)],ht.prototype,"UF",void 0);ht=vn([w0({properties:["CNPJ","CPF"]})],ht);import{IsOptional as ps,IsString as Xu}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(),Xu(),fs("design:type",String)],Gt.prototype,"CFOP",void 0);cs([ps(),Xu(),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 ti=class{static{a(this,"VeicTransp")}placa;UF;RNTC};ls([us(),hs(),ds("design:type",String)],ti.prototype,"placa",void 0);ls([us(),hs(),ds("design:type",String)],ti.prototype,"UF",void 0);ls([us(),hs(),ds("design:type",String)],ti.prototype,"RNTC",void 0);var yr=class{static{a(this,"Reboque")}placa;UF;RNTC};ls([us(),hs(),ds("design:type",String)],yr.prototype,"placa",void 0);ls([us(),hs(),ds("design:type",String)],yr.prototype,"UF",void 0);ls([us(),hs(),ds("design:type",String)],yr.prototype,"RNTC",void 0);import{IsOptional as vs,IsString as pf}from"class-validator";import{TransformDecimal as Ju}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 oi=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};ms([vs(),pf(),gs("design:type",String)],oi.prototype,"qVol",void 0);ms([vs(),pf(),gs("design:type",String)],oi.prototype,"esp",void 0);ms([vs(),pf(),gs("design:type",String)],oi.prototype,"marca",void 0);ms([vs(),pf(),gs("design:type",String)],oi.prototype,"nVol",void 0);ms([vs(),Ju({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oi.prototype,"pesoL",void 0);ms([vs(),Ju({fixed:3}),gs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oi.prototype,"pesoB",void 0);import{Choice as _u}from"nfets/core";function ji(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(ji,"_ts_decorate");function yn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(yn,"_ts_metadata");var mt=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};ji([al(),yn("design:type",String)],mt.prototype,"modFrete",void 0);ji([Sr(),Ga(),qa(()=>ht),yn("design:type",typeof ht>"u"?Object:ht)],mt.prototype,"transporta",void 0);ji([Sr(),Ga(),qa(()=>Gt),yn("design:type",typeof Gt>"u"?Object:Gt)],mt.prototype,"retTransp",void 0);ji([Sr(),Ga(),qa(()=>ti),yn("design:type",typeof ti>"u"?Object:ti)],mt.prototype,"veicTransp",void 0);ji([Sr(),Ga({each:!0}),qa(()=>yr),Wu(5),yn("design:type",Array)],mt.prototype,"reboque",void 0);ji([Sr(),al(),yn("design:type",String)],mt.prototype,"vagao",void 0);ji([Sr(),al(),yn("design:type",String)],mt.prototype,"balsa",void 0);ji([Sr(),Ga({each:!0}),qa(()=>oi),Wu(5e3),yn("design:type",Array)],mt.prototype,"vol",void 0);mt=ji([_u({properties:["veicTransp","reboque"]}),_u({properties:["vagao","balsa"]})],mt);import{ArrayMaxSize as P0,IsOptional as Hi,IsString as cl,ValidateNested as Ku}from"class-validator";import{Type as ku}from"class-transformer";import{TransformDecimal as lf}from"nfets/core";function Vi(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(Vi,"_ts_decorate");function Li(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Li,"_ts_metadata");var Bi=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};Vi([Hi(),cl(),Li("design:type",String)],Bi.prototype,"nFat",void 0);Vi([Hi(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vOrig",void 0);Vi([Hi(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vDesc",void 0);Vi([Hi(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vLiq",void 0);var ys=class{static{a(this,"Dup")}nDup;dVenc;vDup};Vi([Hi(),cl(),Li("design:type",String)],ys.prototype,"nDup",void 0);Vi([Hi(),cl(),Li("design:type",String)],ys.prototype,"dVenc",void 0);Vi([Hi(),lf({fixed:2}),Li("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ys.prototype,"vDup",void 0);var Sn=class{static{a(this,"Cobr")}fat;dup};Vi([Hi(),Ku(),ku(()=>Bi),Li("design:type",typeof Bi>"u"?Object:Bi)],Sn.prototype,"fat",void 0);Vi([Hi(),Ku({each:!0}),P0(120),ku(()=>ys),Li("design:type",Array)],Sn.prototype,"dup",void 0);import{ArrayMaxSize as j0,ArrayMinSize as B0,IsOptional as V0,ValidateNested as L0}from"class-validator";import{Type as H0}from"class-transformer";import{IsOptional as Is,IsString as Za,ValidateNested as E0}from"class-validator";import{Type as z0}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 T0,TransformDateString as M0}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 bn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bn,"_ts_metadata");var oo=class{static{a(this,"DetPag")}indPag;tPag;xPag;vPag;dPag;CNPJPag;UFPag;card};Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"indPag",void 0);Cn([Za(),bn("design:type",typeof TPag>"u"?Object:TPag)],oo.prototype,"tPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"xPag",void 0);Cn([T0({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oo.prototype,"vPag",void 0);Cn([Is(),M0({format:"YYYY-MM-DD"}),bn("design:type",String)],oo.prototype,"dPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"CNPJPag",void 0);Cn([Is(),Za(),bn("design:type",String)],oo.prototype,"UFPag",void 0);Cn([Is(),E0(),z0(()=>qt),bn("design:type",typeof qt>"u"?Object:qt)],oo.prototype,"card",void 0);import{TransformDecimal as U0}from"nfets/core";function $u(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($u,"_ts_decorate");function eh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(eh,"_ts_metadata");var Nn=class{static{a(this,"Pag")}detPag;vTroco};$u([L0({each:!0}),B0(1),j0(100),H0(()=>oo),eh("design:type",Array)],Nn.prototype,"detPag",void 0);$u([V0(),U0({fixed:2}),eh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nn.prototype,"vTroco",void 0);import{ArrayMaxSize as fl,IsOptional as Cr,IsString as Os,ValidateNested as pl}from"class-validator";import{Type as ll}from"class-transformer";function Ui(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(Ui,"_ts_decorate");function Qi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Qi,"_ts_metadata");var Rs=class{static{a(this,"InfAdicObs")}xCampo;xTexto};Ui([Os(),Qi("design:type",String)],Rs.prototype,"xCampo",void 0);Ui([Os(),Qi("design:type",String)],Rs.prototype,"xTexto",void 0);var Ya=class{static{a(this,"ProcRef")}nProc;indProc};Ui([Cr(),Os(),Qi("design:type",String)],Ya.prototype,"nProc",void 0);Ui([Cr(),Os(),Qi("design:type",String)],Ya.prototype,"indProc",void 0);var Eo=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Ui([Cr(),Os(),Qi("design:type",String)],Eo.prototype,"infAdFisco",void 0);Ui([Cr(),Os(),Qi("design:type",String)],Eo.prototype,"infCpl",void 0);Ui([Cr(),pl({each:!0}),ll(()=>Rs),fl(10),Qi("design:type",Array)],Eo.prototype,"obsCont",void 0);Ui([Cr(),pl({each:!0}),ll(()=>Rs),fl(10),Qi("design:type",Array)],Eo.prototype,"obsFisco",void 0);Ui([Cr(),pl({each:!0}),ll(()=>Ya),fl(100),Qi("design:type",Array)],Eo.prototype,"procRef",void 0);import{ArrayMaxSize as th,IsNotEmptyObject as Q0,IsObject as G0,IsOptional as br,IsString as In,ValidateNested as oh}from"class-validator";import{Type as dl}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([In(),Pt("design:type",String)],df.prototype,"dia",void 0);var Xa=class{static{a(this,"ForDia")}$;qtde};wt([G0(),Q0(),dl(()=>df),Pt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Xa.prototype,"$",void 0);wt([In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xa.prototype,"qtde",void 0);var Ja=class{static{a(this,"Deduc")}xDed;vDed};wt([In(),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([In(),Pt("design:type",String)],gt.prototype,"safra",void 0);wt([In(),Pt("design:type",String)],gt.prototype,"ref",void 0);wt([oh({each:!0}),th(31),dl(()=>Xa),Pt("design:type",Array)],gt.prototype,"forDia",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotMes",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotAnt",void 0);wt([br(),In(),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"qTotGer",void 0);wt([br(),oh({each:!0}),th(10),dl(()=>Ja),Pt("design:type",Array)],gt.prototype,"deduc",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vFor",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vTotDed",void 0);wt([br(),uf({fixed:2}),Pt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vLiqFor",void 0);import{IsObject as hS,IsOptional as Ys,IsString as Jh,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 X,IsString as Ce,ValidateNested as ni}from"class-validator";import{TransformDecimal as Zi}from"nfets/core";import{Type as ri}from"class-transformer";import{IsOptional as hf,IsString as Ka}from"class-validator";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 Wa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Wa,"_ts_metadata");var Gi=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_a([Ka(),Wa("design:type",String)],Gi.prototype,"nLote",void 0);_a([hf(),Ka(),Wa("design:type",String)],Gi.prototype,"qLote",void 0);_a([hf(),Ka(),Wa("design:type",String)],Gi.prototype,"dFab",void 0);_a([hf(),Ka(),Wa("design:type",String)],Gi.prototype,"dVal",void 0);_a([hf(),Ka(),Wa("design:type",String)],Gi.prototype,"cAgreg",void 0);import{Choice as nS}from"nfets/core";import{IsString as Vt,IsOptional as ka,IsArray as q0,ValidateNested as Z0,ArrayMaxSize as Y0,ArrayMinSize as X0}from"class-validator";import{Type as J0}from"class-transformer";import{TransformDecimal as ih,Choice as _0}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 Rn=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Ke([Vt(),rt("design:type",String)],Rn.prototype,"nAdicao",void 0);Ke([Vt(),rt("design:type",String)],Rn.prototype,"nSeqAdic",void 0);Ke([Vt(),rt("design:type",String)],Rn.prototype,"cFabricante",void 0);Ke([ih({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rn.prototype,"vDescDI",void 0);Ke([ka(),Vt(),rt("design:type",String)],Rn.prototype,"nDraw",void 0);var We=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Ke([Vt(),rt("design:type",String)],We.prototype,"nDI",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"dDI",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"xLocDesemb",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"UFDesemb",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"dDesemb",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"tpViaTransp",void 0);Ke([ka(),ih({fixed:2}),rt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vAFRMM",void 0);Ke([Vt(),rt("design:type",String)],We.prototype,"tpIntermedio",void 0);Ke([Vt(),ka(),rt("design:type",String)],We.prototype,"CNPJ",void 0);Ke([Vt(),ka(),rt("design:type",String)],We.prototype,"CPF",void 0);Ke([Vt(),ka(),rt("design:type",String)],We.prototype,"UFTerceiro",void 0);Ke([q0(),Z0({each:!0}),J0(()=>Rn),Y0(999),X0(1),rt("design:type",Array)],We.prototype,"adi",void 0);We=Ke([_0({properties:["CNPJ","CPF"],required:!0})],We);import{Type as W0}from"class-transformer";import{IsOptional as nh,IsString as ul,ValidateNested as K0}from"class-validator";import{TransformDecimal as k0}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([ul(),ec("design:type",String)],Fs.prototype,"nRE",void 0);$a([ul(),ec("design:type",String)],Fs.prototype,"chNFe",void 0);$a([k0({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([nh(),ul(),ec("design:type",String)],Ds.prototype,"nDraw",void 0);$a([nh(),K0(),W0(()=>Fs),ec("design:type",typeof IExportInd>"u"?Object:IExportInd)],Ds.prototype,"exportInd",void 0);import{IsString as ah}from"class-validator";function rh(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(rh,"_ts_decorate");function sh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(sh,"_ts_metadata");var As=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};rh([ah(),sh("design:type",String)],As.prototype,"cProdFisco",void 0);rh([ah(),sh("design:type",String)],As.prototype,"cOperNFF",void 0);import{IsString as ch}from"class-validator";import{TransformDecimal as $0}from"nfets/core";function hl(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(hl,"_ts_decorate");function ml(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(ml,"_ts_metadata");var Nr=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};hl([ch(),ml("design:type",String)],Nr.prototype,"xEmb",void 0);hl([$0({fixed:3}),ml("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nr.prototype,"qVolEmb",void 0);hl([ch(),ml("design:type",String)],Nr.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 Y=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)],Y.prototype,"tpOp",void 0);se([ce(),ae("design:type",String)],Y.prototype,"chassi",void 0);se([ce(),ae("design:type",String)],Y.prototype,"cCor",void 0);se([ce(),ae("design:type",String)],Y.prototype,"xCor",void 0);se([ce(),ae("design:type",String)],Y.prototype,"pot",void 0);se([ce(),ae("design:type",String)],Y.prototype,"cilin",void 0);se([ce(),ae("design:type",String)],Y.prototype,"pesoL",void 0);se([ce(),ae("design:type",String)],Y.prototype,"pesoB",void 0);se([ce(),ae("design:type",String)],Y.prototype,"nSerie",void 0);se([ce(),ae("design:type",String)],Y.prototype,"tpComb",void 0);se([ce(),ae("design:type",String)],Y.prototype,"nMotor",void 0);se([ce(),ae("design:type",String)],Y.prototype,"CMT",void 0);se([ce(),ae("design:type",String)],Y.prototype,"dist",void 0);se([ce(),ae("design:type",String)],Y.prototype,"anoMod",void 0);se([ce(),ae("design:type",String)],Y.prototype,"anoFab",void 0);se([ce(),ae("design:type",String)],Y.prototype,"tpPint",void 0);se([ce(),ae("design:type",String)],Y.prototype,"tpVeic",void 0);se([ce(),ae("design:type",String)],Y.prototype,"espVeic",void 0);se([ce(),ae("design:type",String)],Y.prototype,"VIN",void 0);se([ce(),ae("design:type",String)],Y.prototype,"condVeic",void 0);se([ce(),ae("design:type",String)],Y.prototype,"cMod",void 0);se([ce(),ae("design:type",String)],Y.prototype,"cCorDENATRAN",void 0);se([ce(),ae("design:type",String)],Y.prototype,"lota",void 0);se([ce(),ae("design:type",String)],Y.prototype,"tpRest",void 0);import{IsString as fh}from"class-validator";import{TransformDecimal as eS}from"nfets/core";function gl(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(gl,"_ts_decorate");function vl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(vl,"_ts_metadata");var Ir=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};gl([fh(),vl("design:type",String)],Ir.prototype,"cProdANVISA",void 0);gl([fh(),vl("design:type",String)],Ir.prototype,"xMotivoIsencao",void 0);gl([eS({fixed:2}),vl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.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 On=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};mf([vf(),gf("design:type",String)],On.prototype,"tpArma",void 0);mf([vf(),gf("design:type",String)],On.prototype,"nSerie",void 0);mf([vf(),gf("design:type",String)],On.prototype,"nCano",void 0);mf([vf(),gf("design:type",String)],On.prototype,"descr",void 0);import{IsString as qi,IsOptional as ii,IsObject as ph,IsArray as tS,ValidateNested as yl,ArrayMaxSize as oS}from"class-validator";import{Type as Sl}from"class-transformer";import{TransformDecimal as io}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([qi(),pe("design:type",String)],xs.prototype,"indImport",void 0);fe([qi(),pe("design:type",String)],xs.prototype,"cUFOrig",void 0);fe([io({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([io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"qBCProd",void 0);fe([io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vAliqProd",void 0);fe([io({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ws.prototype,"vCIDE",void 0);var Fn=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};fe([qi(),pe("design:type",String)],Fn.prototype,"nBico",void 0);fe([qi(),pe("design:type",String)],Fn.prototype,"nBomba",void 0);fe([qi(),pe("design:type",String)],Fn.prototype,"nTanque",void 0);fe([io({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fn.prototype,"vEncIni",void 0);fe([io({fixed:3}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fn.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([qi(),pe("design:type",String)],st.prototype,"cProdANP",void 0);fe([qi(),pe("design:type",String)],st.prototype,"descANP",void 0);fe([ii(),io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGLP",void 0);fe([ii(),io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNn",void 0);fe([ii(),io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pGNi",void 0);fe([ii(),io({fixed:2}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vPart",void 0);fe([qi(),ii(),pe("design:type",String)],st.prototype,"CODIF",void 0);fe([ii(),io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"qTemp",void 0);fe([qi(),pe("design:type",String)],st.prototype,"UFCons",void 0);fe([ii(),ph(),yl(),Sl(()=>ws),pe("design:type",typeof ICIDE>"u"?Object:ICIDE)],st.prototype,"CIDE",void 0);fe([ii(),ph(),yl(),Sl(()=>Fn),pe("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],st.prototype,"encerrante",void 0);fe([ii(),io({fixed:4}),pe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"pBio",void 0);fe([tS(),yl({each:!0}),Sl(()=>xs),oS(30),ii(),pe("design:type",Array)],st.prototype,"origComb",void 0);import{IsString as iS}from"class-validator";import{TransformDecimal as lh}from"nfets/core";function Cl(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(Cl,"_ts_decorate");function bl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(bl,"_ts_metadata");var Rr=class{static{a(this,"GCred")}cCredPresumido;pCredPresumido;vCredPresumido};Cl([iS(),bl("design:type",String)],Rr.prototype,"cCredPresumido",void 0);Cl([lh({fixed:4}),bl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.prototype,"pCredPresumido",void 0);Cl([lh({fixed:2}),bl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rr.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([Ce(),j("design:type",String)],w.prototype,"cProd",void 0);M([Ce(),j("design:type",String)],w.prototype,"cEAN",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"cBarra",void 0);M([Ce(),j("design:type",String)],w.prototype,"xProd",void 0);M([Ce(),j("design:type",String)],w.prototype,"NCM",void 0);M([X(),tc(),Ps(8),Ce({each:!0}),j("design:type",Array)],w.prototype,"NVE",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"CEST",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"indEscala",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"CNPJFab",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"cBenef",void 0);M([X(),tc(),Ps(4),ni({each:!0}),ri(()=>Rr),j("design:type",Array)],w.prototype,"gCred",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"tpCredPresIBSZFM",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"EXTIPI",void 0);M([Ce(),j("design:type",String)],w.prototype,"CFOP",void 0);M([Ce(),j("design:type",String)],w.prototype,"uCom",void 0);M([Zi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qCom",void 0);M([Zi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnCom",void 0);M([Zi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vProd",void 0);M([Ce(),j("design:type",String)],w.prototype,"cEANTrib",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"cBarraTrib",void 0);M([Ce(),j("design:type",String)],w.prototype,"uTrib",void 0);M([Zi({fixed:4}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"qTrib",void 0);M([Zi({fixed:10}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vUnTrib",void 0);M([X(),Zi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vFrete",void 0);M([X(),Zi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vSeg",void 0);M([X(),Zi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vDesc",void 0);M([X(),Zi({fixed:2}),j("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],w.prototype,"vOutro",void 0);M([Ce(),j("design:type",String)],w.prototype,"indTot",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"indBemMovelUsado",void 0);M([X(),tc(),ni({each:!0}),Ps(100),ri(()=>We),j("design:type",Array)],w.prototype,"DI",void 0);M([X(),tc(),ni({each:!0}),Ps(500),ri(()=>Ds),j("design:type",Array)],w.prototype,"detExport",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"xPed",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"nItemPed",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"nFCI",void 0);M([X(),tc(),ni({each:!0}),Ps(500),ri(()=>Gi),j("design:type",Array)],w.prototype,"rastro",void 0);M([X(),Es(),ni(),ri(()=>As),j("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],w.prototype,"infProdNFF",void 0);M([X(),Es(),ni(),ri(()=>Nr),j("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],w.prototype,"infProdEmb",void 0);M([X(),Es(),ni(),ri(()=>Y),j("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],w.prototype,"veicProd",void 0);M([X(),Es(),ni(),ri(()=>Ir),j("design:type",typeof IMed>"u"?Object:IMed)],w.prototype,"med",void 0);M([X(),Es(),ni({each:!0}),ri(()=>On),Ps(500),j("design:type",Array)],w.prototype,"arma",void 0);M([X(),Es(),ni(),ri(()=>st),j("design:type",typeof IComb>"u"?Object:IComb)],w.prototype,"comb",void 0);M([X(),Ce(),j("design:type",String)],w.prototype,"nRECOPI",void 0);w=M([nS({properties:["veicProd","med","arma","comb"]})],w);import{Type as Uo}from"class-transformer";import{IsOptional as lo,ValidateNested as Qo}from"class-validator";import{IsOptional as m,IsString as b,Max as Nl,ValidateNested as De}from"class-validator";import{Type as Ae}from"class-transformer";import{Choice as rS,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 no=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};l([b(),d("design:type",String)],no.prototype,"orig",void 0);l([b(),d("design:type",String)],no.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],no.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],no.prototype,"vFCP",void 0);var Dn=class{static{a(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};l([b(),d("design:type",String)],Dn.prototype,"orig",void 0);l([b(),d("design:type",String)],Dn.prototype,"CST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"qBCMono",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"adRemICMS",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dn.prototype,"vICMSMono",void 0);var Fe=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)],Fe.prototype,"orig",void 0);l([b(),d("design:type",String)],Fe.prototype,"CST",void 0);l([m(),b(),d("design:type",String)],Fe.prototype,"modBC",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBC",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vICMS",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCFCP",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pFCP",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vFCP",void 0);l([m(),b(),d("design:type",String)],Fe.prototype,"modBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pMVAST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pRedBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"vBCFCPST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.prototype,"pFCPST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fe.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}),Nl(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 Or=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};l([b(),d("design:type",String)],Or.prototype,"orig",void 0);l([b(),d("design:type",String)],Or.prototype,"CST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Or.prototype,"vICMSDeson",void 0);l([m(),b(),d("design:type",String)],Or.prototype,"motDesICMS",void 0);var ro=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};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:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pRedBC",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:4}),Nl(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.prototype,"pDif",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ro.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}),Nl(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 An=class{static{a(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};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,"qBCMonoRet",void 0);l([g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.prototype,"adRemICMSRet",void 0);l([g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],An.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 Yi=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};l([b(),d("design:type",String)],Yi.prototype,"orig",void 0);l([b(),d("design:type",String)],Yi.prototype,"CST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vBCSTRet",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"pST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vICMSSubstituto",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yi.prototype,"vICMSSTRet",void 0);var Fr=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],Fr.prototype,"orig",void 0);l([b(),d("design:type",String)],Fr.prototype,"CSOSN",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.prototype,"pCredSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.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 zo=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};l([b(),d("design:type",String)],zo.prototype,"orig",void 0);l([b(),d("design:type",String)],zo.prototype,"CSOSN",void 0);l([m(),b(),d("design:type",String)],zo.prototype,"modBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vICMSST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"pCredSN",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zo.prototype,"vCredICMSSN",void 0);var Xi=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};l([b(),d("design:type",String)],Xi.prototype,"orig",void 0);l([b(),d("design:type",String)],Xi.prototype,"CSOSN",void 0);l([m(),b(),d("design:type",String)],Xi.prototype,"modBCST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"vBCST",void 0);l([m(),g({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.prototype,"pICMSST",void 0);l([m(),g({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xi.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 Z=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(),De(),Ae(()=>no),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],Z.prototype,"ICMS00",void 0);l([m(),De(),Ae(()=>Dn),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],Z.prototype,"ICMS02",void 0);l([m(),De(),Ae(()=>Fe),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],Z.prototype,"ICMS10",void 0);l([m(),De(),Ae(()=>Zt),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],Z.prototype,"ICMS15",void 0);l([m(),De(),Ae(()=>Et),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],Z.prototype,"ICMS20",void 0);l([m(),De(),Ae(()=>vt),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],Z.prototype,"ICMS30",void 0);l([m(),De(),Ae(()=>Or),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],Z.prototype,"ICMS40",void 0);l([m(),De(),Ae(()=>ro),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],Z.prototype,"ICMS51",void 0);l([m(),De(),Ae(()=>Yt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],Z.prototype,"ICMS53",void 0);l([m(),De(),Ae(()=>yt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],Z.prototype,"ICMS60",void 0);l([m(),De(),Ae(()=>An),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],Z.prototype,"ICMS61",void 0);l([m(),De(),Ae(()=>le),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],Z.prototype,"ICMS70",void 0);l([m(),De(),Ae(()=>de),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],Z.prototype,"ICMS90",void 0);l([m(),De(),Ae(()=>ke),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Z.prototype,"ICMSPart",void 0);l([m(),De(),Ae(()=>Yi),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],Z.prototype,"ICMSST",void 0);l([m(),De(),Ae(()=>Fr),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Z.prototype,"ICMSSN101",void 0);l([m(),De(),Ae(()=>oc),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Z.prototype,"ICMSSN102",void 0);l([m(),De(),Ae(()=>zo),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Z.prototype,"ICMSSN201",void 0);l([m(),De(),Ae(()=>Xi),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Z.prototype,"ICMSSN202",void 0);l([m(),De(),Ae(()=>St),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Z.prototype,"ICMSSN500",void 0);l([m(),De(),Ae(()=>Ct),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Z.prototype,"ICMSSN900",void 0);Z=l([rS({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Z);import{IsOptional as si,IsString as To,ValidateNested as dh}from"class-validator";import{Type as uh}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 Ji=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Xt([To(),Jt("design:type",String)],Ji.prototype,"CST",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vBC",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"pIPI",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"qUnid",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vUnid",void 0);Xt([si(),To(),Jt("design:type",String)],Ji.prototype,"vIPI",void 0);var yf=class{static{a(this,"IPINT")}CST};Xt([To(),Jt("design:type",String)],yf.prototype,"CST",void 0);var so=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Xt([si(),To(),Jt("design:type",String)],so.prototype,"CNPJProd",void 0);Xt([si(),To(),Jt("design:type",String)],so.prototype,"cSelo",void 0);Xt([si(),To(),Jt("design:type",String)],so.prototype,"qSelo",void 0);Xt([To(),Jt("design:type",String)],so.prototype,"cEnq",void 0);Xt([si(),dh(),uh(()=>Ji),Jt("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],so.prototype,"IPITrib",void 0);Xt([si(),dh(),uh(()=>yf),Jt("design:type",typeof IIPINT>"u"?Object:IIPINT)],so.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 ai=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vBC",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vDespAdu",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vII",void 0);Sf([bf(),Nf(),Cf("design:type",String)],ai.prototype,"vIOF",void 0);import{IsOptional as Pe,IsString as Ee,ValidateNested as If}from"class-validator";import{Type as Rf}from"class-transformer";import{TransformDecimal as fi}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([Ee(),he("design:type",String)],_i.prototype,"CST",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],_i.prototype,"vBC",void 0);ue([Pe(),Ee(),fi({fixed:4}),he("design:type",String)],_i.prototype,"pPIS",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],_i.prototype,"vPIS",void 0);var Wi=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ue([Ee(),he("design:type",String)],Wi.prototype,"CST",void 0);ue([Pe(),Ee(),he("design:type",String)],Wi.prototype,"qBCProd",void 0);ue([Pe(),Ee(),he("design:type",String)],Wi.prototype,"vAliqProd",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],Wi.prototype,"vPIS",void 0);var zs=class{static{a(this,"PISNT")}CST};ue([Ee(),he("design:type",String)],zs.prototype,"CST",void 0);var Mo=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ue([Ee(),he("design:type",String)],Mo.prototype,"CST",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],Mo.prototype,"vBC",void 0);ue([Pe(),Ee(),fi({fixed:4}),he("design:type",String)],Mo.prototype,"pPIS",void 0);ue([Pe(),Ee(),he("design:type",String)],Mo.prototype,"qBCProd",void 0);ue([Pe(),Ee(),he("design:type",String)],Mo.prototype,"vAliqProd",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],Mo.prototype,"vPIS",void 0);var ci=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ue([Pe(),If(),Rf(()=>_i),he("design:type",typeof _i>"u"?Object:_i)],ci.prototype,"PISAliq",void 0);ue([Pe(),If(),Rf(()=>Wi),he("design:type",typeof Wi>"u"?Object:Wi)],ci.prototype,"PISQtde",void 0);ue([Pe(),If(),Rf(()=>zs),he("design:type",typeof zs>"u"?Object:zs)],ci.prototype,"PISNT",void 0);ue([Pe(),If(),Rf(()=>Mo),he("design:type",typeof Mo>"u"?Object:Mo)],ci.prototype,"PISOutr",void 0);var jo=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],jo.prototype,"vBC",void 0);ue([Pe(),Ee(),fi({fixed:4}),he("design:type",String)],jo.prototype,"pPIS",void 0);ue([Pe(),Ee(),he("design:type",String)],jo.prototype,"qBCProd",void 0);ue([Pe(),Ee(),he("design:type",String)],jo.prototype,"vAliqProd",void 0);ue([Pe(),Ee(),fi({fixed:2}),he("design:type",String)],jo.prototype,"vPIS",void 0);import{IsOptional as ze,IsString as Te,ValidateNested as Of}from"class-validator";import{Type as Ff}from"class-transformer";import{TransformDecimal as li}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([Te(),ge("design:type",String)],Ki.prototype,"CST",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Ki.prototype,"vBC",void 0);me([ze(),Te(),li({fixed:4}),ge("design:type",String)],Ki.prototype,"pCOFINS",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Ki.prototype,"vCOFINS",void 0);var ki=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};me([Te(),ge("design:type",String)],ki.prototype,"CST",void 0);me([ze(),Te(),ge("design:type",String)],ki.prototype,"qBCProd",void 0);me([ze(),Te(),ge("design:type",String)],ki.prototype,"vAliqProd",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],ki.prototype,"vCOFINS",void 0);var Ts=class{static{a(this,"COFINSNT")}CST};me([Te(),ge("design:type",String)],Ts.prototype,"CST",void 0);var Bo=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([Te(),ge("design:type",String)],Bo.prototype,"CST",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Bo.prototype,"vBC",void 0);me([ze(),Te(),li({fixed:4}),ge("design:type",String)],Bo.prototype,"pCOFINS",void 0);me([ze(),Te(),ge("design:type",String)],Bo.prototype,"qBCProd",void 0);me([ze(),Te(),ge("design:type",String)],Bo.prototype,"vAliqProd",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Bo.prototype,"vCOFINS",void 0);var pi=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};me([ze(),Of(),Ff(()=>Ki),ge("design:type",typeof Ki>"u"?Object:Ki)],pi.prototype,"COFINSAliq",void 0);me([ze(),Of(),Ff(()=>ki),ge("design:type",typeof ki>"u"?Object:ki)],pi.prototype,"COFINSQtde",void 0);me([ze(),Of(),Ff(()=>Ts),ge("design:type",typeof Ts>"u"?Object:Ts)],pi.prototype,"COFINSNT",void 0);me([ze(),Of(),Ff(()=>Bo),ge("design:type",typeof Bo>"u"?Object:Bo)],pi.prototype,"COFINSOutr",void 0);var Vo=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Vo.prototype,"vBC",void 0);me([ze(),Te(),li({fixed:4}),ge("design:type",String)],Vo.prototype,"pCOFINS",void 0);me([ze(),Te(),ge("design:type",String)],Vo.prototype,"qBCProd",void 0);me([ze(),Te(),ge("design:type",String)],Vo.prototype,"vAliqProd",void 0);me([ze(),Te(),li({fixed:2}),ge("design:type",String)],Vo.prototype,"vCOFINS",void 0);import{IsOptional as Lt,IsString as xn}from"class-validator";import{TransformDecimal as wn}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 Ie=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vBC",void 0);bt([Lt(),wn({fixed:4}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vAliq",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vISSQN",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cMunFG",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cListServ",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDeducao",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vOutro",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDescIncond",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vDescCond",void 0);bt([Lt(),wn({fixed:2}),Nt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ie.prototype,"vISSRet",void 0);bt([xn(),Nt("design:type",String)],Ie.prototype,"indISS",void 0);bt([xn(),Nt("design:type",String)],Ie.prototype,"indIncentivo",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cServico",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cMun",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"cPais",void 0);bt([Lt(),xn(),Nt("design:type",String)],Ie.prototype,"nProcesso",void 0);import{IsOptional as tn,IsString as on}from"class-validator";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 en(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(en,"_ts_metadata");var zt=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};$i([tn(),on(),en("design:type",String)],zt.prototype,"vBCUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vBCFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSInter",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"pICMSInterPart",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vFCPUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vICMSUFDest",void 0);$i([tn(),on(),en("design:type",String)],zt.prototype,"vICMSUFRemet",void 0);import{IsOptional as bi,IsString as Ml,ValidateNested as xr}from"class-validator";import{IsOptional as gh,IsString as vh}from"class-validator";function hh(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(hh,"_ts_decorate");function mh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(mh,"_ts_metadata");var Pn=class{static{a(this,"TransferenciaCredito")}vIBS;vCBS};hh([gh(),vh(),mh("design:type",String)],Pn.prototype,"vIBS",void 0);hh([gh(),vh(),mh("design:type",String)],Pn.prototype,"vCBS",void 0);import{IsString as Ol}from"class-validator";function Il(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(Il,"_ts_decorate");function Rl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Rl,"_ts_metadata");var nn=class{static{a(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};Il([Ol(),Rl("design:type",String)],nn.prototype,"tpCredPresIBSZFM",void 0);Il([Ol(),Rl("design:type",String)],nn.prototype,"vCredPresIBSZFM",void 0);Il([Ol(),Rl("design:type",String)],nn.prototype,"competApur",void 0);import{IsOptional as yh,IsString as Tn,ValidateNested as Sh}from"class-validator";import{Type as Ch}from"class-transformer";function ui(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(ui,"_ts_decorate");function hi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(hi,"_ts_metadata");var En=class{static{a(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ui([Tn(),hi("design:type",String)],En.prototype,"vCredPresCondSus",void 0);ui([Tn(),hi("design:type",String)],En.prototype,"pCredPres",void 0);ui([Tn(),hi("design:type",String)],En.prototype,"vCredPres",void 0);var zn=class{static{a(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ui([Tn(),hi("design:type",String)],zn.prototype,"vCredPresCondSus",void 0);ui([Tn(),hi("design:type",String)],zn.prototype,"pCredPres",void 0);ui([Tn(),hi("design:type",String)],zn.prototype,"vCredPres",void 0);var di=class{static{a(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};ui([yh(),Sh(),Ch(()=>En),hi("design:type",typeof En>"u"?Object:En)],di.prototype,"gIBSCredPres",void 0);ui([yh(),Sh(),Ch(()=>zn),hi("design:type",typeof zn>"u"?Object:zn)],di.prototype,"gCBSCredPres",void 0);ui([Tn(),hi("design:type",String)],di.prototype,"vBCCredPres",void 0);ui([Tn(),hi("design:type",String)],di.prototype,"cCredPres",void 0);import{IsString as Ih}from"class-validator";function bh(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(bh,"_ts_decorate");function Nh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Nh,"_ts_metadata");var Mn=class{static{a(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};bh([Ih(),Nh("design:type",String)],Mn.prototype,"vIBSEstCred",void 0);bh([Ih(),Nh("design:type",String)],Mn.prototype,"vCBSEstCred",void 0);import{IsString as Al}from"class-validator";function Fl(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(Fl,"_ts_decorate");function Dl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Dl,"_ts_metadata");var rn=class{static{a(this,"AjusteCompet")}competApur;vCBS;vIBS};Fl([Al(),Dl("design:type",String)],rn.prototype,"competApur",void 0);Fl([Al(),Dl("design:type",String)],rn.prototype,"vCBS",void 0);Fl([Al(),Dl("design:type",String)],rn.prototype,"vIBS",void 0);import{IsOptional as Df,ValidateNested as Af}from"class-validator";import{TransformDecimal as xe}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 mi=class{static{a(this,"MonoPadrao")}qBCMono;adRemIBS;adRemCBS;vIBSMono;vCBSMono};oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mi.prototype,"qBCMono",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mi.prototype,"adRemIBS",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mi.prototype,"adRemCBS",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mi.prototype,"vIBSMono",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mi.prototype,"vCBSMono",void 0);var gi=class{static{a(this,"MonoReten")}qBCMonoReten;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten};oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"qBCMonoReten",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemIBSReten",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vIBSMonoReten",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"adRemCBSReten",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gi.prototype,"vCBSMonoReten",void 0);var vi=class{static{a(this,"MonoRet")}qBCMonoRet;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet};oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"qBCMonoRet",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemIBSRet",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vIBSMonoRet",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"adRemCBSRet",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vi.prototype,"vCBSMonoRet",void 0);var sn=class{static{a(this,"MonoDif")}pDifIBS;vIBSMonoDif;pDifCBS;vCBSMonoDif};oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"pDifIBS",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"vIBSMonoDif",void 0);oe([xe({fixed:4}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"pDifCBS",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sn.prototype,"vCBSMonoDif",void 0);var ao=class{static{a(this,"IBSCBSMono")}gMonoPadrao;gMonoReten;gMonoRet;gMonoDif;vTotIBSMonoItem;vTotCBSMonoItem};oe([Df(),Af(),xf(()=>mi),ie("design:type",typeof mi>"u"?Object:mi)],ao.prototype,"gMonoPadrao",void 0);oe([Df(),Af(),xf(()=>gi),ie("design:type",typeof gi>"u"?Object:gi)],ao.prototype,"gMonoReten",void 0);oe([Df(),Af(),xf(()=>vi),ie("design:type",typeof vi>"u"?Object:vi)],ao.prototype,"gMonoRet",void 0);oe([Df(),Af(),xf(()=>sn),ie("design:type",typeof sn>"u"?Object:sn)],ao.prototype,"gMonoDif",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ao.prototype,"vTotIBSMonoItem",void 0);oe([xe({fixed:2}),ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ao.prototype,"vTotCBSMonoItem",void 0);import{IsOptional as ac,ValidateNested as cc}from"class-validator";import{TransformDecimal as Lh}from"nfets/core";import{TransformDecimal as Ms}from"nfets/core";import{IsString as Rh}from"class-validator";function jn(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(jn,"_ts_decorate");function Bn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Bn,"_ts_metadata");var Ht=class{static{a(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};jn([Rh(),Bn("design:type",String)],Ht.prototype,"CSTReg",void 0);jn([Rh(),Bn("design:type",String)],Ht.prototype,"cClassTribReg",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSUF",void 0);jn([Ms({fixed:2}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSUF",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegIBSMun",void 0);jn([Ms({fixed:2}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vTribRegIBSMun",void 0);jn([Ms({fixed:4}),Bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pAliqEfetRegCBS",void 0);jn([Ms({fixed:2}),Bn("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 co=class{static{a(this,"TribCompraGov")}pAliqIBSUF;vTribIBSUF;pAliqIBSMun;vTribIBSMun;pAliqCBS;vTribCBS};js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqIBSUF",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribIBSUF",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqIBSMun",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribIBSMun",void 0);js([Vs({fixed:4}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pAliqCBS",void 0);js([Vs({fixed:2}),Bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vTribCBS",void 0);import{Type as fc}from"class-transformer";import{IsOptional as xl,ValidateNested as wl}from"class-validator";import{TransformDecimal as Th}from"nfets/core";import{Type as Pl}from"class-transformer";import{TransformDecimal as Dh}from"nfets/core";import{IsOptional as sS}from"class-validator";function Oh(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(Oh,"_ts_decorate");function Fh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Fh,"_ts_metadata");var It=class{static{a(this,"DevTrib")}pDevTrib;vDevTrib};Oh([sS(),Dh({fixed:4}),Fh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"pDevTrib",void 0);Oh([Dh({fixed:2}),Fh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],It.prototype,"vDevTrib",void 0);import{TransformDecimal as wh}from"nfets/core";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 xh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(xh,"_ts_metadata");var Rt=class{static{a(this,"Dif")}pDif;vDif};Ah([wh({fixed:4}),xh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pDif",void 0);Ah([wh({fixed:2}),xh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vDif",void 0);import{TransformDecimal as zh}from"nfets/core";function Ph(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(Ph,"_ts_decorate");function Eh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Eh,"_ts_metadata");var Ot=class{static{a(this,"Red")}pRedAliq;pAliqEfet};Ph([zh({fixed:4}),Eh("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ot.prototype,"pRedAliq",void 0);Ph([zh({fixed:4}),Eh("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 Lo=class{static{a(this,"IBSMun")}pIBSMun;gDif;gDevTrib;gRed;vIBSMun};ic([Th({fixed:4}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Lo.prototype,"pIBSMun",void 0);ic([xl(),wl(),Pl(()=>Rt),nc("design:type",typeof Rt>"u"?Object:Rt)],Lo.prototype,"gDif",void 0);ic([xl(),wl(),Pl(()=>It),nc("design:type",typeof It>"u"?Object:It)],Lo.prototype,"gDevTrib",void 0);ic([xl(),wl(),Pl(()=>Ot),nc("design:type",typeof Ot>"u"?Object:Ot)],Lo.prototype,"gRed",void 0);ic([Th({fixed:2}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Lo.prototype,"vIBSMun",void 0);import{IsOptional as El,ValidateNested as zl}from"class-validator";import{TransformDecimal as Mh}from"nfets/core";import{Type as Tl}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 Ho=class{static{a(this,"IBSUF")}pIBSUF;gDif;gDevTrib;gRed;vIBSUF};rc([Mh({fixed:4}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"pIBSUF",void 0);rc([El(),zl(),Tl(()=>Rt),sc("design:type",typeof Rt>"u"?Object:Rt)],Ho.prototype,"gDif",void 0);rc([El(),zl(),Tl(()=>It),sc("design:type",typeof It>"u"?Object:It)],Ho.prototype,"gDevTrib",void 0);rc([El(),zl(),Tl(()=>Ot),sc("design:type",typeof Ot>"u"?Object:Ot)],Ho.prototype,"gRed",void 0);rc([Mh({fixed:2}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vIBSUF",void 0);import{IsOptional as Ef,ValidateNested as zf}from"class-validator";import{TransformDecimal as Vh}from"nfets/core";import{Type as Tf}from"class-transformer";import{TransformDecimal as jh}from"nfets/core";import{IsOptional as aS,IsString as Bh}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 yi=class{static{a(this,"ALCZFMCBS")}tpALCZFMCBS;nProcSuframa;pAliqEfetRegCBS;vTribRegCBS};wf([Bh(),Pf("design:type",String)],yi.prototype,"tpALCZFMCBS",void 0);wf([aS(),Bh(),Pf("design:type",String)],yi.prototype,"nProcSuframa",void 0);wf([jh({fixed:4}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.prototype,"pAliqEfetRegCBS",void 0);wf([jh({fixed:2}),Pf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yi.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 fo=class{static{a(this,"CBS")}pCBS;gDif;gDevTrib;gRed;gALCZFMCBS;vCBS};Ls([Vh({fixed:4}),Hs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pCBS",void 0);Ls([Ef(),zf(),Tf(()=>Rt),Hs("design:type",typeof Rt>"u"?Object:Rt)],fo.prototype,"gDif",void 0);Ls([Ef(),zf(),Tf(()=>It),Hs("design:type",typeof It>"u"?Object:It)],fo.prototype,"gDevTrib",void 0);Ls([Ef(),zf(),Tf(()=>Ot),Hs("design:type",typeof Ot>"u"?Object:Ot)],fo.prototype,"gRed",void 0);Ls([Ef(),zf(),Tf(()=>yi),Hs("design:type",typeof yi>"u"?Object:yi)],fo.prototype,"gALCZFMCBS",void 0);Ls([Vh({fixed:2}),Hs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vCBS",void 0);function Dr(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(Dr,"_ts_decorate");function Ar(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ar,"_ts_metadata");var _t=class{static{a(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular;gTribCompraGov};Dr([Lh({fixed:2}),Ar("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vBC",void 0);Dr([ac(),cc(),fc(()=>Ho),Ar("design:type",typeof Ho>"u"?Object:Ho)],_t.prototype,"gIBSUF",void 0);Dr([ac(),cc(),fc(()=>Lo),Ar("design:type",typeof Lo>"u"?Object:Lo)],_t.prototype,"gIBSMun",void 0);Dr([Lh({fixed:2}),Ar("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vIBS",void 0);Dr([ac(),cc(),fc(()=>fo),Ar("design:type",typeof fo>"u"?Object:fo)],_t.prototype,"gCBS",void 0);Dr([ac(),cc(),fc(()=>Ht),Ar("design:type",typeof Ht>"u"?Object:Ht)],_t.prototype,"gTribRegular",void 0);Dr([ac(),cc(),fc(()=>co),Ar("design:type",typeof co>"u"?Object:co)],_t.prototype,"gTribCompraGov",void 0);import{Type as wr}from"class-transformer";function Si(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(Si,"_ts_decorate");function Ci(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ci,"_ts_metadata");var Ft=class{static{a(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"CST",void 0);Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"cClassTrib",void 0);Si([bi(),Ml(),Ci("design:type",String)],Ft.prototype,"indDoacao",void 0);Si([bi(),xr(),wr(()=>Pn),Ci("design:type",typeof Pn>"u"?Object:Pn)],Ft.prototype,"gTransfCred",void 0);Si([bi(),xr(),wr(()=>nn),Ci("design:type",typeof nn>"u"?Object:nn)],Ft.prototype,"gCredPresIBSZFM",void 0);Si([bi(),xr(),wr(()=>di),Ci("design:type",typeof di>"u"?Object:di)],Ft.prototype,"gCredPresOper",void 0);Si([bi(),xr(),wr(()=>rn),Ci("design:type",typeof rn>"u"?Object:rn)],Ft.prototype,"gAjusteCompet",void 0);Si([bi(),xr(),wr(()=>Mn),Ci("design:type",typeof Mn>"u"?Object:Mn)],Ft.prototype,"gEstornoCred",void 0);Si([bi(),xr(),wr(()=>ao),Ci("design:type",typeof ao>"u"?Object:ao)],Ft.prototype,"gIBSCBSMono",void 0);Si([bi(),xr(),wr(()=>_t),Ci("design:type",typeof _t>"u"?Object:_t)],Ft.prototype,"gIBSCBS",void 0);import{TransformDecimal as pc}from"nfets/core";import{IsOptional as Us,IsString as jl}from"class-validator";function Vn(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(Vn,"_ts_decorate");function Ln(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Ln,"_ts_metadata");var Ut=class{static{a(this,"IS")}CSTIS;cClassTribIS;vBCIS;pIS;adRemIS;uTrib;qTrib;vIS};Vn([jl(),Ln("design:type",String)],Ut.prototype,"CSTIS",void 0);Vn([jl(),Ln("design:type",String)],Ut.prototype,"cClassTribIS",void 0);Vn([Us(),pc({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vBCIS",void 0);Vn([Us(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"pIS",void 0);Vn([Us(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"adRemIS",void 0);Vn([Us(),jl(),Ln("design:type",String)],Ut.prototype,"uTrib",void 0);Vn([Us(),pc({fixed:4}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"qTrib",void 0);Vn([Us(),pc({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ut.prototype,"vIS",void 0);import{Choice as cS,TransformDecimal as fS}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 po(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(po,"_ts_metadata");var Me=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IS;IBSCBS};Wt([lo(),fS({fixed:2}),po("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Me.prototype,"vTotTrib",void 0);Wt([lo(),Qo(),Uo(()=>Z),po("design:type",typeof IICMS>"u"?Object:IICMS)],Me.prototype,"ICMS",void 0);Wt([lo(),Qo(),Uo(()=>so),po("design:type",typeof IIPI>"u"?Object:IIPI)],Me.prototype,"IPI",void 0);Wt([lo(),Qo(),Uo(()=>Ie),po("design:type",typeof IISSQN>"u"?Object:IISSQN)],Me.prototype,"ISSQN",void 0);Wt([lo(),Qo(),Uo(()=>ai),po("design:type",typeof III>"u"?Object:III)],Me.prototype,"II",void 0);Wt([lo(),Qo(),Uo(()=>ci),po("design:type",typeof IPIS>"u"?Object:IPIS)],Me.prototype,"PIS",void 0);Wt([lo(),Qo(),Uo(()=>jo),po("design:type",typeof IPISST>"u"?Object:IPISST)],Me.prototype,"PISST",void 0);Wt([lo(),Qo(),Uo(()=>pi),po("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Me.prototype,"COFINS",void 0);Wt([lo(),Qo(),Uo(()=>Vo),po("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Me.prototype,"COFINSST",void 0);Wt([lo(),Qo(),Uo(()=>zt),po("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Me.prototype,"ICMSUFDest",void 0);Wt([lo(),Qo(),Uo(()=>Ut),po("design:type",typeof IIS>"u"?Object:IIS)],Me.prototype,"IS",void 0);Wt([lo(),Qo(),Uo(()=>Ft),po("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],Me.prototype,"IBSCBS",void 0);Me=Wt([cS({properties:["ICMS","ISSQN"]})],Me);import{IsOptional as pS,IsString as Hh,ValidateNested as lS}from"class-validator";import{Type as dS}from"class-transformer";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 Vl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Vl,"_ts_metadata");var Mf=class{static{a(this,"IpiDevol")}vIPIDevol};Bl([Hh(),Vl("design:type",String)],Mf.prototype,"vIPIDevol",void 0);var Qs=class{static{a(this,"Devol")}pDevol;IPI};Bl([Hh(),Vl("design:type",String)],Qs.prototype,"pDevol",void 0);Bl([pS(),lS(),dS(()=>Mf),Vl("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Qs.prototype,"IPI",void 0);import{IsOptional as Uh,IsString as Qh,ValidateNested as Gh}from"class-validator";import{Type as qh}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([Uh(),Gh(),qh(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsCont",void 0);jf([Uh(),Gh(),qh(()=>Gs),Bf("design:type",typeof IObservation>"u"?Object:IObservation)],qs.prototype,"obsFisco",void 0);import{IsOptional as uS,IsString as Xh}from"class-validator";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 Yh(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Yh,"_ts_metadata");var Hn=class{static{a(this,"DFeReferenciado")}chaveAcesso;nItem};Zh([Xh(),Yh("design:type",String)],Hn.prototype,"chaveAcesso",void 0);Zh([uS(),Xh(),Yh("design:type",String)],Hn.prototype,"nItem",void 0);import{TransformDecimal as mS}from"nfets/core";function an(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(an,"_ts_decorate");function cn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(cn,"_ts_metadata");var Zs=class{static{a(this,"DetAttributes")}nItem};an([Jh(),cn("design:type",String)],Zs.prototype,"nItem",void 0);var uo=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem;DFeReferenciado};an([hS(),Xs(),Js(()=>Zs),cn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],uo.prototype,"$",void 0);an([Xs(),Js(()=>w),cn("design:type",typeof IProd>"u"?Object:IProd)],uo.prototype,"prod",void 0);an([Ys(),Xs(),Js(()=>Me),cn("design:type",typeof IImposto>"u"?Object:IImposto)],uo.prototype,"imposto",void 0);an([Ys(),Xs(),Js(()=>Qs),cn("design:type",typeof IDevol>"u"?Object:IDevol)],uo.prototype,"impostoDevol",void 0);an([Ys(),Jh(),cn("design:type",String)],uo.prototype,"infAdProd",void 0);an([Ys(),Xs(),Js(()=>qs),cn("design:type",typeof IObsItem>"u"?Object:IObsItem)],uo.prototype,"obsItem",void 0);an([Ys(),mS({fixed:2}),cn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],uo.prototype,"vItem",void 0);an([Ys(),Xs(),Js(()=>Hn),cn("design:type",typeof IDFeReferenciado>"u"?Object:IDFeReferenciado)],uo.prototype,"DFeReferenciado",void 0);import{IsDate as gS,IsOptional as lc,IsString as Un}from"class-validator";import{TransformDecimal as vS,TransformDateString as yS}from"nfets/core";function Go(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(Go,"_ts_decorate");function qo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(qo,"_ts_metadata");var at=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};Go([Un(),qo("design:type",String)],at.prototype,"CNPJ",void 0);Go([Un(),qo("design:type",String)],at.prototype,"xOrgao",void 0);Go([Un(),qo("design:type",String)],at.prototype,"matr",void 0);Go([Un(),qo("design:type",String)],at.prototype,"xAgente",void 0);Go([lc(),Un(),qo("design:type",String)],at.prototype,"fone",void 0);Go([Un(),qo("design:type",String)],at.prototype,"UF",void 0);Go([lc(),Un(),qo("design:type",String)],at.prototype,"nDAR",void 0);Go([lc(),yS({format:"YYYY-MM-DD"}),qo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dEmi",void 0);Go([lc(),vS({fixed:2}),qo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDAR",void 0);Go([Un(),qo("design:type",String)],at.prototype,"repEmi",void 0);Go([lc(),gS(),qo("design:type",typeof Date>"u"?Object:Date)],at.prototype,"dPag",void 0);import{IsString as bS}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 Pr=class{static{a(this,"InfSolicNFF")}xSolic};SS([bS(),CS("design:type",String)],Pr.prototype,"xSolic",void 0);import{ArrayMaxSize as NS,IsArray as IS,IsOptional as Ll,IsString as _s,ValidateNested as _h}from"class-validator";import{Type as Wh}from"class-transformer";import{Choice as RS}from"nfets/core";function fn(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(fn,"_ts_decorate");function Qn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(Qn,"_ts_metadata");var dc=class{static{a(this,"Defensivo")}nReceituario;CPFRespTec};fn([_s(),Qn("design:type",String)],dc.prototype,"nReceituario",void 0);fn([_s(),Qn("design:type",String)],dc.prototype,"CPFRespTec",void 0);var Er=class{static{a(this,"GuiaTransito")}tpGuia;UFGuia;serieGuia;nGuia};fn([_s(),Qn("design:type",String)],Er.prototype,"tpGuia",void 0);fn([_s(),Qn("design:type",String)],Er.prototype,"UFGuia",void 0);fn([Ll(),_s(),Qn("design:type",String)],Er.prototype,"serieGuia",void 0);fn([_s(),Qn("design:type",String)],Er.prototype,"nGuia",void 0);var Ni=class{static{a(this,"Agropecuario")}defensivo;guiaTransito};fn([Ll(),IS(),NS(20),_h({each:!0}),Wh(()=>dc),Qn("design:type",Array)],Ni.prototype,"defensivo",void 0);fn([Ll(),_h(),Wh(()=>Er),Qn("design:type",typeof IGuiaTransito>"u"?Object:IGuiaTransito)],Ni.prototype,"guiaTransito",void 0);Ni=fn([RS({properties:["defensivo","guiaTransito"]})],Ni);import{IsString as Vf,ValidateNested as Kh}from"class-validator";import{Type as kh}from"class-transformer";function Ws(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(Ws,"_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};Ws([Vf(),Ks("design:type",String)],uc.prototype,"Modulus",void 0);Ws([Vf(),Ks("design:type",String)],uc.prototype,"Exponent",void 0);var hc=class{static{a(this,"PAASignature")}SignatureValue;RSAKeyValue};Ws([Vf(),Ks("design:type",String)],hc.prototype,"SignatureValue",void 0);Ws([Kh(),kh(()=>uc),Ks("design:type",typeof IRSAKeyValue>"u"?Object:IRSAKeyValue)],hc.prototype,"RSAKeyValue",void 0);var Gn=class{static{a(this,"InfPAA")}CNPJPAA;PAASignature};Ws([Vf(),Ks("design:type",String)],Gn.prototype,"CNPJPAA",void 0);Ws([Kh(),kh(()=>hc),Ks("design:type",typeof IPAASignature>"u"?Object:IPAASignature)],Gn.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 zr=class{static{a(this,"InfNFeAttributes")}Id;versao};ve([ct(),em(),ye("design:type",String)],zr.prototype,"Id",void 0);ve([ct(),em(),ye("design:type",String)],zr.prototype,"versao",void 0);var J=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([Ul(),Hl(),Oe(()=>zr),Re(),ye("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],J.prototype,"$",void 0);ve([Ul(),Hl(),Re(),Oe(()=>B),ye("design:type",typeof IIde>"u"?Object:IIde)],J.prototype,"ide",void 0);ve([Ul(),Hl(),Re(),Oe(()=>Ze),ye("design:type",typeof IEmit>"u"?Object:IEmit)],J.prototype,"emit",void 0);ve([ct(),Re(),Oe(()=>at),ye("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],J.prototype,"avulsa",void 0);ve([ct(),Re(),Oe(()=>_e),ye("design:type",typeof IDest>"u"?Object:IDest)],J.prototype,"dest",void 0);ve([ct(),Re(),Oe(()=>$),ye("design:type",typeof ILocal>"u"?Object:ILocal)],J.prototype,"retirada",void 0);ve([ct(),Re(),Oe(()=>$),ye("design:type",typeof ILocal>"u"?Object:ILocal)],J.prototype,"entrega",void 0);ve([ct(),Re({each:!0}),$h(10),Oe(()=>Ko),ye("design:type",Array)],J.prototype,"autXML",void 0);ve([Re({each:!0}),$h(990),OS(1),Oe(()=>uo),ye("design:type",Array)],J.prototype,"det",void 0);ve([Re(),Oe(()=>to),ye("design:type",typeof ITotal>"u"?Object:ITotal)],J.prototype,"total",void 0);ve([Re(),Oe(()=>mt),ye("design:type",typeof ITransp>"u"?Object:ITransp)],J.prototype,"transp",void 0);ve([ct(),Re(),Oe(()=>Sn),ye("design:type",typeof ICobr>"u"?Object:ICobr)],J.prototype,"cobr",void 0);ve([Re(),Oe(()=>Nn),ye("design:type",typeof IPag>"u"?Object:IPag)],J.prototype,"pag",void 0);ve([ct(),Re(),Oe(()=>gn),ye("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],J.prototype,"infIntermed",void 0);ve([ct(),Re(),Oe(()=>Eo),ye("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],J.prototype,"infAdic",void 0);ve([ct(),Re(),Oe(()=>Ei),ye("design:type",typeof IExporta>"u"?Object:IExporta)],J.prototype,"exporta",void 0);ve([ct(),Re(),Oe(()=>zi),ye("design:type",typeof ICompra>"u"?Object:ICompra)],J.prototype,"compra",void 0);ve([ct(),Re(),Oe(()=>gt),ye("design:type",typeof ICana>"u"?Object:ICana)],J.prototype,"cana",void 0);ve([ct(),Re(),Oe(()=>kt),ye("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],J.prototype,"infRespTec",void 0);ve([ct(),Re(),Oe(()=>Pr),ye("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],J.prototype,"infSolicNFF",void 0);ve([ct(),Re(),Oe(()=>Ni),ye("design:type",typeof IAgropecuario>"u"?Object:IAgropecuario)],J.prototype,"agropecuario",void 0);ve([ct(),Re(),Oe(()=>Gn),ye("design:type",typeof IInfPAA>"u"?Object:IInfPAA)],J.prototype,"infPAA",void 0);import{Type as nm}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([AS(),DS(),Hf("design:type",String)],ks.prototype,"xmlns",void 0);var qn=class{static{a(this,"NFe")}$;infNFe;Signature};Lf([om(),tm(),nm(()=>ks),im(),Hf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],qn.prototype,"$",void 0);Lf([om(),tm(),nm(()=>J),im(),Hf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],qn.prototype,"infNFe",void 0);Lf([FS(),Hf("design:type",typeof Signature>"u"?Object:Signature)],qn.prototype,"Signature",void 0);import{plainToInstance as xS}from"nfets/core";import{Validates as Tt}from"nfets/core";var Zo=a((o=[Xd])=>(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 je=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)],je.prototype,"det",null);Dt([Tt(w),E("design:type",Function),E("design:paramtypes",[typeof IProd>"u"?Object:IProd]),E("design:returntype",void 0)],je.prototype,"prod",null);Dt([Tt(Me),E("design:type",Function),E("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),E("design:returntype",void 0)],je.prototype,"imposto",null);Dt([Tt(Z),E("design:type",Function),E("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),E("design:returntype",void 0)],je.prototype,"icms",null);Dt([Tt(Ie),E("design:type",Function),E("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),E("design:returntype",void 0)],je.prototype,"issqn",null);Dt([Tt(ai),E("design:type",Function),E("design:paramtypes",[typeof III>"u"?Object:III]),E("design:returntype",void 0)],je.prototype,"ii",null);Dt([Tt(so),E("design:type",Function),E("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),E("design:returntype",void 0)],je.prototype,"ipi",null);Dt([Tt(ci),E("design:type",Function),E("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),E("design:returntype",void 0)],je.prototype,"pis",null);Dt([Tt(jo),E("design:type",Function),E("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),E("design:returntype",void 0)],je.prototype,"pisst",null);Dt([Tt(pi),E("design:type",Function),E("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),E("design:returntype",void 0)],je.prototype,"cofins",null);Dt([Tt(Vo),E("design:type",Function),E("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),E("design:returntype",void 0)],je.prototype,"cofinsst",null);Dt([Tt(zt),E("design:type",Function),E("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),E("design:returntype",void 0)],je.prototype,"icmsufdest",null);Dt([Zo(jt),Tt(Ut),E("design:type",Function),E("design:paramtypes",[typeof IIS>"u"?Object:IIS]),E("design:returntype",void 0)],je.prototype,"is",null);Dt([Zo(jt),Tt(Ft),E("design:type",Function),E("design:paramtypes",[typeof IIBSCBS>"u"?Object:IIBSCBS]),E("design:returntype",void 0)],je.prototype,"ibscbs",null);Dt([Zo(jt),E("design:type",Function),E("design:paramtypes",[typeof IVItem>"u"?Object:IVItem]),E("design:returntype",void 0)],je.prototype,"vItem",null);Dt([Zo(jt),Tt(Hn),E("design:type",Function),E("design:paramtypes",[typeof IDFeReferenciado>"u"?Object:IDFeReferenciado]),E("design:returntype",void 0)],je.prototype,"dfeReferenciado",null);import{left as wS,right as Ql}from"nfets/core";import{ValidateErrorsMetadata as Uf,Validates as be}from"nfets/core";import{Environment as PS,NFeTsError as ES}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=je.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 xS(this.data,qn,{clearEmptyValues:!0})}quiet(){return Reflect.deleteMetadata(Uf,this),this}toObject(){if(this.$data!==void 0)return Ql(this.$data);let e=this.errors();if(e)return wS(new ES(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),Ql(this.$data)}async assemble(){let e=this.toObject();return e.isLeft()?e:Ql(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==PS.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([be(zr),C("design:type",Function),C("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),C("design:returntype",void 0)],H.prototype,"infNFe",null);Se([be(B),C("design:type",Function),C("design:paramtypes",[typeof IIde>"u"?Object:IIde]),C("design:returntype",void 0)],H.prototype,"ide",null);Se([be(Ze),C("design:type",Function),C("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),C("design:returntype",void 0)],H.prototype,"emit",null);Se([be(at),C("design:type",Function),C("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),C("design:returntype",void 0)],H.prototype,"avulsa",null);Se([be(_e),C("design:type",Function),C("design:paramtypes",[typeof IDest>"u"?Object:IDest]),C("design:returntype",void 0)],H.prototype,"dest",null);Se([be($),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"retirada",null);Se([be($),C("design:type",Function),C("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),C("design:returntype",void 0)],H.prototype,"entrega",null);Se([be(Ko,{each:!0}),C("design:type",Function),C("design:paramtypes",[Array]),C("design:returntype",void 0)],H.prototype,"autXML",null);Se([be(to),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"total",null);Se([Zo(jt),be(Po),C("design:type",Function),C("design:paramtypes",[typeof IIBSCBSTot>"u"?Object:IIBSCBSTot]),C("design:returntype",void 0)],H.prototype,"IBSCBSTot",null);Se([Zo(jt),be(hr),C("design:type",Function),C("design:paramtypes",[typeof IISTot>"u"?Object:IISTot]),C("design:returntype",void 0)],H.prototype,"ISTot",null);Se([Zo(jt),C("design:type",Function),C("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),C("design:returntype",void 0)],H.prototype,"buildTotalForPL_010",null);Se([be(mt),C("design:type",Function),C("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),C("design:returntype",void 0)],H.prototype,"transp",null);Se([be(Sn),C("design:type",Function),C("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),C("design:returntype",void 0)],H.prototype,"cobr",null);Se([be(Nn),C("design:type",Function),C("design:paramtypes",[typeof IPag>"u"?Object:IPag]),C("design:returntype",void 0)],H.prototype,"pag",null);Se([be(gn),C("design:type",Function),C("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),C("design:returntype",void 0)],H.prototype,"infIntermed",null);Se([be(Eo),C("design:type",Function),C("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),C("design:returntype",void 0)],H.prototype,"infAdic",null);Se([be(Ei),C("design:type",Function),C("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),C("design:returntype",void 0)],H.prototype,"exporta",null);Se([be(zi),C("design:type",Function),C("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),C("design:returntype",void 0)],H.prototype,"compra",null);Se([be(gt),C("design:type",Function),C("design:paramtypes",[typeof ICana>"u"?Object:ICana]),C("design:returntype",void 0)],H.prototype,"cana",null);Se([be(kt),C("design:type",Function),C("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),C("design:returntype",void 0)],H.prototype,"infRespTec",null);Se([be(Pr),C("design:type",Function),C("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),C("design:returntype",void 0)],H.prototype,"infSolicNFF",null);Se([Zo(jt),be(Ni),C("design:type",Function),C("design:paramtypes",[typeof IAgropecuario>"u"?Object:IAgropecuario]),C("design:returntype",void 0)],H.prototype,"agropecuario",null);Se([Zo(jt),be(Gn),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 zS.resolve(xc(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Gl(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Gl(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()?TS(new Ac(t.value.message,e,{cause:t.value.cause})):Gl(e)}};import{NFeTsError as BS}from"nfets/core";import{left as VS,right as LS}from"nfets/core";import{unreachable as HS}from"nfets/core";import{plainToInstance as jS}from"nfets/core";import{Type as ql}from"class-transformer";import{Allow as MS,IsNotEmptyObject as Zl,IsObject as Yl,ValidateNested as Xl}from"class-validator";import{IsString as am}from"class-validator";function rm(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(rm,"_ts_decorate");function sm(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}a(sm,"_ts_metadata");var $s=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};rm([am(),sm("design:type",String)],$s.prototype,"qrCode",void 0);rm([am(),sm("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 pn=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Gf([Yl(),Zl(),ql(()=>ks),Xl(),qf("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],pn.prototype,"$",void 0);Gf([Yl(),Zl(),ql(()=>J),Xl(),qf("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],pn.prototype,"infNFe",void 0);Gf([Yl(),Zl(),ql(()=>$s),Xl(),qf("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],pn.prototype,"infNFeSupl",void 0);Gf([MS(),qf("design:type",typeof Signature>"u"?Object:Signature)],pn.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 jS(this.data,pn,{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 cm=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 VS(new BS("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 LS(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 HS(i.version)}}};var fm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xn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do9keBylsho558uglR2YUyNbMTwOcynliw6XtUyA4FA4NgQlIbA64YtO1pnAVfbvklwPlJLteOiQvJ6tStj0mWv2r4T8dCShZuDwhAIBN7wBKUh8LpjYEdrk+xzkN4PdNheDKpJmxxZI5L4yEmUHTC8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+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 fm}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 Zn=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 t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){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 US}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!==US.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),x=this.columnStyles[1];if(N>=x)return[[v,{colSpan:6,font:h,text:`${r} ${i}`}],[{colSpan:3},...S]];let z=this.builder.widthOfString(i),we=this.columnStyles[2];if(z>=we)return[[v,y,{colSpan:5,font:h,text:i}],[{colSpan:3},...S]];let te=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${i}`)<=te?[[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 te=this.calculateRowHeight(h[1],n);S=Math.max(n,te)}let{top:N,bottom:x}=this.defaultStyle.padding,z=N+x,we=h.length>1?n*.2:0;return p+y+S+h.length*z+we},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 Be={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"},pm={[Be.Dinheiro]:"Dinheiro",[Be.Cheque]:"Cheque",[Be.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[Be.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[Be.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[Be.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[Be.ValeRefeicao]:"Vale Refei\xE7\xE3o",[Be.ValePresente]:"Vale Presente",[Be.ValeCombustivel]:"Vale Combust\xEDvel",[Be.BoletoBancario]:"Boleto Banc\xE1rio",[Be.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[Be.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[Be.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[Be.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[Be.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[Be.CreditoEmLoja]:"Cr\xE9dito em Loja",[Be.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[Be.SemPagamento]:"Sem pagamento",[Be.PagamentoPosterior]:"Pagamento Posterior",[Be.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(pm[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 Sv=Ud(Vd(),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 Sv.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 Ld}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=Ld[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=Ld[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:i}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??r,right:i},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(){o._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n,{nNF:i,serie:s,dhEmi:c}=this.context.data.infNFe.ide,f=i.padStart(9,"0"),p=s.padStart(3,"0"),{cUF:u}=this.context.data.infNFe.ide,h=Ld[u],v=fp(c).tz(h).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`NFC-e n\xBA ${f} - s\xE9rie ${p} emitida em: ${v}`,{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:x,nProt:z}=N.infProt,we=z.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),te=fp(x).tz(h).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`Protocolo de autoriza\xE7\xE3o: ${we}
18
+ Data de autoriza\xE7\xE3o: ${te}`,{width:r,align:"center"}))}return e.reduce((x,z)=>x+z,0)}};var lp=class o{static{a(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[cp.instance(this.context),pp.instance(this.context),Zn.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(){o._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+(t.height?.()??0),0)}};var nN=.35277777777777775,Hd=.75,Cv={"80mm":80/nN},$n="gerado por github.com/nfets/nfets";var dp=class o{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 o(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},i=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...i,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===$n)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(){o._instance=void 0}height(){this.setup();let e=[this.builder.currentLineHeight()*.5],t=this.context.options.credits,{left:n,right:r}=this.builder.pageMargins(),i=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:i,align:"center"})),this.infCplText&&e.push(this.builder.heightOfString(this.infCplText,{width:i,align:"center"})),t&&e.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(t,{width:i,align:"center"})),e.reduce((f,p)=>f+p,0)}};var ua=class o{static{a(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[lp.instance(this.context),ap.instance(this.context),dp.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(){o._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 rN}from"stream";import{PdfkitPdfBuilder as sN}from"nfets/core";import{Decimal as aN,Xml2JsToolkit as cN}from"nfets/core";var ma=class{static{a(this,"DanfcePdfDocument")}stream;builder;toolkit=new cN;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*Ud,titleFontSize:11*Ud,credits:$n};constructor(e){this.stream=e,this.builder=sN.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let n=t(new rN);try{n.options.height=1e4,n.apply(),n.builder.page(),await n.parse(e);for(let i of n.builders)await i.build();let{bottom:r}=n.pageMargins;return n.builder.y()+r+8}finally{n.end()}}pageMargins={top:12,right:8,bottom:28,left:8};height(){this.builder.page();let{top:e,bottom:t}=this.pageMargins;return this.builders.reduce((r,i)=>r+(i.height?.()??0),0)+e+t}apply(){this.builder.configure({size:[Cv[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 aN(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}};var bv=class o extends ma{static{a(this,"DanfceDefaultPdfDocument")}clone(e){return new o(e)}get builders(){return[ea.instance(this),Zn.instance(this),ta.instance(this),Yf.instance(this),oa.instance(this),ia.instance(this),na.instance(this),ua.instance(this)]}};var Nv=class o extends ma{static{a(this,"DanfceReducedPdfDocument")}clone(e){return new o(e)}get builders(){return[ea.instance(this),Zn.instance(this),ta.instance(this),oa.instance(this),ia.instance(this),na.instance(this),ua.instance(this)]}};import{PdfkitPdfBuilder as dN}from"nfets/core";import{Xml2JsToolkit as uN}from"nfets/core";import{Decimal as fN,dateToolkit as Iv,timezones as pN}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}decimal(e,t=2,n=t){return new fN(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")}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 Iv(e).tz(pN[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 Iv().format("DD/MM/YYYY [\xE0s] HH:mm:ss")}sanitize(e){return(e??"").replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"").trim()}};var mp=class{static{a(this,"FieldBox")}context;labelSize=5;valueSize=8;titleSize=6.5;padding=1.5;rowHeight=D(7);radius=D(.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.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:!0,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}),!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??!0,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((m,v)=>{let y=v===u.length-1,C=e+v*c,F=y?e+n-C:c;this.box(C,t+p*s,F,s,m)})}return f*s}gridRows(e,t){return Math.ceil(e/t)}title(e,t,n,r){return this.text(r,e,t+1,n,this.titleHeight-1,{size:this.titleSize,bold:!0}),this.titleHeight}};import{Environment as lN}from"nfets/core";var hp=class{static{a(this,"StatusMarks")}context;cancelled=["101","135","151","155"];denied=[hn.UsoDenegado,hn.NfeDenegada,hn.DenegadaIrregularidadeEmissor,hn.DenegadaIrregularidadeDestinatario,hn.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!==lN.Production}get isContingency(){return this.context.data.infNFe.ide.tpEmis!==Le.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===Ue.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(be=>this.fit(be,this.messageSize,p)),m=s?this.fit(s,this.detailSize,p):0,v=(u.reduce((be,ee)=>be+ee,0)+m)*this.lineHeight,y=Math.min(1,r/v),C=c?f.length:f.length-1,{builder:F,fields:x}=this.context,j=t+Math.max((r-v*y)/2,0),at=a((be,ee)=>{let ct=ee*y;x.text(be,e,j,n,ct*this.lineHeight,{size:ct,bold:!0,align:"center"}),j+=ct*this.lineHeight},"write");F.save().fillColor("#000000",.3),f.forEach((be,ee)=>{s&&ee===C&&at(s,m),at(be,u[ee])}),s&&C===f.length&&at(s,m),F.restore().fillColor("black")}};var ha=class{static{a(this,"DanfePdfDocument")}stream;events=[];builder;toolkit=new uN;format=new up(this);fields=new mp(this);status=new hp(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",qComDecimals:4,vUnComDecimals:4,showCanhoto:!0,showItemBatch:!0,showItemComplement:!1,showItemOrderNumber:!1,breakItemDescription:!0,hideTaxUnit:!1,credits:$n};margins=_d;gap=D(1);page={number:1,total:1};_blocks;get blocks(){return this._blocks??=this.createBlocks()}constructor(e){this.stream=e,this.builder=dN.new(this.defaults).pipe(this.stream)}get bold(){return`${this.defaults.font}-Bold`}get contentWidth(){let{left:e,right:t}=this.margins;return this.builder.pageWidth()-e-t}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:"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.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()}paginate(){let{header:e,firstPage:t,items:n,lastPage:r}=this.blocks,i=this.pageBottom-this.pageTop,s=e.height()+this.gap+n.headerHeight(),c=this.canhoto?.height()??0,f=this.stackHeight(this.visible(t)),p=this.stackHeight(this.visible(r)),u=[],m=[],v=0,y=i-c-s-f;for(let C of this.det){let F=n.itemHeight(C);m.length&&v+F>y&&(u.push(m),m=[],v=0,y=i-s),m.push(C),v+=F}return v+p>y&&(u.push(m),m=[]),u.push(m),u.map((C,F)=>({items:C,isFirst:F===0,isLast:F===u.length-1}))}draw(e){let{header:t,firstPage:n,items:r,lastPage:i,footer:s}=this.blocks,c=this.margins.left,f=this.contentWidth,p=this.pageTop,u=this.canhoto;if(e.isFirst&&u&&(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 y of this.visible(n))p+=this.gap,y.build({x:c,y:p,width:f}),p+=y.height();let m=this.visible(i),v=e.isLast?this.pageBottom-this.stackHeight(m):this.pageBottom;if(p+=this.gap,r.slice=e,r.boxHeight=v-p,r.build({x:c,y:p,width:f}),p=v,e.isLast)for(let y of m)p+=this.gap,y.build({x:c,y:p,width:f}),p+=y.height();s.build({x:c,y:this.pageBottom,width:f})}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,m)=>{m>0&&this.builder.page(),this.page={number:m+1,total:p.length},this.draw(u)}),this}end(){this.builder.end()}};var ie=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 ga=class extends ie{static{a(this,"Canhoto")}textHeight=D(10);signatureHeight=D(7);numberWidth=D(35);spacing=D(4);height(){return this.textHeight+this.signatureHeight+this.spacing}get receivedText(){let{emit:e,dest:t,ide:n,total:r}=this.infNFe,i=[`RECEBEMOS DE ${e.xNome} OS PRODUTOS E/OU SERVI\xC7OS CONSTANTES DA NOTA FISCAL ELETR\xD4NICA INDICADA AO LADO.`,`EMISS\xC3O: ${this.format.date(n.dhEmi)}`,`VALOR TOTAL: R$ ${this.format.currency(r.ICMSTot.vNF)}`];if(t?.xNome){let s=t.enderDest,c=s?` - ${[s.xLgr,s.nro].filter(Boolean).join(", ")} ${s.xBairro??""} ${s.xMun??""}-${s.UF??""}`:"";i.push(`DESTINAT\xC1RIO: ${t.xNome}${c}`)}return i.join(" ")}draw({x:e,y:t,width:n}){let r=this.fields.padding,i=n-this.numberWidth;this.fields.rect(e,t,i,this.textHeight),this.fields.text(this.receivedText,e+r,t+r,i-2*r,this.textHeight-2*r,{size:6.5}),this.fields.row(e,t+this.textHeight,i,this.signatureHeight,[{label:"DATA DE RECEBIMENTO",weight:40},{label:"IDENTIFICA\xC7\xC3O E ASSINATURA DO RECEBEDOR",weight:125}]);let s=e+i,c=this.textHeight+this.signatureHeight,{nNF:f,serie:p}=this.infNFe.ide;this.fields.rect(s,t,this.numberWidth,c),this.fields.text("NF-e",s,t+D(2),this.numberWidth,16,{size:13,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(f)}
22
- S\xE9rie ${this.format.serie(p)}`,s,t+D(8),this.numberWidth,c-D(8),{size:8,bold:!0,align:"center"});let u=t+c+this.spacing/2;this.builder.save().lineWidth(.4).dash(3,{space:2}).moveTo(e,u).lineTo(e+n,u).stroke().undash().restore()}};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 startC=105;static stop=106;static codes(e){if(!/^\d*$/.test(e)||e.length%2!==0)throw new Error("Code128C requires an even number of digits");let t=e.match(/\d{2}/g)?.map(Number)??[],n=t.reduce((r,i,s)=>r+i*(s+1),o.startC)%103;return[o.startC,...t,n,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((m,v)=>m+v,0),p=i/f;e.save().fillColor("black");let u=n;c.forEach((m,v)=>{let y=m*p;v%2===0&&e.rect(u,r,y,s),u+=y}),e.fill().restore()}};var va=class extends ie{static{a(this,"Header")}topHeight=D(32);emitWidth=D(80);danfeWidth=D(34);barcodeHeight=D(12);logoHeight=this.topHeight/3;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:e.IE,weight:1},{label:"INSCRI\xC7\xC3O MUNICIPAL",value:e.IM,weight:1},{label:"INSCRI\xC7\xC3O ESTADUAL DO SUBST. TRIBUT.",value:e.IEST,weight:1},{label:"CNPJ / CPF",value: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}`:"",m=p?` Fone/Fax: ${this.format.phone(p)}`:"";return[`${t}, ${n}${u}`,`${i} - ${this.format.cep(s)}`,`${c} - ${f}${m}`].join(`
23
- `)}drawEmit(e,t){let n=this.fields.padding,r=this.emitWidth,i=this.topHeight;this.fields.box(e,t,r,i,{label:"IDENTIFICA\xC7\xC3O DO EMITENTE"});let s=t+n+this.fields.labelHeight,c=t+i-n-s,f=e+n,p=r-2*n,u=D(1),m=this.logo,v=m?this.logoHeight+u:0,{xNome:y}=this.infNFe.emit,C=this.emitAddress(),F=Math.min(this.fields.measure(y,p,{size:9,bold:!0}),D(10)),x=Math.min(this.fields.measure(C,p,{size:7}),c-v-F-u),j=v+F+u+x,at=s+Math.max((c-j)/2,0),be=at+v,ee=be+F+u;m&&this.builder.image(m,f,at,{fit:[p,this.logoHeight],align:"center",valign:"center"}),this.fields.text(y,f,be,p,F,{size:9,bold:!0,align:"center"}),this.fields.text(C,f,ee,p,x,{size:7,align:"center"})}drawDanfe(e,t){let n=this.danfeWidth,{tpNF:r,nNF:i,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+D(1.5),n,14,{size:12,bold:!0,align:"center"}),this.fields.text(`Documento Auxiliar da Nota
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===$n)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(){o._instance=void 0}height(){this.setup();let e=[this.builder.currentLineHeight()*.5],t=this.context.options.credits,{left:n,right:r}=this.builder.pageMargins(),i=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:i,align:"center"})),this.infCplText&&e.push(this.builder.heightOfString(this.infCplText,{width:i,align:"center"})),t&&e.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(t,{width:i,align:"center"})),e.reduce((f,p)=>f+p,0)}};var ua=class o{static{a(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[lp.instance(this.context),ap.instance(this.context),dp.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(){o._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 rN}from"stream";import{PdfkitPdfBuilder as sN}from"nfets/core";import{Decimal as aN,Xml2JsToolkit as cN}from"nfets/core";var ha=class{static{a(this,"DanfcePdfDocument")}stream;builder;toolkit=new cN;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*Hd,titleFontSize:11*Hd,credits:$n};constructor(e){this.stream=e,this.builder=sN.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let n=t(new rN);try{n.options.height=1e4,n.apply(),n.builder.page(),await n.parse(e);for(let i of n.builders)await i.build();let{bottom:r}=n.pageMargins;return n.builder.y()+r+8}finally{n.end()}}pageMargins={top:12,right:8,bottom:28,left:8};height(){this.builder.page();let{top:e,bottom:t}=this.pageMargins;return this.builders.reduce((r,i)=>r+(i.height?.()??0),0)+e+t}apply(){this.builder.configure({size:[Cv[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 aN(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}};var bv=class o extends ha{static{a(this,"DanfceDefaultPdfDocument")}clone(e){return new o(e)}get builders(){return[ea.instance(this),Zn.instance(this),ta.instance(this),Yf.instance(this),oa.instance(this),ia.instance(this),na.instance(this),ua.instance(this)]}};var Nv=class o extends ha{static{a(this,"DanfceReducedPdfDocument")}clone(e){return new o(e)}get builders(){return[ea.instance(this),Zn.instance(this),ta.instance(this),oa.instance(this),ia.instance(this),na.instance(this),ua.instance(this)]}};import{PdfkitPdfBuilder as dN}from"nfets/core";import{Xml2JsToolkit as uN}from"nfets/core";import{Decimal as fN,dateToolkit as Iv,timezones as pN}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 fN(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 Iv(e).tz(pN[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 Iv().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=D(7);radius=D(.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.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 lN}from"nfets/core";var mp=class{static{a(this,"StatusMarks")}context;cancelled=["101","135","151","155"];denied=[mn.UsoDenegado,mn.NfeDenegada,mn.DenegadaIrregularidadeEmissor,mn.DenegadaIrregularidadeDestinatario,mn.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!==lN.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(te=>this.fit(te,this.messageSize,p)),h=s?this.fit(s,this.detailSize,p):0,v=(u.reduce((te,_)=>te+_,0)+h)*this.lineHeight,y=Math.min(1,r/v),S=c?f.length:f.length-1,{builder:N,fields:x}=this.context,z=t+Math.max((r-v*y)/2,0),we=a((te,_)=>{let Le=_*y;x.text(te,e,z,n,Le*this.lineHeight,{size:Le,bold:!0,align:"center"}),z+=Le*this.lineHeight},"write");N.save().fillColor("#000000",.3),f.forEach((te,_)=>{s&&_===S&&we(s,h),we(te,u[_])}),s&&S===f.length&&we(s,h),N.restore().fillColor("black")}};var ma=class{static{a(this,"DanfePdfDocument")}stream;events=[];builder;toolkit=new uN;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:$n};margins=_d;gap=D(1);page={number:1,total:1};_blocks;get blocks(){return this._blocks??=this.createBlocks()}constructor(e){this.stream=e,this.builder=dN.new(this.defaults).pipe(this.stream)}get bold(){return`${this.defaults.font}-Bold`}sideCanhotoWidth=0;get contentWidth(){let{left:e,right:t}=this.margins,n=this.sideCanhotoWidth,r=n>0?this.gap:0;return this.builder.pageWidth()-e-t-n-r}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()}paginate(){let{header:e,firstPage:t,items:n,lastPage:r}=this.blocks,i=this.pageBottom-this.pageTop,s=e.height()+this.gap+n.headerHeight(),c=this.sideCanhotoWidth>0?0:this.canhoto?.height()??0,f=this.stackHeight(this.visible(t)),p=this.stackHeight(this.visible(r)),u=[],h=[],v=0,y=i-c-s-f;for(let S of this.det){let N=n.itemHeight(S);h.length&&v+N>y&&(u.push(h),h=[],v=0,y=i-s),h.push(S),v+=N}return v+p>y&&(u.push(h),h=[]),u.push(h),u.map((S,N)=>({items:S,isFirst:N===0,isLast:N===u.length-1}))}draw(e){let{header:t,firstPage:n,items:r,lastPage:i,footer:s}=this.blocks,c=this.margins.left,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 y of this.visible(n))p+=this.gap,y.build({x:c,y:p,width:f}),p+=y.height();let h=this.visible(i),v=e.isLast?this.pageBottom-this.stackHeight(h):this.pageBottom;if(p+=this.gap,r.slice=e,r.boxHeight=v-p,r.build({x:c,y:p,width:f}),p=v,e.isLast)for(let y of h)p+=this.gap,y.build({x:c,y:p,width:f}),p+=y.height();s.build({x:c,y:this.pageBottom,width:f}),e.isFirst&&u&&this.sideCanhotoWidth>0&&u.build({x:c+f+this.gap,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 ne=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 ga=class extends ne{static{a(this,"Canhoto")}textHeight=D(10);signatureHeight=D(7);numberWidth=D(35);spacing=D(4);height(){return this.textHeight+this.signatureHeight+this.spacing}receivedText(e=!0){let{emit:t,dest:n,ide:r,total:i}=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(i.ICMSTot.vNF)}`];if(n?.xNome){let f=n.enderDest,p=f?` - ${[f.xLgr,f.nro].filter(Boolean).join(", ")} ${f.xBairro??""} ${f.xMun??""}-${f.UF??""}`:"";c.push(`DESTINAT\xC1RIO: ${n.xNome}${p}`)}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 i=D(24),s=Math.max(r-i,0);this.fields.rect(e,t,n,r),this.drawRotated([this.receivedText(!1),"DATA DE RECEBIMENTO","IDENTIFICA\xC7\xC3O E ASSINATURA DO RECEBEDOR"].join(" "),e,t,n,s),this.drawNumber(e,t+s,n,i)}drawRotated(e,t,n,r,i){this.builder.save().translate(t,n+i).rotate(-90),this.fields.text(e,0,1,i,r-2,{size:6}),this.builder.restore()}drawTop({x:e,y:t,width:n}){let r=this.fields.padding,i=n-this.numberWidth;this.fields.rect(e,t,i,this.textHeight),this.fields.text(this.receivedText(),e+r,t+r,i-2*r,this.textHeight-2*r,{size:6.5}),this.fields.row(e,t+this.textHeight,i,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+i,t,this.numberWidth,s);let c=t+s+this.spacing/2;this.builder.save().lineWidth(.4).dash(3,{space:2}).moveTo(e,c).lineTo(e+n,c).stroke().undash().restore()}drawNumber(e,t,n,r){let{nNF:i,serie:s}=this.infNFe.ide;this.fields.rect(e,t,n,r),this.fields.text("NF-e",e,t+D(2),n,16,{size:12,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(i)}
22
+ S\xE9rie ${this.format.serie(s)}`,e,t+D(8),n,r-D(8),{size:7,bold:!0,align:"center"})}};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 startC=105;static stop=106;static codes(e){if(!/^\d*$/.test(e)||e.length%2!==0)throw new Error("Code128C requires an even number of digits");let t=e.match(/\d{2}/g)?.map(Number)??[],n=t.reduce((r,i,s)=>r+i*(s+1),o.startC)%103;return[o.startC,...t,n,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=D(32);emitWidth=D(80);danfeWidth=D(34);barcodeHeight=D(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,i=this.topHeight;this.fields.box(e,t,r,i,{label:"IDENTIFICA\xC7\xC3O DO EMITENTE"});let s=t+n+this.fields.labelHeight,c=t+i-n-s,f=D(1),p=this.logo,u=p?c:0,h=e+n+u+(p?f:0),v=r-2*n-u-(p?f:0),{xNome:y}=this.infNFe.emit,S=this.emitAddress(),N=Math.min(this.fields.measure(y,v,{size:9,bold:!0}),D(10)),x=Math.min(this.fields.measure(S,v,{size:7}),c-N-f),z=N+f+x,we=s+Math.max((c-z)/2,0),te=we+N+f;p&&this.builder.image(p,e+n,s,{fit:[u,c],align:"center",valign:"center"}),this.fields.text(y,h,we,v,N,{size:9,bold:!0,align:"center"}),this.fields.text(S,h,te,v,x,{size:7,align:"center"})}drawDanfe(e,t){let n=this.danfeWidth,{tpNF:r,nNF:i,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+D(1.5),n,14,{size:12,bold:!0,align:"center"}),this.fields.text(`Documento Auxiliar da Nota
24
24
  Fiscal Eletr\xF4nica`,e,t+D(6.5),n,D(6),{size:7,align:"center"}),this.fields.text(`0 - ENTRADA
25
- 1 - SA\xCDDA`,e+D(4),t+D(13),D(20),D(6),{size:7});let p=D(6),u=e+n-p-D(4),m=t+D(13);this.fields.rect(u,m,p,p),this.fields.text(r,u,m+D(1),p,p,{size:11,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(i)}
25
+ 1 - SA\xCDDA`,e+D(4),t+D(13),D(20),D(6),{size:7});let p=D(6),u=e+n-p-D(4),h=t+D(13);this.fields.rect(u,h,p,p),this.fields.text(r,u,h+D(1),p,p,{size:11,bold:!0,align:"center"}),this.fields.text(`N\xBA. ${this.format.number(i)}
26
26
  S\xE9rie ${this.format.serie(s)}
27
27
  Folha ${c}/${f}`,e,t+D(20.5),n,D(11),{size:8,bold:!0,align:"center"})}drawAccessKey(e,t,n){let r=this.fields.padding,i=this.format.accessKeyDigits();this.fields.rect(e,t,n,this.barcodeHeight),i.length===44&&gp.draw(this.builder,i,e+D(3),t+D(1.5),n-D(6),this.barcodeHeight-D(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+D(2.5),n-2*r,f-D(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)}`,align:"center",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():"",align:"center",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 ie{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(", "),m=s?.xCpl?`${u} - ${s.xCpl}`:u;this.fields.row(e,p,n,c,[{label:"NOME / RAZ\xC3O SOCIAL",value:r?.xNome,weight:120},{label:"CNPJ / CPF",value:r?.idEstrangeiro??this.format.document(r?.CNPJ,r?.CPF),weight:45,align:"center"},{label:"DATA DA EMISS\xC3O",value:this.format.date(i.dhEmi),weight:35,align:"center"}]),p+=c,this.fields.row(e,p,n,c,[{label:"ENDERE\xC7O",value:m,weight:90},{label:"BAIRRO / DISTRITO",value:s?.xBairro,weight:45},{label:"CEP",value:this.format.cep(s?.CEP),weight:30,align:"center"},{label:"DATA DA SA\xCDDA/ENTRADA",value:this.format.date(f),weight:35,align:"center"}]),p+=c,this.fields.row(e,p,n,c,[{label:"MUNIC\xCDPIO",value:s?.xMun,weight:70},{label:"FONE / FAX",value:this.format.phone(s?.fone),weight:35,align:"center"},{label:"UF",value:s?.UF,weight:10,align:"center"},{label:"INSCRI\xC7\xC3O ESTADUAL",value:r?.IE,weight:50,align:"center"},{label:"HORA DA SA\xCDDA/ENTRADA",value:this.format.time(f),weight:35,align:"center"}])}},er=class extends ie{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:r.xNome,weight:120},{label:"CNPJ / CPF",value:this.format.document(r.CNPJ,r.CPF),weight:45,align:"center"},{label:"INSCRI\xC7\xC3O ESTADUAL",value:r.IE,weight:35,align:"center"}]),s+=i,this.fields.row(e,s,n,i,[{label:"ENDERE\xC7O",value:`${r.xLgr}, ${r.nro}${c}`,weight:80},{label:"BAIRRO / DISTRITO",value:r.xBairro,weight:40},{label:"MUNIC\xCDPIO",value:r.xMun,weight:40},{label:"UF",value:r.UF,weight:10,align:"center"},{label:"CEP",value:this.format.cep(r.CEP),weight:30,align:"center"}])}};var Sa=class extends ie{static{a(this,"Invoices")}title="FATURA / DUPLICATAS";perRow=7;limit=21;cellHeight=D(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),m=p%this.perRow,v=e+m*c,y=r+u*this.cellHeight;this.fields.rect(v,y,c,this.cellHeight);let C=`Num.
28
+ www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora`,e+r,c+D(2.5),n-2*r,f-D(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}])}},er=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:45},{label:"INSCRI\xC7\xC3O ESTADUAL",value:this.format.blank(r.IE),weight:35}]),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=7;limit=21;cellHeight=D(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.
29
29
  Venc.
30
- Valor`,F=[f.nDup??"",this.format.plainDate(f.dVenc),`R$ ${this.format.currency(f.vDup)}`].join(`
31
- `),x={size:6};this.fields.text(C,v+s,y+s,c-2*s,this.cellHeight-2*s,x),this.fields.text(F,v+s,y+s,c-2*s,this.cellHeight-2*s,{...x,bold:!0,align:"right"})})}};var vp=class extends ie{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 mN}from"nfets/core";var Dc=class extends ie{static{a(this,"Transport")}title="TRANSPORTADOR / VOLUMES TRANSPORTADOS";conditional=!1;modFrete={0:"0-Por conta do Rem",1:"1-Por conta do Dest",2:"2-Por conta de Terceiros",3:"3-Pr\xF3prio por conta do Rem",4:"4-Pr\xF3prio por conta do Dest",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 mN(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);this.fields.row(e,p,n,f,[{label:"NOME / RAZ\xC3O SOCIAL",value:i?.xNome,weight:62},{label:"FRETE",value:this.modFrete[r]??r,weight:30},{label:"C\xD3DIGO ANTT",value:s?.RNTC,weight:22},{label:"PLACA DO VE\xCDCULO",value:s?.placa,weight:22},{label:"UF",value:s?.UF,weight:10,align:"center"},{label:"CNPJ / CPF",value:this.format.document(i?.CNPJ,i?.CPF),weight:34,align:"center"}]),p+=f,this.fields.row(e,p,n,f,[{label:"ENDERE\xC7O",value:i?.xEnder,weight:92},{label:"MUNIC\xCDPIO",value:i?.xMun,weight:54},{label:"UF",value:i?.UF,weight:10,align:"center"},{label:"INSCRI\xC7\xC3O ESTADUAL",value:i?.IE,weight:44,align:"center"}]),p+=f,this.fields.row(e,p,n,f,[{label:"QUANTIDADE",value:this.sum("qVol",0),weight:20,align:"right"},{label:"ESP\xC9CIE",value:c?.esp,weight:35},{label:"MARCA",value:c?.marca,weight:35},{label:"NUMERA\xC7\xC3O",value:c?.nVol,weight:35},{label:"PESO BRUTO",value:this.sum("pesoB",3),weight:37.5,align:"right"},{label:"PESO L\xCDQUIDO",value:this.sum("pesoL",3),weight:37.5,align:"right"}])}},yp=class extends Dc{static{a(this,"ConditionalTransport")}conditional=!0};import{Decimal as hN}from"nfets/core";var tr=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 ibscbs(){return this.det.imposto?.IBSCBS?.gIBSCBS}get cClassTrib(){return this.det.imposto?.IBSCBS?.cClassTrib}get is(){return this.det.imposto?.IS}get hasTaxUnit(){let{uTrib:e,qTrib:t,vUnCom:n,vUnTrib:r}=this.det.prod,i=a(s=>new hN(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 tr(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("")}additionalInfo(e){let t=e.infAdProd?.substring(0,this.maxAdditionalInfo).trim();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(`
30
+ Valor`,N=[f.nDup??"",this.format.plainDate(f.dVenc),`R$ ${this.format.currency(f.vDup)}`].join(`
31
+ `),x={size:6};this.fields.text(S,v+s,y+s,c-2*s,this.cellHeight-2*s,x),this.fields.text(N,v+s,y+s,c-2*s,this.cellHeight-2*s,{...x,align:"right"})})}};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 hN}from"nfets/core";var Dc=class extends ne{static{a(this,"Transport")}title="TRANSPORTADOR / VOLUMES TRANSPORTADOS";conditional=!1;modFrete={0:"0-Por conta do Rem",1:"1-Por conta do Dest",2:"2-Por conta de Terceiros",3:"3-Pr\xF3prio por conta do Rem",4:"4-Pr\xF3prio por conta do Dest",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 hN(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:30},{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:92},{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:20,align:"right"},{label:"ESP\xC9CIE",value:u(c?.esp),weight:35},{label:"MARCA",value:u(c?.marca),weight:35},{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 mN}from"nfets/core";var tr=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 ibscbs(){return this.det.imposto?.IBSCBS?.gIBSCBS}get cClassTrib(){return this.det.imposto?.IBSCBS?.cClassTrib}get is(){return this.det.imposto?.IS}get hasTaxUnit(){let{uTrib:e,qTrib:t,vUnCom:n,vUnTrib:r}=this.det.prod,i=a(s=>new mN(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 tr(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(`
32
32
  `)}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(`
33
- `)}build(e){let{prod:t}=e,n=this.options.showItemComplement?this.batch(e)+this.taxes(e)+this.fci(e):"",r=(this.additionalInfo(e)+this.anvisa(e)+n).trimEnd(),i=r?`${t.xProd}
34
- ${r}`:t.xProd;return this.options.breakItemDescription&&(i=i.replaceAll(";",`
35
- `)),this.options.showItemOrderNumber&&t.nItemPed&&(i+=` (ITEM ${t.nItemPed})`),[i,this.vehicle(e),this.weapons(e)].filter(Boolean).join(`
36
- `)}};var Ca=class extends ie{static{a(this,"DanfeItemsBlock")}description=new Sp(this.context);slice={items:[],isFirst:!0,isLast:!0};boxHeight=0;title="DADOS DOS PRODUTOS / SERVI\xC7OS";fontSize=6;headerFontSize=5;cellPadding=1.2;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,i)=>this.fields.measure(r.label,e[i]-2*t,{size:this.headerFontSize}));return Math.max(...n)+2*t}headerHeight(){return this.fields.titleHeight+this.labelsHeight()}isPairs(e){return typeof e!="string"}lineHeight(){return this.builder.font(this.context.defaults.font).fontSize(this.fontSize),this.builder.currentLineHeight(!0)}cellHeight(e,t){return this.isPairs(e)?Math.ceil(e.pairs.length/(e.columns??1))*this.lineHeight():this.fields.measure(e,t,{size:this.fontSize})}itemHeight(e){let t=this.widths(),n=this.cellPadding,r=this.cells(e).map((i,s)=>this.cellHeight(i,t[s]-2*n));return Math.max(this.lineHeight(),...r)+2*n}height(){return this.boxHeight}drawLabels(e,t,n){let r=this.widths(),i=this.cellPadding,s=e;this.columns.forEach((c,f)=>{this.fields.text(c.label,s+i,t+i,r[f]-2*i,n-2*i,{size:this.headerFontSize,align:"center"}),s+=r[f]})}drawColumnLines(e,t,n){let r=this.widths(),i=e;r.slice(0,-1).forEach(s=>{i+=s,this.builder.moveTo(i,t).lineTo(i,n).stroke()})}drawPairs(e,t,n,r){let i=this.lineHeight(),s=e.columns??1,c=this.cellPadding*4,f=(r-c*(s-1))/s;e.pairs.forEach(([p,u],m)=>{let v=n+Math.floor(m/s)*i,y=t+m%s*(f+c);this.fields.text(p,y,v,f,i,{size:this.fontSize}),this.fields.text(u,y,v,f,i,{size:this.fontSize,align:"right"})})}drawItem(e,t,n,r){let i=this.widths(),s=this.columns,c=this.cellPadding,f=t;this.cells(e).forEach((p,u)=>{let m=i[u]-2*c;this.isPairs(p)?this.drawPairs(p,f+c,n+c,m):this.fields.text(p,f+c,n+c,m,r-2*c,{size:this.fontSize,align:s[u].align??"left"}),f+=i[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),i=t+r,s=this.labelsHeight(),c=t+this.boxHeight;this.fields.rect(e,i,n,s),this.drawLabels(e,i,s);let f=i+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,i,c);let p=f;this.slice.items.forEach((u,m)=>{let v=this.itemHeight(u);m>0&&this.drawSeparator(e,p,n),this.drawItem(u,e,p,v),p+=v})}};var Cp=class extends Ca{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 tr(e),{prod:n}=e,{qComDecimals:r,vUnComDecimals:i}=this.context.options,s=t.icms,c=t.ipi,f=a(v=>this.format.decimal(v,2,r),"quantity"),p=a(v=>this.format.decimal(v,2,i),"unitValue"),u=!this.context.options.hideTaxUnit&&t.hasTaxUnit,m=a((v,y)=>u?`${v}
37
- ${y}`:v,"withTaxUnit");return[n.cProd,this.description.build(e),n.NCM,t.cst("/"),n.CFOP,m(n.uCom,n.uTrib),m(f(n.qCom),f(n.qTrib)),m(p(n.vUnCom),p(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 ba=class extends ie{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,i=t+this.fields.title(e,t,n,this.title);this.fields.row(e,i,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 Rv=Hd(Vd(),1);var bp=class{static{a(this,"DanfeQrCode")}context;svg;constructor(e){this.context=e}get content(){let e=this.context.data.infNFeSupl?.qrCode;if(e)return e}async prepare(){let e=this.content;if(!e)return;let t=await Rv.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,i]=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/i),s.forEach(f=>{c.path(f.$.d),f.$.fill&&c.fill(f.$.fill),f.$.stroke&&c.stroke(f.$.stroke)}),c.restore()}};var Na=class extends ie{static{a(this,"AdditionalData")}title="DADOS ADICIONAIS";textSize=6.5;minHeight=D(22);maxHeight=D(70);qrWidth=D(32);withQrCode=!1;qrCode;constructor(e){super(e),this.qrCode=new bp(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.hasQrCode?this.qrWidth:0,n=e*.66-t;return[n,t,e-n-t]}lines(){let{infAdic:e,ide:t,dest:n}=this.infNFe,r=[],i=this.format.sanitize(e?.infAdFisco);i&&r.push(`Inf. Fisco: ${i}`);let s=this.format.sanitize(e?.infCpl).replace(/;/g,`
33
+ `)}productName(e){let t=e.prod.xProd;return this.options.breakItemDescription&&(t=t.replaceAll(";",`
34
+ `)),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(`
35
+ `);return this.options.breakItemDescription&&(t=t.replaceAll(";",`
36
+ `)),t.trim()}details(e){let t=(this.additionalInfo(e)+this.narrative(e)).trimEnd(),r=[t?` ${t}`:"",this.vehicle(e),this.weapons(e)].filter(Boolean).join(`
37
+ `);return this.options.breakItemDescription&&(r=r.replaceAll(";",`
38
+ `)),r}build(e){let t=[this.productName(e),this.details(e)].filter(Boolean).join(`
39
+ `);return this.options.breakItemDescription&&(t=t.replaceAll(";",`
40
+ `)),t}};var Ca=class extends ne{static{a(this,"DanfeItemsBlock")}description=new Sp(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";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,i)=>this.fields.measure(r.label,e[i]-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(t-.5,1),i=this.fields.widthOf(e,{size:n});return i<=r?n:n*r/i}cellHeight(e,t){return this.isPairs(e)?Math.ceil(e.pairs.length/(e.columns??1))*this.lineHeight():this.isRuns(e)?e.reduce((n,r)=>{let i=r.blankBefore?this.lineHeight():0;if(!r.text)return n+i;let s=r.fit?this.fitSize(r.text,t,this.fontSize):this.fontSize;return n+i+this.fields.measure(r.text,t,{size:s})},0):this.fields.measure(e,t,{size:this.fontSize})}itemHeight(e){let t=this.widths(),n=this.cellPadding,r=this.cells(e).map((i,s)=>this.cellHeight(i,t[s]-2*n));return Math.max(this.lineHeight(),...r)+2*n}height(){return this.boxHeight}drawLabels(e,t,n){let r=this.widths(),i=this.cellPadding,s=e;this.columns.forEach((c,f)=>{this.fields.text(c.label,s+i,t+i,r[f]-2*i,n-2*i,{size:this.headerFontSize,bold:!0,align:"center",color:this.columnLabelColor}),s+=r[f]})}drawColumnLines(e,t,n){let r=this.widths(),i=e;r.slice(0,-1).forEach(s=>{i+=s,this.builder.moveTo(i,t).lineTo(i,n).stroke()})}drawPairs(e,t,n,r){let i=this.lineHeight(),s=e.columns??1,c=5,f=(r-c*(s-1))/s,p=e.muted===!1?"black":this.fields.muted;e.pairs.forEach(([u,h],v)=>{let y=n+Math.floor(v/s)*i,S=t+v%s*(f+c),N={size:this.fontSize},x=this.fields.widthOf(h,N),z=Math.max(f-x,0),we=Math.min(this.fields.widthOf(u,N),z),te=this.fields.widthOf(".",N),_=z-we,Le=te>0&&_>te?".".repeat(Math.floor(_/te)):"";this.fields.text(u,S,y,we+.5,i,{...N,color:p}),Le&&this.fields.text(Le,S+we,y,_,i,{...N,color:p}),this.fields.text(h,S,y,f,i,{...N,align:"right"})})}drawRuns(e,t,n,r,i){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,p=this.fields.measure(c.text,r,{size:f});this.fields.text(c.text,t,s,r,p,{size:f,align:c.align??i,color:c.color,lineBreak:c.fit?!1:void 0}),s+=p})}drawItem(e,t,n,r){let i=this.widths(),s=this.columns,c=this.cellPadding,f=t;this.cells(e).forEach((p,u)=>{let h=i[u]-2*c,v=s[u].align??"left";this.isPairs(p)?this.drawPairs(p,f+c,n+c,h):this.isRuns(p)?this.drawRuns(p,f+c,n+c,h,v):this.fields.text(p,f+c,n+c,h,r-2*c,{size:this.fontSize,align:v}),f+=i[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),i=t+r,s=this.labelsHeight(),c=t+this.boxHeight;this.fields.rect(e,i,n,s),this.drawLabels(e,i,s);let f=i+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,i,c);let p=f;this.slice.items.forEach((u,h)=>{let v=this.itemHeight(u);h>0&&this.drawSeparator(e,p,n),this.drawItem(u,e,p,v),p+=v})}};var Cp=class extends Ca{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 tr(e),{prod:n}=e,{qComDecimals:r,vUnComDecimals:i}=this.context.options,s=t.icms,c=t.ipi,f=a(v=>this.format.decimal(v,2,r),"quantity"),p=a(v=>this.format.decimal(v,2,i),"unitValue"),u=!this.context.options.hideTaxUnit&&t.hasTaxUnit,h=a((v,y)=>u?`${v}
41
+ ${y}`:v,"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(p(n.vUnCom),p(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 ba=class extends ne{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,i=t+this.fields.title(e,t,n,this.title);this.fields.row(e,i,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 Rv=Ud(Vd(),1);var bp=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 Rv.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,i]=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/i).lineWidth(1),s.forEach(f=>{c.path(f.$.d),f.$.fill&&c.fill(f.$.fill),f.$.stroke&&c.stroke(f.$.stroke)}),c.restore()}};var Na=class extends ne{static{a(this,"AdditionalData")}title="DADOS ADICIONAIS";textSize=6.5;minHeight=D(22);maxHeight=D(70);qrWidth=D(32);withQrCode=!1;qrCode;constructor(e){super(e),this.qrCode=new bp(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,i=e-r-n;return[r,i,n]}lines(){let{infAdic:e,ide:t,dest:n}=this.infNFe,r=[],i=this.format.sanitize(e?.infAdFisco);i&&r.push(`Inf. Fisco: ${i}`);let s=this.format.sanitize(e?.infCpl).replace(/;/g,`
38
42
  `);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(`
39
- `)}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,i=this.hasQrCode?this.qrWidth:0;return Math.min(Math.max(r,i,this.minHeight),this.maxHeight)}height(){return this.fields.titleHeight+this.boxHeight()}draw({x:e,y:t,width:n}){let r=this.fields.padding,i=t+this.fields.title(e,t,n,this.title),s=this.boxHeight(),[c,f,p]=this.widths();this.fields.box(e,i,c,s,{label:"INFORMA\xC7\xD5ES COMPLEMENTARES"});let u=i+r+this.fields.labelHeight+1;if(this.fields.text(this.text,e+r,u,c-2*r,i+s-u-r,{size:this.textSize}),this.hasQrCode){let m=e+c;this.fields.box(m,i,f,s,{label:"QR CODE"});let v=Math.min(f-4*r,s-this.fields.labelHeight-4*r);this.qrCode.draw(m+(f-v)/2,i+this.fields.labelHeight+2*r,v)}this.fields.box(e+c+f,i,p,s,{label:"RESERVADO AO FISCO"})}};var Ia=class extends ie{static{a(this,"Footer")}textSize=6;height(){return D(4)}draw({x:e,y:t,width:n}){let r=t+D(1),i=this.height()-D(1),s=n/2;this.fields.text(`Impresso em ${this.format.now()}`,e,r,s,i,{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(i,f+.5),align:"right",ellipsis:!0,link:c===$n?"https://github.com/nfets/nfets":void 0})}};var Ov=class extends ha{static{a(this,"DanfeDefaultPdfDocument")}createBlocks(){return{canhoto:new ga(this),header:new va(this),firstPage:[new ya(this),new er(this,"retirada"),new er(this,"entrega"),new Sa(this),new vp(this),new Dc(this)],items:new Cp(this),lastPage:[new ba(this),new Na(this)],footer:new Ia(this)}}};var Np=class extends va{static{a(this,"RtcHeader")}crt={1:"1 - SIMPLES NACIONAL",2:"2 - SIMPLES NACIONAL - EXCESSO DE SUBLIMITE",3:"3 - REGIME NORMAL",4:"4 - MEI"};registrationRows(){let{emit:e}=this.infNFe;return[[{label:"INSCRI\xC7\xC3O ESTADUAL",value:e.IE,weight:34},{label:"INSCRI\xC7\xC3O ESTADUAL DO SUBSTITUTO TRIBUT\xC1RIO",value:e.IEST,weight:40},{label:"CNPJ / CPF",value:this.format.document(e.CNPJ,e.CPF),weight:36},{label:"C\xD3DIGO DO REGIME TRIBUT\xC1RIO",value:this.crt[e.CRT]??e.CRT,weight:40,valueSize:7},{label:"TIPO DE REGIME DE APURA\xC7\xC3O DO IBS E DA CBS",weight:50}]]}};var Ip=class extends ie{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)=>e+this.sectionHeight(t),0)}draw({x:e,y:t,width:n}){let r=t;for(let i of this.sections()){let s=r+this.fields.title(e,r,n,i.title);this.fields.grid(e,s,n,i.cells,this.perRow),r+=this.sectionHeight(i)}}};var Rp=class extends Ca{static{a(this,"RtcItems")}fontSize=5.5;get columns(){return[{label:"DESCRI\xC7\xC3O DO PRODUTO / SERVI\xC7O",weight:48},{label:"CST / CFOP",weight:12},{label:"QTD / UN",weight:14,align:"right"},{label:"VLR UNIT",weight:15,align:"right"},{label:"VLR TOTAL",weight:15,align:"right"},{label:"BASES DE C\xC1LCULO",weight:26},{label:"AL\xCDQUOTAS",weight:34},{label:"VALOR DOS TRIBUTOS",weight:36}]}rate(e,t){return e?.gRed?.pAliqEfet??t}descriptionCell(e){let{cProd:t,NCM:n}=e.det.prod,r=[`[C\xF3d. ${t}]`,`[NCM ${n}]`],i=e.cClassTrib;return i&&r.push(`[cClassTrib ${i}]`),`${this.description.build(e.det)}
40
- ${r.join(" ")}`}cells(e){let t=new tr(e),{prod:n}=e,{qComDecimals:r,vUnComDecimals:i}=this.context.options,s=t.icms,c=t.ipi,f=t.ibscbs,p=t.is,u=a(v=>this.format.currency(v),"currency"),m=a(v=>this.format.percent(v),"percent");return[this.descriptionCell(t),`CST ${t.cst()}
41
- CFOP ${n.CFOP}`,`${this.format.decimal(n.qCom,2,r)}
42
- ${n.uCom}`,this.format.decimal(n.vUnCom,2,i),u(n.vProd),{pairs:[["ICMS",u(s.vBC)],["IBS / CBS",u(f?.vBC)],["IS",u(p?.vBCIS)],["IPI",u(c?.vBC)]]},{columns:2,pairs:[["ICMS",m(s.pICMS)],["CBS",m(this.rate(f?.gCBS,f?.gCBS?.pCBS))],["IBS UF",m(this.rate(f?.gIBSUF,f?.gIBSUF?.pIBSUF))],["IPI",m(c?.pIPI)],["IBS MUN",m(this.rate(f?.gIBSMun,f?.gIBSMun?.pIBSMun))],["IS",m(p?.pIS)]]},{columns:2,pairs:[["ICMS",u(s.vICMS)],["CBS",u(f?.gCBS?.vCBS)],["IBS UF",u(f?.gIBSUF?.vIBSUF)],["IPI",u(c?.vIPI)],["IBS MUN",u(f?.gIBSMun?.vIBSMun)],["IS",u(p?.vIS)]]}]}};var Op=class extends Na{static{a(this,"RtcAdditionalData")}withQrCode=!0};var Fv=class extends ha{static{a(this,"DanfeRtcPdfDocument")}createBlocks(){return{canhoto:new ga(this),header:new Np(this),firstPage:[new ya(this),new er(this,"retirada"),new er(this,"entrega"),new Sa(this),new Ip(this),new ba(this),new yp(this)],items:new Rp(this),lastPage:[new Op(this)],footer:new Ia(this)}}};export{wc as AccessKeyBuilder,bv as DanfceDefaultPdfDocument,Nv as DanfceReducedPdfDocument,Ov as DanfeDefaultPdfDocument,_d as DanfeMargins,Fv as DanfeRtcPdfDocument,DN as DanfeSize,Pc as DefaultDetBuilderAggregator,Xd as DefaultSchema,Ec as DefaultTotalBuilderAggregator,qd as EventoCstatToCancelRegister,Gd as EventoCstatToProtocol,Zd as InutCstatToProtocol,pn as NFCeDto,qn as NFeDto,tf as NfceAuthorizerPipeline,Ru as NfceCancelPipeline,xu as NfceConsultProtocoloPipeline,Au as NfceConsultStatusPipeline,Fu as NfceContingencyXmlAuthorizerPipeline,pt as NfceQrcode,et as NfceRemoteTransmitter,Du as NfceVoidRangePipeline,Zf as NfceXmlBuilder,ch as NfceXmlBuilderPipeline,vu as NfeAuthorizationResponsePipeline,Wc as NfeAuthorizerPipeline,Jc as NfeCancelPipeline,Kd as NfeComplements,kc as NfeConsultProtocoloPipeline,Kc as NfeConsultStatusPipeline,Me as NfeDetXmlBuilder,Su as NfeDistribuicaoDFePipeline,yu as NfeManifestacaoPipeline,Bt as NfeRemoteTransmitter,xa as NfeVoidRangePipeline,U as NfeXmlBuilder,Qf as NfeXmlBuilderPipeline,RN as PL_009,jt as PL_010,Le as TpEmis,Ue as TpEvent,Ac as XmlValidationError,D as mm,Av as ptPerMm,xc as schemas};
43
+ `)}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,i=this.hasQrCode?this.qrWidth:0;return Math.min(Math.max(r,i,this.minHeight),this.maxHeight)}height(){return this.fields.titleHeight+this.boxHeight()}draw({x:e,y:t,width:n}){let r=this.fields.padding,i=t+this.fields.title(e,t,n,this.title),s=this.boxHeight(),[c,f,p]=this.widths();this.fields.box(e,i,c,s,{label:"INFORMA\xC7\xD5ES COMPLEMENTARES"});let u=i+r+this.fields.labelHeight+1;if(this.fields.text(this.text,e+r,u,c-2*r,i+s-u-r,{size:this.textSize}),this.fields.box(e+c,i,f,s,{label:"RESERVADO AO FISCO"}),this.hasQrCode){let h=e+c+f;this.fields.box(h,i,p,s,{label:"QR CODE"});let v=Math.min(p-4*r,s-this.fields.labelHeight-4*r);this.qrCode.draw(h+(p-v)/2,i+this.fields.labelHeight+2*r,v)}}};var Ia=class extends ne{static{a(this,"Footer")}textSize=6;height(){return D(4)}draw({x:e,y:t,width:n}){let r=t+D(1),i=this.height()-D(1),s=n/2;this.fields.text(`Impresso em ${this.format.now()}`,e,r,s,i,{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(i,f+.5),align:"right",ellipsis:!0,link:c===$n?"https://github.com/nfets/nfets":void 0})}};var Ov=class extends ma{static{a(this,"DanfeDefaultPdfDocument")}createBlocks(){return{canhoto:new ga(this),header:new va(this),firstPage:[new ya(this),new er(this,"retirada"),new er(this,"entrega"),new Sa(this),new vp(this),new Dc(this)],items:new Cp(this),lastPage:[new ba(this),new Na(this)],footer:new Ia(this)}}};var Np=class extends va{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 Ip=class extends ne{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)=>e+this.sectionHeight(t),0)}draw({x:e,y:t,width:n}){let r=t;for(let i of this.sections()){let s=r+this.fields.title(e,r,n,i.title);this.fields.grid(e,s,n,i.cells,this.perRow),r+=this.sectionHeight(i)}}};var Rp=class extends Ca{static{a(this,"RtcItems")}fontSize=5.5;columnLabelColor=this.fields.muted;get columns(){return[{label:"DESCRI\xC7\xC3O DO PRODUTO / SERVI\xC7O",weight:44},{label:"CST / CFOP",weight:18},{label:"QTD / UN",weight:13,align:"center"},{label:"VLR UNIT",weight:14,align:"right"},{label:"VLR TOTAL",weight:14,align:"right"},{label:"BASES DE C\xC1LCULO",weight:28},{label:"AL\xCDQUOTAS",weight:34},{label:"VALOR DOS TRIBUTOS",weight:35}]}rate(e,t){return e?.gRed?.pAliqEfet??t}descriptionCell(e){let{cProd:t,NCM:n}=e.det.prod,r=this.fields.muted,i=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)},...i?[{text:i,color:r}]:[],...s?[{text:s,color:r}]:[],{text:"",blankBefore:!0},{text:`[C\xF3d. ${t}] ${c.join(" ")}`,color:r}]}cells(e){let t=new tr(e),{prod:n}=e,r=t.icms,i=t.ipi,s=t.ibscbs,c=t.is,f=a(u=>this.format.currency(u),"currency"),p=a(u=>this.format.percent(u),"percent");return[this.descriptionCell(t),{muted:!1,pairs:[["CST",t.cst()],["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}],f(n.vProd),{pairs:[["ICMS",f(r.vBC)],["IBS / CBS",f(s?.vBC)],["IS",f(c?.vBCIS)],["IPI",f(i?.vBC)]]},{columns:2,pairs:[["ICMS",p(r.pICMS)],["CBS",p(this.rate(s?.gCBS,s?.gCBS?.pCBS))],["IBS UF",p(this.rate(s?.gIBSUF,s?.gIBSUF?.pIBSUF))],["IPI",p(i?.pIPI)],["IBS MUN",p(this.rate(s?.gIBSMun,s?.gIBSMun?.pIBSMun))],["IS",p(c?.pIS)]]},{columns:2,pairs:[["ICMS",f(r.vICMS)],["CBS",f(s?.gCBS?.vCBS)],["IBS UF",f(s?.gIBSUF?.vIBSUF)],["IPI",f(i?.vIPI)],["IBS MUN",f(s?.gIBSMun?.vIBSMun)],["IS",f(c?.vIS)]]}]}};var Op=class extends Na{static{a(this,"RtcAdditionalData")}withQrCode=!0};var Fv=class extends ma{static{a(this,"DanfeRtcPdfDocument")}createBlocks(){return{canhoto:new ga(this),header:new Np(this),firstPage:[new ya(this),new er(this,"retirada"),new er(this,"entrega"),new Sa(this),new Ip(this),new ba(this),new yp(this)],items:new Rp(this),lastPage:[new Op(this)],footer:new Ia(this)}}};export{wc as AccessKeyBuilder,bv as DanfceDefaultPdfDocument,Nv as DanfceReducedPdfDocument,Ov as DanfeDefaultPdfDocument,_d as DanfeMargins,Fv as DanfeRtcPdfDocument,DN as DanfeSize,Pc as DefaultDetBuilderAggregator,Xd as DefaultSchema,Ec as DefaultTotalBuilderAggregator,qd as EventoCstatToCancelRegister,Gd as EventoCstatToProtocol,Zd as InutCstatToProtocol,pn as NFCeDto,qn as NFeDto,tf as NfceAuthorizerPipeline,Ru as NfceCancelPipeline,xu as NfceConsultProtocoloPipeline,Au as NfceConsultStatusPipeline,Fu as NfceContingencyXmlAuthorizerPipeline,pt as NfceQrcode,ot as NfceRemoteTransmitter,Du as NfceVoidRangePipeline,Zf as NfceXmlBuilder,cm as NfceXmlBuilderPipeline,vu as NfeAuthorizationResponsePipeline,Wc as NfeAuthorizerPipeline,Jc as NfeCancelPipeline,Kd as NfeComplements,kc as NfeConsultProtocoloPipeline,Kc as NfeConsultStatusPipeline,je as NfeDetXmlBuilder,Su as NfeDistribuicaoDFePipeline,yu as NfeManifestacaoPipeline,Bt as NfeRemoteTransmitter,xa as NfeVoidRangePipeline,H as NfeXmlBuilder,Qf as NfeXmlBuilderPipeline,RN as PL_009,jt as PL_010,Ue as TpEmis,Qe as TpEvent,Ac as XmlValidationError,D as mm,Av as ptPerMm,xc as schemas};