diff --git a/pr-preview/pr-116/assets/index-B0ZAno8Y.js b/pr-preview/pr-116/assets/index-r4OhAEWK.js similarity index 98% rename from pr-preview/pr-116/assets/index-B0ZAno8Y.js rename to pr-preview/pr-116/assets/index-r4OhAEWK.js index f803405..face472 100644 --- a/pr-preview/pr-116/assets/index-B0ZAno8Y.js +++ b/pr-preview/pr-116/assets/index-r4OhAEWK.js @@ -60,6 +60,6 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,i,s){function a(c,d){if(!i[c]){if(!n[c]){var f=typeof da=="function"&&da;if(!d&&f)return f(c,!0);if(o)return o(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[c]={exports:{}};n[c][0].call(u.exports,function(g){var p=n[c][1][g];return a(p||g)},u,u.exports,t,n,i,s)}return i[c].exports}for(var o=typeof da=="function"&&da,l=0;l>2,u=(3&c)<<4|d>>4,g=1>6:64,p=2>4,d=(15&h)<<4|(u=o.indexOf(l.charAt(p++)))>>2,f=(3&u)<<6|(g=o.indexOf(l.charAt(p++))),v[x++]=c,u!==64&&(v[x++]=d),g!==64&&(v[x++]=f);return v}},{"./support":30,"./utils":32}],2:[function(t,n,i){var s=t("./external"),a=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function c(d,f,h,u,g){this.compressedSize=d,this.uncompressedSize=f,this.crc32=h,this.compression=u,this.compressedContent=g}c.prototype={getContentWorker:function(){var d=new a(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return d.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new a(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,f,h){return d.pipe(new o).pipe(new l("uncompressedSize")).pipe(f.compressWorker(h)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,n,i){var s=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,i){var s=t("./utils"),a=function(){for(var o,l=[],c=0;c<256;c++){o=c;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;l[c]=o}return l}();n.exports=function(o,l){return o!==void 0&&o.length?s.getTypeOf(o)!=="string"?function(c,d,f,h){var u=a,g=h+f;c^=-1;for(var p=h;p>>8^u[255&(c^d[p])];return-1^c}(0|l,o,o.length,0):function(c,d,f,h){var u=a,g=h+f;c^=-1;for(var p=h;p>>8^u[255&(c^d.charCodeAt(p))];return-1^c}(0|l,o,o.length,0):0}},{"./utils":32}],5:[function(t,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,n,i){var s=null;s=typeof Promise<"u"?Promise:t("lie"),n.exports={Promise:s}},{lie:37}],7:[function(t,n,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=t("pako"),o=t("./utils"),l=t("./stream/GenericWorker"),c=s?"uint8array":"array";function d(f,h){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=h,this.meta={}}i.magic="\b\0",o.inherits(d,l),d.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,f.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(h){f.push({data:h,meta:f.meta})}},i.compressWorker=function(f){return new d("Deflate",f)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,i){function s(u,g){var p,x="";for(p=0;p>>=8;return x}function a(u,g,p,x,m,v){var w,A,T=u.file,_=u.compression,k=v!==c.utf8encode,C=o.transformTo("string",v(T.name)),S=o.transformTo("string",c.utf8encode(T.name)),O=T.comment,P=o.transformTo("string",v(O)),E=o.transformTo("string",c.utf8encode(O)),R=S.length!==T.name.length,b=E.length!==O.length,N="",V="",q="",ne=T.dir,H=T.date,ie={crc32:0,compressedSize:0,uncompressedSize:0};g&&!p||(ie.crc32=u.crc32,ie.compressedSize=u.compressedSize,ie.uncompressedSize=u.uncompressedSize);var I=0;g&&(I|=8),k||!R&&!b||(I|=2048);var L=0,se=0;ne&&(L|=16),m==="UNIX"?(se=798,L|=function(ee,Ve){var Ke=ee;return ee||(Ke=Ve?16893:33204),(65535&Ke)<<16}(T.unixPermissions,ne)):(se=20,L|=function(ee){return 63&(ee||0)}(T.dosPermissions)),w=H.getUTCHours(),w<<=6,w|=H.getUTCMinutes(),w<<=5,w|=H.getUTCSeconds()/2,A=H.getUTCFullYear()-1980,A<<=4,A|=H.getUTCMonth()+1,A<<=5,A|=H.getUTCDate(),R&&(V=s(1,1)+s(d(C),4)+S,N+="up"+s(V.length,2)+V),b&&(q=s(1,1)+s(d(P),4)+E,N+="uc"+s(q.length,2)+q);var K="";return K+=` -\0`,K+=s(I,2),K+=_.magic,K+=s(w,2),K+=s(A,2),K+=s(ie.crc32,4),K+=s(ie.compressedSize,4),K+=s(ie.uncompressedSize,4),K+=s(C.length,2),K+=s(N.length,2),{fileRecord:f.LOCAL_FILE_HEADER+K+C+N,dirRecord:f.CENTRAL_FILE_HEADER+s(se,2)+K+s(P.length,2)+"\0\0\0\0"+s(L,4)+s(x,4)+C+N+P}}var o=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),d=t("../crc32"),f=t("../signature");function h(u,g,p,x){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=p,this.encodeFileName=x,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,l),h.prototype.push=function(u){var g=u.meta.percent||0,p=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,l.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:p?(g+100*(p-x-1))/p:100}}))},h.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var g=this.streamFiles&&!u.file.dir;if(g){var p=a(u,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(u){this.accumulate=!1;var g=this.streamFiles&&!u.file.dir,p=a(u,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),g)this.push({data:function(x){return f.DATA_DESCRIPTOR+s(x.crc32,4)+s(x.compressedSize,4)+s(x.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var u=this.bytesWritten,g=0;g=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=o,c},readString:function(o){return s.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},n.exports=a},{"../utils":32}],19:[function(t,n,i){var s=t("./Uint8ArrayReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,i){var s=t("./DataReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,n,i){var s=t("./ArrayReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,i){var s=t("../utils"),a=t("../support"),o=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),d=t("./Uint8ArrayReader");n.exports=function(f){var h=s.getTypeOf(f);return s.checkSupport(h),h!=="string"||a.uint8array?h==="nodebuffer"?new c(f):a.uint8array?new d(s.transformTo("uint8array",f)):new o(s.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,i){var s=t("./GenericWorker"),a=t("../utils");function o(l){s.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(o,s),o.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,i){var s=t("./GenericWorker"),a=t("../crc32");function o(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,s),o.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,i){var s=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}s.inherits(o,a),o.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,i){var s=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=s.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}s.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,i){function s(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var l=0;l "+a:a}},n.exports=s},{}],29:[function(t,n,i){var s=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),l=t("../base64"),c=t("../support"),d=t("../external"),f=null;if(c.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(g,p){return new d.Promise(function(x,m){var v=[],w=g._internalType,A=g._outputType,T=g._mimeType;g.on("data",function(_,k){v.push(_),p&&p(k)}).on("error",function(_){v=[],m(_)}).on("end",function(){try{var _=function(k,C,S){switch(k){case"blob":return s.newBlob(s.transformTo("arraybuffer",C),S);case"base64":return l.encode(C);default:return s.transformTo(k,C)}}(A,function(k,C){var S,O=0,P=null,E=0;for(S=0;S"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(s),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,i){for(var s=t("./utils"),a=t("./support"),o=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function h(){l.call(this,"utf-8 encode")}i.utf8encode=function(u){return a.nodebuffer?o.newBufferFrom(u,"utf-8"):function(g){var p,x,m,v,w,A=g.length,T=0;for(v=0;v>>6:(x<65536?p[w++]=224|x>>>12:(p[w++]=240|x>>>18,p[w++]=128|x>>>12&63),p[w++]=128|x>>>6&63),p[w++]=128|63&x);return p}(u)},i.utf8decode=function(u){return a.nodebuffer?s.transformTo("nodebuffer",u).toString("utf-8"):function(g){var p,x,m,v,w=g.length,A=new Array(2*w);for(p=x=0;p>10&1023,A[x++]=56320|1023&m)}return A.length!==x&&(A.subarray?A=A.subarray(0,x):A.length=x),s.applyFromCharCode(A)}(u=s.transformTo(a.uint8array?"uint8array":"array",u))},s.inherits(f,l),f.prototype.processChunk=function(u){var g=s.transformTo(a.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var p=g;(g=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),g.set(p,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var x=function(v,w){var A;for((w=w||v.length)>v.length&&(w=v.length),A=w-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?w:A+c[v[A]]>w?A:w}(g),m=g;x!==g.length&&(a.uint8array?(m=g.subarray(0,x),this.leftOver=g.subarray(x,g.length)):(m=g.slice(0,x),this.leftOver=g.slice(x,g.length))),this.push({data:i.utf8decode(m),meta:u.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,s.inherits(h,l),h.prototype.processChunk=function(u){this.push({data:i.utf8encode(u.data),meta:u.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,i){var s=t("./support"),a=t("./base64"),o=t("./nodejsUtils"),l=t("./external");function c(p){return p}function d(p,x){for(var m=0;m>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=s(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var g,p,x,m=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4>>6:(u<65536?h[x++]=224|u>>>12:(h[x++]=240|u>>>18,h[x++]=128|u>>>12&63),h[x++]=128|u>>>6&63),h[x++]=128|63&u);return h},i.buf2binstring=function(f){return d(f,f.length)},i.binstring2buf=function(f){for(var h=new s.Buf8(f.length),u=0,g=h.length;u>10&1023,v[g++]=56320|1023&p)}return d(v,g)},i.utf8border=function(f,h){var u;for((h=h||f.length)>f.length&&(h=f.length),u=h-1;0<=u&&(192&f[u])==128;)u--;return u<0||u===0?h:u+l[f[u]]>h?u:h}},{"./common":41}],43:[function(t,n,i){n.exports=function(s,a,o,l){for(var c=65535&s|0,d=s>>>16&65535|0,f=0;o!==0;){for(o-=f=2e3>>1:a>>>1;o[l]=a}return o}();n.exports=function(a,o,l,c){var d=s,f=c+l;a^=-1;for(var h=c;h>>8^d[255&(a^o[h])];return-1^a}},{}],46:[function(t,n,i){var s,a=t("../utils/common"),o=t("./trees"),l=t("./adler32"),c=t("./crc32"),d=t("./messages"),f=0,h=4,u=0,g=-2,p=-1,x=4,m=2,v=8,w=9,A=286,T=30,_=19,k=2*A+1,C=15,S=3,O=258,P=O+S+1,E=42,R=113,b=1,N=2,V=3,q=4;function ne(y,G){return y.msg=d[G],G}function H(y){return(y<<1)-(4y.avail_out&&(W=y.avail_out),W!==0&&(a.arraySet(y.output,G.pending_buf,G.pending_out,W,y.next_out),y.next_out+=W,G.pending_out+=W,y.total_out+=W,y.avail_out-=W,G.pending-=W,G.pending===0&&(G.pending_out=0))}function L(y,G){o._tr_flush_block(y,0<=y.block_start?y.block_start:-1,y.strstart-y.block_start,G),y.block_start=y.strstart,I(y.strm)}function se(y,G){y.pending_buf[y.pending++]=G}function K(y,G){y.pending_buf[y.pending++]=G>>>8&255,y.pending_buf[y.pending++]=255&G}function ee(y,G){var W,B,z=y.max_chain_length,M=y.strstart,X=y.prev_length,J=y.nice_match,j=y.strstart>y.w_size-P?y.strstart-(y.w_size-P):0,te=y.window,ce=y.w_mask,re=y.prev,be=y.strstart+O,He=te[M+X-1],De=te[M+X];y.prev_length>=y.good_match&&(z>>=2),J>y.lookahead&&(J=y.lookahead);do if(te[(W=G)+X]===De&&te[W+X-1]===He&&te[W]===te[M]&&te[++W]===te[M+1]){M+=2,W++;do;while(te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&Mj&&--z!=0);return X<=y.lookahead?X:y.lookahead}function Ve(y){var G,W,B,z,M,X,J,j,te,ce,re=y.w_size;do{if(z=y.window_size-y.lookahead-y.strstart,y.strstart>=re+(re-P)){for(a.arraySet(y.window,y.window,re,re,0),y.match_start-=re,y.strstart-=re,y.block_start-=re,G=W=y.hash_size;B=y.head[--G],y.head[G]=re<=B?B-re:0,--W;);for(G=W=re;B=y.prev[--G],y.prev[G]=re<=B?B-re:0,--W;);z+=re}if(y.strm.avail_in===0)break;if(X=y.strm,J=y.window,j=y.strstart+y.lookahead,te=z,ce=void 0,ce=X.avail_in,te=S)for(M=y.strstart-y.insert,y.ins_h=y.window[M],y.ins_h=(y.ins_h<=S&&(y.ins_h=(y.ins_h<=S)if(B=o._tr_tally(y,y.strstart-y.match_start,y.match_length-S),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=S){for(y.match_length--;y.strstart++,y.ins_h=(y.ins_h<=S&&(y.ins_h=(y.ins_h<=S&&y.match_length<=y.prev_length){for(z=y.strstart+y.lookahead-S,B=o._tr_tally(y,y.strstart-1-y.prev_match,y.prev_length-S),y.lookahead-=y.prev_length-1,y.prev_length-=2;++y.strstart<=z&&(y.ins_h=(y.ins_h<y.pending_buf_size-5&&(W=y.pending_buf_size-5);;){if(y.lookahead<=1){if(Ve(y),y.lookahead===0&&G===f)return b;if(y.lookahead===0)break}y.strstart+=y.lookahead,y.lookahead=0;var B=y.block_start+W;if((y.strstart===0||y.strstart>=B)&&(y.lookahead=y.strstart-B,y.strstart=B,L(y,!1),y.strm.avail_out===0)||y.strstart-y.block_start>=y.w_size-P&&(L(y,!1),y.strm.avail_out===0))return b}return y.insert=0,G===h?(L(y,!0),y.strm.avail_out===0?V:q):(y.strstart>y.block_start&&(L(y,!1),y.strm.avail_out),b)}),new Oe(4,4,8,4,Ke),new Oe(4,5,16,8,Ke),new Oe(4,6,32,32,Ke),new Oe(4,4,16,16,de),new Oe(8,16,32,32,de),new Oe(8,16,128,128,de),new Oe(8,32,128,256,de),new Oe(32,128,258,1024,de),new Oe(32,258,258,4096,de)],i.deflateInit=function(y,G){return Ht(y,G,v,15,8,0)},i.deflateInit2=Ht,i.deflateReset=nr,i.deflateResetKeep=$e,i.deflateSetHeader=function(y,G){return y&&y.state?y.state.wrap!==2?g:(y.state.gzhead=G,u):g},i.deflate=function(y,G){var W,B,z,M;if(!y||!y.state||5>8&255),se(B,B.gzhead.time>>16&255),se(B,B.gzhead.time>>24&255),se(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),se(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(se(B,255&B.gzhead.extra.length),se(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(y.adler=c(y.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(se(B,0),se(B,0),se(B,0),se(B,0),se(B,0),se(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),se(B,3),B.status=R);else{var X=v+(B.w_bits-8<<4)<<8;X|=(2<=B.strategy||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6,B.strstart!==0&&(X|=32),X+=31-X%31,B.status=R,K(B,X),B.strstart!==0&&(K(B,y.adler>>>16),K(B,65535&y.adler)),y.adler=1}if(B.status===69)if(B.gzhead.extra){for(z=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending!==B.pending_buf_size));)se(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){z=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending===B.pending_buf_size)){M=1;break}M=B.gzindexz&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),M===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){z=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending===B.pending_buf_size)){M=1;break}M=B.gzindexz&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),M===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&I(y),B.pending+2<=B.pending_buf_size&&(se(B,255&y.adler),se(B,y.adler>>8&255),y.adler=0,B.status=R)):B.status=R),B.pending!==0){if(I(y),y.avail_out===0)return B.last_flush=-1,u}else if(y.avail_in===0&&H(G)<=H(W)&&G!==h)return ne(y,-5);if(B.status===666&&y.avail_in!==0)return ne(y,-5);if(y.avail_in!==0||B.lookahead!==0||G!==f&&B.status!==666){var J=B.strategy===2?function(j,te){for(var ce;;){if(j.lookahead===0&&(Ve(j),j.lookahead===0)){if(te===f)return b;break}if(j.match_length=0,ce=o._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,ce&&(L(j,!1),j.strm.avail_out===0))return b}return j.insert=0,te===h?(L(j,!0),j.strm.avail_out===0?V:q):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?b:N}(B,G):B.strategy===3?function(j,te){for(var ce,re,be,He,De=j.window;;){if(j.lookahead<=O){if(Ve(j),j.lookahead<=O&&te===f)return b;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=S&&0j.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=S?(ce=o._tr_tally(j,1,j.match_length-S),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(ce=o._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),ce&&(L(j,!1),j.strm.avail_out===0))return b}return j.insert=0,te===h?(L(j,!0),j.strm.avail_out===0?V:q):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?b:N}(B,G):s[B.level].func(B,G);if(J!==V&&J!==q||(B.status=666),J===b||J===V)return y.avail_out===0&&(B.last_flush=-1),u;if(J===N&&(G===1?o._tr_align(B):G!==5&&(o._tr_stored_block(B,0,0,!1),G===3&&(ie(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),I(y),y.avail_out===0))return B.last_flush=-1,u}return G!==h?u:B.wrap<=0?1:(B.wrap===2?(se(B,255&y.adler),se(B,y.adler>>8&255),se(B,y.adler>>16&255),se(B,y.adler>>24&255),se(B,255&y.total_in),se(B,y.total_in>>8&255),se(B,y.total_in>>16&255),se(B,y.total_in>>24&255)):(K(B,y.adler>>>16),K(B,65535&y.adler)),I(y),0=W.w_size&&(M===0&&(ie(W.head),W.strstart=0,W.block_start=0,W.insert=0),te=new a.Buf8(W.w_size),a.arraySet(te,G,ce-W.w_size,W.w_size,0),G=te,ce=W.w_size),X=y.avail_in,J=y.next_in,j=y.input,y.avail_in=ce,y.next_in=0,y.input=G,Ve(W);W.lookahead>=S;){for(B=W.strstart,z=W.lookahead-(S-1);W.ins_h=(W.ins_h<>>=S=C>>>24,w-=S,(S=C>>>16&255)===0)N[d++]=65535&C;else{if(!(16&S)){if(!(64&S)){C=A[(65535&C)+(v&(1<>>=S,w-=S),w<15&&(v+=b[l++]<>>=S=C>>>24,w-=S,!(16&(S=C>>>16&255))){if(!(64&S)){C=T[(65535&C)+(v&(1<>>=S,w-=S,(S=d-f)>3,v&=(1<<(w-=O<<3))-1,s.next_in=l,s.next_out=d,s.avail_in=l>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(E){var R;return E&&E.state?(R=E.state,E.total_in=E.total_out=R.total=0,E.msg="",R.wrap&&(E.adler=1&R.wrap),R.mode=g,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new s.Buf32(p),R.distcode=R.distdyn=new s.Buf32(x),R.sane=1,R.back=-1,h):u}function A(E){var R;return E&&E.state?((R=E.state).wsize=0,R.whave=0,R.wnext=0,w(E)):u}function T(E,R){var b,N;return E&&E.state?(N=E.state,R<0?(b=0,R=-R):(b=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15=q.wsize?(s.arraySet(q.window,R,b-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(N<(V=q.wsize-q.wnext)&&(V=N),s.arraySet(q.window,R,b-N,V,q.wnext),(N-=V)?(s.arraySet(q.window,R,b-N,N,0),q.wnext=N,q.whave=q.wsize):(q.wnext+=V,q.wnext===q.wsize&&(q.wnext=0),q.whave>>8&255,b.check=o(b.check,M,2,0),L=I=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&I)<<8)+(I>>8))%31){E.msg="incorrect header check",b.mode=30;break}if((15&I)!=8){E.msg="unknown compression method",b.mode=30;break}if(L-=4,y=8+(15&(I>>>=4)),b.wbits===0)b.wbits=y;else if(y>b.wbits){E.msg="invalid window size",b.mode=30;break}b.dmax=1<>8&1),512&b.flags&&(M[0]=255&I,M[1]=I>>>8&255,b.check=o(b.check,M,2,0)),L=I=0,b.mode=3;case 3:for(;L<32;){if(H===0)break e;H--,I+=N[q++]<>>8&255,M[2]=I>>>16&255,M[3]=I>>>24&255,b.check=o(b.check,M,4,0)),L=I=0,b.mode=4;case 4:for(;L<16;){if(H===0)break e;H--,I+=N[q++]<>8),512&b.flags&&(M[0]=255&I,M[1]=I>>>8&255,b.check=o(b.check,M,2,0)),L=I=0,b.mode=5;case 5:if(1024&b.flags){for(;L<16;){if(H===0)break e;H--,I+=N[q++]<>>8&255,b.check=o(b.check,M,2,0)),L=I=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(H<(ee=b.length)&&(ee=H),ee&&(b.head&&(y=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),s.arraySet(b.head.extra,N,q,ee,y)),512&b.flags&&(b.check=o(b.check,N,ee,q)),H-=ee,q+=ee,b.length-=ee),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(H===0)break e;for(ee=0;y=N[q+ee++],b.head&&y&&b.length<65536&&(b.head.name+=String.fromCharCode(y)),y&&ee>9&1,b.head.done=!0),E.adler=b.check=0,b.mode=12;break;case 10:for(;L<32;){if(H===0)break e;H--,I+=N[q++]<>>=7&L,L-=7&L,b.mode=27;break}for(;L<3;){if(H===0)break e;H--,I+=N[q++]<>>=1)){case 0:b.mode=14;break;case 1:if(O(b),b.mode=20,R!==6)break;I>>>=2,L-=2;break e;case 2:b.mode=17;break;case 3:E.msg="invalid block type",b.mode=30}I>>>=2,L-=2;break;case 14:for(I>>>=7&L,L-=7&L;L<32;){if(H===0)break e;H--,I+=N[q++]<>>16^65535)){E.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&I,L=I=0,b.mode=15,R===6)break e;case 15:b.mode=16;case 16:if(ee=b.length){if(H>>=5,L-=5,b.ndist=1+(31&I),I>>>=5,L-=5,b.ncode=4+(15&I),I>>>=4,L-=4,286>>=3,L-=3}for(;b.have<19;)b.lens[X[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,W={bits:b.lenbits},G=c(0,b.lens,0,19,b.lencode,0,b.work,W),b.lenbits=W.bits,G){E.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=de,L-=de,b.lens[b.have++]=Je;else{if(Je===16){for(B=de+2;L>>=de,L-=de,b.have===0){E.msg="invalid bit length repeat",b.mode=30;break}y=b.lens[b.have-1],ee=3+(3&I),I>>>=2,L-=2}else if(Je===17){for(B=de+3;L>>=de)),I>>>=3,L-=3}else{for(B=de+7;L>>=de)),I>>>=7,L-=7}if(b.have+ee>b.nlen+b.ndist){E.msg="invalid bit length repeat",b.mode=30;break}for(;ee--;)b.lens[b.have++]=y}}if(b.mode===30)break;if(b.lens[256]===0){E.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,W={bits:b.lenbits},G=c(d,b.lens,0,b.nlen,b.lencode,0,b.work,W),b.lenbits=W.bits,G){E.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,W={bits:b.distbits},G=c(f,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,W),b.distbits=W.bits,G){E.msg="invalid distances set",b.mode=30;break}if(b.mode=20,R===6)break e;case 20:b.mode=21;case 21:if(6<=H&&258<=ie){E.next_out=ne,E.avail_out=ie,E.next_in=q,E.avail_in=H,b.hold=I,b.bits=L,l(E,K),ne=E.next_out,V=E.output,ie=E.avail_out,q=E.next_in,N=E.input,H=E.avail_in,I=b.hold,L=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;Oe=(z=b.lencode[I&(1<>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>$e)])>>>16&255,Je=65535&z,!($e+(de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=$e,L-=$e,b.back+=$e}if(I>>>=de,L-=de,b.back+=de,b.length=Je,Oe===0){b.mode=26;break}if(32&Oe){b.back=-1,b.mode=12;break}if(64&Oe){E.msg="invalid literal/length code",b.mode=30;break}b.extra=15&Oe,b.mode=22;case 22:if(b.extra){for(B=b.extra;L>>=b.extra,L-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;Oe=(z=b.distcode[I&(1<>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>$e)])>>>16&255,Je=65535&z,!($e+(de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=$e,L-=$e,b.back+=$e}if(I>>>=de,L-=de,b.back+=de,64&Oe){E.msg="invalid distance code",b.mode=30;break}b.offset=Je,b.extra=15&Oe,b.mode=24;case 24:if(b.extra){for(B=b.extra;L>>=b.extra,L-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){E.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if(ie===0)break e;if(ee=K-ie,b.offset>ee){if((ee=b.offset-ee)>b.whave&&b.sane){E.msg="invalid distance too far back",b.mode=30;break}Ve=ee>b.wnext?(ee-=b.wnext,b.wsize-ee):b.wnext-ee,ee>b.length&&(ee=b.length),Ke=b.window}else Ke=V,Ve=ne-b.offset,ee=b.length;for(iek?(S=Ve[Ke+x[R]],L[se+x[R]]):(S=96,0),v=1<>ne)+(w-=v)]=C<<24|S<<16|O|0,w!==0;);for(v=1<>=1;if(v!==0?(I&=v-1,I+=v):I=0,R++,--K[E]==0){if(E===N)break;E=f[h+x[R]]}if(V>>7)]}function se(z,M){z.pending_buf[z.pending++]=255&M,z.pending_buf[z.pending++]=M>>>8&255}function K(z,M,X){z.bi_valid>m-X?(z.bi_buf|=M<>m-z.bi_valid,z.bi_valid+=X-m):(z.bi_buf|=M<>>=1,X<<=1,0<--M;);return X>>>1}function Ke(z,M,X){var J,j,te=new Array(x+1),ce=0;for(J=1;J<=x;J++)te[J]=ce=ce+X[J-1]<<1;for(j=0;j<=M;j++){var re=z[2*j+1];re!==0&&(z[2*j]=Ve(te[re]++,re))}}function de(z){var M;for(M=0;M>1;1<=X;X--)$e(z,te,X);for(j=be;X=z.heap[1],z.heap[1]=z.heap[z.heap_len--],$e(z,te,1),J=z.heap[1],z.heap[--z.heap_max]=X,z.heap[--z.heap_max]=J,te[2*j]=te[2*X]+te[2*J],z.depth[j]=(z.depth[X]>=z.depth[J]?z.depth[X]:z.depth[J])+1,te[2*X+1]=te[2*J+1]=j,z.heap[1]=j++,$e(z,te,1),2<=z.heap_len;);z.heap[--z.heap_max]=z.heap[1],function(De,Bt){var Ei,ir,Ti,et,Gs,bo,mr=Bt.dyn_tree,al=Bt.max_code,Uh=Bt.stat_desc.static_tree,qh=Bt.stat_desc.has_stree,jh=Bt.stat_desc.extra_bits,ol=Bt.stat_desc.extra_base,_i=Bt.stat_desc.max_length,Zs=0;for(et=0;et<=x;et++)De.bl_count[et]=0;for(mr[2*De.heap[De.heap_max]+1]=0,Ei=De.heap_max+1;Ei>=7;j>>=1)if(1&He&&re.dyn_ltree[2*be]!==0)return a;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return o;for(be=32;be>>3,(te=z.static_len+3+7>>>3)<=j&&(j=te)):j=te=X+5,X+4<=j&&M!==-1?B(z,M,X,J):z.strategy===4||te===j?(K(z,2+(J?1:0),3),nr(z,P,E)):(K(z,4+(J?1:0),3),function(re,be,He,De){var Bt;for(K(re,be-257,5),K(re,He-1,5),K(re,De-4,4),Bt=0;Bt>>8&255,z.pending_buf[z.d_buf+2*z.last_lit+1]=255&M,z.pending_buf[z.l_buf+z.last_lit]=255&X,z.last_lit++,M===0?z.dyn_ltree[2*X]++:(z.matches++,M--,z.dyn_ltree[2*(b[X]+f+1)]++,z.dyn_dtree[2*L(M)]++),z.last_lit===z.lit_bufsize-1},i._tr_align=function(z){K(z,2,3),ee(z,w,P),function(M){M.bi_valid===16?(se(M,M.bi_buf),M.bi_buf=0,M.bi_valid=0):8<=M.bi_valid&&(M.pending_buf[M.pending++]=255&M.bi_buf,M.bi_buf>>=8,M.bi_valid-=8)}(z)}},{"../utils/common":41}],53:[function(t,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,n,i){(function(s){(function(a,o){if(!a.setImmediate){var l,c,d,f,h=1,u={},g=!1,p=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,l={}.toString.call(a.process)==="[object process]"?function(A){process.nextTick(function(){v(A)})}:function(){if(a.postMessage&&!a.importScripts){var A=!0,T=a.onmessage;return a.onmessage=function(){A=!1},a.postMessage("","*"),a.onmessage=T,A}}()?(f="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",w,!1):a.attachEvent("onmessage",w),function(A){a.postMessage(f+A,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){d.port2.postMessage(A)}):p&&"onreadystatechange"in p.createElement("script")?(c=p.documentElement,function(A){var T=p.createElement("script");T.onreadystatechange=function(){v(A),T.onreadystatechange=null,c.removeChild(T),T=null},c.appendChild(T)}):function(A){setTimeout(v,0,A)},x.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var T=new Array(arguments.length-1),_=0;_"u"?s===void 0?this:s:self)}).call(this,typeof _t<"u"?_t:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Mh);var Q1=Mh.exports;const $1=vc(Q1);function eb(r,e,t,n){const i={opacity:.4,dashArray:[1,5]};let s,a,o,l,c,d;const[f,h]=t,u=[];switch(n){case 32:r&&(i.dashArray=[1,5],s=e?f*.75:f*.25,c=h*.5,d=e?h*.75:h*.25,u.push({...Td(s,c,d),...i}));case 16:r&&(i.dashArray=[3,5],l=e?h*.75:h*.25,a=f*.5,o=e?0:h,u.push({..._d(l,a,o),...i}));case 8:r&&(i.dashArray=[5,5],s=f*.5,c=h*.5,d=e?0:h,u.push({...Td(s,c,d),...i}));case 4:r||(i.dashArray=[10,5],u.push({..._d(h*.5,0,f),...i}));break}return u}function tb(r,e){let t=[];const[n,i]=r;switch(e){case 32:t=[...t,...Mo(i*.75,0,n),...Mo(i*.25,0,n),...Lo(n*.5,i*.75),...Lo(n*.5,i*.25)];case 16:t=[...t,...ib(n*.5,0,i),...Lo(n*.5,i*.5)];case 8:t=[...t,...Mo(i*.5,0,n)]}return t}function rb(r,e,t,n,i,s){if(console.log("try to draw"),e.isLeftPage)return[];if(console.log(" on right"),t=="only_out"&&!r.isSigStart)return[];if(console.log(" a"),t=="only_in"&&!r.isSigMiddle)return[];if(console.log(" b"),t=="in_n_out"&&!(r.isSigStart||r.isSigMiddle))return[];console.log(" c");var a=Math.abs(e.rotation)===90;let o=0,l=0;a?(o=Math.abs(e.spineMarkTop[0]-e.spineMarkBottom[0]),l=e.spineMarkTop[1]):(o=Math.abs(e.spineMarkTop[1]-e.spineMarkBottom[1]),l=e.spineMarkTop[0]);const d=(o-2*i)/(n+1),f=[];for(let p=1;p<=n;p++){const x=s/2;f.push({pointHeight:i+d*p+x},{pointHeight:i+d*p-x})}const h=[{pointHeight:i},{pointHeight:o-i},...f],u={size:1,color:Zc(0)};return h.map(p=>(p={...p,...u},a?(p.y=l,p.x=p.pointHeight+e.spineMarkBottom[0]):(p.y=p.pointHeight+e.spineMarkBottom[1],p.x=l),p))}function Ja(r,e,t){let n,i,s,a;r?([n,i]=e.spineMarkTop,[s,a]=e.spineMarkTop):([n,i]=e.spineMarkBottom,[s,a]=e.spineMarkBottom),e.rotation==0?(n-=t/2,s+=t/2):(i-=t/2,a+=t/2);const o={start:{x:n,y:i},end:{x:s,y:a},thickness:e.rotation==0?.5:.25,color:Me(0,0,0),opacity:1};return console.log(" --> draw this: ",o),o}function nb(r,e,t,n,i){const s=Ja(!0,e,n),a=Ja(!1,e,n);let o=s.start.x,l=s.start.y;const c=e.rotation==0?s.start.y-a.start.y:s.start.x-a.start.x;let d=Math.min(i,c/t);const f=d*r.signatureNum;if(e.rotation==0)d=d*-1,l-=f;else{const h=d;d=n,n=h*-1,o-=f}return{x:o,y:l,width:n,height:d,borderWidth:0,color:Me(0,0,0),opacity:.5}}function Td(r,e,t){return{start:{x:r,y:e},end:{x:r,y:t}}}function _d(r,e,t){return{start:{x:e,y:r},end:{x:t,y:r}}}function ib(r,e,t){return[{start:{x:r,y:e},end:{x:r,y:e+Ur},opacity:.4},{start:{x:r,y:t-Ur},end:{x:r,y:t},opacity:.4}]}function Mo(r,e,t){return[{start:{x:e,y:r},end:{x:e+Ur,y:r},opacity:.4},{start:{x:t-Ur,y:r},end:{x:t,y:r},opacity:.4}]}function Lo(r,e){return[{start:{x:r-Ur,y:e},end:{x:r+Ur,y:e},opacity:.4},{start:{x:r,y:e-Ur},end:{x:r,y:e+Ur},opacity:.4}]}function Od(r){const e=Lh(r),{layoutCell:t,xForeEdgeShiftFunc:n,xBindingShiftFunc:i,yTopShiftFunc:s,yBottomShiftFunc:a,pdfScale:o}=e,[l,c]=t,d=[];return e.layout.rotations.forEach((f,h)=>{f.forEach((u,g)=>{const p=n(),x=i(),m=s(),v=a();let w=g%2==0,A=g*l+(w?p:x),T=h*c+v,_=[g*l,(h+1)*c-m],k=[(g+1)*l,h*c+v];u==-180?(w=g%2==1,T=(h+1)*c-v,A=(g+1)*l-(w?p:x),_=[(g+1)*l,(h+1)*c],k=[(g+1)*l,h*c]):u==90?(w=h%2==0,A=(1+g)*c-v,T=h*l+(w?x:p),_=[(1+g)*c,h*l],k=[g*c,h*l]):u==-90&&(w=h%2==1,A=g*c+v,T=(1+h)*l-(w?p:x),_=[(g+1)*c-m,(w?h:h+1)*l],k=[g*c+v,(w?h:h+1)*l]),console.log(`>> (${h},${g})[${u}] : [${A},${T}] :: [xForeEdgeShift: ${p}][xBindingShift: ${x}]`),d.push({rotation:u,sx:o[0],sy:o[1],x:A,y:T,spineMarkTop:_,spineMarkBottom:k,isLeftPage:w})})}),console.log("And in the end of it all, (calculatelayout) we get: ",d),d}function Lh(r){const{cropbox:e,padding_pt:t,papersize:n,page_layout:i,page_positioning:s,page_scaling:a}=r,{width:o,height:l}=e,c=o+Math.max(t.binding,0)+Math.max(t.fore_edge,0),d=l+Math.max(t.top,0)+Math.max(t.bottom,0);let f=n[0]/i.cols,h=n[1]/i.rows;if(i.landscape){const k=f;f=h,h=k}let u=1,g=1;if(a=="lockratio"){const k=Math.min(f/c,h/d);u=k,g=k}else a=="stretch"&&(u=f/c,g=h/d);const p={fore_edge:t.fore_edge*u,binding:t.binding*u,bottom:t.bottom*g,top:t.top*g},x=s;return{layout:i,rawPdfSize:[o,l],pdfScale:[u,g],pdfSize:[c,d],layoutCell:[f,h],padding:p,xForeEdgeShiftFunc:function(){const k=f-c*u;return p.fore_edge+(x=="centered"?k/2:k)},xBindingShiftFunc:function(){const k=f-c*u;return p.binding+(x=="centered"?k/2:0)},xPdfWidthFunc:function(){return c*u-p.fore_edge-p.binding},yPdfHeightFunc:function(){return d*g-p.top-p.bottom},yTopShiftFunc:function(){const k=h-d*g;return p.top+k/2},yBottomShiftFunc:function(){const k=h-d*g;return p.bottom+k/2},positioning:x}}async function sb(r,e){const t=await Ze.create(),n=Math.max(r.getPageCount(),e.getPageCount()),i=[],s=t.copyPages(r,r.getPageIndices()),a=t.copyPages(e,e.getPageIndices());i.push(s,a);const[o,l]=await Promise.all([s,a]);for(let c=0;ctypeof s=="number");let i=await t.embedPdf(r,e);return n&&(i=i.reduce((s,a,o)=>(s[e[o]]=a,s),[])),[t,i]}class ab{constructor(e){this.inputpdf=null,this.managedDoc=null,this.signatureconfig=[],this.spineoffset=!1,this.input=null,this.currentdoc=null,this.pagecount=null,this.cropbox=null,this.orderedpages=[],this.rearrangedpages=[],this.filelist=[],this.zip=null,this.update(e)}update(e){this.duplex=e.printerType==="duplex",this.duplexrotate=e.rotatePage,this.paper_rotation_90=e.paperRotation90,this.papersize=gi[e.paperSize],e.paperRotation90&&(this.papersize=[this.papersize[1],this.papersize[0]]),this.source_rotation=e.sourceRotation,this.print_file=e.printFile,this.page_scaling=e.pageScaling,this.page_positioning=e.pagePositioning,this.flyleafs=e.flyleafs,this.cropmarks=e.cropMarks,this.sewingMarks={sewingMarkLocation:e.sewingMarkLocation,isEnabled:e.sewingMarksEnabled,amount:e.sewingMarksAmount,marginPt:e.sewingMarksMarginPt,tapeWidthPt:e.sewingMarksTapeWidthPt},this.pdfEdgeMarks=e.pdfEdgeMarks,this.sigOrderMarks=e.sigOrderMarks,this.cutmarks=e.cutMarks,this.format=e.sigFormat,e.sigFormat==="standardsig"&&(this.sigsize=e.sigLength),this.customsig=this.format==="customsig",this.customsig&&(this.signatureconfig=e.customSigLength);const t=vx[e.pageLayout];this.page_layout=t,this.per_sheet=t.per_sheet,this.pack_pages=e.wackySpacing==="wacky_pack",this.fore_edge_padding_pt=e.foreEdgePaddingPt,this.padding_pt={top:e.topEdgePaddingPt,bottom:e.bottomEdgePaddingPt,binding:e.bindingEdgePaddingPt,fore_edge:e.mainForeEdgePaddingPt}}async openpdf(e){this.inputpdf=e.name,this.input=await e.arrayBuffer(),this.currentdoc=await Ze.load(this.input),this.fixBlankPages()}fixBlankPages(){const e=this.currentdoc.getPages();this.cropbox=null,e.forEach(t=>{t.node.Contents()?this.cropbox||(this.cropbox=t.getCropBox()):t.drawLine({start:{x:25,y:26},end:{x:125,y:126},opacity:0})})}createpagelist(){this.pagecount=this.currentdoc.getPageCount(),this.orderedpages=Array.from({length:this.pagecount},(n,i)=>i);for(let n=0;n0){t+=1;const n=t*this.per_sheet-e;for(let i=0;i{const a=n.map(async(o,l)=>{console.log(o),t[l]={name:`${this.filename}_signature${l}`},[t[l].front,t[l].back]=await this.createSignatures({pageIndexDetails:o})});await Promise.all(a)})(),(this.duplex||e)&&(await(async()=>{const o=t.map(async(l,c)=>{t[c].duplex=await sb(l.front,l.back),t[c].back=t[c].front=null});await Promise.all(o)})(),i=t[0].duplex),i}async saveClassicFiles(e){this.print_file!="aggregated"&&await(async()=>{const n=e.map(async i=>{var s,a,o;await((s=i.front)==null?void 0:s.save().then(l=>{this.zip.file(`signatures/${i.name}_side1.pdf`,l)})),await((a=i.back)==null?void 0:a.save().then(l=>{this.zip.file(`signatures/${i.name}_side2.pdf`,l)})),await((o=i.duplex)==null?void 0:o.save().then(l=>{this.zip.file(`signatures/${i.name}_duplex.pdf`,l)}))});await Promise.all(n)})(),this.print_file!="signatures"&&await(async()=>{const n={front:this.duplex?null:await Ze.create(),back:this.duplex?null:await Ze.create(),duplex:this.duplex?await Ze.create():null};for(const i of e)n.front&&(await n.front.copyPages(i.front,i.front.getPageIndices())).forEach(a=>n.front.addPage(a)),n.back&&(await n.back.copyPages(i.back,i.back.getPageIndices())).forEach(a=>n.back.addPage(a)),n.duplex&&(await n.duplex.copyPages(i.duplex,i.duplex.getPageIndices())).forEach(a=>n.duplex.addPage(a));n.front&&await n.front.save().then(i=>{this.zip.file(`${this.filename}_typeset_side1.pdf`,i)}),n.back&&await n.back.save().then(i=>{this.zip.file(`${this.filename}_typeset_side2.pdf`,i)}),n.duplex&&await n.duplex.save().then(i=>{this.zip.file(`${this.filename}_typeset.pdf`,i)})})()}async displayPreview(e){console.log("Attempting to generate preview for ",e);const t=document.getElementById("pdf"),n=await e.saveAsBase64({dataUri:!0}),i=e.catalog.getOrCreateViewerPreferences();i.setHideToolbar(!1),i.setHideMenubar(!1),i.setHideWindowUI(!1),i.setFitWindow(!0),i.setCenterWindow(!0),i.setDisplayDocTitle(!0),t.src=n,t.style.width="450px";const s=this.papersize[1]/this.papersize[0]*500;t.style.height=`${s}px`,t.style.display=""}async writepages(e){const t=e.pageList,n=e.back,i=e.maxSigCount,s=[],a=[];t.forEach((g,p)=>{g.info!="b"?s.push(g.info):a.push(p)});const[o,l]=await Rd(this.managedDoc,s);a.forEach(g=>l.splice(g,0,"b"));let c=0;const d=this.per_sheet/2;let f=d;const h=Od(this);let u=n;for(;f<=t.length;){const g=t.slice(c,f);u=this.draw_block_onto_page({outPDF:o,embeddedPages:l,block_start:c,block_end:f,sigDetails:g,papersize:this.papersize,positions:h,cropmarks:this.cropmarks,sigOrderMarks:this.sigOrderMarks,pdfEdgeMarks:this.pdfEdgeMarks,cutmarks:this.cutmarks,alt:e.alt,side2flag:u,maxSigCount:i,sewingMarks:this.sewingMarks}),c+=d,f+=d}return o}draw_block_onto_page(e){const t=e.sigDetails,n=e.block_start,i=e.block_end,s=e.papersize,a=e.outPDF,o=e.positions,l=e.cropmarks,c=e.sigOrderMarks,d=e.pdfEdgeMarks,f=e.cutmarks,h=e.alt,u=e.maxSigCount;let g=e.side2flag;const p=e.sewingMarks,x=e.embeddedPages.slice(n,i),m=a.addPage(s),v=f?tb(s,this.per_sheet):[],w=l?eb(g,this.duplexrotate,s,this.per_sheet):[],A=[...v,...w],T=[],_=[];return x.forEach((k,C)=>{if(!(k=="b"||k===void 0))if(k instanceof ps){const{y:O,x:P,sx:E,sy:R,rotation:b}=o[C];m.drawPage(k,{y:O,x:P,xScale:E,yScale:R,rotate:pe(b)})}else console.error("Unexpected type for page: ",k);t[C].isSigStart?(d&&A.push(Ja(!0,o[C],5)),c&&T.push(nb(t[C],o[C],u,5,20))):t[C].isSigEnd&&d&&A.push(Ja(!1,o[C],5));const S=p.isEnabled?rb(t[C],o[C],p.sewingMarkLocation,p.amount,p.marginPt,p.tapeWidthPt):[];_.push(...S)}),A.forEach(k=>{m.drawLine(k)}),T.forEach(k=>{m.drawRectangle(k)}),_.forEach(k=>{m.drawCircle(k)}),h&&(g=!g),g}async createSignature(e){const t=e.pageIndexDetails,n=[this.writepages({pageList:t[0],back:!1,alt:!1,maxSigCount:e.maxSigCount}),this.writepages({pageList:t[1],back:!0,alt:!1,maxSigCount:e.maxSigCount})],[i,s]=await Promise.all(n);return[i,s]}bundleSettings(){const e=Dh(),t=`Imposer settings: ${JSON.stringify(e,null,2)} +\0`,K+=s(I,2),K+=_.magic,K+=s(w,2),K+=s(A,2),K+=s(ie.crc32,4),K+=s(ie.compressedSize,4),K+=s(ie.uncompressedSize,4),K+=s(C.length,2),K+=s(N.length,2),{fileRecord:f.LOCAL_FILE_HEADER+K+C+N,dirRecord:f.CENTRAL_FILE_HEADER+s(se,2)+K+s(P.length,2)+"\0\0\0\0"+s(L,4)+s(x,4)+C+N+P}}var o=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),d=t("../crc32"),f=t("../signature");function h(u,g,p,x){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=p,this.encodeFileName=x,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,l),h.prototype.push=function(u){var g=u.meta.percent||0,p=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,l.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:p?(g+100*(p-x-1))/p:100}}))},h.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var g=this.streamFiles&&!u.file.dir;if(g){var p=a(u,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(u){this.accumulate=!1;var g=this.streamFiles&&!u.file.dir,p=a(u,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),g)this.push({data:function(x){return f.DATA_DESCRIPTOR+s(x.crc32,4)+s(x.compressedSize,4)+s(x.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var u=this.bytesWritten,g=0;g=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=o,c},readString:function(o){return s.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},n.exports=a},{"../utils":32}],19:[function(t,n,i){var s=t("./Uint8ArrayReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,i){var s=t("./DataReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,n,i){var s=t("./ArrayReader");function a(o){s.call(this,o)}t("../utils").inherits(a,s),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,i){var s=t("../utils"),a=t("../support"),o=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),d=t("./Uint8ArrayReader");n.exports=function(f){var h=s.getTypeOf(f);return s.checkSupport(h),h!=="string"||a.uint8array?h==="nodebuffer"?new c(f):a.uint8array?new d(s.transformTo("uint8array",f)):new o(s.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,i){var s=t("./GenericWorker"),a=t("../utils");function o(l){s.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(o,s),o.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,i){var s=t("./GenericWorker"),a=t("../crc32");function o(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,s),o.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,i){var s=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}s.inherits(o,a),o.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,i){var s=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=s.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}s.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,i){function s(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var l=0;l "+a:a}},n.exports=s},{}],29:[function(t,n,i){var s=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),l=t("../base64"),c=t("../support"),d=t("../external"),f=null;if(c.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(g,p){return new d.Promise(function(x,m){var v=[],w=g._internalType,A=g._outputType,T=g._mimeType;g.on("data",function(_,k){v.push(_),p&&p(k)}).on("error",function(_){v=[],m(_)}).on("end",function(){try{var _=function(k,C,S){switch(k){case"blob":return s.newBlob(s.transformTo("arraybuffer",C),S);case"base64":return l.encode(C);default:return s.transformTo(k,C)}}(A,function(k,C){var S,O=0,P=null,E=0;for(S=0;S"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(s),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,i){for(var s=t("./utils"),a=t("./support"),o=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function h(){l.call(this,"utf-8 encode")}i.utf8encode=function(u){return a.nodebuffer?o.newBufferFrom(u,"utf-8"):function(g){var p,x,m,v,w,A=g.length,T=0;for(v=0;v>>6:(x<65536?p[w++]=224|x>>>12:(p[w++]=240|x>>>18,p[w++]=128|x>>>12&63),p[w++]=128|x>>>6&63),p[w++]=128|63&x);return p}(u)},i.utf8decode=function(u){return a.nodebuffer?s.transformTo("nodebuffer",u).toString("utf-8"):function(g){var p,x,m,v,w=g.length,A=new Array(2*w);for(p=x=0;p>10&1023,A[x++]=56320|1023&m)}return A.length!==x&&(A.subarray?A=A.subarray(0,x):A.length=x),s.applyFromCharCode(A)}(u=s.transformTo(a.uint8array?"uint8array":"array",u))},s.inherits(f,l),f.prototype.processChunk=function(u){var g=s.transformTo(a.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var p=g;(g=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),g.set(p,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var x=function(v,w){var A;for((w=w||v.length)>v.length&&(w=v.length),A=w-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?w:A+c[v[A]]>w?A:w}(g),m=g;x!==g.length&&(a.uint8array?(m=g.subarray(0,x),this.leftOver=g.subarray(x,g.length)):(m=g.slice(0,x),this.leftOver=g.slice(x,g.length))),this.push({data:i.utf8decode(m),meta:u.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,s.inherits(h,l),h.prototype.processChunk=function(u){this.push({data:i.utf8encode(u.data),meta:u.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,i){var s=t("./support"),a=t("./base64"),o=t("./nodejsUtils"),l=t("./external");function c(p){return p}function d(p,x){for(var m=0;m>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=s(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var g,p,x,m=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4>>6:(u<65536?h[x++]=224|u>>>12:(h[x++]=240|u>>>18,h[x++]=128|u>>>12&63),h[x++]=128|u>>>6&63),h[x++]=128|63&u);return h},i.buf2binstring=function(f){return d(f,f.length)},i.binstring2buf=function(f){for(var h=new s.Buf8(f.length),u=0,g=h.length;u>10&1023,v[g++]=56320|1023&p)}return d(v,g)},i.utf8border=function(f,h){var u;for((h=h||f.length)>f.length&&(h=f.length),u=h-1;0<=u&&(192&f[u])==128;)u--;return u<0||u===0?h:u+l[f[u]]>h?u:h}},{"./common":41}],43:[function(t,n,i){n.exports=function(s,a,o,l){for(var c=65535&s|0,d=s>>>16&65535|0,f=0;o!==0;){for(o-=f=2e3>>1:a>>>1;o[l]=a}return o}();n.exports=function(a,o,l,c){var d=s,f=c+l;a^=-1;for(var h=c;h>>8^d[255&(a^o[h])];return-1^a}},{}],46:[function(t,n,i){var s,a=t("../utils/common"),o=t("./trees"),l=t("./adler32"),c=t("./crc32"),d=t("./messages"),f=0,h=4,u=0,g=-2,p=-1,x=4,m=2,v=8,w=9,A=286,T=30,_=19,k=2*A+1,C=15,S=3,O=258,P=O+S+1,E=42,R=113,b=1,N=2,V=3,q=4;function ne(y,G){return y.msg=d[G],G}function H(y){return(y<<1)-(4y.avail_out&&(W=y.avail_out),W!==0&&(a.arraySet(y.output,G.pending_buf,G.pending_out,W,y.next_out),y.next_out+=W,G.pending_out+=W,y.total_out+=W,y.avail_out-=W,G.pending-=W,G.pending===0&&(G.pending_out=0))}function L(y,G){o._tr_flush_block(y,0<=y.block_start?y.block_start:-1,y.strstart-y.block_start,G),y.block_start=y.strstart,I(y.strm)}function se(y,G){y.pending_buf[y.pending++]=G}function K(y,G){y.pending_buf[y.pending++]=G>>>8&255,y.pending_buf[y.pending++]=255&G}function ee(y,G){var W,B,z=y.max_chain_length,M=y.strstart,X=y.prev_length,J=y.nice_match,j=y.strstart>y.w_size-P?y.strstart-(y.w_size-P):0,te=y.window,ce=y.w_mask,re=y.prev,be=y.strstart+O,He=te[M+X-1],De=te[M+X];y.prev_length>=y.good_match&&(z>>=2),J>y.lookahead&&(J=y.lookahead);do if(te[(W=G)+X]===De&&te[W+X-1]===He&&te[W]===te[M]&&te[++W]===te[M+1]){M+=2,W++;do;while(te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&te[++M]===te[++W]&&Mj&&--z!=0);return X<=y.lookahead?X:y.lookahead}function Ve(y){var G,W,B,z,M,X,J,j,te,ce,re=y.w_size;do{if(z=y.window_size-y.lookahead-y.strstart,y.strstart>=re+(re-P)){for(a.arraySet(y.window,y.window,re,re,0),y.match_start-=re,y.strstart-=re,y.block_start-=re,G=W=y.hash_size;B=y.head[--G],y.head[G]=re<=B?B-re:0,--W;);for(G=W=re;B=y.prev[--G],y.prev[G]=re<=B?B-re:0,--W;);z+=re}if(y.strm.avail_in===0)break;if(X=y.strm,J=y.window,j=y.strstart+y.lookahead,te=z,ce=void 0,ce=X.avail_in,te=S)for(M=y.strstart-y.insert,y.ins_h=y.window[M],y.ins_h=(y.ins_h<=S&&(y.ins_h=(y.ins_h<=S)if(B=o._tr_tally(y,y.strstart-y.match_start,y.match_length-S),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=S){for(y.match_length--;y.strstart++,y.ins_h=(y.ins_h<=S&&(y.ins_h=(y.ins_h<=S&&y.match_length<=y.prev_length){for(z=y.strstart+y.lookahead-S,B=o._tr_tally(y,y.strstart-1-y.prev_match,y.prev_length-S),y.lookahead-=y.prev_length-1,y.prev_length-=2;++y.strstart<=z&&(y.ins_h=(y.ins_h<y.pending_buf_size-5&&(W=y.pending_buf_size-5);;){if(y.lookahead<=1){if(Ve(y),y.lookahead===0&&G===f)return b;if(y.lookahead===0)break}y.strstart+=y.lookahead,y.lookahead=0;var B=y.block_start+W;if((y.strstart===0||y.strstart>=B)&&(y.lookahead=y.strstart-B,y.strstart=B,L(y,!1),y.strm.avail_out===0)||y.strstart-y.block_start>=y.w_size-P&&(L(y,!1),y.strm.avail_out===0))return b}return y.insert=0,G===h?(L(y,!0),y.strm.avail_out===0?V:q):(y.strstart>y.block_start&&(L(y,!1),y.strm.avail_out),b)}),new Oe(4,4,8,4,Ke),new Oe(4,5,16,8,Ke),new Oe(4,6,32,32,Ke),new Oe(4,4,16,16,de),new Oe(8,16,32,32,de),new Oe(8,16,128,128,de),new Oe(8,32,128,256,de),new Oe(32,128,258,1024,de),new Oe(32,258,258,4096,de)],i.deflateInit=function(y,G){return Ht(y,G,v,15,8,0)},i.deflateInit2=Ht,i.deflateReset=nr,i.deflateResetKeep=$e,i.deflateSetHeader=function(y,G){return y&&y.state?y.state.wrap!==2?g:(y.state.gzhead=G,u):g},i.deflate=function(y,G){var W,B,z,M;if(!y||!y.state||5>8&255),se(B,B.gzhead.time>>16&255),se(B,B.gzhead.time>>24&255),se(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),se(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(se(B,255&B.gzhead.extra.length),se(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(y.adler=c(y.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(se(B,0),se(B,0),se(B,0),se(B,0),se(B,0),se(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),se(B,3),B.status=R);else{var X=v+(B.w_bits-8<<4)<<8;X|=(2<=B.strategy||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6,B.strstart!==0&&(X|=32),X+=31-X%31,B.status=R,K(B,X),B.strstart!==0&&(K(B,y.adler>>>16),K(B,65535&y.adler)),y.adler=1}if(B.status===69)if(B.gzhead.extra){for(z=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending!==B.pending_buf_size));)se(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){z=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending===B.pending_buf_size)){M=1;break}M=B.gzindexz&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),M===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){z=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>z&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),I(y),z=B.pending,B.pending===B.pending_buf_size)){M=1;break}M=B.gzindexz&&(y.adler=c(y.adler,B.pending_buf,B.pending-z,z)),M===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&I(y),B.pending+2<=B.pending_buf_size&&(se(B,255&y.adler),se(B,y.adler>>8&255),y.adler=0,B.status=R)):B.status=R),B.pending!==0){if(I(y),y.avail_out===0)return B.last_flush=-1,u}else if(y.avail_in===0&&H(G)<=H(W)&&G!==h)return ne(y,-5);if(B.status===666&&y.avail_in!==0)return ne(y,-5);if(y.avail_in!==0||B.lookahead!==0||G!==f&&B.status!==666){var J=B.strategy===2?function(j,te){for(var ce;;){if(j.lookahead===0&&(Ve(j),j.lookahead===0)){if(te===f)return b;break}if(j.match_length=0,ce=o._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,ce&&(L(j,!1),j.strm.avail_out===0))return b}return j.insert=0,te===h?(L(j,!0),j.strm.avail_out===0?V:q):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?b:N}(B,G):B.strategy===3?function(j,te){for(var ce,re,be,He,De=j.window;;){if(j.lookahead<=O){if(Ve(j),j.lookahead<=O&&te===f)return b;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=S&&0j.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=S?(ce=o._tr_tally(j,1,j.match_length-S),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(ce=o._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),ce&&(L(j,!1),j.strm.avail_out===0))return b}return j.insert=0,te===h?(L(j,!0),j.strm.avail_out===0?V:q):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?b:N}(B,G):s[B.level].func(B,G);if(J!==V&&J!==q||(B.status=666),J===b||J===V)return y.avail_out===0&&(B.last_flush=-1),u;if(J===N&&(G===1?o._tr_align(B):G!==5&&(o._tr_stored_block(B,0,0,!1),G===3&&(ie(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),I(y),y.avail_out===0))return B.last_flush=-1,u}return G!==h?u:B.wrap<=0?1:(B.wrap===2?(se(B,255&y.adler),se(B,y.adler>>8&255),se(B,y.adler>>16&255),se(B,y.adler>>24&255),se(B,255&y.total_in),se(B,y.total_in>>8&255),se(B,y.total_in>>16&255),se(B,y.total_in>>24&255)):(K(B,y.adler>>>16),K(B,65535&y.adler)),I(y),0=W.w_size&&(M===0&&(ie(W.head),W.strstart=0,W.block_start=0,W.insert=0),te=new a.Buf8(W.w_size),a.arraySet(te,G,ce-W.w_size,W.w_size,0),G=te,ce=W.w_size),X=y.avail_in,J=y.next_in,j=y.input,y.avail_in=ce,y.next_in=0,y.input=G,Ve(W);W.lookahead>=S;){for(B=W.strstart,z=W.lookahead-(S-1);W.ins_h=(W.ins_h<>>=S=C>>>24,w-=S,(S=C>>>16&255)===0)N[d++]=65535&C;else{if(!(16&S)){if(!(64&S)){C=A[(65535&C)+(v&(1<>>=S,w-=S),w<15&&(v+=b[l++]<>>=S=C>>>24,w-=S,!(16&(S=C>>>16&255))){if(!(64&S)){C=T[(65535&C)+(v&(1<>>=S,w-=S,(S=d-f)>3,v&=(1<<(w-=O<<3))-1,s.next_in=l,s.next_out=d,s.avail_in=l>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(E){var R;return E&&E.state?(R=E.state,E.total_in=E.total_out=R.total=0,E.msg="",R.wrap&&(E.adler=1&R.wrap),R.mode=g,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new s.Buf32(p),R.distcode=R.distdyn=new s.Buf32(x),R.sane=1,R.back=-1,h):u}function A(E){var R;return E&&E.state?((R=E.state).wsize=0,R.whave=0,R.wnext=0,w(E)):u}function T(E,R){var b,N;return E&&E.state?(N=E.state,R<0?(b=0,R=-R):(b=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15=q.wsize?(s.arraySet(q.window,R,b-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(N<(V=q.wsize-q.wnext)&&(V=N),s.arraySet(q.window,R,b-N,V,q.wnext),(N-=V)?(s.arraySet(q.window,R,b-N,N,0),q.wnext=N,q.whave=q.wsize):(q.wnext+=V,q.wnext===q.wsize&&(q.wnext=0),q.whave>>8&255,b.check=o(b.check,M,2,0),L=I=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&I)<<8)+(I>>8))%31){E.msg="incorrect header check",b.mode=30;break}if((15&I)!=8){E.msg="unknown compression method",b.mode=30;break}if(L-=4,y=8+(15&(I>>>=4)),b.wbits===0)b.wbits=y;else if(y>b.wbits){E.msg="invalid window size",b.mode=30;break}b.dmax=1<>8&1),512&b.flags&&(M[0]=255&I,M[1]=I>>>8&255,b.check=o(b.check,M,2,0)),L=I=0,b.mode=3;case 3:for(;L<32;){if(H===0)break e;H--,I+=N[q++]<>>8&255,M[2]=I>>>16&255,M[3]=I>>>24&255,b.check=o(b.check,M,4,0)),L=I=0,b.mode=4;case 4:for(;L<16;){if(H===0)break e;H--,I+=N[q++]<>8),512&b.flags&&(M[0]=255&I,M[1]=I>>>8&255,b.check=o(b.check,M,2,0)),L=I=0,b.mode=5;case 5:if(1024&b.flags){for(;L<16;){if(H===0)break e;H--,I+=N[q++]<>>8&255,b.check=o(b.check,M,2,0)),L=I=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(H<(ee=b.length)&&(ee=H),ee&&(b.head&&(y=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),s.arraySet(b.head.extra,N,q,ee,y)),512&b.flags&&(b.check=o(b.check,N,ee,q)),H-=ee,q+=ee,b.length-=ee),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(H===0)break e;for(ee=0;y=N[q+ee++],b.head&&y&&b.length<65536&&(b.head.name+=String.fromCharCode(y)),y&&ee>9&1,b.head.done=!0),E.adler=b.check=0,b.mode=12;break;case 10:for(;L<32;){if(H===0)break e;H--,I+=N[q++]<>>=7&L,L-=7&L,b.mode=27;break}for(;L<3;){if(H===0)break e;H--,I+=N[q++]<>>=1)){case 0:b.mode=14;break;case 1:if(O(b),b.mode=20,R!==6)break;I>>>=2,L-=2;break e;case 2:b.mode=17;break;case 3:E.msg="invalid block type",b.mode=30}I>>>=2,L-=2;break;case 14:for(I>>>=7&L,L-=7&L;L<32;){if(H===0)break e;H--,I+=N[q++]<>>16^65535)){E.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&I,L=I=0,b.mode=15,R===6)break e;case 15:b.mode=16;case 16:if(ee=b.length){if(H>>=5,L-=5,b.ndist=1+(31&I),I>>>=5,L-=5,b.ncode=4+(15&I),I>>>=4,L-=4,286>>=3,L-=3}for(;b.have<19;)b.lens[X[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,W={bits:b.lenbits},G=c(0,b.lens,0,19,b.lencode,0,b.work,W),b.lenbits=W.bits,G){E.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=de,L-=de,b.lens[b.have++]=Je;else{if(Je===16){for(B=de+2;L>>=de,L-=de,b.have===0){E.msg="invalid bit length repeat",b.mode=30;break}y=b.lens[b.have-1],ee=3+(3&I),I>>>=2,L-=2}else if(Je===17){for(B=de+3;L>>=de)),I>>>=3,L-=3}else{for(B=de+7;L>>=de)),I>>>=7,L-=7}if(b.have+ee>b.nlen+b.ndist){E.msg="invalid bit length repeat",b.mode=30;break}for(;ee--;)b.lens[b.have++]=y}}if(b.mode===30)break;if(b.lens[256]===0){E.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,W={bits:b.lenbits},G=c(d,b.lens,0,b.nlen,b.lencode,0,b.work,W),b.lenbits=W.bits,G){E.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,W={bits:b.distbits},G=c(f,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,W),b.distbits=W.bits,G){E.msg="invalid distances set",b.mode=30;break}if(b.mode=20,R===6)break e;case 20:b.mode=21;case 21:if(6<=H&&258<=ie){E.next_out=ne,E.avail_out=ie,E.next_in=q,E.avail_in=H,b.hold=I,b.bits=L,l(E,K),ne=E.next_out,V=E.output,ie=E.avail_out,q=E.next_in,N=E.input,H=E.avail_in,I=b.hold,L=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;Oe=(z=b.lencode[I&(1<>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>$e)])>>>16&255,Je=65535&z,!($e+(de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=$e,L-=$e,b.back+=$e}if(I>>>=de,L-=de,b.back+=de,b.length=Je,Oe===0){b.mode=26;break}if(32&Oe){b.back=-1,b.mode=12;break}if(64&Oe){E.msg="invalid literal/length code",b.mode=30;break}b.extra=15&Oe,b.mode=22;case 22:if(b.extra){for(B=b.extra;L>>=b.extra,L-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;Oe=(z=b.distcode[I&(1<>>16&255,Je=65535&z,!((de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>$e)])>>>16&255,Je=65535&z,!($e+(de=z>>>24)<=L);){if(H===0)break e;H--,I+=N[q++]<>>=$e,L-=$e,b.back+=$e}if(I>>>=de,L-=de,b.back+=de,64&Oe){E.msg="invalid distance code",b.mode=30;break}b.offset=Je,b.extra=15&Oe,b.mode=24;case 24:if(b.extra){for(B=b.extra;L>>=b.extra,L-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){E.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if(ie===0)break e;if(ee=K-ie,b.offset>ee){if((ee=b.offset-ee)>b.whave&&b.sane){E.msg="invalid distance too far back",b.mode=30;break}Ve=ee>b.wnext?(ee-=b.wnext,b.wsize-ee):b.wnext-ee,ee>b.length&&(ee=b.length),Ke=b.window}else Ke=V,Ve=ne-b.offset,ee=b.length;for(iek?(S=Ve[Ke+x[R]],L[se+x[R]]):(S=96,0),v=1<>ne)+(w-=v)]=C<<24|S<<16|O|0,w!==0;);for(v=1<>=1;if(v!==0?(I&=v-1,I+=v):I=0,R++,--K[E]==0){if(E===N)break;E=f[h+x[R]]}if(V>>7)]}function se(z,M){z.pending_buf[z.pending++]=255&M,z.pending_buf[z.pending++]=M>>>8&255}function K(z,M,X){z.bi_valid>m-X?(z.bi_buf|=M<>m-z.bi_valid,z.bi_valid+=X-m):(z.bi_buf|=M<>>=1,X<<=1,0<--M;);return X>>>1}function Ke(z,M,X){var J,j,te=new Array(x+1),ce=0;for(J=1;J<=x;J++)te[J]=ce=ce+X[J-1]<<1;for(j=0;j<=M;j++){var re=z[2*j+1];re!==0&&(z[2*j]=Ve(te[re]++,re))}}function de(z){var M;for(M=0;M>1;1<=X;X--)$e(z,te,X);for(j=be;X=z.heap[1],z.heap[1]=z.heap[z.heap_len--],$e(z,te,1),J=z.heap[1],z.heap[--z.heap_max]=X,z.heap[--z.heap_max]=J,te[2*j]=te[2*X]+te[2*J],z.depth[j]=(z.depth[X]>=z.depth[J]?z.depth[X]:z.depth[J])+1,te[2*X+1]=te[2*J+1]=j,z.heap[1]=j++,$e(z,te,1),2<=z.heap_len;);z.heap[--z.heap_max]=z.heap[1],function(De,Bt){var Ei,ir,Ti,et,Gs,bo,mr=Bt.dyn_tree,al=Bt.max_code,Uh=Bt.stat_desc.static_tree,qh=Bt.stat_desc.has_stree,jh=Bt.stat_desc.extra_bits,ol=Bt.stat_desc.extra_base,_i=Bt.stat_desc.max_length,Zs=0;for(et=0;et<=x;et++)De.bl_count[et]=0;for(mr[2*De.heap[De.heap_max]+1]=0,Ei=De.heap_max+1;Ei>=7;j>>=1)if(1&He&&re.dyn_ltree[2*be]!==0)return a;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return o;for(be=32;be>>3,(te=z.static_len+3+7>>>3)<=j&&(j=te)):j=te=X+5,X+4<=j&&M!==-1?B(z,M,X,J):z.strategy===4||te===j?(K(z,2+(J?1:0),3),nr(z,P,E)):(K(z,4+(J?1:0),3),function(re,be,He,De){var Bt;for(K(re,be-257,5),K(re,He-1,5),K(re,De-4,4),Bt=0;Bt>>8&255,z.pending_buf[z.d_buf+2*z.last_lit+1]=255&M,z.pending_buf[z.l_buf+z.last_lit]=255&X,z.last_lit++,M===0?z.dyn_ltree[2*X]++:(z.matches++,M--,z.dyn_ltree[2*(b[X]+f+1)]++,z.dyn_dtree[2*L(M)]++),z.last_lit===z.lit_bufsize-1},i._tr_align=function(z){K(z,2,3),ee(z,w,P),function(M){M.bi_valid===16?(se(M,M.bi_buf),M.bi_buf=0,M.bi_valid=0):8<=M.bi_valid&&(M.pending_buf[M.pending++]=255&M.bi_buf,M.bi_buf>>=8,M.bi_valid-=8)}(z)}},{"../utils/common":41}],53:[function(t,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,n,i){(function(s){(function(a,o){if(!a.setImmediate){var l,c,d,f,h=1,u={},g=!1,p=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,l={}.toString.call(a.process)==="[object process]"?function(A){process.nextTick(function(){v(A)})}:function(){if(a.postMessage&&!a.importScripts){var A=!0,T=a.onmessage;return a.onmessage=function(){A=!1},a.postMessage("","*"),a.onmessage=T,A}}()?(f="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",w,!1):a.attachEvent("onmessage",w),function(A){a.postMessage(f+A,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){d.port2.postMessage(A)}):p&&"onreadystatechange"in p.createElement("script")?(c=p.documentElement,function(A){var T=p.createElement("script");T.onreadystatechange=function(){v(A),T.onreadystatechange=null,c.removeChild(T),T=null},c.appendChild(T)}):function(A){setTimeout(v,0,A)},x.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var T=new Array(arguments.length-1),_=0;_"u"?s===void 0?this:s:self)}).call(this,typeof _t<"u"?_t:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Mh);var Q1=Mh.exports;const $1=vc(Q1);function eb(r,e,t,n){const i={opacity:.4,dashArray:[1,5]};let s,a,o,l,c,d;const[f,h]=t,u=[];switch(n){case 32:r&&(i.dashArray=[1,5],s=e?f*.75:f*.25,c=h*.5,d=e?h*.75:h*.25,u.push({...Td(s,c,d),...i}));case 16:r&&(i.dashArray=[3,5],l=e?h*.75:h*.25,a=f*.5,o=e?0:h,u.push({..._d(l,a,o),...i}));case 8:r&&(i.dashArray=[5,5],s=f*.5,c=h*.5,d=e?0:h,u.push({...Td(s,c,d),...i}));case 4:r||(i.dashArray=[10,5],u.push({..._d(h*.5,0,f),...i}));break}return u}function tb(r,e){let t=[];const[n,i]=r;switch(e){case 32:t=[...t,...Mo(i*.75,0,n),...Mo(i*.25,0,n),...Lo(n*.5,i*.75),...Lo(n*.5,i*.25)];case 16:t=[...t,...ib(n*.5,0,i),...Lo(n*.5,i*.5)];case 8:t=[...t,...Mo(i*.5,0,n)]}return t}function rb(r,e,t,n,i,s){if(console.log("try to draw"),e.isLeftPage)return[];if(console.log(" on right"),t=="only_out"&&!r.isSigStart)return[];if(console.log(" a"),t=="only_in"&&!r.isSigMiddle)return[];if(console.log(" b"),t=="in_n_out"&&!(r.isSigStart||r.isSigMiddle))return[];console.log(" c");var a=Math.abs(e.rotation)===90;let o=0,l=0;a?(o=Math.abs(e.spineMarkTop[0]-e.spineMarkBottom[0]),l=e.spineMarkTop[1]):(o=Math.abs(e.spineMarkTop[1]-e.spineMarkBottom[1]),l=e.spineMarkTop[0]);const d=(o-2*i)/(n+1),f=[];for(let p=1;p<=n;p++){const x=s/2;f.push({pointHeight:i+d*p+x},{pointHeight:i+d*p-x})}const h=[{pointHeight:i},{pointHeight:o-i},...f],u={size:1,color:Zc(0)};return h.map(p=>(p={...p,...u},a?(p.y=l,p.x=p.pointHeight+e.spineMarkBottom[0]):(p.y=p.pointHeight+e.spineMarkBottom[1],p.x=l),p))}function Ja(r,e,t){let n,i,s,a;r?([n,i]=e.spineMarkTop,[s,a]=e.spineMarkTop):([n,i]=e.spineMarkBottom,[s,a]=e.spineMarkBottom),e.rotation==0||e.rotation==180?(n-=t/2,s+=t/2):(i-=t/2,a+=t/2);const o={start:{x:n,y:i},end:{x:s,y:a},thickness:e.rotation==0?.5:.25,color:Me(0,0,0),opacity:1};return console.log(" --> draw this: ",o),o}function nb(r,e,t,n,i){const s=Ja(!0,e,n),a=Ja(!1,e,n);let o=s.start.x,l=s.start.y;const c=e.rotation==0?s.start.y-a.start.y:s.start.x-a.start.x;let d=Math.min(i,c/t);const f=d*r.signatureNum;if(e.rotation==0)d=d*-1,l-=f;else{const h=d;d=n,n=h*-1,o-=f}return{x:o,y:l,width:n,height:d,borderWidth:0,color:Me(0,0,0),opacity:.5}}function Td(r,e,t){return{start:{x:r,y:e},end:{x:r,y:t}}}function _d(r,e,t){return{start:{x:e,y:r},end:{x:t,y:r}}}function ib(r,e,t){return[{start:{x:r,y:e},end:{x:r,y:e+Ur},opacity:.4},{start:{x:r,y:t-Ur},end:{x:r,y:t},opacity:.4}]}function Mo(r,e,t){return[{start:{x:e,y:r},end:{x:e+Ur,y:r},opacity:.4},{start:{x:t-Ur,y:r},end:{x:t,y:r},opacity:.4}]}function Lo(r,e){return[{start:{x:r-Ur,y:e},end:{x:r+Ur,y:e},opacity:.4},{start:{x:r,y:e-Ur},end:{x:r,y:e+Ur},opacity:.4}]}function Od(r){const e=Lh(r),{layoutCell:t,xForeEdgeShiftFunc:n,xBindingShiftFunc:i,yTopShiftFunc:s,yBottomShiftFunc:a,pdfScale:o}=e,[l,c]=t,d=[];return e.layout.rotations.forEach((f,h)=>{f.forEach((u,g)=>{const p=n(),x=i(),m=s(),v=a();let w=g%2==0,A=g*l+(w?p:x),T=h*c+v,_=[g*l,(h+1)*c-m],k=[(g+1)*l,h*c+v];u==-180?(w=g%2==1,T=(h+1)*c-v,A=(g+1)*l-(w?p:x),_=[(g+1)*l,(h+1)*c],k=[(g+1)*l,h*c]):u==90?(w=h%2==0,A=(1+g)*c-v,T=h*l+(w?x:p),_=[(1+g)*c,h*l],k=[g*c,h*l]):u==-90&&(w=h%2==1,A=g*c+v,T=(1+h)*l-(w?p:x),_=[(g+1)*c-m,(w?h:h+1)*l],k=[g*c+v,(w?h:h+1)*l]),console.log(`>> (${h},${g})[${u}] : [${A},${T}] :: [xForeEdgeShift: ${p}][xBindingShift: ${x}]`),d.push({rotation:u,sx:o[0],sy:o[1],x:A,y:T,spineMarkTop:_,spineMarkBottom:k,isLeftPage:w})})}),console.log("And in the end of it all, (calculatelayout) we get: ",d),d}function Lh(r){const{cropbox:e,padding_pt:t,papersize:n,page_layout:i,page_positioning:s,page_scaling:a}=r,{width:o,height:l}=e,c=o+Math.max(t.binding,0)+Math.max(t.fore_edge,0),d=l+Math.max(t.top,0)+Math.max(t.bottom,0);let f=n[0]/i.cols,h=n[1]/i.rows;if(i.landscape){const k=f;f=h,h=k}let u=1,g=1;if(a=="lockratio"){const k=Math.min(f/c,h/d);u=k,g=k}else a=="stretch"&&(u=f/c,g=h/d);const p={fore_edge:t.fore_edge*u,binding:t.binding*u,bottom:t.bottom*g,top:t.top*g},x=s;return{layout:i,rawPdfSize:[o,l],pdfScale:[u,g],pdfSize:[c,d],layoutCell:[f,h],padding:p,xForeEdgeShiftFunc:function(){const k=f-c*u;return p.fore_edge+(x=="centered"?k/2:k)},xBindingShiftFunc:function(){const k=f-c*u;return p.binding+(x=="centered"?k/2:0)},xPdfWidthFunc:function(){return c*u-p.fore_edge-p.binding},yPdfHeightFunc:function(){return d*g-p.top-p.bottom},yTopShiftFunc:function(){const k=h-d*g;return p.top+k/2},yBottomShiftFunc:function(){const k=h-d*g;return p.bottom+k/2},positioning:x}}async function sb(r,e){const t=await Ze.create(),n=Math.max(r.getPageCount(),e.getPageCount()),i=[],s=t.copyPages(r,r.getPageIndices()),a=t.copyPages(e,e.getPageIndices());i.push(s,a);const[o,l]=await Promise.all([s,a]);for(let c=0;ctypeof s=="number");let i=await t.embedPdf(r,e);return n&&(i=i.reduce((s,a,o)=>(s[e[o]]=a,s),[])),[t,i]}class ab{constructor(e){this.inputpdf=null,this.managedDoc=null,this.signatureconfig=[],this.spineoffset=!1,this.input=null,this.currentdoc=null,this.pagecount=null,this.cropbox=null,this.orderedpages=[],this.rearrangedpages=[],this.filelist=[],this.zip=null,this.update(e)}update(e){this.duplex=e.printerType==="duplex",this.duplexrotate=e.rotatePage,this.paper_rotation_90=e.paperRotation90,this.papersize=gi[e.paperSize],e.paperRotation90&&(this.papersize=[this.papersize[1],this.papersize[0]]),this.source_rotation=e.sourceRotation,this.print_file=e.printFile,this.page_scaling=e.pageScaling,this.page_positioning=e.pagePositioning,this.flyleafs=e.flyleafs,this.cropmarks=e.cropMarks,this.sewingMarks={sewingMarkLocation:e.sewingMarkLocation,isEnabled:e.sewingMarksEnabled,amount:e.sewingMarksAmount,marginPt:e.sewingMarksMarginPt,tapeWidthPt:e.sewingMarksTapeWidthPt},this.pdfEdgeMarks=e.pdfEdgeMarks,this.sigOrderMarks=e.sigOrderMarks,this.cutmarks=e.cutMarks,this.format=e.sigFormat,e.sigFormat==="standardsig"&&(this.sigsize=e.sigLength),this.customsig=this.format==="customsig",this.customsig&&(this.signatureconfig=e.customSigLength);const t=vx[e.pageLayout];this.page_layout=t,this.per_sheet=t.per_sheet,this.pack_pages=e.wackySpacing==="wacky_pack",this.fore_edge_padding_pt=e.foreEdgePaddingPt,this.padding_pt={top:e.topEdgePaddingPt,bottom:e.bottomEdgePaddingPt,binding:e.bindingEdgePaddingPt,fore_edge:e.mainForeEdgePaddingPt}}async openpdf(e){this.inputpdf=e.name,this.input=await e.arrayBuffer(),this.currentdoc=await Ze.load(this.input),this.fixBlankPages()}fixBlankPages(){const e=this.currentdoc.getPages();this.cropbox=null,e.forEach(t=>{t.node.Contents()?this.cropbox||(this.cropbox=t.getCropBox()):t.drawLine({start:{x:25,y:26},end:{x:125,y:126},opacity:0})})}createpagelist(){this.pagecount=this.currentdoc.getPageCount(),this.orderedpages=Array.from({length:this.pagecount},(n,i)=>i);for(let n=0;n0){t+=1;const n=t*this.per_sheet-e;for(let i=0;i{const a=n.map(async(o,l)=>{console.log(o),t[l]={name:`${this.filename}_signature${l}`},[t[l].front,t[l].back]=await this.createSignatures({pageIndexDetails:o})});await Promise.all(a)})(),(this.duplex||e)&&(await(async()=>{const o=t.map(async(l,c)=>{t[c].duplex=await sb(l.front,l.back),t[c].back=t[c].front=null});await Promise.all(o)})(),i=t[0].duplex),i}async saveClassicFiles(e){this.print_file!="aggregated"&&await(async()=>{const n=e.map(async i=>{var s,a,o;await((s=i.front)==null?void 0:s.save().then(l=>{this.zip.file(`signatures/${i.name}_side1.pdf`,l)})),await((a=i.back)==null?void 0:a.save().then(l=>{this.zip.file(`signatures/${i.name}_side2.pdf`,l)})),await((o=i.duplex)==null?void 0:o.save().then(l=>{this.zip.file(`signatures/${i.name}_duplex.pdf`,l)}))});await Promise.all(n)})(),this.print_file!="signatures"&&await(async()=>{const n={front:this.duplex?null:await Ze.create(),back:this.duplex?null:await Ze.create(),duplex:this.duplex?await Ze.create():null};for(const i of e)n.front&&(await n.front.copyPages(i.front,i.front.getPageIndices())).forEach(a=>n.front.addPage(a)),n.back&&(await n.back.copyPages(i.back,i.back.getPageIndices())).forEach(a=>n.back.addPage(a)),n.duplex&&(await n.duplex.copyPages(i.duplex,i.duplex.getPageIndices())).forEach(a=>n.duplex.addPage(a));n.front&&await n.front.save().then(i=>{this.zip.file(`${this.filename}_typeset_side1.pdf`,i)}),n.back&&await n.back.save().then(i=>{this.zip.file(`${this.filename}_typeset_side2.pdf`,i)}),n.duplex&&await n.duplex.save().then(i=>{this.zip.file(`${this.filename}_typeset.pdf`,i)})})()}async displayPreview(e){console.log("Attempting to generate preview for ",e);const t=document.getElementById("pdf"),n=await e.saveAsBase64({dataUri:!0}),i=e.catalog.getOrCreateViewerPreferences();i.setHideToolbar(!1),i.setHideMenubar(!1),i.setHideWindowUI(!1),i.setFitWindow(!0),i.setCenterWindow(!0),i.setDisplayDocTitle(!0),t.src=n,t.style.width="450px";const s=this.papersize[1]/this.papersize[0]*500;t.style.height=`${s}px`,t.style.display=""}async writepages(e){const t=e.pageList,n=e.back,i=e.maxSigCount,s=[],a=[];t.forEach((g,p)=>{g.info!="b"?s.push(g.info):a.push(p)});const[o,l]=await Rd(this.managedDoc,s);a.forEach(g=>l.splice(g,0,"b"));let c=0;const d=this.per_sheet/2;let f=d;const h=Od(this);let u=n;for(;f<=t.length;){const g=t.slice(c,f);u=this.draw_block_onto_page({outPDF:o,embeddedPages:l,block_start:c,block_end:f,sigDetails:g,papersize:this.papersize,positions:h,cropmarks:this.cropmarks,sigOrderMarks:this.sigOrderMarks,pdfEdgeMarks:this.pdfEdgeMarks,cutmarks:this.cutmarks,alt:e.alt,side2flag:u,maxSigCount:i,sewingMarks:this.sewingMarks}),c+=d,f+=d}return o}draw_block_onto_page(e){const t=e.sigDetails,n=e.block_start,i=e.block_end,s=e.papersize,a=e.outPDF,o=e.positions,l=e.cropmarks,c=e.sigOrderMarks,d=e.pdfEdgeMarks,f=e.cutmarks,h=e.alt,u=e.maxSigCount;let g=e.side2flag;const p=e.sewingMarks,x=e.embeddedPages.slice(n,i),m=a.addPage(s),v=f?tb(s,this.per_sheet):[],w=l?eb(g,this.duplexrotate,s,this.per_sheet):[],A=[...v,...w],T=[],_=[];return x.forEach((k,C)=>{if(!(k=="b"||k===void 0))if(k instanceof ps){const{y:O,x:P,sx:E,sy:R,rotation:b}=o[C];m.drawPage(k,{y:O,x:P,xScale:E,yScale:R,rotate:pe(b)})}else console.error("Unexpected type for page: ",k);t[C].isSigStart?(d&&A.push(Ja(!0,o[C],5)),c&&T.push(nb(t[C],o[C],u,5,20))):t[C].isSigEnd&&d&&A.push(Ja(!1,o[C],5));const S=p.isEnabled?rb(t[C],o[C],p.sewingMarkLocation,p.amount,p.marginPt,p.tapeWidthPt):[];_.push(...S)}),A.forEach(k=>{m.drawLine(k)}),T.forEach(k=>{m.drawRectangle(k)}),_.forEach(k=>{m.drawCircle(k)}),h&&(g=!g),g}async createSignatures(e){const t=e.pageIndexDetails,n=[this.writepages({pageList:t[0],back:!1,alt:!1,maxSigCount:e.maxSigCount}),this.writepages({pageList:t[1],back:!0,alt:!1,maxSigCount:e.maxSigCount})],[i,s]=await Promise.all(n);return[i,s]}bundleSettings(){const e=Dh(),t=`Imposer settings: ${JSON.stringify(e,null,2)} Link to the imposer with these settings: ${window.location.href}`;this.zip.file("settings.txt",t)}saveZip(){return console.log("Saving zip... "),this.bundleSettings(),this.zip.generateAsync({type:"blob"}).then(e=>{console.log(" calling saveAs on ",this.filename),yx.saveAs(e,`${this.filename}_bookbinder.zip`)})}async buildSheets(e,t){const n=t.sheetMaker(this.pagecount),i=t.lineMaker();console.log("Working with the sheet descritpion: ",n);const s=await Ze.create(),a=await Ze.create();for(let o=0;o{console.log("Calling zip.file on ",o),this.zip.file(o,l)}),this.filelist.push(o)}if(!this.duplex){console.log("Trying to save to PDF (back pages)");const o=`${e}_${t.fileNameMod}_backs.pdf`;await a.save().then(l=>{console.log("Calling zip.file on ",o),this.zip.file(o,l)}),this.filelist.push(o)}return console.log("buildSheets complete"),s}async write_single_page(e,t,n,i,s,a){const o=[];if(console.log(s),s=s.filter(C=>!i||C.filter(S=>S.isBlank==!1).length>0),console.log(s),console.log(`Hitting that write_single_page : isPacked[${this.pack_pages}] || (front ${n}/ first ${i}) [${s.length},${s[0].length}]`),s.forEach(C=>{C.forEach(S=>{S.isBlank||o.push(S.num)})}),o.length==0){console.warn("All the pages are empty! : ",s);return}const l=await e.embedPdf(this.managedDoc,o),c=t?[this.papersize[1],this.papersize[0]]:[this.papersize[0],this.papersize[1]],d=e.addPage(c),f=l.slice(0,1)[0],h=c[1]/s.length,u=c[0]/s[0].length,g=h/f.height,p=u/(f.width+this.fore_edge_padding_pt),x=Math.min(g,p),m=c[1]-f.height*x*s.length,v=this.pack_pages?m/2:m/(s.length*2),w=c[0]-(f.width+this.fore_edge_padding_pt)*x*s[0].length,A=this.pack_pages?w/2:w/s[0].length,T=x*f.width,_=x*f.height,k=x*this.fore_edge_padding_pt;for(let C=0;C{d.drawLine(C)})}}function ob(r,e){const t=new FormData(e),n=q1(t);r.update(n),sl(),xo(),r.inputpdf&&zh(r)}function cb(r,e){Ih();const t=r.target.files;t.length>0&&e.openpdf(t[0]).then(()=>zh(e))}window.addEventListener("DOMContentLoaded",()=>{X1();const r=Bh(),e=document.getElementById("generate"),t=document.getElementById("preview"),n=document.getElementById("reset_settings"),i=document.getElementById("bookbinder"),s=document.getElementById("input_file"),a=document.querySelectorAll("input, select"),o=document.getElementById("source_rotation"),l=document.getElementById("add_sewing_marks_checkbox"),c=Array.from(document.getElementsByClassName("source_rotation_example")),d=new ab(r);a.forEach(f=>{f.addEventListener("change",()=>ob(d,i))}),s.addEventListener("change",f=>{cb(f,d),e.removeAttribute("disabled"),t.removeAttribute("disabled")}),e.addEventListener("click",()=>V1(e,d)),t.addEventListener("click",()=>W1(t,d)),n.addEventListener("click",()=>{console.log("Resetting settings..."),H1(d)}),o.addEventListener("change",f=>{const h=`${f.target.value}_example`;c.forEach(u=>{u.style.display=u.id===h?"block":"none"})}),l.addEventListener("change",f=>{const h=f.srcElement.checked;Nh(h)})}); diff --git a/pr-preview/pr-116/index.html b/pr-preview/pr-116/index.html index 54fcb99..eb36434 100644 --- a/pr-preview/pr-116/index.html +++ b/pr-preview/pr-116/index.html @@ -11,7 +11,7 @@ - +