!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}System.register([],(function(){"use strict";return{execute:function(){/*! * @plugin @tinymce-plugin/tp-importword * @version 0.0.3-beta.6 (2022-7-29) * @description 导入word文档 * @copyright (2022) Li Hailong . All rights reserved. https://github.com/tinymce-plugin/tp-importword */!function(){vart=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};functionr(e,r){if("function"!=typeofr&&null!==r)thrownewTypeError("Class extends value "+String(r)+" is not a constructor or null");functionn(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,newn)}varn,a,i=function(){returni=Object.assign||function(e){for(vart,r=1,n=arguments.length;r<n;r++)for(varaint=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);returne},i.apply(this,arguments)};functiono(e,t,r){if(r||2===arguments.length)for(varn,a=0,i=t.length;a<i;a++)(n||!(aint))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);returne.concat(n||Array.prototype.slice.call(t))}(a=n||(n={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",a.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",a.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",a.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",a.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",a.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",a.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",a.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",a.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",a.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",a.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",a.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",a.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",a.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",a.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",a.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",a.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties";vars="http://schemas.openxmlformats.org/wordprocessingml/2006/main",l={mul:.05,unit:"pt"},u={mul:1/12700,unit:"pt"},c={mul:.5,unit:"pt"},f={mul:.125,unit:"pt"},d={mul:1,unit:"pt"},h={mul:.02,unit:"%"};functionp(e,t){varr;returnvoid0===t&&(t=l),null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(null!==(r=t.unit)&&void0!==r?r:"")}functionb(e,t,r){if(e.namespaceURI!=s)return!1;switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",c);break;default:return!1}return!0}varm=function(){functione(){}returnObject.defineProperty(e.prototype,"elements",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void0===t&&(t=null);for(varr=[],n=0,a=e.childNodes.length;n<a;n++){vari=e.childNodes.item(n);1==i.nodeType&&(null==t||i.localName==t)&&r.push(i)}returnr}}),Object.defineProperty(e.prototype,"element",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(varr=0,n=e.childNodes.length;r<n;r++){vara=e.childNodes.item(r);if(1==a.nodeType&&a.localName==t)returna}returnnull}}),Object.defineProperty(e.prototype,"elementAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){varn=this.element(e,t);returnn?this.attr(n,r):void0}}),Object.defineProperty(e.prototype,"attr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(varr=0,n=e.attributes.length;r<n;r++){vara=e.attributes.item(r);if(a.localName==t)returna.value}returnnull}}),Object.defineProperty(e.prototype,"intAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void0===r&&(r=null);varn=this.attr(e,t);returnn?parseInt(n):r}}),Object.defineProperty(e.prototype,"hexAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void0===r&&(r=null);varn=this.attr(e,t);returnn?parseInt(n,16):r}}),Object.defineProperty(e.prototype,"floatAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void0===r&&(r=null);varn=this.attr(e,t);returnn?parseFloat(n):r}}),Object.defineProperty(e.prototype,"boolAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){returnvoid0===r&&(r=null),function(e,t){switch(void0===t&&(t=!1),e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:returnt}}(this.attr(e,t),r)}}),Object.defineProperty(e.prototype,"lengthAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){returnvoid0===r&&(r=l),p(this.attr(e,t),r)}}),e}(),g=newm,v=function(){functione(e,t){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_xmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void0})}returnObject.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){vare=this;returnPromise.all([this._package.loadRelationships(this.path).then((function(t){e.rels=t})),this._package.load(this.path).then((function(t){varr=e._package.parseXmlDocument(t);e._package.options.keepOrigin&&(e._xmlDocument=r),e.parseXml(r.firstElementChild)}))])}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._package.update(this.path,function(e){return(newXMLSerializer).serializeToString(e)}(this._xmlDocument))}}),Object.defineProperty(e.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),e}(),y={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};functionw(e,t){returnt.elements(e).map((function(e){returnfunction(e,t){for(varr={name:t.attr(e,"name"),embedFontRefs:[]},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"family":r.family=t.attr(i,"val");break;case"altName":r.altName=t.attr(i,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":r.embedFontRefs.push(_(i,t))}}returnr}(e,t)}))}function_(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:y[e.localName]}}vark=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"fonts",{enumerable:!0,configurable:!0,writable:!0,value:void0}),t}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.fonts=w(e,this._package.xmlParser)}}),t}(v),P=("undefined"==typeofglobalThis?"undefined":e(globalThis))<"u"?globalThis:("undefined"==typeofwindow?"undefined":e(window))<"u"?window:("undefined"==typeofglobal?"undefined":e(global))<"u"?global:("undefined"==typeofself?"undefined":e(self))<"u"?self:{};functionx(e){thrownewError('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}varS={exports:{}};functionO(e){vart=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]}functionA(e,t){try{varr="http://docx/";returnnewURL(e,r+t).toString().substring(r.length)}catch(n){return"".concat(t).concat(e)}}functionC(t){returnt&&"object"==e(t)&&!Array.isArray(t)}functionE(e){for(vart,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!r.length)returne;vara=r.shift();if(C(e)&&C(a))for(variina)if(C(a[i])){vars=null!==(t=e[i])&&void0!==t?t:e[i]={};E(s,a[i])}elsee[i]=a[i];returnE.apply(void0,o([e],r,!1))}!function(t,r){t.exports=functione(t,r,n){functiona(o,s){if(!r[o]){if(!t[o]){if(!s&&x)returnx(o);if(i)returni(o,!0);varl=newError("Cannot find module '"+o+"'");throwl.code="MODULE_NOT_FOUND",l}varu=r[o]={exports:{}};t[o][0].call(u.exports,(function(e){returna(t[o][1][e]||e)}),u,u.exports,e,t,r,n)}returnr[o].exports}for(vari=x,o=0;o<n.length;o++)a(n[o]);returna}({1:[function(e,t,r){varn=e("./utils"),a=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(vart,r,a,o,s,l,u,c=[],f=0,d=e.length,h=d,p="string"!==n.getTypeOf(e);f<e.length;)h=d-f,a=p?(t=e[f++],r=f<d?e[f++]:0,f<d?e[f++]:0):(t=e.charCodeAt(f++),r=f<d?e.charCodeAt(f++):0,f<d?e.charCodeAt(f++):0),o=t>>2,s=(3&t)<<4|r>>4,l=1<h?(15&r)<<2|a>>6:64,u=2<h?63&a:64,c.push(i.charAt(o)+i.charAt(s)+i.charAt(l)+i.charAt(u));returnc.join("")},r.decode=function(e){vart,r,n,o,s,l,u=0,c=0,f="data:";if(e.substr(0,f.length)===f)thrownewError("Invalid base64 input, it looks like a data url.");vard,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&h--,e.charAt(e.length-2)===i.charAt(64)&&h--,h%1!=0)thrownewError("Invalid base64 input, bad content length.");for(d=a.uint8array?newUint8Array(0|h):newArray(0|h);u<e.length;)t=i.indexOf(e.charAt(u++))<<2|(o=i.indexOf(e.charAt(u++)))>>4,r=(15&o)<<4|(s=i.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(l=i.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=r),64!==l&&(d[c++]=n);returnd}},{"./support":30,"./utils":32}],2:[function(e,t,r){varn=e("./external"),a=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");functions(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){vare=newa(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(newo("data_length")),t=this;returne.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)thrownewError("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){returnnewa(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){returne.pipe(newi).pipe(newo("uncompressedSize")).pipe(t.compressWorker(r)).pipe(newo("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){varn=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){returnnewn("STORE compression")},uncompressWorker:function(){returnnewn("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){varn=e("./utils"),a=function(){for(vare,t=[],r=0;r<256;r++){e=r;for(varn=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}returnt}();t.exports=function(e,t){returnvoid0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){vari=a,o=n+r;e^=-1;for(vars=n;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){vari=a,o=n+r;e^=-1;for(vars=n;s<o;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,r,n){vara=null;a=("undefined"==typeofPromise?"undefined":e(Promise))<"u"?Promise:t("lie"),r.exports={Promise:a}},{lie:37}],7:[function(t,r,n){vara=("undefined"==typeofUint8Array?"undefined":e(Uint8Array))<"u"&&("undefined"==typeofUint16Array?"undefined":e(Uint16Array))<"u"&&("undefined"==typeofUint32Array?"undefined":e(Uint32Array))<"u",i=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),l=a?"uint8array":"array";functionu(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(u,s),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(l,e.data),!1)},u.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=newi[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});vare=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){returnnewu("Deflate",e)},n.uncompressWorker=function(){returnnewu("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){functionn(e,t){varr,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;returnn}functiona(e,t,r,a,o,c){varf,d,h=e.file,p=e.compression,b=c!==s.utf8encode,m=i.transformTo("string",c(h.name)),g=i.transformTo("string",s.utf8encode(h.name)),v=h.comment,y=i.transformTo("string",c(v)),w=i.transformTo("string",s.utf8encode(v)),_=g.length!==h.name.length,k=w.length!==v.length,P="",x="",S="",O=h.dir,A=h.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);varE=0;t&&(E|=8),b||!_&&!k||(E|=2048);varj,N,z,T=0,I=0;O&&(T|=16),"UNIX"===o?(I=798,T|=(j=h.unixPermissions,N=O,z=j,j||(z=N?16893:33204),(65535&z)<<16)):(I=20,T|=function(e){return63&(e||0)}(h.dosPermissions)),f=A.getUTCHours(),f<<=6,f|=A.getUTCMinutes(),f<<=5,f|=A.getUTCSeconds()/2,d=A.getUTCFullYear()-1980,d<<=4,d|=A.getUTCMonth()+1,d<<=5,d|=A.getUTCDate(),_&&(x=n(1,1)+n(l(m),4)+g,P+="up"+n(x.length,2)+x),k&&(S=n(1,1)+n(l(y),4)+w,P+="uc"+n(S.length,2)+S);varB="";returnB+="\n\0",B+=n(E,2),B+=p.magic,B+=n(f,2),B+=n(d,2),B+=n(C.crc32,4),B+=n(C.compressedSize,4),B+=n(C.uncompressedSize,4),B+=n(m.length,2),B+=n(P.length,2),{fileRecord:u.LOCAL_FILE_HEADER+B+m+P,dirRecord:u.CENTRAL_FILE_HEADER+n(I,2)+B+n(y.length,2)+"\0\0\0\0"+n(T,4)+n(a,4)+m+P+y}}vari=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");functionc(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,o),c.prototype.push=function(e){vart=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;vart=this.streamFiles&&!e.file.dir;if(t){varr=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}elsethis.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;vart,r=this.streamFiles&&!e.file.dir,i=a(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),r)this.push({data:(t=e,u.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});elsefor(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(vare=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});varr,a,o,s,l,c,f=this.bytesWritten-e,d=(r=this.dirRecords.length,a=f,o=e,s=this.zipComment,l=this.encodeFileName,c=i.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(a,4)+n(o,4)+n(c.length,2)+c);this.push({data:d,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);vart=this;returne.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void0:(this.end(),!0))},c.prototype.error=function(e){vart=this._sources;if(!o.prototype.error.call(this,e))return!1;for(varr=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(vare=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){varn=e("../compressions"),a=e("./ZipFileWorker");r.generateWorker=function(e,t,r){vari=newa(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;vara=function(e,t){varr=e||t,a=n[r];if(!a)thrownewError(r+" is not a valid compression method !");returna}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,u=r.date;r._compressWorker(a,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=o}catch(s){i.error(s)}returni}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){functionn(){if(!(thisinstanceofn))returnnewn;if(arguments.length)thrownewError("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(){vare=newn;for(vartinthis)"function"!=typeofthis[t]&&(e[t]=this[t]);returne}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.9.1",n.loadAsync=function(e,t){return(newn).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){varn=e("./utils"),a=e("./external"),i=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");functionu(e){returnnewa.Promise((function(t,r){varn=e.decompressed.getContentWorker().pipe(news);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(newError("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){varr=this;returnt=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(newError("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){varr=newo(t);returnr.load(e),r})).then((function(e){varr=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(vari=0;i<n.length;i++)r.push(u(n[i]));returna.Promise.all(r)})).then((function(e){for(vara=e.shift(),i=a.files,o=0;o<i.length;o++){vars=i[o],l=s.fileNameStr,u=n.resolve(s.fileNameStr);r.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(u).unsafeOriginalName=l)}returna.zipComment.length&&(r.comment=a.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){varn=e("../utils"),a=e("../stream/GenericWorker");functioni(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,a),i.prototype._bindStream=function(e){vart=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){varn=e("readable-stream").Readable;functiona(e,t,r){n.call(this,t),this._helper=e;vara=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),r&&r(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,r,n){r.exports={isNode:("undefined"==typeofBuffer?"undefined":e(Buffer))<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)returnBuffer.from(e,t);if("number"==typeofe)thrownewError('The "data" argument must not be a number');returnnewBuffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)returnBuffer.alloc(e);vart=newBuffer(e);returnt.fill(0),t},isBuffer:function(e){returnBuffer.isBuffer(e)},isStream:function(e){returne&&"function"==typeofe.on&&"function"==typeofe.pause&&"function"==typeofe.resume}}},{}],15:[function(e,t,r){functionn(e,t,r){varn,a=i.getTypeOf(t),s=i.extend(r||{},l);s.date=s.date||newDate,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeofs.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=b(e)),s.createFolders&&(n=p(e))&&m.call(this,n,!0);varf="string"===a&&!1===s.binary&&!1===s.base64;r&&void0!==r.binary||(s.binary=!f),(tinstanceofu&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",a="string");varg=null;g=tinstanceofu||tinstanceofo?t:d.isNode&&d.isStream(t)?newh(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);varv=newc(e,g,s);this.files[e]=v}vara=e("./utf8"),i=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),f=e("./generate"),d=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));vart=e.lastIndexOf("/");return0<t?e.substring(0,t):""},b=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){returnt=void0!==t?t:l.createFolders,e=b(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};functiong(e){return"[object RegExp]"===Object.prototype.toString.call(e)}varv={load:function(){thrownewError("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){vart,r,n;for(tinthis.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){vart=[];returnthis.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)returne=this.root+e,n.call(this,e,t,r),this;if(g(e)){vara=e;returnthis.filter((function(e,t){return!t.dir&&a.test(e)}))}vari=this.files[this.root+e];returni&&!i.dir?i:null},folder:function(e){if(!e)returnthis;if(g(e))returnthis.filter((function(t,r){returnr.dir&&e.test(t)}));vart=this.root+e,r=m.call(this,t),n=this.clone();returnn.root=r.name,n},remove:function(e){e=this.root+e;vart=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)deletethis.files[e];elsefor(varr=this.filter((function(t,r){returnr.name.slice(0,e.length)===e})),n=0;n<r.length;n++)deletethis.files[r[n].name];returnthis},generate:function(e){thrownewError("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){vart,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)thrownewError("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");varn=r.comment||this.comment||"";t=f.generateWorker(this,r,n)}catch(l){(t=newo("error")).error(l)}returnnews(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){returnthis.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./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(e,t,r){t.exports=e("stream")},{stream:void0}],17:[function(e,t,r){varn=e("./DataReader");functiona(e){n.call(this,e);for(vart=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){returnthis.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(vart=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)returni-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){vart=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.readData(4);returnt===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];vart=this.data.slice(this.zero+this.index,this.zero+this.index+e);returnthis.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){varn=e("../utils");functiona(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)thrownewError("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(e){},readInt:function(e){vart,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);returnthis.index+=e,r},readString:function(e){returnn.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){vare=this.readInt(4);returnnewDate(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":32}],19:[function(e,t,r){varn=e("./Uint8ArrayReader");functiona(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);vart=this.data.slice(this.zero+this.index,this.zero+this.index+e);returnthis.index+=e,t},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){varn=e("./DataReader");functiona(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){returnthis.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){returnthis.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){returne===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);vart=this.data.slice(this.zero+this.index,this.zero+this.index+e);returnthis.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){varn=e("./ArrayReader");functiona(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)returnnewUint8Array(0);vart=this.data.subarray(this.zero+this.index,this.zero+this.index+e);returnthis.index+=e,t},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){varn=e("../utils"),a=e("../support"),i=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){vart=n.getTypeOf(e);returnn.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?news(e):a.uint8array?newl(n.transformTo("uint8array",e)):newi(n.transformTo("array",e)):newo(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){varn=e("./GenericWorker"),a=e("../utils");functioni(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){varn=e("./GenericWorker"),a=e("../crc32");functioni(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){varn=e("../utils"),a=e("./GenericWorker");functioni(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,a),i.prototype.processChunk=function(e){if(e){vart=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){varn=e("../utils"),a=e("./GenericWorker");functioni(e){a.call(this,"DataWorker");vart=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;vare=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)returnthis.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}returnthis.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){functionn(e){this.name=e||"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}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){returnthis._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(varr=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){returne.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)thrownewError("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;vart=this;returne.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),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;vare=this.isPaused=!1;returnthis.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){returnthis.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(vareinthis.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)thrownewError("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){vare="Worker "+this.name;returnthis.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){varn=e("../utils"),a=e("./ConvertWorker"),i=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(d){}functionc(e,t){returnnewl.Promise((function(r,a){vari=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],a(e)})).on("end",(function(){try{vare=function(e,t,r){switch(e){case"blob":returnn.newBlob(n.transformTo("arraybuffer",t),r);case"base64":returno.encode(t);default:returnn.transformTo(e,t)}}(l,function(e,t){varr,n=0,a=null,i=0;for(r=0;r<t.length;r++)i+=t[r].length;switch(e){case"string":returnt.join("");case"array":returnArray.prototype.concat.apply([],t);case"uint8array":for(a=newUint8Array(i),r=0;r<t.length;r++)a.set(t[r],n),n+=t[r].length;returna;case"nodebuffer":returnBuffer.concat(t);default:thrownewError("concat : unsupported type '"+e+"'")}}(s,i),u);r(e)}catch(t){a(t)}i=[]})).resume()}))}functionf(e,t,r){varo=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(newa(o)),e.lock()}catch(s){this._worker=newi("error"),this._worker.error(s)}}f.prototype={accumulate:function(e){returnc(this,e)},on:function(e,t){varr=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){returnn.delay(this._worker.resume,[],this._worker),this},pause:function(){returnthis._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)thrownewError(this._outputType+" is not supported by this method");returnnewu(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=("undefined"==typeofArrayBuffer?"undefined":e(ArrayBuffer))<"u"&&("undefined"==typeofUint8Array?"undefined":e(Uint8Array))<"u",n.nodebuffer=("undefined"==typeofBuffer?"undefined":e(Buffer))<"u",n.uint8array=("undefined"==typeofUint8Array?"undefined":e(Uint8Array))<"u",("undefined"==typeofArrayBuffer?"undefined":e(ArrayBuffer))>"u")n.blob=!1;else{vara=newArrayBuffer(0);try{n.blob=0===newBlob([a],{type:"application/zip"}).size}catch(o){try{vari=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(a),n.blob=0===i.getBlob("application/zip").size}catch(s){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(l){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(varn=e("./utils"),a=e("./support"),i=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=newArray(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;functionu(){o.call(this,"utf-8 decode"),this.leftOver=null}functionc(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){returna.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){vart,r,n,i,o,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=a.uint8array?newUint8Array(l):newArray(l),i=o=0;o<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);returnt}(e)},r.utf8decode=function(e){returna.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){vart,r,a,i,o=e.length,l=newArray(2*o);for(t=r=0;t<o;)if((a=e[t++])<128)l[r++]=a;elseif(4<(i=s[a]))l[r++]=65533,t+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&t<o;)a=a<<6|63&e[t++],i--;1<i?l[r++]=65533:a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|1023&a)}returnl.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){vart=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){vari=t;(t=newUint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}elset=this.leftOver.concat(t);this.leftOver=null}varo=function(e,t){varr;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;returnr<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(a.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,n){vara=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),s=t("set-immediate-shim"),l=t("./external");functionu(e){returne}functionc(e,t){for(varr=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);returnt}n.newBlob=function(e,t){n.checkSupport("blob");try{returnnewBlob([e],{type:t})}catch(a){try{varr=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);returnr.append(e),r.getBlob(t)}catch(i){thrownewError("Bug : can't construct the Blob.")}}};varf={stringifyByChunk:function(e,t,r){varn=[],a=0,i=e.length;if(i<=r)returnString.fromCharCode.apply(null,e);for(;a<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=r;returnn.join("")},stringifyByChar:function(e){for(vart="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);returnt},applyCanBeUsed:{uint8array:function(){try{returna.uint8array&&1===String.fromCharCode.apply(null,newUint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{returna.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};functiond(e){vart=65536,r=n.getTypeOf(e),a=!0;if("uint8array"===r?a=f.applyCanBeUsed.uint8array:"nodebuffer"===r&&(a=f.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{returnf.stringifyByChunk(e,r,t)}catch(i){t=Math.floor(t/2)}returnf.stringifyByChar(e)}functionh(e,t){for(varr=0;r<e.length;r++)t[r]=e[r];returnt}n.applyFromCharCode=d;varp={};p.string={string:u,array:function(e){returnc(e,newArray(e.length))},arraybuffer:function(e){returnp.string.uint8array(e).buffer},uint8array:function(e){returnc(e,newUint8Array(e.length))},nodebuffer:function(e){returnc(e,o.allocBuffer(e.length))}},p.array={string:d,array:u,arraybuffer:function(e){returnnewUint8Array(e).buffer},uint8array:function(e){returnnewUint8Array(e)},nodebuffer:function(e){returno.newBufferFrom(e)}},p.arraybuffer={string:function(e){returnd(newUint8Array(e))},array:function(e){returnh(newUint8Array(e),newArray(e.byteLength))},arraybuffer:u,uint8array:function(e){returnnewUint8Array(e)},nodebuffer:function(e){returno.newBufferFrom(newUint8Array(e))}},p.uint8array={string:d,array:function(e){returnh(e,newArray(e.length))},arraybuffer:function(e){returne.buffer},uint8array:u,nodebuffer:function(e){returno.newBufferFrom(e)}},p.nodebuffer={string:d,array:function(e){returnh(e,newArray(e.length))},arraybuffer:function(e){returnp.nodebuffer.uint8array(e).buffer},uint8array:function(e){returnh(e,newUint8Array(e.length))},nodebuffer:u},n.transformTo=function(e,t){if(t=t||"",!e)returnt;n.checkSupport(e);varr=n.getTypeOf(t);returnp[r][e](t)},n.resolve=function(e){for(vart=e.split("/"),r=[],n=0;n<t.length;n++){vara=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}returnr.join("/")},n.getTypeOf=function(e){return"string"==typeofe?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":a.nodebuffer&&o.isBuffer(e)?"nodebuffer":a.uint8array&&einstanceofUint8Array?"uint8array":a.arraybuffer&&einstanceofArrayBuffer?"arraybuffer":void0},n.checkSupport=function(e){if(!a[e.toLowerCase()])thrownewError(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){vart,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();returnn},n.delay=function(e,t,r){s((function(){e.apply(r||null,t||[])}))},n.inherits=function(e,t){functionr(){}r.prototype=t.prototype,e.prototype=newr},n.extend=function(){vare,t,r={};for(e=0;e<arguments.length;e++)for(tinarguments[e])arguments[e].hasOwnProperty(t)&&void0===r[t]&&(r[t]=arguments[e][t]);returnr},n.prepareContent=function(t,r,o,s,u){returnl.Promise.resolve(r).then((function(t){returna.blob&&(tinstanceofBlob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&("undefined"==typeofFileReader?"undefined":e(FileReader))<"u"?newl.Promise((function(e,r){varn=newFileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){varr,f=n.getTypeOf(e);returnf?("arraybuffer"===f?e=n.transformTo("uint8array",e):"string"===f&&(u?e=i.decode(e):o&&!0!==s&&(e=c(r=e,a.uint8array?newUint8Array(r.length):newArray(r.length)))),e):l.Promise.reject(newError("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,r){varn=e("./reader/readerFor"),a=e("./utils"),i=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));functionl(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;vart=this.reader.readString(4);thrownewError("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){varr=this.reader.index;this.reader.setIndex(e);varn=this.reader.readString(4)===t;returnthis.reader.setIndex(r),n},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);vare=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},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(vare,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)thrownewError("Multi-volumes zip are not supported")},readLocalFiles:function(){vare,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){vare;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=newo({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)thrownewError("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){vare=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throwthis.isSignature(0,i.LOCAL_FILE_HEADER)?newError("Corrupted zip: can't find end of central directory"):newError("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(e);vart=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)thrownewError("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))thrownewError("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}varr=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);varn=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);elseif(n<0)thrownewError("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){varn=e("./reader/readerFor"),a=e("./utils"),i=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");functionc(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return1==(1&this.bitFlag)},useUTF8:function(){return2048==(2048&this.bitFlag)},readLocalPart:function(e){vart,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)thrownewError("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(vartinl)if(l.hasOwnProperty(t)&&l[t].magic===e)returnl[t];returnnull}(this.compressionMethod)))thrownewError("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=newi(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);vart=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())thrownewError("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;vare=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){vart=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){vart,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},handleUTF8:function(){vare=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{vart=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{varr=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}varn=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{vari=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){vare=this.extraFields[28789];if(e){vart=n(e.value);return1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}returnnull},findExtraFieldUnicodeComment:function(){vare=this.extraFields[25461];if(e){vart=n(e.value);return1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}returnnull}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){functionn(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}vara=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){vart=null,r="string";try{if(!e)thrownewError("No output type specified.");varn="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();vari=!this._dataBinary;i&&!n&&(t=t.pipe(newo.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(newo.Utf8DecodeWorker))}catch(s){(t=newl("error")).error(s)}returnnewa(t,r,"")},async:function(e,t){returnthis.internalStream(e).accumulate(t)},nodeStream:function(e,t){returnthis.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._datainstanceofs&&this._data.compression.magic===e.magic)returnthis._data.getCompressedWorker();varr=this._decompressWorker();returnthis._dataBinary||(r=r.pipe(newo.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){returnthis._datainstanceofs?this._data.getContentWorker():this._datainstanceofl?this._data:newi(this._data)}};for(varu=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){thrownewError("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)n.prototype[u[f]]=c;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,n){(function(e){vart,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){vari=0,o=newa(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}elseif(e.setImmediate||void0===e.MessageChannel)t="document"ine&&"onreadystatechange"ine.document.createElement("script")?function(){vart=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{varl=newe.MessageChannel;l.port1.onmessage=c,t=function(){l.port2.postMessage(0)}}varu=[];functionc(){vare,t;n=!0;for(varr=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}r.exports=function(e){1!==u.push(e)||n||t()}}).call(this,e(P)<"u"?P:("undefined"==typeofself?"undefined":e(self))<"u"?self:("undefined"==typeofwindow?"undefined":e(window))<"u"?window:{})},{}],37:[function(t,r,n){vara=t("immediate");functioni(){}varo={},s=["REJECTED"],l=["FULFILLED"],u=["PENDING"];functionc(e){if("function"!=typeofe)thrownewTypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void0,e!==i&&p(this,e)}functionf(e,t,r){this.promise=e,"function"==typeoft&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeofr&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}functiond(e,t,r){a((function(){varn;try{n=t(r)}catch(a){returno.reject(e,a)}n===e?o.reject(e,newTypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}functionh(t){varr=t&&t.then;if(t&&("object"==e(t)||"function"==typeoft)&&"function"==typeofr)returnfunction(){r.apply(t,arguments)}}functionp(e,t){varr=!1;functionn(t){r||(r=!0,o.reject(e,t))}functiona(t){r||(r=!0,o.resolve(e,t))}vari=b((function(){t(a,n)}));"error"===i.status&&n(i.value)}functionb(e,t){varr={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}returnr}(r.exports=c).prototype.finally=function(e){if("function"!=typeofe)returnthis;vart=this.constructor;returnthis.then((function(r){returnt.resolve(e()).then((function(){returnr}))}),(function(r){returnt.resolve(e()).then((function(){throwr}))}))},c.prototype.catch=function(e){returnthis.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeofe&&this.state===l||"function"!=typeoft&&this.state===s)returnthis;varr=newthis.constructor(i);returnthis.state!==u?d(r,this.state===l?e:t,this.outcome):this.queue.push(newf(r,e,t)),r},f.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){o.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){varr=b(h,t);if("error"===r.status)returno.reject(e,r.value);varn=r.value;if(n)p(e,n);else{e.state=l,e.outcome=t;for(vara=-1,i=e.queue.length;++a<i;)e.queue[a].callFulfilled(t)}returne},o.reject=function(e,t){e.state=s,e.outcome=t;for(varr=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);returne},c.resolve=function(e){returneinstanceofthis?e:o.resolve(newthis(i),e)},c.reject=function(e){vart=newthis(i);returno.reject(t,e)},c.all=function(e){vart=this;if("[object Array]"!==Object.prototype.toString.call(e))returnthis.reject(newTypeError("must be an array"));varr=e.length,n=!1;if(!r)returnthis.resolve([]);for(vara=newArray(r),s=0,l=-1,u=newthis(i);++l<r;)c(e[l],l);returnu;functionc(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(u,a))}),(function(e){n||(n=!0,o.reject(u,e))}))}},c.race=function(e){vart=this;if("[object Array]"!==Object.prototype.toString.call(e))returnthis.reject(newTypeError("must be an array"));varr,n=e.length,a=!1;if(!n)returnthis.resolve([]);for(vars=-1,l=newthis(i);++s<n;)r=e[s],t.resolve(r).then((function(e){a||(a=!0,o.resolve(l,e))}),(function(e){a||(a=!0,o.reject(l,e))}));returnl}},{immediate:36}],38:[function(e,t,r){varn={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){varn=e("./zlib/deflate"),a=e("./utils/common"),i=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,f=0,d=8;functionh(e){if(!(thisinstanceofh))returnnewh(e);this.options=a.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},e||{});vart=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=news,this.strm.avail_out=0;varr=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==u)thrownewError(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){varp;if(p="string"==typeoft.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?newUint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==u)thrownewError(o[r]);this._dict_set=!0}}functionp(e,t){varr=newh(t);if(r.push(e,!0),r.err)throwr.msg||o[r.err];returnr.result}h.prototype.push=function(e,t){varr,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeofe?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=newUint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=newa.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,o))&&r!==u)returnthis.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(i.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=h,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){varn=e("./zlib/inflate"),a=e("./utils/common"),i=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;functionf(e){if(!(thisinstanceoff))returnnewf(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});vart=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=newl,this.strm.avail_out=0;varr=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)thrownewError(s[r]);this.header=newu,n.inflateGetHeader(this.strm,this.header)}functiond(e,t){varr=newf(t);if(r.push(e,!0),r.err)throwr.msg||s[r.err];returnr.result}f.prototype.push=function(e,t){varr,s,l,u,f,d,h=this.strm,p=this.options.chunkSize,b=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeofe?h.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=newUint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=newa.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&b&&(d="string"==typeofb?i.string2buf(b):"[object ArrayBuffer]"===c.call(b)?newUint8Array(b):b,r=n.inflateSetDictionary(this.strm,d)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)returnthis.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(h.output,h.next_out),u=h.next_out-l,f=i.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&a.arraySet(h.output,h.output,l,u,0),this.onData(f)):this.onData(a.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==o.Z_STREAM_END);returnr===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=f,r.inflate=d,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},r.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,n){vara=("undefined"==typeofUint8Array?"undefined":e(Uint8Array))<"u"&&("undefined"==typeofUint16Array?"undefined":e(Uint16Array))<"u"&&("undefined"==typeofInt32Array?"undefined":e(Int32Array))<"u";n.assign=function(t){for(varr=Array.prototype.slice.call(arguments,1);r.length;){varn=r.shift();if(n){if("object"!=e(n))thrownewTypeError(n+"must be non-object");for(varainn)n.hasOwnProperty(a)&&(t[a]=n[a])}}returnt},n.shrinkBuf=function(e,t){returne.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};vari={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);elsefor(vari=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){vart,r,n,a,i,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=newUint8Array(n),t=a=0,r=e.length;t<r;t++)i=e[t],o.set(i,a),a+=i.length;returno}},o={arraySet:function(e,t,r,n,a){for(vari=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(a)},{}],42:[function(e,t,r){varn=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(u){a=!1}try{String.fromCharCode.apply(null,newUint8Array(1))}catch(c){i=!1}for(varo=newn.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;functionl(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&a))returnString.fromCharCode.apply(null,n.shrinkBuf(e,t));for(varr="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);returnr}o[254]=o[254]=1,r.string2buf=function(e){vart,r,a,i,o,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=newn.Buf8(l),i=o=0;o<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);returnt},r.buf2binstring=function(e){returnl(e,e.length)},r.binstring2buf=function(e){for(vart=newn.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);returnt},r.buf2string=function(e,t){varr,n,a,i,s=t||e.length,u=newArray(2*s);for(r=n=0;r<s;)if((a=e[r++])<128)u[n++]=a;elseif(4<(i=o[a]))u[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&r<s;)a=a<<6|63&e[r++],i--;1<i?u[n++]=65533:a<65536?u[n++]=a:(a-=65536,u[n++]=55296|a>>10&1023,u[n++]=56320|1023&a)}returnl(u,n)},r.utf8border=function(e,t){varr;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;returnr<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(vara=65535&e|0,i=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--o;);a%=65521,i%=65521}returna|i<<16|0}},{}],44:[function(e,t,r){t.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(e,t,r){varn=function(){for(vare,t=[],r=0;r<256;r++){e=r;for(varn=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}returnt}();t.exports=function(e,t,r,a){vari=n,o=a+r;e^=-1;for(vars=a;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){varn,a=e("../utils/common"),i=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,f=0,d=-2,h=-1,p=4,b=2,m=8,g=9,v=286,y=30,w=19,_=2*v+1,k=15,P=3,x=258,S=x+P+1,O=42,A=113,C=1,E=2,j=3,N=4;functionz(e,t){returne.msg=l[t],t}functionT(e){return(e<<1)-(4<e?9:0)}functionI(e){for(vart=e.length;0<=--t;)e[t]=0}functionB(e){vart=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}functionR(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,B(e.strm)}functionF(e,t){e.pending_buf[e.pending++]=t}functionD(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}functionL(e,t){varr,n,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+x,h=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===h&&u[r]===u[i]&&u[++r]===u[i+1]){i+=2,r++;do{}while(u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<d);if(n=x-(d-i),i=d-x,o<n){if(e.match_start=t,s<=(o=n))break;h=u[i+o-1],p=u[i+o]}}}while((t=f[t&c])>l&&0!=--a);returno<=e.lookahead?o:e.lookahead}functionU(e){vart,r,n,i,l,u,c,f,d,h,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);i+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,h=void0,(d=i)<(h=u.avail_in)&&(h=d),r=0===h?0:(u.avail_in-=h,a.arraySet(c,u.input,u.next_in,h,f),1===u.state.wrap?u.adler=o(u.adler,c,h,f):2===u.state.wrap&&(u.adler=s(u.adler,c,h,f)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=P)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+P-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<P)););}while(e.lookahead<S&&0!==e.strm.avail_in)}functionM(e,t){for(varr,n;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===u)returnC;if(0===e.lookahead)break}if(r=0,e.lookahead>=P&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-S&&(e.match_length=L(e,r)),e.match_length>=P)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-P),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=P){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}elsee.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;elsen=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(R(e,!1),0===e.strm.avail_out))returnC}returne.insert=e.strstart<P-1?e.strstart:P-1,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}functionW(e,t){for(varr,n,a;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===u)returnC;if(0===e.lookahead)break}if(r=0,e.lookahead>=P&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=P-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-S&&(e.match_length=L(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===P&&4096<e.strstart-e.match_start)&&(e.match_length=P-1)),e.prev_length>=P&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-P,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-P),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=P-1,e.strstart++,n&&(R(e,!1),0===e.strm.avail_out))returnC}elseif(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&R(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)returnC}elsee.match_available=1,e.strstart++,e.lookahead--}returne.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<P-1?e.strstart:P-1,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}functionH(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}functionZ(){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=m,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=newa.Buf16(2*_),this.dyn_dtree=newa.Buf16(2*(2*y+1)),this.bl_tree=newa.Buf16(2*(2*w+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=newa.Buf16(k+1),this.heap=newa.Buf16(2*v+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=newa.Buf16(2*v+1),I(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}functionV(e){vart;returne&&e.state?(e.total_in=e.total_out=0,e.data_type=b,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?O:A,e.adler=2===t.wrap?0:1,t.last_flush=u,i._tr_init(t),f):z(e,d)}functionX(e){vart,r=V(e);returnr===f&&((t=e.state).window_size=2*t.w_size,I(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=P-1,t.match_available=0,t.ins_h=0),r}functionG(e,t,r,n,i,o){if(!e)returnd;vars=1;if(t===h&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||g<i||r!==m||n<8||15<n||t<0||9<t||o<0||p<o)returnz(e,d);8===n&&(n=9);varl=newZ;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+P-1)/P),l.window=newa.Buf8(2*l.w_size),l.head=newa.Buf16(l.hash_size),l.prev=newa.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=newa.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,X(e)}n=[newH(0,0,0,0,(function(e,t){varr=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===u)returnC;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;varn=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,R(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-S&&(R(e,!1),0===e.strm.avail_out))returnC}returne.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):(e.strstart>e.block_start&&(R(e,!1),e.strm.avail_out),C)})),newH(4,4,8,4,M),newH(4,5,16,8,M),newH(4,6,32,32,M),newH(4,4,16,16,W),newH(8,16,32,32,W),newH(8,16,128,128,W),newH(8,32,128,256,W),newH(32,128,258,1024,W),newH(32,258,258,4096,W)],r.deflateInit=function(e,t){returnG(e,t,m,15,8,0)},r.deflateInit2=G,r.deflateReset=X,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){returne&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},r.deflate=function(e,t){varr,a,o,l;if(!e||!e.state||5<t||t<0)returne?z(e,d):d;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==c)returnz(e,0===e.avail_out?-5:d);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===O)if(2===a.wrap)e.adler=0,F(a,31),F(a,139),F(a,8),a.gzhead?(F(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),F(a,255&a.gzhead.time),F(a,a.gzhead.time>>8&255),F(a,a.gzhead.time>>16&255),F(a,a.gzhead.time>>24&255),F(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),F(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(F(a,255&a.gzhead.extra.length),F(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(F(a,0),F(a,0),F(a,0),F(a,0),F(a,0),F(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),F(a,3),a.status=A);else{varh=m+(a.w_bits-8<<4)<<8;h|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(h|=32),h+=31-h%31,a.status=A,D(a,h),0!==a.strstart&&(D(a,e.adler>>>16),D(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending!==a.pending_buf_size));)F(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}elsea.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,F(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}elsea.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,F(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=103)}elsea.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&B(e),a.pending+2<=a.pending_buf_size&&(F(a,255&e.adler),F(a,e.adler>>8&255),e.adler=0,a.status=A)):a.status=A),0!==a.pending){if(B(e),0===e.avail_out)returna.last_flush=-1,f}elseif(0===e.avail_in&&T(t)<=T(r)&&t!==c)returnz(e,-5);if(666===a.status&&0!==e.avail_in)returnz(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==u&&666!==a.status){varp=2===a.strategy?function(e,t){for(varr;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===u)returnC;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(R(e,!1),0===e.strm.avail_out))returnC}returne.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}(a,t):3===a.strategy?function(e,t){for(varr,n,a,o,s=e.window;;){if(e.lookahead<=x){if(U(e),e.lookahead<=x&&t===u)returnC;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=P&&0<e.strstart&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+x;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<o);e.match_length=x-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=P?(r=i._tr_tally(e,1,e.match_length-P),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(R(e,!1),0===e.strm.avail_out))returnC}returne.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}(a,t):n[a.level].func(a,t);if(p!==j&&p!==N||(a.status=666),p===C||p===j)return0===e.avail_out&&(a.last_flush=-1),f;if(p===E&&(1===t?i._tr_align(a):5!==t&&(i._tr_stored_block(a,0,0,!1),3===t&&(I(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),B(e),0===e.avail_out))returna.last_flush=-1,f}returnt!==c?f:a.wrap<=0?1:(2===a.wrap?(F(a,255&e.adler),F(a,e.adler>>8&255),F(a,e.adler>>16&255),F(a,e.adler>>24&255),F(a,255&e.total_in),F(a,e.total_in>>8&255),F(a,e.total_in>>16&255),F(a,e.total_in>>24&255)):(D(a,e.adler>>>16),D(a,65535&e.adler)),B(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?f:1)},r.deflateEnd=function(e){vart;returne&&e.state?(t=e.state.status)!==O&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?z(e,d):(e.state=null,t===A?z(e,-3):f):d},r.deflateSetDictionary=function(e,t){varr,n,i,s,l,u,c,h,p=t.length;if(!e||!e.state||2===(s=(r=e.state).wrap)||1===s&&r.status!==O||r.lookahead)returnd;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(I(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=newa.Buf8(r.w_size),a.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,U(r);r.lookahead>=P;){for(n=r.strstart,i=r.lookahead-(P-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+P-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=P-1,U(r)}returnr.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=P-1,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=s,f},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.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(e,t,r){t.exports=function(e,t){varr,n,a,i,o,s,l,u,c,f,d,h,p,b,m,g,v,y,w,_,k,P,x,S,O;r=e.state,n=e.next_in,S=e.input,a=n+(e.avail_in-5),i=e.next_out,O=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,f=r.wnext,d=r.window,h=r.hold,p=r.bits,b=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),y=b[h&g];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))O[i++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=b[(65535&y)+(h&(1<<w)-1)];continuet}if(32&w){r.mode=12;breake}e.msg="invalid literal/length code",r.mode=30;breake}_=65535&y,(w&=15)&&(p<w&&(h+=S[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),y=m[h&v];r:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continuer}e.msg="invalid distance code",r.mode=30;breake}if(k=65535&y,p<(w&=15)&&(h+=S[n++]<<p,(p+=8)<w&&(h+=S[n++]<<p,p+=8)),l<(k+=h&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;breake}if(h>>>=w,p-=w,(w=i-o)<k){if(c<(w=k-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;breake}if(x=d,(P=0)===f){if(P+=u-w,w<_){for(_-=w;O[i++]=d[P++],--w;);P=i-k,x=O}}elseif(f<w){if(P+=u+f-w,(w-=f)<_){for(_-=w;O[i++]=d[P++],--w;);if(P=0,f<_){for(_-=w=f;O[i++]=d[P++],--w;);P=i-k,x=O}}}elseif(P+=f-w,w<_){for(_-=w;O[i++]=d[P++],--w;);P=i-k,x=O}for(;2<_;)O[i++]=x[P++],O[i++]=x[P++],O[i++]=x[P++],_-=3;_&&(O[i++]=x[P++],1<_&&(O[i++]=x[P++]))}else{for(P=i-k;O[i++]=O[P++],O[i++]=O[P++],O[i++]=O[P++],2<(_-=3););_&&(O[i++]=O[P++],1<_&&(O[i++]=O[P++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=i<s?s-i+257:257-(i-s),r.hold=h,r.bits=p}},{}],49:[function(e,t,r){varn=e("../utils/common"),a=e("./adler32"),i=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,u=2,c=0,f=-2,d=1,h=852,p=592;functionb(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}functionm(){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=newn.Buf16(320),this.work=newn.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}functiong(e){vart;returne&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=newn.Buf32(h),t.distcode=t.distdyn=newn.Buf32(p),t.sane=1,t.back=-1,c):f}functionv(e){vart;returne&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):f}functiony(e,t){varr,n;returne&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,v(e))):f}functionw(e,t){varr,n;returne?(n=newm,(e.state=n).window=null,(r=y(e,t))!==c&&(e.state=null),r):f}var_,k,P=!0;functionx(e){if(P){vart;for(_=newn.Buf32(512),k=newn.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,k,0,e.work,{bits:5}),P=!1}e.lencode=_,e.lenbits=9,e.distcode=k,e.distbits=5}functionS(e,t,r,a){vari,o=e.state;returnnull===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=newn.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(i=o.wsize-o.wnext)&&(i=a),n.arraySet(o.window,t,r-a,i,o.wnext),(a-=i)?(n.arraySet(o.window,t,r-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}r.inflateReset=v,r.inflateReset2=y,r.inflateResetKeep=g,r.inflateInit=function(e){returnw(e,15)},r.inflateInit2=w,r.inflate=function(e,t){varr,h,p,m,g,v,y,w,_,k,P,O,A,C,E,j,N,z,T,I,B,R,F,D,L=0,U=newn.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)returnf;12===(r=e.state).mode&&(r.mode=13),g=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,v=e.avail_in,w=r.hold,_=r.bits,k=v,P=y,R=c;e:for(;;)switch(r.mode){cased:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(2&r.wrap&&35615===w){U[r.check=0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,B=8+(15&(w>>>=4)),0===r.wbits)r.wbits=B;elseif(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case2:for(;_<16;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0,r.mode=3;case3:for(;_<32;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,U[2]=w>>>16&255,U[3]=w>>>24&255,r.check=i(r.check,U,4,0)),_=w=0,r.mode=4;case4:for(;_<16;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0,r.mode=5;case5:if(1024&r.flags){for(;_<16;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0}elser.head&&(r.head.extra=null);r.mode=6;case6:if(1024&r.flags&&(v<(O=r.length)&&(O=v),O&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=newArray(r.head.extra_len)),n.arraySet(r.head.extra,h,m,O,B)),512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,r.length-=O),r.length))breake;r.length=0,r.mode=7;case7:if(2048&r.flags){if(0===v)breake;for(O=0;B=h[m+O++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&O<v;);if(512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,B)breake}elser.head&&(r.head.name=null);r.length=0,r.mode=8;case8:if(4096&r.flags){if(0===v)breake;for(O=0;B=h[m+O++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&O<v;);if(512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,B)breake}elser.head&&(r.head.comment=null);r.mode=9;case9:if(512&r.flags){for(;_<16;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case10:for(;_<32;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}e.adler=r.check=b(w),_=w=0,r.mode=11;case11:if(0===r.havedict)returne.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case12:if(5===t||6===t)breake;case13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case0:r.mode=14;break;case1:if(x(r),r.mode=20,6!==t)break;w>>>=2,_-=2;breake;case2:r.mode=17;break;case3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case14:for(w>>>=7&_,_-=7&_;_<32;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)breake;case15:r.mode=16;case16:if(O=r.length){if(v<O&&(O=v),y<O&&(O=y),0===O)breake;n.arraySet(p,h,m,O,g),v-=O,m+=O,y-=O,g+=O,r.length-=O;break}r.mode=12;break;case17:for(;_<14;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case18:for(;r.have<r.ncode;){for(;_<3;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.lens[M[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},R=s(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,R){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case19:for(;r.have<r.nlen+r.ndist;){for(;j=(L=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(N<16)w>>>=E,_-=E,r.lens[r.have++]=N;else{if(16===N){for(D=E+2;_<D;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(w>>>=E,_-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],O=3+(3&w),w>>>=2,_-=2}elseif(17===N){for(D=E+3;_<D;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}_-=E,B=0,O=3+(7&(w>>>=E)),w>>>=3,_-=3}else{for(D=E+7;_<D;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}_-=E,B=0,O=11+(127&(w>>>=E)),w>>>=7,_-=7}if(r.have+O>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;O--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,F={bits:r.lenbits},R=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,R){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},R=s(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,R){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)breake;case20:r.mode=21;case21:if(6<=v&&258<=y){e.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,o(e,P),g=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,v=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;j=(L=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(j&&0==(240&j)){for(z=E,T=j,I=N;j=(L=r.lencode[I+((w&(1<<z+T)-1)>>z)])>>>16&255,N=65535&L,!(z+(E=L>>>24)<=_);){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}w>>>=z,_-=z,r.back+=z}if(w>>>=E,_-=E,r.back+=E,r.length=N,0===j){r.mode=26;break}if(32&j){r.back=-1,r.mode=12;break}if(64&j){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&j,r.mode=22;case22:if(r.extra){for(D=r.extra;_<D;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case23:for(;j=(L=r.distcode[w&(1<<r.distbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(0==(240&j)){for(z=E,T=j,I=N;j=(L=r.distcode[I+((w&(1<<z+T)-1)>>z)])>>>16&255,N=65535&L,!(z+(E=L>>>24)<=_);){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}w>>>=z,_-=z,r.back+=z}if(w>>>=E,_-=E,r.back+=E,64&j){e.msg="invalid distance code",r.mode=30;break}r.offset=N,r.extra=15&j,r.mode=24;case24:if(r.extra){for(D=r.extra;_<D;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case25:if(0===y)breake;if(O=P-y,r.offset>O){if((O=r.offset-O)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}A=O>r.wnext?(O-=r.wnext,r.wsize-O):r.wnext-O,O>r.length&&(O=r.length),C=r.window}elseC=p,A=g-r.offset,O=r.length;for(y<O&&(O=y),y-=O,r.length-=O;p[g++]=C[A++],--O;);0===r.length&&(r.mode=21);break;case26:if(0===y)breake;p[g++]=r.length,y--,r.mode=21;break;case27:if(r.wrap){for(;_<32;){if(0===v)breake;v--,w|=h[m++]<<_,_+=8}if(P-=y,e.total_out+=P,r.total+=P,P&&(e.adler=r.check=r.flags?i(r.check,p,P,g-P):a(r.check,p,P,g-P)),P=y,(r.flags?w:b(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case28:if(r.wrap&&r.flags){for(;_<32;){if(0===v)breake;v--,w+=h[m++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case29:R=1;breake;case30:R=-3;breake;case31:return-4;default:returnf}returne.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,(r.wsize||P!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,P-e.avail_out)?(r.mode=31,-4):(k-=e.avail_in,P-=e.avail_out,e.total_in+=k,e.total_out+=P,r.total+=P,r.wrap&&P&&(e.adler=r.check=r.flags?i(r.check,p,P,e.next_out-P):a(r.check,p,P,e.next_out-P)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==k&&0===P||4===t)&&R===c&&(R=-5),R)},r.inflateEnd=function(e){if(!e||!e.state)returnf;vart=e.state;returnt.window&&(t.window=null),e.state=null,c},r.inflateGetHeader=function(e,t){varr;returne&&e.state?0==(2&(r=e.state).wrap)?f:((r.head=t).done=!1,c):f},r.inflateSetDictionary=function(e,t){varr,n=t.length;returne&&e.state?0!==(r=e.state).wrap&&11!==r.mode?f:11===r.mode&&a(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,c):f},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){varn=e("../utils/common"),a=[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],i=[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],o=[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],s=[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];t.exports=function(e,t,r,l,u,c,f,d){varh,p,b,m,g,v,y,w,_,k=d.bits,P=0,x=0,S=0,O=0,A=0,C=0,E=0,j=0,N=0,z=0,T=null,I=0,B=newn.Buf16(16),R=newn.Buf16(16),F=null,D=0;for(P=0;P<=15;P++)B[P]=0;for(x=0;x<l;x++)B[t[r+x]]++;for(A=k,O=15;1<=O&&0===B[O];O--);if(O<A&&(A=O),0===O)returnu[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(S=1;S<O&&0===B[S];S++);for(A<S&&(A=S),P=j=1;P<=15;P++)if(j<<=1,(j-=B[P])<0)return-1;if(0<j&&(0===e||1!==O))return-1;for(R[1]=0,P=1;P<15;P++)R[P+1]=R[P]+B[P];for(x=0;x<l;x++)0!==t[r+x]&&(f[R[t[r+x]]++]=x);if(v=0===e?(T=F=f,19):1===e?(T=a,I-=257,F=i,D-=257,256):(T=o,F=s,-1),P=S,g=c,E=x=z=0,b=-1,m=(N=1<<(C=A))-1,1===e&&852<N||2===e&&592<N)return1;for(;;){for(y=P-E,_=f[x]<v?(w=0,f[x]):f[x]>v?(w=F[D+f[x]],T[I+f[x]]):(w=96,0),h=1<<P-E,S=p=1<<C;u[g+(z>>E)+(p-=h)]=y<<24|w<<16|_|0,0!==p;);for(h=1<<P-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,x++,0==--B[P]){if(P===O)break;P=t[r+f[x]]}if(A<P&&(z&m)!==b){for(0===E&&(E=A),g+=S,j=1<<(C=P-E);C+E<O&&!((j-=B[C+E])<=0);)C++,j<<=1;if(N+=1<<C,1===e&&852<N||2===e&&592<N)return1;u[b=z&m]=A<<24|C<<16|g-c|0}}return0!==z&&(u[g+z]=P-E<<24|64<<16|0),d.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.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(e,t,r){varn=e("../utils/common"),a=0,i=1;functiono(e){for(vart=e.length;0<=--t;)e[t]=0}vars=0,l=29,u=256,c=u+1+l,f=30,d=19,h=2*c+1,p=15,b=16,m=7,g=256,v=16,y=17,w=18,_=[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],k=[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],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=newArray(2*(c+2));o(S);varO=newArray(2*f);o(O);varA=newArray(512);o(A);varC=newArray(256);o(C);varE=newArray(l);o(E);varj,N,z,T=newArray(f);functionI(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}functionB(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}functionR(e){returne<256?A[e]:A[256+(e>>>7)]}functionF(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}functionD(e,t,r){e.bi_valid>b-r?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>b-e.bi_valid,e.bi_valid+=r-b):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}functionL(e,t,r){D(e,r[2*t],r[2*t+1])}functionU(e,t){for(varr=0;r|=1&e,e>>>=1,r<<=1,0<--t;);returnr>>>1}functionM(e,t,r){varn,a,i=newArray(p+1),o=0;for(n=1;n<=p;n++)i[n]=o=o+r[n-1]<<1;for(a=0;a<=t;a++){vars=e[2*a+1];0!==s&&(e[2*a]=U(i[s]++,s))}}functionW(e){vart;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<f;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*g]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}functionH(e){8<e.bi_valid?F(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}functionZ(e,t,r,n){vara=2*t,i=2*r;returne[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}functionV(e,t,r){for(varn=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Z(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Z(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}functionX(e,t,r){varn,a,i,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0===n?L(e,a,t):(L(e,(i=C[a])+u+1,t),0!==(o=_[i])&&D(e,a-=E[i],o),L(e,i=R(--n),r),0!==(o=k[i])&&D(e,n-=T[i],o)),s<e.last_lit;);L(e,g,t)}functionG(e,t){varr,n,a,i=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)V(e,i,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,V(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){varr,n,a,i,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,b=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=p;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<h;r++)m<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=m,g++),l[2*n+1]=i,u<n||(e.bl_count[i]++,o=0,b<=n&&(o=d[n-b]),s=l[2*n],e.opt_len+=s*(i+o),f&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(i=m;0!==i;i--)for(n=e.bl_count[i];0!==n;)u<(a=e.heap[--r])||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),n--)}}(e,t),M(i,u,e.bl_count)}functionK(e,t,r){varn,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<u?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}functionY(e,t,r){varn,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<u)for(;L(e,a,e.bl_tree),0!=--s;);else0!==a?(a!==i&&(L(e,a,e.bl_tree),s--),L(e,v,e.bl_tree),D(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),D(e,s-3,3)):(L(e,w,e.bl_tree),D(e,s-11,7));i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}o(T);varq=!1;functionJ(e,t,r,a){vari,o,l,u;D(e,(s<<1)+(a?1:0),3),o=t,l=r,u=!0,H(i=e),u&&(F(i,l),F(i,~l)),n.arraySet(i.pending_buf,i.window,o,l,i.pending),i.pending+=l}r._tr_init=function(e){q||(function(){vare,t,r,n,a,i=newArray(p+1);for(n=r=0;n<l-1;n++)for(E[n]=r,e=0;e<1<<_[n];e++)C[r++]=n;for(C[r-1]=n,n=a=0;n<16;n++)for(T[n]=a,e=0;e<1<<k[n];e++)A[a++]=n;for(a>>=7;n<f;n++)for(T[n]=a<<7,e=0;e<1<<k[n]-7;e++)A[256+a++]=n;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)S[2*e+1]=8,e++,i[8]++;for(;e<=255;)S[2*e+1]=9,e++,i[9]++;for(;e<=279;)S[2*e+1]=7,e++,i[7]++;for(;e<=287;)S[2*e+1]=8,e++,i[8]++;for(M(S,c+1,i),e=0;e<f;e++)O[2*e+1]=5,O[2*e]=U(e,5);j=newI(S,_,u+1,c,p),N=newI(O,k,0,f,p),z=newI(newArray(0),P,0,d,m)}(),q=!0),e.l_desc=newB(e.dyn_ltree,j),e.d_desc=newB(e.dyn_dtree,N),e.bl_desc=newB(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,W(e)},r._tr_stored_block=J,r._tr_flush_block=function(e,t,r,n){varo,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){vart,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])returna;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])returni;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])returni;returna}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){vart;for(K(e,e.dyn_ltree,e.l_desc.max_code),K(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*x[t]+1];t--);returne.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?J(e,t,r,n):4===e.strategy||s===o?(D(e,2+(n?1:0),3),X(e,S,O)):(D(e,4+(n?1:0),3),function(e,t,r,n){vara;for(D(e,t-257,5),D(e,r-1,5),D(e,n-4,4),a=0;a<n;a++)D(e,e.bl_tree[2*x[a]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),X(e,e.dyn_ltree,e.dyn_dtree)),W(e),n&&H(e)},r._tr_tally=function(e,t,r){returne.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(C[r]+u+1)]++,e.dyn_dtree[2*R(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){vart;D(e,2,3),L(e,g,S),16===(t=e).bi_valid?(F(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.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(e,t,r){t.exports="function"==typeofsetImmediate?setImmediate:function(){vare=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}(S);varj=function(){functione(e,t){Object.defineProperty(this,"_zip",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"xmlParser",{enumerable:!0,configurable:!0,writable:!0,value:newm})}returnObject.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnthis._zip.files[function(e){returne.startsWith("/")?e.substr(1):e}(e)]}}),Object.defineProperty(e.prototype,"update",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._zip.file(e,t)}}),Object.defineProperty(e,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r){returnS.exports.loadAsync(t).then((function(t){returnnewe(t,r)}))}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnvoid0===e&&(e="blob"),this._zip.generateAsync({type:e})}}),Object.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr,n;returnvoid0===t&&(t="string"),null!==(n=null===(r=this.get(e))||void0===r?void0:r.async(t))&&void0!==n?n:Promise.resolve(null)}}),Object.defineProperty(e.prototype,"loadRelationships",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this;void0===e&&(e=null);varr="_rels/.rels";if(null!=e){varn=O(e),a=n[0],i=n[1];r="".concat(a,"_rels/").concat(i,".rels")}returnthis.load(r).then((function(e){returne?function(e,t){returnt.elements(e).map((function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}}))}(t.parseXmlDocument(e).firstElementChild,t.xmlParser):null}))}}),Object.defineProperty(e.prototype,"parseXmlDocument",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnfunction(e,t){void0===t&&(t=!1),t&&(e=e.replace(/<[?].*[?]>/,""));varr=(newDOMParser).parseFromString(e,"application/xml"),n=function(e){vart;returnnull===(t=e.getElementsByTagName("parsererror")[0])||void0===t?void0:t.textContent}(r);if(n)thrownewError(n);returnr}(e,this.options.trimXmlDeclaration)}}),e}();varN,z=function(e){functiont(t,r,n){vara=e.call(this,t,r)||this;returnObject.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"body",{enumerable:!0,configurable:!0,writable:!0,value:void0}),a._documentParser=n,a}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}),t}(v);functionT(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",f),offset:t.lengthAttr(e,"space",d),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}functionI(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"left":r.left=T(i,t);break;case"top":r.top=T(i,t);break;case"right":r.right=T(i,t);break;case"bottom":r.bottom=T(i,t)}}returnr}functionB(e,t){varr,n;void0===t&&(t=g);for(vara={},i=0,o=t.elements(e);i<o.length;i++){vars=o[i];switch(s.localName){case"pgSz":a.pageSize={width:t.lengthAttr(s,"w"),height:t.lengthAttr(s,"h"),orientation:t.attr(s,"orient")};break;case"type":a.type=t.attr(s,"val");break;case"pgMar":a.pageMargins={left:t.lengthAttr(s,"left"),right:t.lengthAttr(s,"right"),top:t.lengthAttr(s,"top"),bottom:t.lengthAttr(s,"bottom"),header:t.lengthAttr(s,"header"),footer:t.lengthAttr(s,"footer"),gutter:t.lengthAttr(s,"gutter")};break;case"cols":a.columns=R(s,t);break;case"headerReference":(null!==(r=a.headerRefs)&&void0!==r?r:a.headerRefs=[]).push(D(s,t));break;case"footerReference":(null!==(n=a.footerRefs)&&void0!==n?n:a.footerRefs=[]).push(D(s,t));break;case"titlePg":a.titlePage=t.boolAttr(s,"val",!0);break;case"pgBorders":a.pageBorders=I(s,t);break;case"pgNumType":a.pageNumber=F(s,t)}}returna}functionR(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map((function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}}))}}functionF(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}functionD(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}functionL(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){U(a[n],r,t)}returnr}functionU(e,t,r){return!!b(e,t,r)}functionM(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){W(a[n],r,t)}returnr}functionW(e,t,r){if(e.namespaceURI!=s)return!1;if(b(e,t,r))return!0;switch(e.localName){case"tabs":t.tabs=function(e,t){returnt.elements(e,"tab").map((function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}}))}(e,r);break;case"sectPr":t.sectionProps=B(e,r);break;case"numPr":t.numbering=function(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"numId":r.id=t.attr(i,"val");break;case"ilvl":r.level=t.intAttr(i,"val")}}returnr}(e,r);break;case"spacing":returnt.lineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}(e,r),!1;case"textAlignment":returnt.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=L(e,r);break;default:return!1}return!0}functionH(e,t){for(varr={id:t.attr(e,"numId"),overrides:[]},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"abstractNumId":r.abstractId=t.attr(i,"val");break;case"lvlOverride":r.overrides.push(X(i,t))}}returnr}functionZ(e,t){for(varr={id:t.attr(e,"abstractNumId"),levels:[]},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"name":r.name=t.attr(i,"val");break;case"multiLevelType":r.multiLevelType=t.attr(i,"val");break;case"numStyleLink":r.numberingStyleLink=t.attr(i,"val");break;case"styleLink":r.styleLink=t.attr(i,"val");break;case"lvl":r.levels.push(V(i,t))}}returnr}functionV(e,t){for(varr={level:t.intAttr(e,"ilvl")},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"start":r.start=t.attr(i,"val");break;case"lvlRestart":r.restart=t.intAttr(i,"val");break;case"numFmt":r.format=t.attr(i,"val");break;case"lvlText":r.text=t.attr(i,"val");break;case"lvlJc":r.justification=t.attr(i,"val");break;case"lvlPicBulletId":r.bulletPictureId=t.attr(i,"val");break;case"pStyle":r.paragraphStyle=t.attr(i,"val");break;case"pPr":r.paragraphProps=M(i,t);break;case"rPr":r.runProps=L(i,t)}}returnr}functionX(e,t){for(varr={level:t.intAttr(e,"ilvl")},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"startOverride":r.start=t.intAttr(i,"val");break;case"lvl":r.numberingLevel=V(i,t)}}returnr}functionG(e,t){varr=t.element(e,"pict"),n=r&&t.element(r,"shape"),a=n&&t.element(n,"imagedata");returna?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(a,"id"),style:t.attr(n,"style")}:null}!function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"}(N||(N={}));varK,Y=function(e){functiont(t,r,n){vara=e.call(this,t,r)||this;returnObject.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"numberings",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"abstractNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"bulletPictures",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void0}),a._documentParser=n,a}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){Object.assign(this,function(e,t){for(varr={numberings:[],abstractNumberings:[],bulletPictures:[]},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"num":r.numberings.push(H(i,t));break;case"abstractNum":r.abstractNumberings.push(Z(i,t));break;case"numPicBullet":r.bulletPictures.push(G(i,t))}}returnr}(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}),t}(v),q=function(e){functiont(t,r,n){vara=e.call(this,t,r)||this;returnObject.defineProperty(a,"styles",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),a._documentParser=n,a}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}),t}(v);!function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction"}(K||(K={}));varJ=function(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Header}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void0})},$=function(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Footer}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void0})},Q=function(e){functiont(t,r,n){vara=e.call(this,t,r)||this;returnObject.defineProperty(a,"rootElement",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),a._documentParser=n,a}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}),t}(v),ee=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}returnr(t,e),Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){returnnewJ}}),t}(Q),te=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}returnr(t,e),Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){returnnew$}}),t}(Q);functionre(t){if(!(e(t)>"u"))returnparseInt(t)}varne=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void0}),t}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"Template":r.template=i.textContent;break;case"Pages":r.pages=re(i.textContent);break;case"Words":r.words=re(i.textContent);break;case"Characters":r.characters=re(i.textContent);break;case"Application":r.application=i.textContent;break;case"Lines":r.lines=re(i.textContent);break;case"Paragraphs":r.paragraphs=re(i.textContent);break;case"Company":r.company=i.textContent;break;case"AppVersion":r.appVersion=i.textContent}}returnr}(e,this._package.xmlParser)}}),t}(v);varae=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void0}),t}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"title":r.title=i.textContent;break;case"description":r.description=i.textContent;break;case"subject":r.subject=i.textContent;break;case"creator":r.creator=i.textContent;break;case"keywords":r.keywords=i.textContent;break;case"language":r.language=i.textContent;break;case"lastModifiedBy":r.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(r.revision=parseInt(i.textContent))}}returnr}(e,this._package.xmlParser)}}),t}(v),ie=function(){Object.defineProperty(this,"colorScheme",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"fontScheme",{enumerable:!0,configurable:!0,writable:!0,value:void0})};functionoe(e,t){for(varr={name:t.attr(e,"name"),colors:{}},n=0,a=t.elements(e);n<a.length;n++){vari=a[n],o=t.element(i,"srgbClr"),s=t.element(i,"sysClr");o?r.colors[i.localName]=t.attr(o,"val"):s&&(r.colors[i.localName]=t.attr(s,"lastClr"))}returnr}functionse(e,t){for(varr={name:t.attr(e,"name")},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"majorFont":r.majorFont=le(i,t);break;case"minorFont":r.minorFont=le(i,t)}}returnr}functionle(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}varue=function(e){functiont(t,r){varn=e.call(this,t,r)||this;returnObject.defineProperty(n,"theme",{enumerable:!0,configurable:!0,writable:!0,value:void0}),n}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.theme=function(e,t){for(varr=newie,n=t.element(e,"themeElements"),a=0,i=t.elements(n);a<i.length;a++){varo=i[a];switch(o.localName){case"clrScheme":r.colorScheme=oe(o,t);break;case"fontScheme":r.fontScheme=se(o,t)}}returnr}(e,this._package.xmlParser)}}),t}(v),ce=function(){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"noteType",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void0})},fe=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Footnote}),t}returnr(t,e),t}(ce),de=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Endnote}),t}returnr(t,e),t}(ce),he=function(e){functiont(t,r,n){vara=e.call(this,t,r)||this;returnObject.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(a,"notes",{enumerable:!0,configurable:!0,writable:!0,value:void0}),a._documentParser=n,a}returnr(t,e),t}(v),pe=function(e){functiont(t,r,n){returne.call(this,t,r,n)||this}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",fe)}}),t}(he),be=function(e){functiont(t,r,n){returne.call(this,t,r,n)||this}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",de)}}),t}(he);functionme(e,t){for(varr={defaultNoteIds:[]},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"numFmt":r.nummeringFormat=t.attr(i,"val");break;case"footnote":case"endnote":r.defaultNoteIds.push(t.attr(i,"id"))}}returnr}varge=function(e){functiont(t,r){varn=e.call(this,t,r)||this;returnObject.defineProperty(n,"settings",{enumerable:!0,configurable:!0,writable:!0,value:void0}),n}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.settings=function(e,t){for(varr={},n=0,a=t.elements(e);n<a.length;n++){vari=a[n];switch(i.localName){case"defaultTabStop":r.defaultTabStop=t.lengthAttr(i,"val");break;case"footnotePr":r.footnoteProps=me(i,t);break;case"endnotePr":r.endnoteProps=me(i,t);break;case"autoHyphenation":r.autoHyphenation=t.boolAttr(i,"val")}}returnr}(e,this._package.xmlParser)}}),t}(v);varve=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnObject.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void0}),t}returnr(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){returnt.elements(e,"property").map((function(e){varr=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:r.nodeName,value:r.textContent}}))}(e,this._package.xmlParser)}}),t}(v),ye=[{type:n.OfficeDocument,target:"word/document.xml"},{type:n.ExtendedProperties,target:"docProps/app.xml"},{type:n.CoreProperties,target:"docProps/core.xml"},{type:n.CustomProperties,target:"docProps/custom.xml"}],we=function(){functione(){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"_parser",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"parts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"partsMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"documentPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"fontTablePart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"numberingPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"stylesPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"footnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"endnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"themePart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"corePropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"extendedPropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"settingsPart",{enumerable:!0,configurable:!0,writable:!0,value:void0})}returnObject.defineProperty(e,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){vara=newe;returna._options=n,a._parser=r,j.load(t,n).then((function(e){returna._package=e,a._package.loadRelationships()})).then((function(e){a.rels=e;vart=ye.map((function(t){varr,n=null!==(r=e.find((function(e){returne.type===t.type})))&&void0!==r?r:t;returna.loadRelationshipPart(n.target,n.type)}));returnPromise.all(t)})).then((function(){returna}))}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnvoid0===e&&(e="blob"),this._package.save(e)}}),Object.defineProperty(e.prototype,"loadRelationshipPart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;if(this.partsMap[e])returnPromise.resolve(this.partsMap[e]);if(!this._package.get(e))returnPromise.resolve(null);vara=null;switch(t){casen.OfficeDocument:this.documentPart=a=newz(this._package,e,this._parser);break;casen.FontTable:this.fontTablePart=a=newk(this._package,e);break;casen.Numbering:this.numberingPart=a=newY(this._package,e,this._parser);break;casen.Styles:this.stylesPart=a=newq(this._package,e,this._parser);break;casen.Theme:this.themePart=a=newue(this._package,e);break;casen.Footnotes:this.footnotesPart=a=newpe(this._package,e,this._parser);break;casen.Endnotes:this.endnotesPart=a=newbe(this._package,e,this._parser);break;casen.Footer:a=newte(this._package,e,this._parser);break;casen.Header:a=newee(this._package,e,this._parser);break;casen.CoreProperties:this.corePropsPart=a=newae(this._package,e);break;casen.ExtendedProperties:this.extendedPropsPart=a=newne(this._package,e);break;casen.CustomProperties:a=newve(this._package,e);break;casen.Settings:this.settingsPart=a=newge(this._package,e)}returnnull==a?Promise.resolve(null):(this.partsMap[e]=a,this.parts.push(a),a.load().then((function(){if(null==a.rels||0==a.rels.length)returna;vare=O(a.path)[0],t=a.rels.map((function(t){returnr.loadRelationshipPart(A(t.target,e),t.type)}));returnPromise.all(t).then((function(){returna}))})))}}),Object.defineProperty(e.prototype,"loadDocumentImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;returnthis.loadResource(null!=t?t:this.documentPart,e,"blob").then((function(e){returnr.blobToURL(e)}))}}),Object.defineProperty(e.prototype,"loadNumberingImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this;returnthis.loadResource(this.numberingPart,e,"blob").then((function(e){returnt.blobToURL(e)}))}}),Object.defineProperty(e.prototype,"loadFont",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;returnthis.loadResource(this.fontTablePart,e,"uint8array").then((function(e){returne&&r.blobToURL(newBlob([_e(e,t)]))}))}}),Object.defineProperty(e.prototype,"blobToURL",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returne?this._options.useBase64URL?function(e){returnnewPromise((function(t,r){varn=newFileReader;n.onloadend=function(){returnt(n.result.replace(/application\/octet\-stream;/,"image/png;"))},n.readAsDataURL(e)}))}(e):URL.createObjectURL(e):null}}),Object.defineProperty(e.prototype,"findPartByRelId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr;void0===t&&(t=null);varn=(null!==(r=t.rels)&&void0!==r?r:this.rels).find((function(t){returnt.id==e})),a=t?O(t.path)[0]:"";returnn?this.partsMap[A(n.target,a)]:null}}),Object.defineProperty(e.prototype,"getPathById",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=e.rels.find((function(e){returne.id==t})),n=O(e.path)[0];returnr?A(r.target,n):null}}),Object.defineProperty(e.prototype,"loadResource",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){varn=this.getPathById(e,t);returnn?this._package.load(n,r):Promise.resolve(null)}}),e}();function_e(e,t){for(varr=t.replace(/{|}|-/g,""),n=newArray(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(a=0;a<32;a++)e[a]=e[a]^n[a%16];returne}varke="inherit",Pe="black",xe="black",Se="transparent",Oe=function(){functione(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void0}),this.options=i({ignoreWidth:!1,debug:!1},e)}returnObject.defineProperty(e.prototype,"parseNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){for(varn=[],a=0,i=g.elements(e,t);a<i.length;a++){varo=i[a],s=newr;s.id=g.attr(o,"id"),s.noteType=g.attr(o,"type"),s.children=this.parseBodyElements(o),n.push(s)}returnn}}),Object.defineProperty(e.prototype,"parseDocumentFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.element(e,"body"),r=g.element(e,"background"),n=g.element(t,"sectPr");return{type:K.Document,children:this.parseBodyElements(t),props:n?B(n,g):null,cssStyle:r?this.parseBackground(r):{}}}}),Object.defineProperty(e.prototype,"parseBackground",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart={},r=Ce.colorAttr(e,"color");returnr&&(t["background-color"]=r),t}}),Object.defineProperty(e.prototype,"parseBodyElements",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r=[];returnCe.foreach(e,(function(e){switch(e.localName){case"p":r.push(t.parseParagraph(e));break;case"tbl":r.push(t.parseTable(e));break;case"sdt":t.parseSdt(e).forEach((function(e){returnr.push(e)}))}})),r}}),Object.defineProperty(e.prototype,"parseStylesFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r=[];returnCe.foreach(e,(function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}})),r}}),Object.defineProperty(e.prototype,"parseDefaultStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={id:null,name:null,target:null,basedOn:null,styles:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"rPrDefault":varn=g.element(e,"rPr");n&&r.styles.push({target:"span",values:t.parseDefaultProperties(n,{})});break;case"pPrDefault":vara=g.element(e,"pPr");a&&r.styles.push({target:"p",values:t.parseDefaultProperties(a,{})})}})),r}}),Object.defineProperty(e.prototype,"parseStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={id:g.attr(e,"styleId"),isDefault:g.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(g.attr(e,"type")){case"paragraph":r.target="p";break;case"table":r.target="table";break;case"character":r.target="span"}returnCe.foreach(e,(function(e){switch(e.localName){case"basedOn":r.basedOn=g.attr(e,"val");break;case"name":r.name=g.attr(e,"val");break;case"link":r.linked=g.attr(e,"val");break;case"next":r.next=g.attr(e,"val");break;case"aliases":r.aliases=g.attr(e,"val").split(",");break;case"pPr":r.styles.push({target:"p",values:t.parseDefaultProperties(e,{})}),r.paragraphProps=M(e,g);break;case"rPr":r.styles.push({target:"span",values:t.parseDefaultProperties(e,{})}),r.runProps=L(e,g);break;case"tblPr":case"tcPr":r.styles.push({target:"td",values:t.parseDefaultProperties(e,{})});break;case"tblStylePr":for(varn=0,a=t.parseTableStyle(e);n<a.length;n++){vari=a[n];r.styles.push(i)}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:t.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}})),r}}),Object.defineProperty(e.prototype,"parseTableStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r=[],n=g.attr(e,"type"),a="",i="";switch(n){case"firstRow":i=".first-row",a="tr.first-row td";break;case"lastRow":i=".last-row",a="tr.last-row td";break;case"firstCol":i=".first-col",a="td.first-col";break;case"lastCol":i=".last-col",a="td.last-col";break;case"band1Vert":i=":not(.no-vband)",a="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",a="td.even-col";break;case"band1Horz":i=":not(.no-hband)",a="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",a="tr.even-row";break;default:return[]}returnCe.foreach(e,(function(e){switch(e.localName){case"pPr":r.push({target:"".concat(a," p"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(a," span"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:a,mod:i,values:t.parseDefaultProperties(e,{})})}})),r}}),Object.defineProperty(e.prototype,"parseNumberingFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r=[],n={},a=[];returnCe.foreach(e,(function(e){switch(e.localName){case"abstractNum":t.parseAbstractNumbering(e,a).forEach((function(e){returnr.push(e)}));break;case"numPicBullet":a.push(t.parseNumberingPicBullet(e));break;case"num":vari=g.attr(e,"numId"),o=g.elementAttr(e,"abstractNumId","val");n[o]=i}})),r.forEach((function(e){returne.id=n[e.id]})),r}}),Object.defineProperty(e.prototype,"parseNumberingPicBullet",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.element(e,"pict"),r=t&&g.element(t,"shape"),n=r&&g.element(r,"imagedata");returnn?{id:g.intAttr(e,"numPicBulletId"),src:g.attr(n,"id"),style:g.attr(r,"style")}:null}}),Object.defineProperty(e.prototype,"parseAbstractNumbering",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this,n=[],a=g.attr(e,"abstractNumId");returnCe.foreach(e,(function(e){if("lvl"===e.localName)n.push(r.parseNumberingLevel(a,e,t))})),n}}),Object.defineProperty(e.prototype,"parseNumberingLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){varn=this,a={id:e,level:g.intAttr(t,"ilvl"),pStyleName:void0,pStyle:{},rStyle:{},suff:"tab"};returnCe.foreach(t,(function(e){switch(e.localName){case"pPr":n.parseDefaultProperties(e,a.pStyle);break;case"rPr":n.parseDefaultProperties(e,a.rStyle);break;case"lvlPicBulletId":vart=g.intAttr(e,"val");a.bullet=r.find((function(e){returne.id==t}));break;case"lvlText":a.levelText=g.attr(e,"val");break;case"pStyle":a.pStyleName=g.attr(e,"val");break;case"numFmt":a.format=g.attr(e,"val");break;case"suff":a.suff=g.attr(e,"val")}})),a}}),Object.defineProperty(e.prototype,"parseSdt",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.element(e,"sdtContent");returnt?this.parseBodyElements(t):[]}}),Object.defineProperty(e.prototype,"parseParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={type:K.Paragraph,children:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"r":r.children.push(t.parseRun(e,r));break;case"hyperlink":r.children.push(t.parseHyperlink(e,r));break;case"bookmarkStart":r.children.push(function(e,t){return{type:K.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}}(e,g));break;case"bookmarkEnd":r.children.push(function(e,t){return{type:K.BookmarkEnd,id:t.attr(e,"id")}}(e,g));break;case"pPr":t.parseParagraphProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseParagraphProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){if(W(e,t,g))return!0;switch(e.localName){case"pStyle":t.styleName=g.attr(e,"val");break;case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseFrame",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){"drop"==g.attr(e,"dropCap")&&(t.cssStyle.float="left")}}),Object.defineProperty(e.prototype,"parseHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this,n={type:K.Hyperlink,parent:t,children:[]},a=g.attr(e,"anchor");returna&&(n.href="#"+a),Ce.foreach(e,(function(e){if("r"===e.localName)n.children.push(r.parseRun(e,n))})),n}}),Object.defineProperty(e.prototype,"parseRun",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this,n={type:K.Run,parent:t,children:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"t":n.children.push({type:K.Text,text:e.textContent});break;case"fldSimple":n.children.push({type:K.SimpleField,instruction:g.attr(e,"instr"),lock:g.boolAttr(e,"lock",!1),dirty:g.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:K.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:K.ComplexField,charType:g.attr(e,"fldCharType"),lock:g.boolAttr(e,"lock",!1),dirty:g.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:K.NoBreakHyphen});break;case"br":n.children.push({type:K.Break,break:g.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:K.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:K.Symbol,font:Math.ceil(4*parseInt(g.attr(e,"font"))/3)+"px",char:g.attr(e,"char")});break;case"tab":n.children.push({type:K.Tab});break;case"footnoteReference":n.children.push({type:K.FootnoteReference,id:g.attr(e,"id")});break;case"endnoteReference":n.children.push({type:K.EndnoteReference,id:g.attr(e,"id")});break;case"drawing":vart=r.parseDrawing(e);t&&(n.children=[t]);break;case"rPr":r.parseRunProperties(e,n)}})),n}}),Object.defineProperty(e.prototype,"parseRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){switch(e.localName){case"rStyle":t.styleName=g.attr(e,"val");break;case"vertAlign":t.verticalAlign=Ee.valueOfVertAlign(e,!0);break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart=0,r=g.elements(e);t<r.length;t++){varn=r[t];switch(n.localName){case"inline":case"anchor":returnthis.parseDrawingWrapper(n)}}}}),Object.defineProperty(e.prototype,"parseDrawingWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart,r={type:K.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName,a=null,i=g.boolAttr(e,"simplePos"),o={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"},l=0,c=g.elements(e);l<c.length;l++){varf=c[l];switch(f.localName){case"simplePos":i&&(o.offset=g.lengthAttr(f,"x",u),s.offset=g.lengthAttr(f,"y",u));break;case"extent":r.cssStyle.width=g.lengthAttr(f,"cx",u),r.cssStyle.height=g.lengthAttr(f,"cy",u);break;case"positionH":case"positionV":if(!i){vard="positionH"==f.localName?o:s,h=g.element(f,"align"),p=g.element(f,"posOffset");d.relative=null!==(t=g.attr(f,"relativeFrom"))&&void0!==t?t:d.relative,h&&(d.align=h.textContent),p&&(d.offset=Ce.sizeValue(p,u))}break;case"wrapTopAndBottom":a="wrapTopAndBottom";break;case"wrapNone":a="wrapNone";break;case"graphic":varb=this.parseGraphic(f);b&&r.children.push(b)}}return"wrapTopAndBottom"==a?(r.cssStyle.display="block",o.align&&(r.cssStyle["text-align"]=o.align,r.cssStyle.width="100%")):"wrapNone"==a?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",o.offset&&(r.cssStyle.left=o.offset),s.offset&&(r.cssStyle.top=s.offset)):n&&("left"==o.align||"right"==o.align)&&(r.cssStyle.float=o.align),r}}),Object.defineProperty(e.prototype,"parseGraphic",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart=g.element(e,"graphicData"),r=0,n=g.elements(t);r<n.length;r++){vara=n[r];if("pic"===a.localName)returnthis.parsePicture(a)}returnnull}}),Object.defineProperty(e.prototype,"parsePicture",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart={type:K.Image,src:"",cssStyle:{}},r=g.element(e,"blipFill"),n=g.element(r,"blip");t.src=g.attr(n,"embed");vara=g.element(e,"spPr"),i=g.element(a,"xfrm");t.cssStyle.position="relative";for(varo=0,s=g.elements(i);o<s.length;o++){varl=s[o];switch(l.localName){case"ext":t.cssStyle.width=g.lengthAttr(l,"cx",u),t.cssStyle.height=g.lengthAttr(l,"cy",u);break;case"off":t.cssStyle.left=g.lengthAttr(l,"x",u),t.cssStyle.top=g.lengthAttr(l,"y",u)}}returnt}}),Object.defineProperty(e.prototype,"parseTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={type:K.Table,children:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=[];returnCe.foreach(e,(function(e){if("gridCol"===e.localName)t.push({width:g.lengthAttr(e,"w")})})),t}}),Object.defineProperty(e.prototype,"parseTableProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,(function(e){switch(e.localName){case"tblStyle":t.styleName=g.attr(e,"val");break;case"tblLook":t.className=Ee.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=g.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=g.intAttr(e,"val");break;default:return!1}return!0})),t.cssStyle["text-align"]){case"center":deletet.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":deletet.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}}),Object.defineProperty(e.prototype,"parseTablePosition",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=g.lengthAttr(e,"topFromText"),n=g.lengthAttr(e,"bottomFromText"),a=g.lengthAttr(e,"rightFromText"),i=g.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=Ee.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=Ee.addSize(t.cssStyle["margin-left"],i),t.cssStyle["margin-right"]=Ee.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=Ee.addSize(t.cssStyle["margin-top"],r)}}),Object.defineProperty(e.prototype,"parseTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={type:K.Row,children:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableRowProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){switch(e.localName){case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=g.boolAttr(e,"val");break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this,r={type:K.Cell,children:[]};returnCe.foreach(e,(function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableCellProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){varr;switch(e.localName){case"gridSpan":t.span=g.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!==(r=g.attr(e,"val"))&&void0!==r?r:"continue";break;case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseDefaultProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){vara=this;returnvoid0===t&&(t=null),void0===r&&(r=null),void0===n&&(n=null),t=t||{},Ce.foreach(e,(function(i){varo;if(null===(o=n)||void0===o||!o(i))switch(i.localName){case"jc":t["text-align"]=Ee.valueOfJc(i);break;case"textAlignment":t["vertical-align"]=Ee.valueOfTextAlignment(i);break;case"color":t.color=Ce.colorAttr(i,"val",null,Pe);break;case"sz":t["font-size"]=t["min-height"]=Math.ceil(4*parseInt(g.lengthAttr(i,"val",c))/3)+"px";break;case"shd":t["background-color"]=Ce.colorAttr(i,"fill",null,ke);break;case"highlight":t["background-color"]=Ce.colorAttr(i,"val",null,Se);break;case"vertAlign":break;case"position":t.verticalAlign=g.lengthAttr(i,"val",c);break;case"tcW":if(a.options.ignoreWidth)break;case"tblW":t.width=Ee.valueOfSize(i,"w");break;case"trHeight":a.parseTrHeight(i,t);break;case"strike":t["text-decoration"]=g.boolAttr(i,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=g.boolAttr(i,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=g.boolAttr(i,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=g.boolAttr(i,"val",!0)?"uppercase":"none";break;case"smallCaps":t["text-transform"]=g.boolAttr(i,"val",!0)?"lowercase":"none";break;case"u":a.parseUnderline(i,t);break;case"ind":case"tblInd":a.parseIndentation(i,t);break;case"rFonts":a.parseFont(i,t);break;case"tblBorders":a.parseBorderProperties(i,r||t);break;case"tblCellSpacing":t["border-spacing"]=Ee.valueOfMargin(i),t["border-collapse"]="separate";break;case"pBdr":a.parseBorderProperties(i,t);break;case"bdr":t.border=Ee.valueOfBorder(i);break;case"tcBorders":a.parseBorderProperties(i,t);break;case"vanish":g.boolAttr(i,"val",!0)&&(t.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":a.parseMarginProperties(i,r||t);break;case"tblLayout":t["table-layout"]=Ee.valueOfTblLayout(i);break;case"vAlign":t["vertical-align"]=Ee.valueOfTextAlignment(i);break;case"spacing":"pPr"==e.localName&&a.parseSpacing(i,t);break;case"wordWrap":g.boolAttr(i,"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:a.options.debug&&console.warn("DOCX: Unknown document element: ".concat(e.localName,".").concat(i.localName))}})),t}}),Object.defineProperty(e.prototype,"parseUnderline",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=g.attr(e,"val");if(null!=r){switch(r){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"}varn=Ce.colorAttr(e,"color");n&&(t["text-decoration-color"]=n)}}}),Object.defineProperty(e.prototype,"parseFont",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=[g.attr(e,"ascii"),Ee.themeValue(e,"asciiTheme")].filter((function(e){returne})).join(", ");r.length>0&&(t["font-family"]=r)}}),Object.defineProperty(e.prototype,"parseIndentation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=g.lengthAttr(e,"firstLine"),n=g.lengthAttr(e,"hanging"),a=g.lengthAttr(e,"left"),i=g.lengthAttr(e,"start"),o=g.lengthAttr(e,"right"),s=g.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(a||i)&&(t["margin-left"]=a||i),(o||s)&&(t["margin-right"]=o||s)}}),Object.defineProperty(e.prototype,"parseSpacing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=g.lengthAttr(e,"before"),n=g.lengthAttr(e,"after"),a=g.intAttr(e,"line",null),i=g.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==a)switch(i){case"auto":t["line-height"]="".concat((a/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(Math.ceil(a/15),"px)");break;default:t["line-height"]=t["min-height"]="".concat(Math.ceil(a/15),"px")}}}),Object.defineProperty(e.prototype,"parseMarginProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ce.foreach(e,(function(e){switch(e.localName){case"left":t["padding-left"]=Ee.valueOfMargin(e);break;case"right":t["padding-right"]=Ee.valueOfMargin(e);break;case"top":t["padding-top"]=Ee.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=Ee.valueOfMargin(e)}}))}}),Object.defineProperty(e.prototype,"parseTrHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){g.attr(e,"hRule"),t.height=g.lengthAttr(e,"val")}}),Object.defineProperty(e.prototype,"parseBorderProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ce.foreach(e,(function(e){switch(e.localName){case"start":case"left":t["border-left"]=Ee.valueOfBorder(e);break;case"end":case"right":t["border-right"]=Ee.valueOfBorder(e);break;case"top":t["border-top"]=Ee.valueOfBorder(e);break;case"bottom":t["border-bottom"]=Ee.valueOfBorder(e)}}))}}),e}(),Ae=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],Ce=function(){functione(){}returnObject.defineProperty(e,"foreach",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(varr=0;r<e.childNodes.length;r++){varn=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}}),Object.defineProperty(e,"colorAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){void0===r&&(r=null),void0===n&&(n="black");vara=g.attr(e,t);if(a)return"auto"==a?n:Ae.includes(a)?a:"#".concat(a);vari=g.attr(e,"themeColor");returni?"var(--docx-".concat(i,"-color)"):r}}),Object.defineProperty(e,"sizeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){returnvoid0===t&&(t=l),p(e.textContent,t)}}),e}(),Ee=function(){functione(){}returnObject.defineProperty(e,"themeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=g.attr(e,t);returnr?"var(--docx-".concat(r,"-font)"):null}}),Object.defineProperty(e,"valueOfSize",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=l;switch(g.attr(e,"type")){case"dxa":break;case"pct":r=h;break;case"auto":return"auto"}returng.lengthAttr(e,t,r)}}),Object.defineProperty(e,"valueOfMargin",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returng.lengthAttr(e,"w")}}),Object.defineProperty(e,"valueOfBorder",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if("nil"==g.attr(e,"val"))return"none";vart=Ce.colorAttr(e,"color"),r=g.lengthAttr(e,"sz",f);return"".concat(r," solid ").concat("auto"==t?xe:t)}}),Object.defineProperty(e,"valueOfTblLayout",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"fixed"==g.attr(e,"val")?"fixed":"auto"}}),Object.defineProperty(e,"classNameOfCnfStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.attr(e,"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((function(e,r){return"1"==t[r]})).join("")}}),Object.defineProperty(e,"valueOfJc",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}returnt}}),Object.defineProperty(e,"valueOfVertAlign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void0===t&&(t=!1);varr=g.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":returnt?"sup":"super"}returnt?null:r}}),Object.defineProperty(e,"valueOfTextAlignment",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}returnt}}),Object.defineProperty(e,"addSize",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){returnnull==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}}),Object.defineProperty(e,"classNameOftblLook",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=g.hexAttr(e,"val",0),r="";return(g.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(g.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(g.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(g.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(g.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(g.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}),e}(),je={pos:0,leader:"none",style:"left"};functionNe(e,t,r,n){void0===n&&(n=.75);vara=e.closest("p"),o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),l=getComputedStyle(a),u=(null==t?void0:t.length)>0?t.map((function(e){return{pos:ze(e.position),leader:e.leader,style:e.style}})).sort((function(e,t){returne.pos-t.pos})):[je],c=u[u.length-1],f=s.width*n,d=ze(r),h=c.pos+d;if(h<f)for(;h<f&&u.length<50;h+=d)u.push(i(i({},je),{pos:h}));varp=parseFloat(l.marginLeft),b=s.left+p,m=(o.left-b)*n,g=u.find((function(e){return"clear"!=e.style&&e.pos>m}));if(null!=g){varv=1;if("right"==g.style||"center"==g.style){vary=Array.from(a.querySelectorAll(".".concat(e.className))),w=y.indexOf(e)+1,_=document.createRange();_.setStart(e,1),w<y.length?_.setEndBefore(y[w]):_.setEndAfter(a);vark="center"==g.style?.5:1,P=_.getBoundingClientRect(),x=P.left+k*P.width-(s.left-p);v=g.pos-x*n}elsev=g.pos-m;switch(e.innerHTML=" ",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(v.toFixed(0),"pt"),g.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}functionze(e){returnparseFloat(e)}varTe={exports:{}},Ie={exports:{}},Be={exports:{}},Re=1e3,Fe=6e4,De=60*Fe,Le=24*De,Ue=365.25*Le,Me=function(t,r){r=r||{};varn=e(t);if("string"===n&&t.length>0)returnfunction(e){if(!((e=String(e)).length>100)){vart=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){varr=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":returnr*Ue;case"days":case"day":case"d":returnr*Le;case"hours":case"hour":case"hrs":case"hr":case"h":returnr*De;case"minutes":case"minute":case"mins":case"min":case"m":returnr*Fe;case"seconds":case"second":case"secs":case"sec":case"s":returnr*Re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":returnr;default:return}}}}(t);if("number"===n&&!1===isNaN(t))returnr.long?function(e){returnWe(e,Le,"day")||We(e,De,"hour")||We(e,Fe,"minute")||We(e,Re,"second")||e+" ms"}(t):function(e){returne>=Le?Math.round(e/Le)+"d":e>=De?Math.round(e/De)+"h":e>=Fe?Math.round(e/Fe)+"m":e>=Re?Math.round(e/Re)+"s":e+"ms"}(t);thrownewError("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};functionWe(e,t,r){if(!(e<t))returne<1.5*t?Math.floor(e/t)+""+r:Math.ceil(e/t)+""+r+"s"}(function(e,t){varr;functionn(e){functionn(){if(n.enabled){vare=n,a=+newDate,i=a-(r||a);e.diff=i,e.prev=r,e.curr=a,r=a;for(varo=newArray(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeofo[0]&&o.unshift("%O");varl=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)returnr;l++;vara=t.formatters[n];if("function"==typeofa){vari=o[l];r=a.call(e,i),o.splice(l,1),l--}returnr})),t.formatArgs.call(e,o);varu=n.log||t.log||console.log.bind(console);u.apply(e,o)}}returnn.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){varr,n=0;for(rine)n=(n<<5)-n+e.charCodeAt(r),n|=0;returnt.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeoft.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){returneinstanceofError?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(varr=("string"==typeofe?e:"").split(/[\s,]+/),n=r.length,a=0;a<n;a++)!r[a]||("-"===(e=r[a].replace(/\*/g,".*?"))[0]?t.skips.push(newRegExp("^"+e.substr(1)+"$")):t.names.push(newRegExp("^"+e+"$")))},t.enabled=function(e){varr,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Me,t.names=[],t.skips=[],t.formatters={}})(Be,Be.exports),function(t,r){functionn(){vart;try{t=r.storage.debug}catch(n){}return!t&&("undefined"==typeofprocess?"undefined":e(process))<"u"&&"env"inprocess&&(t={}.DEBUG),t}(r=t.exports=Be.exports).log=function(){return"object"==("undefined"==typeofconsole?"undefined":e(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){vart=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":"")+e[0]+(t?"%c ":"")+"+"+r.humanize(this.diff),t){varn="color: "+this.color;e.splice(1,0,n,"color: inherit");vara=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(t){}},r.load=n,r.useColors=function(){return!!(("undefined"==typeofwindow?"undefined":e(window))<"u"&&window.process&&"renderer"===window.process.type)||(("undefined"==typeofdocument?"undefined":e(document))<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||("undefined"==typeofwindow?"undefined":e(window))<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||("undefined"==typeofnavigator?"undefined":e(navigator))<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||("undefined"==typeofnavigator?"undefined":e(navigator))<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=("undefined"==typeofchrome?"undefined":e(chrome))<"u"&&e(chrome.storage)<"u"?chrome.storage.local:function(){try{returnwindow.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{returnJSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(n())}(Ie,Ie.exports),function(t){!function(e,r){t.exports?t.exports=r(Ie.exports("eventproxy")):this.EventProxy=r()}(0,(function(t){t=t||function(){};varr=Array.prototype.slice,n=Array.prototype.concat,a="__all__",i=functione(){if(!(thisinstanceofe))returnnewe;this._callbacks={},this._fired={}};i.prototype.addListener=function(e,r){returnt("Add listener for %s",e),this._callbacks[e]=this._callbacks[e]||[],this._callbacks[e].push(r),this},i.prototype.bind=i.prototype.addListener,i.prototype.on=i.prototype.addListener,i.prototype.subscribe=i.prototype.addListener,i.prototype.headbind=function(e,r){returnt("Add listener for %s",e),this._callbacks[e]=this._callbacks[e]||[],this._callbacks[e].unshift(r),this},i.prototype.removeListener=function(e,r){varn=this._callbacks;if(e)if(r){vara=n[e];if(a)for(vari=a.length,o=0;o<i;o++)r===a[o]&&(t("Remove a listener of %s",e),a[o]=null)}elset("Remove all listeners of %s",e),n[e]=[];elset("Remove all listeners"),this._callbacks={};returnthis},i.prototype.unbind=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){returnthis.unbind(e)},i.prototype.bindForAll=function(e){this.bind(a,e)},i.prototype.unbindForAll=function(e){this.unbind(a,e)},i.prototype.trigger=function(e,r){varn,i,o,s,l=2,u=this._callbacks;for(t("Emit event %s with data %j",e,r);l--;)if(n=u[l?e:a])for(o=0,s=n.length;o<s;o++)if(i=n[o]){for(varc=[],f=l?1:0,d=f;d<arguments.length;d++)c.push(arguments[d]);i.apply(this,c)}elsen.splice(o,1),o--,s--;returnthis},i.prototype.emit=i.prototype.trigger,i.prototype.fire=i.prototype.trigger,i.prototype.once=function(e,t){varr=this;returnthis.bind(e,(functionn(){t.apply(r,arguments),r.unbind(e,n)})),this};varo=("undefined"==typeofsetImmediate?"undefined":e(setImmediate))<"u"&&setImmediate||("undefined"==typeofprocess?"undefined":e(process))<"u"&&process.nextTick||function(e){setTimeout(e,0)};i.prototype.emitLater=function(){vare=this,t=arguments;o((function(){e.trigger.apply(e,t)}))},i.prototype.immediate=function(e,t,r){returnthis.bind(e,t),this.trigger(e,r),this},i.prototype.asap=i.prototype.immediate;vars=function(e,n,a,i){varo=this,s=arguments.length,l=0,u={};if(s<3)returnthis;varc=r.call(arguments,0,-2),f=arguments[s-2],d=arguments[s-1];if("function"!=typeoff)returnthis;t("Assign listener for events %j, once is %s",c,!!d);for(varh=function(e){o[d?"once":"bind"](e,(function(t){o._fired[e]=o._fired[e]||{},o._fired[e].data=t,u[e]||(u[e]=!0,l++)}))},p=c.length,b=0;b<p;b++)h(c[b]);varm=functione(r){if(!(l<p)&&u[r]){for(varn=[],a=0;a<p;a++)n.push(o._fired[c[a]].data);d&&o.unbindForAll(e),t("Events %j all emited with data %j",c,n),f.apply(null,n)}};o.bindForAll(m)};returni.prototype.all=function(e,t,r){vara=n.apply([],arguments);returna.push(!0),s.apply(this,a),this},i.prototype.assign=i.prototype.all,i.prototype.fail=function(e){vart=this;returnt.once("error",(function(){t.unbind(),e.apply(null,arguments)})),this},i.prototype.throw=function(){vare=this;e.emit.apply(e,["error"].concat(r.call(arguments)))},i.prototype.tail=function(){vare=n.apply([],arguments);returne.push(!1),s.apply(this,e),this},i.prototype.assignAll=i.prototype.tail,i.prototype.assignAlways=i.prototype.tail,i.prototype.after=function(e,r,n){if(0===r)returnn.call(null,[]),this;vara=this,i=[];this._after=this._after||{};varo=e+"_group";this._after[o]={index:0,results:[]},t("After emit %s times, event %s's listenner will execute",r,e);returna.bindForAll((functions(l,u){l===e&&(r--,i.push(u),r<1&&(t("Event %s was emit %s, and execute the listenner",e,r),a.unbindForAll(s),n.apply(null,[i]))),l===o&&(r--,a._after[o].results[u.index]=u.result,r<1&&(t("Event %s was emit %s, and execute the listenner",e,r),a.unbindForAll(s),n.call(null,a._after[o].results)))})),this},i.prototype.group=function(e,t){varn=this,a=e+"_group",i=n._after[a].index;returnn._after[a].index++,function(e,o){if(e)returnn.emit.apply(n,["error"].concat(r.call(arguments)));n.emit(a,{index:i,result:t?t.apply(null,r.call(arguments,1)):o})}},i.prototype.any=function(){vare=this,n=arguments[arguments.length-1],a=r.call(arguments,0,-1),i=a.join("_");t("Add listenner for Any of events %j emit",a),e.once(i,n);for(varo=function(r){e.bind(r,(function(n){t("One of events %j emited, execute the listenner"),e.trigger(i,{data:n,eventName:r})}))},s=0;s<a.length;s++)o(a[s])},i.prototype.not=function(e,r){t("Add listenner for not event %s",e),this.bindForAll((function(n,a){n!==e&&(t("listenner execute of event %s emit, but not event %s.",n,e),r(a))}))},i.prototype.done=function(e,t){varn=this;returnfunction(a,i){if(a)returnn.emit.apply(n,["error"].concat(r.call(arguments)));varo=r.call(arguments,1);return"string"==typeofe?t?n.emit(e,t.apply(null,o)):n.emit.apply(n,[e].concat(o)):arguments.length<=2?e(i):voide.apply(null,o)}},i.prototype.doneLater=function(e,t){varr=this.done(e,t);returnfunction(e,t){varn=arguments;o((function(){r.apply(null,n)}))}},i.create=function(){vare=newi,t=n.apply([],arguments);if(t.length){varr=t[t.length-1],a=t[t.length-2];"function"==typeofr&&"function"==typeofa&&(t.pop(),e.fail(r)),e.assign.apply(e,t)}returne},i.EventProxy=i,i}))}(Te);varHe=Te.exports,Ze=function(){functione(e){Object.defineProperty(this,"htmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:"docx"}),Object.defineProperty(this,"document",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"styleMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentPart",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableVerticalMerges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentVerticalMerge",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableCellPositions",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentCellPosition",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"endnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentFootnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"currentEndnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"usedHederFooterParts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"renderImageCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"defaultTabSize",{enumerable:!0,configurable:!0,writable:!0,value:void0}),Object.defineProperty(this,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"ep2",{enumerable:!0,configurable:!0,writable:!0,value:newHe}),Object.defineProperty(this,"currentTabs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"tabsTimeout",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"createElement",{enumerable:!0,configurable:!0,writable:!0,value:Ve})}returnObject.defineProperty(e.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){vara=this;returnvoid0===r&&(r=null),newPromise((function(o){vars;a.document=e,a.options=n,a.className=n.className,a.styleMap=null,a.renderImageCount=0,r=r||t,function(e){e.innerHTML=""}(t),e.numberingPart&&(a.prodessNumberings(e.numberingPart.domNumberings),e.numberingPart.domNumberings.forEach((function(e){!a.domNumberings[e.id]&&(a.domNumberings[e.id]={}),a.domNumberings[e.id][e.level]=i(i({},e),{count:1,pCount:1})}))),e.settingsPart&&(a.defaultTabSize=null===(s=e.settingsPart.settings)||void0===s?void0:s.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&a.renderFontTable(e.fontTablePart,r),a.countNum=100;varl=a.renderSections(e.documentPart.body);Xe(t,l),a.refreshTabStops(),a.ep2.after("renderImage",a.renderImageCount,(function(e){setTimeout((function(){o("ok")}),200)}))}))}}),Object.defineProperty(e.prototype,"renderTheme",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr,n,a={},i=null===(r=e.theme)||void0===r?void0:r.fontScheme;i&&(i.majorFont&&(a["--docx-majorHAnsi-font"]=i.majorFont.latinTypeface),i.minorFont&&(a["--docx-minorHAnsi-font"]=i.minorFont.latinTypeface));varo=null===(n=e.theme)||void0===n?void0:n.colorScheme;if(o)for(vars=0,l=Object.entries(o.colors);s<l.length;s++){varu=l[s],c=u[0],f=u[1];a["--docx-".concat(c,"-color")]="#".concat(f)}vard=this.styleToString(".".concat(this.className),a);t.appendChild(Ge(d))}}),Object.defineProperty(e.prototype,"renderFontTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(varr=this,n=function(e){for(varn=function(n){a.document.loadFont(n.id,n.key).then((function(a){vari={"font-family":e.name,src:"url(".concat(a,")")};("bold"==n.type||"boldItalic"==n.type)&&(i["font-weight"]="bold"),("italic"==n.type||"boldItalic"==n.type)&&(i["font-style"]="italic"),function(e,t){e.appendChild(document.createComment(t))}(t,"docxjs ".concat(e.name," font"));varo=r.styleToString("@font-face",i);t.appendChild(Ge(o)),r.refreshTabStops()}))},i=0,o=e.embedFontRefs;i<o.length;i++){n(o[i])}},a=this,i=0,o=e.fonts;i<o.length;i++){n(o[i])}}}),Object.defineProperty(e.prototype,"processStyleName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returne?"".concat(this.className,"_").concat(function(e){returnnull==e?void0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}(e)):this.className}}),Object.defineProperty(e.prototype,"processStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart=function(e,t){returne.reduce((function(e,r){returne[t(r)]=r,e}),{})}(e.filter((function(e){returnnull!=e.id})),(function(e){returne.id})),r=0,n=e.filter((function(e){returne.basedOn}));r<n.length;r++){vara=t[(d=n[r]).basedOn];if(a){d.paragraphProps=E(d.paragraphProps,a.paragraphProps),d.runProps=E(d.runProps,a.runProps);for(varo=function(e){vart=d.styles.find((function(t){returnt.target==e.target}));t?s.copyStyleProperties(e.values,t.values):d.styles.push(i(i({},e),{values:i({},e.values)}))},s=this,l=0,u=a.styles;l<u.length;l++){o(u[l])}}elsethis.options.debug&&console.warn("Can't find base style ".concat(d.basedOn))}for(varc=0,f=e;c<f.length;c++){vard;(d=f[c]).cssName=this.processStyleName(d.id)}returnt}}),Object.defineProperty(e.prototype,"prodessNumberings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart,r=0,n=e.filter((function(e){returne.pStyleName}));r<n.length;r++){vara=n[r],i=this.findStyle(a.pStyleName);null!==(t=null==i?void0:i.paragraphProps)&&void0!==t&&t.numbering&&(i.paragraphProps.numbering.level=a.level)}}}),Object.defineProperty(e.prototype,"processElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.children)for(vart=0,r=e.children;t<r.length;t++){varn=r[t];n.parent=e,n.type==K.Table?this.processTable(n):this.processElement(n)}}}),Object.defineProperty(e.prototype,"processTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart=0,r=e.children;t<r.length;t++)for(varn=0,a=r[t].children;n<a.length;n++){vari=a[n];i.cssStyle=this.copyStyleProperties(e.cellStyle,i.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(i)}}}),Object.defineProperty(e.prototype,"copyStyleProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){if(void0===r&&(r=null),!e)returnt;null==t&&(t={}),null==r&&(r=Object.getOwnPropertyNames(e));for(varn=0,a=r;n<a.length;n++){vari=a[n];e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}returnt}}),Object.defineProperty(e.prototype,"createSection",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){returnthis.createElement("div",{className:e})}}),Object.defineProperty(e.prototype,"renderSections",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=[];this.processElement(e);for(varr=this.splitBySection(e.children),n=null,a=0,i=r.length;a<i;a++){this.currentFootnoteIds=[];varo=r[a],s=o.sectProps||e.props,l=this.createSection(this.className+"-centent-body",s);this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l);varu=this.createElement("div");this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&a==i-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}returnt}}),Object.defineProperty(e.prototype,"renderHeaderFooter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,a){vari,o;if(e){vars=null!==(o=null!==(i=t.titlePage&&n?e.find((function(e){return"first"==e.type})):null)&&void0!==i?i:r%2==1?e.find((function(e){return"even"==e.type})):null)&&void0!==o?o:e.find((function(e){return"default"==e.type})),l=s&&this.document.findPartByRelId(s.id,this.document.documentPart);l&&(this.currentPart=l,this.usedHederFooterParts.includes(l.path)||(this.processElement(l.rootElement),this.usedHederFooterParts.push(l.path)),this.renderElements([l.rootElement],a),this.currentPart=null)}}}),Object.defineProperty(e.prototype,"isPageBreakElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returne.type==K.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}}),Object.defineProperty(e.prototype,"splitBySection",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart,r=this,n={sectProps:null,elements:[]},a=[n],o=0,s=e;o<s.length;o++){varl=s[o];if(l.type==K.Paragraph){varu=this.findStyle(l.styleName);null!==(t=null==u?void0:u.paragraphProps)&&void0!==t&&t.pageBreakBefore&&(n.sectProps=f,n={sectProps:null,elements:[]},a.push(n))}if(n.elements.push(l),l.type==K.Paragraph){varc=l,f=c.sectionProps,d=-1,h=-1;if(this.options.breakPages&&c.children&&(d=c.children.findIndex((function(e){vart,n;return-1!=(h=null!==(n=null===(t=e.children)||void0===t?void0:t.findIndex(r.isPageBreakElement.bind(r)))&&void0!==n?n:-1)}))),(f||-1!=d)&&(n.sectProps=f,n={sectProps:null,elements:[]},a.push(n)),-1!=d){varp=c.children[d],b=h<p.children.length-1;if(d<c.children.length-1||b){varm=l.children,g=i(i({},l),{children:m.slice(d)});if(l.children=m.slice(0,d),n.elements.push(g),b){varv=p.children,y=i(i({},p),{children:v.slice(0,h)});l.children.push(y),p.children=v.slice(h)}}}}}for(varw=null,_=a.length-1;_>=0;_--)null==a[_].sectProps?a[_].sectProps=w:w=a[_].sectProps;returna}}),Object.defineProperty(e.prototype,"renderWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnthis.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}}),Object.defineProperty(e.prototype,"renderDefaultStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(){vare=this.className;returnGe("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}}),Object.defineProperty(e.prototype,"renderNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){varn=e.map((function(e){returnt[e]})).filter((function(e){returne}));if(n.length>0){vara=this.createElement("ol",null,this.renderElements(n));r.appendChild(a)}}}),Object.defineProperty(e.prototype,"renderElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){switch(e.type){caseK.Paragraph:returnthis.renderParagraph(e);caseK.BookmarkStart:returnthis.renderBookmarkStart(e);caseK.BookmarkEnd:returnnull;caseK.Run:returnthis.renderRun(e);caseK.Table:returnthis.renderTable(e);caseK.Row:returnthis.renderTableRow(e);caseK.Cell:returnthis.renderTableCell(e);caseK.Hyperlink:returnthis.renderHyperlink(e);caseK.Drawing:returnthis.renderDrawing(e);caseK.Image:returnthis.renderImage(e);caseK.Text:returnthis.renderText(e);caseK.Tab:returnthis.renderTab(e);caseK.Symbol:returnthis.renderSymbol(e);caseK.Break:returnthis.renderBreak(e);caseK.Footer:returnthis.renderContainer(e,"footer");caseK.Header:returnthis.renderContainer(e,"header");caseK.Footnote:caseK.Endnote:returnthis.renderContainer(e,"li");caseK.FootnoteReference:returnthis.renderFootnoteReference(e);caseK.EndnoteReference:returnthis.renderEndnoteReference(e);caseK.NoBreakHyphen:returnthis.createElement("wbr")}returnnull}}),Object.defineProperty(e.prototype,"renderChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){returnthis.renderElements(e.children,t)}}),Object.defineProperty(e.prototype,"renderElements",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){varr=this;if(null==e)returnnull;varn=e.map((function(e){returnr.renderElement(e)})).filter((function(e){returnnull!=e}));returnt&&Xe(t,n),n}}),Object.defineProperty(e.prototype,"renderContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){returnthis.createElement(t,null,this.renderChildren(e))}}),Object.defineProperty(e.prototype,"renderParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart,r,n,a,i=this.createElement("p"),o=this.findStyle(e.styleName);null!==(t=e.tabs)&&void0!==t||(e.tabs=null===(r=null==o?void0:o.paragraphProps)||void0===r?void0:r.tabs),this.renderClass(e,i),this.renderChildren(e,i),this.renderStyleValues(e.cssStyle,i),this.renderCommonProperties(i.style,e);vars=null!==(n=e.numbering)&&void0!==n?n:null===(a=null==o?void0:o.paragraphProps)||void0===a?void0:a.numbering;if(s){if(this.domNumberings[s.id]&&this.domNumberings[s.id][s.level]){varl=this.domNumberings[s.id][s.level];if(i.firstChild&&i.firstChild.innerHTML)i.firstChild.innerHTML=this.numLevelTextToContent(l)+i.firstChild.innerHTML;else{varu=this.createElement("span");u.innerHTML=this.numLevelTextToContent(l),i.appendChild(u)}}i.classList.add(this.numberingClass(s.id,s.level))}returni}}),Object.defineProperty(e.prototype,"renderRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.renderCommonProperties(e,t)}}),Object.defineProperty(e.prototype,"renderCommonProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}}),Object.defineProperty(e.prototype,"renderHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("a");returnthis.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href&&(t.href=e.href),t}}),Object.defineProperty(e.prototype,"renderDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart,r=this.createElement("p");returnr.style.display="inline-block",e.children&&"image"!==(null===(t=e.children[0])||void0===t?void0:t.type)&&(r.style.position="relative",r.style.textIndent="0px"),this.renderChildren(e,r),this.renderStyleValues(e.cssStyle,r),r}}),Object.defineProperty(e.prototype,"renderImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart,r,n=this.createElement("img");!e.cssStyle["max-width"]&&(e.cssStyle["max-width"]="100%"),e.cssStyle.width&&(e.cssStyle.width=2*parseFloat(e.cssStyle.width)+"pt"),e.cssStyle.height&&(e.cssStyle.height=2*parseFloat(e.cssStyle.height)+"pt");vara="";(null===(r=null===(t=e.parent)||void0===t?void0:t.parent)||void0===r?void0:r.parent)&&e.parent.parent.parent.cssStyle&&(a=e.parent.parent.parent.cssStyle["text-align"]),"right"==a&&(e.cssStyle.float="right",e.cssStyle.height.replace(/pt$/,"px")),"center"==a&&(e.cssStyle.display="block",e.cssStyle["margin-left"]="auto",e.cssStyle["margin-right"]="auto"),this.renderStyleValues(e.cssStyle,n);vari=this;returni.renderImageCount++,n.setAttribute("data-tp-src",e.src),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then((function(t){i.ep2.emit("renderImage",{status:"ok",src:t,rId:e.src}),n.parentNode.style.width="100%",n.parentNode.style.height=null,n.parentNode.style.display="inline-block",n.src=t})),n}}),Object.defineProperty(e.prototype,"renderText",{enumerable:!1,configurable:!0,writable:!0,value:function(e){returnthis.htmlDocument.createTextNode(e.text)}}),Object.defineProperty(e.prototype,"renderBreak",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}}),Object.defineProperty(e.prototype,"renderSymbol",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("span");returnt.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}}),Object.defineProperty(e.prototype,"renderFootnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("sup");returnthis.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}}),Object.defineProperty(e.prototype,"renderEndnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("sup");returnthis.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}}),Object.defineProperty(e.prototype,"renderTab",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart,r=this.createElement("span");if(r.innerHTML=" ",this.options.experimental){r.className=this.tabStopClass();varn=null===(t=function(e,t){for(varr=e.parent;null!=r&&r.type!=t;)r=r.parent;returnr}(e,K.Paragraph))||void0===t?void0:t.tabs;this.currentTabs.push({stops:n,span:r})}returnr}}),Object.defineProperty(e.prototype,"renderBookmarkStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("span");returnt.id=e.name,t}}),Object.defineProperty(e.prototype,"renderRun",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.fieldRun)returnnull;vart=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){varr=this.createElement(e.verticalAlign);this.renderChildren(e,r),t.appendChild(r)}elsethis.renderChildren(e,t);returnt}}),Object.defineProperty(e.prototype,"renderTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("table");returnthis.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),!e.cssStyle["border-collapse"]&&(e.cssStyle["border-collapse"]="collapse"),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}}),Object.defineProperty(e.prototype,"renderTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(vart=this.createElement("colgroup"),r=0,n=e;r<n.length;r++){vara=n[r],i=this.createElement("col");a.width&&(i.style.width=a.width),t.appendChild(i)}returnt}}),Object.defineProperty(e.prototype,"renderTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("tr");returnthis.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}}),Object.defineProperty(e.prototype,"renderTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart=this.createElement("td");if(e.verticalMerge){varr=this.currentCellPosition.col;"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none")}returnthis.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col++,t}}),Object.defineProperty(e.prototype,"renderStyleValues",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e&&Object.keys(e).forEach((function(r){t.style[r]="string"==typeofe[r]?e[r].replace(/pt/g,"px"):e[r]}))}}),Object.defineProperty(e.prototype,"renderClass",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}}),Object.defineProperty(e.prototype,"findStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart;returne&&(null===(t=this.styleMap)||void0===t?void0:t[e])}}),Object.defineProperty(e.prototype,"numberingClass",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}}),Object.defineProperty(e.prototype,"tabStopClass",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"".concat(this.className,"-tab-stop")}}),Object.defineProperty(e.prototype,"styleToString",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void0===r&&(r=null);varn="".concat(e," {\r\n");for(varaint)n+="".concat(a,": ").concat(t[a],";\r\n");returnr&&(n+=r),n+"}\r\n"}}),Object.defineProperty(e.prototype,"styleInlineToString",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void0===t&&(t=null);varr='style="';for(varnin!e["font-style"]&&(e["font-style"]="normal"),e)r+="".concat(n,": ").concat(e[n],"; ");returnt&&(r+=t),r+'"'}}),Object.defineProperty(e.prototype,"numberingCounter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}}),Object.defineProperty(e.prototype,"levelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){vara,i=this,o=e.replace(/%\d*/g,(function(e){vart=parseInt(e.substring(1),10)-1;return'"counter('.concat(i.numberingCounter(r,t),", ").concat(n,')"')}));return'"'.concat(o).concat(null!==(a={tab:"\\9",space:"\\a0"}[numberingData.suff])&&void0!==a?a:"",'"')}}),Object.defineProperty(e.prototype,"numLevelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){vart,r=this,n={chineseCounting:["零","一","二","三","四","五","六","七","八","九","十"],decimalEnclosedCircleChinese:["⓪","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","㉑","㉒","㉓","㉔","㉕","㉖","㉗","㉘","㉙","㉚","㉛","㉜","㉝","㉞","㉟","㊱","㊲","㊳","㊴","㊵","㊶","㊷","㊸","㊹","㊺","㊻","㊼","㊽","㊾","㊿"],upperLetter:["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lowerLetter:["","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],test1:["","Ⓐ","Ⓑ","Ⓒ","Ⓓ","Ⓔ","Ⓕ","Ⓖ","Ⓗ","Ⓘ","Ⓙ","Ⓚ","Ⓛ","Ⓜ","Ⓝ","Ⓞ","Ⓟ","Ⓠ","Ⓡ","Ⓢ","Ⓣ","Ⓤ","Ⓥ","Ⓦ","Ⓧ","Ⓨ","Ⓩ"],test2:["","ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ","ⓖ","ⓗ","ⓘ","ⓙ","ⓚ","ⓛ","ⓜ","ⓝ","ⓞ","ⓟ","ⓠ","ⓡ","ⓢ","ⓣ","ⓤ","ⓥ","ⓦ","ⓧ","ⓨ","ⓩ"],test3:["","❶","❷","❸","❹","❺","❻","❼","❽","❾","❿","⓫","⓬","⓭","⓮","⓯","⓰","⓱","⓲","⓳","⓴"],test4:["","⓵","⓶","⓷","⓸","⓹","⓺","⓻","⓼","⓽","⓾"],test5:["","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉"],upperRoman:["","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],lowerRoman:["","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ"]},a=e.levelText.replace(/%\d*/g,(function(t){vara=parseInt(t.substring(1),10)-1,i=1;returna==e.level?(i=e.count,r.domNumberings[e.id][a].pCount=i,r.domNumberings[e.id][a+1]&&(r.domNumberings[e.id][a+1].count=1),e.count++):r.domNumberings[e.id]&&r.domNumberings[e.id][a]&&(0==(i=r.domNumberings[e.id][a].count-1)&&(i=1)),n[e.format]&&(i=n[e.format][i]),"".concat(i)}));return"bullet"==e.format&&(a="<em "+this.styleInlineToString(e.rStyle)+'">'+e.levelText+"</em>"),"".concat(a).concat(null!==(t={tab:" ",space:" "}[e.suff])&&void0!==t?t:"")}}),Object.defineProperty(e.prototype,"numFormatToCssValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return{none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"}[e]||e}}),Object.defineProperty(e.prototype,"refreshTabStops",{enumerable:!1,configurable:!0,writable:!0,value:function(){vare=this;!this.options.experimental||(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout((function(){for(vart=function(e){void0===e&&(e=document.body);vart=document.createElement("div");t.style.width="100pt",e.appendChild(t);varr=100/t.offsetWidth;returne.removeChild(t),r}(),r=0,n=e.currentTabs;r<n.length;r++){vara=n[r];Ne(a.span,a.stops,e.defaultTabSize,t)}}),500))}}),e}();functionVe(e,t,r){void0===t&&(t=void0),void0===r&&(r=void0);varn=Object.assign(document.createElement(e),t);returnr&&Xe(n,r),n}functionXe(e,t){t.forEach((function(t){returne.appendChild(t)}))}functionGe(e){returnVe("style",{innerHTML:e})}varKe={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!0,className:"tp-importword",inWrapper:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!1,renderFooters:!1,renderFootnotes:!1,renderEndnotes:!1,useBase64URL:!1};varYe=Promise,qe=tinymce.util.Tools.resolve("tinymce.Env"),Je=tinymce.util.Tools.resolve("tinymce.util.Delay"),$e=null,Qe=null;functionet(e,t){!function(e,t){varr=e[0],n=newFileReader;n.onload=function(e){varr=e.target.result;t(r)},n.readAsArrayBuffer(r)}(t,(function(t){(function(e,t){void0===t&&(t=null);varr=i(i({},Ke),t),n=window.document.createElement("div"),a=newZe(window.document);returnnewPromise((function(t){we.load(e,newOe(r),r).then((function(e){a.render(e,n,null,r).then((function(){t({html:n.innerHTML})}))}))}))})(t).then((function(t){!function(e,t){varr=t.html;if("function"!=typeof$e){e.insertContent(r.replace(/\s\s\s/gi," "));try{top.tinymce.activeEditor.notificationManager.close()}catch(n){try{e.notificationManager.close()}catch(a){}}e.notificationManager.open({text:"Import to Word succeeded",type:"success",timeout:2e3})}}(e,t)}))}))}vartt=function(e,t){(function(e){$e=e.getParam("tp_importword_filter",void0,"function"),Qe=e.getParam("tp_importword_handler",void0,"function")})(e),function(e){returnnewYe((function(t){varr=document.createElement("input");r.type="file",r.style.position="fixed",r.style.left="0",r.style.top="0",r.style.opacity="0.001",document.body.appendChild(r),r.addEventListener("change",(function(e){t(Array.prototype.slice.call(e.target.files))})),e.on("focusin remove",(functionn(a){vari=function(e){try{t(Array.prototype.slice.call(e.target?e.target.files:[]))}catch(n){}r.parentNode.removeChild(r)};qe.os.isAndroid()&&"remove"!==a.type?Je.setEditorTimeout(e,i,0):i(),e.off("focusin remove",n)})),r.click()}))}(e).then((function(t){if("function"==typeofQe){Qe(e,t,(function(t){et(e,t)}))}else{varr=t[0].name||"defule.docx";"docx"==r.substr(r.lastIndexOf(".")+1)?(e.notificationManager.open({text:"Converting...",type:"info",closeButton:!1}),et(e,t)):e.notificationManager.open({text:"Currently only supports docx file format, if it is doc format, please convert it to docx",type:"warning"})}}))},rt={name:"Importword",registryName:"tpImportword",title:"import word document",repo:"https://github.com/Five-great/tinymce-plugin/tp-importword",icon:'<svg t="1604625110140" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14669" width="24" height="24"><path d="M546.21184 76.9024a30.72 30.72 0 0 1 21.70368 8.9856l248.22784 247.75168a30.72 30.72 0 0 1 9.0112 21.74464v163.3792a10.24 10.24 0 0 1-10.24 10.24h-51.712a10.24 10.24 0 0 1-10.24-10.24v-109.568h-232.448a30.72 30.72 0 0 1-30.72-30.72v-229.888h-330.752v726.016h438.272a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-478.72a30.72 30.72 0 0 1-30.72-30.72V107.6224a30.72 30.72 0 0 1 30.72-30.72h427.61728z m197.84192 531.712l-171.40736 141.43488a30.72 30.72 0 0 0 0 47.39072l171.40736 141.43488a10.24 10.24 0 0 0 14.2848-1.2288l36.01408-41.95328a10.24 10.24 0 0 0-1.6128-14.848l-94.68416-71.26016h232.43264a10.24 10.24 0 0 0 10.24-10.24v-51.2a10.24 10.24 0 0 0-10.24-10.24h-232.448l94.69952-71.26016a10.24 10.24 0 0 0 1.6128-14.848l-36.01408-41.95328a10.24 10.24 0 0 0-14.2848-1.2288z m-323.8912-224.512a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z m141.312-207.36v155.648a5.12 5.12 0 0 0 5.12 5.12h155.648l-160.768-160.768zM276.48 542.72l37.888 171.008 45.056-171.008h59.904l43.52 173.568 38.4-173.568h50.688l-60.928 248.832H437.76l-49.664-185.856-49.664 185.856H284.16L225.28 542.72h51.2z m143.68768-292.2496a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z" ></path></svg>'};(function(e){tinymce.PluginManager.add(e.registryName,(function(t,r){returnfunction(e,t){tinymce.util.XHR.send({url:e.editorManager.PluginManager.urls[t.registryName]+"/langs/"+(e.settings.language||"en")+".json",async:!1,dataType:"json",success:function(t){try{e.tp$.I18n.add(e.settings.language,JSON.parse(t))}catch(r){}}})}(t,e),function(e,t){e.ui.registry.getAll().icons[t.registryName]||e.ui.registry.addIcon(t.registryName,t.icon),e.ui.registry.addButton(t.registryName,{icon:t.registryName,tooltip:t.title,onAction:function(){returntt(e)}}),e.ui.registry.addMenuItem(t.registryName,{icon:t.registryName,text:t.title,onAction:function(){returntt(e)}})}(t,e),function(e,t){e.addCommand("mce".concat(t.registryName.substring(0,1).toUpperCase()+t.registryName.substring(1)),(function(){tt(e)}))}(t,e),{getMetadata:function(){return{name:e.name,url:e.repo}}}}))})(rt)}()}}}))}();