mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
97 lines
173 KiB
JavaScript
97 lines
173 KiB
JavaScript
import{y as _e}from"./index-251ad64b.js";import{c as ke}from"./_commonjs-dynamic-modules-302442b1.js";var Ae={},Ne={get exports(){return Ae},set exports(re){Ae=re}},we={},Be={get exports(){return we},set exports(re){we=re}};/*!
|
||
|
||
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
||
JSZip uses the library pako released under the MIT license :
|
||
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
*/var Ce;function Oe(){return Ce||(Ce=1,function(re,ce){(function(T){re.exports=T()})(function(){return function T(j,N,A){function v(r,m){if(!N[r]){if(!j[r]){var p=typeof ke=="function"&&ke;if(!m&&p)return p(r,!0);if(e)return e(r,!0);var a=new Error("Cannot find module '"+r+"'");throw a.code="MODULE_NOT_FOUND",a}var i=N[r]={exports:{}};j[r][0].call(i.exports,function(y){var h=j[r][1][y];return v(h||y)},i,i.exports,T,j,N,A)}return N[r].exports}for(var e=typeof ke=="function"&&ke,u=0;u<A.length;u++)v(A[u]);return v}({1:[function(T,j,N){var A=T("./utils"),v=T("./support"),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";N.encode=function(u){for(var r,m,p,a,i,y,h,d=[],f=0,g=u.length,x=g,P=A.getTypeOf(u)!=="string";f<u.length;)x=g-f,p=P?(r=u[f++],m=f<g?u[f++]:0,f<g?u[f++]:0):(r=u.charCodeAt(f++),m=f<g?u.charCodeAt(f++):0,f<g?u.charCodeAt(f++):0),a=r>>2,i=(3&r)<<4|m>>4,y=1<x?(15&m)<<2|p>>6:64,h=2<x?63&p:64,d.push(e.charAt(a)+e.charAt(i)+e.charAt(y)+e.charAt(h));return d.join("")},N.decode=function(u){var r,m,p,a,i,y,h=0,d=0,f="data:";if(u.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var g,x=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===e.charAt(64)&&x--,u.charAt(u.length-2)===e.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=v.uint8array?new Uint8Array(0|x):new Array(0|x);h<u.length;)r=e.indexOf(u.charAt(h++))<<2|(a=e.indexOf(u.charAt(h++)))>>4,m=(15&a)<<4|(i=e.indexOf(u.charAt(h++)))>>2,p=(3&i)<<6|(y=e.indexOf(u.charAt(h++))),g[d++]=r,i!==64&&(g[d++]=m),y!==64&&(g[d++]=p);return g}},{"./support":30,"./utils":32}],2:[function(T,j,N){var A=T("./external"),v=T("./stream/DataWorker"),e=T("./stream/Crc32Probe"),u=T("./stream/DataLengthProbe");function r(m,p,a,i,y){this.compressedSize=m,this.uncompressedSize=p,this.crc32=a,this.compression=i,this.compressedContent=y}r.prototype={getContentWorker:function(){var m=new v(A.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),p=this;return m.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new v(A.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},r.createWorkerFrom=function(m,p,a){return m.pipe(new e).pipe(new u("uncompressedSize")).pipe(p.compressWorker(a)).pipe(new u("compressedSize")).withStreamInfo("compression",p)},j.exports=r},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(T,j,N){var A=T("./stream/GenericWorker");N.STORE={magic:"\0\0",compressWorker:function(){return new A("STORE compression")},uncompressWorker:function(){return new A("STORE decompression")}},N.DEFLATE=T("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(T,j,N){var A=T("./utils"),v=function(){for(var e,u=[],r=0;r<256;r++){e=r;for(var m=0;m<8;m++)e=1&e?3988292384^e>>>1:e>>>1;u[r]=e}return u}();j.exports=function(e,u){return e!==void 0&&e.length?A.getTypeOf(e)!=="string"?function(r,m,p,a){var i=v,y=a+p;r^=-1;for(var h=a;h<y;h++)r=r>>>8^i[255&(r^m[h])];return-1^r}(0|u,e,e.length,0):function(r,m,p,a){var i=v,y=a+p;r^=-1;for(var h=a;h<y;h++)r=r>>>8^i[255&(r^m.charCodeAt(h))];return-1^r}(0|u,e,e.length,0):0}},{"./utils":32}],5:[function(T,j,N){N.base64=!1,N.binary=!1,N.dir=!1,N.createFolders=!0,N.date=null,N.compression=null,N.compressionOptions=null,N.comment=null,N.unixPermissions=null,N.dosPermissions=null},{}],6:[function(T,j,N){var A=null;A=typeof Promise<"u"?Promise:T("lie"),j.exports={Promise:A}},{lie:37}],7:[function(T,j,N){var A=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=T("pako"),e=T("./utils"),u=T("./stream/GenericWorker"),r=A?"uint8array":"array";function m(p,a){u.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=a,this.meta={}}N.magic="\b\0",e.inherits(m,u),m.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(e.transformTo(r,p.data),!1)},m.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},m.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},m.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(a){p.push({data:a,meta:p.meta})}},N.compressWorker=function(p){return new m("Deflate",p)},N.uncompressWorker=function(){return new m("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(T,j,N){function A(i,y){var h,d="";for(h=0;h<y;h++)d+=String.fromCharCode(255&i),i>>>=8;return d}function v(i,y,h,d,f,g){var x,P,n=i.file,o=i.compression,t=g!==r.utf8encode,l=e.transformTo("string",g(n.name)),b=e.transformTo("string",r.utf8encode(n.name)),k=n.comment,E=e.transformTo("string",g(k)),_=e.transformTo("string",r.utf8encode(k)),C=b.length!==n.name.length,s=_.length!==k.length,R="",V="",M="",K=n.dir,W=n.date,J={crc32:0,compressedSize:0,uncompressedSize:0};y&&!h||(J.crc32=i.crc32,J.compressedSize=i.compressedSize,J.uncompressedSize=i.uncompressedSize);var z=0;y&&(z|=8),t||!C&&!s||(z|=2048);var O=0,Y=0;K&&(O|=16),f==="UNIX"?(Y=798,O|=function(Z,ne){var le=Z;return Z||(le=ne?16893:33204),(65535&le)<<16}(n.unixPermissions,K)):(Y=20,O|=function(Z){return 63&(Z||0)}(n.dosPermissions)),x=W.getUTCHours(),x<<=6,x|=W.getUTCMinutes(),x<<=5,x|=W.getUTCSeconds()/2,P=W.getUTCFullYear()-1980,P<<=4,P|=W.getUTCMonth()+1,P<<=5,P|=W.getUTCDate(),C&&(V=A(1,1)+A(m(l),4)+b,R+="up"+A(V.length,2)+V),s&&(M=A(1,1)+A(m(E),4)+_,R+="uc"+A(M.length,2)+M);var X="";return X+=`
|
||
\0`,X+=A(z,2),X+=o.magic,X+=A(x,2),X+=A(P,2),X+=A(J.crc32,4),X+=A(J.compressedSize,4),X+=A(J.uncompressedSize,4),X+=A(l.length,2),X+=A(R.length,2),{fileRecord:p.LOCAL_FILE_HEADER+X+l+R,dirRecord:p.CENTRAL_FILE_HEADER+A(Y,2)+X+A(E.length,2)+"\0\0\0\0"+A(O,4)+A(d,4)+l+R+E}}var e=T("../utils"),u=T("../stream/GenericWorker"),r=T("../utf8"),m=T("../crc32"),p=T("../signature");function a(i,y,h,d){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=h,this.encodeFileName=d,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(a,u),a.prototype.push=function(i){var y=i.meta.percent||0,h=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:h?(y+100*(h-d-1))/h:100}}))},a.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var y=this.streamFiles&&!i.file.dir;if(y){var h=v(i,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},a.prototype.closedSource=function(i){this.accumulate=!1;var y=this.streamFiles&&!i.file.dir,h=v(i,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),y)this.push({data:function(d){return p.DATA_DESCRIPTOR+A(d.crc32,4)+A(d.compressedSize,4)+A(d.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var i=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var h=this.bytesWritten-i,d=function(f,g,x,P,n){var o=e.transformTo("string",n(P));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+A(f,2)+A(f,2)+A(g,4)+A(x,4)+A(o.length,2)+o}(this.dirRecords.length,h,i,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(i){this._sources.push(i);var y=this;return i.on("data",function(h){y.processChunk(h)}),i.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),i.on("error",function(h){y.error(h)}),this},a.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(i){var y=this._sources;if(!u.prototype.error.call(this,i))return!1;for(var h=0;h<y.length;h++)try{y[h].error(i)}catch{}return!0},a.prototype.lock=function(){u.prototype.lock.call(this);for(var i=this._sources,y=0;y<i.length;y++)i[y].lock()},j.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(T,j,N){var A=T("../compressions"),v=T("./ZipFileWorker");N.generateWorker=function(e,u,r){var m=new v(u.streamFiles,r,u.platform,u.encodeFileName),p=0;try{e.forEach(function(a,i){p++;var y=function(g,x){var P=g||x,n=A[P];if(!n)throw new Error(P+" is not a valid compression method !");return n}(i.options.compression,u.compression),h=i.options.compressionOptions||u.compressionOptions||{},d=i.dir,f=i.date;i._compressWorker(y,h).withStreamInfo("file",{name:a,dir:d,date:f,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(m)}),m.entriesCount=p}catch(a){m.error(a)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(T,j,N){function A(){if(!(this instanceof A))return new A;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var v=new A;for(var e in this)typeof this[e]!="function"&&(v[e]=this[e]);return v}}(A.prototype=T("./object")).loadAsync=T("./load"),A.support=T("./support"),A.defaults=T("./defaults"),A.version="3.10.1",A.loadAsync=function(v,e){return new A().loadAsync(v,e)},A.external=T("./external"),j.exports=A},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(T,j,N){var A=T("./utils"),v=T("./external"),e=T("./utf8"),u=T("./zipEntries"),r=T("./stream/Crc32Probe"),m=T("./nodejsUtils");function p(a){return new v.Promise(function(i,y){var h=a.decompressed.getContentWorker().pipe(new r);h.on("error",function(d){y(d)}).on("end",function(){h.streamInfo.crc32!==a.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}j.exports=function(a,i){var y=this;return i=A.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),m.isNode&&m.isStream(a)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):A.prepareContent("the loaded zip file",a,!0,i.optimizedBinaryString,i.base64).then(function(h){var d=new u(i);return d.load(h),d}).then(function(h){var d=[v.Promise.resolve(h)],f=h.files;if(i.checkCRC32)for(var g=0;g<f.length;g++)d.push(p(f[g]));return v.Promise.all(d)}).then(function(h){for(var d=h.shift(),f=d.files,g=0;g<f.length;g++){var x=f[g],P=x.fileNameStr,n=A.resolve(x.fileNameStr);y.file(n,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:i.createFolders}),x.dir||(y.file(n).unsafeOriginalName=P)}return d.zipComment.length&&(y.comment=d.zipComment),y})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(T,j,N){var A=T("../utils"),v=T("../stream/GenericWorker");function e(u,r){v.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(r)}A.inherits(e,v),e.prototype._bindStream=function(u){var r=this;(this._stream=u).pause(),u.on("data",function(m){r.push({data:m,meta:{percent:0}})}).on("error",function(m){r.isPaused?this.generatedError=m:r.error(m)}).on("end",function(){r.isPaused?r._upstreamEnded=!0:r.end()})},e.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},j.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(T,j,N){var A=T("readable-stream").Readable;function v(e,u,r){A.call(this,u),this._helper=e;var m=this;e.on("data",function(p,a){m.push(p)||m._helper.pause(),r&&r(a)}).on("error",function(p){m.emit("error",p)}).on("end",function(){m.push(null)})}T("../utils").inherits(v,A),v.prototype._read=function(){this._helper.resume()},j.exports=v},{"../utils":32,"readable-stream":16}],14:[function(T,j,N){j.exports={isNode:typeof Buffer<"u",newBufferFrom:function(A,v){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(A,v);if(typeof A=="number")throw new Error('The "data" argument must not be a number');return new Buffer(A,v)},allocBuffer:function(A){if(Buffer.alloc)return Buffer.alloc(A);var v=new Buffer(A);return v.fill(0),v},isBuffer:function(A){return Buffer.isBuffer(A)},isStream:function(A){return A&&typeof A.on=="function"&&typeof A.pause=="function"&&typeof A.resume=="function"}}},{}],15:[function(T,j,N){function A(n,o,t){var l,b=e.getTypeOf(o),k=e.extend(t||{},m);k.date=k.date||new Date,k.compression!==null&&(k.compression=k.compression.toUpperCase()),typeof k.unixPermissions=="string"&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(n=f(n)),k.createFolders&&(l=d(n))&&g.call(this,l,!0);var E=b==="string"&&k.binary===!1&&k.base64===!1;t&&t.binary!==void 0||(k.binary=!E),(o instanceof p&&o.uncompressedSize===0||k.dir||!o||o.length===0)&&(k.base64=!1,k.binary=!0,o="",k.compression="STORE",b="string");var _=null;_=o instanceof p||o instanceof u?o:y.isNode&&y.isStream(o)?new h(n,o):e.prepareContent(n,o,k.binary,k.optimizedBinaryString,k.base64);var C=new a(n,_,k);this.files[n]=C}var v=T("./utf8"),e=T("./utils"),u=T("./stream/GenericWorker"),r=T("./stream/StreamHelper"),m=T("./defaults"),p=T("./compressedObject"),a=T("./zipObject"),i=T("./generate"),y=T("./nodejsUtils"),h=T("./nodejs/NodejsStreamInputAdapter"),d=function(n){n.slice(-1)==="/"&&(n=n.substring(0,n.length-1));var o=n.lastIndexOf("/");return 0<o?n.substring(0,o):""},f=function(n){return n.slice(-1)!=="/"&&(n+="/"),n},g=function(n,o){return o=o!==void 0?o:m.createFolders,n=f(n),this.files[n]||A.call(this,n,null,{dir:!0,createFolders:o}),this.files[n]};function x(n){return Object.prototype.toString.call(n)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(n){var o,t,l;for(o in this.files)l=this.files[o],(t=o.slice(this.root.length,o.length))&&o.slice(0,this.root.length)===this.root&&n(t,l)},filter:function(n){var o=[];return this.forEach(function(t,l){n(t,l)&&o.push(l)}),o},file:function(n,o,t){if(arguments.length!==1)return n=this.root+n,A.call(this,n,o,t),this;if(x(n)){var l=n;return this.filter(function(k,E){return!E.dir&&l.test(k)})}var b=this.files[this.root+n];return b&&!b.dir?b:null},folder:function(n){if(!n)return this;if(x(n))return this.filter(function(b,k){return k.dir&&n.test(b)});var o=this.root+n,t=g.call(this,o),l=this.clone();return l.root=t.name,l},remove:function(n){n=this.root+n;var o=this.files[n];if(o||(n.slice(-1)!=="/"&&(n+="/"),o=this.files[n]),o&&!o.dir)delete this.files[n];else for(var t=this.filter(function(b,k){return k.name.slice(0,n.length)===n}),l=0;l<t.length;l++)delete this.files[t[l].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(n){var o,t={};try{if((t=e.extend(n||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),t.type==="binarystring"&&(t.type="string"),!t.type)throw new Error("No output type specified.");e.checkSupport(t.type),t.platform!=="darwin"&&t.platform!=="freebsd"&&t.platform!=="linux"&&t.platform!=="sunos"||(t.platform="UNIX"),t.platform==="win32"&&(t.platform="DOS");var l=t.comment||this.comment||"";o=i.generateWorker(this,t,l)}catch(b){(o=new u("error")).error(b)}return new r(o,t.type||"string",t.mimeType)},generateAsync:function(n,o){return this.generateInternalStream(n).accumulate(o)},generateNodeStream:function(n,o){return(n=n||{}).type||(n.type="nodebuffer"),this.generateInternalStream(n).toNodejsStream(o)}};j.exports=P},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(T,j,N){j.exports=T("stream")},{stream:void 0}],17:[function(T,j,N){var A=T("./DataReader");function v(e){A.call(this,e);for(var u=0;u<this.data.length;u++)e[u]=255&e[u]}T("../utils").inherits(v,A),v.prototype.byteAt=function(e){return this.data[this.zero+e]},v.prototype.lastIndexOfSignature=function(e){for(var u=e.charCodeAt(0),r=e.charCodeAt(1),m=e.charCodeAt(2),p=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===u&&this.data[a+1]===r&&this.data[a+2]===m&&this.data[a+3]===p)return a-this.zero;return-1},v.prototype.readAndCheckSignature=function(e){var u=e.charCodeAt(0),r=e.charCodeAt(1),m=e.charCodeAt(2),p=e.charCodeAt(3),a=this.readData(4);return u===a[0]&&r===a[1]&&m===a[2]&&p===a[3]},v.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},j.exports=v},{"../utils":32,"./DataReader":18}],18:[function(T,j,N){var A=T("../utils");function v(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var u,r=0;for(this.checkOffset(e),u=this.index+e-1;u>=this.index;u--)r=(r<<8)+this.byteAt(u);return this.index+=e,r},readString:function(e){return A.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},j.exports=v},{"../utils":32}],19:[function(T,j,N){var A=T("./Uint8ArrayReader");function v(e){A.call(this,e)}T("../utils").inherits(v,A),v.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},j.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(T,j,N){var A=T("./DataReader");function v(e){A.call(this,e)}T("../utils").inherits(v,A),v.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},v.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},v.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},v.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},j.exports=v},{"../utils":32,"./DataReader":18}],21:[function(T,j,N){var A=T("./ArrayReader");function v(e){A.call(this,e)}T("../utils").inherits(v,A),v.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},j.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(T,j,N){var A=T("../utils"),v=T("../support"),e=T("./ArrayReader"),u=T("./StringReader"),r=T("./NodeBufferReader"),m=T("./Uint8ArrayReader");j.exports=function(p){var a=A.getTypeOf(p);return A.checkSupport(a),a!=="string"||v.uint8array?a==="nodebuffer"?new r(p):v.uint8array?new m(A.transformTo("uint8array",p)):new e(A.transformTo("array",p)):new u(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(T,j,N){N.LOCAL_FILE_HEADER="PK",N.CENTRAL_FILE_HEADER="PK",N.CENTRAL_DIRECTORY_END="PK",N.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",N.ZIP64_CENTRAL_DIRECTORY_END="PK",N.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(T,j,N){var A=T("./GenericWorker"),v=T("../utils");function e(u){A.call(this,"ConvertWorker to "+u),this.destType=u}v.inherits(e,A),e.prototype.processChunk=function(u){this.push({data:v.transformTo(this.destType,u.data),meta:u.meta})},j.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(T,j,N){var A=T("./GenericWorker"),v=T("../crc32");function e(){A.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}T("../utils").inherits(e,A),e.prototype.processChunk=function(u){this.streamInfo.crc32=v(u.data,this.streamInfo.crc32||0),this.push(u)},j.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(T,j,N){var A=T("../utils"),v=T("./GenericWorker");function e(u){v.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}A.inherits(e,v),e.prototype.processChunk=function(u){if(u){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+u.data.length}v.prototype.processChunk.call(this,u)},j.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(T,j,N){var A=T("../utils"),v=T("./GenericWorker");function e(u){v.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(m){r.dataIsReady=!0,r.data=m,r.max=m&&m.length||0,r.type=A.getTypeOf(m),r.isPaused||r._tickAndRepeat()},function(m){r.error(m)})}A.inherits(e,v),e.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,A.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(A.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,r);break;case"uint8array":u=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":u=this.data.slice(this.index,r)}return this.index=r,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},j.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(T,j,N){function A(v){this.name=v||"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}A.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,e){return this._listeners[v].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,e){if(this._listeners[v])for(var u=0;u<this._listeners[v].length;u++)this._listeners[v][u].call(this,e)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var e=this;return v.on("data",function(u){e.processChunk(u)}),v.on("end",function(){e.end()}),v.on("error",function(u){e.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,e){return this.extraStreamInfo[v]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},j.exports=A},{}],29:[function(T,j,N){var A=T("../utils"),v=T("./ConvertWorker"),e=T("./GenericWorker"),u=T("../base64"),r=T("../support"),m=T("../external"),p=null;if(r.nodestream)try{p=T("../nodejs/NodejsStreamOutputAdapter")}catch{}function a(y,h){return new m.Promise(function(d,f){var g=[],x=y._internalType,P=y._outputType,n=y._mimeType;y.on("data",function(o,t){g.push(o),h&&h(t)}).on("error",function(o){g=[],f(o)}).on("end",function(){try{var o=function(t,l,b){switch(t){case"blob":return A.newBlob(A.transformTo("arraybuffer",l),b);case"base64":return u.encode(l);default:return A.transformTo(t,l)}}(P,function(t,l){var b,k=0,E=null,_=0;for(b=0;b<l.length;b++)_+=l[b].length;switch(t){case"string":return l.join("");case"array":return Array.prototype.concat.apply([],l);case"uint8array":for(E=new Uint8Array(_),b=0;b<l.length;b++)E.set(l[b],k),k+=l[b].length;return E;case"nodebuffer":return Buffer.concat(l);default:throw new Error("concat : unsupported type '"+t+"'")}}(x,g),n);d(o)}catch(t){f(t)}g=[]}).resume()})}function i(y,h,d){var f=h;switch(h){case"blob":case"arraybuffer":f="uint8array";break;case"base64":f="string"}try{this._internalType=f,this._outputType=h,this._mimeType=d,A.checkSupport(f),this._worker=y.pipe(new v(f)),y.lock()}catch(g){this._worker=new e("error"),this._worker.error(g)}}i.prototype={accumulate:function(y){return a(this,y)},on:function(y,h){var d=this;return y==="data"?this._worker.on(y,function(f){h.call(d,f.data,f.meta)}):this._worker.on(y,function(){A.delay(h,arguments,d)}),this},resume:function(){return A.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(y){if(A.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},y)}},j.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(T,j,N){if(N.base64=!0,N.array=!0,N.string=!0,N.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",N.nodebuffer=typeof Buffer<"u",N.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")N.blob=!1;else{var A=new ArrayBuffer(0);try{N.blob=new Blob([A],{type:"application/zip"}).size===0}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(A),N.blob=v.getBlob("application/zip").size===0}catch{N.blob=!1}}}try{N.nodestream=!!T("readable-stream").Readable}catch{N.nodestream=!1}},{"readable-stream":16}],31:[function(T,j,N){for(var A=T("./utils"),v=T("./support"),e=T("./nodejsUtils"),u=T("./stream/GenericWorker"),r=new Array(256),m=0;m<256;m++)r[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;r[254]=r[254]=1;function p(){u.call(this,"utf-8 decode"),this.leftOver=null}function a(){u.call(this,"utf-8 encode")}N.utf8encode=function(i){return v.nodebuffer?e.newBufferFrom(i,"utf-8"):function(y){var h,d,f,g,x,P=y.length,n=0;for(g=0;g<P;g++)(64512&(d=y.charCodeAt(g)))==55296&&g+1<P&&(64512&(f=y.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(f-56320),g++),n+=d<128?1:d<2048?2:d<65536?3:4;for(h=v.uint8array?new Uint8Array(n):new Array(n),g=x=0;x<n;g++)(64512&(d=y.charCodeAt(g)))==55296&&g+1<P&&(64512&(f=y.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(f-56320),g++),d<128?h[x++]=d:(d<2048?h[x++]=192|d>>>6:(d<65536?h[x++]=224|d>>>12:(h[x++]=240|d>>>18,h[x++]=128|d>>>12&63),h[x++]=128|d>>>6&63),h[x++]=128|63&d);return h}(i)},N.utf8decode=function(i){return v.nodebuffer?A.transformTo("nodebuffer",i).toString("utf-8"):function(y){var h,d,f,g,x=y.length,P=new Array(2*x);for(h=d=0;h<x;)if((f=y[h++])<128)P[d++]=f;else if(4<(g=r[f]))P[d++]=65533,h+=g-1;else{for(f&=g===2?31:g===3?15:7;1<g&&h<x;)f=f<<6|63&y[h++],g--;1<g?P[d++]=65533:f<65536?P[d++]=f:(f-=65536,P[d++]=55296|f>>10&1023,P[d++]=56320|1023&f)}return P.length!==d&&(P.subarray?P=P.subarray(0,d):P.length=d),A.applyFromCharCode(P)}(i=A.transformTo(v.uint8array?"uint8array":"array",i))},A.inherits(p,u),p.prototype.processChunk=function(i){var y=A.transformTo(v.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var h=y;(y=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),y.set(h,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var d=function(g,x){var P;for((x=x||g.length)>g.length&&(x=g.length),P=x-1;0<=P&&(192&g[P])==128;)P--;return P<0||P===0?x:P+r[g[P]]>x?P:x}(y),f=y;d!==y.length&&(v.uint8array?(f=y.subarray(0,d),this.leftOver=y.subarray(d,y.length)):(f=y.slice(0,d),this.leftOver=y.slice(d,y.length))),this.push({data:N.utf8decode(f),meta:i.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:N.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},N.Utf8DecodeWorker=p,A.inherits(a,u),a.prototype.processChunk=function(i){this.push({data:N.utf8encode(i.data),meta:i.meta})},N.Utf8EncodeWorker=a},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(T,j,N){var A=T("./support"),v=T("./base64"),e=T("./nodejsUtils"),u=T("./external");function r(h){return h}function m(h,d){for(var f=0;f<h.length;++f)d[f]=255&h.charCodeAt(f);return d}T("setimmediate"),N.newBlob=function(h,d){N.checkSupport("blob");try{return new Blob([h],{type:d})}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return f.append(h),f.getBlob(d)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(h,d,f){var g=[],x=0,P=h.length;if(P<=f)return String.fromCharCode.apply(null,h);for(;x<P;)d==="array"||d==="nodebuffer"?g.push(String.fromCharCode.apply(null,h.slice(x,Math.min(x+f,P)))):g.push(String.fromCharCode.apply(null,h.subarray(x,Math.min(x+f,P)))),x+=f;return g.join("")},stringifyByChar:function(h){for(var d="",f=0;f<h.length;f++)d+=String.fromCharCode(h[f]);return d},applyCanBeUsed:{uint8array:function(){try{return A.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return A.nodebuffer&&String.fromCharCode.apply(null,e.allocBuffer(1)).length===1}catch{return!1}}()}};function a(h){var d=65536,f=N.getTypeOf(h),g=!0;if(f==="uint8array"?g=p.applyCanBeUsed.uint8array:f==="nodebuffer"&&(g=p.applyCanBeUsed.nodebuffer),g)for(;1<d;)try{return p.stringifyByChunk(h,f,d)}catch{d=Math.floor(d/2)}return p.stringifyByChar(h)}function i(h,d){for(var f=0;f<h.length;f++)d[f]=h[f];return d}N.applyFromCharCode=a;var y={};y.string={string:r,array:function(h){return m(h,new Array(h.length))},arraybuffer:function(h){return y.string.uint8array(h).buffer},uint8array:function(h){return m(h,new Uint8Array(h.length))},nodebuffer:function(h){return m(h,e.allocBuffer(h.length))}},y.array={string:a,array:r,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return e.newBufferFrom(h)}},y.arraybuffer={string:function(h){return a(new Uint8Array(h))},array:function(h){return i(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:r,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return e.newBufferFrom(new Uint8Array(h))}},y.uint8array={string:a,array:function(h){return i(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:r,nodebuffer:function(h){return e.newBufferFrom(h)}},y.nodebuffer={string:a,array:function(h){return i(h,new Array(h.length))},arraybuffer:function(h){return y.nodebuffer.uint8array(h).buffer},uint8array:function(h){return i(h,new Uint8Array(h.length))},nodebuffer:r},N.transformTo=function(h,d){if(d=d||"",!h)return d;N.checkSupport(h);var f=N.getTypeOf(d);return y[f][h](d)},N.resolve=function(h){for(var d=h.split("/"),f=[],g=0;g<d.length;g++){var x=d[g];x==="."||x===""&&g!==0&&g!==d.length-1||(x===".."?f.pop():f.push(x))}return f.join("/")},N.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":A.nodebuffer&&e.isBuffer(h)?"nodebuffer":A.uint8array&&h instanceof Uint8Array?"uint8array":A.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},N.checkSupport=function(h){if(!A[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},N.MAX_VALUE_16BITS=65535,N.MAX_VALUE_32BITS=-1,N.pretty=function(h){var d,f,g="";for(f=0;f<(h||"").length;f++)g+="\\x"+((d=h.charCodeAt(f))<16?"0":"")+d.toString(16).toUpperCase();return g},N.delay=function(h,d,f){setImmediate(function(){h.apply(f||null,d||[])})},N.inherits=function(h,d){function f(){}f.prototype=d.prototype,h.prototype=new f},N.extend=function(){var h,d,f={};for(h=0;h<arguments.length;h++)for(d in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],d)&&f[d]===void 0&&(f[d]=arguments[h][d]);return f},N.prepareContent=function(h,d,f,g,x){return u.Promise.resolve(d).then(function(P){return A.blob&&(P instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(P))!==-1)&&typeof FileReader<"u"?new u.Promise(function(n,o){var t=new FileReader;t.onload=function(l){n(l.target.result)},t.onerror=function(l){o(l.target.error)},t.readAsArrayBuffer(P)}):P}).then(function(P){var n=N.getTypeOf(P);return n?(n==="arraybuffer"?P=N.transformTo("uint8array",P):n==="string"&&(x?P=v.decode(P):f&&g!==!0&&(P=function(o){return m(o,A.uint8array?new Uint8Array(o.length):new Array(o.length))}(P))),P):u.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(T,j,N){var A=T("./reader/readerFor"),v=T("./utils"),e=T("./signature"),u=T("./zipEntry"),r=T("./support");function m(p){this.files=[],this.loadOptions=p}m.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(a)+", expected "+v.pretty(p)+")")}},isSignature:function(p,a){var i=this.reader.index;this.reader.setIndex(p);var y=this.reader.readString(4)===a;return this.reader.setIndex(i),y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),a=r.uint8array?"uint8array":"array",i=v.transformTo(a,p);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,a,i,y=this.zip64EndOfCentralSize-44;0<y;)p=this.reader.readInt(2),a=this.reader.readInt(4),i=this.reader.readData(a),this.zip64ExtensibleData[p]={id:p,length:a,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,a;for(p=0;p<this.files.length;p++)a=this.files[p],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(p=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var a=p;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var y=a-i;if(0<y)this.isSignature(a,e.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(p){this.reader=A(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},j.exports=m},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(T,j,N){var A=T("./reader/readerFor"),v=T("./utils"),e=T("./compressedObject"),u=T("./crc32"),r=T("./utf8"),m=T("./compressions"),p=T("./support");function a(i,y){this.options=i,this.loadOptions=y}a.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var y,h;if(i.skip(22),this.fileNameLength=i.readInt(2),h=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((y=function(d){for(var f in m)if(Object.prototype.hasOwnProperty.call(m,f)&&m[f].magic===d)return m[f];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,y,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var y=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(y),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=A(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var y,h,d,f=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<f;)y=i.readInt(2),h=i.readInt(2),d=i.readData(h),this.extraFields[y]={id:y,length:h,value:d};i.setIndex(f)},handleUTF8:function(){var i=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=r.utf8decode(this.fileName),this.fileCommentStr=r.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var h=v.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var d=this.findExtraFieldUnicodeComment();if(d!==null)this.fileCommentStr=d;else{var f=v.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var y=A(i.value);return y.readInt(1)!==1||u(this.fileName)!==y.readInt(4)?null:r.utf8decode(y.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var y=A(i.value);return y.readInt(1)!==1||u(this.fileComment)!==y.readInt(4)?null:r.utf8decode(y.readData(i.length-5))}return null}},j.exports=a},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(T,j,N){function A(y,h,d){this.name=y,this.dir=d.dir,this.date=d.date,this.comment=d.comment,this.unixPermissions=d.unixPermissions,this.dosPermissions=d.dosPermissions,this._data=h,this._dataBinary=d.binary,this.options={compression:d.compression,compressionOptions:d.compressionOptions}}var v=T("./stream/StreamHelper"),e=T("./stream/DataWorker"),u=T("./utf8"),r=T("./compressedObject"),m=T("./stream/GenericWorker");A.prototype={internalStream:function(y){var h=null,d="string";try{if(!y)throw new Error("No output type specified.");var f=(d=y.toLowerCase())==="string"||d==="text";d!=="binarystring"&&d!=="text"||(d="string"),h=this._decompressWorker();var g=!this._dataBinary;g&&!f&&(h=h.pipe(new u.Utf8EncodeWorker)),!g&&f&&(h=h.pipe(new u.Utf8DecodeWorker))}catch(x){(h=new m("error")).error(x)}return new v(h,d,"")},async:function(y,h){return this.internalStream(y).accumulate(h)},nodeStream:function(y,h){return this.internalStream(y||"nodebuffer").toNodejsStream(h)},_compressWorker:function(y,h){if(this._data instanceof r&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var d=this._decompressWorker();return this._dataBinary||(d=d.pipe(new u.Utf8EncodeWorker)),r.createWorkerFrom(d,y,h)},_decompressWorker:function(){return this._data instanceof r?this._data.getContentWorker():this._data instanceof m?this._data:new e(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<p.length;i++)A.prototype[p[i]]=a;j.exports=A},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(T,j,N){(function(A){var v,e,u=A.MutationObserver||A.WebKitMutationObserver;if(u){var r=0,m=new u(y),p=A.document.createTextNode("");m.observe(p,{characterData:!0}),v=function(){p.data=r=++r%2}}else if(A.setImmediate||A.MessageChannel===void 0)v="document"in A&&"onreadystatechange"in A.document.createElement("script")?function(){var h=A.document.createElement("script");h.onreadystatechange=function(){y(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},A.document.documentElement.appendChild(h)}:function(){setTimeout(y,0)};else{var a=new A.MessageChannel;a.port1.onmessage=y,v=function(){a.port2.postMessage(0)}}var i=[];function y(){var h,d;e=!0;for(var f=i.length;f;){for(d=i,i=[],h=-1;++h<f;)d[h]();f=i.length}e=!1}j.exports=function(h){i.push(h)!==1||e||v()}}).call(this,typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(T,j,N){var A=T("immediate");function v(){}var e={},u=["REJECTED"],r=["FULFILLED"],m=["PENDING"];function p(f){if(typeof f!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,f!==v&&h(this,f)}function a(f,g,x){this.promise=f,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function i(f,g,x){A(function(){var P;try{P=g(x)}catch(n){return e.reject(f,n)}P===f?e.reject(f,new TypeError("Cannot resolve promise with itself")):e.resolve(f,P)})}function y(f){var g=f&&f.then;if(f&&(typeof f=="object"||typeof f=="function")&&typeof g=="function")return function(){g.apply(f,arguments)}}function h(f,g){var x=!1;function P(t){x||(x=!0,e.reject(f,t))}function n(t){x||(x=!0,e.resolve(f,t))}var o=d(function(){g(n,P)});o.status==="error"&&P(o.value)}function d(f,g){var x={};try{x.value=f(g),x.status="success"}catch(P){x.status="error",x.value=P}return x}(j.exports=p).prototype.finally=function(f){if(typeof f!="function")return this;var g=this.constructor;return this.then(function(x){return g.resolve(f()).then(function(){return x})},function(x){return g.resolve(f()).then(function(){throw x})})},p.prototype.catch=function(f){return this.then(null,f)},p.prototype.then=function(f,g){if(typeof f!="function"&&this.state===r||typeof g!="function"&&this.state===u)return this;var x=new this.constructor(v);return this.state!==m?i(x,this.state===r?f:g,this.outcome):this.queue.push(new a(x,f,g)),x},a.prototype.callFulfilled=function(f){e.resolve(this.promise,f)},a.prototype.otherCallFulfilled=function(f){i(this.promise,this.onFulfilled,f)},a.prototype.callRejected=function(f){e.reject(this.promise,f)},a.prototype.otherCallRejected=function(f){i(this.promise,this.onRejected,f)},e.resolve=function(f,g){var x=d(y,g);if(x.status==="error")return e.reject(f,x.value);var P=x.value;if(P)h(f,P);else{f.state=r,f.outcome=g;for(var n=-1,o=f.queue.length;++n<o;)f.queue[n].callFulfilled(g)}return f},e.reject=function(f,g){f.state=u,f.outcome=g;for(var x=-1,P=f.queue.length;++x<P;)f.queue[x].callRejected(g);return f},p.resolve=function(f){return f instanceof this?f:e.resolve(new this(v),f)},p.reject=function(f){var g=new this(v);return e.reject(g,f)},p.all=function(f){var g=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=f.length,P=!1;if(!x)return this.resolve([]);for(var n=new Array(x),o=0,t=-1,l=new this(v);++t<x;)b(f[t],t);return l;function b(k,E){g.resolve(k).then(function(_){n[E]=_,++o!==x||P||(P=!0,e.resolve(l,n))},function(_){P||(P=!0,e.reject(l,_))})}},p.race=function(f){var g=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=f.length,P=!1;if(!x)return this.resolve([]);for(var n=-1,o=new this(v);++n<x;)t=f[n],g.resolve(t).then(function(l){P||(P=!0,e.resolve(o,l))},function(l){P||(P=!0,e.reject(o,l))});var t;return o}},{immediate:36}],38:[function(T,j,N){var A={};(0,T("./lib/utils/common").assign)(A,T("./lib/deflate"),T("./lib/inflate"),T("./lib/zlib/constants")),j.exports=A},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(T,j,N){var A=T("./zlib/deflate"),v=T("./utils/common"),e=T("./utils/strings"),u=T("./zlib/messages"),r=T("./zlib/zstream"),m=Object.prototype.toString,p=0,a=-1,i=0,y=8;function h(f){if(!(this instanceof h))return new h(f);this.options=v.assign({level:a,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},f||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var x=A.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(x!==p)throw new Error(u[x]);if(g.header&&A.deflateSetHeader(this.strm,g.header),g.dictionary){var P;if(P=typeof g.dictionary=="string"?e.string2buf(g.dictionary):m.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(x=A.deflateSetDictionary(this.strm,P))!==p)throw new Error(u[x]);this._dict_set=!0}}function d(f,g){var x=new h(g);if(x.push(f,!0),x.err)throw x.msg||u[x.err];return x.result}h.prototype.push=function(f,g){var x,P,n=this.strm,o=this.options.chunkSize;if(this.ended)return!1;P=g===~~g?g:g===!0?4:0,typeof f=="string"?n.input=e.string2buf(f):m.call(f)==="[object ArrayBuffer]"?n.input=new Uint8Array(f):n.input=f,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new v.Buf8(o),n.next_out=0,n.avail_out=o),(x=A.deflate(n,P))!==1&&x!==p)return this.onEnd(x),!(this.ended=!0);n.avail_out!==0&&(n.avail_in!==0||P!==4&&P!==2)||(this.options.to==="string"?this.onData(e.buf2binstring(v.shrinkBuf(n.output,n.next_out))):this.onData(v.shrinkBuf(n.output,n.next_out)))}while((0<n.avail_in||n.avail_out===0)&&x!==1);return P===4?(x=A.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===p):P!==2||(this.onEnd(p),!(n.avail_out=0))},h.prototype.onData=function(f){this.chunks.push(f)},h.prototype.onEnd=function(f){f===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},N.Deflate=h,N.deflate=d,N.deflateRaw=function(f,g){return(g=g||{}).raw=!0,d(f,g)},N.gzip=function(f,g){return(g=g||{}).gzip=!0,d(f,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(T,j,N){var A=T("./zlib/inflate"),v=T("./utils/common"),e=T("./utils/strings"),u=T("./zlib/constants"),r=T("./zlib/messages"),m=T("./zlib/zstream"),p=T("./zlib/gzheader"),a=Object.prototype.toString;function i(h){if(!(this instanceof i))return new i(h);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},h||{});var d=this.options;d.raw&&0<=d.windowBits&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),!(0<=d.windowBits&&d.windowBits<16)||h&&h.windowBits||(d.windowBits+=32),15<d.windowBits&&d.windowBits<48&&!(15&d.windowBits)&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var f=A.inflateInit2(this.strm,d.windowBits);if(f!==u.Z_OK)throw new Error(r[f]);this.header=new p,A.inflateGetHeader(this.strm,this.header)}function y(h,d){var f=new i(d);if(f.push(h,!0),f.err)throw f.msg||r[f.err];return f.result}i.prototype.push=function(h,d){var f,g,x,P,n,o,t=this.strm,l=this.options.chunkSize,b=this.options.dictionary,k=!1;if(this.ended)return!1;g=d===~~d?d:d===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof h=="string"?t.input=e.binstring2buf(h):a.call(h)==="[object ArrayBuffer]"?t.input=new Uint8Array(h):t.input=h,t.next_in=0,t.avail_in=t.input.length;do{if(t.avail_out===0&&(t.output=new v.Buf8(l),t.next_out=0,t.avail_out=l),(f=A.inflate(t,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&b&&(o=typeof b=="string"?e.string2buf(b):a.call(b)==="[object ArrayBuffer]"?new Uint8Array(b):b,f=A.inflateSetDictionary(this.strm,o)),f===u.Z_BUF_ERROR&&k===!0&&(f=u.Z_OK,k=!1),f!==u.Z_STREAM_END&&f!==u.Z_OK)return this.onEnd(f),!(this.ended=!0);t.next_out&&(t.avail_out!==0&&f!==u.Z_STREAM_END&&(t.avail_in!==0||g!==u.Z_FINISH&&g!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=e.utf8border(t.output,t.next_out),P=t.next_out-x,n=e.buf2string(t.output,x),t.next_out=P,t.avail_out=l-P,P&&v.arraySet(t.output,t.output,x,P,0),this.onData(n)):this.onData(v.shrinkBuf(t.output,t.next_out)))),t.avail_in===0&&t.avail_out===0&&(k=!0)}while((0<t.avail_in||t.avail_out===0)&&f!==u.Z_STREAM_END);return f===u.Z_STREAM_END&&(g=u.Z_FINISH),g===u.Z_FINISH?(f=A.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===u.Z_OK):g!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(t.avail_out=0))},i.prototype.onData=function(h){this.chunks.push(h)},i.prototype.onEnd=function(h){h===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},N.Inflate=i,N.inflate=y,N.inflateRaw=function(h,d){return(d=d||{}).raw=!0,y(h,d)},N.ungzip=y},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(T,j,N){var A=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";N.assign=function(u){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var m=r.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var p in m)m.hasOwnProperty(p)&&(u[p]=m[p])}}return u},N.shrinkBuf=function(u,r){return u.length===r?u:u.subarray?u.subarray(0,r):(u.length=r,u)};var v={arraySet:function(u,r,m,p,a){if(r.subarray&&u.subarray)u.set(r.subarray(m,m+p),a);else for(var i=0;i<p;i++)u[a+i]=r[m+i]},flattenChunks:function(u){var r,m,p,a,i,y;for(r=p=0,m=u.length;r<m;r++)p+=u[r].length;for(y=new Uint8Array(p),r=a=0,m=u.length;r<m;r++)i=u[r],y.set(i,a),a+=i.length;return y}},e={arraySet:function(u,r,m,p,a){for(var i=0;i<p;i++)u[a+i]=r[m+i]},flattenChunks:function(u){return[].concat.apply([],u)}};N.setTyped=function(u){u?(N.Buf8=Uint8Array,N.Buf16=Uint16Array,N.Buf32=Int32Array,N.assign(N,v)):(N.Buf8=Array,N.Buf16=Array,N.Buf32=Array,N.assign(N,e))},N.setTyped(A)},{}],42:[function(T,j,N){var A=T("./common"),v=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch{v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}for(var u=new A.Buf8(256),r=0;r<256;r++)u[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function m(p,a){if(a<65537&&(p.subarray&&e||!p.subarray&&v))return String.fromCharCode.apply(null,A.shrinkBuf(p,a));for(var i="",y=0;y<a;y++)i+=String.fromCharCode(p[y]);return i}u[254]=u[254]=1,N.string2buf=function(p){var a,i,y,h,d,f=p.length,g=0;for(h=0;h<f;h++)(64512&(i=p.charCodeAt(h)))==55296&&h+1<f&&(64512&(y=p.charCodeAt(h+1)))==56320&&(i=65536+(i-55296<<10)+(y-56320),h++),g+=i<128?1:i<2048?2:i<65536?3:4;for(a=new A.Buf8(g),h=d=0;d<g;h++)(64512&(i=p.charCodeAt(h)))==55296&&h+1<f&&(64512&(y=p.charCodeAt(h+1)))==56320&&(i=65536+(i-55296<<10)+(y-56320),h++),i<128?a[d++]=i:(i<2048?a[d++]=192|i>>>6:(i<65536?a[d++]=224|i>>>12:(a[d++]=240|i>>>18,a[d++]=128|i>>>12&63),a[d++]=128|i>>>6&63),a[d++]=128|63&i);return a},N.buf2binstring=function(p){return m(p,p.length)},N.binstring2buf=function(p){for(var a=new A.Buf8(p.length),i=0,y=a.length;i<y;i++)a[i]=p.charCodeAt(i);return a},N.buf2string=function(p,a){var i,y,h,d,f=a||p.length,g=new Array(2*f);for(i=y=0;i<f;)if((h=p[i++])<128)g[y++]=h;else if(4<(d=u[h]))g[y++]=65533,i+=d-1;else{for(h&=d===2?31:d===3?15:7;1<d&&i<f;)h=h<<6|63&p[i++],d--;1<d?g[y++]=65533:h<65536?g[y++]=h:(h-=65536,g[y++]=55296|h>>10&1023,g[y++]=56320|1023&h)}return m(g,y)},N.utf8border=function(p,a){var i;for((a=a||p.length)>p.length&&(a=p.length),i=a-1;0<=i&&(192&p[i])==128;)i--;return i<0||i===0?a:i+u[p[i]]>a?i:a}},{"./common":41}],43:[function(T,j,N){j.exports=function(A,v,e,u){for(var r=65535&A|0,m=A>>>16&65535|0,p=0;e!==0;){for(e-=p=2e3<e?2e3:e;m=m+(r=r+v[u++]|0)|0,--p;);r%=65521,m%=65521}return r|m<<16|0}},{}],44:[function(T,j,N){j.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(T,j,N){var A=function(){for(var v,e=[],u=0;u<256;u++){v=u;for(var r=0;r<8;r++)v=1&v?3988292384^v>>>1:v>>>1;e[u]=v}return e}();j.exports=function(v,e,u,r){var m=A,p=r+u;v^=-1;for(var a=r;a<p;a++)v=v>>>8^m[255&(v^e[a])];return-1^v}},{}],46:[function(T,j,N){var A,v=T("../utils/common"),e=T("./trees"),u=T("./adler32"),r=T("./crc32"),m=T("./messages"),p=0,a=4,i=0,y=-2,h=-1,d=4,f=2,g=8,x=9,P=286,n=30,o=19,t=2*P+1,l=15,b=3,k=258,E=k+b+1,_=42,C=113,s=1,R=2,V=3,M=4;function K(c,F){return c.msg=m[F],F}function W(c){return(c<<1)-(4<c?9:0)}function J(c){for(var F=c.length;0<=--F;)c[F]=0}function z(c){var F=c.state,I=F.pending;I>c.avail_out&&(I=c.avail_out),I!==0&&(v.arraySet(c.output,F.pending_buf,F.pending_out,I,c.next_out),c.next_out+=I,F.pending_out+=I,c.total_out+=I,c.avail_out-=I,F.pending-=I,F.pending===0&&(F.pending_out=0))}function O(c,F){e._tr_flush_block(c,0<=c.block_start?c.block_start:-1,c.strstart-c.block_start,F),c.block_start=c.strstart,z(c.strm)}function Y(c,F){c.pending_buf[c.pending++]=F}function X(c,F){c.pending_buf[c.pending++]=F>>>8&255,c.pending_buf[c.pending++]=255&F}function Z(c,F){var I,S,w=c.max_chain_length,D=c.strstart,L=c.prev_length,U=c.nice_match,B=c.strstart>c.w_size-E?c.strstart-(c.w_size-E):0,H=c.window,G=c.w_mask,$=c.prev,q=c.strstart+k,ae=H[D+L-1],ee=H[D+L];c.prev_length>=c.good_match&&(w>>=2),U>c.lookahead&&(U=c.lookahead);do if(H[(I=F)+L]===ee&&H[I+L-1]===ae&&H[I]===H[D]&&H[++I]===H[D+1]){D+=2,I++;do;while(H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&H[++D]===H[++I]&&D<q);if(S=k-(q-D),D=q-k,L<S){if(c.match_start=F,U<=(L=S))break;ae=H[D+L-1],ee=H[D+L]}}while((F=$[F&G])>B&&--w!=0);return L<=c.lookahead?L:c.lookahead}function ne(c){var F,I,S,w,D,L,U,B,H,G,$=c.w_size;do{if(w=c.window_size-c.lookahead-c.strstart,c.strstart>=$+($-E)){for(v.arraySet(c.window,c.window,$,$,0),c.match_start-=$,c.strstart-=$,c.block_start-=$,F=I=c.hash_size;S=c.head[--F],c.head[F]=$<=S?S-$:0,--I;);for(F=I=$;S=c.prev[--F],c.prev[F]=$<=S?S-$:0,--I;);w+=$}if(c.strm.avail_in===0)break;if(L=c.strm,U=c.window,B=c.strstart+c.lookahead,H=w,G=void 0,G=L.avail_in,H<G&&(G=H),I=G===0?0:(L.avail_in-=G,v.arraySet(U,L.input,L.next_in,G,B),L.state.wrap===1?L.adler=u(L.adler,U,G,B):L.state.wrap===2&&(L.adler=r(L.adler,U,G,B)),L.next_in+=G,L.total_in+=G,G),c.lookahead+=I,c.lookahead+c.insert>=b)for(D=c.strstart-c.insert,c.ins_h=c.window[D],c.ins_h=(c.ins_h<<c.hash_shift^c.window[D+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[D+b-1])&c.hash_mask,c.prev[D&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=D,D++,c.insert--,!(c.lookahead+c.insert<b)););}while(c.lookahead<E&&c.strm.avail_in!==0)}function le(c,F){for(var I,S;;){if(c.lookahead<E){if(ne(c),c.lookahead<E&&F===p)return s;if(c.lookahead===0)break}if(I=0,c.lookahead>=b&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,I=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),I!==0&&c.strstart-I<=c.w_size-E&&(c.match_length=Z(c,I)),c.match_length>=b)if(S=e._tr_tally(c,c.strstart-c.match_start,c.match_length-b),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=b){for(c.match_length--;c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,I=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart,--c.match_length!=0;);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else S=e._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(S&&(O(c,!1),c.strm.avail_out===0))return s}return c.insert=c.strstart<b-1?c.strstart:b-1,F===a?(O(c,!0),c.strm.avail_out===0?V:M):c.last_lit&&(O(c,!1),c.strm.avail_out===0)?s:R}function Q(c,F){for(var I,S,w;;){if(c.lookahead<E){if(ne(c),c.lookahead<E&&F===p)return s;if(c.lookahead===0)break}if(I=0,c.lookahead>=b&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,I=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=b-1,I!==0&&c.prev_length<c.max_lazy_match&&c.strstart-I<=c.w_size-E&&(c.match_length=Z(c,I),c.match_length<=5&&(c.strategy===1||c.match_length===b&&4096<c.strstart-c.match_start)&&(c.match_length=b-1)),c.prev_length>=b&&c.match_length<=c.prev_length){for(w=c.strstart+c.lookahead-b,S=e._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-b),c.lookahead-=c.prev_length-1,c.prev_length-=2;++c.strstart<=w&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,I=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),--c.prev_length!=0;);if(c.match_available=0,c.match_length=b-1,c.strstart++,S&&(O(c,!1),c.strm.avail_out===0))return s}else if(c.match_available){if((S=e._tr_tally(c,0,c.window[c.strstart-1]))&&O(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return s}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(S=e._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<b-1?c.strstart:b-1,F===a?(O(c,!0),c.strm.avail_out===0?V:M):c.last_lit&&(O(c,!1),c.strm.avail_out===0)?s:R}function te(c,F,I,S,w){this.good_length=c,this.max_lazy=F,this.nice_length=I,this.max_chain=S,this.func=w}function oe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(2*t),this.dyn_dtree=new v.Buf16(2*(2*n+1)),this.bl_tree=new v.Buf16(2*(2*o+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(l+1),this.heap=new v.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function se(c){var F;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=f,(F=c.state).pending=0,F.pending_out=0,F.wrap<0&&(F.wrap=-F.wrap),F.status=F.wrap?_:C,c.adler=F.wrap===2?0:1,F.last_flush=p,e._tr_init(F),i):K(c,y)}function de(c){var F=se(c);return F===i&&function(I){I.window_size=2*I.w_size,J(I.head),I.max_lazy_match=A[I.level].max_lazy,I.good_match=A[I.level].good_length,I.nice_match=A[I.level].nice_length,I.max_chain_length=A[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=b-1,I.match_available=0,I.ins_h=0}(c.state),F}function he(c,F,I,S,w,D){if(!c)return y;var L=1;if(F===h&&(F=6),S<0?(L=0,S=-S):15<S&&(L=2,S-=16),w<1||x<w||I!==g||S<8||15<S||F<0||9<F||D<0||d<D)return K(c,y);S===8&&(S=9);var U=new oe;return(c.state=U).strm=c,U.wrap=L,U.gzhead=null,U.w_bits=S,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=w+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+b-1)/b),U.window=new v.Buf8(2*U.w_size),U.head=new v.Buf16(U.hash_size),U.prev=new v.Buf16(U.w_size),U.lit_bufsize=1<<w+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new v.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=F,U.strategy=D,U.method=I,de(c)}A=[new te(0,0,0,0,function(c,F){var I=65535;for(I>c.pending_buf_size-5&&(I=c.pending_buf_size-5);;){if(c.lookahead<=1){if(ne(c),c.lookahead===0&&F===p)return s;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var S=c.block_start+I;if((c.strstart===0||c.strstart>=S)&&(c.lookahead=c.strstart-S,c.strstart=S,O(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-E&&(O(c,!1),c.strm.avail_out===0))return s}return c.insert=0,F===a?(O(c,!0),c.strm.avail_out===0?V:M):(c.strstart>c.block_start&&(O(c,!1),c.strm.avail_out),s)}),new te(4,4,8,4,le),new te(4,5,16,8,le),new te(4,6,32,32,le),new te(4,4,16,16,Q),new te(8,16,32,32,Q),new te(8,16,128,128,Q),new te(8,32,128,256,Q),new te(32,128,258,1024,Q),new te(32,258,258,4096,Q)],N.deflateInit=function(c,F){return he(c,F,g,15,8,0)},N.deflateInit2=he,N.deflateReset=de,N.deflateResetKeep=se,N.deflateSetHeader=function(c,F){return c&&c.state?c.state.wrap!==2?y:(c.state.gzhead=F,i):y},N.deflate=function(c,F){var I,S,w,D;if(!c||!c.state||5<F||F<0)return c?K(c,y):y;if(S=c.state,!c.output||!c.input&&c.avail_in!==0||S.status===666&&F!==a)return K(c,c.avail_out===0?-5:y);if(S.strm=c,I=S.last_flush,S.last_flush=F,S.status===_)if(S.wrap===2)c.adler=0,Y(S,31),Y(S,139),Y(S,8),S.gzhead?(Y(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),Y(S,255&S.gzhead.time),Y(S,S.gzhead.time>>8&255),Y(S,S.gzhead.time>>16&255),Y(S,S.gzhead.time>>24&255),Y(S,S.level===9?2:2<=S.strategy||S.level<2?4:0),Y(S,255&S.gzhead.os),S.gzhead.extra&&S.gzhead.extra.length&&(Y(S,255&S.gzhead.extra.length),Y(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(c.adler=r(c.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(Y(S,0),Y(S,0),Y(S,0),Y(S,0),Y(S,0),Y(S,S.level===9?2:2<=S.strategy||S.level<2?4:0),Y(S,3),S.status=C);else{var L=g+(S.w_bits-8<<4)<<8;L|=(2<=S.strategy||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6,S.strstart!==0&&(L|=32),L+=31-L%31,S.status=C,X(S,L),S.strstart!==0&&(X(S,c.adler>>>16),X(S,65535&c.adler)),c.adler=1}if(S.status===69)if(S.gzhead.extra){for(w=S.pending;S.gzindex<(65535&S.gzhead.extra.length)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),z(c),w=S.pending,S.pending!==S.pending_buf_size));)Y(S,255&S.gzhead.extra[S.gzindex]),S.gzindex++;S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){w=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),z(c),w=S.pending,S.pending===S.pending_buf_size)){D=1;break}D=S.gzindex<S.gzhead.name.length?255&S.gzhead.name.charCodeAt(S.gzindex++):0,Y(S,D)}while(D!==0);S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),D===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===91)if(S.gzhead.comment){w=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),z(c),w=S.pending,S.pending===S.pending_buf_size)){D=1;break}D=S.gzindex<S.gzhead.comment.length?255&S.gzhead.comment.charCodeAt(S.gzindex++):0,Y(S,D)}while(D!==0);S.gzhead.hcrc&&S.pending>w&&(c.adler=r(c.adler,S.pending_buf,S.pending-w,w)),D===0&&(S.status=103)}else S.status=103;if(S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&z(c),S.pending+2<=S.pending_buf_size&&(Y(S,255&c.adler),Y(S,c.adler>>8&255),c.adler=0,S.status=C)):S.status=C),S.pending!==0){if(z(c),c.avail_out===0)return S.last_flush=-1,i}else if(c.avail_in===0&&W(F)<=W(I)&&F!==a)return K(c,-5);if(S.status===666&&c.avail_in!==0)return K(c,-5);if(c.avail_in!==0||S.lookahead!==0||F!==p&&S.status!==666){var U=S.strategy===2?function(B,H){for(var G;;){if(B.lookahead===0&&(ne(B),B.lookahead===0)){if(H===p)return s;break}if(B.match_length=0,G=e._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,G&&(O(B,!1),B.strm.avail_out===0))return s}return B.insert=0,H===a?(O(B,!0),B.strm.avail_out===0?V:M):B.last_lit&&(O(B,!1),B.strm.avail_out===0)?s:R}(S,F):S.strategy===3?function(B,H){for(var G,$,q,ae,ee=B.window;;){if(B.lookahead<=k){if(ne(B),B.lookahead<=k&&H===p)return s;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=b&&0<B.strstart&&($=ee[q=B.strstart-1])===ee[++q]&&$===ee[++q]&&$===ee[++q]){ae=B.strstart+k;do;while($===ee[++q]&&$===ee[++q]&&$===ee[++q]&&$===ee[++q]&&$===ee[++q]&&$===ee[++q]&&$===ee[++q]&&$===ee[++q]&&q<ae);B.match_length=k-(ae-q),B.match_length>B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=b?(G=e._tr_tally(B,1,B.match_length-b),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(G=e._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),G&&(O(B,!1),B.strm.avail_out===0))return s}return B.insert=0,H===a?(O(B,!0),B.strm.avail_out===0?V:M):B.last_lit&&(O(B,!1),B.strm.avail_out===0)?s:R}(S,F):A[S.level].func(S,F);if(U!==V&&U!==M||(S.status=666),U===s||U===V)return c.avail_out===0&&(S.last_flush=-1),i;if(U===R&&(F===1?e._tr_align(S):F!==5&&(e._tr_stored_block(S,0,0,!1),F===3&&(J(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),z(c),c.avail_out===0))return S.last_flush=-1,i}return F!==a?i:S.wrap<=0?1:(S.wrap===2?(Y(S,255&c.adler),Y(S,c.adler>>8&255),Y(S,c.adler>>16&255),Y(S,c.adler>>24&255),Y(S,255&c.total_in),Y(S,c.total_in>>8&255),Y(S,c.total_in>>16&255),Y(S,c.total_in>>24&255)):(X(S,c.adler>>>16),X(S,65535&c.adler)),z(c),0<S.wrap&&(S.wrap=-S.wrap),S.pending!==0?i:1)},N.deflateEnd=function(c){var F;return c&&c.state?(F=c.state.status)!==_&&F!==69&&F!==73&&F!==91&&F!==103&&F!==C&&F!==666?K(c,y):(c.state=null,F===C?K(c,-3):i):y},N.deflateSetDictionary=function(c,F){var I,S,w,D,L,U,B,H,G=F.length;if(!c||!c.state||(D=(I=c.state).wrap)===2||D===1&&I.status!==_||I.lookahead)return y;for(D===1&&(c.adler=u(c.adler,F,G,0)),I.wrap=0,G>=I.w_size&&(D===0&&(J(I.head),I.strstart=0,I.block_start=0,I.insert=0),H=new v.Buf8(I.w_size),v.arraySet(H,F,G-I.w_size,I.w_size,0),F=H,G=I.w_size),L=c.avail_in,U=c.next_in,B=c.input,c.avail_in=G,c.next_in=0,c.input=F,ne(I);I.lookahead>=b;){for(S=I.strstart,w=I.lookahead-(b-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[S+b-1])&I.hash_mask,I.prev[S&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=S,S++,--w;);I.strstart=S,I.lookahead=b-1,ne(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=b-1,I.match_available=0,c.next_in=U,c.input=B,c.avail_in=L,I.wrap=D,i},N.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(T,j,N){j.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(T,j,N){j.exports=function(A,v){var e,u,r,m,p,a,i,y,h,d,f,g,x,P,n,o,t,l,b,k,E,_,C,s,R;e=A.state,u=A.next_in,s=A.input,r=u+(A.avail_in-5),m=A.next_out,R=A.output,p=m-(v-A.avail_out),a=m+(A.avail_out-257),i=e.dmax,y=e.wsize,h=e.whave,d=e.wnext,f=e.window,g=e.hold,x=e.bits,P=e.lencode,n=e.distcode,o=(1<<e.lenbits)-1,t=(1<<e.distbits)-1;e:do{x<15&&(g+=s[u++]<<x,x+=8,g+=s[u++]<<x,x+=8),l=P[g&o];t:for(;;){if(g>>>=b=l>>>24,x-=b,(b=l>>>16&255)===0)R[m++]=65535&l;else{if(!(16&b)){if(!(64&b)){l=P[(65535&l)+(g&(1<<b)-1)];continue t}if(32&b){e.mode=12;break e}A.msg="invalid literal/length code",e.mode=30;break e}k=65535&l,(b&=15)&&(x<b&&(g+=s[u++]<<x,x+=8),k+=g&(1<<b)-1,g>>>=b,x-=b),x<15&&(g+=s[u++]<<x,x+=8,g+=s[u++]<<x,x+=8),l=n[g&t];r:for(;;){if(g>>>=b=l>>>24,x-=b,!(16&(b=l>>>16&255))){if(!(64&b)){l=n[(65535&l)+(g&(1<<b)-1)];continue r}A.msg="invalid distance code",e.mode=30;break e}if(E=65535&l,x<(b&=15)&&(g+=s[u++]<<x,(x+=8)<b&&(g+=s[u++]<<x,x+=8)),i<(E+=g&(1<<b)-1)){A.msg="invalid distance too far back",e.mode=30;break e}if(g>>>=b,x-=b,(b=m-p)<E){if(h<(b=E-b)&&e.sane){A.msg="invalid distance too far back",e.mode=30;break e}if(C=f,(_=0)===d){if(_+=y-b,b<k){for(k-=b;R[m++]=f[_++],--b;);_=m-E,C=R}}else if(d<b){if(_+=y+d-b,(b-=d)<k){for(k-=b;R[m++]=f[_++],--b;);if(_=0,d<k){for(k-=b=d;R[m++]=f[_++],--b;);_=m-E,C=R}}}else if(_+=d-b,b<k){for(k-=b;R[m++]=f[_++],--b;);_=m-E,C=R}for(;2<k;)R[m++]=C[_++],R[m++]=C[_++],R[m++]=C[_++],k-=3;k&&(R[m++]=C[_++],1<k&&(R[m++]=C[_++]))}else{for(_=m-E;R[m++]=R[_++],R[m++]=R[_++],R[m++]=R[_++],2<(k-=3););k&&(R[m++]=R[_++],1<k&&(R[m++]=R[_++]))}break}}break}}while(u<r&&m<a);u-=k=x>>3,g&=(1<<(x-=k<<3))-1,A.next_in=u,A.next_out=m,A.avail_in=u<r?r-u+5:5-(u-r),A.avail_out=m<a?a-m+257:257-(m-a),e.hold=g,e.bits=x}},{}],49:[function(T,j,N){var A=T("../utils/common"),v=T("./adler32"),e=T("./crc32"),u=T("./inffast"),r=T("./inftrees"),m=1,p=2,a=0,i=-2,y=1,h=852,d=592;function f(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function g(){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 A.Buf16(320),this.work=new A.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(_){var C;return _&&_.state?(C=_.state,_.total_in=_.total_out=C.total=0,_.msg="",C.wrap&&(_.adler=1&C.wrap),C.mode=y,C.last=0,C.havedict=0,C.dmax=32768,C.head=null,C.hold=0,C.bits=0,C.lencode=C.lendyn=new A.Buf32(h),C.distcode=C.distdyn=new A.Buf32(d),C.sane=1,C.back=-1,a):i}function P(_){var C;return _&&_.state?((C=_.state).wsize=0,C.whave=0,C.wnext=0,x(_)):i}function n(_,C){var s,R;return _&&_.state?(R=_.state,C<0?(s=0,C=-C):(s=1+(C>>4),C<48&&(C&=15)),C&&(C<8||15<C)?i:(R.window!==null&&R.wbits!==C&&(R.window=null),R.wrap=s,R.wbits=C,P(_))):i}function o(_,C){var s,R;return _?(R=new g,(_.state=R).window=null,(s=n(_,C))!==a&&(_.state=null),s):i}var t,l,b=!0;function k(_){if(b){var C;for(t=new A.Buf32(512),l=new A.Buf32(32),C=0;C<144;)_.lens[C++]=8;for(;C<256;)_.lens[C++]=9;for(;C<280;)_.lens[C++]=7;for(;C<288;)_.lens[C++]=8;for(r(m,_.lens,0,288,t,0,_.work,{bits:9}),C=0;C<32;)_.lens[C++]=5;r(p,_.lens,0,32,l,0,_.work,{bits:5}),b=!1}_.lencode=t,_.lenbits=9,_.distcode=l,_.distbits=5}function E(_,C,s,R){var V,M=_.state;return M.window===null&&(M.wsize=1<<M.wbits,M.wnext=0,M.whave=0,M.window=new A.Buf8(M.wsize)),R>=M.wsize?(A.arraySet(M.window,C,s-M.wsize,M.wsize,0),M.wnext=0,M.whave=M.wsize):(R<(V=M.wsize-M.wnext)&&(V=R),A.arraySet(M.window,C,s-R,V,M.wnext),(R-=V)?(A.arraySet(M.window,C,s-R,R,0),M.wnext=R,M.whave=M.wsize):(M.wnext+=V,M.wnext===M.wsize&&(M.wnext=0),M.whave<M.wsize&&(M.whave+=V))),0}N.inflateReset=P,N.inflateReset2=n,N.inflateResetKeep=x,N.inflateInit=function(_){return o(_,15)},N.inflateInit2=o,N.inflate=function(_,C){var s,R,V,M,K,W,J,z,O,Y,X,Z,ne,le,Q,te,oe,se,de,he,c,F,I,S,w=0,D=new A.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return i;(s=_.state).mode===12&&(s.mode=13),K=_.next_out,V=_.output,J=_.avail_out,M=_.next_in,R=_.input,W=_.avail_in,z=s.hold,O=s.bits,Y=W,X=J,F=a;e:for(;;)switch(s.mode){case y:if(s.wrap===0){s.mode=13;break}for(;O<16;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(2&s.wrap&&z===35615){D[s.check=0]=255&z,D[1]=z>>>8&255,s.check=e(s.check,D,2,0),O=z=0,s.mode=2;break}if(s.flags=0,s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&z)<<8)+(z>>8))%31){_.msg="incorrect header check",s.mode=30;break}if((15&z)!=8){_.msg="unknown compression method",s.mode=30;break}if(O-=4,c=8+(15&(z>>>=4)),s.wbits===0)s.wbits=c;else if(c>s.wbits){_.msg="invalid window size",s.mode=30;break}s.dmax=1<<c,_.adler=s.check=1,s.mode=512&z?10:12,O=z=0;break;case 2:for(;O<16;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(s.flags=z,(255&s.flags)!=8){_.msg="unknown compression method",s.mode=30;break}if(57344&s.flags){_.msg="unknown header flags set",s.mode=30;break}s.head&&(s.head.text=z>>8&1),512&s.flags&&(D[0]=255&z,D[1]=z>>>8&255,s.check=e(s.check,D,2,0)),O=z=0,s.mode=3;case 3:for(;O<32;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.head&&(s.head.time=z),512&s.flags&&(D[0]=255&z,D[1]=z>>>8&255,D[2]=z>>>16&255,D[3]=z>>>24&255,s.check=e(s.check,D,4,0)),O=z=0,s.mode=4;case 4:for(;O<16;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.head&&(s.head.xflags=255&z,s.head.os=z>>8),512&s.flags&&(D[0]=255&z,D[1]=z>>>8&255,s.check=e(s.check,D,2,0)),O=z=0,s.mode=5;case 5:if(1024&s.flags){for(;O<16;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.length=z,s.head&&(s.head.extra_len=z),512&s.flags&&(D[0]=255&z,D[1]=z>>>8&255,s.check=e(s.check,D,2,0)),O=z=0}else s.head&&(s.head.extra=null);s.mode=6;case 6:if(1024&s.flags&&(W<(Z=s.length)&&(Z=W),Z&&(s.head&&(c=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Array(s.head.extra_len)),A.arraySet(s.head.extra,R,M,Z,c)),512&s.flags&&(s.check=e(s.check,R,Z,M)),W-=Z,M+=Z,s.length-=Z),s.length))break e;s.length=0,s.mode=7;case 7:if(2048&s.flags){if(W===0)break e;for(Z=0;c=R[M+Z++],s.head&&c&&s.length<65536&&(s.head.name+=String.fromCharCode(c)),c&&Z<W;);if(512&s.flags&&(s.check=e(s.check,R,Z,M)),W-=Z,M+=Z,c)break e}else s.head&&(s.head.name=null);s.length=0,s.mode=8;case 8:if(4096&s.flags){if(W===0)break e;for(Z=0;c=R[M+Z++],s.head&&c&&s.length<65536&&(s.head.comment+=String.fromCharCode(c)),c&&Z<W;);if(512&s.flags&&(s.check=e(s.check,R,Z,M)),W-=Z,M+=Z,c)break e}else s.head&&(s.head.comment=null);s.mode=9;case 9:if(512&s.flags){for(;O<16;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(z!==(65535&s.check)){_.msg="header crc mismatch",s.mode=30;break}O=z=0}s.head&&(s.head.hcrc=s.flags>>9&1,s.head.done=!0),_.adler=s.check=0,s.mode=12;break;case 10:for(;O<32;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}_.adler=s.check=f(z),O=z=0,s.mode=11;case 11:if(s.havedict===0)return _.next_out=K,_.avail_out=J,_.next_in=M,_.avail_in=W,s.hold=z,s.bits=O,2;_.adler=s.check=1,s.mode=12;case 12:if(C===5||C===6)break e;case 13:if(s.last){z>>>=7&O,O-=7&O,s.mode=27;break}for(;O<3;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}switch(s.last=1&z,O-=1,3&(z>>>=1)){case 0:s.mode=14;break;case 1:if(k(s),s.mode=20,C!==6)break;z>>>=2,O-=2;break e;case 2:s.mode=17;break;case 3:_.msg="invalid block type",s.mode=30}z>>>=2,O-=2;break;case 14:for(z>>>=7&O,O-=7&O;O<32;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if((65535&z)!=(z>>>16^65535)){_.msg="invalid stored block lengths",s.mode=30;break}if(s.length=65535&z,O=z=0,s.mode=15,C===6)break e;case 15:s.mode=16;case 16:if(Z=s.length){if(W<Z&&(Z=W),J<Z&&(Z=J),Z===0)break e;A.arraySet(V,R,M,Z,K),W-=Z,M+=Z,J-=Z,K+=Z,s.length-=Z;break}s.mode=12;break;case 17:for(;O<14;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(s.nlen=257+(31&z),z>>>=5,O-=5,s.ndist=1+(31&z),z>>>=5,O-=5,s.ncode=4+(15&z),z>>>=4,O-=4,286<s.nlen||30<s.ndist){_.msg="too many length or distance symbols",s.mode=30;break}s.have=0,s.mode=18;case 18:for(;s.have<s.ncode;){for(;O<3;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.lens[L[s.have++]]=7&z,z>>>=3,O-=3}for(;s.have<19;)s.lens[L[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,I={bits:s.lenbits},F=r(0,s.lens,0,19,s.lencode,0,s.work,I),s.lenbits=I.bits,F){_.msg="invalid code lengths set",s.mode=30;break}s.have=0,s.mode=19;case 19:for(;s.have<s.nlen+s.ndist;){for(;te=(w=s.lencode[z&(1<<s.lenbits)-1])>>>16&255,oe=65535&w,!((Q=w>>>24)<=O);){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(oe<16)z>>>=Q,O-=Q,s.lens[s.have++]=oe;else{if(oe===16){for(S=Q+2;O<S;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(z>>>=Q,O-=Q,s.have===0){_.msg="invalid bit length repeat",s.mode=30;break}c=s.lens[s.have-1],Z=3+(3&z),z>>>=2,O-=2}else if(oe===17){for(S=Q+3;O<S;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}O-=Q,c=0,Z=3+(7&(z>>>=Q)),z>>>=3,O-=3}else{for(S=Q+7;O<S;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}O-=Q,c=0,Z=11+(127&(z>>>=Q)),z>>>=7,O-=7}if(s.have+Z>s.nlen+s.ndist){_.msg="invalid bit length repeat",s.mode=30;break}for(;Z--;)s.lens[s.have++]=c}}if(s.mode===30)break;if(s.lens[256]===0){_.msg="invalid code -- missing end-of-block",s.mode=30;break}if(s.lenbits=9,I={bits:s.lenbits},F=r(m,s.lens,0,s.nlen,s.lencode,0,s.work,I),s.lenbits=I.bits,F){_.msg="invalid literal/lengths set",s.mode=30;break}if(s.distbits=6,s.distcode=s.distdyn,I={bits:s.distbits},F=r(p,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,I),s.distbits=I.bits,F){_.msg="invalid distances set",s.mode=30;break}if(s.mode=20,C===6)break e;case 20:s.mode=21;case 21:if(6<=W&&258<=J){_.next_out=K,_.avail_out=J,_.next_in=M,_.avail_in=W,s.hold=z,s.bits=O,u(_,X),K=_.next_out,V=_.output,J=_.avail_out,M=_.next_in,R=_.input,W=_.avail_in,z=s.hold,O=s.bits,s.mode===12&&(s.back=-1);break}for(s.back=0;te=(w=s.lencode[z&(1<<s.lenbits)-1])>>>16&255,oe=65535&w,!((Q=w>>>24)<=O);){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(te&&!(240&te)){for(se=Q,de=te,he=oe;te=(w=s.lencode[he+((z&(1<<se+de)-1)>>se)])>>>16&255,oe=65535&w,!(se+(Q=w>>>24)<=O);){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}z>>>=se,O-=se,s.back+=se}if(z>>>=Q,O-=Q,s.back+=Q,s.length=oe,te===0){s.mode=26;break}if(32&te){s.back=-1,s.mode=12;break}if(64&te){_.msg="invalid literal/length code",s.mode=30;break}s.extra=15&te,s.mode=22;case 22:if(s.extra){for(S=s.extra;O<S;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.length+=z&(1<<s.extra)-1,z>>>=s.extra,O-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=23;case 23:for(;te=(w=s.distcode[z&(1<<s.distbits)-1])>>>16&255,oe=65535&w,!((Q=w>>>24)<=O);){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(!(240&te)){for(se=Q,de=te,he=oe;te=(w=s.distcode[he+((z&(1<<se+de)-1)>>se)])>>>16&255,oe=65535&w,!(se+(Q=w>>>24)<=O);){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}z>>>=se,O-=se,s.back+=se}if(z>>>=Q,O-=Q,s.back+=Q,64&te){_.msg="invalid distance code",s.mode=30;break}s.offset=oe,s.extra=15&te,s.mode=24;case 24:if(s.extra){for(S=s.extra;O<S;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}s.offset+=z&(1<<s.extra)-1,z>>>=s.extra,O-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){_.msg="invalid distance too far back",s.mode=30;break}s.mode=25;case 25:if(J===0)break e;if(Z=X-J,s.offset>Z){if((Z=s.offset-Z)>s.whave&&s.sane){_.msg="invalid distance too far back",s.mode=30;break}ne=Z>s.wnext?(Z-=s.wnext,s.wsize-Z):s.wnext-Z,Z>s.length&&(Z=s.length),le=s.window}else le=V,ne=K-s.offset,Z=s.length;for(J<Z&&(Z=J),J-=Z,s.length-=Z;V[K++]=le[ne++],--Z;);s.length===0&&(s.mode=21);break;case 26:if(J===0)break e;V[K++]=s.length,J--,s.mode=21;break;case 27:if(s.wrap){for(;O<32;){if(W===0)break e;W--,z|=R[M++]<<O,O+=8}if(X-=J,_.total_out+=X,s.total+=X,X&&(_.adler=s.check=s.flags?e(s.check,V,X,K-X):v(s.check,V,X,K-X)),X=J,(s.flags?z:f(z))!==s.check){_.msg="incorrect data check",s.mode=30;break}O=z=0}s.mode=28;case 28:if(s.wrap&&s.flags){for(;O<32;){if(W===0)break e;W--,z+=R[M++]<<O,O+=8}if(z!==(4294967295&s.total)){_.msg="incorrect length check",s.mode=30;break}O=z=0}s.mode=29;case 29:F=1;break e;case 30:F=-3;break e;case 31:return-4;case 32:default:return i}return _.next_out=K,_.avail_out=J,_.next_in=M,_.avail_in=W,s.hold=z,s.bits=O,(s.wsize||X!==_.avail_out&&s.mode<30&&(s.mode<27||C!==4))&&E(_,_.output,_.next_out,X-_.avail_out)?(s.mode=31,-4):(Y-=_.avail_in,X-=_.avail_out,_.total_in+=Y,_.total_out+=X,s.total+=X,s.wrap&&X&&(_.adler=s.check=s.flags?e(s.check,V,X,_.next_out-X):v(s.check,V,X,_.next_out-X)),_.data_type=s.bits+(s.last?64:0)+(s.mode===12?128:0)+(s.mode===20||s.mode===15?256:0),(Y==0&&X===0||C===4)&&F===a&&(F=-5),F)},N.inflateEnd=function(_){if(!_||!_.state)return i;var C=_.state;return C.window&&(C.window=null),_.state=null,a},N.inflateGetHeader=function(_,C){var s;return _&&_.state&&2&(s=_.state).wrap?((s.head=C).done=!1,a):i},N.inflateSetDictionary=function(_,C){var s,R=C.length;return _&&_.state?(s=_.state).wrap!==0&&s.mode!==11?i:s.mode===11&&v(1,C,R,0)!==s.check?-3:E(_,C,R,R)?(s.mode=31,-4):(s.havedict=1,a):i},N.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(T,j,N){var A=T("../utils/common"),v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],r=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];j.exports=function(m,p,a,i,y,h,d,f){var g,x,P,n,o,t,l,b,k,E=f.bits,_=0,C=0,s=0,R=0,V=0,M=0,K=0,W=0,J=0,z=0,O=null,Y=0,X=new A.Buf16(16),Z=new A.Buf16(16),ne=null,le=0;for(_=0;_<=15;_++)X[_]=0;for(C=0;C<i;C++)X[p[a+C]]++;for(V=E,R=15;1<=R&&X[R]===0;R--);if(R<V&&(V=R),R===0)return y[h++]=20971520,y[h++]=20971520,f.bits=1,0;for(s=1;s<R&&X[s]===0;s++);for(V<s&&(V=s),_=W=1;_<=15;_++)if(W<<=1,(W-=X[_])<0)return-1;if(0<W&&(m===0||R!==1))return-1;for(Z[1]=0,_=1;_<15;_++)Z[_+1]=Z[_]+X[_];for(C=0;C<i;C++)p[a+C]!==0&&(d[Z[p[a+C]]++]=C);if(t=m===0?(O=ne=d,19):m===1?(O=v,Y-=257,ne=e,le-=257,256):(O=u,ne=r,-1),_=s,o=h,K=C=z=0,P=-1,n=(J=1<<(M=V))-1,m===1&&852<J||m===2&&592<J)return 1;for(;;){for(l=_-K,k=d[C]<t?(b=0,d[C]):d[C]>t?(b=ne[le+d[C]],O[Y+d[C]]):(b=96,0),g=1<<_-K,s=x=1<<M;y[o+(z>>K)+(x-=g)]=l<<24|b<<16|k|0,x!==0;);for(g=1<<_-1;z&g;)g>>=1;if(g!==0?(z&=g-1,z+=g):z=0,C++,--X[_]==0){if(_===R)break;_=p[a+d[C]]}if(V<_&&(z&n)!==P){for(K===0&&(K=V),o+=s,W=1<<(M=_-K);M+K<R&&!((W-=X[M+K])<=0);)M++,W<<=1;if(J+=1<<M,m===1&&852<J||m===2&&592<J)return 1;y[P=z&n]=V<<24|M<<16|o-h|0}}return z!==0&&(y[o+z]=_-K<<24|64<<16|0),f.bits=V,0}},{"../utils/common":41}],51:[function(T,j,N){j.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(T,j,N){var A=T("../utils/common"),v=0,e=1;function u(w){for(var D=w.length;0<=--D;)w[D]=0}var r=0,m=29,p=256,a=p+1+m,i=30,y=19,h=2*a+1,d=15,f=16,g=7,x=256,P=16,n=17,o=18,t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(a+2));u(E);var _=new Array(2*i);u(_);var C=new Array(512);u(C);var s=new Array(256);u(s);var R=new Array(m);u(R);var V,M,K,W=new Array(i);function J(w,D,L,U,B){this.static_tree=w,this.extra_bits=D,this.extra_base=L,this.elems=U,this.max_length=B,this.has_stree=w&&w.length}function z(w,D){this.dyn_tree=w,this.max_code=0,this.stat_desc=D}function O(w){return w<256?C[w]:C[256+(w>>>7)]}function Y(w,D){w.pending_buf[w.pending++]=255&D,w.pending_buf[w.pending++]=D>>>8&255}function X(w,D,L){w.bi_valid>f-L?(w.bi_buf|=D<<w.bi_valid&65535,Y(w,w.bi_buf),w.bi_buf=D>>f-w.bi_valid,w.bi_valid+=L-f):(w.bi_buf|=D<<w.bi_valid&65535,w.bi_valid+=L)}function Z(w,D,L){X(w,L[2*D],L[2*D+1])}function ne(w,D){for(var L=0;L|=1&w,w>>>=1,L<<=1,0<--D;);return L>>>1}function le(w,D,L){var U,B,H=new Array(d+1),G=0;for(U=1;U<=d;U++)H[U]=G=G+L[U-1]<<1;for(B=0;B<=D;B++){var $=w[2*B+1];$!==0&&(w[2*B]=ne(H[$]++,$))}}function Q(w){var D;for(D=0;D<a;D++)w.dyn_ltree[2*D]=0;for(D=0;D<i;D++)w.dyn_dtree[2*D]=0;for(D=0;D<y;D++)w.bl_tree[2*D]=0;w.dyn_ltree[2*x]=1,w.opt_len=w.static_len=0,w.last_lit=w.matches=0}function te(w){8<w.bi_valid?Y(w,w.bi_buf):0<w.bi_valid&&(w.pending_buf[w.pending++]=w.bi_buf),w.bi_buf=0,w.bi_valid=0}function oe(w,D,L,U){var B=2*D,H=2*L;return w[B]<w[H]||w[B]===w[H]&&U[D]<=U[L]}function se(w,D,L){for(var U=w.heap[L],B=L<<1;B<=w.heap_len&&(B<w.heap_len&&oe(D,w.heap[B+1],w.heap[B],w.depth)&&B++,!oe(D,U,w.heap[B],w.depth));)w.heap[L]=w.heap[B],L=B,B<<=1;w.heap[L]=U}function de(w,D,L){var U,B,H,G,$=0;if(w.last_lit!==0)for(;U=w.pending_buf[w.d_buf+2*$]<<8|w.pending_buf[w.d_buf+2*$+1],B=w.pending_buf[w.l_buf+$],$++,U===0?Z(w,B,D):(Z(w,(H=s[B])+p+1,D),(G=t[H])!==0&&X(w,B-=R[H],G),Z(w,H=O(--U),L),(G=l[H])!==0&&X(w,U-=W[H],G)),$<w.last_lit;);Z(w,x,D)}function he(w,D){var L,U,B,H=D.dyn_tree,G=D.stat_desc.static_tree,$=D.stat_desc.has_stree,q=D.stat_desc.elems,ae=-1;for(w.heap_len=0,w.heap_max=h,L=0;L<q;L++)H[2*L]!==0?(w.heap[++w.heap_len]=ae=L,w.depth[L]=0):H[2*L+1]=0;for(;w.heap_len<2;)H[2*(B=w.heap[++w.heap_len]=ae<2?++ae:0)]=1,w.depth[B]=0,w.opt_len--,$&&(w.static_len-=G[2*B+1]);for(D.max_code=ae,L=w.heap_len>>1;1<=L;L--)se(w,H,L);for(B=q;L=w.heap[1],w.heap[1]=w.heap[w.heap_len--],se(w,H,1),U=w.heap[1],w.heap[--w.heap_max]=L,w.heap[--w.heap_max]=U,H[2*B]=H[2*L]+H[2*U],w.depth[B]=(w.depth[L]>=w.depth[U]?w.depth[L]:w.depth[U])+1,H[2*L+1]=H[2*U+1]=B,w.heap[1]=B++,se(w,H,1),2<=w.heap_len;);w.heap[--w.heap_max]=w.heap[1],function(ee,ue){var me,fe,ge,ie,ye,xe,pe=ue.dyn_tree,Se=ue.max_code,Te=ue.stat_desc.static_tree,Ee=ue.stat_desc.has_stree,De=ue.stat_desc.extra_bits,Pe=ue.stat_desc.extra_base,be=ue.stat_desc.max_length,ve=0;for(ie=0;ie<=d;ie++)ee.bl_count[ie]=0;for(pe[2*ee.heap[ee.heap_max]+1]=0,me=ee.heap_max+1;me<h;me++)be<(ie=pe[2*pe[2*(fe=ee.heap[me])+1]+1]+1)&&(ie=be,ve++),pe[2*fe+1]=ie,Se<fe||(ee.bl_count[ie]++,ye=0,Pe<=fe&&(ye=De[fe-Pe]),xe=pe[2*fe],ee.opt_len+=xe*(ie+ye),Ee&&(ee.static_len+=xe*(Te[2*fe+1]+ye)));if(ve!==0){do{for(ie=be-1;ee.bl_count[ie]===0;)ie--;ee.bl_count[ie]--,ee.bl_count[ie+1]+=2,ee.bl_count[be]--,ve-=2}while(0<ve);for(ie=be;ie!==0;ie--)for(fe=ee.bl_count[ie];fe!==0;)Se<(ge=ee.heap[--me])||(pe[2*ge+1]!==ie&&(ee.opt_len+=(ie-pe[2*ge+1])*pe[2*ge],pe[2*ge+1]=ie),fe--)}}(w,D),le(H,ae,w.bl_count)}function c(w,D,L){var U,B,H=-1,G=D[1],$=0,q=7,ae=4;for(G===0&&(q=138,ae=3),D[2*(L+1)+1]=65535,U=0;U<=L;U++)B=G,G=D[2*(U+1)+1],++$<q&&B===G||($<ae?w.bl_tree[2*B]+=$:B!==0?(B!==H&&w.bl_tree[2*B]++,w.bl_tree[2*P]++):$<=10?w.bl_tree[2*n]++:w.bl_tree[2*o]++,H=B,ae=($=0)===G?(q=138,3):B===G?(q=6,3):(q=7,4))}function F(w,D,L){var U,B,H=-1,G=D[1],$=0,q=7,ae=4;for(G===0&&(q=138,ae=3),U=0;U<=L;U++)if(B=G,G=D[2*(U+1)+1],!(++$<q&&B===G)){if($<ae)for(;Z(w,B,w.bl_tree),--$!=0;);else B!==0?(B!==H&&(Z(w,B,w.bl_tree),$--),Z(w,P,w.bl_tree),X(w,$-3,2)):$<=10?(Z(w,n,w.bl_tree),X(w,$-3,3)):(Z(w,o,w.bl_tree),X(w,$-11,7));H=B,ae=($=0)===G?(q=138,3):B===G?(q=6,3):(q=7,4)}}u(W);var I=!1;function S(w,D,L,U){X(w,(r<<1)+(U?1:0),3),function(B,H,G,$){te(B),$&&(Y(B,G),Y(B,~G)),A.arraySet(B.pending_buf,B.window,H,G,B.pending),B.pending+=G}(w,D,L,!0)}N._tr_init=function(w){I||(function(){var D,L,U,B,H,G=new Array(d+1);for(B=U=0;B<m-1;B++)for(R[B]=U,D=0;D<1<<t[B];D++)s[U++]=B;for(s[U-1]=B,B=H=0;B<16;B++)for(W[B]=H,D=0;D<1<<l[B];D++)C[H++]=B;for(H>>=7;B<i;B++)for(W[B]=H<<7,D=0;D<1<<l[B]-7;D++)C[256+H++]=B;for(L=0;L<=d;L++)G[L]=0;for(D=0;D<=143;)E[2*D+1]=8,D++,G[8]++;for(;D<=255;)E[2*D+1]=9,D++,G[9]++;for(;D<=279;)E[2*D+1]=7,D++,G[7]++;for(;D<=287;)E[2*D+1]=8,D++,G[8]++;for(le(E,a+1,G),D=0;D<i;D++)_[2*D+1]=5,_[2*D]=ne(D,5);V=new J(E,t,p+1,a,d),M=new J(_,l,0,i,d),K=new J(new Array(0),b,0,y,g)}(),I=!0),w.l_desc=new z(w.dyn_ltree,V),w.d_desc=new z(w.dyn_dtree,M),w.bl_desc=new z(w.bl_tree,K),w.bi_buf=0,w.bi_valid=0,Q(w)},N._tr_stored_block=S,N._tr_flush_block=function(w,D,L,U){var B,H,G=0;0<w.level?(w.strm.data_type===2&&(w.strm.data_type=function($){var q,ae=4093624447;for(q=0;q<=31;q++,ae>>>=1)if(1&ae&&$.dyn_ltree[2*q]!==0)return v;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return e;for(q=32;q<p;q++)if($.dyn_ltree[2*q]!==0)return e;return v}(w)),he(w,w.l_desc),he(w,w.d_desc),G=function($){var q;for(c($,$.dyn_ltree,$.l_desc.max_code),c($,$.dyn_dtree,$.d_desc.max_code),he($,$.bl_desc),q=y-1;3<=q&&$.bl_tree[2*k[q]+1]===0;q--);return $.opt_len+=3*(q+1)+5+5+4,q}(w),B=w.opt_len+3+7>>>3,(H=w.static_len+3+7>>>3)<=B&&(B=H)):B=H=L+5,L+4<=B&&D!==-1?S(w,D,L,U):w.strategy===4||H===B?(X(w,2+(U?1:0),3),de(w,E,_)):(X(w,4+(U?1:0),3),function($,q,ae,ee){var ue;for(X($,q-257,5),X($,ae-1,5),X($,ee-4,4),ue=0;ue<ee;ue++)X($,$.bl_tree[2*k[ue]+1],3);F($,$.dyn_ltree,q-1),F($,$.dyn_dtree,ae-1)}(w,w.l_desc.max_code+1,w.d_desc.max_code+1,G+1),de(w,w.dyn_ltree,w.dyn_dtree)),Q(w),U&&te(w)},N._tr_tally=function(w,D,L){return w.pending_buf[w.d_buf+2*w.last_lit]=D>>>8&255,w.pending_buf[w.d_buf+2*w.last_lit+1]=255&D,w.pending_buf[w.l_buf+w.last_lit]=255&L,w.last_lit++,D===0?w.dyn_ltree[2*L]++:(w.matches++,D--,w.dyn_ltree[2*(s[L]+p+1)]++,w.dyn_dtree[2*O(D)]++),w.last_lit===w.lit_bufsize-1},N._tr_align=function(w){X(w,2,3),Z(w,x,E),function(D){D.bi_valid===16?(Y(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)}(w)}},{"../utils/common":41}],53:[function(T,j,N){j.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,j,N){(function(A){(function(v,e){if(!v.setImmediate){var u,r,m,p,a=1,i={},y=!1,h=v.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(v);d=d&&d.setTimeout?d:v,u={}.toString.call(v.process)==="[object process]"?function(P){process.nextTick(function(){g(P)})}:function(){if(v.postMessage&&!v.importScripts){var P=!0,n=v.onmessage;return v.onmessage=function(){P=!1},v.postMessage("","*"),v.onmessage=n,P}}()?(p="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",x,!1):v.attachEvent("onmessage",x),function(P){v.postMessage(p+P,"*")}):v.MessageChannel?((m=new MessageChannel).port1.onmessage=function(P){g(P.data)},function(P){m.port2.postMessage(P)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(P){var n=h.createElement("script");n.onreadystatechange=function(){g(P),n.onreadystatechange=null,r.removeChild(n),n=null},r.appendChild(n)}):function(P){setTimeout(g,0,P)},d.setImmediate=function(P){typeof P!="function"&&(P=new Function(""+P));for(var n=new Array(arguments.length-1),o=0;o<n.length;o++)n[o]=arguments[o+1];var t={callback:P,args:n};return i[a]=t,u(a),a++},d.clearImmediate=f}function f(P){delete i[P]}function g(P){if(y)setTimeout(g,0,P);else{var n=i[P];if(n){y=!0;try{(function(o){var t=o.callback,l=o.args;switch(l.length){case 0:t();break;case 1:t(l[0]);break;case 2:t(l[0],l[1]);break;case 3:t(l[0],l[1],l[2]);break;default:t.apply(e,l)}})(n)}finally{f(P),y=!1}}}}function x(P){P.source===v&&typeof P.data=="string"&&P.data.indexOf(p)===0&&g(+P.data.slice(p.length))}})(typeof self>"u"?A===void 0?this:A:self)}).call(this,typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Be)),we}(function(re,ce){(function(T,j){re.exports=j(Oe())})(globalThis,T=>(()=>{var j={438:(v,e,u)=>{u.r(e),u.d(e,{default:()=>g});var r=u(537),m=u.n(r),p=u(645),a=u.n(p),i=u(806),y=u.n(i),h=new URL(u(583),u.b),d=a()(m()),f=y()(h);d.push([v.id,`@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url(${f})}`,"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:[`@namespace "http://www.w3.org/1998/Math/MathML";\r
|
||
\r
|
||
math {\r
|
||
display: inline-block;\r
|
||
line-height: initial;\r
|
||
}\r
|
||
\r
|
||
mfrac {\r
|
||
display: inline-block;\r
|
||
vertical-align: -50%;\r
|
||
text-align: center;\r
|
||
\r
|
||
&>:first-child {\r
|
||
border-bottom: solid thin currentColor;\r
|
||
}\r
|
||
\r
|
||
&>* {\r
|
||
display: block;\r
|
||
}\r
|
||
}\r
|
||
\r
|
||
msub {\r
|
||
&>:nth-child(2) {\r
|
||
font-size: smaller;\r
|
||
vertical-align: sub;\r
|
||
}\r
|
||
}\r
|
||
\r
|
||
msup {\r
|
||
&>:nth-child(2) {\r
|
||
font-size: smaller;\r
|
||
vertical-align: super;\r
|
||
}\r
|
||
}\r
|
||
\r
|
||
munder, mover, munderover {\r
|
||
display: inline-flex;\r
|
||
flex-flow: column nowrap;\r
|
||
vertical-align: middle;\r
|
||
text-align: center;\r
|
||
\r
|
||
&>:not(:first-child) {\r
|
||
font-size: smaller;\r
|
||
}\r
|
||
}\r
|
||
\r
|
||
munderover {\r
|
||
&>:last-child { order: -1; }\r
|
||
}\r
|
||
\r
|
||
mroot, msqrt {\r
|
||
position: relative;\r
|
||
display: inline-block;\r
|
||
border-top: solid thin currentColor; \r
|
||
margin-top: 0.5px;\r
|
||
vertical-align: middle; \r
|
||
margin-left: 1ch; \r
|
||
\r
|
||
&:before {\r
|
||
content: "";\r
|
||
display: inline-block;\r
|
||
position: absolute;\r
|
||
width: 1ch;\r
|
||
left: -1ch;\r
|
||
top: -1px;\r
|
||
bottom: 0;\r
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");\r
|
||
}\r
|
||
}`],sourceRoot:""}]);const g=d.toString()},645:v=>{v.exports=function(e){var u=[];return u.toString=function(){return this.map(function(r){var m="",p=r[5]!==void 0;return r[4]&&(m+="@supports (".concat(r[4],") {")),r[2]&&(m+="@media ".concat(r[2]," {")),p&&(m+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),m+=e(r),p&&(m+="}"),r[2]&&(m+="}"),r[4]&&(m+="}"),m}).join("")},u.i=function(r,m,p,a,i){typeof r=="string"&&(r=[[null,r,void 0]]);var y={};if(p)for(var h=0;h<this.length;h++){var d=this[h][0];d!=null&&(y[d]=!0)}for(var f=0;f<r.length;f++){var g=[].concat(r[f]);p&&y[g[0]]||(i!==void 0&&(g[5]===void 0||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=i),m&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=m),a&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=a):g[4]="".concat(a)),u.push(g))}},u}},806:v=>{v.exports=function(e,u){return u||(u={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),u.hash&&(e+=u.hash),/["'() \t\n]|(%20)/.test(e)||u.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},537:v=>{v.exports=function(e){var u=e[1],r=e[3];if(!r)return u;if(typeof btoa=="function"){var m=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),p="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(m),a="/*# ".concat(p," */");return[u].concat([a]).join(`
|
||
`)}return[u].join(`
|
||
`)}},522:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OpenXmlPackage=void 0;const r=u(626),m=u(472),p=u(593),a=u(461);class i{constructor(h,d){this._zip=h,this.options=d,this.xmlParser=new m.XmlParser}get(h){return this._zip.files[function(d){return d.startsWith("/")?d.substr(1):d}(h)]}update(h,d){this._zip.file(h,d)}static async load(h,d){const f=await r.loadAsync(h);return new i(f,d)}save(h="blob"){return this._zip.generateAsync({type:h})}load(h,d="string"){var f,g;return(g=(f=this.get(h))===null||f===void 0?void 0:f.async(d))!==null&&g!==void 0?g:Promise.resolve(null)}async loadRelationships(h=null){let d="_rels/.rels";if(h!=null){const[g,x]=(0,p.splitPath)(h);d=`${g}_rels/${x}.rels`}const f=await this.load(d);return f?(0,a.parseRelationships)(this.parseXmlDocument(f).firstElementChild,this.xmlParser):null}parseXmlDocument(h){return(0,m.parseXmlString)(h,this.options.trimXmlDeclaration)}}e.OpenXmlPackage=i},530:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Part=void 0;const r=u(472);e.Part=class{constructor(m,p){this._package=m,this.path=p}async load(){this.rels=await this._package.loadRelationships(this.path);const m=await this._package.load(this.path),p=this._package.parseXmlDocument(m);this._package.options.keepOrigin&&(this._xmlDocument=p),this.parseXml(p.firstElementChild)}save(){this._package.update(this.path,(0,r.serializeXmlString)(this._xmlDocument))}parseXml(m){}}},461:(v,e)=>{var u;Object.defineProperty(e,"__esModule",{value:!0}),e.parseRelationships=e.RelationshipTypes=void 0,function(r){r.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",r.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",r.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"}(u||(e.RelationshipTypes=u={})),e.parseRelationships=function(r,m){return m.elements(r).map(p=>({id:m.attr(p,"Id"),type:m.attr(p,"Type"),target:m.attr(p,"Target"),targetMode:m.attr(p,"TargetMode")}))}},168:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentParser=e.autos=void 0;const r=u(120),m=u(109),p=u(59),a=u(472),i=u(488),y=u(172),h=u(149),d=u(320);e.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const f=[],g={oMath:r.DomType.MmlMath,oMathPara:r.DomType.MmlMathParagraph,f:r.DomType.MmlFraction,num:r.DomType.MmlNumerator,den:r.DomType.MmlDenominator,rad:r.DomType.MmlRadical,deg:r.DomType.MmlDegree,e:r.DomType.MmlBase,sSup:r.DomType.MmlSuperscript,sSub:r.DomType.MmlSubscript,sup:r.DomType.MmlSuperArgument,sub:r.DomType.MmlSubArgument,d:r.DomType.MmlDelimiter,nary:r.DomType.MmlNary};e.DocumentParser=class{constructor(o){this.options=Object.assign({ignoreWidth:!1,debug:!1},o)}parseNotes(o,t,l){var b=[];for(let k of a.default.elements(o,t)){const E=new l;E.id=a.default.attr(k,"id"),E.noteType=a.default.attr(k,"type"),E.children=this.parseBodyElements(k),b.push(E)}return b}parseDocumentFile(o){var t=a.default.element(o,"body"),l=a.default.element(o,"background"),b=a.default.element(t,"sectPr");return{type:r.DomType.Document,children:this.parseBodyElements(t),props:b?(0,p.parseSectionProperties)(b,a.default):{},cssStyle:l?this.parseBackground(l):{}}}parseBackground(o){var t={},l=P.colorAttr(o,"color");return l&&(t["background-color"]=l),t}parseBodyElements(o){var t=[];for(let l of a.default.elements(o))switch(l.localName){case"p":t.push(this.parseParagraph(l));break;case"tbl":t.push(this.parseTable(l));break;case"sdt":t.push(...this.parseSdt(l,b=>this.parseBodyElements(b)))}return t}parseStylesFile(o){var t=[];return P.foreach(o,l=>{switch(l.localName){case"style":t.push(this.parseStyle(l));break;case"docDefaults":t.push(this.parseDefaultStyles(l))}}),t}parseDefaultStyles(o){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return P.foreach(o,l=>{switch(l.localName){case"rPrDefault":var b=a.default.element(l,"rPr");b&&t.styles.push({target:"span",values:this.parseDefaultProperties(b,{})});break;case"pPrDefault":var k=a.default.element(l,"pPr");k&&t.styles.push({target:"p",values:this.parseDefaultProperties(k,{})})}}),t}parseStyle(o){var t={id:a.default.attr(o,"styleId"),isDefault:a.default.boolAttr(o,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(a.default.attr(o,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span"}return P.foreach(o,l=>{switch(l.localName){case"basedOn":t.basedOn=a.default.attr(l,"val");break;case"name":t.name=a.default.attr(l,"val");break;case"link":t.linked=a.default.attr(l,"val");break;case"next":t.next=a.default.attr(l,"val");break;case"aliases":t.aliases=a.default.attr(l,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(l,{})}),t.paragraphProps=(0,m.parseParagraphProperties)(l,a.default);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(l,{})}),t.runProps=(0,i.parseRunProperties)(l,a.default);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(l,{})});break;case"tblStylePr":for(let b of this.parseTableStyle(l))t.styles.push(b);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${l.localName}`)}}),t}parseTableStyle(o){var t=[],l=a.default.attr(o,"type"),b="",k="";switch(l){case"firstRow":k=".first-row",b="tr.first-row td";break;case"lastRow":k=".last-row",b="tr.last-row td";break;case"firstCol":k=".first-col",b="td.first-col";break;case"lastCol":k=".last-col",b="td.last-col";break;case"band1Vert":k=":not(.no-vband)",b="td.odd-col";break;case"band2Vert":k=":not(.no-vband)",b="td.even-col";break;case"band1Horz":k=":not(.no-hband)",b="tr.odd-row";break;case"band2Horz":k=":not(.no-hband)",b="tr.even-row";break;default:return[]}return P.foreach(o,E=>{switch(E.localName){case"pPr":t.push({target:`${b} p`,mod:k,values:this.parseDefaultProperties(E,{})});break;case"rPr":t.push({target:`${b} span`,mod:k,values:this.parseDefaultProperties(E,{})});break;case"tblPr":case"tcPr":t.push({target:b,mod:k,values:this.parseDefaultProperties(E,{})})}}),t}parseNumberingFile(o){var t=[],l={},b=[];return P.foreach(o,k=>{switch(k.localName){case"abstractNum":this.parseAbstractNumbering(k,b).forEach(C=>t.push(C));break;case"numPicBullet":b.push(this.parseNumberingPicBullet(k));break;case"num":var E=a.default.attr(k,"numId"),_=a.default.elementAttr(k,"abstractNumId","val");l[_]=E}}),t.forEach(k=>k.id=l[k.id]),t}parseNumberingPicBullet(o){var t=a.default.element(o,"pict"),l=t&&a.default.element(t,"shape"),b=l&&a.default.element(l,"imagedata");return b?{id:a.default.intAttr(o,"numPicBulletId"),src:a.default.attr(b,"id"),style:a.default.attr(l,"style")}:null}parseAbstractNumbering(o,t){var l=[],b=a.default.attr(o,"abstractNumId");return P.foreach(o,k=>{k.localName==="lvl"&&l.push(this.parseNumberingLevel(b,k,t))}),l}parseNumberingLevel(o,t,l){var b={id:o,level:a.default.intAttr(t,"ilvl"),pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return P.foreach(t,k=>{switch(k.localName){case"pPr":this.parseDefaultProperties(k,b.pStyle);break;case"rPr":this.parseDefaultProperties(k,b.rStyle);break;case"lvlPicBulletId":var E=a.default.intAttr(k,"val");b.bullet=l.find(_=>_.id==E);break;case"lvlText":b.levelText=a.default.attr(k,"val");break;case"pStyle":b.pStyleName=a.default.attr(k,"val");break;case"numFmt":b.format=a.default.attr(k,"val");break;case"suff":b.suff=a.default.attr(k,"val")}}),b}parseSdt(o,t){const l=a.default.element(o,"sdtContent");return l?t(l):[]}parseInserted(o,t){var l,b;return{type:r.DomType.Inserted,children:(b=(l=t(o))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[]}}parseDeleted(o,t){var l,b;return{type:r.DomType.Deleted,children:(b=(l=t(o))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[]}}parseParagraph(o){var t={type:r.DomType.Paragraph,children:[]};for(let l of a.default.elements(o))switch(l.localName){case"pPr":this.parseParagraphProperties(l,t);break;case"r":t.children.push(this.parseRun(l,t));break;case"hyperlink":t.children.push(this.parseHyperlink(l,t));break;case"bookmarkStart":t.children.push((0,y.parseBookmarkStart)(l,a.default));break;case"bookmarkEnd":t.children.push((0,y.parseBookmarkEnd)(l,a.default));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(l));break;case"sdt":t.children.push(...this.parseSdt(l,b=>this.parseParagraph(b).children));break;case"ins":t.children.push(this.parseInserted(l,b=>this.parseParagraph(b)));break;case"del":t.children.push(this.parseDeleted(l,b=>this.parseParagraph(b)))}return t}parseParagraphProperties(o,t){this.parseDefaultProperties(o,t.cssStyle={},null,l=>{if((0,m.parseParagraphProperty)(l,t,a.default))return!0;switch(l.localName){case"pStyle":t.styleName=a.default.attr(l,"val");break;case"cnfStyle":t.className=n.classNameOfCnfStyle(l);break;case"framePr":this.parseFrame(l,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(o,t){a.default.attr(o,"dropCap")=="drop"&&(t.cssStyle.float="left")}parseHyperlink(o,t){var l={type:r.DomType.Hyperlink,parent:t,children:[]},b=a.default.attr(o,"anchor"),k=a.default.attr(o,"id");return b&&(l.href="#"+b),k&&(l.id=k),P.foreach(o,E=>{E.localName==="r"&&l.children.push(this.parseRun(E,l))}),l}parseRun(o,t){var l={type:r.DomType.Run,parent:t,children:[]};return P.foreach(o,b=>{switch((b=this.checkAlternateContent(b)).localName){case"t":l.children.push({type:r.DomType.Text,text:b.textContent});break;case"delText":l.children.push({type:r.DomType.DeletedText,text:b.textContent});break;case"fldSimple":l.children.push({type:r.DomType.SimpleField,instruction:a.default.attr(b,"instr"),lock:a.default.boolAttr(b,"lock",!1),dirty:a.default.boolAttr(b,"dirty",!1)});break;case"instrText":l.fieldRun=!0,l.children.push({type:r.DomType.Instruction,text:b.textContent});break;case"fldChar":l.fieldRun=!0,l.children.push({type:r.DomType.ComplexField,charType:a.default.attr(b,"fldCharType"),lock:a.default.boolAttr(b,"lock",!1),dirty:a.default.boolAttr(b,"dirty",!1)});break;case"noBreakHyphen":l.children.push({type:r.DomType.NoBreakHyphen});break;case"br":l.children.push({type:r.DomType.Break,break:a.default.attr(b,"type")||"textWrapping"});break;case"lastRenderedPageBreak":l.children.push({type:r.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":l.children.push({type:r.DomType.Symbol,font:a.default.attr(b,"font"),char:a.default.attr(b,"char")});break;case"tab":l.children.push({type:r.DomType.Tab});break;case"footnoteReference":l.children.push({type:r.DomType.FootnoteReference,id:a.default.attr(b,"id")});break;case"endnoteReference":l.children.push({type:r.DomType.EndnoteReference,id:a.default.attr(b,"id")});break;case"drawing":let k=this.parseDrawing(b);k&&(l.children=[k]);break;case"pict":l.children.push(this.parseVmlPicture(b));break;case"rPr":this.parseRunProperties(b,l)}}),l}parseMathElement(o){const t=`${o.localName}Pr`,l={type:g[o.localName],children:[]};for(const k of a.default.elements(o))if(g[k.localName])l.children.push(this.parseMathElement(k));else if(k.localName=="r"){var b=this.parseRun(k);b.type=r.DomType.MmlRun,l.children.push(b)}else k.localName==t&&(l.props=this.parseMathProperies(k));return l}parseMathProperies(o){const t={};for(const l of a.default.elements(o))switch(l.localName){case"chr":t.char=a.default.attr(l,"val");break;case"degHide":t.hideDegree=a.default.boolAttr(l,"val");break;case"begChr":t.beginChar=a.default.attr(l,"val");break;case"endChr":t.endChar=a.default.attr(l,"val")}return t}parseRunProperties(o,t){this.parseDefaultProperties(o,t.cssStyle={},null,l=>{switch(l.localName){case"rStyle":t.styleName=a.default.attr(l,"val");break;case"vertAlign":t.verticalAlign=n.valueOfVertAlign(l,!0);break;default:return!1}return!0})}parseVmlPicture(o){const t={type:r.DomType.VmlPicture,children:[]};for(const l of a.default.elements(o)){const b=(0,d.parseVmlElement)(l);b&&t.children.push(b)}return t}checkAlternateContent(o){var t;if(o.localName!="AlternateContent")return o;var l=a.default.element(o,"Choice");if(l){var b=a.default.attr(l,"Requires"),k=o.lookupNamespaceURI(b);if(f.includes(k))return l.firstElementChild}return(t=a.default.element(o,"Fallback"))===null||t===void 0?void 0:t.firstElementChild}parseDrawing(o){for(var t of a.default.elements(o))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(o){var t,l={type:r.DomType.Drawing,children:[],cssStyle:{}},b=o.localName=="anchor";let k=null,E=a.default.boolAttr(o,"simplePos"),_={relative:"page",align:"left",offset:"0"},C={relative:"page",align:"top",offset:"0"};for(var s of a.default.elements(o))switch(s.localName){case"simplePos":E&&(_.offset=a.default.lengthAttr(s,"x",h.LengthUsage.Emu),C.offset=a.default.lengthAttr(s,"y",h.LengthUsage.Emu));break;case"extent":l.cssStyle.width=a.default.lengthAttr(s,"cx",h.LengthUsage.Emu),l.cssStyle.height=a.default.lengthAttr(s,"cy",h.LengthUsage.Emu);break;case"positionH":case"positionV":if(!E){let K=s.localName=="positionH"?_:C;var R=a.default.element(s,"align"),V=a.default.element(s,"posOffset");K.relative=(t=a.default.attr(s,"relativeFrom"))!==null&&t!==void 0?t:K.relative,R&&(K.align=R.textContent),V&&(K.offset=P.sizeValue(V,h.LengthUsage.Emu))}break;case"wrapTopAndBottom":k="wrapTopAndBottom";break;case"wrapNone":k="wrapNone";break;case"graphic":var M=this.parseGraphic(s);M&&l.children.push(M)}return k=="wrapTopAndBottom"?(l.cssStyle.display="block",_.align&&(l.cssStyle["text-align"]=_.align,l.cssStyle.width="100%")):k=="wrapNone"?(l.cssStyle.display="block",l.cssStyle.position="relative",l.cssStyle.width="0px",l.cssStyle.height="0px",_.offset&&(l.cssStyle.left=_.offset),C.offset&&(l.cssStyle.top=C.offset)):!b||_.align!="left"&&_.align!="right"||(l.cssStyle.float=_.align),l}parseGraphic(o){var t=a.default.element(o,"graphicData");for(let l of a.default.elements(t))if(l.localName==="pic")return this.parsePicture(l);return null}parsePicture(o){var t={type:r.DomType.Image,src:"",cssStyle:{}},l=a.default.element(o,"blipFill"),b=a.default.element(l,"blip");t.src=a.default.attr(b,"embed");var k=a.default.element(o,"spPr"),E=a.default.element(k,"xfrm");for(var _ of(t.cssStyle.position="relative",a.default.elements(E)))switch(_.localName){case"ext":t.cssStyle.width=a.default.lengthAttr(_,"cx",h.LengthUsage.Emu),t.cssStyle.height=a.default.lengthAttr(_,"cy",h.LengthUsage.Emu);break;case"off":t.cssStyle.left=a.default.lengthAttr(_,"x",h.LengthUsage.Emu),t.cssStyle.top=a.default.lengthAttr(_,"y",h.LengthUsage.Emu)}return t}parseTable(o){var t={type:r.DomType.Table,children:[]};return P.foreach(o,l=>{switch(l.localName){case"tr":t.children.push(this.parseTableRow(l));break;case"tblGrid":t.columns=this.parseTableColumns(l);break;case"tblPr":this.parseTableProperties(l,t)}}),t}parseTableColumns(o){var t=[];return P.foreach(o,l=>{l.localName==="gridCol"&&t.push({width:a.default.lengthAttr(l,"w")})}),t}parseTableProperties(o,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(o,t.cssStyle,t.cellStyle,l=>{switch(l.localName){case"tblStyle":t.styleName=a.default.attr(l,"val");break;case"tblLook":t.className=n.classNameOftblLook(l);break;case"tblpPr":this.parseTablePosition(l,t);break;case"tblStyleColBandSize":t.colBandSize=a.default.intAttr(l,"val");break;case"tblStyleRowBandSize":t.rowBandSize=a.default.intAttr(l,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}parseTablePosition(o,t){var l=a.default.lengthAttr(o,"topFromText"),b=a.default.lengthAttr(o,"bottomFromText"),k=a.default.lengthAttr(o,"rightFromText"),E=a.default.lengthAttr(o,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=n.addSize(t.cssStyle["margin-bottom"],b),t.cssStyle["margin-left"]=n.addSize(t.cssStyle["margin-left"],E),t.cssStyle["margin-right"]=n.addSize(t.cssStyle["margin-right"],k),t.cssStyle["margin-top"]=n.addSize(t.cssStyle["margin-top"],l)}parseTableRow(o){var t={type:r.DomType.Row,children:[]};return P.foreach(o,l=>{switch(l.localName){case"tc":t.children.push(this.parseTableCell(l));break;case"trPr":this.parseTableRowProperties(l,t)}}),t}parseTableRowProperties(o,t){t.cssStyle=this.parseDefaultProperties(o,{},null,l=>{switch(l.localName){case"cnfStyle":t.className=n.classNameOfCnfStyle(l);break;case"tblHeader":t.isHeader=a.default.boolAttr(l,"val");break;default:return!1}return!0})}parseTableCell(o){var t={type:r.DomType.Cell,children:[]};return P.foreach(o,l=>{switch(l.localName){case"tbl":t.children.push(this.parseTable(l));break;case"p":t.children.push(this.parseParagraph(l));break;case"tcPr":this.parseTableCellProperties(l,t)}}),t}parseTableCellProperties(o,t){t.cssStyle=this.parseDefaultProperties(o,{},null,l=>{var b;switch(l.localName){case"gridSpan":t.span=a.default.intAttr(l,"val",null);break;case"vMerge":t.verticalMerge=(b=a.default.attr(l,"val"))!==null&&b!==void 0?b:"continue";break;case"cnfStyle":t.className=n.classNameOfCnfStyle(l);break;default:return!1}return!0})}parseDefaultProperties(o,t=null,l=null,b=null){return t=t||{},P.foreach(o,k=>{if(!(b!=null&&b(k)))switch(k.localName){case"jc":t["text-align"]=n.valueOfJc(k);break;case"textAlignment":t["vertical-align"]=n.valueOfTextAlignment(k);break;case"color":t.color=P.colorAttr(k,"val",null,e.autos.color);break;case"sz":t["font-size"]=t["min-height"]=a.default.lengthAttr(k,"val",h.LengthUsage.FontSize);break;case"shd":t["background-color"]=P.colorAttr(k,"fill",null,e.autos.shd);break;case"highlight":t["background-color"]=P.colorAttr(k,"val",null,e.autos.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=a.default.lengthAttr(k,"val",h.LengthUsage.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=n.valueOfSize(k,"w");break;case"trHeight":this.parseTrHeight(k,t);break;case"strike":t["text-decoration"]=a.default.boolAttr(k,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=a.default.boolAttr(k,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=a.default.boolAttr(k,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=a.default.boolAttr(k,"val",!0)?"uppercase":"none";break;case"smallCaps":t["text-transform"]=a.default.boolAttr(k,"val",!0)?"lowercase":"none";break;case"u":this.parseUnderline(k,t);break;case"ind":case"tblInd":this.parseIndentation(k,t);break;case"rFonts":this.parseFont(k,t);break;case"tblBorders":this.parseBorderProperties(k,l||t);break;case"tblCellSpacing":t["border-spacing"]=n.valueOfMargin(k),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(k,t);break;case"bdr":t.border=n.valueOfBorder(k);break;case"tcBorders":this.parseBorderProperties(k,t);break;case"vanish":a.default.boolAttr(k,"val",!0)&&(t.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(k,l||t);break;case"tblLayout":t["table-layout"]=n.valueOfTblLayout(k);break;case"vAlign":t["vertical-align"]=n.valueOfTextAlignment(k);break;case"spacing":o.localName=="pPr"&&this.parseSpacing(k,t);break;case"wordWrap":a.default.boolAttr(k,"val")&&(t["overflow-wrap"]="break-word");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"lang":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${o.localName}.${k.localName}`)}}),t}parseUnderline(o,t){var l=a.default.attr(o,"val");if(l!=null){switch(l){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}var b=P.colorAttr(o,"color");b&&(t["text-decoration-color"]=b)}}parseFont(o,t){var l=[a.default.attr(o,"ascii"),n.themeValue(o,"asciiTheme")].filter(b=>b).join(", ");l.length>0&&(t["font-family"]=l)}parseIndentation(o,t){var l=a.default.lengthAttr(o,"firstLine"),b=a.default.lengthAttr(o,"hanging"),k=a.default.lengthAttr(o,"left"),E=a.default.lengthAttr(o,"start"),_=a.default.lengthAttr(o,"right"),C=a.default.lengthAttr(o,"end");l&&(t["text-indent"]=l),b&&(t["text-indent"]=`-${b}`),(k||E)&&(t["margin-left"]=k||E),(_||C)&&(t["margin-right"]=_||C)}parseSpacing(o,t){var l=a.default.lengthAttr(o,"before"),b=a.default.lengthAttr(o,"after"),k=a.default.intAttr(o,"line",null),E=a.default.attr(o,"lineRule");if(l&&(t["margin-top"]=l),b&&(t["margin-bottom"]=b),k!==null)switch(E){case"auto":t["line-height"]=`${(k/240).toFixed(2)}`;break;case"atLeast":t["line-height"]=`calc(100% + ${k/20}pt)`;break;default:t["line-height"]=t["min-height"]=k/20+"pt"}}parseMarginProperties(o,t){P.foreach(o,l=>{switch(l.localName){case"left":t["padding-left"]=n.valueOfMargin(l);break;case"right":t["padding-right"]=n.valueOfMargin(l);break;case"top":t["padding-top"]=n.valueOfMargin(l);break;case"bottom":t["padding-bottom"]=n.valueOfMargin(l)}})}parseTrHeight(o,t){a.default.attr(o,"hRule"),t.height=a.default.lengthAttr(o,"val")}parseBorderProperties(o,t){P.foreach(o,l=>{switch(l.localName){case"start":case"left":t["border-left"]=n.valueOfBorder(l);break;case"end":case"right":t["border-right"]=n.valueOfBorder(l);break;case"top":t["border-top"]=n.valueOfBorder(l);break;case"bottom":t["border-bottom"]=n.valueOfBorder(l)}})}};const x=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class P{static foreach(t,l){for(var b=0;b<t.childNodes.length;b++){let k=t.childNodes[b];k.nodeType==Node.ELEMENT_NODE&&l(k)}}static colorAttr(t,l,b=null,k="black"){var E=a.default.attr(t,l);if(E)return E=="auto"?k:x.includes(E)?E:`#${E}`;var _=a.default.attr(t,"themeColor");return _?`var(--docx-${_}-color)`:b}static sizeValue(t,l=h.LengthUsage.Dxa){return(0,h.convertLength)(t.textContent,l)}}class n{static themeValue(t,l){var b=a.default.attr(t,l);return b?`var(--docx-${b}-font)`:null}static valueOfSize(t,l){var b=h.LengthUsage.Dxa;switch(a.default.attr(t,"type")){case"dxa":break;case"pct":b=h.LengthUsage.Percent;break;case"auto":return"auto"}return a.default.lengthAttr(t,l,b)}static valueOfMargin(t){return a.default.lengthAttr(t,"w")}static valueOfBorder(t){if(a.default.attr(t,"val")=="nil")return"none";var l=P.colorAttr(t,"color");return`${a.default.lengthAttr(t,"sz",h.LengthUsage.Border)} solid ${l=="auto"?e.autos.borderColor:l}`}static valueOfTblLayout(t){return a.default.attr(t,"val")=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(t){const l=a.default.attr(t,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((b,k)=>l[k]=="1").join(" ")}static valueOfJc(t){var l=a.default.attr(t,"val");switch(l){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return l}static valueOfVertAlign(t,l=!1){var b=a.default.attr(t,"val");switch(b){case"subscript":return"sub";case"superscript":return l?"sup":"super"}return l?null:b}static valueOfTextAlignment(t){var l=a.default.attr(t,"val");switch(l){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return l}static addSize(t,l){return t==null?l:l==null?t:`calc(${t} + ${l})`}static classNameOftblLook(t){const l=a.default.hexAttr(t,"val",0);let b="";return(a.default.boolAttr(t,"firstRow")||32&l)&&(b+=" first-row"),(a.default.boolAttr(t,"lastRow")||64&l)&&(b+=" last-row"),(a.default.boolAttr(t,"firstColumn")||128&l)&&(b+=" first-col"),(a.default.boolAttr(t,"lastColumn")||256&l)&&(b+=" last-col"),(a.default.boolAttr(t,"noHBand")||512&l)&&(b+=" no-hband"),(a.default.boolAttr(t,"noVBand")||1024&l)&&(b+=" no-vband"),b.trim()}}},162:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CorePropsPart=void 0;const r=u(530),m=u(614);class p extends r.Part{parseXml(i){this.props=(0,m.parseCoreProps)(i,this._package.xmlParser)}}e.CorePropsPart=p},614:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCoreProps=void 0,e.parseCoreProps=function(u,r){const m={};for(let p of r.elements(u))switch(p.localName){case"title":m.title=p.textContent;break;case"description":m.description=p.textContent;break;case"subject":m.subject=p.textContent;break;case"creator":m.creator=p.textContent;break;case"keywords":m.keywords=p.textContent;break;case"language":m.language=p.textContent;break;case"lastModifiedBy":m.lastModifiedBy=p.textContent;break;case"revision":p.textContent&&(m.revision=parseInt(p.textContent))}return m}},177:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomPropsPart=void 0;const r=u(530),m=u(821);class p extends r.Part{parseXml(i){this.props=(0,m.parseCustomProps)(i,this._package.xmlParser)}}e.CustomPropsPart=p},821:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCustomProps=void 0,e.parseCustomProps=function(u,r){return r.elements(u,"property").map(m=>{const p=m.firstChild;return{formatId:r.attr(m,"fmtid"),name:r.attr(m,"name"),type:p.nodeName,value:p.textContent}})}},665:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedPropsPart=void 0;const r=u(530),m=u(668);class p extends r.Part{parseXml(i){this.props=(0,m.parseExtendedProps)(i,this._package.xmlParser)}}e.ExtendedPropsPart=p},668:(v,e)=>{function u(r){if(r!==void 0)return parseInt(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseExtendedProps=void 0,e.parseExtendedProps=function(r,m){const p={};for(let a of m.elements(r))switch(a.localName){case"Template":p.template=a.textContent;break;case"Pages":p.pages=u(a.textContent);break;case"Words":p.words=u(a.textContent);break;case"Characters":p.characters=u(a.textContent);break;case"Application":p.application=a.textContent;break;case"Lines":p.lines=u(a.textContent);break;case"Paragraphs":p.paragraphs=u(a.textContent);break;case"Company":p.company=a.textContent;break;case"AppVersion":p.appVersion=a.textContent}return p}},172:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseBookmarkEnd=e.parseBookmarkStart=void 0;const r=u(120);e.parseBookmarkStart=function(m,p){return{type:r.DomType.BookmarkStart,id:p.attr(m,"id"),name:p.attr(m,"name"),colFirst:p.intAttr(m,"colFirst"),colLast:p.intAttr(m,"colLast")}},e.parseBookmarkEnd=function(m,p){return{type:r.DomType.BookmarkEnd,id:p.attr(m,"id")}}},191:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseBorders=e.parseBorder=void 0;const r=u(149);function m(p,a){return{type:a.attr(p,"val"),color:a.attr(p,"color"),size:a.lengthAttr(p,"sz",r.LengthUsage.Border),offset:a.lengthAttr(p,"space",r.LengthUsage.Point),frame:a.boolAttr(p,"frame"),shadow:a.boolAttr(p,"shadow")}}e.parseBorder=m,e.parseBorders=function(p,a){var i={};for(let y of a.elements(p))switch(y.localName){case"left":i.left=m(y,a);break;case"top":i.top=m(y,a);break;case"right":i.right=m(y,a);break;case"bottom":i.bottom=m(y,a)}return i}},149:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCommonProperty=e.convertPercentage=e.convertBoolean=e.convertLength=e.LengthUsage=e.ns=void 0,e.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},e.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:7874015748031496e-20,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:.004166666666666667,unit:""},VmlEmu:{mul:7874015748031496e-20,unit:""}},e.convertLength=function(u,r=e.LengthUsage.Dxa){return u==null||/.+(p[xt]|[%])$/.test(u)?u:`${(parseInt(u)*r.mul).toFixed(2)}${r.unit}`},e.convertBoolean=function(u,r=!1){switch(u){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return r}},e.convertPercentage=function(u){return u?parseInt(u)/100:null},e.parseCommonProperty=function(u,r,m){if(u.namespaceURI!=e.ns.wordml)return!1;switch(u.localName){case"color":r.color=m.attr(u,"val");break;case"sz":r.fontSize=m.lengthAttr(u,"val",e.LengthUsage.FontSize);break;default:return!1}return!0}},448:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentPart=void 0;const r=u(530);class m extends r.Part{constructor(a,i,y){super(a,i),this._documentParser=y}parseXml(a){this.body=this._documentParser.parseDocumentFile(a)}}e.DocumentPart=m},120:(v,e)=>{var u;Object.defineProperty(e,"__esModule",{value:!0}),e.DomType=void 0,function(r){r.Document="document",r.Paragraph="paragraph",r.Run="run",r.Break="break",r.NoBreakHyphen="noBreakHyphen",r.Table="table",r.Row="row",r.Cell="cell",r.Hyperlink="hyperlink",r.Drawing="drawing",r.Image="image",r.Text="text",r.Tab="tab",r.Symbol="symbol",r.BookmarkStart="bookmarkStart",r.BookmarkEnd="bookmarkEnd",r.Footer="footer",r.Header="header",r.FootnoteReference="footnoteReference",r.EndnoteReference="endnoteReference",r.Footnote="footnote",r.Endnote="endnote",r.SimpleField="simpleField",r.ComplexField="complexField",r.Instruction="instruction",r.VmlPicture="vmlPicture",r.MmlMath="mmlMath",r.MmlMathParagraph="mmlMathParagraph",r.MmlFraction="mmlFraction",r.MmlNumerator="mmlNumerator",r.MmlDenominator="mmlDenominator",r.MmlRadical="mmlRadical",r.MmlBase="mmlBase",r.MmlDegree="mmlDegree",r.MmlSuperscript="mmlSuperscript",r.MmlSubscript="mmlSubscript",r.MmlSubArgument="mmlSubArgument",r.MmlSuperArgument="mmlSuperArgument",r.MmlNary="mmlNary",r.MmlDelimiter="mmlDelimiter",r.MmlRun="mmlRun",r.VmlElement="vmlElement",r.Inserted="inserted",r.Deleted="deleted",r.DeletedText="deletedText"}(u||(e.DomType=u={}))},931:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseLineSpacing=void 0,e.parseLineSpacing=function(u,r){return{before:r.lengthAttr(u,"before"),after:r.lengthAttr(u,"after"),line:r.intAttr(u,"line"),lineRule:r.attr(u,"lineRule")}}},109:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseNumbering=e.parseTabs=e.parseParagraphProperty=e.parseParagraphProperties=void 0;const r=u(149),m=u(59),p=u(931),a=u(488);function i(d,f,g){if(d.namespaceURI!=r.ns.wordml)return!1;if((0,r.parseCommonProperty)(d,f,g))return!0;switch(d.localName){case"tabs":f.tabs=y(d,g);break;case"sectPr":f.sectionProps=(0,m.parseSectionProperties)(d,g);break;case"numPr":f.numbering=h(d,g);break;case"spacing":return f.lineSpacing=(0,p.parseLineSpacing)(d,g),!1;case"textAlignment":return f.textAlignment=g.attr(d,"val"),!1;case"keepNext":f.keepLines=g.boolAttr(d,"val",!0);break;case"keepNext":f.keepNext=g.boolAttr(d,"val",!0);break;case"pageBreakBefore":f.pageBreakBefore=g.boolAttr(d,"val",!0);break;case"outlineLvl":f.outlineLevel=g.intAttr(d,"val");break;case"pStyle":f.styleName=g.attr(d,"val");break;case"rPr":f.runProps=(0,a.parseRunProperties)(d,g);break;default:return!1}return!0}function y(d,f){return f.elements(d,"tab").map(g=>({position:f.lengthAttr(g,"pos"),leader:f.attr(g,"leader"),style:f.attr(g,"val")}))}function h(d,f){var g={};for(let x of f.elements(d))switch(x.localName){case"numId":g.id=f.attr(x,"val");break;case"ilvl":g.level=f.intAttr(x,"val")}return g}e.parseParagraphProperties=function(d,f){let g={};for(let x of f.elements(d))i(x,g,f);return g},e.parseParagraphProperty=i,e.parseTabs=y,e.parseNumbering=h},488:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseRunProperty=e.parseRunProperties=void 0;const r=u(149);function m(p,a,i){return!!(0,r.parseCommonProperty)(p,a,i)}e.parseRunProperties=function(p,a){let i={};for(let y of a.elements(p))m(y,i,a);return i},e.parseRunProperty=m},59:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseSectionProperties=e.SectionType=void 0;const r=u(472),m=u(191);var p;function a(h,d){return{numberOfColumns:d.intAttr(h,"num"),space:d.lengthAttr(h,"space"),separator:d.boolAttr(h,"sep"),equalWidth:d.boolAttr(h,"equalWidth",!0),columns:d.elements(h,"col").map(f=>({width:d.lengthAttr(f,"w"),space:d.lengthAttr(f,"space")}))}}function i(h,d){return{chapSep:d.attr(h,"chapSep"),chapStyle:d.attr(h,"chapStyle"),format:d.attr(h,"fmt"),start:d.intAttr(h,"start")}}function y(h,d){return{id:d.attr(h,"id"),type:d.attr(h,"type")}}(function(h){h.Continuous="continuous",h.NextPage="nextPage",h.NextColumn="nextColumn",h.EvenPage="evenPage",h.OddPage="oddPage"})(p||(e.SectionType=p={})),e.parseSectionProperties=function(h,d=r.default){var f,g,x={};for(let P of d.elements(h))switch(P.localName){case"pgSz":x.pageSize={width:d.lengthAttr(P,"w"),height:d.lengthAttr(P,"h"),orientation:d.attr(P,"orient")};break;case"type":x.type=d.attr(P,"val");break;case"pgMar":x.pageMargins={left:d.lengthAttr(P,"left"),right:d.lengthAttr(P,"right"),top:d.lengthAttr(P,"top"),bottom:d.lengthAttr(P,"bottom"),header:d.lengthAttr(P,"header"),footer:d.lengthAttr(P,"footer"),gutter:d.lengthAttr(P,"gutter")};break;case"cols":x.columns=a(P,d);break;case"headerReference":((f=x.headerRefs)!==null&&f!==void 0?f:x.headerRefs=[]).push(y(P,d));break;case"footerReference":((g=x.footerRefs)!==null&&g!==void 0?g:x.footerRefs=[]).push(y(P,d));break;case"titlePg":x.titlePage=d.boolAttr(P,"val",!0);break;case"pgBorders":x.pageBorders=(0,m.parseBorders)(P,d);break;case"pgNumType":x.pageNumber=i(P,d)}return x}},667:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.renderAsync=e.praseAsync=e.defaultOptions=void 0;const r=u(213),m=u(168),p=u(932);e.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},e.praseAsync=function(a,i=null){const y=Object.assign(Object.assign({},e.defaultOptions),i);return r.WordDocument.load(a,new m.DocumentParser(y),y)},e.renderAsync=async function(a,i,y=null,h=null){const d=Object.assign(Object.assign({},e.defaultOptions),h),f=new p.HtmlRenderer(window.document),g=await r.WordDocument.load(a,new m.DocumentParser(d),d);return f.render(g,i,y,d),g}},380:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FontTablePart=void 0;const r=u(530),m=u(512);class p extends r.Part{parseXml(i){this.fonts=(0,m.parseFonts)(i,this._package.xmlParser)}}e.FontTablePart=p},512:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmbedFontRef=e.parseFont=e.parseFonts=void 0;const u={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function r(p,a){let i={name:a.attr(p,"name"),embedFontRefs:[]};for(let y of a.elements(p))switch(y.localName){case"family":i.family=a.attr(y,"val");break;case"altName":i.altName=a.attr(y,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":i.embedFontRefs.push(m(y,a))}return i}function m(p,a){return{id:a.attr(p,"id"),key:a.attr(p,"fontKey"),type:u[p.localName]}}e.parseFonts=function(p,a){return a.elements(p).map(i=>r(i,a))},e.parseFont=r,e.parseEmbedFontRef=m},984:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WmlFooter=e.WmlHeader=void 0;const r=u(120);e.WmlHeader=class{constructor(){this.type=r.DomType.Header,this.children=[],this.cssStyle={}}},e.WmlFooter=class{constructor(){this.type=r.DomType.Footer,this.children=[],this.cssStyle={}}}},985:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FooterPart=e.HeaderPart=e.BaseHeaderFooterPart=void 0;const r=u(530),m=u(984);class p extends r.Part{constructor(i,y,h){super(i,y),this._documentParser=h}parseXml(i){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(i)}}e.BaseHeaderFooterPart=p,e.HeaderPart=class extends p{createRootElement(){return new m.WmlHeader}},e.FooterPart=class extends p{createRootElement(){return new m.WmlFooter}}},932:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlRenderer=void 0;const r=u(120),m=u(593),p=u(630),a=u(438),i="http://www.w3.org/1998/Math/MathML";function y(n,o,t){return d(void 0,n,o,t)}function h(n,o,t){return d("http://www.w3.org/2000/svg",n,o,t)}function d(n,o,t,l){var b=n?document.createElementNS(n,o):document.createElement(o);return Object.assign(b,t),l&&g(b,l),b}function f(n){n.innerHTML=""}function g(n,o){o.forEach(t=>n.appendChild((0,m.isString)(t)?document.createTextNode(t):t))}function x(n){return y("style",{innerHTML:n})}function P(n,o){n.appendChild(document.createComment(o))}e.HtmlRenderer=class{constructor(n){this.htmlDocument=n,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=y}render(n,o,t=null,l){var b;this.document=n,this.options=l,this.className=l.className,this.rootSelector=l.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,f(t=t||o),f(o),P(t,"docxjs library predefined styles"),t.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&l.useMathMLPolyfill&&(P(t,"docxjs mathml polyfill styles"),t.appendChild(x(a.default))),n.themePart&&(P(t,"docxjs document theme values"),this.renderTheme(n.themePart,t)),n.stylesPart!=null&&(this.styleMap=this.processStyles(n.stylesPart.styles),P(t,"docxjs document styles"),t.appendChild(this.renderStyles(n.stylesPart.styles))),n.numberingPart&&(this.prodessNumberings(n.numberingPart.domNumberings),P(t,"docxjs document numbering styles"),t.appendChild(this.renderNumbering(n.numberingPart.domNumberings,t))),n.footnotesPart&&(this.footnoteMap=(0,m.keyBy)(n.footnotesPart.notes,E=>E.id)),n.endnotesPart&&(this.endnoteMap=(0,m.keyBy)(n.endnotesPart.notes,E=>E.id)),n.settingsPart&&(this.defaultTabSize=(b=n.settingsPart.settings)===null||b===void 0?void 0:b.defaultTabStop),!l.ignoreFonts&&n.fontTablePart&&this.renderFontTable(n.fontTablePart,t);var k=this.renderSections(n.documentPart.body);this.options.inWrapper?o.appendChild(this.renderWrapper(k)):g(o,k),this.refreshTabStops()}renderTheme(n,o){var t,l;const b={},k=(t=n.theme)===null||t===void 0?void 0:t.fontScheme;k&&(k.majorFont&&(b["--docx-majorHAnsi-font"]=k.majorFont.latinTypeface),k.minorFont&&(b["--docx-minorHAnsi-font"]=k.minorFont.latinTypeface));const E=(l=n.theme)===null||l===void 0?void 0:l.colorScheme;if(E)for(let[C,s]of Object.entries(E.colors))b[`--docx-${C}-color`]=`#${s}`;const _=this.styleToString(`.${this.className}`,b);o.appendChild(x(_))}renderFontTable(n,o){for(let t of n.fonts)for(let l of t.embedFontRefs)this.document.loadFont(l.id,l.key).then(b=>{const k={"font-family":t.name,src:`url(${b})`};l.type!="bold"&&l.type!="boldItalic"||(k["font-weight"]="bold"),l.type!="italic"&&l.type!="boldItalic"||(k["font-style"]="italic"),P(o,`docxjs ${t.name} font`);const E=this.styleToString("@font-face",k);o.appendChild(x(E)),this.refreshTabStops()})}processStyleName(n){return n?`${this.className}_${(0,m.escapeClassName)(n)}`:this.className}processStyles(n){const o=(0,m.keyBy)(n.filter(l=>l.id!=null),l=>l.id);for(const l of n.filter(b=>b.basedOn)){var t=o[l.basedOn];if(t){l.paragraphProps=(0,m.mergeDeep)(l.paragraphProps,t.paragraphProps),l.runProps=(0,m.mergeDeep)(l.runProps,t.runProps);for(const b of t.styles){const k=l.styles.find(E=>E.target==b.target);k?this.copyStyleProperties(b.values,k.values):l.styles.push(Object.assign(Object.assign({},b),{values:Object.assign({},b.values)}))}}else this.options.debug&&console.warn(`Can't find base style ${l.basedOn}`)}for(let l of n)l.cssName=this.processStyleName(l.id);return o}prodessNumberings(n){var o;for(let t of n.filter(l=>l.pStyleName)){const l=this.findStyle(t.pStyleName);!((o=l==null?void 0:l.paragraphProps)===null||o===void 0)&&o.numbering&&(l.paragraphProps.numbering.level=t.level)}}processElement(n){if(n.children)for(var o of n.children)o.parent=n,o.type==r.DomType.Table?this.processTable(o):this.processElement(o)}processTable(n){for(var o of n.children)for(var t of o.children)t.cssStyle=this.copyStyleProperties(n.cellStyle,t.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(t)}copyStyleProperties(n,o,t=null){if(!n)return o;for(var l of(o==null&&(o={}),t==null&&(t=Object.getOwnPropertyNames(n)),t))n.hasOwnProperty(l)&&!o.hasOwnProperty(l)&&(o[l]=n[l]);return o}createSection(n,o){var t=this.createElement("section",{className:n});return o&&(o.pageMargins&&(t.style.paddingLeft=o.pageMargins.left,t.style.paddingRight=o.pageMargins.right,t.style.paddingTop=o.pageMargins.top,t.style.paddingBottom=o.pageMargins.bottom),o.pageSize&&(this.options.ignoreWidth||(t.style.width=o.pageSize.width),this.options.ignoreHeight||(t.style.minHeight=o.pageSize.height)),o.columns&&o.columns.numberOfColumns&&(t.style.columnCount=`${o.columns.numberOfColumns}`,t.style.columnGap=o.columns.space,o.columns.separator&&(t.style.columnRule="1px solid black"))),t}renderSections(n){const o=[];this.processElement(n);const t=this.splitBySection(n.children);let l=null;for(let k=0,E=t.length;k<E;k++){this.currentFootnoteIds=[];const _=t[k],C=_.sectProps||n.props,s=this.createSection(this.className,C);this.renderStyleValues(n.cssStyle,s),this.options.renderHeaders&&this.renderHeaderFooter(C.headerRefs,C,o.length,l!=C,s);var b=this.createElement("article");this.renderElements(_.elements,b),s.appendChild(b),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,s),this.options.renderEndnotes&&k==E-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,s),this.options.renderFooters&&this.renderHeaderFooter(C.footerRefs,C,o.length,l!=C,s),o.push(s),l=C}return o}renderHeaderFooter(n,o,t,l,b){var k,E;if(n){var _=(E=(k=o.titlePage&&l?n.find(s=>s.type=="first"):null)!==null&&k!==void 0?k:t%2==1?n.find(s=>s.type=="even"):null)!==null&&E!==void 0?E:n.find(s=>s.type=="default"),C=_&&this.document.findPartByRelId(_.id,this.document.documentPart);C&&(this.currentPart=C,this.usedHederFooterParts.includes(C.path)||(this.processElement(C.rootElement),this.usedHederFooterParts.push(C.path)),this.renderElements([C.rootElement],b),this.currentPart=null)}}isPageBreakElement(n){return n.type==r.DomType.Break&&(n.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:n.break=="page")}splitBySection(n){var o,t={sectProps:null,elements:[]},l=[t];for(let R of n){if(R.type==r.DomType.Paragraph){const V=this.findStyle(R.styleName);!((o=V==null?void 0:V.paragraphProps)===null||o===void 0)&&o.pageBreakBefore&&(t.sectProps=b,t={sectProps:null,elements:[]},l.push(t))}if(t.elements.push(R),R.type==r.DomType.Paragraph){const V=R;var b=V.sectionProps,k=-1,E=-1;if(this.options.breakPages&&V.children&&(k=V.children.findIndex(M=>{var K,W;return(E=(W=(K=M.children)===null||K===void 0?void 0:K.findIndex(this.isPageBreakElement.bind(this)))!==null&&W!==void 0?W:-1)!=-1})),(b||k!=-1)&&(t.sectProps=b,t={sectProps:null,elements:[]},l.push(t)),k!=-1){let M=V.children[k],K=E<M.children.length-1;if(k<V.children.length-1||K){var _=R.children,C=Object.assign(Object.assign({},R),{children:_.slice(k)});if(R.children=_.slice(0,k),t.elements.push(C),K){let W=M.children,J=Object.assign(Object.assign({},M),{children:W.slice(0,E)});R.children.push(J),M.children=W.slice(E)}}}}}let s=null;for(let R=l.length-1;R>=0;R--)l[R].sectProps==null?l[R].sectProps=s:s=l[R].sectProps;return l}renderWrapper(n){return this.createElement("div",{className:`${this.className}-wrapper`},n)}renderDefaultStyle(){var n=this.className;return x(`
|
||
.${n}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }
|
||
.${n}-wrapper>section.${n} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
|
||
.${n} { color: black; }
|
||
section.${n} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
|
||
section.${n}>article { margin-bottom: auto; }
|
||
.${n} table { border-collapse: collapse; }
|
||
.${n} table td, .${n} table th { vertical-align: top; }
|
||
.${n} p { margin: 0pt; min-height: 1em; }
|
||
.${n} span { white-space: pre-wrap; overflow-wrap: break-word; }
|
||
.${n} a { color: inherit; text-decoration: inherit; }
|
||
`)}renderNumbering(n,o){var t="",l=[];for(var b of n){var k=`p.${this.numberingClass(b.id,b.level)}`,E="none";if(b.bullet){let _=`--${this.className}-${b.bullet.src}`.toLowerCase();t+=this.styleToString(`${k}:before`,{content:"' '",display:"inline-block",background:`var(${_})`},b.bullet.style),this.document.loadNumberingImage(b.bullet.src).then(C=>{var s=`${this.rootSelector} { ${_}: url(${C}) }`;o.appendChild(x(s))})}else if(b.levelText){let _=this.numberingCounter(b.id,b.level);b.level>0?t+=this.styleToString(`p.${this.numberingClass(b.id,b.level-1)}`,{"counter-reset":_}):l.push(_),t+=this.styleToString(`${k}:before`,Object.assign({content:this.levelTextToContent(b.levelText,b.suff,b.id,this.numFormatToCssValue(b.format)),"counter-increment":_},b.rStyle))}else E=this.numFormatToCssValue(b.format);t+=this.styleToString(k,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":E},b.pStyle))}return l.length>0&&(t+=this.styleToString(this.rootSelector,{"counter-reset":l.join(" ")})),x(t)}renderStyles(n){var o,t="";const l=this.styleMap,b=(0,m.keyBy)(n.filter(C=>C.isDefault),C=>C.target);for(const C of n){var k=C.styles;if(C.linked){var E=C.linked&&l[C.linked];E?k=k.concat(E.styles):this.options.debug&&console.warn(`Can't find linked style ${C.linked}`)}for(const s of k){var _=`${(o=C.target)!==null&&o!==void 0?o:""}.${C.cssName}`;C.target!=s.target&&(_+=` ${s.target}`),b[C.target]==C&&(_=`.${this.className} ${C.target}, `+_),t+=this.styleToString(_,s.values)}}return x(t)}renderNotes(n,o,t){var l=n.map(k=>o[k]).filter(k=>k);if(l.length>0){var b=this.createElement("ol",null,this.renderElements(l));t.appendChild(b)}}renderElement(n){switch(n.type){case r.DomType.Paragraph:return this.renderParagraph(n);case r.DomType.BookmarkStart:return this.renderBookmarkStart(n);case r.DomType.BookmarkEnd:return null;case r.DomType.Run:return this.renderRun(n);case r.DomType.Table:return this.renderTable(n);case r.DomType.Row:return this.renderTableRow(n);case r.DomType.Cell:return this.renderTableCell(n);case r.DomType.Hyperlink:return this.renderHyperlink(n);case r.DomType.Drawing:return this.renderDrawing(n);case r.DomType.Image:return this.renderImage(n);case r.DomType.Text:case r.DomType.Text:return this.renderText(n);case r.DomType.DeletedText:return this.renderDeletedText(n);case r.DomType.Tab:return this.renderTab(n);case r.DomType.Symbol:return this.renderSymbol(n);case r.DomType.Break:return this.renderBreak(n);case r.DomType.Footer:return this.renderContainer(n,"footer");case r.DomType.Header:return this.renderContainer(n,"header");case r.DomType.Footnote:case r.DomType.Endnote:return this.renderContainer(n,"li");case r.DomType.FootnoteReference:return this.renderFootnoteReference(n);case r.DomType.EndnoteReference:return this.renderEndnoteReference(n);case r.DomType.NoBreakHyphen:return this.createElement("wbr");case r.DomType.VmlPicture:return this.renderVmlPicture(n);case r.DomType.VmlElement:return this.renderVmlElement(n);case r.DomType.MmlMath:return this.renderContainerNS(n,i,"math",{xmlns:i});case r.DomType.MmlMathParagraph:return this.renderContainer(n,"span");case r.DomType.MmlFraction:return this.renderContainerNS(n,i,"mfrac");case r.DomType.MmlNumerator:case r.DomType.MmlDenominator:return this.renderContainerNS(n,i,"mrow");case r.DomType.MmlRadical:return this.renderMmlRadical(n);case r.DomType.MmlDegree:return this.renderContainerNS(n,i,"mn");case r.DomType.MmlSuperscript:return this.renderContainerNS(n,i,"msup");case r.DomType.MmlSubscript:return this.renderContainerNS(n,i,"msub");case r.DomType.MmlBase:return this.renderContainerNS(n,i,"mrow");case r.DomType.MmlSuperArgument:case r.DomType.MmlSubArgument:return this.renderContainerNS(n,i,"mn");case r.DomType.MmlDelimiter:return this.renderMmlDelimiter(n);case r.DomType.MmlRun:return this.renderMmlRun(n);case r.DomType.MmlNary:return this.renderMmlNary(n);case r.DomType.Inserted:return this.renderInserted(n);case r.DomType.Deleted:return this.renderDeleted(n)}return null}renderChildren(n,o){return this.renderElements(n.children,o)}renderElements(n,o){if(n==null)return null;var t=n.flatMap(l=>this.renderElement(l)).filter(l=>l!=null);return o&&g(o,t),t}renderContainer(n,o,t){return this.createElement(o,t,this.renderChildren(n))}renderContainerNS(n,o,t,l){return d(o,t,l,this.renderChildren(n))}renderParagraph(n){var o,t,l,b,k=this.createElement("p");const E=this.findStyle(n.styleName);(o=n.tabs)!==null&&o!==void 0||(n.tabs=(t=E==null?void 0:E.paragraphProps)===null||t===void 0?void 0:t.tabs),this.renderClass(n,k),this.renderChildren(n,k),this.renderStyleValues(n.cssStyle,k),this.renderCommonProperties(k.style,n);const _=(l=n.numbering)!==null&&l!==void 0?l:(b=E==null?void 0:E.paragraphProps)===null||b===void 0?void 0:b.numbering;return _&&k.classList.add(this.numberingClass(_.id,_.level)),k}renderRunProperties(n,o){this.renderCommonProperties(n,o)}renderCommonProperties(n,o){o!=null&&(o.color&&(n.color=o.color),o.fontSize&&(n["font-size"]=o.fontSize))}renderHyperlink(n){var o=this.createElement("a");if(this.renderChildren(n,o),this.renderStyleValues(n.cssStyle,o),n.href)o.href=n.href;else if(n.id){const t=this.document.documentPart.rels.find(l=>l.id==n.id&&l.targetMode==="External");o.href=t==null?void 0:t.target}return o}renderDrawing(n){var o=this.createElement("div");return o.style.display="inline-block",o.style.position="relative",o.style.textIndent="0px",this.renderChildren(n,o),this.renderStyleValues(n.cssStyle,o),o}renderImage(n){let o=this.createElement("img");return this.renderStyleValues(n.cssStyle,o),this.document&&this.document.loadDocumentImage(n.src,this.currentPart).then(t=>{o.src=t}),o}renderText(n){return this.htmlDocument.createTextNode(n.text)}renderDeletedText(n){return this.options.renderEndnotes?this.htmlDocument.createTextNode(n.text):null}renderBreak(n){return n.break=="textWrapping"?this.createElement("br"):null}renderInserted(n){return this.options.renderChanges?this.renderContainer(n,"ins"):this.renderChildren(n)}renderDeleted(n){return this.options.renderChanges?this.renderContainer(n,"del"):null}renderSymbol(n){var o=this.createElement("span");return o.style.fontFamily=n.font,o.innerHTML=`&#x${n.char};`,o}renderFootnoteReference(n){var o=this.createElement("sup");return this.currentFootnoteIds.push(n.id),o.textContent=`${this.currentFootnoteIds.length}`,o}renderEndnoteReference(n){var o=this.createElement("sup");return this.currentEndnoteIds.push(n.id),o.textContent=`${this.currentEndnoteIds.length}`,o}renderTab(n){var o,t=this.createElement("span");if(t.innerHTML=" ",this.options.experimental){t.className=this.tabStopClass();var l=(o=function(b,k){for(var E=b.parent;E!=null&&E.type!=k;)E=E.parent;return E}(n,r.DomType.Paragraph))===null||o===void 0?void 0:o.tabs;this.currentTabs.push({stops:l,span:t})}return t}renderBookmarkStart(n){var o=this.createElement("span");return o.id=n.name,o}renderRun(n){if(n.fieldRun)return null;const o=this.createElement("span");if(n.id&&(o.id=n.id),this.renderClass(n,o),this.renderStyleValues(n.cssStyle,o),n.verticalAlign){const t=this.createElement(n.verticalAlign);this.renderChildren(n,t),o.appendChild(t)}else this.renderChildren(n,o);return o}renderTable(n){let o=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},n.columns&&o.appendChild(this.renderTableColumns(n.columns)),this.renderClass(n,o),this.renderChildren(n,o),this.renderStyleValues(n.cssStyle,o),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),o}renderTableColumns(n){let o=this.createElement("colgroup");for(let t of n){let l=this.createElement("col");t.width&&(l.style.width=t.width),o.appendChild(l)}return o}renderTableRow(n){let o=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(n,o),this.renderChildren(n,o),this.renderStyleValues(n.cssStyle,o),this.currentCellPosition.row++,o}renderTableCell(n){let o=this.createElement("td");const t=this.currentCellPosition.col;return n.verticalMerge?n.verticalMerge=="restart"?(this.currentVerticalMerge[t]=o,o.rowSpan=1):this.currentVerticalMerge[t]&&(this.currentVerticalMerge[t].rowSpan+=1,o.style.display="none"):this.currentVerticalMerge[t]=null,this.renderClass(n,o),this.renderChildren(n,o),this.renderStyleValues(n.cssStyle,o),n.span&&(o.colSpan=n.span),this.currentCellPosition.col+=o.colSpan,o}renderVmlPicture(n){var o=y("div");return this.renderChildren(n,o),o}renderVmlElement(n){var o,t,l=h("svg");l.setAttribute("style",n.cssStyleText);const b=h(n.tagName);return Object.entries(n.attrs).forEach(([k,E])=>b.setAttribute(k,E)),!((o=n.imageHref)===null||o===void 0)&&o.id&&((t=this.document)===null||t===void 0||t.loadDocumentImage(n.imageHref.id,this.currentPart).then(k=>b.setAttribute("href",k))),l.appendChild(b),requestAnimationFrame(()=>{const k=l.firstElementChild.getBBox();l.setAttribute("width",`${Math.ceil(k.x+k.width)}`),l.setAttribute("height",`${Math.ceil(k.y+k.height)}`)}),l}renderMmlRadical(n){var o;const t=n.children.find(b=>b.type==r.DomType.MmlBase);if(!((o=n.props)===null||o===void 0)&&o.hideDegree)return d(i,"msqrt",null,this.renderElements([t]));const l=n.children.find(b=>b.type==r.DomType.MmlDegree);return d(i,"mroot",null,this.renderElements([t,l]))}renderMmlDelimiter(n){var o,t;const l=[];return l.push(d(i,"mo",null,[(o=n.props.beginChar)!==null&&o!==void 0?o:"("])),l.push(...this.renderElements(n.children)),l.push(d(i,"mo",null,[(t=n.props.endChar)!==null&&t!==void 0?t:")"])),d(i,"mrow",null,l)}renderMmlNary(n){var o;const t=[],l=(0,m.keyBy)(n.children,C=>C.type),b=l[r.DomType.MmlSuperArgument],k=l[r.DomType.MmlSubArgument],E=b?d(i,"mo",null,(0,m.asArray)(this.renderElement(b))):null,_=k?d(i,"mo",null,(0,m.asArray)(this.renderElement(k))):null;if(!((o=n.props)===null||o===void 0)&&o.char){const C=d(i,"mo",null,[n.props.char]);E||_?t.push(d(i,"munderover",null,[C,_,E])):E?t.push(d(i,"mover",null,[C,E])):_?t.push(d(i,"munder",null,[C,_])):t.push(C)}return t.push(...this.renderElements(l[r.DomType.MmlBase].children)),d(i,"mrow",null,t)}renderMmlRun(n){const o=d(i,"ms");return this.renderClass(n,o),this.renderStyleValues(n.cssStyle,o),this.renderChildren(n,o),o}renderStyleValues(n,o){Object.assign(o.style,n)}renderClass(n,o){n.className&&(o.className=n.className),n.styleName&&o.classList.add(this.processStyleName(n.styleName))}findStyle(n){var o;return n&&((o=this.styleMap)===null||o===void 0?void 0:o[n])}numberingClass(n,o){return`${this.className}-num-${n}-${o}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(n,o,t=null){let l=`${n} {\r
|
||
`;for(const b in o)l+=` ${b}: ${o[b]};\r
|
||
`;return t&&(l+=t),l+`}\r
|
||
`}numberingCounter(n,o){return`${this.className}-num-${n}-${o}`}levelTextToContent(n,o,t,l){var b;return`"${n.replace(/%\d*/g,k=>{let E=parseInt(k.substring(1),10)-1;return`"counter(${this.numberingCounter(t,E)}, ${l})"`})}${(b={tab:"\\9",space:"\\a0"}[o])!==null&&b!==void 0?b:""}"`}numFormatToCssValue(n){var o;return(o={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[n])!==null&&o!==void 0?o:n}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const n=(0,p.computePixelToPoint)();for(let o of this.currentTabs)(0,p.updateTabStop)(o.span,o.stops,this.defaultTabSize,n)},500))}}},630:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateTabStop=e.computePixelToPoint=void 0;const u={pos:0,leader:"none",style:"left"};function r(m){return parseFloat(m)}e.computePixelToPoint=function(m=document.body){const p=document.createElement("div");p.style.width="100pt",m.appendChild(p);const a=100/p.offsetWidth;return m.removeChild(p),a},e.updateTabStop=function(m,p,a,i=.75){const y=m.closest("p"),h=m.getBoundingClientRect(),d=y.getBoundingClientRect(),f=getComputedStyle(y),g=(p==null?void 0:p.length)>0?p.map(_=>({pos:r(_.position),leader:_.leader,style:_.style})).sort((_,C)=>_.pos-C.pos):[u],x=g[g.length-1],P=d.width*i,n=r(a);let o=x.pos+n;if(o<P)for(;o<P&&g.length<50;o+=n)g.push(Object.assign(Object.assign({},u),{pos:o}));const t=parseFloat(f.marginLeft),l=d.left+t,b=(h.left-l)*i,k=g.find(_=>_.style!="clear"&&_.pos>b);if(k==null)return;let E=1;if(k.style=="right"||k.style=="center"){const _=Array.from(y.querySelectorAll(`.${m.className}`)),C=_.indexOf(m)+1,s=document.createRange();s.setStart(m,1),C<_.length?s.setEndBefore(_[C]):s.setEndAfter(y);const R=k.style=="center"?.5:1,V=s.getBoundingClientRect(),M=V.left+R*V.width-(d.left-t);E=k.pos-M*i}else E=k.pos-b;switch(m.innerHTML=" ",m.style.textDecoration="inherit",m.style.wordSpacing=`${E.toFixed(0)}pt`,k.leader){case"dot":case"middleDot":m.style.textDecoration="underline",m.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":m.style.textDecoration="underline"}}},881:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WmlEndnote=e.WmlFootnote=e.WmlBaseNote=void 0;const r=u(120);class m{constructor(){this.children=[],this.cssStyle={}}}e.WmlBaseNote=m,e.WmlFootnote=class extends m{constructor(){super(...arguments),this.type=r.DomType.Footnote}},e.WmlEndnote=class extends m{constructor(){super(...arguments),this.type=r.DomType.Endnote}}},735:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EndnotesPart=e.FootnotesPart=e.BaseNotePart=void 0;const r=u(530),m=u(881);class p extends r.Part{constructor(i,y,h){super(i,y),this._documentParser=h}}e.BaseNotePart=p,e.FootnotesPart=class extends p{constructor(a,i,y){super(a,i,y)}parseXml(a){this.notes=this._documentParser.parseNotes(a,"footnote",m.WmlFootnote)}},e.EndnotesPart=class extends p{constructor(a,i,y){super(a,i,y)}parseXml(a){this.notes=this._documentParser.parseNotes(a,"endnote",m.WmlEndnote)}}},527:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NumberingPart=void 0;const r=u(530),m=u(682);class p extends r.Part{constructor(i,y,h){super(i,y),this._documentParser=h}parseXml(i){Object.assign(this,(0,m.parseNumberingPart)(i,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(i)}}e.NumberingPart=p},682:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseNumberingBulletPicture=e.parseNumberingLevelOverrride=e.parseNumberingLevel=e.parseAbstractNumbering=e.parseNumbering=e.parseNumberingPart=void 0;const r=u(109),m=u(488);function p(d,f){let g={id:f.attr(d,"numId"),overrides:[]};for(let x of f.elements(d))switch(x.localName){case"abstractNumId":g.abstractId=f.attr(x,"val");break;case"lvlOverride":g.overrides.push(y(x,f))}return g}function a(d,f){let g={id:f.attr(d,"abstractNumId"),levels:[]};for(let x of f.elements(d))switch(x.localName){case"name":g.name=f.attr(x,"val");break;case"multiLevelType":g.multiLevelType=f.attr(x,"val");break;case"numStyleLink":g.numberingStyleLink=f.attr(x,"val");break;case"styleLink":g.styleLink=f.attr(x,"val");break;case"lvl":g.levels.push(i(x,f))}return g}function i(d,f){let g={level:f.intAttr(d,"ilvl")};for(let x of f.elements(d))switch(x.localName){case"start":g.start=f.attr(x,"val");break;case"lvlRestart":g.restart=f.intAttr(x,"val");break;case"numFmt":g.format=f.attr(x,"val");break;case"lvlText":g.text=f.attr(x,"val");break;case"lvlJc":g.justification=f.attr(x,"val");break;case"lvlPicBulletId":g.bulletPictureId=f.attr(x,"val");break;case"pStyle":g.paragraphStyle=f.attr(x,"val");break;case"pPr":g.paragraphProps=(0,r.parseParagraphProperties)(x,f);break;case"rPr":g.runProps=(0,m.parseRunProperties)(x,f)}return g}function y(d,f){let g={level:f.intAttr(d,"ilvl")};for(let x of f.elements(d))switch(x.localName){case"startOverride":g.start=f.intAttr(x,"val");break;case"lvl":g.numberingLevel=i(x,f)}return g}function h(d,f){var g=f.element(d,"pict"),x=g&&f.element(g,"shape"),P=x&&f.element(x,"imagedata");return P?{id:f.attr(d,"numPicBulletId"),referenceId:f.attr(P,"id"),style:f.attr(x,"style")}:null}e.parseNumberingPart=function(d,f){let g={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let x of f.elements(d))switch(x.localName){case"num":g.numberings.push(p(x,f));break;case"abstractNum":g.abstractNumberings.push(a(x,f));break;case"numPicBullet":g.bulletPictures.push(h(x,f))}return g},e.parseNumbering=p,e.parseAbstractNumbering=a,e.parseNumberingLevel=i,e.parseNumberingLevelOverrride=y,e.parseNumberingBulletPicture=h},472:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XmlParser=e.serializeXmlString=e.parseXmlString=void 0;const r=u(149);e.parseXmlString=function(a,i=!1){var y;i&&(a=a.replace(/<[?].*[?]>/,"")),a=(y=a).charCodeAt(0)===65279?y.substring(1):y;const h=new DOMParser().parseFromString(a,"application/xml"),d=(f=h.getElementsByTagName("parsererror")[0])===null||f===void 0?void 0:f.textContent;var f;if(d)throw new Error(d);return h},e.serializeXmlString=function(a){return new XMLSerializer().serializeToString(a)};class m{elements(i,y=null){const h=[];for(let d=0,f=i.childNodes.length;d<f;d++){let g=i.childNodes.item(d);g.nodeType!=1||y!=null&&g.localName!=y||h.push(g)}return h}element(i,y){for(let h=0,d=i.childNodes.length;h<d;h++){let f=i.childNodes.item(h);if(f.nodeType==1&&f.localName==y)return f}return null}elementAttr(i,y,h){var d=this.element(i,y);return d?this.attr(d,h):void 0}attrs(i){return Array.from(i.attributes)}attr(i,y){for(let h=0,d=i.attributes.length;h<d;h++){let f=i.attributes.item(h);if(f.localName==y)return f.value}return null}intAttr(i,y,h=null){var d=this.attr(i,y);return d?parseInt(d):h}hexAttr(i,y,h=null){var d=this.attr(i,y);return d?parseInt(d,16):h}floatAttr(i,y,h=null){var d=this.attr(i,y);return d?parseFloat(d):h}boolAttr(i,y,h=null){return(0,r.convertBoolean)(this.attr(i,y),h)}lengthAttr(i,y,h=r.LengthUsage.Dxa){return(0,r.convertLength)(this.attr(i,y),h)}}e.XmlParser=m;const p=new m;e.default=p},287:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SettingsPart=void 0;const r=u(530),m=u(846);class p extends r.Part{constructor(i,y){super(i,y)}parseXml(i){this.settings=(0,m.parseSettings)(i,this._package.xmlParser)}}e.SettingsPart=p},846:(v,e)=>{function u(r,m){var p={defaultNoteIds:[]};for(let a of m.elements(r))switch(a.localName){case"numFmt":p.nummeringFormat=m.attr(a,"val");break;case"footnote":case"endnote":p.defaultNoteIds.push(m.attr(a,"id"))}return p}Object.defineProperty(e,"__esModule",{value:!0}),e.parseNoteProperties=e.parseSettings=void 0,e.parseSettings=function(r,m){var p={};for(let a of m.elements(r))switch(a.localName){case"defaultTabStop":p.defaultTabStop=m.lengthAttr(a,"val");break;case"footnotePr":p.footnoteProps=u(a,m);break;case"endnotePr":p.endnoteProps=u(a,m);break;case"autoHyphenation":p.autoHyphenation=m.boolAttr(a,"val")}return p},e.parseNoteProperties=u},240:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StylesPart=void 0;const r=u(530);class m extends r.Part{constructor(a,i,y){super(a,i),this._documentParser=y}parseXml(a){this.styles=this._documentParser.parseStylesFile(a)}}e.StylesPart=m},893:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ThemePart=void 0;const r=u(530),m=u(55);class p extends r.Part{constructor(i,y){super(i,y)}parseXml(i){this.theme=(0,m.parseTheme)(i,this._package.xmlParser)}}e.ThemePart=p},55:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseFontInfo=e.parseFontScheme=e.parseColorScheme=e.parseTheme=e.DmlTheme=void 0;class u{}function r(a,i){var y={name:i.attr(a,"name"),colors:{}};for(let f of i.elements(a)){var h=i.element(f,"srgbClr"),d=i.element(f,"sysClr");h?y.colors[f.localName]=i.attr(h,"val"):d&&(y.colors[f.localName]=i.attr(d,"lastClr"))}return y}function m(a,i){var y={name:i.attr(a,"name")};for(let h of i.elements(a))switch(h.localName){case"majorFont":y.majorFont=p(h,i);break;case"minorFont":y.minorFont=p(h,i)}return y}function p(a,i){return{latinTypeface:i.elementAttr(a,"latin","typeface"),eaTypeface:i.elementAttr(a,"ea","typeface"),csTypeface:i.elementAttr(a,"cs","typeface")}}e.DmlTheme=u,e.parseTheme=function(a,i){var y=new u,h=i.element(a,"themeElements");for(let d of i.elements(h))switch(d.localName){case"clrScheme":y.colorScheme=r(d,i);break;case"fontScheme":y.fontScheme=m(d,i)}return y},e.parseColorScheme=r,e.parseFontScheme=m,e.parseFontInfo=p},593:(v,e)=>{function u(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.asArray=e.formatCssRules=e.parseCssRules=e.mergeDeep=e.isString=e.isObject=e.blobToBase64=e.keyBy=e.resolvePath=e.splitPath=e.escapeClassName=void 0,e.escapeClassName=function(r){return r==null?void 0:r.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},e.splitPath=function(r){let m=r.lastIndexOf("/")+1;return[m==0?"":r.substring(0,m),m==0?r:r.substring(m)]},e.resolvePath=function(r,m){try{const p="http://docx/";return new URL(r,p+m).toString().substring(p.length)}catch{return`${m}${r}`}},e.keyBy=function(r,m){return r.reduce((p,a)=>(p[m(a)]=a,p),{})},e.blobToBase64=function(r){return new Promise((m,p)=>{const a=new FileReader;a.onloadend=()=>m(a.result),a.onerror=()=>p(),a.readAsDataURL(r)})},e.isObject=u,e.isString=function(r){return r&&typeof r=="string"||r instanceof String},e.mergeDeep=function r(m,...p){var a;if(!p.length)return m;const i=p.shift();if(u(m)&&u(i))for(const y in i)u(i[y])?r((a=m[y])!==null&&a!==void 0?a:m[y]={},i[y]):m[y]=i[y];return r(m,...p)},e.parseCssRules=function(r){const m={};for(const p of r.split(";")){const[a,i]=p.split(":");m[a]=i}return m},e.formatCssRules=function(r){return Object.entries(r).map((m,p)=>`${m}: ${p}`).join(";")},e.asArray=function(r){return Array.isArray(r)?r:[r]}},320:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseVmlElement=e.VmlElement=void 0;const r=u(149),m=u(120),p=u(472);class a{constructor(){this.type=m.DomType.VmlElement,this.attrs={},this.chidren=[]}}function i(h){var d;return{stroke:p.default.attr(h,"color"),"stroke-width":(d=p.default.lengthAttr(h,"weight",r.LengthUsage.Emu))!==null&&d!==void 0?d:"1px"}}function y(h){return h.split(",")}e.VmlElement=a,e.parseVmlElement=function h(d){var f=new a;switch(d.localName){case"rect":f.tagName="rect",Object.assign(f.attrs,{width:"100%",height:"100%"});break;case"oval":f.tagName="ellipse",Object.assign(f.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":f.tagName="line";break;case"shape":f.tagName="g";break;default:return null}for(const g of p.default.attrs(d))switch(g.localName){case"style":f.cssStyleText=g.value;break;case"fillcolor":f.attrs.fill=g.value;break;case"from":const[x,P]=y(g.value);Object.assign(f.attrs,{x1:x,y1:P});break;case"to":const[n,o]=y(g.value);Object.assign(f.attrs,{x2:n,y2:o})}for(const g of p.default.elements(d))switch(g.localName){case"stroke":Object.assign(f.attrs,i(g));break;case"fill":Object.assign(f.attrs,{});break;case"imagedata":f.tagName="image",Object.assign(f.attrs,{width:"100%",height:"100%"}),f.imageHref={id:p.default.attr(g,"id"),title:p.default.attr(g,"title")};break;default:const x=h(g);x&&f.chidren.push(x)}return f}},213:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.deobfuscate=e.WordDocument=void 0;const r=u(461),m=u(380),p=u(522),a=u(448),i=u(593),y=u(527),h=u(240),d=u(985),f=u(665),g=u(162),x=u(893),P=u(735),n=u(287),o=u(177),t=[{type:r.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:r.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:r.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:r.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}];class l{constructor(){this.parts=[],this.partsMap={}}static async load(E,_,C){var s=new l;return s._options=C,s._parser=_,s._package=await p.OpenXmlPackage.load(E,C),s.rels=await s._package.loadRelationships(),await Promise.all(t.map(R=>{var V;const M=(V=s.rels.find(K=>K.type===R.type))!==null&&V!==void 0?V:R;return s.loadRelationshipPart(M.target,M.type)})),s}save(E="blob"){return this._package.save(E)}async loadRelationshipPart(E,_){var C;if(this.partsMap[E])return this.partsMap[E];if(!this._package.get(E))return null;let s=null;switch(_){case r.RelationshipTypes.OfficeDocument:this.documentPart=s=new a.DocumentPart(this._package,E,this._parser);break;case r.RelationshipTypes.FontTable:this.fontTablePart=s=new m.FontTablePart(this._package,E);break;case r.RelationshipTypes.Numbering:this.numberingPart=s=new y.NumberingPart(this._package,E,this._parser);break;case r.RelationshipTypes.Styles:this.stylesPart=s=new h.StylesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Theme:this.themePart=s=new x.ThemePart(this._package,E);break;case r.RelationshipTypes.Footnotes:this.footnotesPart=s=new P.FootnotesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Endnotes:this.endnotesPart=s=new P.EndnotesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Footer:s=new d.FooterPart(this._package,E,this._parser);break;case r.RelationshipTypes.Header:s=new d.HeaderPart(this._package,E,this._parser);break;case r.RelationshipTypes.CoreProperties:this.corePropsPart=s=new g.CorePropsPart(this._package,E);break;case r.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=s=new f.ExtendedPropsPart(this._package,E);break;case r.RelationshipTypes.CustomProperties:s=new o.CustomPropsPart(this._package,E);break;case r.RelationshipTypes.Settings:this.settingsPart=s=new n.SettingsPart(this._package,E)}if(s==null)return Promise.resolve(null);if(this.partsMap[E]=s,this.parts.push(s),await s.load(),((C=s.rels)===null||C===void 0?void 0:C.length)>0){const[R]=(0,i.splitPath)(s.path);await Promise.all(s.rels.map(V=>this.loadRelationshipPart((0,i.resolvePath)(V.target,R),V.type)))}return s}async loadDocumentImage(E,_){const C=await this.loadResource(_??this.documentPart,E,"blob");return this.blobToURL(C)}async loadNumberingImage(E){const _=await this.loadResource(this.numberingPart,E,"blob");return this.blobToURL(_)}async loadFont(E,_){const C=await this.loadResource(this.fontTablePart,E,"uint8array");return C&&this.blobToURL(new Blob([b(C,_)]))}blobToURL(E){return E?this._options.useBase64URL?(0,i.blobToBase64)(E):URL.createObjectURL(E):null}findPartByRelId(E,_=null){var C,s=((C=_.rels)!==null&&C!==void 0?C:this.rels).find(V=>V.id==E);const R=_?(0,i.splitPath)(_.path)[0]:"";return s?this.partsMap[(0,i.resolvePath)(s.target,R)]:null}getPathById(E,_){const C=E.rels.find(R=>R.id==_),[s]=(0,i.splitPath)(E.path);return C?(0,i.resolvePath)(C.target,s):null}loadResource(E,_,C){const s=this.getPathById(E,_);return s?this._package.load(s,C):Promise.resolve(null)}}function b(k,E){const _=E.replace(/{|}|-/g,""),C=new Array(16);for(let s=0;s<16;s++)C[16-s-1]=parseInt(_.substr(2*s,2),16);for(let s=0;s<32;s++)k[s]=k[s]^C[s%16];return k}e.WordDocument=l,e.deobfuscate=b},583:v=>{v.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:v=>{v.exports=T}},N={};function A(v){var e=N[v];if(e!==void 0)return e.exports;var u=N[v]={id:v,exports:{}};return j[v](u,u.exports,A),u.exports}return A.m=j,A.n=v=>{var e=v&&v.__esModule?()=>v.default:()=>v;return A.d(e,{a:e}),e},A.d=(v,e)=>{for(var u in e)A.o(e,u)&&!A.o(v,u)&&Object.defineProperty(v,u,{enumerable:!0,get:e[u]})},A.o=(v,e)=>Object.prototype.hasOwnProperty.call(v,e),A.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},A.b=document.baseURI||self.location.href,A(667)})())})(Ne);const Re={ignoreLastRenderedPageBreak:!1};function ze(re,ce={}){return typeof re=="string"?Ie(re,ce):Promise.resolve(re)}function Ie(re,ce){return fetch(re,ce).then(T=>T.status!==200?Promise.reject(T):T)}async function Fe(re){let ce;return re instanceof Blob?ce=re:re instanceof Response?ce=await re.blob():re instanceof ArrayBuffer&&(ce=new Blob([re])),ce}function Me(re,ce,T={}){if(!re)return ce.innerHTML="",Promise.resolve();let j;return re instanceof Blob?j=re:re instanceof Response?j=re.blob():re instanceof ArrayBuffer&&(j=new Blob([re])),Ae.renderAsync(j,ce,ce,{...Re,...T})}const Ue={getData:ze,render:Me,getBlob:Fe};export{Ue as d};
|