return{type:"Pattern",getPattern:function(){return"hotpink"}}},t.prototype={getIR:function(){return["Dummy"]}},t}();vartt=function(){functiont(t,e,n,r,i,o){this.name=t[1][0].name,this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.objs=r,this.commonObjs=i,this.baseTransform=o,this.type="Pattern",this.ctx=n}vare={COLORED:1,UNCOLORED:2},i=3e3;returnt.getIR=function(t,e,n){varr=e.get("Matrix"),i=e.get("BBox"),o=e.get("XStep"),a=e.get("YStep"),s=e.get("PaintType"),h=e.get("TilingType");return["TilingPattern",n,t,r,i,o,a,s,h]},t.prototype={createPatternCanvas:function(t){vare=this.operatorList,n=this.bbox,o=this.xstep,a=this.ystep,s=this.paintType,h=this.tilingType,u=this.color,c=this.objs,l=this.commonObjs;this.ctx;r("TilingType: "+h);varf=n[0],d=n[1],p=n[2],g=n[3],v=[f,d],m=[f+o,d+a],y=m[0]-v[0],b=m[1]-v[1],w=U.singularValueDecompose2dScale(this.matrix),_=U.singularValueDecompose2dScale(this.baseTransform),A=[w[0]*_[0],w[1]*_[1]];y=Math.min(Math.ceil(Math.abs(y*A[0])),i),b=Math.min(Math.ceil(Math.abs(b*A[1])),i);varx=At.getCanvas("pattern",y,b,!0),S=x.context,k=newSt(S,l,c);k.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(S,s,u),this.setScale(y,b,o,a),this.transformToScale(k);varC=[1,0,0,1,-v[0],-v[1]];returnk.transform.apply(k,C),this.clipBbox(k,n,f,d,p,g),k.executeOperatorList(e),x.canvas},setScale:function(t,e,n,r){this.scale=[t/n,e/r]},transformToScale:function(t){vare=this.scale,n=[e[0],0,0,e[1],0,0];t.transform.apply(t,n)},scaleToContext:function(){vart=this.scale;this.ctx.scale(1/t[0],1/t[1])},clipBbox:function(t,e,n,r,i,o){if(e&&m(e)&&4==e.length){vara=i-n,s=o-r;t.rectangle(n,r,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(t,r,i){switch(r){casee.COLORED:varo=this.ctx;t.fillStyle=o.fillStyle,t.strokeStyle=o.strokeStyle;break;casee.UNCOLORED:vara=N.singletons.rgb.getRgb(i,0),s=U.makeCssRgb(a);t.fillStyle=s,t.strokeStyle=s;break;default:n("Unsupported paint type: "+r)}},getPattern:function(t,e){varn=this.createPatternCanvas(e),t=this.ctx;returnt.setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix),this.scaleToContext(),t.createPattern(n,"repeat")}},t}(),et=function(){vart=0,e=2,i=3,o=4;return{getSampleArray:function(t,e,n,r){for(vari=1,o=0,a=t.length;o<a;o++)i*=t[o];i*=e;for(vars=[],h=0,u=0,c=1/(Math.pow(2,n)-1),l=r.getBytes((i*n+7)/8),f=0,o=0;o<i;o++){for(;h<n;)u<<=8,u|=l[f++],h+=8;h-=n,s.push((u>>h)*c),u&=(1<<h)-1}returns},getIR:function(t,e){varr=e.dict;r||(r=e);vari=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],o=r.get("FunctionType"),a=i[o];returna||n("Unknown type of function"),a.call(this,e,r,t)},fromIR:function(n){varr=n[0];switch(r){caset:returnthis.constructSampledFromIR(n);casee:returnthis.constructInterpolatedFromIR(n);casei:returnthis.constructStichedFromIR(n);default:returnthis.constructPostScriptFromIR(n)}},parse:function(t,e){varn=this.getIR(t,e);returnthis.fromIR(n)},constructSampled:function(e,i){functiono(t){for(vare=t.length,n=(t.length/2,[]),r=0,i=0;i<e;i+=2)n[r]=[t[i],t[i+1]],++r;returnn}vara=i.get("Domain"),s=i.get("Range");a&&s||n("No domain or range");varh=a.length/2,u=s.length/2;a=o(a),s=o(s);varc=i.get("Size"),l=i.get("BitsPerSample"),f=i.get("Order")||1;1!==f&&r("No support for cubic spline interpolation: "+f);vard=i.get("Encode");if(!d){d=[];for(varp=0;p<h;++p)d.push(0),d.push(c[p]-1)}d=o(d);varg=i.get("Decode");g=g?o(g):s;varv=this.getSampleArray(c,u,l,e);return[t,h,a,d,g,v,c,u,Math.pow(2,l)-1,s]},constructSampledFromIR:function(t){functione(t,e,n,r,i){returnr+(t-e)*((i-r)/(n-e))}returnfunction(r){vari=t[1],o=t[2],a=t[3],s=t[4],h=t[5],u=t[6],c=t[7],l=(t[8],t[9]);i!=r.length&&n("Incorrect number of arguments: "+i+" != "+r.length);for(varf=r,d=1<<i,p=newFloat64Array(d),g=newUint32Array(d),v=0;v<d;v++)p[v]=1;for(varm=c,y=1,b=0;b<i;++b){varw=o[b][0],_=o[b][1],A=Math.min(Math.max(f[b],w),_),x=e(A,w,_,a[b][0],a[b][1]),S=u
for(p=s.replace(r,function(t){returnn[t]}),c=!1,u=v=0,m=p.length;v<m;u=v+=1)if(p.charCodeAt(u)>127){c=!0;break}returnc&&(p=a(newe("\ufeff"+p,"utf16le")).toString("binary")),"("+p+")"}if(e.isBuffer(s))return"<"+s.toString("hex")+">";if(sinstanceofi)returns.toString();if(sinstanceofDate)return"(D:"+o(s.getUTCFullYear(),4)+o(s.getUTCMonth(),2)+o(s.getUTCDate(),2)+o(s.getUTCHours(),2)+o(s.getUTCMinutes(),2)+o(s.getUTCSeconds(),2)+"Z)";if(Array.isArray(s))returnl=function(){vare,n,r;for(r=[],e=0,n=s.length;e<n;e++)h=s[e],r.push(t.convert(h));returnr}().join(" "),"["+l+"]";if("[object Object]"==={}.toString.call(s)){d=["<<"];for(fins)g=s[f],d.push("/"+f+" "+t.convert(g));returnd.push(">>"),d.join("\n")}return""+s},t}(),t.exports=r,i=n(12)}).call(this)}).call(e,n(4).Buffer)},function(t,e,n){"use strict";functionr(t,e){varn={numeric:h,alphanumeric:u,octet:c},r={L:g,M:v,Q:m,H:y};e=e||{};vari=e.version||-1,o=r[(e.eccLevel||"L").toUpperCase()],a=e.mode?n[e.mode.toLowerCase()]:-1,s="mask"ine?e.mask:-1;if(a<0)a="string"==typeoft?t.match(f)?h:t.match(p)?u:c:c;elseif(a!=h&&a!=u&&a!=c)throw"invalid or unsupported mode";if(t=M(a,t),null===t)throw"invalid data format";if(o<0||o>3)throw"invalid ECC level";if(i<0){for(i=1;i<=40&&!(t.length<=B(i,a,o));++i);if(i>40)throw"too large data for the Qr format"}elseif(i<1||i>40)throw"invalid Qr version! should be between 1 and 40";if(s!=-1&&(s<0||s>8))throw"invalid mask";returnJ(t,i,a,o,s)}functioni(t,e){varn=[],i=t.background||"#fff",o=t.foreground||"#000",a=r(t,e),s=a.length,h=Math.floor(e.fit?e.fit/s:5),u=s*h;n.push({type:"rect",x:0,y:0,w:u,h:u,lineWidth:0,color:i});for(varc=0;c<s;++c)for(varl=0;l<s;++l)a[c][l]&&n.push({type:"rect",x:h*c,y:h*l,w:h,h:h,lineWidth:0,color:o});return{canvas:n,size:u}}functiono(t){vare=i(t.qr,t);returnt._canvas=e.canvas,t._width=t._height=t._minWidth=t._maxWidth=t._minHeight=t._maxHeight=e.size,t}for(vara=[null,[[10,7,17,13],[1,1,1,1],[]],[[16,10,28,22],[1,1,1,1],[4,16]],[[26,15,22,18],[1,1,2,2],[4,20]],[[18,20,16,26],[2,1,4,2],[4,24]],[[24,26,22,18],[2,1,4,4],[4,28]],[[16,18,28,24],[4,2,4,4],[4,32]],[[18,20,26,18],[4,2,5,6],[4,20,36]],[[22,24,26,22],[4,2,6,6],[4,22,40]],[[22,30,24,20],[5,2,8,8],[4,24,44]],[[26,18,28,24],[5,4,8,8],[4,26,48]],[[30,20,24,28],[5,4,11,8],[4,28,52]],[[22,24,28,26],[8,4,11,10],[4,30,56]],[[22,26,22,24],[9,4,16,12],[4,32,60]],[[24,30,24,20],[9,4,16,16],[4,24,44,64]],[[24,22,24,30],[10,6,18,12],[4,24,46,68]],[[28,24,30,24],[10,6,16,17],[4,24,48,72]],[[28,28,28,28],[11,6,19,16],[4,28,52,76]],[[26,30,28,28],[13,6,21,18],[4,28,54,80]],[[26,28,26,26],[14,7,25,21],[4,28,56,84]],[[26,28,28,30],[16,8,25,20],[4,32,60,88]],[[26,28,30,28],[17,8,25,23],[4,26,48,70,92]],[[28,28,24,30],[17,9,34,23],[4,24,48,72,96]],[[28,30,30,30],[18,9,30,25],[4,28,52,76,100]],[[28,30,30,30],[20,10,32,27],[4,26,52,78,104]],[[28,26,30,30],[21,12,35,29],[4,30,56,82,108]],[[28,28,30,28],[23,12,37,34],[4,28,56,84,112]],[[28,30,30,30],[25,12,40,34],[4,32,60,88,116]],[[28,30,30,30],[26,13,42,35],[4,24,48,72,96,120]],[[28,30,30,30],[28,14,45,38],[4,28,52,76,100,124]],[[28,30,30,30],[29,15,48,40],[4,24,50,76,102,128]],[[28,30,30,30],[31,16,51,43],[4,28,54,80,106,132]],[[28,30,30,30],[33,17,54,45],[4,32,58,84,110,136]],[[28,30,30,30],[35,18,57,48],[4,28,56,84,112,140]],[[28,30,30,30],[37,19,60,51],[4,32,60,88,116,144]],[[28,30,30,30],[38,19,63,53],[4,28,52,76,100,124,148]],[[28,30,30,30],[40,20,66,56],[4,22,48,74,100,126,152]],[[28,30,30,30],[43,21,70,59],[4,26,52,78,104,130,156]],[[28,30,30,30],[45,22,74,62],[4,30,56,82,108,134,160]],[[28,30,30,30],[47,24,77,65],[4,24,52,80,108,136,164]],[[28,30,30,30],[49,25,81,68],[4,28,56,84,112,140,168]]],s=0,h=1,u=2,c=4,l=8,f=/^\d*$/,d=/^[A-Za-z0-9 $%*+\-.\/:]*$/,p=/^[A-Z0-9 $%*+\-.\/:]*$/,g=1,v=0,m=3,y=2,b=[],w=[-1],_=0,A=1;_<255;++_)b.push(A),w[A]=_,A=2*A^(A>=128?285:0);for(varx=[[]],_=0;_<30;++_){for(varS=x[_],k=[],C=0;C<=_;++C){varI=C<_?b[S[C]]:0,R=b[(_+(S[C-1]||0))%255];k.push(w[I^R])}x.push(k)}for(varE={},_=0;_<45;++_)E["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".charAt(_)]=_;varT=[function(t,e){
case0:for(h=x=0;x<w;h=x+=1)m[a++]=i[y++];break;case1:for(h=S=0;S<w;h=S+=1)o=i[y++],u=h<v?0:m[a-v],m[a++]=(o+u)%256;break;case2:for(h=k=0;k<w;h=k+=1)o=i[y++],s=(h-h%v)/v,_=b&&m[(b-1)*w+s*v+h%v],m[a++]=(_+o)%256;break;case3:for(h=C=0;C<w;h=C+=1)o=i[y++],s=(h-h%v)/v,u=h<v?0:m[a-v],_=b&&m[(b-1)*w+s*v+h%v],m[a++]=(o+Math.floor((u+_)/2))%256;break;case4:for(h=I=0;I<w;h=I+=1)o=i[y++],s=(h-h%v)/v,u=h<v?0:m[a-v],0===b?_=A=0:(_=m[(b-1)*w+s*v+h%v],A=s&&m[(b-1)*w+(s-1)*v+h%v]),l=u+_-A,f=Math.abs(l-u),p=Math.abs(l-_),g=Math.abs(l-A),d=f<=p&&f<=g?u:p<=g?_:A,m[a++]=(o+d)%256;break;default:thrownewError("Invalid filter algorithm: "+i[y-1])}b++}returnt(m)})},t.prototype.decodePalette=function(){vart,n,r,i,o,a,s,h,u,c;for(i=this.palette,s=this.transparency.indexed||[],a=newe(s.length+i.length),o=0,r=i.length,t=0,n=h=0,u=i.length;h<u;n=h+=3)a[o++]=i[n],a[o++]=i[n+1],a[o++]=i[n+2],a[o++]=null!=(c=s[t++])?c:255;returna},t.prototype.copyToImageData=function(t,e){varn,r,i,o,a,s,h,u,c,l,f;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),i=(null!=t?t.data:void0)||t,u=i.length,a=c||e,o=s=0,1===r)for(;o<u;)h=c?4*e[o/4]:s,l=a[h++],i[o++]=l,i[o++]=l,i[o++]=l,i[o++]=n?a[h++]:255,s=h;elsefor(;o<u;)h=c?4*e[o/4]:s,i[o++]=a[h++],i[o++]=a[h++],i[o++]=a[h++],i[o++]=n?a[h++]:255,s=h},t.prototype.decode=function(t){varn,r=this;returnn=newe(this.width*this.height*4),this.decodePixels(function(e){returnr.copyToImageData(n,e),t(n)})},t}()}).call(this)}).call(e,n(4).Buffer)},function(t,e,n){(function(e,r){(function(){vari,o,a,s,h;s=n(64),i=n(63),a=n(65),h=n(10),o=function(){functiont(t,r,o,h){if(this.document=t,this.id=h,"string"==typeofr){if(rinn)returnthis.isAFM=!0,this.font=newi(n[r]()),voidthis.registerAFM(r);if(/\.(ttf|ttc)$/i.test(r))this.font=s.open(r,o);else{if(!/\.dfont$/i.test(r))thrownewError("Not a supported font format or standard PDF font.");this.font=s.fromDFont(r,o)}}elseif(e.isBuffer(r))this.font=s.fromBuffer(r,o);elseif(rinstanceofUint8Array)this.font=s.fromBuffer(newe(r),o);else{if(!(rinstanceofArrayBuffer))thrownewError("Not a supported font format or standard PDF font.");this.font=s.fromBuffer(newe(newUint8Array(r)),o)}this.subset=newa(this.font),this.registerTTF()}varn,o;returnn={Courier:function(){returnh.readFileSync(r+"/font/data/Courier.afm","utf8")},"Courier-Bold":function(){returnh.readFileSync(r+"/font/data/Courier-Bold.afm","utf8")},"Courier-Oblique":function(){returnh.readFileSync(r+"/font/data/Courier-Oblique.afm","utf8")},"Courier-BoldOblique":function(){returnh.readFileSync(r+"/font/data/Courier-BoldOblique.afm","utf8")},Helvetica:function(){returnh.readFileSync(r+"/font/data/Helvetica.afm","utf8")},"Helvetica-Bold":function(){returnh.readFileSync(r+"/font/data/Helvetica-Bold.afm","utf8")},"Helvetica-Oblique":function(){returnh.readFileSync(r+"/font/data/Helvetica-Oblique.afm","utf8")},"Helvetica-BoldOblique":function(){returnh.readFileSync(r+"/font/data/Helvetica-BoldOblique.afm","utf8")},"Times-Roman":function(){returnh.readFileSync(r+"/font/data/Times-Roman.afm","utf8")},"Times-Bold":function(){returnh.readFileSync(r+"/font/data/Times-Bold.afm","utf8")},"Times-Italic":function(){returnh.readFileSync(r+"/font/data/Times-Italic.afm","utf8")},"Times-BoldItalic":function(){returnh.readFileSync(r+"/font/data/Times-BoldItalic.afm","utf8")},Symbol:function(){returnh.readFileSync(r+"/font/data/Symbol.afm","utf8")},ZapfDingbats:function(){returnh.readFileSync(r+"/font/data/ZapfDingbats.afm","utf8")}},t.prototype.use=function(t){vare;returnnull!=(e=this.subset)?e.use(t):void0},t.prototype.embed=function(){if(!this.embedded&&null!=this.dictionary)returnthis.isAFM?this.embedAFM():this.embedTTF(),this.embedded=!0},t.prototype.encode=function(t){vare;returnthis.isAFM?this.font.encodeText(t):(null!=(e=this.subset)?e.encodeText(t):void0)||t},t.prototype.ref=function(){returnnull!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()},t.prototype.registerTTF=f
newn(this.string.length)):null},t}(),t.exports=g}).call(this)},function(t,e,n){(function(e){functionr(t,e,n){this.chunk=t,this.encoding=e,this.callback=n}functioni(t,e){varr=n(69);t=t||{};vari=t.highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.objectMode=!!t.objectMode,einstanceofr&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;vara=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){d(e,t)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}functiono(t){vare=n(69);returnthisinstanceofo||thisinstanceofe?(this._writableState=newi(t,this),this.writable=!0,voidx.call(this)):newo(t)}functiona(t,n,r){vari=newError("write after end");t.emit("error",i),e.nextTick(function(){r(i)})}functions(t,n,r,i){varo=!0;if(!(A.isBuffer(r)||A.isString(r)||A.isNullOrUndefined(r)||n.objectMode)){vara=newTypeError("Invalid non-string/buffer chunk");t.emit("error",a),e.nextTick(function(){i(a)}),o=!1}returno}functionh(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&A.isString(e)&&(e=new_(e,n)),e}functionu(t,e,n,i,o){n=h(e,n,i),A.isBuffer(n)&&(i="buffer");vara=e.objectMode?1:n.length;e.length+=a;vars=e.length<e.highWaterMark;returns||(e.needDrain=!0),e.writing||e.corked?e.buffer.push(newr(n,i,o)):c(t,e,!1,a,n,i,o),s}functionc(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}functionl(t,n,r,i,o){r?e.nextTick(function(){n.pendingcb--,o(i)}):(n.pendingcb--,o(i)),t._writableState.errorEmitted=!0,t.emit("error",i)}functionf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}functiond(t,n){varr=t._writableState,i=r.sync,o=r.writecb;if(f(r),n)l(t,r,i,n,o);else{vara=m(t,r);a||r.corked||r.bufferProcessing||!r.buffer.length||v(t,r),i?e.nextTick(function(){p(t,r,a,o)}):p(t,r,a,o)}}functionp(t,e,n,r){n||g(t,e),e.pendingcb--,r(),b(t,e)}functiong(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}functionv(t,e){if(e.bufferProcessing=!0,t._writev&&e.buffer.length>1){for(varn=[],r=0;r<e.buffer.length;r++)n.push(e.buffer[r].callback);e.pendingcb++,c(t,e,!0,e.length,e.buffer,"",function(t){for(varr=0;r<n.length;r++)e.pendingcb--,n[r](t)}),e.buffer=[]}else{for(varr=0;r<e.buffer.length;r++){vari=e.buffer[r],o=i.chunk,a=i.encoding,s=i.callback,h=e.objectMode?1:o.length;if(c(t,e,!1,h,o,a,s),e.writing){r++;break}}r<e.buffer.length?e.buffer=e.buffer.slice(r):e.buffer.length=0}e.bufferProcessing=!1}functionm(t,e){returne.ending&&0===e.length&&!e.finished&&!e.writing}functiony(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}functionb(t,e){varn=m(t,e);returnn&&(0===e.pendingcb?(y(t,e),e.finished=!0,t.emit("finish")):y(t,e)),n}functionw(t,n,r){n.ending=!0,b(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r)),n.ended=!0}t.exports=o;var_=n(4).Buffer;o.WritableState=i;varA=n(105);A.inherits=n(104);varx=n(46);A.inherits(o,x),o.prototype.pipe=function(){this.emit("error",newError("Cannot pipe. Not readable."))},o.prototype.write=function(t,e,n){varr=this._writableState,i=!1;returnA.isFunction(e)&&(n=e,e=null),A.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),A.isFunction(n)||(n=function(){}),r.ended?a(this,r,n):s(this,r,t,n)&&(r.pendingcb++,i=u(this,r,t,e,n)),i},o.prototype.cork=function(){vart=this._writableState;t.corked++},o.prototype.uncork=function(){vart=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.buffer.length||v(this,t))},o.prototype._write=function(t,e,n){n(newError("not implemented"))},o.prototype._writev=null,o.prototype.end=function(t,e,n){varr=this._writableState;A.isFunction(t)?(n=t,t=null,e=null):A.isFunction(e)&&(n=e,e=null),A.isNullOrUndefined(t)||this.write(t,e),r.corked&&(r.corked=1,this.uncork