oasis-editor 0.0.29 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,4 @@
9
9
 
10
10
  JSZip uses the library pako released under the MIT license :
11
11
  https://github.com/nodeca/pako/blob/main/LICENSE
12
- */n.exports=function e(t,n,i){function o(s,l){if(!n[s]){if(!t[s]){if(!l&&r)return r(s);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return o(t[s][1][e]||e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var a=r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,a,s,l,c,u=[],d=0,f=e.length,h=f,p="string"!==n.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],r=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),r=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,l=1<h?(15&r)<<2|i>>6:64,c=2<h?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,a,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=r),64!==l&&(f[u++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(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){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^o[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(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,a,u){var d,f,h=e.file,p=e.compression,m=u!==s.utf8encode,g=o.transformTo("string",u(h.name)),b=o.transformTo("string",s.utf8encode(h.name)),v=h.comment,y=o.transformTo("string",u(v)),w=o.transformTo("string",s.utf8encode(v)),_=b.length!==h.name.length,E=w.length!==v.length,N="",x="",S="",T=h.dir,k=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),m||!_&&!E||(I|=2048);var C,R,D,O=0,L=0;T&&(O|=16),"UNIX"===a?(L=798,O|=(C=h.unixPermissions,R=T,D=C,C||(D=R?16893:33204),(65535&D)<<16)):(L=20,O|=function(e){return 63&(e||0)}(h.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(x=n(1,1)+n(l(g),4)+b,N+="up"+n(x.length,2)+x),E&&(S=n(1,1)+n(l(y),4)+w,N+="uc"+n(S.length,2)+S);var M="";return M+="\n\0",M+=n(I,2),M+=p.magic,M+=n(d,2),M+=n(f,2),M+=n(A.crc32,4),M+=n(A.compressedSize,4),M+=n(A.uncompressedSize,4),M+=n(g.length,2),M+=n(N.length,2),{fileRecord:c.LOCAL_FILE_HEADER+M+g+N,dirRecord:c.CENTRAL_FILE_HEADER+n(L,2)+M+n(y.length,2)+"\0\0\0\0"+n(O,4)+n(i,4)+g+N+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){a.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=[]}o.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,o=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),r)this.push({data:(t=e,c.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,i,a,s,l,u,d=this.bytesWritten-e,f=(r=this.dirRecords.length,i=d,a=e,s=this.zipComment,l=this.encodeFileName,u=o.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(i,4)+n(a,4)+n(u.length,2)+u);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.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},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).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){var n=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("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){var r=new a(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(c(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,c=n.resolve(s.fileNameStr);r.file(c,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(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=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()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),s=o.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.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=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var b=null;b=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,b,s);this.files[e]=v}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.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){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(l){(t=new a("error")).error(l)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.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:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(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){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=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(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.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)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(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){return this._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(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.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;var e=this.isPaused=!1;return this.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){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function u(e,t){return new l.Promise(function(r,i){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);r(e)}catch(t){i(t)}o=[]}).resume()})}function d(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(s){this._worker=new o("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=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(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(a){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(o){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,l=new Array(2*a);for(t=r=0;t<a;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=s[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(o){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return f[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,s,c){return a.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(c?t=i.decode(t):o&&!0!==s&&(t=l(u=t,n.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.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);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.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(var e,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)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({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)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("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,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,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)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(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);var t=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())throw new Error("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;var e=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(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(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}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,n){(function(e){var t,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,t=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}r.exports=function(e){1!==c.push(e)||n||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(i){return o.reject(e,i)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var a=p(function(){t(i,n)});"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(c,a))},function(e){n||(n=!0,o.reject(c,e))})}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a,s=-1,l=new this(i);++s<r;)a=e[s],t.resolve(a).then(function(e){n||(n=!0,o.resolve(l,e))},function(e){n||(n=!0,o.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,r){var n={};(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){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=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=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[r]);this._dict_set=!0}}function p(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}h.prototype.push=function(e,t){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.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){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=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&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function f(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,f)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),c=h.next_out-l,d=o.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=f,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(c){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=a=0;a<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=a[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&e[r++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],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){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,m=2,g=8,b=9,v=286,y=30,w=19,_=2*v+1,E=15,N=3,x=258,S=x+N+1,T=42,k=113,A=1,I=2,C=3,R=4;function D(e,t){return e.msg=l[t],t}function O(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function M(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.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))}function P(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,M(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+x,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===h&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<f);if(n=x-(f-o),o=f-x,a<n){if(e.match_start=t,s<=(a=n))break;h=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function U(e){var t,r,n,o,l,c,u,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(i.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;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(f=o)<(h=c.avail_in)&&(h=f),r=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=N)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+N-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<N)););}while(e.lookahead<S&&0!==e.strm.avail_in)}function H(e,t){for(var r,n;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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=z(e,r)),e.match_length>=N)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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++}else e.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;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}function q(e,t){for(var r,n,i;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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=N-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-S&&(e.match_length=z(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===N&&4096<e.strstart-e.match_start)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-N,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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=N-1,e.strstart++,n&&(P(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&P(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}function j(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(E+1),this.heap=new i.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:k,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),d):D(e,f)}function W(e){var t,r=V(e);return r===d&&((t=e.state).window_size=2*t.w_size,L(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=N-1,t.match_available=0,t.ins_h=0),r}function Z(e,t,r,n,o,a){if(!e)return f;var s=1;if(t===h&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||b<o||r!==g||n<8||15<n||t<0||9<t||a<0||p<a)return D(e,f);8===n&&(n=9);var l=new G;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=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,W(e)}n=[new j(0,0,0,0,function(e,t){var r=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===c)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,P(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-S&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):(e.strstart>e.block_start&&(P(e,!1),e.strm.avail_out),A)}),new j(4,4,8,4,H),new j(4,5,16,8,H),new j(4,6,32,32,H),new j(4,4,16,16,q),new j(8,16,32,32,q),new j(8,16,128,128,q),new j(8,32,128,256,q),new j(32,128,258,1024,q),new j(32,258,258,4096,q)],r.deflateInit=function(e,t){return Z(e,t,g,15,8,0)},r.deflateInit2=Z,r.deflateReset=W,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},r.deflate=function(e,t){var r,i,a,l;if(!e||!e.state||5<t||t<0)return e?D(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return D(e,0===e.avail_out?-5:f);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,B(i,31),B(i,139),B(i,8),i.gzhead?(B(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),B(i,255&i.gzhead.time),B(i,i.gzhead.time>>8&255),B(i,i.gzhead.time>>16&255),B(i,i.gzhead.time>>24&255),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(B(i,255&i.gzhead.extra.length),B(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,3),i.status=k);else{var h=g+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=k,F(i,h),0!==i.strstart&&(F(i,e.adler>>>16),F(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending!==i.pending_buf_size));)B(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,B(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,B(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&M(e),i.pending+2<=i.pending_buf_size&&(B(i,255&e.adler),B(i,e.adler>>8&255),e.adler=0,i.status=k)):i.status=k),0!==i.pending){if(M(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&O(t)<=O(r)&&t!==u)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return A;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=x){if(U(e),e.lookahead<=x&&t===c)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+x;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=x-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(r=o._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}(i,t):n[i.level].func(i,t);if(p!==C&&p!==R||(i.status=666),p===A||p===C)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===I&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),M(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(B(i,255&e.adler),B(i,e.adler>>8&255),B(i,e.adler>>16&255),B(i,e.adler>>24&255),B(i,255&e.total_in),B(i,e.total_in>>8&255),B(i,e.total_in>>16&255),B(i,e.total_in>>24&255)):(F(i,e.adler>>>16),F(i,65535&e.adler)),M(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?D(e,f):(e.state=null,t===k?D(e,-3):d):f},r.deflateSetDictionary=function(e,t){var r,n,o,s,l,c,u,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==T||r.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,U(r);r.lookahead>=N;){for(n=r.strstart,o=r.lookahead-(N-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+N-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=N-1,U(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=N-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=s,d},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){var r,n,i,o,a,s,l,c,u,d,f,h,p,m,g,b,v,y,w,_,E,N,x,S,T;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(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=m[h&b];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))T[o++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=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=g[h&v];r:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(E=65535&y,p<(w&=15)&&(h+=S[n++]<<p,(p+=8)<w&&(h+=S[n++]<<p,p+=8)),l<(E+=h&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,(w=o-a)<E){if(u<(w=E-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=f,(N=0)===d){if(N+=c-w,w<_){for(_-=w;T[o++]=f[N++],--w;);N=o-E,x=T}}else if(d<w){if(N+=c+d-w,(w-=d)<_){for(_-=w;T[o++]=f[N++],--w;);if(N=0,d<_){for(_-=w=d;T[o++]=f[N++],--w;);N=o-E,x=T}}}else if(N+=d-w,w<_){for(_-=w;T[o++]=f[N++],--w;);N=o-E,x=T}for(;2<_;)T[o++]=x[N++],T[o++]=x[N++],T[o++]=x[N++],_-=3;_&&(T[o++]=x[N++],1<_&&(T[o++]=x[N++]))}else{for(N=o-E;T[o++]=T[N++],T[o++]=T[N++],T[o++]=T[N++],2<(_-=3););_&&(T[o++]=T[N++],1<_&&(T[o++]=T[N++]))}break}}break}}while(n<i&&o<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=h,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,h=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&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=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,v(e))):d}function w(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=y(e,t))!==u&&(e.state=null),r):d}var _,E,N=!0;function x(e){if(N){var t;for(_=new n.Buf32(512),E=new n.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(c,e.lens,0,32,E,0,e.work,{bits:5}),N=!1}e.lencode=_,e.lenbits=9,e.distcode=E,e.distbits=5}function S(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=v,r.inflateReset2=y,r.inflateResetKeep=b,r.inflateInit=function(e){return w(e,15)},r.inflateInit2=w,r.inflate=function(e,t){var r,h,p,g,b,v,y,w,_,E,N,T,k,A,I,C,R,D,O,L,M,P,B,F,z=0,U=new n.Buf8(4),H=[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)return d;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,v=e.avail_in,w=r.hold,_=r.bits,E=v,N=y,P=u;e:for(;;)switch(r.mode){case f:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(2&r.wrap&&35615===w){U[r.check=0]=255&w,U[1]=w>>>8&255,r.check=o(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,M=8+(15&(w>>>=4)),0===r.wbits)r.wbits=M;else if(M>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<M,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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=o(r.check,U,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(v<(T=r.length)&&(T=v),T&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,g,T,M)),512&r.flags&&(r.check=o(r.check,h,T,g)),v-=T,g+=T,r.length-=T),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break e;for(T=0;M=h[g+T++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M)),M&&T<v;);if(512&r.flags&&(r.check=o(r.check,h,T,g)),v-=T,g+=T,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===v)break e;for(T=0;M=h[g+T++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M)),M&&T<v;);if(512&r.flags&&(r.check=o(r.check,h,T,g)),v-=T,g+=T,M)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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;case 10:for(;_<32;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}e.adler=r.check=m(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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)break e;case 15:r.mode=16;case 16:if(T=r.length){if(v<T&&(T=v),y<T&&(T=y),0===T)break e;n.arraySet(p,h,g,T,b),v-=T,g+=T,y-=T,b+=T,r.length-=T;break}r.mode=12;break;case 17:for(;_<14;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}r.lens[H[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},P=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,P){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;C=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(R<16)w>>>=I,_-=I,r.lens[r.have++]=R;else{if(16===R){for(F=I+2;_<F;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(w>>>=I,_-=I,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}M=r.lens[r.have-1],T=3+(3&w),w>>>=2,_-=2}else if(17===R){for(F=I+3;_<F;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}_-=I,M=0,T=3+(7&(w>>>=I)),w>>>=3,_-=3}else{for(F=I+7;_<F;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}_-=I,M=0,T=11+(127&(w>>>=I)),w>>>=7,_-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;T--;)r.lens[r.have++]=M}}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,B={bits:r.lenbits},P=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,P){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},P=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,P){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,a(e,N),b=e.next_out,p=e.output,y=e.avail_out,g=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;C=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(C&&!(240&C)){for(D=I,O=C,L=R;C=(z=r.lencode[L+((w&(1<<D+O)-1)>>D)])>>>16&255,R=65535&z,!(D+(I=z>>>24)<=_);){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}w>>>=D,_-=D,r.back+=D}if(w>>>=I,_-=I,r.back+=I,r.length=R,0===C){r.mode=26;break}if(32&C){r.back=-1,r.mode=12;break}if(64&C){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&C,r.mode=22;case 22:if(r.extra){for(F=r.extra;_<F;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;C=(z=r.distcode[w&(1<<r.distbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(!(240&C)){for(D=I,O=C,L=R;C=(z=r.distcode[L+((w&(1<<D+O)-1)>>D)])>>>16&255,R=65535&z,!(D+(I=z>>>24)<=_);){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}w>>>=D,_-=D,r.back+=D}if(w>>>=I,_-=I,r.back+=I,64&C){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&C,r.mode=24;case 24:if(r.extra){for(F=r.extra;_<F;){if(0===v)break e;v--,w+=h[g++]<<_,_+=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;case 25:if(0===y)break e;if(T=N-y,r.offset>T){if((T=r.offset-T)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}k=T>r.wnext?(T-=r.wnext,r.wsize-T):r.wnext-T,T>r.length&&(T=r.length),A=r.window}else A=p,k=b-r.offset,T=r.length;for(y<T&&(T=y),y-=T,r.length-=T;p[b++]=A[k++],--T;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;p[b++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===v)break e;v--,w|=h[g++]<<_,_+=8}if(N-=y,e.total_out+=N,r.total+=N,N&&(e.adler=r.check=r.flags?o(r.check,p,N,b-N):i(r.check,p,N,b-N)),N=y,(r.flags?w:m(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===v)break e;v--,w+=h[g++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:P=1;break e;case 30:P=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,(r.wsize||N!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,N-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,N-=e.avail_out,e.total_in+=E,e.total_out+=N,r.total+=N,r.wrap&&N&&(e.adler=r.check=r.flags?o(r.check,p,N,e.next_out-N):i(r.check,p,N,e.next_out-N)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==E&&0===N||4===t)&&P===u&&(P=-5),P)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],a=[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,c,u,d,f){var h,p,m,g,b,v,y,w,_,E=f.bits,N=0,x=0,S=0,T=0,k=0,A=0,I=0,C=0,R=0,D=0,O=null,L=0,M=new n.Buf16(16),P=new n.Buf16(16),B=null,F=0;for(N=0;N<=15;N++)M[N]=0;for(x=0;x<l;x++)M[t[r+x]]++;for(k=E,T=15;1<=T&&0===M[T];T--);if(T<k&&(k=T),0===T)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(S=1;S<T&&0===M[S];S++);for(k<S&&(k=S),N=C=1;N<=15;N++)if(C<<=1,(C-=M[N])<0)return-1;if(0<C&&(0===e||1!==T))return-1;for(P[1]=0,N=1;N<15;N++)P[N+1]=P[N]+M[N];for(x=0;x<l;x++)0!==t[r+x]&&(d[P[t[r+x]]++]=x);if(v=0===e?(O=B=d,19):1===e?(O=i,L-=257,B=o,F-=257,256):(O=a,B=s,-1),N=S,b=u,I=x=D=0,m=-1,g=(R=1<<(A=k))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(y=N-I,_=d[x]<v?(w=0,d[x]):d[x]>v?(w=B[F+d[x]],O[L+d[x]]):(w=96,0),h=1<<N-I,S=p=1<<A;c[b+(D>>I)+(p-=h)]=y<<24|w<<16|_,0!==p;);for(h=1<<N-1;D&h;)h>>=1;if(0!==h?(D&=h-1,D+=h):D=0,x++,0==--M[N]){if(N===T)break;N=t[r+d[x]]}if(k<N&&(D&g)!==m){for(0===I&&(I=k),b+=S,C=1<<(A=N-I);A+I<T&&!((C-=M[A+I])<=0);)A++,C<<=1;if(R+=1<<A,1===e&&852<R||2===e&&592<R)return 1;c[m=D&g]=k<<24|A<<16|b-u}}return 0!==D&&(c[b+D]=N-I<<24|64<<16),f.bits=k,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){var n=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,f=19,h=2*u+1,p=15,m=16,g=7,b=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],E=[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],N=[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=new Array(2*(u+2));a(S);var T=new Array(2*d);a(T);var k=new Array(512);a(k);var A=new Array(256);a(A);var I=new Array(l);a(I);var C,R,D,O=new Array(d);function L(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function M(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?k[e]:k[256+(e>>>7)]}function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function z(e,t,r){F(e,r[2*t],r[2*t+1])}function U(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function H(e,t,r){var n,i,o=new Array(p+1),a=0;for(n=1;n<=p;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=U(o[s]++,s))}}function q(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?B(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function V(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&G(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!G(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function W(e,t,r){var n,i,o,a,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],i=e.pending_buf[e.l_buf+s],s++,0===n?z(e,i,t):(z(e,(o=A[i])+c+1,t),0!==(a=_[o])&&F(e,i-=I[o],a),z(e,o=P(--n),r),0!==(a=E[o])&&F(e,n-=O[o],a)),s<e.last_lit;);z(e,b,t)}function Z(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=h,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)V(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,V(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<h;r++)g<(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(o=g,b++),l[2*n+1]=o,c<n||(e.bl_count[o]++,a=0,m<=n&&(a=f[n-m]),s=l[2*n],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*n+1]+a)));if(0!==b){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)c<(i=e.heap[--r])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),H(o,c,e.bl_count)}function Y(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function X(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<l&&i===a)){if(s<c)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(z(e,i,e.bl_tree),s--),z(e,v,e.bl_tree),F(e,s-3,2)):s<=10?(z(e,y,e.bl_tree),F(e,s-3,3)):(z(e,w,e.bl_tree),F(e,s-11,7));o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}a(O);var $=!1;function Q(e,t,r,i){var o,a,l;F(e,(s<<1)+(i?1:0),3),a=t,l=r,j(o=e),B(o,l),B(o,~l),n.arraySet(o.pending_buf,o.window,a,l,o.pending),o.pending+=l}r._tr_init=function(e){$||(function(){var e,t,r,n,i,o=new Array(p+1);for(n=r=0;n<l-1;n++)for(I[n]=r,e=0;e<1<<_[n];e++)A[r++]=n;for(A[r-1]=n,n=i=0;n<16;n++)for(O[n]=i,e=0;e<1<<E[n];e++)k[i++]=n;for(i>>=7;n<d;n++)for(O[n]=i<<7,e=0;e<1<<E[n]-7;e++)k[256+i++]=n;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)S[2*e+1]=8,e++,o[8]++;for(;e<=255;)S[2*e+1]=9,e++,o[9]++;for(;e<=279;)S[2*e+1]=7,e++,o[7]++;for(;e<=287;)S[2*e+1]=8,e++,o[8]++;for(H(S,u+1,o),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=U(e,5);C=new L(S,_,c+1,u,p),R=new L(T,E,0,d,p),D=new L(new Array(0),N,0,f,g)}(),$=!0),e.l_desc=new M(e.dyn_ltree,C),e.d_desc=new M(e.dyn_dtree,R),e.bl_desc=new M(e.bl_tree,D),e.bi_buf=0,e.bi_valid=0,q(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,n){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),Z(e,e.l_desc),Z(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),Z(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*x[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==t?Q(e,t,r,n):4===e.strategy||s===a?(F(e,2+(n?1:0),3),W(e,S,T)):(F(e,4+(n?1:0),3),function(e,t,r,n){var i;for(F(e,t-257,5),F(e,r-1,5),F(e,n-4,4),i=0;i<n;i++)F(e,e.bl_tree[2*x[i]+1],3);X(e,e.dyn_ltree,t-1),X(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),W(e,e.dyn_ltree,e.dyn_dtree)),q(e),n&&j(e)},r._tr_tally=function(e,t,r){return e.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*(A[r]+c+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;F(e,2,3),z(e,b,S),16===(t=e).bi_valid?(B(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(t,r,n){(function(e){!function(e,t){if(!e.setImmediate){var r,n,i,o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return s[a]=i,r(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var r=s[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10);var i=t(n.exports),o={};function a(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var l=a({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var c=a({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var u=a({script:!1,style:!1,textarea:!0,title:!0});function d(e){return e===f.HTML}var f=a({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),h=Object.keys(f).map(function(e){return f[e]});var p=a({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});o.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)s(t,r)&&(e[r]=t[r]);return e},o.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(s(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i}},o.freeze=a,o.HTML_BOOLEAN_ATTRIBUTES=l,o.HTML_RAW_TEXT_ELEMENTS=u,o.HTML_VOID_ELEMENTS=c,o.hasDefaultHTMLNamespace=function(e){return d(e)||e===f.XML_XHTML_APPLICATION},o.hasOwn=s,o.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},o.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},o.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},o.isHTMLMimeType=d,o.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},o.isValidMimeType=function(e){return h.indexOf(e)>-1},o.MIME_TYPE=f,o.NAMESPACE=p;var m={};function g(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var b=o.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),v=Object.keys(b);function y(e){return"number"==typeof e&&e>=1&&e<=25}function w(e,t){var r;y(e)?(this.name=v[e],this.message=t||""):(this.message=e,this.name="string"==typeof(r=t)&&r.substring(r.length-b.Error.length)===b.Error?t:b.Error),Error.captureStackTrace&&Error.captureStackTrace(this,w)}g(w,!0),Object.defineProperties(w.prototype,{code:{enumerable:!0,get:function(){var e=v.indexOf(this.name);return y(e)?e:0}}});for(var _={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},E=Object.entries(_),N=0;N<E.length;N++){w[E[N][0]]=E[N][1]}function x(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,x)}g(x),m.DOMException=w,m.DOMExceptionName=b,m.ExceptionCode=_,m.ParseError=x;var S={},T={};function k(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var A=k();function I(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function C(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),A?"u":"")}function R(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),A?"mu":"m")}function D(e){if(0===arguments.length)throw new Error("no parameters provided");return R.apply(D,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var O=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;A&&(O=R("[",I(O),"\\u{10000}-\\u{10FFFF}","]"));var L=new RegExp("[^"+I(O)+"]",A?"u":""),M=/[\x20\x09\x0D\x0A]/,P=I(M),B=R(M,"+"),F=R(M,"*"),z=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;A&&(z=R("[",I(z),"\\u{10000}-\\u{10FFFF}","]"));var U=R("[",I(z),I(/[-.0-9\xB7]/),I(/[\u0300-\u036F\u203F-\u2040]/),"]"),H=R(z,U,"*"),q=R(U,"+"),j=R("&",H,";"),G=D(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),V=D(j,"|",G),W=R("%",H,";"),Z=D(R('"',D(/[^%&"]/,"|",W,"|",V),"*",'"'),"|",R("'",D(/[^%&']/,"|",W,"|",V),"*","'")),Y=D('"',D(/[^<&"]/,"|",V),"*",'"',"|","'",D(/[^<&']/,"|",V),"*","'"),X=R(C(z,":"),C(U,":"),"*"),$=R(X,D(":",X),"?"),Q=R("^",$,"$"),K=R("(",$,")"),J=D(/"[^"]*"|'[^']*'/),ee=R(/^<\?/,"(",H,")",D(B,"(",O,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,re=D('"',te,'*"',"|","'",C(te,"'"),"*'"),ne="\x3c!--",ie=R(ne,D(C(O,"-"),"|",R("-",C(O,"-"))),"*","--\x3e"),oe="#PCDATA",ae=D(R(/\(/,F,oe,D(F,/\|/,F,$),"*",F,/\)\*/),"|",R(/\(/,F,oe,F,/\)/)),se=D("EMPTY","|","ANY","|",ae,"|",R(/\([^>]+\)/,/[?*+]?/)),le=R("<!ELEMENT",B,D($,"|",W),B,D(se,"|",W),F,">"),ce=R("NOTATION",B,/\(/,F,H,D(F,/\|/,F,H),"*",F,/\)/),ue=R(/\(/,F,q,D(F,/\|/,F,q),"*",F,/\)/),de=D(ce,"|",ue),fe=D(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),he=D(/#REQUIRED|#IMPLIED/,"|",D(D("#FIXED",B),"?",Y)),pe=R("<!ATTLIST",B,H,D(B,H,B,fe,B,he),"*",F,">"),me="about:legacy-compat",ge=D('"'+me+'"',"|","'"+me+"'"),be="SYSTEM",ve="PUBLIC",ye=D(D(be,B,J),"|",D(ve,B,re,B,J)),we=R("^",D(D(be,B,"(?<SystemLiteralOnly>",J,")"),"|",D(ve,B,"(?<PubidLiteral>",re,")",B,"(?<SystemLiteral>",J,")"))),_e=R("^",re,"$"),Ee=R("^",J,"$"),Ne=D(B,"NDATA",B,H),xe="<!ENTITY",Se=R(xe,B,H,B,D(Z,"|",D(ye,Ne,"?")),F,">"),Te=D(Z,"|",ye),ke=D(Se,"|",R(xe,B,"%",B,H,B,Te,F,">")),Ae=R(ve,B,re),Ie=R("<!NOTATION",B,H,B,D(ye,"|",Ae),F,">"),Ce=R(F,"=",F),Re=/1[.]\d+/,De=R(B,"version",Ce,D("'",Re,"'","|",'"',Re,'"')),Oe=/[A-Za-z][-A-Za-z0-9._]*/,Le=R(/^<\?xml/,De,D(B,"encoding",Ce,D('"',Oe,'"',"|","'",Oe,"'")),"?",D(B,"standalone",Ce,D("'",D("yes","|","no"),"'","|",'"',D("yes","|","no"),'"')),"?",F,/\?>/),Me=R(O,"*?",/\]\]>/),Pe=R(/<!\[CDATA\[/,Me);T.chars=I,T.chars_without=C,T.detectUnicodeSupport=k,T.reg=R,T.regg=D,T.ABOUT_LEGACY_COMPAT=me,T.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,T.AttlistDecl=pe,T.CDATA_START="<![CDATA[",T.CDATA_END="]]>",T.CDSect=Pe,T.Char=O,T.Comment=ie,T.COMMENT_START=ne,T.COMMENT_END="--\x3e",T.DOCTYPE_DECL_START="<!DOCTYPE",T.elementdecl=le,T.EntityDecl=ke,T.EntityValue=Z,T.ExternalID=ye,T.ExternalID_match=we,T.Name=H,T.NotationDecl=Ie,T.Reference=V,T.PEReference=W,T.PI=ee,T.PUBLIC=ve,T.PubidLiteral=re,T.PubidLiteral_match=_e,T.QName=$,T.QName_exact=Q,T.QName_group=K,T.S=B,T.SChar_s=P,T.S_OPT=F,T.SYSTEM=be,T.SystemLiteral=J,T.SystemLiteral_match=Ee,T.InvalidChar=L,T.UNICODE_REPLACEMENT_CHARACTER="�",T.UNICODE_SUPPORT=A,T.XMLDecl=Le;var Be=o,Fe=Be.find,ze=Be.hasDefaultHTMLNamespace,Ue=Be.hasOwn,He=Be.isHTMLMimeType,qe=Be.isHTMLRawTextElement,je=Be.isHTMLVoidElement,Ge=Be.MIME_TYPE,Ve=Be.NAMESPACE,We=Symbol(),Ze=m,Ye=Ze.DOMException,Xe=Ze.DOMExceptionName,$e=T;function Qe(e){if(e!==We)throw new TypeError("Illegal constructor")}function Ke(e){return""!==e}function Je(e,t){return Ue(e,t)||(e[t]=!0),e}function et(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Ke):[]}(e);return Object.keys(t.reduce(Je,{}))}function tt(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function rt(e,t){tt(t),e=e||null;var r=null,n=t;if(t.indexOf(":")>=0){var i=t.split(":");r=i[0],n=i[1]}if(null!==r&&null===e)throw new Ye(Ye.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===r&&e!==Be.NAMESPACE.XML)throw new Ye(Ye.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===r||"xmlns"===t)&&e!==Be.NAMESPACE.XMLNS)throw new Ye(Ye.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Be.NAMESPACE.XMLNS&&"xmlns"!==r&&"xmlns"!==t)throw new Ye(Ye.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,r,n]}function nt(e,t){for(var r in e)Ue(e,r)&&(t[r]=e[r])}function it(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,nt(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var ot={},at=ot.ELEMENT_NODE=1,st=ot.ATTRIBUTE_NODE=2,lt=ot.TEXT_NODE=3,ct=ot.CDATA_SECTION_NODE=4,ut=ot.ENTITY_REFERENCE_NODE=5,dt=ot.ENTITY_NODE=6,ft=ot.PROCESSING_INSTRUCTION_NODE=7,ht=ot.COMMENT_NODE=8,pt=ot.DOCUMENT_NODE=9,mt=ot.DOCUMENT_TYPE_NODE=10,gt=ot.DOCUMENT_FRAGMENT_NODE=11,bt=ot.NOTATION_NODE=12,vt=Be.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function yt(e,t){if(t.length<e.length)return yt(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function wt(e){return e.guid||(e.guid=Math.random()),e.guid}function _t(){}function Et(e,t){this._node=e,this._refresh=t,Nt(this)}function Nt(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ur(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Ue(e,n)&&delete e[n];nt(r,e),e._inc=t}}function xt(){}function St(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function Tt(e,t,r,n){if(n?t[St(t,n)]=r:(t[t.length]=r,t.length++),e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&Lt(i,e,n),function(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===Ve.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(i,e,r))}}function kt(e,t,r){var n=St(t,r);if(n>=0){for(var i=t.length-1;n<=i;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&Lt(o,e,r),r.ownerElement=null}}}function At(){}function It(e){Qe(e)}function Ct(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Rt(e,t){Dt(e,null,{enter:function(e){return!t(e)||Dt.STOP}})}function Dt(e,t,r){for(var n=[{node:e,context:t,phase:Dt.ENTER}];n.length>0;){var i=n.pop();if(i.phase===Dt.ENTER){var o=r.enter(i.node,i.context);if(o===Dt.STOP)return Dt.STOP;if(n.push({node:i.node,context:o,phase:Dt.EXIT}),null==o)continue;for(var a=i.node.lastChild;a;)n.push({node:a,context:o,phase:Dt.ENTER}),a=a.previousSibling}else r.exit&&r.exit(i.node,i.context)}}function Ot(e,t){Qe(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||Ge.XML_APPLICATION,this.type=He(this.contentType)?"html":"xml"}function Lt(e,t,r,n){e&&e._inc++,r.namespaceURI===Ve.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Mt(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function Pt(e,t){if(e!==t.parentNode)throw new Ye(Ye.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,Mt(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Bt(e){return e&&e.nodeType===It.DOCUMENT_TYPE_NODE}function Ft(e){return e&&e.nodeType===It.ELEMENT_NODE}function zt(e){return e&&e.nodeType===It.TEXT_NODE}function Ut(e,t){var r=e.childNodes||[];if(Fe(r,Ft)||Bt(t))return!1;var n=Fe(r,Bt);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Ht(e,t){var r=e.childNodes||[];if(Fe(r,function(e){return Ft(e)&&e!==t}))return!1;var n=Fe(r,Bt);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function qt(e,t,r){if(!function(e){return e&&(e.nodeType===It.DOCUMENT_NODE||e.nodeType===It.DOCUMENT_FRAGMENT_NODE||e.nodeType===It.ELEMENT_NODE)}(e))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new Ye(Ye.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===It.CDATA_SECTION_NODE||e.nodeType===It.COMMENT_NODE||e.nodeType===It.DOCUMENT_FRAGMENT_NODE||e.nodeType===It.DOCUMENT_TYPE_NODE||e.nodeType===It.ELEMENT_NODE||e.nodeType===It.PROCESSING_INSTRUCTION_NODE||e.nodeType===It.TEXT_NODE)}(t)||Bt(t)&&e.nodeType!==It.DOCUMENT_NODE)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===It.DOCUMENT_FRAGMENT_NODE){var o=i.filter(Ft);if(o.length>1||Fe(i,zt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===o.length&&!Ut(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ut(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Bt(t)){if(Fe(n,Bt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(n,Ft);if(r&&n.indexOf(a)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!r&&a)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Gt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===It.DOCUMENT_FRAGMENT_NODE){var o=i.filter(Ft);if(o.length>1||Fe(i,zt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===o.length&&!Ht(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ht(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Bt(t)){if(Fe(n,function(e){return Bt(e)&&e!==r}))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(n,Ft);if(r&&n.indexOf(a)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Vt(e,t,r,n){qt(e,t,r),e.nodeType===It.DOCUMENT_NODE&&(n||jt)(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===gt){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,null==r?e.lastChild=a:r.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return Mt(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Wt(e){Qe(e),this._nsMap=Object.create(null)}function Zt(e){Qe(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Yt(e){Qe(e)}function Xt(e){Qe(e)}function $t(e){Qe(e)}function Qt(e){Qe(e)}function Kt(e){Qe(e)}function Jt(e){Qe(e)}function er(e){Qe(e)}function tr(e){Qe(e)}function rr(e){Qe(e)}function nr(e){Qe(e)}function ir(){}function or(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var r=[],n=this.nodeType===pt&&this.documentElement||this,i=n.prefix,o=n.namespaceURI;if(o&&null==i&&null==(i=n.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return lr(this,r,a,t),r.join("")}function ar(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===n&&i===Ve.XML||i===Ve.XMLNS)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix===n)return a.namespace!==i}return!0}function sr(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,Ct),'"')}function lr(e,t,r,n){r||(r=[]);var i=n.nodeFilter,o=n.requireWellFormed,a=n.splitCDATASections,s="html"===(e.nodeType===pt?e:e.ownerDocument).type;Dt(e,{ns:r},{enter:function(e,r){var l=r.ns;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case at:var c=e.attributes,u=c.length,d=e.tagName,f=d;if(!s&&!e.prefix&&e.namespaceURI){for(var h,p=0;p<c.length;p++)if("xmlns"===c.item(p).name){h=c.item(p).value;break}if(!h)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){h=g.namespace;break}}if(h!==e.namespaceURI)for(m=l.length-1;m>=0;m--){var g;if((g=l[m]).namespace===e.namespaceURI){g.prefix&&(f=g.prefix+":"+d);break}}}t.push("<",f);for(var b=l.slice(),v=0;v<u;v++){"xmlns"==(y=c.item(v)).prefix?b.push({prefix:y.localName,namespace:y.value}):"xmlns"==y.nodeName&&b.push({prefix:"",namespace:y.value})}for(v=0;v<u;v++){var y;if(ar(y=c.item(v),0,b)){var w=y.prefix||"",_=y.namespaceURI;sr(t,w?"xmlns:"+w:"xmlns",_),b.push({prefix:w,namespace:_})}var E=i?i(y):y;E&&("string"==typeof E?t.push(E):sr(t,E.name,E.value))}if(d===f&&ar(e,0,b)){var N=e.prefix||"";_=e.namespaceURI;sr(t,N?"xmlns:"+N:"xmlns",_),b.push({prefix:N,namespace:_})}var x=!e.firstChild;if(x&&(s||e.namespaceURI===Ve.HTML)&&(x=je(d)),x)return t.push("/>"),null;if(t.push(">"),s&&qe(d)){for(var S=e.firstChild;S;)S.data?t.push(S.data):lr(S,t,b.slice(),n),S=S.nextSibling;return t.push("</",f,">"),null}return{ns:b,tag:f};case pt:case gt:if(o&&e.nodeType===pt&&null==e.documentElement)throw new Ye("The Document has no documentElement",Xe.InvalidStateError);return{ns:l};case st:return sr(t,e.name,e.value),null;case lt:if(o&&$e.InvalidChar.test(e.data))throw new Ye("The Text node data contains characters outside the XML Char production",Xe.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,Ct)),null;case ct:if(o&&-1!==e.data.indexOf("]]>"))throw new Ye('The CDATASection data contains "]]>"',Xe.InvalidStateError);return a?t.push($e.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),$e.CDATA_END):t.push($e.CDATA_START,e.data,$e.CDATA_END),null;case ht:if(o){if($e.InvalidChar.test(e.data))throw new Ye("The comment node data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Ye('The comment node data contains "--" or ends with "-"',Xe.InvalidStateError)}return t.push($e.COMMENT_START,e.data,$e.COMMENT_END),null;case mt:var T=e.publicId,k=e.systemId;if(o){if(T&&!$e.PubidLiteral_match.test(T))throw new Ye("DocumentType publicId is not a valid PubidLiteral",Xe.InvalidStateError);if(k&&"."!==k&&!$e.SystemLiteral_match.test(k))throw new Ye("DocumentType systemId is not a valid SystemLiteral",Xe.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Ye('DocumentType internalSubset contains "]>"',Xe.InvalidStateError)}return t.push($e.DOCTYPE_DECL_START," ",e.name),T?(t.push(" ",$e.PUBLIC," ",T),k&&"."!==k&&t.push(" ",k)):k&&"."!==k&&t.push(" ",$e.SYSTEM," ",k),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ft:if(o){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Ye("The ProcessingInstruction target is not well-formed",Xe.InvalidStateError);if($e.InvalidChar.test(e.data))throw new Ye("The ProcessingInstruction data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Ye('The ProcessingInstruction data contains "?>"',Xe.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case ut:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,r){r&&r.tag&&t.push("</",r.tag,">")}})}function cr(e,t,r){var n;return Dt(t,null,{enter:function(t,i){var o=new t.constructor(We);for(var a in t)if(Ue(t,a)){var s=t[a];"object"!=typeof s&&s!=o[a]&&(o[a]=s)}t.childNodes&&(o.childNodes=new _t),o.ownerDocument=e;var l=r;switch(o.nodeType){case at:var c=t.attributes,u=o.attributes=new xt,d=c.length;u._ownerElement=o;for(var f=0;f<d;f++)o.setAttributeNode(cr(e,c.item(f),!0));break;case st:l=!0}return null!==i?i.appendChild(o):n=o,l?o:null}}),n}function ur(e,t,r){e[t]=r}function dr(e){for(var t=[],r=e.firstChild;r;)r.nodeType===at&&t.push(r),r=r.nextSibling;return t}_t.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var r=[],n=0;n<this.length;n++)lr(this[n],r,null,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},_t.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Et.prototype.item=function(e){return Nt(this),this[e]||null},it(Et,_t),xt.prototype={length:0,item:_t.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Ye(Ye.INUSE_ATTRIBUTE_ERR);var r=this.getNamedItemNS(e.namespaceURI,e.localName);return r===e?e:(Tt(this._ownerElement,this,e,r),r)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Ye(Ye.NOT_FOUND_ERR,e);return kt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new Ye(Ye.NOT_FOUND_ERR,e?e+" : "+t:t);return kt(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},xt.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},At.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=Ge.XML_APPLICATION;e===Ve.HTML?n=Ge.XML_XHTML_APPLICATION:e===Ve.SVG&&(n=Ge.XML_SVG_IMAGE);var i=new Ot(We,{contentType:n});if(i.implementation=this,i.childNodes=new _t,i.doctype=r||null,r&&i.appendChild(r),t){var o=i.createElementNS(e,t);i.appendChild(o)}return i},createDocumentType:function(e,t,r,n){tt(e);var i=new Kt(We);return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i.internalSubset=n||"",i.childNodes=new _t,i},createHTMLDocument:function(e){var t=new Ot(We,{contentType:Ge.HTML});if(t.implementation=this,t.childNodes=new _t,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var i=t.createElement("title");i.appendChild(t.createTextNode(e)),n.appendChild(i)}r.appendChild(t.createElement("body"))}return t}},It.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var r=t.pop(),n=r.node,i=r.other;if(n.nodeType!==i.nodeType)return!1;switch(n.nodeType){case n.DOCUMENT_TYPE_NODE:if(n.name!==i.name)return!1;if(n.publicId!==i.publicId)return!1;if(n.systemId!==i.systemId)return!1;break;case n.ELEMENT_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.prefix!==i.prefix)return!1;if(n.localName!==i.localName)return!1;if(n.attributes.length!==i.attributes.length)return!1;for(var o=0;o<n.attributes.length;o++){var a=n.attributes.item(o),s=i.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case n.ATTRIBUTE_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.localName!==i.localName)return!1;if(n.value!==i.value)return!1;break;case n.PROCESSING_INSTRUCTION_NODE:if(n.target!==i.target||n.data!==i.data)return!1;break;case n.TEXT_NODE:case n.CDATA_SECTION_NODE:case n.COMMENT_NODE:if(n.data!==i.data)return!1}if(n.childNodes.length!==i.childNodes.length)return!1;for(o=n.childNodes.length-1;o>=0;o--)t.push({node:n.childNodes[o],other:i.childNodes[o]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Vt(this,e,t)},replaceChild:function(e,t){Vt(this,e,t,Gt),t&&this.removeChild(t)},removeChild:function(e){return Pt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return cr(this.ownerDocument||this,this,e)},normalize:function(){Dt(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;null!==r&&r.nodeType===lt&&t.nodeType===lt?(e.removeChild(r),t.appendData(r.data)):t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Ue(r,n)&&r[n]===e)return n;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Ue(r,e))return r[e];t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,i=null;if(t instanceof Zt&&(t=(n=t).ownerElement),r instanceof Zt&&(r=(i=r).ownerElement,n&&t&&r===t))for(var o,a=0;o=r.attributes[a];a++){if(o===n)return vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+vt.DOCUMENT_POSITION_PRECEDING;if(o===i)return vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+vt.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return vt.DOCUMENT_POSITION_DISCONNECTED+vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(wt(r.ownerDocument)>wt(t.ownerDocument)?vt.DOCUMENT_POSITION_FOLLOWING:vt.DOCUMENT_POSITION_PRECEDING);if(i&&t===r)return vt.DOCUMENT_POSITION_CONTAINS+vt.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return vt.DOCUMENT_POSITION_CONTAINED_BY+vt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!i&&l===r)return vt.DOCUMENT_POSITION_CONTAINED_BY+vt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return vt.DOCUMENT_POSITION_CONTAINS+vt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=yt(s,c);for(var f in d.childNodes){var h=d.childNodes[f];if(h===r)return vt.DOCUMENT_POSITION_FOLLOWING;if(h===t)return vt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(h)>=0)return vt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(h)>=0)return vt.DOCUMENT_POSITION_PRECEDING}return 0}},nt(ot,It),nt(ot,It.prototype),nt(vt,It),nt(vt,It.prototype),Dt.STOP=Symbol("walkDOM.STOP"),Dt.ENTER=0,Dt.EXIT=1,Ot.prototype={implementation:null,nodeName:"#document",nodeType:pt,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Vt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===at&&(this.documentElement=e),e},removeChild:function(e){var t=Pt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Vt(this,e,t,Gt),e.ownerDocument=this,t&&this.removeChild(t),Ft(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,r){var n;return Dt(t,null,{enter:function(t,i){var o=t.cloneNode(!1);return o.ownerDocument=e,o.parentNode=null,null===i?n=o:i.appendChild(o),t.nodeType===st||r?o:null}}),n}(this,e,t)},getElementById:function(e){var t=null;return Rt(this.documentElement,function(r){if(r.nodeType==at&&r.getAttribute("id")==e)return t=r,!0}),t},createElement:function(e){var t=new Wt(We);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),ze(this.contentType)&&(t.namespaceURI=Ve.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new _t,(t.attributes=new xt)._ownerElement=t,t},createDocumentFragment:function(){var e=new rr(We);return e.ownerDocument=this,e.childNodes=new _t,e},createTextNode:function(e){var t=new Xt(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createComment:function(e){var t=new $t(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Ye(Ye.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Qt(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new nr(We);return r.ownerDocument=this,r.childNodes=new _t,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Zt(We);return t.ownerDocument=this,t.childNodes=new _t,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!$e.Name.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Ye("document is an html document",Xe.NotSupportedError);var t=new tr(We);return t.ownerDocument=this,t.childNodes=new _t,t.nodeName=e,t},createElementNS:function(e,t){var r=rt(e,t),n=new Wt(We),i=n.attributes=new xt;return n.childNodes=new _t,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],i._ownerElement=n,n},createAttributeNS:function(e,t){var r=rt(e,t),n=new Zt(We);return n.ownerDocument=this,n.childNodes=new _t,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},it(Ot,It),Wt.prototype={nodeType:at,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===Ve.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=rt(e,t)[2],i=this.getAttributeNodeNS(e,n);i?i.value=i.nodeValue=""+r:((i=this.ownerDocument.createAttributeNS(e,t)).value=i.nodeValue=""+r,this.setAttributeNode(i))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new Et(this,function(r){var n=[];return t.length>0&&Rt(r,function(i){if(i!==r&&i.nodeType===at){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=et(o);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&n.push(i)}}var l}),n})},getElementsByTagName:function(e){var t="html"===(this.nodeType===pt?this:this.ownerDocument).type,r=e.toLowerCase();return new Et(this,function(n){var i=[];return Rt(n,function(o){o!==n&&o.nodeType===at&&(("*"===e||o.getQualifiedName()===(t&&o.namespaceURI===Ve.HTML?r:e))&&i.push(o))}),i})},getElementsByTagNameNS:function(e,t){return new Et(this,function(r){var n=[];return Rt(r,function(i){i===r||i.nodeType!==at||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)}),n})}},Ot.prototype.getElementsByClassName=Wt.prototype.getElementsByClassName,Ot.prototype.getElementsByTagName=Wt.prototype.getElementsByTagName,Ot.prototype.getElementsByTagNameNS=Wt.prototype.getElementsByTagNameNS,it(Wt,It),Zt.prototype.nodeType=st,it(Zt,It),Yt.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},it(Yt,It),Xt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},it(Xt,Yt),$t.prototype={nodeName:"#comment",nodeType:ht},it($t,Yt),Qt.prototype={nodeName:"#cdata-section",nodeType:ct},it(Qt,Xt),Kt.prototype.nodeType=mt,it(Kt,It),Jt.prototype.nodeType=bt,it(Jt,It),er.prototype.nodeType=dt,it(er,It),tr.prototype.nodeType=ut,it(tr,It),rr.prototype.nodeName="#document-fragment",rr.prototype.nodeType=gt,it(rr,It),nr.prototype.nodeType=ft,it(nr,Yt),ir.prototype.serializeToString=function(e,t){return or.call(e,t)},It.prototype.toString=or;try{Object.defineProperty&&(Object.defineProperty(Et.prototype,"length",{get:function(){return Nt(this),this.$$length}}),Object.defineProperty(It.prototype,"textContent",{get:function(){if(this.nodeType===at||this.nodeType===gt){var e=[];return Dt(this,null,{enter:function(t){return t.nodeType===at||t.nodeType===gt||(t.nodeType===ft||t.nodeType===ht?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case at:case gt:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(Wt.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(Ot.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(rr.prototype,"children",{get:function(){return new Et(this,dr)}}),ur=function(e,t,r){e["$$"+t]=r})}catch($o){}S._updateLiveList=Nt,S.Attr=Zt,S.CDATASection=Qt,S.CharacterData=Yt,S.Comment=$t,S.Document=Ot,S.DocumentFragment=rr,S.DocumentType=Kt,S.DOMImplementation=At,S.Element=Wt,S.Entity=er,S.EntityReference=tr,S.LiveNodeList=Et,S.NamedNodeMap=xt,S.Node=It,S.NodeList=_t,S.Notation=Jt,S.Text=Xt,S.ProcessingInstruction=nr,S.walkDOM=Dt,S.XMLSerializer=ir;var fr,hr,pr={},mr={};fr=mr,hr=o.freeze,fr.XML_ENTITIES=hr({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),fr.HTML_ENTITIES=hr({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),fr.entityMap=fr.HTML_ENTITIES;var gr={},br=o,vr=T,yr=m,wr=br.isHTMLEscapableRawTextElement,_r=br.isHTMLMimeType,Er=br.isHTMLRawTextElement,Nr=br.hasOwn,xr=br.NAMESPACE,Sr=yr.ParseError,Tr=yr.DOMException;function kr(){}kr.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),Or(t,t=Object.create(null)),function(e,t,r,n,i){var o=_r(n.mimeType);e.indexOf(vr.UNICODE_REPLACEMENT_CHARACTER)>=0&&i.warning("Unicode replacement character detected, source encoding issues?");function a(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!o&&t!==e)return i.error("EntityRef: expecting ;"),e;var n=vr.Reference.exec(t);if(!n||n[0].length!==t.length)return i.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return Nr(r,s)?r[s]:"#"===s.charAt(0)?a(parseInt(s.substring(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function l(t){if(t>g){var r=e.substring(g,t).replace(Ar,s);f&&h(g),n.characters(r,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,f=n.locator;function h(t,r){for(;t>=u&&(r=d.exec(e));)c=u,u=r.index+r[0].length,f.lineNumber++;f.columnNumber=t-c+1}var p=[{currentNSMap:t}],m=[],g=0;for(;;){try{var b=e.indexOf("<",g);if(b<0){if(!o&&m.length>0)return i.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var v=n.doc,y=v.createTextNode(e.substring(g));if(v.documentElement)return i.error("Extra content at the end of the document");v.appendChild(y),n.currentElement=y}return}if(b>g){var w=e.substring(g,b);o||0!==m.length||(w=w.replace(new RegExp(vr.S_OPT.source,"g"),""))&&i.error("Unexpected content outside root element: '"+w+"'"),l(b)}switch(e.charAt(b+1)){case"/":var _=e.indexOf(">",b+2),E=e.substring(b+2,_>0?_:void 0);if(!E)return i.fatalError("end tag name missing");var N=_>0&&vr.reg("^",vr.QName_group,vr.S_OPT,"$").exec(E);if(!N)return i.fatalError('end tag name contains invalid characters: "'+E+'"');if(!n.currentElement&&!n.doc.documentElement)return;var x=m[m.length-1]||n.currentElement.tagName||n.doc.documentElement.tagName||"";if(x!==N[1]){var S=N[1].toLowerCase();if(!o||x.toLowerCase()!==S)return i.fatalError('Opening and ending tag mismatch: "'+x+'" != "'+E+'"')}var T=p.pop();m.pop();var k=T.localNSMap;if(n.endElement(T.uri,T.localName,x),k)for(var A in k)Nr(k,A)&&n.endPrefixMapping(A);_++;break;case"?":f&&h(b),_=Pr(e,b,n,i);break;case"!":f&&h(b),_=Mr(e,b,n,i,o);break;default:f&&h(b);var I=new Br,C=p[p.length-1].currentNSMap,R=(_=Cr(e,b,I,C,s,i,o),I.length);if(I.closed||(o&&br.isHTMLVoidElement(I.tagName)?I.closed=!0:m.push(I.tagName)),f&&R){for(var D=Ir(f,{}),O=0;O<R;O++){var L=I[O];h(L.offset),L.locator=Ir(f,{})}n.locator=D,Rr(I,n,C)&&p.push(I),n.locator=f}else Rr(I,n,C)&&p.push(I);o&&!I.closed?_=Dr(e,_,I.tagName,s,n):_++}}catch($o){if($o instanceof Sr)throw $o;if($o instanceof Tr)throw new Sr($o.name+": "+$o.message,n.locator,$o);i.error("element parse error: "+$o),_=-1}_>g?g=_:l(Math.max(b,g)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}};var Ar=/&#?\w+;?/g;function Ir(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Cr(e,t,r,n,i,o,a){function s(e,t,n){return Nr(r.attributeNames,e)?o.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?o.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Ar,i),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,f=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,f=e.slice(t,c),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(t,c)).slice(-1)&&(r.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=l),4==u?(o.warning('attribute "'+f+'" missed quot(")!'),s(l,f,t)):(a||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:if(!a)return o.fatalError("AttValue: ' or \" expected")}return c;case"€":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var f=e.slice(t,c);o.warning('attribute "'+f+'" missed quot(")!!'),s(l,f,t);case 5:u=6}else switch(u){case 2:a||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Rr(e,t,r){for(var n=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,l=a.value;if((f=s.indexOf(":"))>0)var c=a.prefix=s.slice(0,f),u=s.slice(f+1),d="xmlns"===c&&u;else u=s,c=null,d="xmlns"===s&&"";a.localName=u,!1!==d&&(null==i&&(i=Object.create(null),Or(r,r=Object.create(null))),r[d]=i[d]=l,a.uri=xr.XMLNS,t.startPrefixMapping(d,l))}for(o=e.length;o--;)(a=e[o]).prefix&&("xml"===a.prefix&&(a.uri=xr.XML),"xmlns"!==a.prefix&&(a.uri=r[a.prefix]));var f;(f=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,f),u=e.localName=n.slice(f+1)):(c=null,u=e.localName=n);var h=e.uri=r[c||""];if(t.startElement(h,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(h,u,n),i)for(c in i)Nr(i,c)&&t.endPrefixMapping(c)}function Dr(e,t,r,n,i){var o=wr(r);if(o||Er(r)){var a=e.indexOf("</"+r+">",t),s=e.substring(t+1,a);return o&&(s=s.replace(Ar,n)),i.characters(s,0,s.length),a}return t+1}function Or(e,t){for(var r in e)Nr(e,r)&&(t[r]=e[r])}function Lr(e,t){var r=t;function n(t){return t=t||0,e.charAt(r+t)}function i(e){r+=e=e||1}function o(){return e.substring(r)}return{char:n,getIndex:function(){return r},getMatch:function(e){var t=vr.reg("^",e).exec(o());return t?(i(t[0].length),t[0]):null},getSource:function(){return e},skip:i,skipBlanks:function(){for(var t=0;r<e.length;){var o=n();if(" "!==o&&"\n"!==o&&"\t"!==o&&"\r"!==o)return t;t++,i()}return-1},substringFromIndex:o,substringStartsWith:function(t){return e.substring(r,r+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}}}function Mr(e,t,r,n,i){var o=Lr(e,t);switch(i?o.char(2).toUpperCase():o.char(2)){case"-":var a=o.getMatch(vr.Comment);return a?(r.comment(a,vr.COMMENT_START.length,a.length-vr.COMMENT_START.length-vr.COMMENT_END.length),o.getIndex()):n.fatalError("comment is not well-formed at position "+o.getIndex());case"[":var s=o.getMatch(vr.CDSect);return s?i||r.currentElement?(r.startCDATA(),r.characters(s,vr.CDATA_START.length,s.length-vr.CDATA_START.length-vr.CDATA_END.length),r.endCDATA(),o.getIndex()):n.fatalError("CDATA outside of element"):n.fatalError("Invalid CDATA starting at position "+t);case"D":if(r.doc&&r.doc.documentElement)return n.fatalError("Doctype not allowed inside or after documentElement at position "+o.getIndex());if(i?!o.substringStartsWithCaseInsensitive(vr.DOCTYPE_DECL_START):!o.substringStartsWith(vr.DOCTYPE_DECL_START))return n.fatalError("Expected "+vr.DOCTYPE_DECL_START+" at position "+o.getIndex());if(o.skip(vr.DOCTYPE_DECL_START.length),o.skipBlanks()<1)return n.fatalError("Expected whitespace after "+vr.DOCTYPE_DECL_START+" at position "+o.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=o.getMatch(vr.Name),!l.name)return n.fatalError("doctype name missing or contains unexpected characters at position "+o.getIndex());if(i&&"html"!==l.name.toLowerCase()&&n.warning("Unexpected DOCTYPE in HTML document at position "+o.getIndex()),o.skipBlanks(),o.substringStartsWith(vr.PUBLIC)||o.substringStartsWith(vr.SYSTEM)){var c=vr.ExternalID_match.exec(o.substringFromIndex());if(!c)return n.fatalError("doctype external id is not well-formed at position "+o.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),o.skip(c[0].length)}else if(i&&o.substringStartsWithCaseInsensitive(vr.SYSTEM)){if(o.skip(vr.SYSTEM.length),o.skipBlanks()<1)return n.fatalError("Expected whitespace after "+vr.SYSTEM+" at position "+o.getIndex());if(l.systemId=o.getMatch(vr.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return n.fatalError("Expected "+vr.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+vr.SYSTEM+" at position "+o.getIndex())}return i&&l.systemId&&!vr.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&n.warning("Unexpected doctype.systemId in HTML document at position "+o.getIndex()),i||(o.skipBlanks(),l.internalSubset=function(e,t){function r(e,t){var r=vr.PI.exec(e.substringFromIndex());return r?"xml"===r[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(r[0].length),r[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var n=e.getSource();if("["===e.char()){e.skip(1);for(var i=e.getIndex();e.getIndex()<n.length;){if(e.skipBlanks(),"]"===e.char()){var o=n.substring(i,e.getIndex());return e.skip(1),o}var a=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?a=e.getMatch(vr.elementdecl):"N"===e.char(3)&&(a=e.getMatch(vr.EntityDecl));break;case"A":a=e.getMatch(vr.AttlistDecl);break;case"N":a=e.getMatch(vr.NotationDecl);break;case"-":a=e.getMatch(vr.Comment)}else if("<"===e.char()&&"?"===e.char(1))a=r(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");a=e.getMatch(vr.PEReference)}if(!a)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(o,n)),o.skipBlanks(),">"!==o.char()?n.fatalError("doctype not terminated with > at position "+o.getIndex()):(o.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),o.getIndex());default:return n.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Pr(e,t,r,n){var i=e.substring(t).match(vr.PI);if(!i)return n.fatalError("Invalid processing instruction starting at position "+t);if("xml"===i[1].toLowerCase()){if(t>0)return n.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!vr.XMLDecl.test(e.substring(t)))return n.fatalError("xml declaration is not well-formed")}return r.processingInstruction(i[1],i[2]),t+i[0].length}function Br(){this.attributeNames=Object.create(null)}Br.prototype={setTagName:function(e){if(!vr.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!vr.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},gr.XMLReader=kr,gr.parseUtils=Lr,gr.parseDoctypeCommentOrCData=Mr;var Fr=o,zr=m,Ur=mr,Hr=gr,qr=S.DOMImplementation,jr=Fr.hasDefaultHTMLNamespace,Gr=Fr.isHTMLMimeType,Vr=Fr.isValidMimeType,Wr=Fr.MIME_TYPE,Zr=Fr.NAMESPACE,Yr=zr.ParseError,Xr=Hr.XMLReader;function $r(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Qr(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Fr.assign,this.domHandler=e.domHandler||Kr,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||$r,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Kr(e){var t=e||{};this.mimeType=t.mimeType||Wr.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function Jr(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function en(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function tn(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Qr.prototype.parseFromString=function(e,t){if(!Vr(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var r=this.assign(Object.create(null),this.xmlns),n=Ur.XML_ENTITIES,i=r[""]||null;jr(t)?(n=Ur.HTML_ENTITIES,i=Zr.HTML):t===Wr.XML_SVG_IMAGE&&(i=Zr.SVG),r[""]=i,r.xml=r.xml||Zr.XML;var o=new this.domHandler({mimeType:t,defaultNamespace:i,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&o.setDocumentLocator(a);var s=new Xr;return s.errorHandler=o,s.domBuilder=o,!Fr.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),r,n),o.doc.documentElement||s.errorHandler.fatalError("missing root element"),o.doc},Kr.prototype={startDocument:function(){var e=new qr;this.doc=Gr(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;tn(this,o),this.currentElement=o,this.locator&&Jr(this.locator,o);for(var s=0;s<a;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),i.createAttributeNS(e,r));this.locator&&Jr(n.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&Jr(this.locator,r),tn(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=en.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Jr(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=en.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Jr(this.locator,n),tn(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var o=i.createDocumentType(e,t,r,n);this.locator&&Jr(this.locator,o),tn(this,o),this.doc.doctype=o}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch($o){throw new Yr("Reporting "+e+' "'+t+'" caused '+$o,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new Yr(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Kr.prototype[e]=function(){return null}}),pr.__DOMHandler=Kr,pr.DOMParser=Qr,pr.normalizeLineEndings=$r,pr.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},pr.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rn=o;rn.assign,rn.hasDefaultHTMLNamespace,rn.isHTMLMimeType,rn.isValidMimeType,rn.MIME_TYPE,rn.NAMESPACE;var nn=S.XMLSerializer,on=pr.DOMParser;const an="asset:";const sn={styleId:void 0,bold:!1,italic:!1,underline:!1,underlineStyle:null,underlineColor:null,strike:!1,doubleStrike:!1,superscript:!1,subscript:!1,smallCaps:!1,allCaps:!1,hidden:!1,noProof:!1,webHidden:!1,specVanish:!1,textEffect:null,characterScale:null,characterSpacing:null,baselineShift:null,kerningThreshold:null,ligatures:null,numberSpacing:null,numberForm:null,stylisticSet:null,contextualAlternates:!1,fontFamily:"Calibri, sans-serif",fontSize:14.6667,color:"#000000",highlight:null,shading:null,language:null,link:null},ln={styleId:void 0,align:"left",spacingBefore:0,spacingAfter:8,contextualSpacing:!1,lineHeight:1.15,lineRule:null,lineGridPitch:null,lineGridType:null,snapToGrid:!0,indentLeft:0,indentRight:0,indentFirstLine:0,indentHanging:0,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null},cn=816,un=1056,dn="portrait",fn={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function hn(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),r="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:r?e.height:e.width,height:r?e.width:e.height,orientation:t,margins:{top:e.margins.top,right:e.margins.right,bottom:e.margins.bottom,left:e.margins.left,header:e.margins.header,footer:e.margins.footer,gutter:e.margins.gutter},...e.columns?{columns:e.columns}:{}}}function pn(e){const t=e.pageSettings;return hn({width:(null==t?void 0:t.width)??cn,height:(null==t?void 0:t.height)??un,orientation:(null==t?void 0:t.orientation)??dn,margins:{top:(null==t?void 0:t.margins.top)??fn.top,right:(null==t?void 0:t.margins.right)??fn.right,bottom:(null==t?void 0:t.margins.bottom)??fn.bottom,left:(null==t?void 0:t.margins.left)??fn.left,header:(null==t?void 0:t.margins.header)??fn.header,footer:(null==t?void 0:t.margins.footer)??fn.footer,gutter:(null==t?void 0:t.margins.gutter)??fn.gutter},...(null==t?void 0:t.columns)?{columns:t.columns}:{}})}function mn(){return{merge(e,t){if(!t)return{...e};const r={...e};for(const[n,i]of Object.entries(t))void 0!==i&&(r[n]=i);return r}}}const gn=mn(),bn=mn();function vn(e,t){return gn.merge(e,t)}function yn(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const r=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return r?r.id:void 0}function wn(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?wn(r.basedOn,t):{},...r.textStyle??{}}}function _n(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?_n(r.basedOn,t):{},...r.paragraphStyle??{}}}function En(e,t,r){const n=vn(wn(t??yn(r),r),wn(null==e?void 0:e.styleId,r)),i=vn(n,e);return{...sn,...i}}function Nn(e,t){const r=(null==e?void 0:e.styleId)??yn(t),n=_n(r,t),i=(o=n,a={...e,styleId:r},bn.merge(o,a));var o,a;return{...ln,...i}}function xn(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:hn(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:pn(e)}]}function Sn(e){return"paragraph"===e.type?[e]:e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks))}let Tn=1,kn=1,An=1,In=1,Cn=1,Rn=1,Dn=1,On=1;function Ln(){const e=`bookmark:${Dn}`;return Dn+=1,e}function Mn(){const e=`comment:${On}`;return On+=1,e}function Pn(e=""){const t={id:`run:${An}`,text:e};return An+=1,t}function Bn(e=""){const t={id:`paragraph:${kn}`,type:"paragraph",runs:[Pn(e)]};return kn+=1,t}function Fn(e){const t={id:`paragraph:${kn}`,type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,r,n){const i=Pn(e);return t&&(i.styles={...t}),r&&(i.image={...r}),n&&(i.textBox=n),i}(e.text,e.styles,e.image,e.textBox)):[Pn("")]};return kn+=1,t}function zn(e,t=1,r){const n={id:`table-cell:${Rn}`,blocks:e.length>0?e:[Bn("")]};return t>1&&(n.colSpan=t),(null==r?void 0:r.rowSpan)&&r.rowSpan>1&&(n.rowSpan=r.rowSpan),(null==r?void 0:r.vMerge)&&(n.vMerge=r.vMerge),Rn+=1,n}function Un(e,t){const r={id:`table-row:${Cn}`,cells:e};return(null==t?void 0:t.isHeader)&&(r.isHeader=!0),Cn+=1,r}const Hn={normal:{id:"normal",name:"Normal",type:"paragraph",paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:14.6667}},header:{id:"header",name:"Header",type:"paragraph",basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:24,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:27,color:"#2e74b5"}},heading2:{id:"heading2",name:"Heading 2",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:17,color:"#2e74b5"}},heading3:{id:"heading3",name:"Heading 3",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:16,color:"#1f4d78"}},footnoteText:{id:"footnoteText",name:"Footnote Text",type:"paragraph",basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",name:"Caption",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}}};function qn(e,t,r,n,i,o){const a=hn(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:cn,height:un,orientation:dn,margins:{...fn}}),s={id:`document:${Tn}`,pageSettings:a,sections:r??[{id:"section:default",blocks:e,pageSettings:a}],styles:n??{...Hn},metadata:i??{title:"Untitled document"},assets:o??void 0};return Tn+=1,s}const jn="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Gn="http://schemas.openxmlformats.org/drawingml/2006/main",Vn="http://schemas.microsoft.com/office/word/2010/wordml";function Wn(e,t,r){if(!e)return[];const n=[];for(let i=0;i<e.childNodes.length;i+=1){const o=e.childNodes[i];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===t&&o.localName===r&&n.push(o)}return n}const Zn=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function Yn(e){return Zn.includes(e)?e:void 0}function Xn(e,t,r){return Wn(e,t,r)[0]??null}function $n(e,t){return e?e.getAttributeNS(jn,t)??e.getAttributeNS(Vn,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(t):null}function Qn(e,t){for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if(1===(null==n?void 0:n.nodeType)){const e=n;if(e.localName===t)return e;const r=Qn(e,t);if(r)return r}}return null}function Kn(e){return"1"===e||"true"===e||"on"===e}function Jn(e,t){const r=Xn(e,jn,t);if(!r)return;const n=$n(r,"val");return null==n||"0"!==n&&"false"!==n&&"off"!==n&&Kn(n)}function ei(e,t){return $n(Xn(e,jn,t),"val")??void 0}async function ti(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}function ri(e){var t;const r=new Map;if(!e)return r;const n=null==(t=(new on).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!n)return r;for(let i=0;i<n.length;i+=1){const e=n[i];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),n=t.getAttribute("Target");e&&n&&r.set(e,n)}}}return r}async function ni(e,t){var r;const n=t.lastIndexOf("/"),i=n>=0?t.slice(0,n):"",o=n>=0?t.slice(n+1):t,a=i?`${i}/_rels/${o}.rels`:`_rels/${o}.rels`;return ri(await(null==(r=e.file(a))?void 0:r.async("string")))}const ii=e=>{var t;const r=Xn(e,Gn,"latin");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||void 0},oi=e=>{var t;const r=Xn(e,Gn,"cs");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||ii(e)},ai=e=>{var t;const r=Xn(e,Gn,"ea");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||ii(e)};function si(e){const t=Xn(e,Gn,"fontScheme"),r=Xn(t,Gn,"majorFont"),n=Xn(t,Gn,"minorFont");return{majorHAnsi:ii(r),minorHAnsi:ii(n),majorEastAsia:ai(r),minorEastAsia:ai(n),majorBidi:oi(r),minorBidi:oi(n)}}function li(e,t){const r=e?Number(e):Number.NaN;return Number.isFinite(r)?Math.round(r/1440*96):t}function ci(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return Math.round(t/20*1e4)/1e4}function ui(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}const di=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function fi(e){const t=Xn(e,Gn,"srgbClr");if(t)return ui($n(t,"val"));const r=Xn(e,Gn,"sysClr");return r?ui($n(r,"lastClr")):void 0}function hi(e){const t=Xn(e,Gn,"clrScheme");if(!t)return{};const r={};for(const n of di){const e=fi(Xn(t,Gn,n));e&&(r[n]=e)}return r}function pi(e){if(!e)return;const t=Number.parseInt(e,16);return Number.isFinite(t)?t/255:void 0}function mi(e,t,r){const n=e=>{return(t=e,Math.min(255,Math.max(0,Math.round(t)))).toString(16).padStart(2,"0").toUpperCase();var t};return`#${n(e)}${n(t)}${n(r)}`}const gi={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},bi={continuous:"continuous",eachSect:"eachSection"};function vi(e){if(!e)return;const t={},r=$n(Xn(e,jn,"numFmt"),"val");r&&gi[r]&&(t.numberFormat=gi[r]);const n=Number.parseInt($n(Xn(e,jn,"numStart"),"val")??"",10);Number.isFinite(n)&&n>0&&(t.startAt=n);const i=$n(Xn(e,jn,"numRestart"),"val");return i&&bi[i]&&(t.restart=bi[i]),Object.keys(t).length>0?t:void 0}const yi={decimal:"decimal",lowerLetter:"lowerLetter",upperLetter:"upperLetter",lowerRoman:"lowerRoman",upperRoman:"upperRoman",bullet:"bullet"};function wi(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function _i(e){return Object.keys(e).length>0?e:void 0}function Ei(e,t){return _i({...e??{},...t??{}})}function Ni(e){return ui($n(e,"fill"))}function xi(e,t){if(!e)return;const r=En(e,t,Hn),n=En(void 0,t,Hn),i=(e,t)=>e!==t?e:void 0,o=(e,t,r)=>void 0!==e?e:i(t,r);return wi({styleId:e.styleId,bold:o(e.bold,r.bold,n.bold),italic:o(e.italic,r.italic,n.italic),underline:i(r.underline,n.underline),underlineStyle:i(r.underlineStyle,n.underlineStyle),underlineColor:i(r.underlineColor,n.underlineColor),strike:o(e.strike,r.strike,n.strike),doubleStrike:o(e.doubleStrike,r.doubleStrike,n.doubleStrike),superscript:i(r.superscript,n.superscript),subscript:i(r.subscript,n.subscript),smallCaps:o(e.smallCaps,r.smallCaps,n.smallCaps),allCaps:o(e.allCaps,r.allCaps,n.allCaps),hidden:o(e.hidden,r.hidden,n.hidden),noProof:o(e.noProof,r.noProof,n.noProof),webHidden:o(e.webHidden,r.webHidden,n.webHidden),specVanish:o(e.specVanish,r.specVanish,n.specVanish),textEffect:i(r.textEffect,n.textEffect),characterScale:i(r.characterScale,n.characterScale),characterSpacing:i(r.characterSpacing,n.characterSpacing),baselineShift:i(r.baselineShift,n.baselineShift),kerningThreshold:i(r.kerningThreshold,n.kerningThreshold),ligatures:i(r.ligatures,n.ligatures),numberSpacing:i(r.numberSpacing,n.numberSpacing),numberForm:i(r.numberForm,n.numberForm),stylisticSet:i(r.stylisticSet,n.stylisticSet),contextualAlternates:i(r.contextualAlternates,n.contextualAlternates),fontFamily:o(e.fontFamily,r.fontFamily,n.fontFamily),fontSize:o(e.fontSize,r.fontSize,n.fontSize),color:i(r.color,n.color),highlight:i(r.highlight,n.highlight),shading:i(r.shading,n.shading),language:i(r.language,n.language),link:i(r.link,n.link)})}function Si(e,t){if(!e)return;const r={},n=ei(e,"rStyle");n&&(r.styleId=n);const i=Jn(e,"b"),o=Jn(e,"bCs");void 0===i&&void 0===o||(r.bold=!0===i||!0===o);const a=Jn(e,"i"),s=Jn(e,"iCs");void 0===a&&void 0===s||(r.italic=!0===a||!0===s);const l=Jn(e,"strike");void 0!==l&&(r.strike=l);const c=Jn(e,"dstrike");void 0!==c&&(r.doubleStrike=c);const u=Jn(e,"smallCaps");void 0!==u&&(r.smallCaps=u);const d=Jn(e,"caps");void 0!==d&&(r.allCaps=d);const f=Jn(e,"vanish");void 0!==f&&(r.hidden=f);const h=Jn(e,"noProof");void 0!==h&&(r.noProof=h);const p=Jn(e,"webHidden");void 0!==p&&(r.webHidden=p);const m=Jn(e,"specVanish");void 0!==m&&(r.specVanish=m);const g=$n(Xn(e,jn,"effect"),"val");g&&(r.textEffect=g);const b=$n(Xn(e,jn,"w"),"val");if(b){const e=Number(b);Number.isFinite(e)&&e>0&&(r.characterScale=e)}const v=$n(Xn(e,jn,"spacing"),"val");if(v){const e=ci(v);void 0!==e&&(r.characterSpacing=e)}const y=$n(Xn(e,jn,"position"),"val");if(y){const e=Number(y);Number.isFinite(e)&&(r.baselineShift=e/2)}const w=$n(Xn(e,jn,"kern"),"val");if(w){const e=Number(w);Number.isFinite(e)&&e>=0&&(r.kerningThreshold=e/2)}const _=$n(Xn(e,Vn,"ligatures"),"val");"none"!==_&&"standard"!==_&&"contextual"!==_&&"historical"!==_&&"standardContextual"!==_||(r.ligatures=_);const E=$n(Xn(e,Vn,"numSpacing"),"val");"proportional"!==E&&"tabular"!==E||(r.numberSpacing=E);const N=$n(Xn(e,Vn,"numForm"),"val");"lining"!==N&&"oldStyle"!==N||(r.numberForm=N);const x=$n(Xn(e,Vn,"stylisticSets"),"val");if(x){const e=/^[0-9a-fA-F]+$/.test(x)&&x.length>2?Number.parseInt(x,16):Number(x);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){r.stylisticSet=t;break}}const S=$n(Xn(e,Vn,"cntxtAlts"),"val");null===S?Xn(e,Vn,"cntxtAlts")&&(r.contextualAlternates=!0):Kn(S)&&(r.contextualAlternates=!0);const T=Xn(e,jn,"u"),k=$n(T,"val");if(T&&"none"!==k){r.underline=!0,k&&"single"!==k&&(r.underlineStyle=k);const e=$n(T,"color");e&&"auto"!==e&&(r.underlineColor=ui(e))}const A=$n(Xn(e,jn,"vertAlign"),"val");"superscript"===A&&(r.superscript=!0),"subscript"===A&&(r.subscript=!0);const I=Xn(e,jn,"rFonts"),C=$n(I,"ascii")??$n(I,"hAnsi")??$n(I,"cs")??$n(I,"eastAsia")??function(e,t){const r=$n(e,"asciiTheme")??$n(e,"hAnsiTheme")??$n(e,"eastAsiaTheme")??$n(e,"cstheme");if(!r)return;const n="majorAscii"===r||"majorHAnsi"===r?"majorHAnsi":"minorAscii"===r||"minorHAnsi"===r?"minorHAnsi":"majorEastAsia"===r?"majorEastAsia":"minorEastAsia"===r?"minorEastAsia":"majorBidi"===r?"majorBidi":"minorBidi"===r?"minorBidi":void 0;return n?t[n]:void 0}(I,t.fonts);C&&(r.fontFamily=function(e){const t=null==e?void 0:e.trim();if(!t)return;return`${/[\s,]/.test(t)?`"${t.replace(/"/g,'\\"')}"`:t}, ${/times/i.test(t)?"serif":"sans-serif"}`}(C));const R=$n(Xn(e,jn,"sz")??Xn(e,jn,"szCs"),"val");if(R){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?Math.round(t/2/72*96*1e4)/1e4:null}(R);null!==e&&(r.fontSize=e)}const D=Xn(e,jn,"color"),O=$n(D,"val");if(O&&"auto"!==O)r.color=ui(O);else if("auto"!==O){const e=function(e,t){const r=$n(e,"themeColor");if(!r)return;const n=function(e){switch(e){case"dark1":case"text1":return"dk1";case"light1":case"background1":return"lt1";case"dark2":case"text2":return"dk2";case"light2":case"background2":return"lt2";case"accent1":case"accent2":case"accent3":case"accent4":case"accent5":case"accent6":return e;case"hyperlink":return"hlink";case"followedHyperlink":return"folHlink";default:return}}(r),i=n?t[n]:void 0;if(!i)return;let o=Number.parseInt(i.slice(1,3),16),a=Number.parseInt(i.slice(3,5),16),s=Number.parseInt(i.slice(5,7),16);const l=pi($n(e,"themeShade"));void 0!==l&&(o*=l,a*=l,s*=l);const c=pi($n(e,"themeTint"));if(void 0!==c){const e=255*(1-c);o=o*c+e,a=a*c+e,s=s*c+e}return mi(o,a,s)}(D,t.colors);e&&(r.color=e)}const L=$n(Xn(e,jn,"highlight"),"val");L&&"none"!==L&&(r.highlight=L);const M=Ni(Xn(e,jn,"shd"));M&&(r.shading=M);const P=Xn(e,jn,"lang");if(P){const e=$n(P,"val"),t=$n(P,"eastAsia"),n=$n(P,"bidi"),i={};e&&(i.value=e),t&&(i.eastAsia=t),n&&(i.bidi=n),Object.keys(i).length>0&&(r.language=i)}return _i(r)}function Ti(e){if(!e)return;const t=$n(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const r=Number($n(e,"sz")),n=Number.isFinite(r)&&r>0?Math.round(r/8*1e4)/1e4:.75,i=ui($n(e,"color"))??"#000000",o=(null==t?void 0:t.toLowerCase())??"single";return{width:n,type:o.includes("dotted")||o.includes("dot")?"dotted":o.includes("dash")?"dashed":"solid",color:i}}function ki(e){return e?{borderTop:Ti(Xn(e,jn,"top")),borderRight:Ti(Xn(e,jn,"right")),borderBottom:Ti(Xn(e,jn,"bottom")),borderLeft:Ti(Xn(e,jn,"left")),borderStart:Ti(Xn(e,jn,"start")),borderEnd:Ti(Xn(e,jn,"end")),borderTopLeftToBottomRight:Ti(Xn(e,jn,"tl2br")),borderTopRightToBottomLeft:Ti(Xn(e,jn,"tr2bl"))}:{}}function Ai(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function Ii(e){const t=Xn(e,jn,"spacing");return{before:Kn($n(t,"beforeAutospacing")),after:Kn($n(t,"afterAutospacing"))}}function Ci(e){if(!e)return;const t={},r=ei(e,"pStyle");r&&(t.styleId=r);const n=$n(Xn(e,jn,"jc"),"val");"left"===n||"start"===n||"center"===n||"right"===n||"end"===n||"justify"===n?t.align="start"===n?"left":"end"===n?"right":n:"both"!==n&&"distribute"!==n||(t.align="justify");const i=Xn(e,jn,"spacing"),o=$n(i,"before"),a=$n(i,"after"),s=$n(i,"line"),l=$n(i,"lineRule");o&&(t.spacingBefore=li(o,0)),a&&(t.spacingAfter=li(a,0)),s&&("exact"===l||"atLeast"===l?(t.lineHeight=Math.round(Number(s)/1440*96*1e4)/1e4,t.lineRule=l):t.lineHeight=Number(s)/240);const c=Jn(e,"contextualSpacing");void 0!==c&&(t.contextualSpacing=c);const u=Jn(e,"snapToGrid");void 0!==u&&(t.snapToGrid=u);const d=Xn(e,jn,"ind"),f=$n(d,"start")??$n(d,"left"),h=$n(d,"end")??$n(d,"right"),p=$n(d,"firstLine"),m=$n(d,"hanging");f&&(t.indentLeft=li(f,0)),h&&(t.indentRight=li(h,0)),m?(t.indentHanging=li(m,0),t.indentFirstLine=void 0):p&&(t.indentFirstLine=li(p,0));const g=function(e){const t=Xn(e,jn,"tabs");if(!t)return[];const r=[];for(const n of Wn(t,jn,"tab")){const e=ci($n(n,"pos"));if(void 0===e)continue;const t=$n(n,"val"),i="center"===t||"right"===t||"decimal"===t||"bar"===t||"clear"===t?t:"left",o=$n(n,"leader"),a="dot"===o||"hyphen"===o||"underscore"===o||"heavy"===o||"middleDot"===o?o:"none"===o?"none":void 0;r.push({position:e,type:i,...void 0!==a?{leader:a}:{}})}return r}(e);g.length>0&&(t.tabs=g);const b=Jn(e,"pageBreakBefore");void 0!==b&&(t.pageBreakBefore=b);const v=Jn(e,"keepNext");void 0!==v&&(t.keepWithNext=v);const y=Jn(e,"keepLines");void 0!==y&&(t.keepLinesTogether=y);const w=Jn(e,"widowControl");void 0!==w&&(t.widowControl=w);const _=Xn(e,jn,"pBdr");if(_){const{borderTop:e,borderRight:r,borderBottom:n,borderLeft:i}=ki(_);e&&(t.borderTop=e),r&&(t.borderRight=r),n&&(t.borderBottom=n),i&&(t.borderLeft=i)}const E=Ni(Xn(e,jn,"shd"));E&&(t.shading=E);const N=Yn($n(Xn(e,jn,"textDirection"),"val"));N&&(t.textDirection=N);const x=$n(Xn(e,jn,"outlineLvl"),"val");if(void 0!==x){const e=Number(x);Number.isFinite(e)&&e>=0&&e<=8&&(t.outlineLevel=e)}return _i(t)}function Ri(e){if(!e)return;const t={},r=Xn(e,jn,"trHeight");if(r){const e=ci($n(r,"val"));void 0!==e&&(t.height=e);const n=$n(r,"hRule");"auto"!==n&&"exact"!==n&&"atLeast"!==n||(t.heightRule=n)}const n=Jn(e,"cantSplit");void 0!==n&&(t.cantSplit=n);const i=Jn(e,"hidden");return void 0!==i&&(t.hidden=i),Object.keys(t).length>0?t:void 0}function Di(e){return"1"===e||"true"===e||"on"===e}function Oi(e){const t=Xn(e,jn,"cols");if(!t)return;const r=Number.parseInt($n(t,"num")??"1",10);if(!Number.isFinite(r)||r<=1)return;const n=li($n(t,"space"),0),i=$n(t,"sep"),o=$n(t,"equalWidth"),a=Wn(t,jn,"col").map(e=>({width:li($n(e,"w"),0),space:li($n(e,"space"),n)})),s=null==o||Di(o);return{count:r,space:n,...Di(i)?{separator:!0}:{},...s?{}:{equalWidth:!1},...!s&&a.length>0?{columns:a}:{}}}function Li(e){const t=Xn(e,jn,"pgSz"),r=Xn(e,jn,"pgMar"),n=Oi(e);let i;if(t||r||n){const e=li($n(t,"w"),816),o=li($n(t,"h"),1056),a=$n(t,"orient");i={width:e,height:o,orientation:"landscape"===a?"landscape":"portrait"===a?"portrait":e>o?"landscape":"portrait",margins:{top:li($n(r,"top"),96),right:li($n(r,"right"),96),bottom:li($n(r,"bottom"),96),left:li($n(r,"left"),96),header:li($n(r,"header"),48),footer:li($n(r,"footer"),48),gutter:li($n(r,"gutter"),0)},...n?{columns:n}:{}}}const o=t=>{const r={};for(const n of Wn(e,jn,t)){const e=$n(n,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=n.getAttribute("r:id")??n.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(r[e]=t)}return r},a=o("headerReference"),s=o("footerReference"),l=Xn(e,jn,"docGrid"),c=$n(l,"type"),u=li($n(l,"linePitch"),Number.NaN);return{pageSettings:i,headerRIds:a,footerRIds:s,docGridLinePitchPx:Number.isFinite(u)&&u>0?u:void 0,docGridMode:"lines"===c||"linesAndChars"===c?"explicit":void 0,docGridType:c}}function Mi(e){if(!e)return;const t=Xn(e,jn,"sectPr");if(!t)return;const r=Xn(t,jn,"pgSz"),n=Xn(t,jn,"pgMar"),i=Oi(t);if(!r&&!n&&!i)return;const o=li($n(r,"w"),816),a=li($n(r,"h"),1056),s=$n(r,"orient");return{width:o,height:a,orientation:"landscape"===s?"landscape":"portrait"===s?"portrait":o>a?"landscape":"portrait",margins:{top:li($n(n,"top"),96),right:li($n(n,"right"),96),bottom:li($n(n,"bottom"),96),left:li($n(n,"left"),96),header:li($n(n,"header"),48),footer:li($n(n,"footer"),48),gutter:li($n(n,"gutter"),0)},...i?{columns:i}:{}}}function Pi(e,t,r,n,i){var o,a,s;if(t&&r)for(const l of e){if("paragraph"===l.type){const e=(null==(o=l.style)?void 0:o.styleId)&&/heading/i.test(l.style.styleId);void 0!==(null==(a=l.style)?void 0:a.lineHeight)||!1===(null==(s=l.style)?void 0:s.snapToGrid)||e||(l.style={...l.style??{},lineGridPitch:t,lineGridType:n});continue}if(i.adjustLineHeightInTable)for(const e of l.rows)for(const o of e.cells)Pi(o.blocks,t,r,n,i)}}const Bi=9525,Fi=96/72;function zi(e){const t=Ui(e);return void 0===t?void 0:Math.round(t/Bi)}function Ui(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function Hi(e){const t=null==e?void 0:e.trim();if(!t)return null;const r=t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);if(!r)return null;const n=Number(r[1]);if(!Number.isFinite(n)||n<=0)return null;switch((r[2]??"px").toLowerCase()){case"pt":return Math.round(n*Fi);case"in":return Math.round(96*n);case"cm":return Math.round(n/2.54*96);case"mm":return Math.round(n/25.4*96);case"pc":return Math.round(12*n*Fi);default:return Math.round(n)}}function qi(e){const t=null==e?void 0:e.trim();if(t&&/^[0-9a-fA-F]{6}$/.test(t))return`#${t.toUpperCase()}`}const ji={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"};async function Gi(e,t,r){let n=r;n.startsWith("/")&&(n=n.slice(1)),n.startsWith("word/")||(n="word/"+r);const i=e.file(n),o=function(e){var t;const r=null==(t=e.split(".").pop())?void 0:t.toLowerCase();return r?ji[r]??null:null}(r)??"image/png",a=await(null==i?void 0:i.async("base64"));if(a)return function(e,t,r){const n=e.byPath.get(t);if(n)return`${an}${n}`;const i=`img-${e.nextId}`;return e.nextId+=1,e.assets[i]={id:i,url:r},e.byPath.set(t,i),`${an}${i}`}(t,n,`data:${o};base64,${a}`)}function Vi(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function Wi(e,t){var r,n,i,o;const a=Qn(e,t);if(!a)return;const s=null==(n=null==(r=Qn(a,"align"))?void 0:r.textContent)?void 0:n.trim(),l=Zi(null==(o=null==(i=Qn(a,"posOffset"))?void 0:i.textContent)?void 0:o.trim()),c={relativeFrom:a.getAttribute("relativeFrom")??void 0,...s?{align:s}:{},...void 0!==l?{offset:l}:{}};return void 0!==c.relativeFrom||void 0!==c.align||void 0!==c.offset?c:void 0}function Zi(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function Yi(e){const t=Wi(e,"positionH"),r=Wi(e,"positionV"),n=function(e){return Qn(e,"wrapSquare")?"square":Qn(e,"wrapTight")?"tight":Qn(e,"wrapThrough")?"through":Qn(e,"wrapTopAndBottom")?"topAndBottom":Qn(e,"wrapNone")?"none":void 0}(e),i=Zi(e.getAttribute("distT")),o=Zi(e.getAttribute("distB")),a=Zi(e.getAttribute("distL")),s=Zi(e.getAttribute("distR")),l=Vi(e.getAttribute("simplePos")),c=Zi(e.getAttribute("relativeHeight")),u=Vi(e.getAttribute("behindDoc")),d=Vi(e.getAttribute("locked")),f=Vi(e.getAttribute("layoutInCell")),h=Vi(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==i?{distT:i}:{},...void 0!==o?{distB:o}:{},...void 0!==a?{distL:a}:{},...void 0!==s?{distR:s}:{},...void 0!==l?{simplePos:l}:{},...void 0!==c?{relativeHeight:c}:{},...void 0!==u?{behindDoc:u}:{},...void 0!==d?{locked:d}:{},...void 0!==f?{layoutInCell:f}:{},...void 0!==h?{allowOverlap:h}:{},...t?{positionH:t}:{},...r?{positionV:r}:{},...n?{wrap:n}:{}}}async function Xi(e,t,r,n){const i=Qn(e,"blip");if(!i)return{text:"",image:void 0};const{embed:o,link:a}=function(e){const t={};for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];n&&("embed"===n.localName||"r:embed"===n.name?t.embed=n.value:"link"!==n.localName&&"r:link"!==n.name||(t.link=n.value))}return t}(i),s=function(e){for(let t=0;t<e.childNodes.length;t+=1){const r=e.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;if("inline"===n.localName||"anchor"===n.localName)return{element:n,kind:n.localName}}}(e),l=(null==s?void 0:s.element)??e,c=Qn(l,"extent"),u=Qn(l,"docPr");let d=300,f=300;if(c){const e=c.getAttribute("cx"),t=c.getAttribute("cy");e&&(d=Math.round(parseInt(e,10)/Bi)),t&&(f=Math.round(parseInt(t,10)/Bi))}const h=u?$n(u,"descr")??$n(u,"title"):null,p=function(e){const t=Qn(e,"srcRect");if(!t)return;const r=e=>{const r=t.getAttribute(e);if(null===r||""===r)return;const n=parseInt(r,10);return Number.isFinite(n)&&0!==n?n/1e5:void 0},n={left:r("l"),top:r("t"),right:r("r"),bottom:r("b")};return void 0!==n.left||void 0!==n.top||void 0!==n.right||void 0!==n.bottom?n:void 0}(e),m=function(e){if(Qn(e,"tile"))return"tile"}(e),g=function(e){const t=Qn(e,"xfrm");if(!t)return{};const r={},n=t.getAttribute("rot");if(n){const e=parseInt(n,10);Number.isFinite(e)&&0!==e&&(r.rotation=e/6e4)}const i=t.getAttribute("flipH");"1"!==i&&"true"!==i||(r.flipH=!0);const o=t.getAttribute("flipV");return"1"!==o&&"true"!==o||(r.flipV=!0),r}(e),b="anchor"===(null==s?void 0:s.kind)?Yi(s.element):void 0,v="anchor"===(null==s?void 0:s.kind)?function(e){const t=Qn(e,"wrapPolygon");if(!t)return;const r=[];for(let n=0;n<t.childNodes.length;n+=1){const e=t.childNodes[n];if(1!==(null==e?void 0:e.nodeType))continue;const i=e;if("start"!==i.localName&&"lineTo"!==i.localName)continue;const o=Zi(i.getAttribute("x")),a=Zi(i.getAttribute("y"));void 0!==o&&void 0!==a&&r.push({x:o/21600,y:a/21600})}if(r.length>=2){const e=r[0],t=r[r.length-1];Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6&&r.pop()}return r.length>=3?r:void 0}(s.element):void 0,y={width:d,height:f,...null!==h?{alt:h}:{},...p?{crop:p}:{},...m?{fillMode:m}:{},...void 0!==g.rotation?{rotation:g.rotation}:{},...g.flipH?{flipH:!0}:{},...g.flipV?{flipV:!0}:{},...b?{floating:b}:{},...v?{wrapPolygon:v}:{}},w=o?r.get(o):void 0,_=a?r.get(a):void 0;if(_&&function(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith("//")}(_))return{text:"",image:{src:"",linkedSrc:_,...y}};const E=w??_;if(E){const e=await Gi(t,n,E);if(e)return{text:"",image:{src:e,...y}}}return{text:"",image:void 0}}function $i(e){const t=null==e?void 0:e.trim();if(!t)return;if(t.endsWith("%")){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/100:void 0}if(/f$/i.test(t)){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/65536:void 0}const r=Number(t);return Number.isFinite(r)&&0!==r?r/65536:void 0}async function Qi(e,t,r,n){const i=Qn(e,"imagedata");if(!i)return;const o=function(e){for(let t=0;t<e.attributes.length;t+=1){const r=e.attributes[t];if(r&&("id"===r.localName||"r:id"===r.name))return r.value}}(i),a=o?r.get(o):void 0;if(!a)return;const s=Qn(e,"shape"),l=function(e){const t={};if(!e)return t;for(const r of e.split(";")){const e=r.indexOf(":");if(e<0)continue;const n=r.slice(0,e).trim().toLowerCase(),i=r.slice(e+1).trim();if("width"===n){const e=Hi(i);null!==e&&(t.width=e)}else if("height"===n){const e=Hi(i);null!==e&&(t.height=e)}}return t}(null==s?void 0:s.getAttribute("style")),c=function(e){const t={left:$i($n(e,"cropleft")),top:$i($n(e,"croptop")),right:$i($n(e,"cropright")),bottom:$i($n(e,"cropbottom"))};if(void 0!==t.left||void 0!==t.top||void 0!==t.right||void 0!==t.bottom)return t}(i),u=$n(i,"title")??i.getAttribute("o:title"),d=await Gi(t,n,a);return d?{src:d,width:l.width??300,height:l.height??300,...u?{alt:u}:{},...c?{crop:c}:{}}:void 0}function Ki(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function Ji(e,t){var r,n,i,o;const a=Qn(e,t);if(!a)return;const s=null==(n=null==(r=Qn(a,"align"))?void 0:r.textContent)?void 0:n.trim(),l=Ui(null==(o=null==(i=Qn(a,"posOffset"))?void 0:i.textContent)?void 0:o.trim()),c={relativeFrom:a.getAttribute("relativeFrom")??void 0,...s?{align:s}:{},...void 0!==l?{offset:l}:{}};return void 0!==c.relativeFrom||void 0!==c.align||void 0!==c.offset?c:void 0}function eo(e){const t=Ji(e,"positionH"),r=Ji(e,"positionV"),n=function(e){return Qn(e,"wrapSquare")?"square":Qn(e,"wrapTight")?"tight":Qn(e,"wrapThrough")?"through":Qn(e,"wrapTopAndBottom")?"topAndBottom":Qn(e,"wrapNone")?"none":void 0}(e),i=Ui(e.getAttribute("distT")),o=Ui(e.getAttribute("distB")),a=Ui(e.getAttribute("distL")),s=Ui(e.getAttribute("distR")),l=Ki(e.getAttribute("simplePos")),c=Ui(e.getAttribute("relativeHeight")),u=Ki(e.getAttribute("behindDoc")),d=Ki(e.getAttribute("locked")),f=Ki(e.getAttribute("layoutInCell")),h=Ki(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==i?{distT:i}:{},...void 0!==o?{distB:o}:{},...void 0!==a?{distL:a}:{},...void 0!==s?{distR:s}:{},...void 0!==l?{simplePos:l}:{},...void 0!==c?{relativeHeight:c}:{},...void 0!==u?{behindDoc:u}:{},...void 0!==d?{locked:d}:{},...void 0!==f?{layoutInCell:f}:{},...void 0!==h?{allowOverlap:h}:{},...t?{positionH:t}:{},...r?{positionV:r}:{},...n?{wrap:n}:{}}}async function to(e,t){const r=Qn(e,"wsp");if(!r)return;const n=function(e){for(let t=0;t<e.childNodes.length;t+=1){const r=e.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;if("inline"===n.localName||"anchor"===n.localName)return{element:n,kind:n.localName}}}(e),i=(null==n?void 0:n.element)??e,o=Qn(i,"extent"),a=zi(null==o?void 0:o.getAttribute("cx"))??300,s=zi(null==o?void 0:o.getAttribute("cy"))??300,l=Qn(i,"docPr"),c=l?$n(l,"name"):null,u=l?$n(l,"descr")??$n(l,"title"):null,d="anchor"===(null==n?void 0:n.kind)?eo(n.element):void 0,f=Qn(r,"txbxContent"),h=f&&t?await t(f):[],p=function(e){var t,r;const n=Qn(e,"spPr");if(!n)return;const i={},o=Qn(n,"prstGeom"),a=null==o?void 0:o.getAttribute("prst");a&&(i.preset=a);for(let s=0;s<n.childNodes.length;s+=1){const e=n.childNodes[s];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if("solidFill"===o.localName){const e=qi(null==(t=Qn(o,"srgbClr"))?void 0:t.getAttribute("val"));e&&(i.fill=e)}else if("ln"===o.localName){const e=Ui(o.getAttribute("w"));void 0!==e&&(i.borderWidthPt=Math.round(e/12700*100)/100);const t=qi(null==(r=Qn(o,"srgbClr"))?void 0:r.getAttribute("val"));t&&(i.borderColor=t)}}return Object.keys(i).length>0?i:void 0}(r),m=function(e){const t=Qn(e,"bodyPr");if(!t)return;const r={},n=zi(t.getAttribute("lIns")),i=zi(t.getAttribute("tIns")),o=zi(t.getAttribute("rIns")),a=zi(t.getAttribute("bIns"));void 0!==n&&(r.paddingLeft=n),void 0!==i&&(r.paddingTop=i),void 0!==o&&(r.paddingRight=o),void 0!==a&&(r.paddingBottom=a);const s=t.getAttribute("anchor");s&&(r.anchor=s);const l=t.getAttribute("wrap");l&&(r.wrap=l);const c=t.getAttribute("vert");return"vert"!==c&&"vert270"!==c&&"wordArtVert"!==c||(r.vert=c),Qn(t,"spAutoFit")&&(r.autoFit=!0),Object.keys(r).length>0?r:void 0}(r),g=function(e){const t=Qn(e,"spPr");if(!t)return;const r=Qn(t,"xfrm"),n=Ui(null==r?void 0:r.getAttribute("rot"));return void 0!==n&&0!==n&&(Math.round(n/6e4)%360+360)%360||void 0}(r);return{width:a,height:s,blocks:h,...d?{floating:d}:{},...void 0!==g?{rotation:g}:{},...c?{name:c}:{},...u?{alt:u}:{},...p?{shape:p}:{},...m?{body:m}:{}}}function ro(e){let t;for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const i=n;if("Choice"!==i.localName)continue;const o=Qn(i,"drawing");if(!o)continue;void 0===t&&(t=o);const a=i.getAttribute("Requires")??"";if(/\bwps\b/.test(a))return o}return t}function no(e){const t=$n(e,"id");if(!t)return;if("bookmarkEnd"===e.localName)return{kind:"end",docxId:t};const r=$n(e,"name")??void 0,n=$n(e,"colFirst"),i=$n(e,"colLast"),o=null!==n?Number.parseInt(n,10):void 0,a=null!==i?Number.parseInt(i,10):void 0;return{kind:"start",docxId:t,...void 0!==r?{name:r}:{},...void 0===o||Number.isNaN(o)?{}:{colFirst:o},...void 0===a||Number.isNaN(a)?{}:{colLast:a}}}function io(e){const t=$n(e,"id");if(t)return{kind:"commentRangeEnd"===e.localName?"end":"start",docxId:t}}async function oo(e,t,r,n,i){const o=[];let a,s,l,c=0;const u=[],d=[],f=e=>{o.push(e),c+=e.length},h=e.childNodes;for(let p=0;p<h.length;p+=1){const e=h[p];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if(o.namespaceURI===jn)if("t"===o.localName)f(o.textContent??"");else if("tab"===o.localName)f("\t");else if("noBreakHyphen"===o.localName)f("‑");else if("softHyphen"===o.localName)f("­");else if("br"===o.localName)f("page"===$n(o,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===o.localName)continue;if("bookmarkStart"===o.localName||"bookmarkEnd"===o.localName){const e=no(o);e&&u.push({offset:c,marker:e});continue}if("commentRangeStart"===o.localName||"commentRangeEnd"===o.localName){const e=io(o);e&&d.push({offset:c,marker:e});continue}if("proofErr"===o.localName||"commentReference"===o.localName||"permStart"===o.localName||"permEnd"===o.localName)continue;if("cr"===o.localName)f("\n");else if("drawing"===o.localName){const e=await Xi(o,t,r,n);if(e.image)f(e.text),a=e.image;else{const e=await to(o,i);e&&(f(""),s=e)}}else if("pict"===o.localName){const e=await Qi(o,t,r,n);e&&(f(""),a=e)}else if("sym"===o.localName){const e=$n(o,"font")??"",t=$n(o,"char")??"",r=parseInt(t,16);f(Number.isFinite(r)&&r>0?String.fromCodePoint(r):"?"),l={font:e,char:t}}}else if("AlternateContent"===o.localName){const e=ro(o);if(e){const t=await to(e,i);t&&(f(""),s=t)}}}return{text:o.join(""),image:a,...s?{textBox:s}:{},...u.length>0?{innerBookmarks:u}:{},...d.length>0?{innerComments:d}:{},...l?{sym:l}:{}}}async function ao(e,t,r,n,i,o,a,s){var l,c,u;const d=[],f=[],h=(e,t)=>{const r=$n(e,"fldCharType"),n=$n(e,"fldLock"),i=$n(e,"dirty"),o="true"===n||"1"===n,a="true"===i||"1"===i;if("begin"===r)d.push({text:"",fieldChar:{kind:"begin",...o?{fieldLock:!0}:{},...a?{dirty:!0}:{}},...t?{styles:t}:{}}),f.push({beginIndex:d.length-1,instruction:"",...t?{beginStyles:t}:{}});else if("separate"===r)d.push({text:"",fieldChar:{kind:"separate"},...t?{styles:t}:{}});else if("end"===r){d.push({text:"",fieldChar:{kind:"end"},...t?{styles:t}:{}});const e=f.pop();e&&(e=>{var t;const r=/\bNUMPAGES\b/i.test(e.instruction)?"NUMPAGES":/\bPAGE\b/i.test(e.instruction)?"PAGE":null;if(!r)return;const n=d.slice(e.beginIndex);if(n.some(e=>e.bookmark))return;const i=n.filter(e=>!e.fieldChar&&void 0===e.fieldInstruction),o=i.map(e=>e.text).join("")||"1",a=(null==(t=i.find(e=>e.styles))?void 0:t.styles)??e.beginStyles;d.length=e.beginIndex,d.push({text:o,...a?{styles:a}:{},field:{type:r}})})(e)}},p=(e,t)=>{const r=e.textContent??"";d.push({text:"",fieldInstruction:r,...t?{styles:t}:{}});const n=f[f.length-1];n&&(n.instruction+=r)};for(let m=0;m<e.childNodes.length;m+=1){const f=e.childNodes[m];if((null==f?void 0:f.nodeType)!==f.ELEMENT_NODE)continue;const g=f;if(g.namespaceURI===jn){if("bookmarkStart"===g.localName||"bookmarkEnd"===g.localName){const e=no(g);if(!e)continue;d.push({text:"",bookmark:e});continue}if("commentRangeStart"===g.localName||"commentRangeEnd"===g.localName){const e=io(g);if(!e)continue;d.push({text:"",comment:e});continue}if("r"===g.localName){const e=Si(Xn(g,jn,"rPr"),o);if(Wn(g,jn,"fldChar").length>0||Wn(g,jn,"instrText").length>0){for(let t=0;t<g.childNodes.length;t+=1){const r=g.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;n.namespaceURI===jn&&("fldChar"===n.localName?h(n,e):"instrText"===n.localName&&p(n,e))}continue}const t=Xn(g,jn,"footnoteReference");if(t){const r=$n(t,"id");if(!r)continue;const n=$n(t,"customMarkFollows");let i=e;(l=i??(i={})).styleId??(l.styleId="footnoteReference"),void 0===i.superscript&&(i.superscript=!0),d.push({text:"?",styles:i,footnoteReference:{docxId:r,...n?{customMark:n}:{}}});continue}const u=Xn(g,jn,"endnoteReference");if(u){const t=$n(u,"id");if(!t)continue;const r=$n(u,"customMarkFollows");let n=e;(c=n??(n={})).styleId??(c.styleId="endnoteReference"),void 0===n.superscript&&(n.superscript=!0),d.push({text:"?",styles:n,endnoteReference:{docxId:t,...r?{customMark:r}:{}}});continue}const{text:f,image:m,textBox:b,innerBookmarks:v,innerComments:y,sym:w}=await oo(g,r,n,i,s);let _=e;w&&!(null==_?void 0:_.fontFamily)&&((_??(_={})).fontFamily=w.font),a&&((_??(_={})).link=a);const E=[...(v??[]).map(e=>({offset:e.offset,run:{text:"",bookmark:e.marker}})),...(y??[]).map(e=>({offset:e.offset,run:{text:"",comment:e.marker}}))];if(E.length>0&&!m&&!b){E.sort((e,t)=>e.offset-t.offset);let e=0;for(const r of E){const t=f.slice(e,r.offset);t.length>0&&d.push({text:t,..._?{styles:_}:{}}),d.push(r.run),e=r.offset}const t=f.slice(e);t.length>0&&d.push({text:t,..._?{styles:_}:{}});continue}if(0===f.length&&!m&&!b)continue;if(d.push({text:f,...m?{image:m}:{},...b?{textBox:b}:{},...w?{sym:w}:{},..._?{styles:_}:{}}),v)for(const r of v)d.push({text:"",bookmark:r.marker});continue}if("fldSimple"===g.localName){const e=g.getAttribute("w:instr")??g.getAttributeNS(jn,"instr")??g.getAttribute("instr")??"",l=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,c=await ao(g,t,r,n,i,o,a,s);if(l){const e=c.map(e=>e.text).join("")||"1",t=null==(u=c.find(e=>e.styles))?void 0:u.styles;d.push({text:e,styles:t,field:{type:l}})}else d.push({text:"",fieldChar:{kind:"begin"}}),d.push({text:"",fieldInstruction:e}),d.push({text:"",fieldChar:{kind:"separate"}}),d.push(...c),d.push({text:"",fieldChar:{kind:"end"}});continue}if("hyperlink"===g.localName){let e=n.get(g.getAttribute("r:id")??g.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;if(!e){const t=$n(g,"anchor");t&&(e=`#${t}`)}d.push(...await ao(g,t,r,n,i,o,e,s))}}}return d}function so(e){if(!e)return;const t=$n(e,"type"),r=$n(e,"w");if("auto"===t)return"auto";if("pct"===t){if(!r)return;const e=r.trim().endsWith("%")?Number.parseFloat(r):Number(r)/50;return Number.isFinite(e)?Math.round(1e4*e)/1e4+"%":void 0}return ci(r)}function lo(e,t){const r=$n(Xn(e,jn,t),"val"),n=r?Number(r):Number.NaN;return Number.isFinite(n)&&n>0?Math.floor(n):void 0}function co(e,t){if(!e)return;const r=new Set(t),n=new nn,i=[],o=e.childNodes;for(let a=0;a<o.length;a+=1){const e=o[a];(null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&e.namespaceURI===jn&&r.has(e.localName??"")&&i.push(n.serializeToString(e))}return i.length>0?i:void 0}function uo(e){if(!e)return;const t=t=>ci($n(Xn(e,jn,t),"w")),r={},n=t("top"),i=t("right"),o=t("bottom"),a=t("left"),s=t("start"),l=t("end");return void 0!==n&&(r.top=n),void 0!==i&&(r.right=i),void 0!==o&&(r.bottom=o),void 0!==a&&(r.left=a),void 0!==s&&(r.start=s),void 0!==l&&(r.end=l),Object.keys(r).length>0?r:void 0}function fo(e,t){const r={};t&&(r.styleId=t);const n=$n(Xn(e,jn,"tblCaption"),"val");n&&(r.altTitle=n);const i=$n(Xn(e,jn,"tblDescription"),"val");i&&(r.altDescription=i);const o=so(Xn(e,jn,"tblW"));void 0!==o&&(r.width=o);const a=so(Xn(e,jn,"tblInd"));void 0!==a&&(r.indentLeft=a);const s=$n(Xn(e,jn,"jc"),"val");"left"!==s&&"center"!==s&&"right"!==s||(r.align=s);const l=function(e){const t=$n(Xn(e,jn,"tblLayout"),"type");return"fixed"===t||"autofit"===t?t:void 0}(e);l&&(r.layout=l);const c=so(Xn(e,jn,"tblCellSpacing"));void 0!==c&&(r.cellSpacing=c);const u=uo(Xn(e,jn,"tblCellMar"));u&&(r.defaultCellMargins=u);const d=e?Jn(e,"bidiVisual"):void 0;void 0!==d&&(r.bidiVisual=d);const f=$n(Xn(e,jn,"tblOverlap"),"val");f&&(r.tblOverlap=f);const h=function(e){const t=Xn(e,jn,"tblpPr");if(!t||!t.attributes||0===t.attributes.length)return;const r={};for(let n=0;n<t.attributes.length;n+=1){const e=t.attributes.item(n);(null==e?void 0:e.namespaceURI)!==jn&&"w"!==(null==e?void 0:e.prefix)||(r[e.localName||e.name.replace(/^w:/,"")]=e.value)}return Object.keys(r).length>0?r:void 0}(e);h&&(r.floating=h);const p=co(e,["tblPrChange"]);return p&&(r.revisionXml=p),_i(r)}function ho(e){if(!e)return;const t={},r=lo(e,"gridBefore");void 0!==r&&(t.gridBefore=r);const n=lo(e,"gridAfter");void 0!==n&&(t.gridAfter=n);const i=so(Xn(e,jn,"wBefore"));void 0!==i&&(t.widthBefore=i);const o=so(Xn(e,jn,"wAfter"));void 0!==o&&(t.widthAfter=o);const a=Xn(e,jn,"trHeight"),s=ci($n(a,"val"));void 0!==s&&(t.height=s);const l=$n(a,"hRule");"auto"!==l&&"exact"!==l&&"atLeast"!==l||(t.heightRule=l);const c=so(Xn(e,jn,"tblCellSpacing"));void 0!==c&&(t.cellSpacing=c);const u=Jn(e,"cantSplit");void 0!==u&&(t.cantSplit=u);const d=Jn(e,"hidden");void 0!==d&&(t.hidden=d);const f=co(e,["trPrChange","ins","del"]);return f&&(t.revisionXml=f),_i(t)}function po(e){if(!e)return 1;const t=$n(Xn(e,jn,"gridSpan"),"val"),r=t?Number(t):1;return Number.isFinite(r)&&r>1?Math.floor(r):1}function mo(e){if(!e)return;const t=Xn(e,jn,"vMerge");if(!t)return;return"restart"===$n(t,"val")?"restart":"continue"}function go(e,t){if(!e){if(!t)return;return _i({paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,paddingStart:t.start,paddingEnd:t.end})}const r={...void 0!==(null==t?void 0:t.top)?{paddingTop:t.top}:{},...void 0!==(null==t?void 0:t.right)?{paddingRight:t.right}:{},...void 0!==(null==t?void 0:t.bottom)?{paddingBottom:t.bottom}:{},...void 0!==(null==t?void 0:t.left)?{paddingLeft:t.left}:{},...void 0!==(null==t?void 0:t.start)?{paddingStart:t.start}:{},...void 0!==(null==t?void 0:t.end)?{paddingEnd:t.end}:{}},n=Ni(Xn(e,jn,"shd"));n&&(r.shading=n);const i=Xn(e,jn,"tcW"),o=$n(i,"type"),a=$n(i,"w");if("dxa"===o){const e=ci(a);void 0!==e&&(r.width=e)}else if("pct"===o&&a){const e=Number(a);Number.isFinite(e)&&(r.width=Math.round(e/50*1e4)/1e4+"%")}const s=uo(Xn(e,jn,"tcMar"));s&&(void 0!==s.top&&(r.paddingTop=s.top),void 0!==s.bottom&&(r.paddingBottom=s.bottom),void 0!==s.left&&(r.paddingLeft=s.left),void 0!==s.right&&(r.paddingRight=s.right),void 0!==s.start&&(r.paddingStart=s.start),void 0!==s.end&&(r.paddingEnd=s.end));const l=function(e){if(!e)return;const t=$n(Xn(e,jn,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);l&&(r.verticalAlign=l);const c=Yn($n(Xn(e,jn,"textDirection"),"val"));c&&(r.textDirection=c);const u=Jn(e,"noWrap");void 0!==u&&(r.noWrap=u);const d=Jn(e,"tcFitText");void 0!==d&&(r.fitText=d);const f=Jn(e,"hideMark");void 0!==f&&(r.hideMark=f);const h=$n(Xn(e,jn,"headers"),"val");h&&(r.headers=h);const p=co(e,["tcPrChange","cellIns","cellDel","cellMerge"]);p&&(r.revisionXml=p);for(const[m,g]of Object.entries(function(e){return e?ki(Xn(e,jn,"tcBorders")):{}}(e)))g&&(r[m]=g);return _i(r)}function bo(e){const t=Xn(e,jn,"trPr");return!!t&&!0===Jn(t,"tblHeader")}function vo(e,t){var r,n;const i=e=>e.style??(e.style={}),o=e.length-1;for(let a=0;a<e.length;a+=1){const r=t[a];r&&(0===a&&r.before&&(i(e[a]).spacingBefore=0),a===o&&r.after&&(i(e[a]).spacingAfter=0))}for(let a=0;a<o;a+=1){if(!(null==(r=t[a])?void 0:r.after)||!(null==(n=t[a+1])?void 0:n.before))continue;const o=i(e[a]),s=i(e[a+1]);(o.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:o.spacingAfter=0}}function yo(e,t,r,n,i,o,a){const s=i.firstRow&&0===e,l=i.lastRow&&e===r-1&&0!==e,c=i.firstCol&&0===t,u=i.lastCol&&t===n-1&&0!==t,d=[];if(!i.noHBand&&!s&&!l){const t=e-(i.firstRow?1:0),r=Math.floor(t/Math.max(1,o))%2;d.push(0===r?"band1Horz":"band2Horz")}if(!i.noVBand&&!c&&!u){const e=t-(i.firstCol?1:0),r=Math.floor(e/Math.max(1,a))%2;d.push(0===r?"band1Vert":"band2Vert")}return u&&d.push("lastCol"),c&&d.push("firstCol"),l&&d.push("lastRow"),s&&d.push("firstRow"),s&&c&&d.push("nwCell"),s&&u&&d.push("neCell"),l&&c&&d.push("swCell"),l&&u&&d.push("seCell"),d}function wo(e,t){const r={};if(!t)return r;for(const n of e){const e=t[n];e&&(e.shading&&(r.shading=e.shading),e.textStyle&&(r.textStyle={...r.textStyle,...e.textStyle}),e.borders&&(r.borders={...r.borders,...e.borders}),e.paragraphStyle&&(r.paragraphStyle={...r.paragraphStyle,...e.paragraphStyle}),e.rowStyle&&(r.rowStyle={...r.rowStyle,...e.rowStyle}))}return r}function _o(e,t){if(t&&0!==Object.keys(t).length)for(const r of e)for(const e of r.runs)e.styles={...t,...e.styles}}async function Eo(e,t,r,n,i,o,a){var s,l;const c=[],u=Xn(e,jn,"tblGrid");if(u)for(const I of Wn(u,jn,"gridCol")){const e=ci($n(I,"w"));void 0!==e&&c.push(e)}const d=Xn(u,jn,"tblGridChange"),f=Xn(e,jn,"tblPr"),h=$n(Xn(f,jn,"tblStyle"),"val"),p=h&&(null==(s=null==a?void 0:a[h])?void 0:s.paragraphStyle)?a[h].paragraphStyle:void 0,m=(g=Xn(f,jn,"tblBorders"))?{...ki(g),borderInsideH:Ti(Xn(g,jn,"insideH")),borderInsideV:Ti(Xn(g,jn,"insideV"))}:{};var g;const b=h?null==(l=null==a?void 0:a[h])?void 0:l.tableStyle:void 0,v=fo(f,h??void 0),y=null==v?void 0:v.defaultCellMargins,w=(null==b?void 0:b.conditionalFormats)??void 0,_=function(e){const t=Xn(e,jn,"tblLook"),r=e=>{const r=$n(t,e);return null===r||""===r?void 0:Kn(r)},n=$n(t,"val"),i=n?Number.parseInt(n,16):Number.NaN,o=e=>Number.isFinite(i)?0!==(i&e):void 0;return{firstRow:r("firstRow")??o(32)??!0,lastRow:r("lastRow")??o(64)??!1,firstCol:r("firstColumn")??o(128)??!0,lastCol:r("lastColumn")??o(256)??!1,noHBand:r("noHBand")??o(512)??!1,noVBand:r("noVBand")??o(1024)??!1}}(f),E=(null==b?void 0:b.rowBandSize)??1,N=(null==b?void 0:b.colBandSize)??1,x=Wn(e,jn,"tr"),S=x.length,T=c.length>0?c.length:x.reduce((e,t)=>Math.max(e,Wn(t,jn,"tc").length),0),k=[];for(let I=0;I<x.length;I+=1){const e=x[I],a=Xn(e,jn,"trPr"),s=Xn(a,jn,"cnfStyle"),l=[];"1"===$n(s,"firstRow")&&l.push("firstRow"),"1"===$n(s,"lastRow")&&l.push("lastRow");const c=Wn(e,jn,"tc"),u=[];for(let m=0;m<c.length;m+=1){const e=c[m],a=[],s=[],d=Xn(e,jn,"tcPr");for(const l of Wn(e,jn,"p"))a.push(await To(l,t,r,n,i,o,p)),s.push(Ii(Xn(l,jn,"pPr")));vo(a,s);const f=po(d),h=mo(d),g=go(d,y),b=wo([...yo(I,m,S,T,_,E,N),...l],w);if(_o(a,b.textStyle),b.paragraphStyle){const e=b.paragraphStyle;for(const t of a)t.style={...e,...t.style}}const v=zn(a.length>0?a:[Fn([{text:""}])],f,"restart"===h?{rowSpan:1,vMerge:h}:h?{vMerge:h}:void 0),x={...g??{}},k=(null==g?void 0:g.shading)??b.shading;if(k&&(x.shading=k),b.borders)for(const t of["borderTop","borderRight","borderBottom","borderLeft"]){const e=b.borders[t];void 0===x[t]&&e&&(x[t]=e)}Object.keys(x).length>0&&(v.style=x),"continue"===h&&(v.blocks=[]),u.push(v)}const d=Un(u,bo(e)?{isHeader:!0}:void 0),f=ho(a);if(f&&(d.style=f),w){const e=yo(I,0,S,Math.max(1,T),_,E,N).filter(e=>"firstRow"===e||"lastRow"===e||"band1Horz"===e||"band2Horz"===e),t=wo([...l,...e],w);t.rowStyle&&(d.style={...t.rowStyle,...d.style})}const h=Xn(e,jn,"tblPrEx");h&&(d.tblPrExXml=(new nn).serializeToString(h)),k.push(d)}!function(e,t){if(0===Object.keys(t).length)return;const r=e.length-1;for(let n=0;n<=r;n+=1){const i=e[n],o=i.cells.length-1;for(let e=0;e<=o;e+=1){const a=i.cells[e],s=a.style??{};0===n&&void 0===s.borderTop&&t.borderTop&&(s.borderTop=t.borderTop),n===r&&void 0===s.borderBottom&&t.borderBottom&&(s.borderBottom=t.borderBottom),0===e&&void 0===s.borderLeft&&t.borderLeft&&(s.borderLeft=t.borderLeft),e===o&&void 0===s.borderRight&&t.borderRight&&(s.borderRight=t.borderRight),n<r&&void 0===s.borderBottom&&t.borderInsideH&&(s.borderBottom=t.borderInsideH),e<o&&void 0===s.borderRight&&t.borderInsideV&&(s.borderRight=t.borderInsideV),Object.keys(s).length>0&&a.style!==s&&(a.style=s)}}}(k,m);for(let I=0;I<k.length;I+=1){const e=k[I];for(let t=0;t<e.cells.length;t+=1){const r=e.cells[t];if("restart"!==r.vMerge)continue;let n=1;for(let e=I+1;e<k.length;e+=1){const r=k[e].cells[t];if(!r||"continue"!==r.vMerge)break;n+=1}n>1&&(r.rowSpan=n)}}const A=function(e,t){const r={id:`table:${In}`,type:"table",rows:e,gridCols:t};return In+=1,r}(k,c.length>0?c:void 0);return v&&(A.style=v),A.style?A.style.tblLook=_:h&&(A.style={tblLook:_}),d&&(A.tblGridChangeXml=(new nn).serializeToString(d)),A}function No(e,t,r,n){var i;const o=Fn(e.length>0?e.map(e=>({text:e.text,styles:e.styles,image:e.image})):[{text:"",styles:n}]);e.forEach((e,t)=>{e.field&&(o.runs[t].field={...e.field}),e.fieldChar&&(o.runs[t].fieldChar={...e.fieldChar}),void 0!==e.fieldInstruction&&(o.runs[t].fieldInstruction=e.fieldInstruction),e.textBox&&(o.runs[t].textBox=e.textBox),e.footnoteReference&&(o.runs[t].__importedFootnoteRef={...e.footnoteReference}),e.endnoteReference&&(o.runs[t].__importedEndnoteRef={...e.endnoteReference}),e.bookmark&&(o.runs[t].__importedBookmark={...e.bookmark}),e.comment&&(o.runs[t].__importedComment={...e.comment}),e.sym&&(o.runs[t].sym={...e.sym})}),o.style=t?{...t}:void 0;for(const a of o.runs)a.styles=xi(a.styles,null==(i=o.style)?void 0:i.styleId);return o.list=r?{...r}:void 0,o}function xo(e){return e.some(e=>e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.text.replace(/\s/g,"").length>0)}async function So(e,t,r,n,i,o,a){const s=Xn(e,jn,"pPr"),l=await ao(e,t,r,n,i,o,void 0,e=>async function(e,t,r,n,i,o){const a=[];for(let s=0;s<e.childNodes.length;s+=1){const l=e.childNodes[s];if((null==l?void 0:l.nodeType)!==l.ELEMENT_NODE)continue;const c=l;if(c.namespaceURI===jn)if("p"===c.localName){const e=await So(c,t,r,n,i,o);for(const t of e.paragraphs)a.push(t)}else"tbl"===c.localName&&a.push(await Eo(c,t,r,n,i,o))}return a}(e,t,r,n,i,o)),c=Ai(Ci(s)),u=Si(Xn(s,jn,"rPr"),o),d=function(e,t){if(!e)return;const r=Xn(e,jn,"numPr");if(!r)return;const n=$n(Xn(r,jn,"numId"),"val");if(!n)return;const i=$n(Xn(r,jn,"ilvl"),"val")??"0",o=Number(i),a=t.numToAbstractId.get(n),s=a?`${a}:${i}`:void 0,l=s?t.abstractIndents.get(s):void 0,c=(s?t.abstractSuffixes.get(s):void 0)??"tab",u=s?t.abstractFormats.get(s):void 0,d=s?t.abstractBulletGlyphs.get(s):void 0,f=s?t.abstractBulletFonts.get(s):void 0,h=`${n}:${i}`,p=!t.seenInstances.has(h);let m;if(t.seenInstances.add(h),p){const e=t.numStartOverrides.get(h),r=s?t.abstractStarts.get(s):void 0,n=e??r??1;1!==n&&(m=n)}return{list:{kind:t.numKinds.get(n)??"ordered",level:Number.isFinite(o)?o:0,suffix:c,...void 0!==u&&{format:u},...void 0!==m&&{startAt:m},...void 0!==d&&{bulletGlyph:d},...void 0!==f&&{bulletFont:f}},indent:l}}(s,t),f=null==d?void 0:d.list;let h=c;if(null==d?void 0:d.indent){const{left:e,hanging:t}=d.indent,r=c??{};h={...r,...void 0===r.indentLeft&&void 0!==e?{indentLeft:e}:{},...void 0===r.indentHanging&&void 0!==t?{indentHanging:t}:{}}}const p=function(e){if(!e)return;const t=Nn(e,Hn),r=Nn(void 0,Hn);return wi({styleId:e.styleId,align:t.align!==r.align?t.align:void 0,spacingBefore:t.spacingBefore!==r.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==r.spacingAfter?t.spacingAfter:void 0,contextualSpacing:void 0!==e.contextualSpacing||t.contextualSpacing!==r.contextualSpacing?t.contextualSpacing:void 0,lineHeight:t.lineHeight!==r.lineHeight?t.lineHeight:void 0,lineRule:t.lineRule??void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:void 0!==e.snapToGrid||t.snapToGrid!==r.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==r.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==r.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==r.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==r.indentHanging?t.indentHanging:void 0,pageBreakBefore:void 0!==e.pageBreakBefore||t.pageBreakBefore!==r.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:void 0!==e.keepWithNext||t.keepWithNext!==r.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:void 0!==e.keepLinesTogether||t.keepLinesTogether!==r.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:void 0!==e.widowControl||t.widowControl!==r.widowControl?t.widowControl:void 0,shading:e.shading??void 0,borderTop:e.borderTop??void 0,borderRight:e.borderRight??void 0,borderBottom:e.borderBottom??void 0,borderLeft:e.borderLeft??void 0,tabs:e.tabs??void 0,textDirection:e.textDirection??void 0,outlineLevel:e.outlineLevel??void 0})}(a?{...a,...h??{}}:h),m=function(e,t){var r;const n=Xn(e,jn,"framePr");if(!n)return null;const i=$n(n,"dropCap");if(!i||"none"===i)return null;const o=t.map(e=>e.text).join("");if(0===o.length)return null;const a=Number($n(n,"lines"));return{text:o,lines:Number.isFinite(a)&&a>0?a:3,type:"margin"===i?"margin":"drop",style:null==(r=t[0])?void 0:r.styles}}(s,l);if(m)return{paragraphs:[],pageBreakAfter:!1,dropCapFrame:m};const{segments:g,hasPageBreak:b}=function(e){const t=[[]];let r=!1;const n=(e,r)=>{(0!==r.length||e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment)&&t[t.length-1].push({...e,text:r})};for(const i of e){if(!i.text.includes("\f")){n(i,i.text);continue}const e=i.text.split("\f");e.forEach((o,a)=>{n(i,o),a<e.length-1&&(r=!0,t.push([]))})}return{segments:t,hasPageBreak:r}}(l);if(!b)return{paragraphs:[No(l,p,f,u)],pageBreakAfter:!1};const v=[];let y=!1;for(let w=0;w<g.length;w+=1){const e=g[w];if(w>0&&(y=!0),!xo(e))continue;const t=y?{...p??{},pageBreakBefore:!0}:p;v.push(No(e,t,f,u)),y=!1}return{paragraphs:v,pageBreakAfter:y}}async function To(e,t,r,n,i,o,a){return(await So(e,t,r,n,i,o,a)).paragraphs[0]??Fn([{text:""}])}async function ko(e,t,r,n,i,o,a){if(!e)return[];const s=(new on).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=[];for(let c=0;c<s.childNodes.length;c+=1){const e=s.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const u=e;"p"===u.localName&&u.namespaceURI===jn?l.push(await To(u,t,r,n,i,o)):"tbl"===u.localName&&u.namespaceURI===jn&&l.push(await Eo(u,t,r,n,i,o,a))}return l}const Ao=new Set(["separator","continuationSeparator","continuationNotice"]);const Io=new Set(["separator","continuationSeparator","continuationNotice"]);const Co=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function Ro(e){if(e<=0)return String(e);let t=e,r="";for(const[n,i]of Co)for(;t>=n;)r+=i,t-=n;return r}function Do(e){if(e<=0)return String(e);let t=e,r="";for(;t>0;){r="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+r,t=Math.floor((t-1)/26)}return r}const Oo=["*","†","‡","§","¶","#"];function Lo(e,t="decimal"){switch(t){case"lowerRoman":return Ro(e);case"upperRoman":return Ro(e).toUpperCase();case"lowerLetter":return Do(e);case"upperLetter":return Do(e).toUpperCase();case"symbol":{const t=(e-1)%Oo.length,r=Math.floor((e-1)/Oo.length)+1;return Oo[t].repeat(r)}default:return String(e)}}function Mo(e){var t,r;const n=e.footnotes;if(!n||0===Object.keys(n.items).length)return e;const i=(null==(t=n.settings)?void 0:t.numberFormat)??"decimal",o=(null==(r=n.settings)?void 0:r.startAt)??1,a=new Set,s=new Map;let l=o-1;for(const{run:h}of function*(e){const t=xn(e);for(const r of t){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const t of e)for(const e of t)for(const t of Sn(e))for(const e of t.runs)e.footnoteReference&&(yield{paragraph:t,run:e})}}(e)){const e=h.footnoteReference;e&&(a.add(e.footnoteId),e.customMark?s.set(e.footnoteId,e.customMark):s.has(e.footnoteId)||(l+=1,s.set(e.footnoteId,Lo(l,i))))}let c=!1;const u=xn(e).map(e=>{const t=e=>{if(!e)return e;let t=!1;const r=e.map(e=>{if("paragraph"===e.type){const r=Po(e,s);return r!==e&&(t=!0),r}let r=!1;const n=e.rows.map(e=>{let t=!1;const n=e.cells.map(e=>{let r=!1;const n=e.blocks.map(e=>{const t=Po(e,s);return t!==e&&(r=!0),t});return r?(t=!0,{...e,blocks:n}):e});return t?(r=!0,{...e,cells:n}):e});return r?(t=!0,{...e,rows:n}):e});return t?(c=!0,r):e};return{...e,blocks:t(e.blocks)??e.blocks,header:t(e.header),firstPageHeader:t(e.firstPageHeader),evenPageHeader:t(e.evenPageHeader),footer:t(e.footer),firstPageFooter:t(e.firstPageFooter),evenPageFooter:t(e.evenPageFooter)}}),d={};let f=!1;for(const[h,p]of Object.entries(n.items))a.has(h)?d[h]=p:f=!0;return c||f?{...e,sections:c?u:e.sections,footnotes:{...n,items:f?d:n.items}}:e}function Po(e,t){let r=!1;const n=e.runs.map(e=>{if(!e.footnoteReference)return e;const n=t.get(e.footnoteReference.footnoteId);return void 0===n||e.text===n?e:(r=!0,{...e,text:n})});return r?{...e,runs:n}:e}function Bo(e){var t,r;const n=e.endnotes;if(!n||0===Object.keys(n.items).length)return e;const i=(null==(t=n.settings)?void 0:t.numberFormat)??"decimal",o=(null==(r=n.settings)?void 0:r.startAt)??1,a=new Set,s=new Map;let l=o-1;for(const{run:h}of function*(e){const t=xn(e);for(const r of t){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const t of e)for(const e of t)for(const t of Sn(e))for(const e of t.runs)e.endnoteReference&&(yield{paragraph:t,run:e})}}(e)){const e=h.endnoteReference;e&&(a.add(e.endnoteId),e.customMark?s.set(e.endnoteId,e.customMark):s.has(e.endnoteId)||(l+=1,s.set(e.endnoteId,Lo(l,i))))}let c=!1;const u=xn(e).map(e=>{const t=e=>{if(!e)return e;let t=!1;const r=e.map(e=>{if("paragraph"===e.type){const r=Fo(e,s);return r!==e&&(t=!0),r}let r=!1;const n=e.rows.map(e=>{let t=!1;const n=e.cells.map(e=>{let r=!1;const n=e.blocks.map(e=>{const t=Fo(e,s);return t!==e&&(r=!0),t});return r?(t=!0,{...e,blocks:n}):e});return t?(r=!0,{...e,cells:n}):e});return r?(t=!0,{...e,rows:n}):e});return t?(c=!0,r):e};return{...e,blocks:t(e.blocks)??e.blocks,header:t(e.header),firstPageHeader:t(e.firstPageHeader),evenPageHeader:t(e.evenPageHeader),footer:t(e.footer),firstPageFooter:t(e.firstPageFooter),evenPageFooter:t(e.evenPageFooter)}}),d={};let f=!1;for(const[h,p]of Object.entries(n.items))a.has(h)?d[h]=p:f=!0;return c||f?{...e,sections:c?u:e.sections,endnotes:{...n,items:f?d:n.items}}:e}function Fo(e,t){let r=!1;const n=e.runs.map(e=>{if(!e.endnoteReference)return e;const n=t.get(e.endnoteReference.endnoteId);return void 0===n||e.text===n?e:(r=!0,{...e,text:n})});return r?{...e,runs:n}:e}const zo=new Set(["_GoBack"]);function Uo(e,t,r){if("paragraph"===e.type){let n=0;const i=[];for(const o of e.runs){const a=o.__importedBookmark;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:n,seq:r.value}}),r.value+=1):(n+=o.text.length,i.push(o))}return void(i.length!==e.runs.length&&(e.runs=i.length>0?i:[Pn("")]))}for(const n of e.rows)for(const e of n.cells)for(const n of e.blocks)Uo(n,t,r)}function Ho(e){var t;const r=[],n={value:0},i=e=>{null==e||e.forEach(e=>Uo(e,r,n))};for(const u of e)i(u.blocks),i(u.header),i(u.firstPageHeader),i(u.evenPageHeader),i(u.footer),i(u.firstPageFooter),i(u.evenPageFooter);if(0===r.length)return;const o=new Map,a=new Map;for(const u of r){const e="start"===u.marker.kind?o:a,t=e.get(u.marker.docxId);t?t.push(u):e.set(u.marker.docxId,[u])}const s={},l=[],c=r.filter(e=>"start"===e.marker.kind);for(const u of c){const{marker:e,anchor:r}=u,n=e.name;if(!n||zo.has(n))continue;const i=Number.parseInt(e.docxId,10),o=null==(t=a.get(e.docxId))?void 0:t.shift(),c=Ln(),d={id:c,name:n,start:r};n.startsWith("_")&&(d.hidden=!0),Number.isNaN(i)||(d.docxIdHint=i),void 0!==e.colFirst&&(d.colFirst=e.colFirst),void 0!==e.colLast&&(d.colLast=e.colLast),o&&(d.end=o.anchor),s[c]=d,l.push(c)}return 0!==l.length?{items:s,order:l}:void 0}function qo(e,t,r){if("paragraph"===e.type){let n=0;const i=[];for(const o of e.runs){const a=o.__importedComment;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:n,seq:r.value}}),r.value+=1):(n+=o.text.length,i.push(o))}return void(i.length!==e.runs.length&&(e.runs=i.length>0?i:[Pn("")]))}for(const n of e.rows)for(const e of n.cells)for(const n of e.blocks)qo(n,t,r)}function jo(e){const t=[],r={value:0},n=e=>{null==e||e.forEach(e=>qo(e,t,r))};for(const o of e)n(o.blocks),n(o.header),n(o.firstPageHeader),n(o.evenPageHeader),n(o.footer),n(o.firstPageFooter),n(o.evenPageFooter);const i=new Map;for(const{marker:o,anchor:a}of t){const e=i.get(o.docxId)??{};"start"===o.kind?e.start=a:e.end=a,i.set(o.docxId,e)}return i}const Go="http://schemas.microsoft.com/office/word/2012/wordml";function Vo(e){let t="";for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const i=n;if(i.namespaceURI===jn){if("t"===i.localName){t+=i.textContent??"";continue}if("tab"===i.localName){t+="\t";continue}if("br"===i.localName||"cr"===i.localName){t+="\n";continue}}t+=Vo(i)}return t}function Wo(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function Zo(e,t){const r=new Map;if(!e)return r;const n=(new on).parseFromString(e,"application/xml").documentElement;if(!n)return r;const i=function(e){const t=new Map;if(!e)return t;const r=(new on).parseFromString(e,"application/xml").documentElement;if(!r)return t;for(const n of Wn(r,Go,"commentEx")){const e=n.getAttributeNS(Go,"paraId");if(!e)continue;const r=n.getAttributeNS(Go,"done");t.set(e,"1"===r||"true"===r)}return t}(t);for(const o of Wn(n,jn,"comment")){const e=$n(o,"id");if(null===e)continue;const t=$n(o,"author")??"",n=$n(o,"initials")??void 0,a=Wo($n(o,"date")),s=Wn(o,jn,"p"),l=s.map(e=>Vo(e)).join("\n").trim(),c=s.length>0?$n(s[0],"paraId")??void 0:void 0,u=void 0!==c?i.get(c):void 0;r.set(e,{author:t,...n?{initials:n}:{},...void 0!==a?{date:a}:{},text:l,...u?{resolved:u}:{},...c?{paraId:c}:{}})}return r}async function Yo(e,t={}){var r,n,o,a,s,l,c,u,d,f,h,p,m;null==(r=t.onProgress)||r.call(t,"opening-docx");const g=await i.loadAsync(e),b=await(null==(n=g.file("word/document.xml"))?void 0:n.async("string"));if(!b)throw new Error("Missing word/document.xml");const v=ri(await(null==(o=g.file("word/_rels/document.xml.rels"))?void 0:o.async("string"))),y=function(e){const t=new Map,r=new Map,n=new Map,i=new Map,o=new Map,a=new Map,s=new Map,l=new Map,c=new Map,u=new Map,d=new Set,f=()=>({abstractKinds:t,numKinds:r,abstractIndents:n,abstractSuffixes:i,abstractFormats:o,abstractStarts:a,abstractBulletGlyphs:s,abstractBulletFonts:l,numStartOverrides:c,numToAbstractId:u,seenInstances:d});if(!e)return f();const h=(new on).parseFromString(e,"application/xml").documentElement;if(!h)return f();const p=h.getElementsByTagNameNS(jn,"abstractNum");for(let g=0;g<p.length;g+=1){const e=p[g],r=$n(e,"abstractNumId");if(r)for(const c of Wn(e,jn,"lvl")){const e=$n(c,"ilvl")??"0",u=`${r}:${e}`,d=$n(Xn(c,jn,"numFmt"),"val");if(d){t.set(u,"bullet"===d?"bullet":"ordered"),"0"===e&&t.set(r,"bullet"===d?"bullet":"ordered");const n=yi[d];n&&o.set(u,n)}const f=$n(Xn(c,jn,"suff"),"val");"space"!==f&&"nothing"!==f&&"tab"!==f||i.set(u,f);const h=$n(Xn(c,jn,"start"),"val");if(null!=h){const e=parseInt(h,10);isNaN(e)||a.set(u,e)}if("bullet"===d){const e=$n(Xn(c,jn,"lvlText"),"val");e&&s.set(u,e)}const p=Xn(c,jn,"rPr"),m=Xn(p,jn,"rFonts"),g=$n(m,"ascii")??$n(m,"hAnsi");g&&l.set(u,g);const b=Xn(c,jn,"pPr"),v=Xn(b,jn,"ind");if(v){const e=$n(v,"left")??$n(v,"start"),t=$n(v,"hanging"),r=null!=e?li(e,0):void 0,i=null!=t?li(t,0):void 0;void 0===r&&void 0===i||n.set(u,{left:r,hanging:i})}}}const m=h.getElementsByTagNameNS(jn,"num");for(let g=0;g<m.length;g+=1){const e=m[g],n=$n(e,"numId"),i=$n(Xn(e,jn,"abstractNumId"),"val");if(n&&i){u.set(n,i),r.set(n,t.get(i)??"ordered");for(const t of Wn(e,jn,"lvlOverride")){const e=$n(t,"ilvl");if(!e)continue;const r=$n(Xn(t,jn,"startOverride"),"val");if(null!=r){const t=parseInt(r,10);isNaN(t)||c.set(`${n}:${e}`,t)}}}}return{abstractKinds:t,numKinds:r,abstractIndents:n,abstractSuffixes:i,abstractFormats:o,abstractStarts:a,abstractBulletGlyphs:s,abstractBulletFonts:l,numStartOverrides:c,numToAbstractId:u,seenInstances:d}}(await(null==(a=g.file("word/numbering.xml"))?void 0:a.async("string"))??null),w=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const r=(new on).parseFromString(e,"application/xml"),n=ci($n(Xn(r.documentElement,jn,"defaultTabStop"),"val"));void 0!==n&&(t.defaultTabStop=n),t.footnoteSettings=vi(Xn(r.documentElement,jn,"footnotePr")),t.endnoteSettings=vi(Xn(r.documentElement,jn,"endnotePr"));const i=Xn(r.documentElement,jn,"compat");if(i){const e=Xn(i,jn,"adjustLineHeightInTable");if(e){const r=$n(e,"val");t.adjustLineHeightInTable="0"!==r&&"false"!==r}}return t}(await(null==(s=g.file("word/settings.xml"))?void 0:s.async("string"))??null),_=await(null==(l=g.file("word/styles.xml"))?void 0:l.async("string"))??null,E=function(e){if(!e)return{fonts:{},colors:{}};const t=(new on).parseFromString(e,"application/xml").documentElement,r=t?Wn(t,Gn,"themeElements")[0]??null:null;return{fonts:si(r),colors:hi(r)}}(await(null==(c=g.file("word/theme/theme1.xml"))?void 0:c.async("string"))??null),N=function(e,t){if(!e)return;const r=(new on).parseFromString(e,"application/xml").documentElement;if(!r)return;const n=Xn(r,jn,"docDefaults"),i=Xn(Xn(n,jn,"pPrDefault"),jn,"pPr"),o=Xn(Xn(n,jn,"rPrDefault"),jn,"rPr"),a=i?{spacingBefore:0,spacingAfter:0,...Ai(Ci(i))}:Ai(Ci(i)),s=Si(o,t),l={};let c;for(const u of Wn(r,jn,"style")){const e=$n(u,"styleId"),r=$n(u,"type");if(!e||"paragraph"!==r&&"character"!==r&&"table"!==r)continue;const n=$n(Xn(u,jn,"name"),"val")??e,i=$n(Xn(u,jn,"basedOn"),"val")??void 0,o=$n(Xn(u,jn,"next"),"val")??void 0,d=Ai(Ci(Xn(u,jn,"pPr"))),f=Si(Xn(u,jn,"rPr"),t);let h;if("table"===r){const r=Xn(u,jn,"tblPr"),n=ci($n(Xn(r,jn,"tblInd"),"w")),i=e=>{const t=$n(Xn(r,jn,e),"val"),n=t?Number(t):Number.NaN;return Number.isFinite(n)&&n>0?Math.floor(n):void 0},o=i("tblStyleRowBandSize"),a=i("tblStyleColBandSize"),s={};for(const e of Wn(u,jn,"tblStylePr")){const r=$n(e,"type");if(!r)continue;const n=Xn(e,jn,"tcPr"),i=Ni(Xn(n,jn,"shd")),o=Si(Xn(e,jn,"rPr"),t),a=_i(ki(Xn(n,jn,"tcBorders"))),l=Ci(Xn(e,jn,"pPr")),c=Ri(Xn(e,jn,"trPr"));(i||o||a||l||c)&&(s[r]={...i?{shading:i}:{},...o?{textStyle:o}:{},...a?{borders:a}:{},...l?{paragraphStyle:l}:{},...c?{rowStyle:c}:{}})}h={styleId:e,indentLeft:n,...void 0!==o?{rowBandSize:o}:{},...void 0!==a?{colBandSize:a}:{},...Object.keys(s).length>0?{conditionalFormats:s}:{}}}const p="paragraph"===r&&Kn($n(u,"default"));p&&(c=e),l[e]={id:e,name:n,type:r,basedOn:i,nextStyle:o,paragraphStyle:"paragraph"===r&&p?Ei(a,d):d,textStyle:"paragraph"===r&&p?Ei(s,f):f,tableStyle:h}}return c&&l[c]?l:((a||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:a,textStyle:s}),_i(l))}(_,E);null==(u=t.onProgress)||u.call(t,"parsing-document");const x=(new on).parseFromString(b,"application/xml").getElementsByTagNameNS(jn,"body")[0];if(!x)return qn([Fn([{text:""}])]);const S={assets:{},byPath:new Map,nextId:1},T=[],k=[[]];let A=!1,I=null;const C=e=>{A&&(e.style={...e.style??{},pageBreakBefore:!0},A=!1),I&&"paragraph"===e.type&&(e.dropCap=I,I=null),k[k.length-1].push(e)};let R=0;for(let i=0;i<x.childNodes.length;i+=1){const e=x.childNodes[i];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===jn&&"sectPr"!==t.localName&&(R+=1)}}let D=0;const O=()=>{var e;D+=1,R>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",D/R))};for(let i=0;i<x.childNodes.length;i+=1){const e=x.childNodes[i];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===jn){if("sectPr"===t.localName)T.push(Li(t)),k.push([]),A=!1;else if("p"===t.localName){const e=await So(t,y,g,v,S,E);for(const t of e.paragraphs)C(t);e.dropCapFrame&&(I=e.dropCapFrame),e.pageBreakAfter&&(A=!0),O()}else"tbl"===t.localName&&(C(await Eo(t,y,g,v,S,E,N)),O());await ti(50,D)}}if(0===T.length){const e=Xn(x,jn,"sectPr");T.push(e?Li(e):{pageSettings:Mi(x),headerRIds:{},footerRIds:{}})}null==(d=t.onProgress)||d.call(t,"parsing-headers-footers");const L=[],M=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,P=T.filter(M).length;let B=0;const F=()=>{var e;B+=1,P>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",B/P))};for(let i=0;i<T.length;i+=1){const e=T[i],t=k[i]??[];Pi(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,w);const r=async t=>{var r;if(!t)return[];const n=v.get(t);if(!n)return[];let i=n.startsWith("/")?n.slice(1):n;i.startsWith("word/")||(i=`word/${n}`);const o=await(null==(r=g.file(i))?void 0:r.async("string")),a=await ni(g,i),s=await ko(o??null,y,g,a,S,E,N);return Pi(s,e.docGridLinePitchPx,e.docGridMode,e.docGridType,w),s},n=await r(e.headerRIds.default),o=await r(e.headerRIds.first),a=await r(e.headerRIds.even),s=await r(e.footerRIds.default),l=await r(e.footerRIds.first),c=await r(e.footerRIds.even);M(e)&&F(),await ti(2,B);const u=hn(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}});L.push({id:`section:${i+1}`,blocks:t.length>0?t:[Fn([{text:""}])],pageSettings:u,header:n.length>0?n:void 0,firstPageHeader:o.length>0?o:void 0,evenPageHeader:a.length>0?a:void 0,footer:s.length>0?s:void 0,firstPageFooter:l.length>0?l:void 0,evenPageFooter:c.length>0?c:void 0})}const z=await(null==(f=g.file("word/footnotes.xml"))?void 0:f.async("string"))??null,U=z?await ni(g,"word/footnotes.xml"):new Map,H=await async function(e,t,r,n,i,o,a){const s={byDocxId:new Map,footnotes:{items:{}}};if(!e)return s;const l=(new on).parseFromString(e,"application/xml").documentElement;if(!l)return s;const c={},u=new Map;let d,f;const h=Wn(l,jn,"footnote");let p=0;for(const m of h){const e=$n(m,"id")??"",s=$n(m,"type")??"",l=[];for(let c=0;c<m.childNodes.length;c+=1){const e=m.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const s=e;s.namespaceURI===jn&&("p"===s.localName?l.push(await To(s,t,r,n,i,o)):"tbl"===s.localName&&l.push(await Eo(s,t,r,n,i,o,a)))}if(Ao.has(s)){"separator"===s?d=l:"continuationSeparator"===s&&(f=l);continue}if(("-1"===e||"0"===e)&&0===l.length)continue;p+=1;const h=`footnote:imported:${p}`,g=Number.parseInt(e,10),b={id:h,blocks:l.length>0?l:[],docxId:Number.isFinite(g)?g:void 0};c[h]=b,e&&u.set(e,b)}return{byDocxId:u,footnotes:{items:c,separator:d,continuationSeparator:f},separator:d,continuationSeparator:f}}(z,y,g,U,S,E,N);w.footnoteSettings&&(H.footnotes.settings=w.footnoteSettings);const q=Object.keys(H.footnotes.items).length>0||H.footnotes.separator||H.footnotes.continuationSeparator||H.footnotes.settings?H.footnotes:void 0;!function(e,t){var r,n,i,o,a,s;const l=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)l(t);else for(const r of e.runs){const e=r,n=e.__importedFootnoteRef;if(!n)continue;delete e.__importedFootnoteRef;const i=t.get(n.docxId);i&&(r.footnoteReference={footnoteId:i.id,...n.customMark?{customMark:n.customMark}:{}})}};for(const c of e)c.blocks.forEach(l),null==(r=c.header)||r.forEach(l),null==(n=c.firstPageHeader)||n.forEach(l),null==(i=c.evenPageHeader)||i.forEach(l),null==(o=c.footer)||o.forEach(l),null==(a=c.firstPageFooter)||a.forEach(l),null==(s=c.evenPageFooter)||s.forEach(l)}(L,H.byDocxId);const j=await(null==(h=g.file("word/endnotes.xml"))?void 0:h.async("string"))??null,G=j?await ni(g,"word/endnotes.xml"):new Map,V=await async function(e,t,r,n,i,o,a){const s={byDocxId:new Map,endnotes:{items:{}}};if(!e)return s;const l=(new on).parseFromString(e,"application/xml").documentElement;if(!l)return s;const c={},u=new Map;let d,f;const h=Wn(l,jn,"endnote");let p=0;for(const m of h){const e=$n(m,"id")??"",s=$n(m,"type")??"",l=[];for(let c=0;c<m.childNodes.length;c+=1){const e=m.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const s=e;s.namespaceURI===jn&&("p"===s.localName?l.push(await To(s,t,r,n,i,o)):"tbl"===s.localName&&l.push(await Eo(s,t,r,n,i,o,a)))}if(Io.has(s)){"separator"===s?d=l:"continuationSeparator"===s&&(f=l);continue}if(("-1"===e||"0"===e)&&0===l.length)continue;p+=1;const h=`endnote:imported:${p}`,g=Number.parseInt(e,10),b={id:h,blocks:l.length>0?l:[],docxId:Number.isFinite(g)?g:void 0};c[h]=b,e&&u.set(e,b)}return{byDocxId:u,endnotes:{items:c,separator:d,continuationSeparator:f},separator:d,continuationSeparator:f}}(j,y,g,G,S,E,N);w.endnoteSettings&&(V.endnotes.settings=w.endnoteSettings);const W=Object.keys(V.endnotes.items).length>0||V.endnotes.separator||V.endnotes.continuationSeparator||V.endnotes.settings?V.endnotes:void 0;!function(e,t){var r,n,i,o,a,s;const l=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)l(t);else for(const r of e.runs){const e=r,n=e.__importedEndnoteRef;if(!n)continue;delete e.__importedEndnoteRef;const i=t.get(n.docxId);i&&(r.endnoteReference={endnoteId:i.id,...n.customMark?{customMark:n.customMark}:{}})}};for(const c of e)c.blocks.forEach(l),null==(r=c.header)||r.forEach(l),null==(n=c.firstPageHeader)||n.forEach(l),null==(i=c.evenPageHeader)||i.forEach(l),null==(o=c.footer)||o.forEach(l),null==(a=c.firstPageFooter)||a.forEach(l),null==(s=c.evenPageFooter)||s.forEach(l)}(L,V.byDocxId);const Z=Ho(L),Y=function(e,t){const r=new Set([...e.keys(),...t.keys()]);if(0===r.size)return;const n=[...r].sort((e,t)=>{const r=Number.parseInt(e,10),n=Number.parseInt(t,10);return Number.isNaN(r)||Number.isNaN(n)?e.localeCompare(t):r-n}),i={},o=[];for(const a of n){const r=e.get(a),n=t.get(a);if(!r&&!n)continue;const s=Mn(),l=Number.parseInt(a,10);i[s]={id:s,author:(null==n?void 0:n.author)??"",...(null==n?void 0:n.initials)?{initials:n.initials}:{},...void 0!==(null==n?void 0:n.date)?{date:n.date}:{},...(null==n?void 0:n.resolved)?{resolved:n.resolved}:{},text:(null==n?void 0:n.text)??"",...(null==r?void 0:r.start)?{start:r.start}:{},...(null==r?void 0:r.end)?{end:r.end}:{},...Number.isNaN(l)?{}:{docxIdHint:l}},o.push(s)}return o.length>0?{items:i,order:o}:void 0}(jo(L),Zo(await(null==(p=g.file("word/comments.xml"))?void 0:p.async("string"))??null,await(null==(m=g.file("word/commentsExtended.xml"))?void 0:m.async("string"))??null)),X=L.length>1||L.some(e=>{var t,r,n,i,o,a;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(r=e.firstPageHeader)?void 0:r.length)??0)>0||((null==(n=e.evenPageHeader)?void 0:n.length)??0)>0||((null==(i=e.footer)?void 0:i.length)??0)>0||((null==(o=e.firstPageFooter)?void 0:o.length)??0)>0||((null==(a=e.evenPageFooter)?void 0:a.length)??0)>0}),$=Object.keys(S.assets).length>0,Q=e=>{void 0!==w.defaultTabStop&&(e.settings={...e.settings??{},defaultTabStop:w.defaultTabStop});let t=e;return q&&(t.footnotes=q,t=Mo(t)),W&&(t.endnotes=W,t=Bo(t)),Z&&(t.bookmarks=Z),Y&&(t.comments=Y),t};if(X){const e=qn([]);return e.sections=L,1===L.length&&(e.pageSettings=L[0].pageSettings),N&&(e.styles=N),$&&(e.assets=S.assets),Q(e)}const K=L[0],J=qn((null==K?void 0:K.blocks.length)>0?K.blocks:[Fn([{text:""}])],null==K?void 0:K.pageSettings);return $&&(J.assets=S.assets),N&&(J.styles=N),Q(J)}function Xo(e){globalThis.postMessage(e)}globalThis.addEventListener("message",async e=>{const t=e.data;if("import-docx"===(null==t?void 0:t.type))try{const e=await Yo(t.buffer,{onProgress:(e,r)=>{Xo({type:"progress",id:t.id,stage:e,progress:r})}});Xo({type:"done",id:t.id,document:e})}catch(r){Xo({type:"error",id:t.id,error:r instanceof Error?r.message:String(r)})}})}();
12
+ */n.exports=function e(t,n,i){function o(s,l){if(!n[s]){if(!t[s]){if(!l&&r)return r(s);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return o(t[s][1][e]||e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var a=r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,a,s,l,c,u=[],d=0,f=e.length,h=f,p="string"!==n.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],r=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),r=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,l=1<h?(15&r)<<2|i>>6:64,c=2<h?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,a,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=r),64!==l&&(f[u++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(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){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^o[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(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,a,u){var d,f,h=e.file,p=e.compression,m=u!==s.utf8encode,g=o.transformTo("string",u(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=o.transformTo("string",u(b)),w=o.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,E=w.length!==b.length,N="",x="",T="",S=h.dir,k=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),m||!_&&!E||(I|=2048);var C,R,O,D=0,L=0;S&&(D|=16),"UNIX"===a?(L=798,D|=(C=h.unixPermissions,R=S,O=C,C||(O=R?16893:33204),(65535&O)<<16)):(L=20,D|=function(e){return 63&(e||0)}(h.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(x=n(1,1)+n(l(g),4)+v,N+="up"+n(x.length,2)+x),E&&(T=n(1,1)+n(l(y),4)+w,N+="uc"+n(T.length,2)+T);var M="";return M+="\n\0",M+=n(I,2),M+=p.magic,M+=n(d,2),M+=n(f,2),M+=n(A.crc32,4),M+=n(A.compressedSize,4),M+=n(A.uncompressedSize,4),M+=n(g.length,2),M+=n(N.length,2),{fileRecord:c.LOCAL_FILE_HEADER+M+g+N,dirRecord:c.CENTRAL_FILE_HEADER+n(L,2)+M+n(y.length,2)+"\0\0\0\0"+n(D,4)+n(i,4)+g+N+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){a.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=[]}o.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,o=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),r)this.push({data:(t=e,c.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,i,a,s,l,u,d=this.bytesWritten-e,f=(r=this.dirRecords.length,i=d,a=e,s=this.zipComment,l=this.encodeFileName,u=o.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(i,4)+n(a,4)+n(u.length,2)+u);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.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},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).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){var n=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("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){var r=new a(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(c(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,c=n.resolve(s.fileNameStr);r.file(c,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(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=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()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),s=o.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.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=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new u(e,v,s);this.files[e]=b}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.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){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(l){(t=new a("error")).error(l)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./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:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(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){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=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(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.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)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(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){return this._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(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.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;var e=this.isPaused=!1;return this.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){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function u(e,t){return new l.Promise(function(r,i){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);r(e)}catch(t){i(t)}o=[]}).resume()})}function d(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(s){this._worker=new o("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=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(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(a){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(o){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,l=new Array(2*a);for(t=r=0;t<a;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=s[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(o){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return f[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,s,c){return a.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(c?t=i.decode(t):o&&!0!==s&&(t=l(u=t,n.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.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);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.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(var e,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)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({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)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("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,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,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)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(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);var t=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())throw new Error("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;var e=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(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(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}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,n){(function(e){var t,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,t=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}r.exports=function(e){1!==c.push(e)||n||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(i){return o.reject(e,i)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var a=p(function(){t(i,n)});"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(c,a))},function(e){n||(n=!0,o.reject(c,e))})}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a,s=-1,l=new this(i);++s<r;)a=e[s],t.resolve(a).then(function(e){n||(n=!0,o.resolve(l,e))},function(e){n||(n=!0,o.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,r){var n={};(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){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=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=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[r]);this._dict_set=!0}}function p(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}h.prototype.push=function(e,t){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.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){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=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&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function f(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,f)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),c=h.next_out-l,d=o.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=f,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(c){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=a=0;a<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=a[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&e[r++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],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){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,m=2,g=8,v=9,b=286,y=30,w=19,_=2*b+1,E=15,N=3,x=258,T=x+N+1,S=42,k=113,A=1,I=2,C=3,R=4;function O(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function M(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.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))}function P(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,M(e.strm)}function F(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+x,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===h&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<f);if(n=x-(f-o),o=f-x,a<n){if(e.match_start=t,s<=(a=n))break;h=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function U(e){var t,r,n,o,l,c,u,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-T)){for(i.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;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(f=o)<(h=c.avail_in)&&(h=f),r=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=N)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+N-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<N)););}while(e.lookahead<T&&0!==e.strm.avail_in)}function H(e,t){for(var r,n;;){if(e.lookahead<T){if(U(e),e.lookahead<T&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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-T&&(e.match_length=z(e,r)),e.match_length>=N)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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++}else e.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;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}function q(e,t){for(var r,n,i;;){if(e.lookahead<T){if(U(e),e.lookahead<T&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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=N-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-T&&(e.match_length=z(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===N&&4096<e.strstart-e.match_start)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-N,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-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=N-1,e.strstart++,n&&(P(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&P(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}function j(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(E+1),this.heap=new i.Buf16(2*b+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?S:k,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),d):O(e,f)}function W(e){var t,r=V(e);return r===d&&((t=e.state).window_size=2*t.w_size,L(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=N-1,t.match_available=0,t.ins_h=0),r}function Z(e,t,r,n,o,a){if(!e)return f;var s=1;if(t===h&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||v<o||r!==g||n<8||15<n||t<0||9<t||a<0||p<a)return O(e,f);8===n&&(n=9);var l=new G;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=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,W(e)}n=[new j(0,0,0,0,function(e,t){var r=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===c)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,P(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-T&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):(e.strstart>e.block_start&&(P(e,!1),e.strm.avail_out),A)}),new j(4,4,8,4,H),new j(4,5,16,8,H),new j(4,6,32,32,H),new j(4,4,16,16,q),new j(8,16,32,32,q),new j(8,16,128,128,q),new j(8,32,128,256,q),new j(32,128,258,1024,q),new j(32,258,258,4096,q)],r.deflateInit=function(e,t){return Z(e,t,g,15,8,0)},r.deflateInit2=Z,r.deflateReset=W,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},r.deflate=function(e,t){var r,i,a,l;if(!e||!e.state||5<t||t<0)return e?O(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return O(e,0===e.avail_out?-5:f);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===S)if(2===i.wrap)e.adler=0,F(i,31),F(i,139),F(i,8),i.gzhead?(F(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),F(i,255&i.gzhead.time),F(i,i.gzhead.time>>8&255),F(i,i.gzhead.time>>16&255),F(i,i.gzhead.time>>24&255),F(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),F(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(F(i,255&i.gzhead.extra.length),F(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(F(i,0),F(i,0),F(i,0),F(i,0),F(i,0),F(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),F(i,3),i.status=k);else{var h=g+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=k,B(i,h),0!==i.strstart&&(B(i,e.adler>>>16),B(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending!==i.pending_buf_size));)F(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,F(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),M(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,F(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&M(e),i.pending+2<=i.pending_buf_size&&(F(i,255&e.adler),F(i,e.adler>>8&255),e.adler=0,i.status=k)):i.status=k),0!==i.pending){if(M(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(r)&&t!==u)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return A;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=x){if(U(e),e.lookahead<=x&&t===c)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+x;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=x-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(r=o._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?C:R):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:I}(i,t):n[i.level].func(i,t);if(p!==C&&p!==R||(i.status=666),p===A||p===C)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===I&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),M(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(F(i,255&e.adler),F(i,e.adler>>8&255),F(i,e.adler>>16&255),F(i,e.adler>>24&255),F(i,255&e.total_in),F(i,e.total_in>>8&255),F(i,e.total_in>>16&255),F(i,e.total_in>>24&255)):(B(i,e.adler>>>16),B(i,65535&e.adler)),M(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==S&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?O(e,f):(e.state=null,t===k?O(e,-3):d):f},r.deflateSetDictionary=function(e,t){var r,n,o,s,l,c,u,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==S||r.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,U(r);r.lookahead>=N;){for(n=r.strstart,o=r.lookahead-(N-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+N-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=N-1,U(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=N-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=s,d},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){var r,n,i,o,a,s,l,c,u,d,f,h,p,m,g,v,b,y,w,_,E,N,x,T,S;r=e.state,n=e.next_in,T=e.input,i=n+(e.avail_in-5),o=e.next_out,S=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=m[h&v];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))S[o++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&y,(w&=15)&&(p<w&&(h+=T[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=g[h&b];r:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(E=65535&y,p<(w&=15)&&(h+=T[n++]<<p,(p+=8)<w&&(h+=T[n++]<<p,p+=8)),l<(E+=h&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,(w=o-a)<E){if(u<(w=E-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=f,(N=0)===d){if(N+=c-w,w<_){for(_-=w;S[o++]=f[N++],--w;);N=o-E,x=S}}else if(d<w){if(N+=c+d-w,(w-=d)<_){for(_-=w;S[o++]=f[N++],--w;);if(N=0,d<_){for(_-=w=d;S[o++]=f[N++],--w;);N=o-E,x=S}}}else if(N+=d-w,w<_){for(_-=w;S[o++]=f[N++],--w;);N=o-E,x=S}for(;2<_;)S[o++]=x[N++],S[o++]=x[N++],S[o++]=x[N++],_-=3;_&&(S[o++]=x[N++],1<_&&(S[o++]=x[N++]))}else{for(N=o-E;S[o++]=S[N++],S[o++]=S[N++],S[o++]=S[N++],2<(_-=3););_&&(S[o++]=S[N++],1<_&&(S[o++]=S[N++]))}break}}break}}while(n<i&&o<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=h,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,h=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&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=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,b(e))):d}function w(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=y(e,t))!==u&&(e.state=null),r):d}var _,E,N=!0;function x(e){if(N){var t;for(_=new n.Buf32(512),E=new n.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(c,e.lens,0,32,E,0,e.work,{bits:5}),N=!1}e.lencode=_,e.lenbits=9,e.distcode=E,e.distbits=5}function T(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=b,r.inflateReset2=y,r.inflateResetKeep=v,r.inflateInit=function(e){return w(e,15)},r.inflateInit2=w,r.inflate=function(e,t){var r,h,p,g,v,b,y,w,_,E,N,S,k,A,I,C,R,O,D,L,M,P,F,B,z=0,U=new n.Buf8(4),H=[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)return d;12===(r=e.state).mode&&(r.mode=13),v=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,b=e.avail_in,w=r.hold,_=r.bits,E=b,N=y,P=u;e:for(;;)switch(r.mode){case f:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(2&r.wrap&&35615===w){U[r.check=0]=255&w,U[1]=w>>>8&255,r.check=o(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,M=8+(15&(w>>>=4)),0===r.wbits)r.wbits=M;else if(M>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<M,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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=o(r.check,U,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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=o(r.check,U,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(b<(S=r.length)&&(S=b),S&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,g,S,M)),512&r.flags&&(r.check=o(r.check,h,S,g)),b-=S,g+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===b)break e;for(S=0;M=h[g+S++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M)),M&&S<b;);if(512&r.flags&&(r.check=o(r.check,h,S,g)),b-=S,g+=S,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===b)break e;for(S=0;M=h[g+S++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M)),M&&S<b;);if(512&r.flags&&(r.check=o(r.check,h,S,g)),b-=S,g+=S,M)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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;case 10:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}e.adler=r.check=m(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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)break e;case 15:r.mode=16;case 16:if(S=r.length){if(b<S&&(S=b),y<S&&(S=y),0===S)break e;n.arraySet(p,h,g,S,v),b-=S,g+=S,y-=S,v+=S,r.length-=S;break}r.mode=12;break;case 17:for(;_<14;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}r.lens[H[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[H[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},P=s(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,P){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;C=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(R<16)w>>>=I,_-=I,r.lens[r.have++]=R;else{if(16===R){for(B=I+2;_<B;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(w>>>=I,_-=I,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}M=r.lens[r.have-1],S=3+(3&w),w>>>=2,_-=2}else if(17===R){for(B=I+3;_<B;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}_-=I,M=0,S=3+(7&(w>>>=I)),w>>>=3,_-=3}else{for(B=I+7;_<B;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}_-=I,M=0,S=11+(127&(w>>>=I)),w>>>=7,_-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=M}}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},P=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,P){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},P=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,P){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,r.hold=w,r.bits=_,a(e,N),v=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,b=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;C=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(C&&!(240&C)){for(O=I,D=C,L=R;C=(z=r.lencode[L+((w&(1<<O+D)-1)>>O)])>>>16&255,R=65535&z,!(O+(I=z>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=I,_-=I,r.back+=I,r.length=R,0===C){r.mode=26;break}if(32&C){r.back=-1,r.mode=12;break}if(64&C){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&C,r.mode=22;case 22:if(r.extra){for(B=r.extra;_<B;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;C=(z=r.distcode[w&(1<<r.distbits)-1])>>>16&255,R=65535&z,!((I=z>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(!(240&C)){for(O=I,D=C,L=R;C=(z=r.distcode[L+((w&(1<<O+D)-1)>>O)])>>>16&255,R=65535&z,!(O+(I=z>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=I,_-=I,r.back+=I,64&C){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&C,r.mode=24;case 24:if(r.extra){for(B=r.extra;_<B;){if(0===b)break e;b--,w+=h[g++]<<_,_+=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;case 25:if(0===y)break e;if(S=N-y,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}k=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),A=r.window}else A=p,k=v-r.offset,S=r.length;for(y<S&&(S=y),y-=S,r.length-=S;p[v++]=A[k++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;p[v++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===b)break e;b--,w|=h[g++]<<_,_+=8}if(N-=y,e.total_out+=N,r.total+=N,N&&(e.adler=r.check=r.flags?o(r.check,p,N,v-N):i(r.check,p,N,v-N)),N=y,(r.flags?w:m(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:P=1;break e;case 30:P=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,r.hold=w,r.bits=_,(r.wsize||N!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&T(e,e.output,e.next_out,N-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,N-=e.avail_out,e.total_in+=E,e.total_out+=N,r.total+=N,r.wrap&&N&&(e.adler=r.check=r.flags?o(r.check,p,N,e.next_out-N):i(r.check,p,N,e.next_out-N)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==E&&0===N||4===t)&&P===u&&(P=-5),P)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:T(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],a=[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,c,u,d,f){var h,p,m,g,v,b,y,w,_,E=f.bits,N=0,x=0,T=0,S=0,k=0,A=0,I=0,C=0,R=0,O=0,D=null,L=0,M=new n.Buf16(16),P=new n.Buf16(16),F=null,B=0;for(N=0;N<=15;N++)M[N]=0;for(x=0;x<l;x++)M[t[r+x]]++;for(k=E,S=15;1<=S&&0===M[S];S--);if(S<k&&(k=S),0===S)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(T=1;T<S&&0===M[T];T++);for(k<T&&(k=T),N=C=1;N<=15;N++)if(C<<=1,(C-=M[N])<0)return-1;if(0<C&&(0===e||1!==S))return-1;for(P[1]=0,N=1;N<15;N++)P[N+1]=P[N]+M[N];for(x=0;x<l;x++)0!==t[r+x]&&(d[P[t[r+x]]++]=x);if(b=0===e?(D=F=d,19):1===e?(D=i,L-=257,F=o,B-=257,256):(D=a,F=s,-1),N=T,v=u,I=x=O=0,m=-1,g=(R=1<<(A=k))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(y=N-I,_=d[x]<b?(w=0,d[x]):d[x]>b?(w=F[B+d[x]],D[L+d[x]]):(w=96,0),h=1<<N-I,T=p=1<<A;c[v+(O>>I)+(p-=h)]=y<<24|w<<16|_,0!==p;);for(h=1<<N-1;O&h;)h>>=1;if(0!==h?(O&=h-1,O+=h):O=0,x++,0==--M[N]){if(N===S)break;N=t[r+d[x]]}if(k<N&&(O&g)!==m){for(0===I&&(I=k),v+=T,C=1<<(A=N-I);A+I<S&&!((C-=M[A+I])<=0);)A++,C<<=1;if(R+=1<<A,1===e&&852<R||2===e&&592<R)return 1;c[m=O&g]=k<<24|A<<16|v-u}}return 0!==O&&(c[v+O]=N-I<<24|64<<16),f.bits=k,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){var n=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,f=19,h=2*u+1,p=15,m=16,g=7,v=256,b=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],E=[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],N=[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],T=new Array(2*(u+2));a(T);var S=new Array(2*d);a(S);var k=new Array(512);a(k);var A=new Array(256);a(A);var I=new Array(l);a(I);var C,R,O,D=new Array(d);function L(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function M(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?k[e]:k[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function z(e,t,r){B(e,r[2*t],r[2*t+1])}function U(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function H(e,t,r){var n,i,o=new Array(p+1),a=0;for(n=1;n<=p;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=U(o[s]++,s))}}function q(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(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}function G(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function V(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&G(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!G(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function W(e,t,r){var n,i,o,a,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],i=e.pending_buf[e.l_buf+s],s++,0===n?z(e,i,t):(z(e,(o=A[i])+c+1,t),0!==(a=_[o])&&B(e,i-=I[o],a),z(e,o=P(--n),r),0!==(a=E[o])&&B(e,n-=D[o],a)),s<e.last_lit;);z(e,v,t)}function Z(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=h,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)V(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,V(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<h;r++)g<(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(o=g,v++),l[2*n+1]=o,c<n||(e.bl_count[o]++,a=0,m<=n&&(a=f[n-m]),s=l[2*n],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*n+1]+a)));if(0!==v){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,v-=2}while(0<v);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)c<(i=e.heap[--r])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),H(o,c,e.bl_count)}function Y(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function X(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<l&&i===a)){if(s<c)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(z(e,i,e.bl_tree),s--),z(e,b,e.bl_tree),B(e,s-3,2)):s<=10?(z(e,y,e.bl_tree),B(e,s-3,3)):(z(e,w,e.bl_tree),B(e,s-11,7));o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}a(D);var $=!1;function Q(e,t,r,i){var o,a,l;B(e,(s<<1)+(i?1:0),3),a=t,l=r,j(o=e),F(o,l),F(o,~l),n.arraySet(o.pending_buf,o.window,a,l,o.pending),o.pending+=l}r._tr_init=function(e){$||(function(){var e,t,r,n,i,o=new Array(p+1);for(n=r=0;n<l-1;n++)for(I[n]=r,e=0;e<1<<_[n];e++)A[r++]=n;for(A[r-1]=n,n=i=0;n<16;n++)for(D[n]=i,e=0;e<1<<E[n];e++)k[i++]=n;for(i>>=7;n<d;n++)for(D[n]=i<<7,e=0;e<1<<E[n]-7;e++)k[256+i++]=n;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,o[8]++;for(;e<=255;)T[2*e+1]=9,e++,o[9]++;for(;e<=279;)T[2*e+1]=7,e++,o[7]++;for(;e<=287;)T[2*e+1]=8,e++,o[8]++;for(H(T,u+1,o),e=0;e<d;e++)S[2*e+1]=5,S[2*e]=U(e,5);C=new L(T,_,c+1,u,p),R=new L(S,E,0,d,p),O=new L(new Array(0),N,0,f,g)}(),$=!0),e.l_desc=new M(e.dyn_ltree,C),e.d_desc=new M(e.dyn_dtree,R),e.bl_desc=new M(e.bl_tree,O),e.bi_buf=0,e.bi_valid=0,q(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,n){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),Z(e,e.l_desc),Z(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),Z(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*x[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==t?Q(e,t,r,n):4===e.strategy||s===a?(B(e,2+(n?1:0),3),W(e,T,S)):(B(e,4+(n?1:0),3),function(e,t,r,n){var i;for(B(e,t-257,5),B(e,r-1,5),B(e,n-4,4),i=0;i<n;i++)B(e,e.bl_tree[2*x[i]+1],3);X(e,e.dyn_ltree,t-1),X(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),W(e,e.dyn_ltree,e.dyn_dtree)),q(e),n&&j(e)},r._tr_tally=function(e,t,r){return e.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*(A[r]+c+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;B(e,2,3),z(e,v,T),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(t,r,n){(function(e){!function(e,t){if(!e.setImmediate){var r,n,i,o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return s[a]=i,r(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var r=s[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10);var i=t(n.exports),o={};function a(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var l=a({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var c=a({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var u=a({script:!1,style:!1,textarea:!0,title:!0});function d(e){return e===f.HTML}var f=a({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),h=Object.keys(f).map(function(e){return f[e]});var p=a({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});o.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)s(t,r)&&(e[r]=t[r]);return e},o.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(s(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i}},o.freeze=a,o.HTML_BOOLEAN_ATTRIBUTES=l,o.HTML_RAW_TEXT_ELEMENTS=u,o.HTML_VOID_ELEMENTS=c,o.hasDefaultHTMLNamespace=function(e){return d(e)||e===f.XML_XHTML_APPLICATION},o.hasOwn=s,o.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},o.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},o.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},o.isHTMLMimeType=d,o.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},o.isValidMimeType=function(e){return h.indexOf(e)>-1},o.MIME_TYPE=f,o.NAMESPACE=p;var m={};function g(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var v=o.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),b=Object.keys(v);function y(e){return"number"==typeof e&&e>=1&&e<=25}function w(e,t){var r;y(e)?(this.name=b[e],this.message=t||""):(this.message=e,this.name="string"==typeof(r=t)&&r.substring(r.length-v.Error.length)===v.Error?t:v.Error),Error.captureStackTrace&&Error.captureStackTrace(this,w)}g(w,!0),Object.defineProperties(w.prototype,{code:{enumerable:!0,get:function(){var e=b.indexOf(this.name);return y(e)?e:0}}});for(var _={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},E=Object.entries(_),N=0;N<E.length;N++){w[E[N][0]]=E[N][1]}function x(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,x)}g(x),m.DOMException=w,m.DOMExceptionName=v,m.ExceptionCode=_,m.ParseError=x;var T={},S={};function k(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var A=k();function I(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function C(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),A?"u":"")}function R(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),A?"mu":"m")}function O(e){if(0===arguments.length)throw new Error("no parameters provided");return R.apply(O,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var D=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;A&&(D=R("[",I(D),"\\u{10000}-\\u{10FFFF}","]"));var L=new RegExp("[^"+I(D)+"]",A?"u":""),M=/[\x20\x09\x0D\x0A]/,P=I(M),F=R(M,"+"),B=R(M,"*"),z=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;A&&(z=R("[",I(z),"\\u{10000}-\\u{10FFFF}","]"));var U=R("[",I(z),I(/[-.0-9\xB7]/),I(/[\u0300-\u036F\u203F-\u2040]/),"]"),H=R(z,U,"*"),q=R(U,"+"),j=R("&",H,";"),G=O(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),V=O(j,"|",G),W=R("%",H,";"),Z=O(R('"',O(/[^%&"]/,"|",W,"|",V),"*",'"'),"|",R("'",O(/[^%&']/,"|",W,"|",V),"*","'")),Y=O('"',O(/[^<&"]/,"|",V),"*",'"',"|","'",O(/[^<&']/,"|",V),"*","'"),X=R(C(z,":"),C(U,":"),"*"),$=R(X,O(":",X),"?"),Q=R("^",$,"$"),K=R("(",$,")"),J=O(/"[^"]*"|'[^']*'/),ee=R(/^<\?/,"(",H,")",O(F,"(",D,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,re=O('"',te,'*"',"|","'",C(te,"'"),"*'"),ne="\x3c!--",ie=R(ne,O(C(D,"-"),"|",R("-",C(D,"-"))),"*","--\x3e"),oe="#PCDATA",ae=O(R(/\(/,B,oe,O(B,/\|/,B,$),"*",B,/\)\*/),"|",R(/\(/,B,oe,B,/\)/)),se=O("EMPTY","|","ANY","|",ae,"|",R(/\([^>]+\)/,/[?*+]?/)),le=R("<!ELEMENT",F,O($,"|",W),F,O(se,"|",W),B,">"),ce=R("NOTATION",F,/\(/,B,H,O(B,/\|/,B,H),"*",B,/\)/),ue=R(/\(/,B,q,O(B,/\|/,B,q),"*",B,/\)/),de=O(ce,"|",ue),fe=O(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),he=O(/#REQUIRED|#IMPLIED/,"|",O(O("#FIXED",F),"?",Y)),pe=R("<!ATTLIST",F,H,O(F,H,F,fe,F,he),"*",B,">"),me="about:legacy-compat",ge=O('"'+me+'"',"|","'"+me+"'"),ve="SYSTEM",be="PUBLIC",ye=O(O(ve,F,J),"|",O(be,F,re,F,J)),we=R("^",O(O(ve,F,"(?<SystemLiteralOnly>",J,")"),"|",O(be,F,"(?<PubidLiteral>",re,")",F,"(?<SystemLiteral>",J,")"))),_e=R("^",re,"$"),Ee=R("^",J,"$"),Ne=O(F,"NDATA",F,H),xe="<!ENTITY",Te=R(xe,F,H,F,O(Z,"|",O(ye,Ne,"?")),B,">"),Se=O(Z,"|",ye),ke=O(Te,"|",R(xe,F,"%",F,H,F,Se,B,">")),Ae=R(be,F,re),Ie=R("<!NOTATION",F,H,F,O(ye,"|",Ae),B,">"),Ce=R(B,"=",B),Re=/1[.]\d+/,Oe=R(F,"version",Ce,O("'",Re,"'","|",'"',Re,'"')),De=/[A-Za-z][-A-Za-z0-9._]*/,Le=R(/^<\?xml/,Oe,O(F,"encoding",Ce,O('"',De,'"',"|","'",De,"'")),"?",O(F,"standalone",Ce,O("'",O("yes","|","no"),"'","|",'"',O("yes","|","no"),'"')),"?",B,/\?>/),Me=R(D,"*?",/\]\]>/),Pe=R(/<!\[CDATA\[/,Me);S.chars=I,S.chars_without=C,S.detectUnicodeSupport=k,S.reg=R,S.regg=O,S.ABOUT_LEGACY_COMPAT=me,S.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,S.AttlistDecl=pe,S.CDATA_START="<![CDATA[",S.CDATA_END="]]>",S.CDSect=Pe,S.Char=D,S.Comment=ie,S.COMMENT_START=ne,S.COMMENT_END="--\x3e",S.DOCTYPE_DECL_START="<!DOCTYPE",S.elementdecl=le,S.EntityDecl=ke,S.EntityValue=Z,S.ExternalID=ye,S.ExternalID_match=we,S.Name=H,S.NotationDecl=Ie,S.Reference=V,S.PEReference=W,S.PI=ee,S.PUBLIC=be,S.PubidLiteral=re,S.PubidLiteral_match=_e,S.QName=$,S.QName_exact=Q,S.QName_group=K,S.S=F,S.SChar_s=P,S.S_OPT=B,S.SYSTEM=ve,S.SystemLiteral=J,S.SystemLiteral_match=Ee,S.InvalidChar=L,S.UNICODE_REPLACEMENT_CHARACTER="�",S.UNICODE_SUPPORT=A,S.XMLDecl=Le;var Fe=o,Be=Fe.find,ze=Fe.hasDefaultHTMLNamespace,Ue=Fe.hasOwn,He=Fe.isHTMLMimeType,qe=Fe.isHTMLRawTextElement,je=Fe.isHTMLVoidElement,Ge=Fe.MIME_TYPE,Ve=Fe.NAMESPACE,We=Symbol(),Ze=m,Ye=Ze.DOMException,Xe=Ze.DOMExceptionName,$e=S;function Qe(e){if(e!==We)throw new TypeError("Illegal constructor")}function Ke(e){return""!==e}function Je(e,t){return Ue(e,t)||(e[t]=!0),e}function et(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Ke):[]}(e);return Object.keys(t.reduce(Je,{}))}function tt(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function rt(e,t){tt(t),e=e||null;var r=null,n=t;if(t.indexOf(":")>=0){var i=t.split(":");r=i[0],n=i[1]}if(null!==r&&null===e)throw new Ye(Ye.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===r&&e!==Fe.NAMESPACE.XML)throw new Ye(Ye.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===r||"xmlns"===t)&&e!==Fe.NAMESPACE.XMLNS)throw new Ye(Ye.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Fe.NAMESPACE.XMLNS&&"xmlns"!==r&&"xmlns"!==t)throw new Ye(Ye.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,r,n]}function nt(e,t){for(var r in e)Ue(e,r)&&(t[r]=e[r])}function it(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,nt(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var ot={},at=ot.ELEMENT_NODE=1,st=ot.ATTRIBUTE_NODE=2,lt=ot.TEXT_NODE=3,ct=ot.CDATA_SECTION_NODE=4,ut=ot.ENTITY_REFERENCE_NODE=5,dt=ot.ENTITY_NODE=6,ft=ot.PROCESSING_INSTRUCTION_NODE=7,ht=ot.COMMENT_NODE=8,pt=ot.DOCUMENT_NODE=9,mt=ot.DOCUMENT_TYPE_NODE=10,gt=ot.DOCUMENT_FRAGMENT_NODE=11,vt=ot.NOTATION_NODE=12,bt=Fe.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function yt(e,t){if(t.length<e.length)return yt(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function wt(e){return e.guid||(e.guid=Math.random()),e.guid}function _t(){}function Et(e,t){this._node=e,this._refresh=t,Nt(this)}function Nt(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ur(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Ue(e,n)&&delete e[n];nt(r,e),e._inc=t}}function xt(){}function Tt(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function St(e,t,r,n){if(n?t[Tt(t,n)]=r:(t[t.length]=r,t.length++),e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&Lt(i,e,n),function(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===Ve.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(i,e,r))}}function kt(e,t,r){var n=Tt(t,r);if(n>=0){for(var i=t.length-1;n<=i;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&Lt(o,e,r),r.ownerElement=null}}}function At(){}function It(e){Qe(e)}function Ct(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Rt(e,t){Ot(e,null,{enter:function(e){return!t(e)||Ot.STOP}})}function Ot(e,t,r){for(var n=[{node:e,context:t,phase:Ot.ENTER}];n.length>0;){var i=n.pop();if(i.phase===Ot.ENTER){var o=r.enter(i.node,i.context);if(o===Ot.STOP)return Ot.STOP;if(n.push({node:i.node,context:o,phase:Ot.EXIT}),null==o)continue;for(var a=i.node.lastChild;a;)n.push({node:a,context:o,phase:Ot.ENTER}),a=a.previousSibling}else r.exit&&r.exit(i.node,i.context)}}function Dt(e,t){Qe(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||Ge.XML_APPLICATION,this.type=He(this.contentType)?"html":"xml"}function Lt(e,t,r,n){e&&e._inc++,r.namespaceURI===Ve.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Mt(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function Pt(e,t){if(e!==t.parentNode)throw new Ye(Ye.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,Mt(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Ft(e){return e&&e.nodeType===It.DOCUMENT_TYPE_NODE}function Bt(e){return e&&e.nodeType===It.ELEMENT_NODE}function zt(e){return e&&e.nodeType===It.TEXT_NODE}function Ut(e,t){var r=e.childNodes||[];if(Be(r,Bt)||Ft(t))return!1;var n=Be(r,Ft);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Ht(e,t){var r=e.childNodes||[];if(Be(r,function(e){return Bt(e)&&e!==t}))return!1;var n=Be(r,Ft);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function qt(e,t,r){if(!function(e){return e&&(e.nodeType===It.DOCUMENT_NODE||e.nodeType===It.DOCUMENT_FRAGMENT_NODE||e.nodeType===It.ELEMENT_NODE)}(e))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new Ye(Ye.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===It.CDATA_SECTION_NODE||e.nodeType===It.COMMENT_NODE||e.nodeType===It.DOCUMENT_FRAGMENT_NODE||e.nodeType===It.DOCUMENT_TYPE_NODE||e.nodeType===It.ELEMENT_NODE||e.nodeType===It.PROCESSING_INSTRUCTION_NODE||e.nodeType===It.TEXT_NODE)}(t)||Ft(t)&&e.nodeType!==It.DOCUMENT_NODE)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===It.DOCUMENT_FRAGMENT_NODE){var o=i.filter(Bt);if(o.length>1||Be(i,zt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===o.length&&!Ut(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Bt(t)&&!Ut(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Ft(t)){if(Be(n,Ft))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Be(n,Bt);if(r&&n.indexOf(a)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!r&&a)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Gt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===It.DOCUMENT_FRAGMENT_NODE){var o=i.filter(Bt);if(o.length>1||Be(i,zt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===o.length&&!Ht(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Bt(t)&&!Ht(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Ft(t)){if(Be(n,function(e){return Ft(e)&&e!==r}))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Be(n,Bt);if(r&&n.indexOf(a)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Vt(e,t,r,n){qt(e,t,r),e.nodeType===It.DOCUMENT_NODE&&(n||jt)(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===gt){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,null==r?e.lastChild=a:r.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return Mt(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Wt(e){Qe(e),this._nsMap=Object.create(null)}function Zt(e){Qe(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Yt(e){Qe(e)}function Xt(e){Qe(e)}function $t(e){Qe(e)}function Qt(e){Qe(e)}function Kt(e){Qe(e)}function Jt(e){Qe(e)}function er(e){Qe(e)}function tr(e){Qe(e)}function rr(e){Qe(e)}function nr(e){Qe(e)}function ir(){}function or(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var r=[],n=this.nodeType===pt&&this.documentElement||this,i=n.prefix,o=n.namespaceURI;if(o&&null==i&&null==(i=n.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return lr(this,r,a,t),r.join("")}function ar(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===n&&i===Ve.XML||i===Ve.XMLNS)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix===n)return a.namespace!==i}return!0}function sr(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,Ct),'"')}function lr(e,t,r,n){r||(r=[]);var i=n.nodeFilter,o=n.requireWellFormed,a=n.splitCDATASections,s="html"===(e.nodeType===pt?e:e.ownerDocument).type;Ot(e,{ns:r},{enter:function(e,r){var l=r.ns;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case at:var c=e.attributes,u=c.length,d=e.tagName,f=d;if(!s&&!e.prefix&&e.namespaceURI){for(var h,p=0;p<c.length;p++)if("xmlns"===c.item(p).name){h=c.item(p).value;break}if(!h)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){h=g.namespace;break}}if(h!==e.namespaceURI)for(m=l.length-1;m>=0;m--){var g;if((g=l[m]).namespace===e.namespaceURI){g.prefix&&(f=g.prefix+":"+d);break}}}t.push("<",f);for(var v=l.slice(),b=0;b<u;b++){"xmlns"==(y=c.item(b)).prefix?v.push({prefix:y.localName,namespace:y.value}):"xmlns"==y.nodeName&&v.push({prefix:"",namespace:y.value})}for(b=0;b<u;b++){var y;if(ar(y=c.item(b),0,v)){var w=y.prefix||"",_=y.namespaceURI;sr(t,w?"xmlns:"+w:"xmlns",_),v.push({prefix:w,namespace:_})}var E=i?i(y):y;E&&("string"==typeof E?t.push(E):sr(t,E.name,E.value))}if(d===f&&ar(e,0,v)){var N=e.prefix||"";_=e.namespaceURI;sr(t,N?"xmlns:"+N:"xmlns",_),v.push({prefix:N,namespace:_})}var x=!e.firstChild;if(x&&(s||e.namespaceURI===Ve.HTML)&&(x=je(d)),x)return t.push("/>"),null;if(t.push(">"),s&&qe(d)){for(var T=e.firstChild;T;)T.data?t.push(T.data):lr(T,t,v.slice(),n),T=T.nextSibling;return t.push("</",f,">"),null}return{ns:v,tag:f};case pt:case gt:if(o&&e.nodeType===pt&&null==e.documentElement)throw new Ye("The Document has no documentElement",Xe.InvalidStateError);return{ns:l};case st:return sr(t,e.name,e.value),null;case lt:if(o&&$e.InvalidChar.test(e.data))throw new Ye("The Text node data contains characters outside the XML Char production",Xe.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,Ct)),null;case ct:if(o&&-1!==e.data.indexOf("]]>"))throw new Ye('The CDATASection data contains "]]>"',Xe.InvalidStateError);return a?t.push($e.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),$e.CDATA_END):t.push($e.CDATA_START,e.data,$e.CDATA_END),null;case ht:if(o){if($e.InvalidChar.test(e.data))throw new Ye("The comment node data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Ye('The comment node data contains "--" or ends with "-"',Xe.InvalidStateError)}return t.push($e.COMMENT_START,e.data,$e.COMMENT_END),null;case mt:var S=e.publicId,k=e.systemId;if(o){if(S&&!$e.PubidLiteral_match.test(S))throw new Ye("DocumentType publicId is not a valid PubidLiteral",Xe.InvalidStateError);if(k&&"."!==k&&!$e.SystemLiteral_match.test(k))throw new Ye("DocumentType systemId is not a valid SystemLiteral",Xe.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Ye('DocumentType internalSubset contains "]>"',Xe.InvalidStateError)}return t.push($e.DOCTYPE_DECL_START," ",e.name),S?(t.push(" ",$e.PUBLIC," ",S),k&&"."!==k&&t.push(" ",k)):k&&"."!==k&&t.push(" ",$e.SYSTEM," ",k),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ft:if(o){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Ye("The ProcessingInstruction target is not well-formed",Xe.InvalidStateError);if($e.InvalidChar.test(e.data))throw new Ye("The ProcessingInstruction data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Ye('The ProcessingInstruction data contains "?>"',Xe.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case ut:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,r){r&&r.tag&&t.push("</",r.tag,">")}})}function cr(e,t,r){var n;return Ot(t,null,{enter:function(t,i){var o=new t.constructor(We);for(var a in t)if(Ue(t,a)){var s=t[a];"object"!=typeof s&&s!=o[a]&&(o[a]=s)}t.childNodes&&(o.childNodes=new _t),o.ownerDocument=e;var l=r;switch(o.nodeType){case at:var c=t.attributes,u=o.attributes=new xt,d=c.length;u._ownerElement=o;for(var f=0;f<d;f++)o.setAttributeNode(cr(e,c.item(f),!0));break;case st:l=!0}return null!==i?i.appendChild(o):n=o,l?o:null}}),n}function ur(e,t,r){e[t]=r}function dr(e){for(var t=[],r=e.firstChild;r;)r.nodeType===at&&t.push(r),r=r.nextSibling;return t}_t.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var r=[],n=0;n<this.length;n++)lr(this[n],r,null,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},_t.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Et.prototype.item=function(e){return Nt(this),this[e]||null},it(Et,_t),xt.prototype={length:0,item:_t.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Ye(Ye.INUSE_ATTRIBUTE_ERR);var r=this.getNamedItemNS(e.namespaceURI,e.localName);return r===e?e:(St(this._ownerElement,this,e,r),r)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Ye(Ye.NOT_FOUND_ERR,e);return kt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new Ye(Ye.NOT_FOUND_ERR,e?e+" : "+t:t);return kt(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},xt.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},At.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=Ge.XML_APPLICATION;e===Ve.HTML?n=Ge.XML_XHTML_APPLICATION:e===Ve.SVG&&(n=Ge.XML_SVG_IMAGE);var i=new Dt(We,{contentType:n});if(i.implementation=this,i.childNodes=new _t,i.doctype=r||null,r&&i.appendChild(r),t){var o=i.createElementNS(e,t);i.appendChild(o)}return i},createDocumentType:function(e,t,r,n){tt(e);var i=new Kt(We);return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i.internalSubset=n||"",i.childNodes=new _t,i},createHTMLDocument:function(e){var t=new Dt(We,{contentType:Ge.HTML});if(t.implementation=this,t.childNodes=new _t,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var i=t.createElement("title");i.appendChild(t.createTextNode(e)),n.appendChild(i)}r.appendChild(t.createElement("body"))}return t}},It.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var r=t.pop(),n=r.node,i=r.other;if(n.nodeType!==i.nodeType)return!1;switch(n.nodeType){case n.DOCUMENT_TYPE_NODE:if(n.name!==i.name)return!1;if(n.publicId!==i.publicId)return!1;if(n.systemId!==i.systemId)return!1;break;case n.ELEMENT_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.prefix!==i.prefix)return!1;if(n.localName!==i.localName)return!1;if(n.attributes.length!==i.attributes.length)return!1;for(var o=0;o<n.attributes.length;o++){var a=n.attributes.item(o),s=i.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case n.ATTRIBUTE_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.localName!==i.localName)return!1;if(n.value!==i.value)return!1;break;case n.PROCESSING_INSTRUCTION_NODE:if(n.target!==i.target||n.data!==i.data)return!1;break;case n.TEXT_NODE:case n.CDATA_SECTION_NODE:case n.COMMENT_NODE:if(n.data!==i.data)return!1}if(n.childNodes.length!==i.childNodes.length)return!1;for(o=n.childNodes.length-1;o>=0;o--)t.push({node:n.childNodes[o],other:i.childNodes[o]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Vt(this,e,t)},replaceChild:function(e,t){Vt(this,e,t,Gt),t&&this.removeChild(t)},removeChild:function(e){return Pt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return cr(this.ownerDocument||this,this,e)},normalize:function(){Ot(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;null!==r&&r.nodeType===lt&&t.nodeType===lt?(e.removeChild(r),t.appendData(r.data)):t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Ue(r,n)&&r[n]===e)return n;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Ue(r,e))return r[e];t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,i=null;if(t instanceof Zt&&(t=(n=t).ownerElement),r instanceof Zt&&(r=(i=r).ownerElement,n&&t&&r===t))for(var o,a=0;o=r.attributes[a];a++){if(o===n)return bt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+bt.DOCUMENT_POSITION_PRECEDING;if(o===i)return bt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+bt.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return bt.DOCUMENT_POSITION_DISCONNECTED+bt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(wt(r.ownerDocument)>wt(t.ownerDocument)?bt.DOCUMENT_POSITION_FOLLOWING:bt.DOCUMENT_POSITION_PRECEDING);if(i&&t===r)return bt.DOCUMENT_POSITION_CONTAINS+bt.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return bt.DOCUMENT_POSITION_CONTAINED_BY+bt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!i&&l===r)return bt.DOCUMENT_POSITION_CONTAINED_BY+bt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return bt.DOCUMENT_POSITION_CONTAINS+bt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=yt(s,c);for(var f in d.childNodes){var h=d.childNodes[f];if(h===r)return bt.DOCUMENT_POSITION_FOLLOWING;if(h===t)return bt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(h)>=0)return bt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(h)>=0)return bt.DOCUMENT_POSITION_PRECEDING}return 0}},nt(ot,It),nt(ot,It.prototype),nt(bt,It),nt(bt,It.prototype),Ot.STOP=Symbol("walkDOM.STOP"),Ot.ENTER=0,Ot.EXIT=1,Dt.prototype={implementation:null,nodeName:"#document",nodeType:pt,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Vt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===at&&(this.documentElement=e),e},removeChild:function(e){var t=Pt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Vt(this,e,t,Gt),e.ownerDocument=this,t&&this.removeChild(t),Bt(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,r){var n;return Ot(t,null,{enter:function(t,i){var o=t.cloneNode(!1);return o.ownerDocument=e,o.parentNode=null,null===i?n=o:i.appendChild(o),t.nodeType===st||r?o:null}}),n}(this,e,t)},getElementById:function(e){var t=null;return Rt(this.documentElement,function(r){if(r.nodeType==at&&r.getAttribute("id")==e)return t=r,!0}),t},createElement:function(e){var t=new Wt(We);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),ze(this.contentType)&&(t.namespaceURI=Ve.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new _t,(t.attributes=new xt)._ownerElement=t,t},createDocumentFragment:function(){var e=new rr(We);return e.ownerDocument=this,e.childNodes=new _t,e},createTextNode:function(e){var t=new Xt(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createComment:function(e){var t=new $t(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Ye(Ye.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Qt(We);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new nr(We);return r.ownerDocument=this,r.childNodes=new _t,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Zt(We);return t.ownerDocument=this,t.childNodes=new _t,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!$e.Name.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Ye("document is an html document",Xe.NotSupportedError);var t=new tr(We);return t.ownerDocument=this,t.childNodes=new _t,t.nodeName=e,t},createElementNS:function(e,t){var r=rt(e,t),n=new Wt(We),i=n.attributes=new xt;return n.childNodes=new _t,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],i._ownerElement=n,n},createAttributeNS:function(e,t){var r=rt(e,t),n=new Zt(We);return n.ownerDocument=this,n.childNodes=new _t,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},it(Dt,It),Wt.prototype={nodeType:at,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===Ve.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=rt(e,t)[2],i=this.getAttributeNodeNS(e,n);i?i.value=i.nodeValue=""+r:((i=this.ownerDocument.createAttributeNS(e,t)).value=i.nodeValue=""+r,this.setAttributeNode(i))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new Et(this,function(r){var n=[];return t.length>0&&Rt(r,function(i){if(i!==r&&i.nodeType===at){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=et(o);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&n.push(i)}}var l}),n})},getElementsByTagName:function(e){var t="html"===(this.nodeType===pt?this:this.ownerDocument).type,r=e.toLowerCase();return new Et(this,function(n){var i=[];return Rt(n,function(o){o!==n&&o.nodeType===at&&(("*"===e||o.getQualifiedName()===(t&&o.namespaceURI===Ve.HTML?r:e))&&i.push(o))}),i})},getElementsByTagNameNS:function(e,t){return new Et(this,function(r){var n=[];return Rt(r,function(i){i===r||i.nodeType!==at||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)}),n})}},Dt.prototype.getElementsByClassName=Wt.prototype.getElementsByClassName,Dt.prototype.getElementsByTagName=Wt.prototype.getElementsByTagName,Dt.prototype.getElementsByTagNameNS=Wt.prototype.getElementsByTagNameNS,it(Wt,It),Zt.prototype.nodeType=st,it(Zt,It),Yt.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},it(Yt,It),Xt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},it(Xt,Yt),$t.prototype={nodeName:"#comment",nodeType:ht},it($t,Yt),Qt.prototype={nodeName:"#cdata-section",nodeType:ct},it(Qt,Xt),Kt.prototype.nodeType=mt,it(Kt,It),Jt.prototype.nodeType=vt,it(Jt,It),er.prototype.nodeType=dt,it(er,It),tr.prototype.nodeType=ut,it(tr,It),rr.prototype.nodeName="#document-fragment",rr.prototype.nodeType=gt,it(rr,It),nr.prototype.nodeType=ft,it(nr,Yt),ir.prototype.serializeToString=function(e,t){return or.call(e,t)},It.prototype.toString=or;try{Object.defineProperty&&(Object.defineProperty(Et.prototype,"length",{get:function(){return Nt(this),this.$$length}}),Object.defineProperty(It.prototype,"textContent",{get:function(){if(this.nodeType===at||this.nodeType===gt){var e=[];return Ot(this,null,{enter:function(t){return t.nodeType===at||t.nodeType===gt||(t.nodeType===ft||t.nodeType===ht?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case at:case gt:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(Wt.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(Dt.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(rr.prototype,"children",{get:function(){return new Et(this,dr)}}),ur=function(e,t,r){e["$$"+t]=r})}catch(Jo){}T._updateLiveList=Nt,T.Attr=Zt,T.CDATASection=Qt,T.CharacterData=Yt,T.Comment=$t,T.Document=Dt,T.DocumentFragment=rr,T.DocumentType=Kt,T.DOMImplementation=At,T.Element=Wt,T.Entity=er,T.EntityReference=tr,T.LiveNodeList=Et,T.NamedNodeMap=xt,T.Node=It,T.NodeList=_t,T.Notation=Jt,T.Text=Xt,T.ProcessingInstruction=nr,T.walkDOM=Ot,T.XMLSerializer=ir;var fr,hr,pr={},mr={};fr=mr,hr=o.freeze,fr.XML_ENTITIES=hr({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),fr.HTML_ENTITIES=hr({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),fr.entityMap=fr.HTML_ENTITIES;var gr={},vr=o,br=S,yr=m,wr=vr.isHTMLEscapableRawTextElement,_r=vr.isHTMLMimeType,Er=vr.isHTMLRawTextElement,Nr=vr.hasOwn,xr=vr.NAMESPACE,Tr=yr.ParseError,Sr=yr.DOMException;function kr(){}kr.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),Dr(t,t=Object.create(null)),function(e,t,r,n,i){var o=_r(n.mimeType);e.indexOf(br.UNICODE_REPLACEMENT_CHARACTER)>=0&&i.warning("Unicode replacement character detected, source encoding issues?");function a(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!o&&t!==e)return i.error("EntityRef: expecting ;"),e;var n=br.Reference.exec(t);if(!n||n[0].length!==t.length)return i.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return Nr(r,s)?r[s]:"#"===s.charAt(0)?a(parseInt(s.substring(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function l(t){if(t>g){var r=e.substring(g,t).replace(Ar,s);f&&h(g),n.characters(r,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,f=n.locator;function h(t,r){for(;t>=u&&(r=d.exec(e));)c=u,u=r.index+r[0].length,f.lineNumber++;f.columnNumber=t-c+1}var p=[{currentNSMap:t}],m=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!o&&m.length>0)return i.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var b=n.doc,y=b.createTextNode(e.substring(g));if(b.documentElement)return i.error("Extra content at the end of the document");b.appendChild(y),n.currentElement=y}return}if(v>g){var w=e.substring(g,v);o||0!==m.length||(w=w.replace(new RegExp(br.S_OPT.source,"g"),""))&&i.error("Unexpected content outside root element: '"+w+"'"),l(v)}switch(e.charAt(v+1)){case"/":var _=e.indexOf(">",v+2),E=e.substring(v+2,_>0?_:void 0);if(!E)return i.fatalError("end tag name missing");var N=_>0&&br.reg("^",br.QName_group,br.S_OPT,"$").exec(E);if(!N)return i.fatalError('end tag name contains invalid characters: "'+E+'"');if(!n.currentElement&&!n.doc.documentElement)return;var x=m[m.length-1]||n.currentElement.tagName||n.doc.documentElement.tagName||"";if(x!==N[1]){var T=N[1].toLowerCase();if(!o||x.toLowerCase()!==T)return i.fatalError('Opening and ending tag mismatch: "'+x+'" != "'+E+'"')}var S=p.pop();m.pop();var k=S.localNSMap;if(n.endElement(S.uri,S.localName,x),k)for(var A in k)Nr(k,A)&&n.endPrefixMapping(A);_++;break;case"?":f&&h(v),_=Pr(e,v,n,i);break;case"!":f&&h(v),_=Mr(e,v,n,i,o);break;default:f&&h(v);var I=new Fr,C=p[p.length-1].currentNSMap,R=(_=Cr(e,v,I,C,s,i,o),I.length);if(I.closed||(o&&vr.isHTMLVoidElement(I.tagName)?I.closed=!0:m.push(I.tagName)),f&&R){for(var O=Ir(f,{}),D=0;D<R;D++){var L=I[D];h(L.offset),L.locator=Ir(f,{})}n.locator=O,Rr(I,n,C)&&p.push(I),n.locator=f}else Rr(I,n,C)&&p.push(I);o&&!I.closed?_=Or(e,_,I.tagName,s,n):_++}}catch(Jo){if(Jo instanceof Tr)throw Jo;if(Jo instanceof Sr)throw new Tr(Jo.name+": "+Jo.message,n.locator,Jo);i.error("element parse error: "+Jo),_=-1}_>g?g=_:l(Math.max(v,g)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}};var Ar=/&#?\w+;?/g;function Ir(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Cr(e,t,r,n,i,o,a){function s(e,t,n){return Nr(r.attributeNames,e)?o.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?o.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Ar,i),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,f=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,f=e.slice(t,c),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(t,c)).slice(-1)&&(r.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=l),4==u?(o.warning('attribute "'+f+'" missed quot(")!'),s(l,f,t)):(a||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:if(!a)return o.fatalError("AttValue: ' or \" expected")}return c;case"€":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var f=e.slice(t,c);o.warning('attribute "'+f+'" missed quot(")!!'),s(l,f,t);case 5:u=6}else switch(u){case 2:a||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Rr(e,t,r){for(var n=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,l=a.value;if((f=s.indexOf(":"))>0)var c=a.prefix=s.slice(0,f),u=s.slice(f+1),d="xmlns"===c&&u;else u=s,c=null,d="xmlns"===s&&"";a.localName=u,!1!==d&&(null==i&&(i=Object.create(null),Dr(r,r=Object.create(null))),r[d]=i[d]=l,a.uri=xr.XMLNS,t.startPrefixMapping(d,l))}for(o=e.length;o--;)(a=e[o]).prefix&&("xml"===a.prefix&&(a.uri=xr.XML),"xmlns"!==a.prefix&&(a.uri=r[a.prefix]));var f;(f=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,f),u=e.localName=n.slice(f+1)):(c=null,u=e.localName=n);var h=e.uri=r[c||""];if(t.startElement(h,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(h,u,n),i)for(c in i)Nr(i,c)&&t.endPrefixMapping(c)}function Or(e,t,r,n,i){var o=wr(r);if(o||Er(r)){var a=e.indexOf("</"+r+">",t),s=e.substring(t+1,a);return o&&(s=s.replace(Ar,n)),i.characters(s,0,s.length),a}return t+1}function Dr(e,t){for(var r in e)Nr(e,r)&&(t[r]=e[r])}function Lr(e,t){var r=t;function n(t){return t=t||0,e.charAt(r+t)}function i(e){r+=e=e||1}function o(){return e.substring(r)}return{char:n,getIndex:function(){return r},getMatch:function(e){var t=br.reg("^",e).exec(o());return t?(i(t[0].length),t[0]):null},getSource:function(){return e},skip:i,skipBlanks:function(){for(var t=0;r<e.length;){var o=n();if(" "!==o&&"\n"!==o&&"\t"!==o&&"\r"!==o)return t;t++,i()}return-1},substringFromIndex:o,substringStartsWith:function(t){return e.substring(r,r+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}}}function Mr(e,t,r,n,i){var o=Lr(e,t);switch(i?o.char(2).toUpperCase():o.char(2)){case"-":var a=o.getMatch(br.Comment);return a?(r.comment(a,br.COMMENT_START.length,a.length-br.COMMENT_START.length-br.COMMENT_END.length),o.getIndex()):n.fatalError("comment is not well-formed at position "+o.getIndex());case"[":var s=o.getMatch(br.CDSect);return s?i||r.currentElement?(r.startCDATA(),r.characters(s,br.CDATA_START.length,s.length-br.CDATA_START.length-br.CDATA_END.length),r.endCDATA(),o.getIndex()):n.fatalError("CDATA outside of element"):n.fatalError("Invalid CDATA starting at position "+t);case"D":if(r.doc&&r.doc.documentElement)return n.fatalError("Doctype not allowed inside or after documentElement at position "+o.getIndex());if(i?!o.substringStartsWithCaseInsensitive(br.DOCTYPE_DECL_START):!o.substringStartsWith(br.DOCTYPE_DECL_START))return n.fatalError("Expected "+br.DOCTYPE_DECL_START+" at position "+o.getIndex());if(o.skip(br.DOCTYPE_DECL_START.length),o.skipBlanks()<1)return n.fatalError("Expected whitespace after "+br.DOCTYPE_DECL_START+" at position "+o.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=o.getMatch(br.Name),!l.name)return n.fatalError("doctype name missing or contains unexpected characters at position "+o.getIndex());if(i&&"html"!==l.name.toLowerCase()&&n.warning("Unexpected DOCTYPE in HTML document at position "+o.getIndex()),o.skipBlanks(),o.substringStartsWith(br.PUBLIC)||o.substringStartsWith(br.SYSTEM)){var c=br.ExternalID_match.exec(o.substringFromIndex());if(!c)return n.fatalError("doctype external id is not well-formed at position "+o.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),o.skip(c[0].length)}else if(i&&o.substringStartsWithCaseInsensitive(br.SYSTEM)){if(o.skip(br.SYSTEM.length),o.skipBlanks()<1)return n.fatalError("Expected whitespace after "+br.SYSTEM+" at position "+o.getIndex());if(l.systemId=o.getMatch(br.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return n.fatalError("Expected "+br.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+br.SYSTEM+" at position "+o.getIndex())}return i&&l.systemId&&!br.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&n.warning("Unexpected doctype.systemId in HTML document at position "+o.getIndex()),i||(o.skipBlanks(),l.internalSubset=function(e,t){function r(e,t){var r=br.PI.exec(e.substringFromIndex());return r?"xml"===r[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(r[0].length),r[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var n=e.getSource();if("["===e.char()){e.skip(1);for(var i=e.getIndex();e.getIndex()<n.length;){if(e.skipBlanks(),"]"===e.char()){var o=n.substring(i,e.getIndex());return e.skip(1),o}var a=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?a=e.getMatch(br.elementdecl):"N"===e.char(3)&&(a=e.getMatch(br.EntityDecl));break;case"A":a=e.getMatch(br.AttlistDecl);break;case"N":a=e.getMatch(br.NotationDecl);break;case"-":a=e.getMatch(br.Comment)}else if("<"===e.char()&&"?"===e.char(1))a=r(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");a=e.getMatch(br.PEReference)}if(!a)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(o,n)),o.skipBlanks(),">"!==o.char()?n.fatalError("doctype not terminated with > at position "+o.getIndex()):(o.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),o.getIndex());default:return n.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Pr(e,t,r,n){var i=e.substring(t).match(br.PI);if(!i)return n.fatalError("Invalid processing instruction starting at position "+t);if("xml"===i[1].toLowerCase()){if(t>0)return n.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!br.XMLDecl.test(e.substring(t)))return n.fatalError("xml declaration is not well-formed")}return r.processingInstruction(i[1],i[2]),t+i[0].length}function Fr(){this.attributeNames=Object.create(null)}Fr.prototype={setTagName:function(e){if(!br.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!br.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},gr.XMLReader=kr,gr.parseUtils=Lr,gr.parseDoctypeCommentOrCData=Mr;var Br=o,zr=m,Ur=mr,Hr=gr,qr=T.DOMImplementation,jr=Br.hasDefaultHTMLNamespace,Gr=Br.isHTMLMimeType,Vr=Br.isValidMimeType,Wr=Br.MIME_TYPE,Zr=Br.NAMESPACE,Yr=zr.ParseError,Xr=Hr.XMLReader;function $r(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Qr(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Br.assign,this.domHandler=e.domHandler||Kr,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||$r,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Kr(e){var t=e||{};this.mimeType=t.mimeType||Wr.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function Jr(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function en(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function tn(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Qr.prototype.parseFromString=function(e,t){if(!Vr(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var r=this.assign(Object.create(null),this.xmlns),n=Ur.XML_ENTITIES,i=r[""]||null;jr(t)?(n=Ur.HTML_ENTITIES,i=Zr.HTML):t===Wr.XML_SVG_IMAGE&&(i=Zr.SVG),r[""]=i,r.xml=r.xml||Zr.XML;var o=new this.domHandler({mimeType:t,defaultNamespace:i,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&o.setDocumentLocator(a);var s=new Xr;return s.errorHandler=o,s.domBuilder=o,!Br.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),r,n),o.doc.documentElement||s.errorHandler.fatalError("missing root element"),o.doc},Kr.prototype={startDocument:function(){var e=new qr;this.doc=Gr(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;tn(this,o),this.currentElement=o,this.locator&&Jr(this.locator,o);for(var s=0;s<a;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),i.createAttributeNS(e,r));this.locator&&Jr(n.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&Jr(this.locator,r),tn(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=en.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Jr(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=en.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Jr(this.locator,n),tn(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var o=i.createDocumentType(e,t,r,n);this.locator&&Jr(this.locator,o),tn(this,o),this.doc.doctype=o}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(Jo){throw new Yr("Reporting "+e+' "'+t+'" caused '+Jo,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new Yr(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Kr.prototype[e]=function(){return null}}),pr.__DOMHandler=Kr,pr.DOMParser=Qr,pr.normalizeLineEndings=$r,pr.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},pr.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rn=o;rn.assign,rn.hasDefaultHTMLNamespace,rn.isHTMLMimeType,rn.isValidMimeType,rn.MIME_TYPE,rn.NAMESPACE;var nn=T.XMLSerializer,on=pr.DOMParser;const an="asset:";const sn={styleId:void 0,bold:!1,italic:!1,underline:!1,underlineStyle:null,underlineColor:null,strike:!1,doubleStrike:!1,superscript:!1,subscript:!1,smallCaps:!1,allCaps:!1,hidden:!1,noProof:!1,webHidden:!1,specVanish:!1,textEffect:null,characterScale:null,characterSpacing:null,baselineShift:null,kerningThreshold:null,ligatures:null,numberSpacing:null,numberForm:null,stylisticSet:null,contextualAlternates:!1,fontFamily:"Calibri, sans-serif",fontSize:14.6667,color:"#000000",highlight:null,shading:null,language:null,link:null},ln={styleId:void 0,align:"left",spacingBefore:0,spacingAfter:8,contextualSpacing:!1,lineHeight:1.15,lineRule:null,lineGridPitch:null,lineGridType:null,snapToGrid:!0,indentLeft:0,indentRight:0,indentFirstLine:0,indentHanging:0,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null},cn=816,un=1056,dn="portrait",fn={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function hn(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),r="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:r?e.height:e.width,height:r?e.width:e.height,orientation:t,margins:{top:e.margins.top,right:e.margins.right,bottom:e.margins.bottom,left:e.margins.left,header:e.margins.header,footer:e.margins.footer,gutter:e.margins.gutter},...e.columns?{columns:e.columns}:{}}}function pn(e){const t=e.pageSettings;return hn({width:(null==t?void 0:t.width)??cn,height:(null==t?void 0:t.height)??un,orientation:(null==t?void 0:t.orientation)??dn,margins:{top:(null==t?void 0:t.margins.top)??fn.top,right:(null==t?void 0:t.margins.right)??fn.right,bottom:(null==t?void 0:t.margins.bottom)??fn.bottom,left:(null==t?void 0:t.margins.left)??fn.left,header:(null==t?void 0:t.margins.header)??fn.header,footer:(null==t?void 0:t.margins.footer)??fn.footer,gutter:(null==t?void 0:t.margins.gutter)??fn.gutter},...(null==t?void 0:t.columns)?{columns:t.columns}:{}})}function mn(){return{merge(e,t){if(!t)return{...e};const r={...e};for(const[n,i]of Object.entries(t))void 0!==i&&(r[n]=i);return r}}}const gn=mn(),vn=mn();function bn(e,t){return gn.merge(e,t)}function yn(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const r=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return r?r.id:void 0}function wn(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?wn(r.basedOn,t):{},...r.textStyle??{}}}function _n(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?_n(r.basedOn,t):{},...r.paragraphStyle??{}}}function En(e,t,r){const n=bn(wn(t??yn(r),r),wn(null==e?void 0:e.styleId,r)),i=bn(n,e);return{...sn,...i}}function Nn(e,t){const r=(null==e?void 0:e.styleId)??yn(t),n=_n(r,t),i=(o=n,a={...e,styleId:r},vn.merge(o,a));var o,a;return{...ln,...i}}function xn(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:hn(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:pn(e)}]}function Tn(e){return"paragraph"===e.type?[e]:e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks))}let Sn=1,kn=1,An=1,In=1,Cn=1,Rn=1,On=1,Dn=1;function Ln(){const e=`bookmark:${On}`;return On+=1,e}function Mn(){const e=`comment:${Dn}`;return Dn+=1,e}function Pn(e=""){const t={id:`run:${An}`,text:e};return An+=1,t}function Fn(e=""){const t={id:`paragraph:${kn}`,type:"paragraph",runs:[Pn(e)]};return kn+=1,t}function Bn(e){const t={id:`paragraph:${kn}`,type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,r,n){const i=Pn(e);return t&&(i.styles={...t}),r&&(i.image={...r}),n&&(i.textBox=n),i}(e.text,e.styles,e.image,e.textBox)):[Pn("")]};return kn+=1,t}function zn(e,t=1,r){const n={id:`table-cell:${Rn}`,blocks:e.length>0?e:[Fn("")]};return t>1&&(n.colSpan=t),(null==r?void 0:r.rowSpan)&&r.rowSpan>1&&(n.rowSpan=r.rowSpan),(null==r?void 0:r.vMerge)&&(n.vMerge=r.vMerge),Rn+=1,n}function Un(e,t){const r={id:`table-row:${Cn}`,cells:e};return(null==t?void 0:t.isHeader)&&(r.isHeader=!0),Cn+=1,r}const Hn={normal:{id:"normal",name:"Normal",type:"paragraph",paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:14.6667}},header:{id:"header",name:"Header",type:"paragraph",basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:24,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:27,color:"#2e74b5"}},heading2:{id:"heading2",name:"Heading 2",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:17,color:"#2e74b5"}},heading3:{id:"heading3",name:"Heading 3",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:16,color:"#1f4d78"}},footnoteText:{id:"footnoteText",name:"Footnote Text",type:"paragraph",basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",name:"Caption",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}}};function qn(e,t,r,n,i,o){const a=hn(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:cn,height:un,orientation:dn,margins:{...fn}}),s={id:`document:${Sn}`,pageSettings:a,sections:r??[{id:"section:default",blocks:e,pageSettings:a}],styles:n??{...Hn},metadata:i??{title:"Untitled document"},assets:o??void 0};return Sn+=1,s}const jn="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Gn="http://schemas.openxmlformats.org/drawingml/2006/main",Vn="http://schemas.microsoft.com/office/word/2010/wordml";function Wn(e,t,r){if(!e)return[];const n=[];for(let i=0;i<e.childNodes.length;i+=1){const o=e.childNodes[i];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===t&&o.localName===r&&n.push(o)}return n}const Zn=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function Yn(e){return Zn.includes(e)?e:void 0}function Xn(e,t,r){return Wn(e,t,r)[0]??null}function $n(e,t){return e?e.getAttributeNS(jn,t)??e.getAttributeNS(Vn,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(t):null}function Qn(e,t){for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if(1===(null==n?void 0:n.nodeType)){const e=n;if(e.localName===t)return e;const r=Qn(e,t);if(r)return r}}return null}function Kn(e){return"1"===e||"true"===e||"on"===e}function Jn(e,t){const r=Xn(e,jn,t);if(!r)return;const n=$n(r,"val");return null==n||"0"!==n&&"false"!==n&&"off"!==n&&Kn(n)}function ei(e,t){return $n(Xn(e,jn,t),"val")??void 0}async function ti(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}function ri(e){var t;const r=new Map;if(!e)return r;const n=null==(t=(new on).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!n)return r;for(let i=0;i<n.length;i+=1){const e=n[i];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),n=t.getAttribute("Target");e&&n&&r.set(e,n)}}}return r}async function ni(e,t){var r;const n=t.lastIndexOf("/"),i=n>=0?t.slice(0,n):"",o=n>=0?t.slice(n+1):t,a=i?`${i}/_rels/${o}.rels`:`_rels/${o}.rels`;return ri(await(null==(r=e.file(a))?void 0:r.async("string")))}const ii=e=>{var t;const r=Xn(e,Gn,"latin");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||void 0},oi=e=>{var t;const r=Xn(e,Gn,"cs");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||ii(e)},ai=e=>{var t;const r=Xn(e,Gn,"ea");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||ii(e)};function si(e){const t=Xn(e,Gn,"fontScheme"),r=Xn(t,Gn,"majorFont"),n=Xn(t,Gn,"minorFont");return{majorHAnsi:ii(r),minorHAnsi:ii(n),majorEastAsia:ai(r),minorEastAsia:ai(n),majorBidi:oi(r),minorBidi:oi(n)}}function li(e,t){const r=e?Number(e):Number.NaN;return Number.isFinite(r)?Math.round(r/1440*96):t}function ci(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return Math.round(t/20*1e4)/1e4}function ui(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}const di=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function fi(e){const t=Xn(e,Gn,"srgbClr");if(t)return ui($n(t,"val"));const r=Xn(e,Gn,"sysClr");return r?ui($n(r,"lastClr")):void 0}function hi(e){const t=Xn(e,Gn,"clrScheme");if(!t)return{};const r={};for(const n of di){const e=fi(Xn(t,Gn,n));e&&(r[n]=e)}return r}function pi(e){if(!e)return;const t=Number.parseInt(e,16);return Number.isFinite(t)?t/255:void 0}function mi(e,t,r){const n=e=>{return(t=e,Math.min(255,Math.max(0,Math.round(t)))).toString(16).padStart(2,"0").toUpperCase();var t};return`#${n(e)}${n(t)}${n(r)}`}const gi={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},vi={continuous:"continuous",eachSect:"eachSection"};function bi(e){if(!e)return;const t={},r=$n(Xn(e,jn,"numFmt"),"val");r&&gi[r]&&(t.numberFormat=gi[r]);const n=Number.parseInt($n(Xn(e,jn,"numStart"),"val")??"",10);Number.isFinite(n)&&n>0&&(t.startAt=n);const i=$n(Xn(e,jn,"numRestart"),"val");return i&&vi[i]&&(t.restart=vi[i]),Object.keys(t).length>0?t:void 0}const yi={decimal:"decimal",lowerLetter:"lowerLetter",upperLetter:"upperLetter",lowerRoman:"lowerRoman",upperRoman:"upperRoman",bullet:"bullet"};function wi(e){const t={},r=$n(Xn(e,jn,"numFmt"),"val");r&&(t.kind="bullet"===r?"bullet":"ordered",t.format=yi[r]);const n=$n(Xn(e,jn,"suff"),"val");"tab"!==n&&"space"!==n&&"nothing"!==n||(t.suffix=n);const i=$n(Xn(e,jn,"start"),"val");if(null!=i){const e=Number.parseInt(i,10);Number.isFinite(e)&&(t.startAt=e)}t.levelText=$n(Xn(e,jn,"lvlText"),"val")??void 0;const o=$n(Xn(e,jn,"lvlJc"),"val");"left"!==o&&"center"!==o&&"right"!==o||(t.alignment=o);const a=Xn(e,jn,"isLgl");var s;a&&(t.legal=null==(s=$n(a,"val"))||"1"===s||"true"===s||"on"===s),"bullet"===t.kind&&t.levelText&&(t.bulletGlyph=t.levelText);const l=Xn(e,jn,"rPr"),c=Xn(l,jn,"rFonts");t.bulletFont=$n(c,"ascii")??$n(c,"hAnsi")??void 0;const u=Xn(e,jn,"pPr"),d=Xn(u,jn,"ind");if(d){const e=$n(d,"left")??$n(d,"start"),r=$n(d,"hanging"),n=null!=e?li(e,0):void 0,i=null!=r?li(r,0):void 0;void 0===n&&void 0===i||(t.indent={left:n,hanging:i})}return t}function _i(e,t,r){const n=e.numToAbstractId.get(t),i=n?e.abstractLevels.get(`${n}:${r}`):void 0;return e.numOverrideLevels.get(`${t}:${r}`)??i??{}}function Ei(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function Ni(e){return Object.keys(e).length>0?e:void 0}function xi(e,t){return Ni({...e??{},...t??{}})}function Ti(e){return ui($n(e,"fill"))}function Si(e,t){if(!e)return;const r=En(e,t,Hn),n=En(void 0,t,Hn),i=(e,t)=>e!==t?e:void 0,o=(e,t,r)=>void 0!==e?e:i(t,r);return Ei({styleId:e.styleId,bold:o(e.bold,r.bold,n.bold),italic:o(e.italic,r.italic,n.italic),underline:i(r.underline,n.underline),underlineStyle:i(r.underlineStyle,n.underlineStyle),underlineColor:i(r.underlineColor,n.underlineColor),strike:o(e.strike,r.strike,n.strike),doubleStrike:o(e.doubleStrike,r.doubleStrike,n.doubleStrike),superscript:i(r.superscript,n.superscript),subscript:i(r.subscript,n.subscript),smallCaps:o(e.smallCaps,r.smallCaps,n.smallCaps),allCaps:o(e.allCaps,r.allCaps,n.allCaps),hidden:o(e.hidden,r.hidden,n.hidden),noProof:o(e.noProof,r.noProof,n.noProof),webHidden:o(e.webHidden,r.webHidden,n.webHidden),specVanish:o(e.specVanish,r.specVanish,n.specVanish),textEffect:i(r.textEffect,n.textEffect),characterScale:i(r.characterScale,n.characterScale),characterSpacing:i(r.characterSpacing,n.characterSpacing),baselineShift:i(r.baselineShift,n.baselineShift),kerningThreshold:i(r.kerningThreshold,n.kerningThreshold),ligatures:i(r.ligatures,n.ligatures),numberSpacing:i(r.numberSpacing,n.numberSpacing),numberForm:i(r.numberForm,n.numberForm),stylisticSet:i(r.stylisticSet,n.stylisticSet),contextualAlternates:i(r.contextualAlternates,n.contextualAlternates),fontFamily:o(e.fontFamily,r.fontFamily,n.fontFamily),fontSize:o(e.fontSize,r.fontSize,n.fontSize),color:i(r.color,n.color),highlight:i(r.highlight,n.highlight),shading:i(r.shading,n.shading),language:i(r.language,n.language),link:i(r.link,n.link)})}function ki(e,t){if(!e)return;const r={},n=ei(e,"rStyle");n&&(r.styleId=n);const i=Jn(e,"b"),o=Jn(e,"bCs");void 0===i&&void 0===o||(r.bold=!0===i||!0===o);const a=Jn(e,"i"),s=Jn(e,"iCs");void 0===a&&void 0===s||(r.italic=!0===a||!0===s);const l=Jn(e,"strike");void 0!==l&&(r.strike=l);const c=Jn(e,"dstrike");void 0!==c&&(r.doubleStrike=c);const u=Jn(e,"smallCaps");void 0!==u&&(r.smallCaps=u);const d=Jn(e,"caps");void 0!==d&&(r.allCaps=d);const f=Jn(e,"vanish");void 0!==f&&(r.hidden=f);const h=Jn(e,"noProof");void 0!==h&&(r.noProof=h);const p=Jn(e,"webHidden");void 0!==p&&(r.webHidden=p);const m=Jn(e,"specVanish");void 0!==m&&(r.specVanish=m);const g=$n(Xn(e,jn,"effect"),"val");g&&(r.textEffect=g);const v=$n(Xn(e,jn,"w"),"val");if(v){const e=Number(v);Number.isFinite(e)&&e>0&&(r.characterScale=e)}const b=$n(Xn(e,jn,"spacing"),"val");if(b){const e=ci(b);void 0!==e&&(r.characterSpacing=e)}const y=$n(Xn(e,jn,"position"),"val");if(y){const e=Number(y);Number.isFinite(e)&&(r.baselineShift=e/2)}const w=$n(Xn(e,jn,"kern"),"val");if(w){const e=Number(w);Number.isFinite(e)&&e>=0&&(r.kerningThreshold=e/2)}const _=$n(Xn(e,Vn,"ligatures"),"val");"none"!==_&&"standard"!==_&&"contextual"!==_&&"historical"!==_&&"standardContextual"!==_||(r.ligatures=_);const E=$n(Xn(e,Vn,"numSpacing"),"val");"proportional"!==E&&"tabular"!==E||(r.numberSpacing=E);const N=$n(Xn(e,Vn,"numForm"),"val");"lining"!==N&&"oldStyle"!==N||(r.numberForm=N);const x=$n(Xn(e,Vn,"stylisticSets"),"val");if(x){const e=/^[0-9a-fA-F]+$/.test(x)&&x.length>2?Number.parseInt(x,16):Number(x);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){r.stylisticSet=t;break}}const T=$n(Xn(e,Vn,"cntxtAlts"),"val");null===T?Xn(e,Vn,"cntxtAlts")&&(r.contextualAlternates=!0):Kn(T)&&(r.contextualAlternates=!0);const S=Xn(e,jn,"u"),k=$n(S,"val");if(S&&"none"!==k){r.underline=!0,k&&"single"!==k&&(r.underlineStyle=k);const e=$n(S,"color");e&&"auto"!==e&&(r.underlineColor=ui(e))}const A=$n(Xn(e,jn,"vertAlign"),"val");"superscript"===A&&(r.superscript=!0),"subscript"===A&&(r.subscript=!0);const I=Xn(e,jn,"rFonts"),C=$n(I,"ascii")??$n(I,"hAnsi")??$n(I,"cs")??$n(I,"eastAsia")??function(e,t){const r=$n(e,"asciiTheme")??$n(e,"hAnsiTheme")??$n(e,"eastAsiaTheme")??$n(e,"cstheme");if(!r)return;const n="majorAscii"===r||"majorHAnsi"===r?"majorHAnsi":"minorAscii"===r||"minorHAnsi"===r?"minorHAnsi":"majorEastAsia"===r?"majorEastAsia":"minorEastAsia"===r?"minorEastAsia":"majorBidi"===r?"majorBidi":"minorBidi"===r?"minorBidi":void 0;return n?t[n]:void 0}(I,t.fonts);C&&(r.fontFamily=function(e){const t=null==e?void 0:e.trim();if(!t)return;return`${/[\s,]/.test(t)?`"${t.replace(/"/g,'\\"')}"`:t}, ${/times/i.test(t)?"serif":"sans-serif"}`}(C));const R=$n(Xn(e,jn,"sz")??Xn(e,jn,"szCs"),"val");if(R){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?Math.round(t/2/72*96*1e4)/1e4:null}(R);null!==e&&(r.fontSize=e)}const O=Xn(e,jn,"color"),D=$n(O,"val");if(D&&"auto"!==D)r.color=ui(D);else if("auto"!==D){const e=function(e,t){const r=$n(e,"themeColor");if(!r)return;const n=function(e){switch(e){case"dark1":case"text1":return"dk1";case"light1":case"background1":return"lt1";case"dark2":case"text2":return"dk2";case"light2":case"background2":return"lt2";case"accent1":case"accent2":case"accent3":case"accent4":case"accent5":case"accent6":return e;case"hyperlink":return"hlink";case"followedHyperlink":return"folHlink";default:return}}(r),i=n?t[n]:void 0;if(!i)return;let o=Number.parseInt(i.slice(1,3),16),a=Number.parseInt(i.slice(3,5),16),s=Number.parseInt(i.slice(5,7),16);const l=pi($n(e,"themeShade"));void 0!==l&&(o*=l,a*=l,s*=l);const c=pi($n(e,"themeTint"));if(void 0!==c){const e=255*(1-c);o=o*c+e,a=a*c+e,s=s*c+e}return mi(o,a,s)}(O,t.colors);e&&(r.color=e)}const L=$n(Xn(e,jn,"highlight"),"val");L&&"none"!==L&&(r.highlight=L);const M=Ti(Xn(e,jn,"shd"));M&&(r.shading=M);const P=Xn(e,jn,"lang");if(P){const e=$n(P,"val"),t=$n(P,"eastAsia"),n=$n(P,"bidi"),i={};e&&(i.value=e),t&&(i.eastAsia=t),n&&(i.bidi=n),Object.keys(i).length>0&&(r.language=i)}return Ni(r)}function Ai(e){if(!e)return;const t=$n(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const r=Number($n(e,"sz")),n=Number.isFinite(r)&&r>0?Math.round(r/8*1e4)/1e4:.75,i=ui($n(e,"color"))??"#000000",o=(null==t?void 0:t.toLowerCase())??"single";return{width:n,type:o.includes("dotted")||o.includes("dot")?"dotted":o.includes("dash")?"dashed":"solid",color:i}}function Ii(e){return e?{borderTop:Ai(Xn(e,jn,"top")),borderRight:Ai(Xn(e,jn,"right")),borderBottom:Ai(Xn(e,jn,"bottom")),borderLeft:Ai(Xn(e,jn,"left")),borderStart:Ai(Xn(e,jn,"start")),borderEnd:Ai(Xn(e,jn,"end")),borderTopLeftToBottomRight:Ai(Xn(e,jn,"tl2br")),borderTopRightToBottomLeft:Ai(Xn(e,jn,"tr2bl"))}:{}}function Ci(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function Ri(e){const t=Xn(e,jn,"spacing");return{before:Kn($n(t,"beforeAutospacing")),after:Kn($n(t,"afterAutospacing"))}}function Oi(e){if(!e)return;const t={},r=ei(e,"pStyle");r&&(t.styleId=r);const n=$n(Xn(e,jn,"jc"),"val");"left"===n||"start"===n||"center"===n||"right"===n||"end"===n||"justify"===n?t.align="start"===n?"left":"end"===n?"right":n:"both"!==n&&"distribute"!==n||(t.align="justify");const i=Xn(e,jn,"spacing"),o=$n(i,"before"),a=$n(i,"after"),s=$n(i,"line"),l=$n(i,"lineRule");o&&(t.spacingBefore=li(o,0)),a&&(t.spacingAfter=li(a,0)),s&&("exact"===l||"atLeast"===l?(t.lineHeight=Math.round(Number(s)/1440*96*1e4)/1e4,t.lineRule=l):t.lineHeight=Number(s)/240);const c=Jn(e,"contextualSpacing");void 0!==c&&(t.contextualSpacing=c);const u=Jn(e,"snapToGrid");void 0!==u&&(t.snapToGrid=u);const d=Xn(e,jn,"ind"),f=$n(d,"start")??$n(d,"left"),h=$n(d,"end")??$n(d,"right"),p=$n(d,"firstLine"),m=$n(d,"hanging");f&&(t.indentLeft=li(f,0)),h&&(t.indentRight=li(h,0)),m?(t.indentHanging=li(m,0),t.indentFirstLine=void 0):p&&(t.indentFirstLine=li(p,0));const g=function(e){const t=Xn(e,jn,"tabs");if(!t)return[];const r=[];for(const n of Wn(t,jn,"tab")){const e=ci($n(n,"pos"));if(void 0===e)continue;const t=$n(n,"val"),i="center"===t||"right"===t||"decimal"===t||"bar"===t||"clear"===t?t:"left",o=$n(n,"leader"),a="dot"===o||"hyphen"===o||"underscore"===o||"heavy"===o||"middleDot"===o?o:"none"===o?"none":void 0;r.push({position:e,type:i,...void 0!==a?{leader:a}:{}})}return r}(e);g.length>0&&(t.tabs=g);const v=Jn(e,"pageBreakBefore");void 0!==v&&(t.pageBreakBefore=v);const b=Jn(e,"keepNext");void 0!==b&&(t.keepWithNext=b);const y=Jn(e,"keepLines");void 0!==y&&(t.keepLinesTogether=y);const w=Jn(e,"widowControl");void 0!==w&&(t.widowControl=w);const _=Xn(e,jn,"pBdr");if(_){const{borderTop:e,borderRight:r,borderBottom:n,borderLeft:i}=Ii(_);e&&(t.borderTop=e),r&&(t.borderRight=r),n&&(t.borderBottom=n),i&&(t.borderLeft=i)}const E=Ti(Xn(e,jn,"shd"));E&&(t.shading=E);const N=Yn($n(Xn(e,jn,"textDirection"),"val"));N&&(t.textDirection=N);const x=$n(Xn(e,jn,"outlineLvl"),"val");if(void 0!==x){const e=Number(x);Number.isFinite(e)&&e>=0&&e<=8&&(t.outlineLevel=e)}return Ni(t)}function Di(e){if(!e)return;const t={},r=Xn(e,jn,"trHeight");if(r){const e=ci($n(r,"val"));void 0!==e&&(t.height=e);const n=$n(r,"hRule");"auto"!==n&&"exact"!==n&&"atLeast"!==n||(t.heightRule=n)}const n=Jn(e,"cantSplit");void 0!==n&&(t.cantSplit=n);const i=Jn(e,"hidden");return void 0!==i&&(t.hidden=i),Object.keys(t).length>0?t:void 0}function Li(e){return"1"===e||"true"===e||"on"===e}function Mi(e){const t=Xn(e,jn,"cols");if(!t)return;const r=Number.parseInt($n(t,"num")??"1",10);if(!Number.isFinite(r)||r<=1)return;const n=li($n(t,"space"),0),i=$n(t,"sep"),o=$n(t,"equalWidth"),a=Wn(t,jn,"col").map(e=>({width:li($n(e,"w"),0),space:li($n(e,"space"),n)})),s=null==o||Li(o);return{count:r,space:n,...Li(i)?{separator:!0}:{},...s?{}:{equalWidth:!1},...!s&&a.length>0?{columns:a}:{}}}function Pi(e){const t=Xn(e,jn,"pgSz"),r=Xn(e,jn,"pgMar"),n=Mi(e);let i;if(t||r||n){const e=li($n(t,"w"),816),o=li($n(t,"h"),1056),a=$n(t,"orient");i={width:e,height:o,orientation:"landscape"===a?"landscape":"portrait"===a?"portrait":e>o?"landscape":"portrait",margins:{top:li($n(r,"top"),96),right:li($n(r,"right"),96),bottom:li($n(r,"bottom"),96),left:li($n(r,"left"),96),header:li($n(r,"header"),48),footer:li($n(r,"footer"),48),gutter:li($n(r,"gutter"),0)},...n?{columns:n}:{}}}const o=t=>{const r={};for(const n of Wn(e,jn,t)){const e=$n(n,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=n.getAttribute("r:id")??n.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(r[e]=t)}return r},a=o("headerReference"),s=o("footerReference"),l=Xn(e,jn,"docGrid"),c=$n(l,"type"),u=li($n(l,"linePitch"),Number.NaN);return{pageSettings:i,headerRIds:a,footerRIds:s,docGridLinePitchPx:Number.isFinite(u)&&u>0?u:void 0,docGridMode:"lines"===c||"linesAndChars"===c?"explicit":void 0,docGridType:c}}function Fi(e){if(!e)return;const t=Xn(e,jn,"sectPr");if(!t)return;const r=Xn(t,jn,"pgSz"),n=Xn(t,jn,"pgMar"),i=Mi(t);if(!r&&!n&&!i)return;const o=li($n(r,"w"),816),a=li($n(r,"h"),1056),s=$n(r,"orient");return{width:o,height:a,orientation:"landscape"===s?"landscape":"portrait"===s?"portrait":o>a?"landscape":"portrait",margins:{top:li($n(n,"top"),96),right:li($n(n,"right"),96),bottom:li($n(n,"bottom"),96),left:li($n(n,"left"),96),header:li($n(n,"header"),48),footer:li($n(n,"footer"),48),gutter:li($n(n,"gutter"),0)},...i?{columns:i}:{}}}function Bi(e,t,r,n,i){var o,a,s;if(t&&r)for(const l of e){if("paragraph"===l.type){const e=(null==(o=l.style)?void 0:o.styleId)&&/heading/i.test(l.style.styleId);void 0!==(null==(a=l.style)?void 0:a.lineHeight)||!1===(null==(s=l.style)?void 0:s.snapToGrid)||e||(l.style={...l.style??{},lineGridPitch:t,lineGridType:n});continue}if(i.adjustLineHeightInTable)for(const e of l.rows)for(const o of e.cells)Bi(o.blocks,t,r,n,i)}}const zi=9525,Ui=96/72;function Hi(e){const t=qi(e);return void 0===t?void 0:Math.round(t/zi)}function qi(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function ji(e){const t=null==e?void 0:e.trim();if(!t)return null;const r=t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);if(!r)return null;const n=Number(r[1]);if(!Number.isFinite(n)||n<=0)return null;switch((r[2]??"px").toLowerCase()){case"pt":return Math.round(n*Ui);case"in":return Math.round(96*n);case"cm":return Math.round(n/2.54*96);case"mm":return Math.round(n/25.4*96);case"pc":return Math.round(12*n*Ui);default:return Math.round(n)}}function Gi(e){const t=null==e?void 0:e.trim();if(t&&/^[0-9a-fA-F]{6}$/.test(t))return`#${t.toUpperCase()}`}const Vi={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"};async function Wi(e,t,r){let n=r;n.startsWith("/")&&(n=n.slice(1)),n.startsWith("word/")||(n="word/"+r);const i=e.file(n),o=function(e){var t;const r=null==(t=e.split(".").pop())?void 0:t.toLowerCase();return r?Vi[r]??null:null}(r)??"image/png",a=await(null==i?void 0:i.async("base64"));if(a)return function(e,t,r){const n=e.byPath.get(t);if(n)return`${an}${n}`;const i=`img-${e.nextId}`;return e.nextId+=1,e.assets[i]={id:i,url:r},e.byPath.set(t,i),`${an}${i}`}(t,n,`data:${o};base64,${a}`)}function Zi(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function Yi(e,t){var r,n,i,o;const a=Qn(e,t);if(!a)return;const s=null==(n=null==(r=Qn(a,"align"))?void 0:r.textContent)?void 0:n.trim(),l=Xi(null==(o=null==(i=Qn(a,"posOffset"))?void 0:i.textContent)?void 0:o.trim()),c={relativeFrom:a.getAttribute("relativeFrom")??void 0,...s?{align:s}:{},...void 0!==l?{offset:l}:{}};return void 0!==c.relativeFrom||void 0!==c.align||void 0!==c.offset?c:void 0}function Xi(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function $i(e){const t=Yi(e,"positionH"),r=Yi(e,"positionV"),n=function(e){return Qn(e,"wrapSquare")?"square":Qn(e,"wrapTight")?"tight":Qn(e,"wrapThrough")?"through":Qn(e,"wrapTopAndBottom")?"topAndBottom":Qn(e,"wrapNone")?"none":void 0}(e),i=Xi(e.getAttribute("distT")),o=Xi(e.getAttribute("distB")),a=Xi(e.getAttribute("distL")),s=Xi(e.getAttribute("distR")),l=Zi(e.getAttribute("simplePos")),c=Xi(e.getAttribute("relativeHeight")),u=Zi(e.getAttribute("behindDoc")),d=Zi(e.getAttribute("locked")),f=Zi(e.getAttribute("layoutInCell")),h=Zi(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==i?{distT:i}:{},...void 0!==o?{distB:o}:{},...void 0!==a?{distL:a}:{},...void 0!==s?{distR:s}:{},...void 0!==l?{simplePos:l}:{},...void 0!==c?{relativeHeight:c}:{},...void 0!==u?{behindDoc:u}:{},...void 0!==d?{locked:d}:{},...void 0!==f?{layoutInCell:f}:{},...void 0!==h?{allowOverlap:h}:{},...t?{positionH:t}:{},...r?{positionV:r}:{},...n?{wrap:n}:{}}}async function Qi(e,t,r,n){const i=Qn(e,"blip");if(!i)return{text:"",image:void 0};const{embed:o,link:a}=function(e){const t={};for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];n&&("embed"===n.localName||"r:embed"===n.name?t.embed=n.value:"link"!==n.localName&&"r:link"!==n.name||(t.link=n.value))}return t}(i),s=function(e){for(let t=0;t<e.childNodes.length;t+=1){const r=e.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;if("inline"===n.localName||"anchor"===n.localName)return{element:n,kind:n.localName}}}(e),l=(null==s?void 0:s.element)??e,c=Qn(l,"extent"),u=Qn(l,"docPr");let d=300,f=300;if(c){const e=c.getAttribute("cx"),t=c.getAttribute("cy");e&&(d=Math.round(parseInt(e,10)/zi)),t&&(f=Math.round(parseInt(t,10)/zi))}const h=u?$n(u,"descr")??$n(u,"title"):null,p=function(e){const t=Qn(e,"srcRect");if(!t)return;const r=e=>{const r=t.getAttribute(e);if(null===r||""===r)return;const n=parseInt(r,10);return Number.isFinite(n)&&0!==n?n/1e5:void 0},n={left:r("l"),top:r("t"),right:r("r"),bottom:r("b")};return void 0!==n.left||void 0!==n.top||void 0!==n.right||void 0!==n.bottom?n:void 0}(e),m=function(e){if(Qn(e,"tile"))return"tile"}(e),g=function(e){const t=Qn(e,"xfrm");if(!t)return{};const r={},n=t.getAttribute("rot");if(n){const e=parseInt(n,10);Number.isFinite(e)&&0!==e&&(r.rotation=e/6e4)}const i=t.getAttribute("flipH");"1"!==i&&"true"!==i||(r.flipH=!0);const o=t.getAttribute("flipV");return"1"!==o&&"true"!==o||(r.flipV=!0),r}(e),v="anchor"===(null==s?void 0:s.kind)?$i(s.element):void 0,b="anchor"===(null==s?void 0:s.kind)?function(e){const t=Qn(e,"wrapPolygon");if(!t)return;const r=[];for(let n=0;n<t.childNodes.length;n+=1){const e=t.childNodes[n];if(1!==(null==e?void 0:e.nodeType))continue;const i=e;if("start"!==i.localName&&"lineTo"!==i.localName)continue;const o=Xi(i.getAttribute("x")),a=Xi(i.getAttribute("y"));void 0!==o&&void 0!==a&&r.push({x:o/21600,y:a/21600})}if(r.length>=2){const e=r[0],t=r[r.length-1];Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6&&r.pop()}return r.length>=3?r:void 0}(s.element):void 0,y={width:d,height:f,...null!==h?{alt:h}:{},...p?{crop:p}:{},...m?{fillMode:m}:{},...void 0!==g.rotation?{rotation:g.rotation}:{},...g.flipH?{flipH:!0}:{},...g.flipV?{flipV:!0}:{},...v?{floating:v}:{},...b?{wrapPolygon:b}:{}},w=o?r.get(o):void 0,_=a?r.get(a):void 0;if(_&&function(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith("//")}(_))return{text:"",image:{src:"",linkedSrc:_,...y}};const E=w??_;if(E){const e=await Wi(t,n,E);if(e)return{text:"",image:{src:e,...y}}}return{text:"",image:void 0}}function Ki(e){const t=null==e?void 0:e.trim();if(!t)return;if(t.endsWith("%")){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/100:void 0}if(/f$/i.test(t)){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/65536:void 0}const r=Number(t);return Number.isFinite(r)&&0!==r?r/65536:void 0}async function Ji(e,t,r,n){const i=Qn(e,"imagedata");if(!i)return;const o=function(e){for(let t=0;t<e.attributes.length;t+=1){const r=e.attributes[t];if(r&&("id"===r.localName||"r:id"===r.name))return r.value}}(i),a=o?r.get(o):void 0;if(!a)return;const s=Qn(e,"shape"),l=function(e){const t={};if(!e)return t;for(const r of e.split(";")){const e=r.indexOf(":");if(e<0)continue;const n=r.slice(0,e).trim().toLowerCase(),i=r.slice(e+1).trim();if("width"===n){const e=ji(i);null!==e&&(t.width=e)}else if("height"===n){const e=ji(i);null!==e&&(t.height=e)}}return t}(null==s?void 0:s.getAttribute("style")),c=function(e){const t={left:Ki($n(e,"cropleft")),top:Ki($n(e,"croptop")),right:Ki($n(e,"cropright")),bottom:Ki($n(e,"cropbottom"))};if(void 0!==t.left||void 0!==t.top||void 0!==t.right||void 0!==t.bottom)return t}(i),u=$n(i,"title")??i.getAttribute("o:title"),d=await Wi(t,n,a);return d?{src:d,width:l.width??300,height:l.height??300,...u?{alt:u}:{},...c?{crop:c}:{}}:void 0}function eo(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function to(e,t){var r,n,i,o;const a=Qn(e,t);if(!a)return;const s=null==(n=null==(r=Qn(a,"align"))?void 0:r.textContent)?void 0:n.trim(),l=qi(null==(o=null==(i=Qn(a,"posOffset"))?void 0:i.textContent)?void 0:o.trim()),c={relativeFrom:a.getAttribute("relativeFrom")??void 0,...s?{align:s}:{},...void 0!==l?{offset:l}:{}};return void 0!==c.relativeFrom||void 0!==c.align||void 0!==c.offset?c:void 0}function ro(e){const t=to(e,"positionH"),r=to(e,"positionV"),n=function(e){return Qn(e,"wrapSquare")?"square":Qn(e,"wrapTight")?"tight":Qn(e,"wrapThrough")?"through":Qn(e,"wrapTopAndBottom")?"topAndBottom":Qn(e,"wrapNone")?"none":void 0}(e),i=qi(e.getAttribute("distT")),o=qi(e.getAttribute("distB")),a=qi(e.getAttribute("distL")),s=qi(e.getAttribute("distR")),l=eo(e.getAttribute("simplePos")),c=qi(e.getAttribute("relativeHeight")),u=eo(e.getAttribute("behindDoc")),d=eo(e.getAttribute("locked")),f=eo(e.getAttribute("layoutInCell")),h=eo(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==i?{distT:i}:{},...void 0!==o?{distB:o}:{},...void 0!==a?{distL:a}:{},...void 0!==s?{distR:s}:{},...void 0!==l?{simplePos:l}:{},...void 0!==c?{relativeHeight:c}:{},...void 0!==u?{behindDoc:u}:{},...void 0!==d?{locked:d}:{},...void 0!==f?{layoutInCell:f}:{},...void 0!==h?{allowOverlap:h}:{},...t?{positionH:t}:{},...r?{positionV:r}:{},...n?{wrap:n}:{}}}async function no(e,t){const r=Qn(e,"wsp");if(!r)return;const n=function(e){for(let t=0;t<e.childNodes.length;t+=1){const r=e.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;if("inline"===n.localName||"anchor"===n.localName)return{element:n,kind:n.localName}}}(e),i=(null==n?void 0:n.element)??e,o=Qn(i,"extent"),a=Hi(null==o?void 0:o.getAttribute("cx"))??300,s=Hi(null==o?void 0:o.getAttribute("cy"))??300,l=Qn(i,"docPr"),c=l?$n(l,"name"):null,u=l?$n(l,"descr")??$n(l,"title"):null,d="anchor"===(null==n?void 0:n.kind)?ro(n.element):void 0,f=Qn(r,"txbxContent"),h=f&&t?await t(f):[],p=function(e){var t,r;const n=Qn(e,"spPr");if(!n)return;const i={},o=Qn(n,"prstGeom"),a=null==o?void 0:o.getAttribute("prst");a&&(i.preset=a);for(let s=0;s<n.childNodes.length;s+=1){const e=n.childNodes[s];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if("solidFill"===o.localName){const e=Gi(null==(t=Qn(o,"srgbClr"))?void 0:t.getAttribute("val"));e&&(i.fill=e)}else if("ln"===o.localName){const e=qi(o.getAttribute("w"));void 0!==e&&(i.borderWidthPt=Math.round(e/12700*100)/100);const t=Gi(null==(r=Qn(o,"srgbClr"))?void 0:r.getAttribute("val"));t&&(i.borderColor=t)}}return Object.keys(i).length>0?i:void 0}(r),m=function(e){const t=Qn(e,"bodyPr");if(!t)return;const r={},n=Hi(t.getAttribute("lIns")),i=Hi(t.getAttribute("tIns")),o=Hi(t.getAttribute("rIns")),a=Hi(t.getAttribute("bIns"));void 0!==n&&(r.paddingLeft=n),void 0!==i&&(r.paddingTop=i),void 0!==o&&(r.paddingRight=o),void 0!==a&&(r.paddingBottom=a);const s=t.getAttribute("anchor");s&&(r.anchor=s);const l=t.getAttribute("wrap");l&&(r.wrap=l);const c=t.getAttribute("vert");return"vert"!==c&&"vert270"!==c&&"wordArtVert"!==c||(r.vert=c),Qn(t,"spAutoFit")&&(r.autoFit=!0),Object.keys(r).length>0?r:void 0}(r),g=function(e){const t=Qn(e,"spPr");if(!t)return;const r=Qn(t,"xfrm"),n=qi(null==r?void 0:r.getAttribute("rot"));return void 0!==n&&0!==n&&(Math.round(n/6e4)%360+360)%360||void 0}(r);return{width:a,height:s,blocks:h,...d?{floating:d}:{},...void 0!==g?{rotation:g}:{},...c?{name:c}:{},...u?{alt:u}:{},...p?{shape:p}:{},...m?{body:m}:{}}}function io(e){let t;for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const i=n;if("Choice"!==i.localName)continue;const o=Qn(i,"drawing");if(!o)continue;void 0===t&&(t=o);const a=i.getAttribute("Requires")??"";if(/\bwps\b/.test(a))return o}return t}function oo(e){const t=$n(e,"id");if(!t)return;if("bookmarkEnd"===e.localName)return{kind:"end",docxId:t};const r=$n(e,"name")??void 0,n=$n(e,"colFirst"),i=$n(e,"colLast"),o=null!==n?Number.parseInt(n,10):void 0,a=null!==i?Number.parseInt(i,10):void 0;return{kind:"start",docxId:t,...void 0!==r?{name:r}:{},...void 0===o||Number.isNaN(o)?{}:{colFirst:o},...void 0===a||Number.isNaN(a)?{}:{colLast:a}}}function ao(e){const t=$n(e,"id");if(t)return{kind:"commentRangeEnd"===e.localName?"end":"start",docxId:t}}async function so(e,t,r,n,i){const o=[];let a,s,l,c=0;const u=[],d=[],f=e=>{o.push(e),c+=e.length},h=e.childNodes;for(let p=0;p<h.length;p+=1){const e=h[p];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if(o.namespaceURI===jn)if("t"===o.localName)f(o.textContent??"");else if("tab"===o.localName)f("\t");else if("noBreakHyphen"===o.localName)f("‑");else if("softHyphen"===o.localName)f("­");else if("br"===o.localName)f("page"===$n(o,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===o.localName)continue;if("bookmarkStart"===o.localName||"bookmarkEnd"===o.localName){const e=oo(o);e&&u.push({offset:c,marker:e});continue}if("commentRangeStart"===o.localName||"commentRangeEnd"===o.localName){const e=ao(o);e&&d.push({offset:c,marker:e});continue}if("proofErr"===o.localName||"commentReference"===o.localName||"permStart"===o.localName||"permEnd"===o.localName)continue;if("cr"===o.localName)f("\n");else if("drawing"===o.localName){const e=await Qi(o,t,r,n);if(e.image)f(e.text),a=e.image;else{const e=await no(o,i);e&&(f(""),s=e)}}else if("pict"===o.localName){const e=await Ji(o,t,r,n);e&&(f(""),a=e)}else if("sym"===o.localName){const e=$n(o,"font")??"",t=$n(o,"char")??"",r=parseInt(t,16);f(Number.isFinite(r)&&r>0?String.fromCodePoint(r):"?"),l={font:e,char:t}}}else if("AlternateContent"===o.localName){const e=io(o);if(e){const t=await no(e,i);t&&(f(""),s=t)}}}return{text:o.join(""),image:a,...s?{textBox:s}:{},...u.length>0?{innerBookmarks:u}:{},...d.length>0?{innerComments:d}:{},...l?{sym:l}:{}}}async function lo(e,t,r,n,i,o,a,s){var l,c,u;const d=[],f=[],h=(e,t)=>{const r=$n(e,"fldCharType"),n=$n(e,"fldLock"),i=$n(e,"dirty"),o="true"===n||"1"===n,a="true"===i||"1"===i;if("begin"===r)d.push({text:"",fieldChar:{kind:"begin",...o?{fieldLock:!0}:{},...a?{dirty:!0}:{}},...t?{styles:t}:{}}),f.push({beginIndex:d.length-1,instruction:"",...t?{beginStyles:t}:{}});else if("separate"===r)d.push({text:"",fieldChar:{kind:"separate"},...t?{styles:t}:{}});else if("end"===r){d.push({text:"",fieldChar:{kind:"end"},...t?{styles:t}:{}});const e=f.pop();e&&(e=>{var t;const r=/\bNUMPAGES\b/i.test(e.instruction)?"NUMPAGES":/\bPAGE\b/i.test(e.instruction)?"PAGE":null;if(!r)return;const n=d.slice(e.beginIndex);if(n.some(e=>e.bookmark))return;const i=n.filter(e=>!e.fieldChar&&void 0===e.fieldInstruction),o=i.map(e=>e.text).join("")||"1",a=(null==(t=i.find(e=>e.styles))?void 0:t.styles)??e.beginStyles;d.length=e.beginIndex,d.push({text:o,...a?{styles:a}:{},field:{type:r}})})(e)}},p=(e,t)=>{const r=e.textContent??"";d.push({text:"",fieldInstruction:r,...t?{styles:t}:{}});const n=f[f.length-1];n&&(n.instruction+=r)};for(let m=0;m<e.childNodes.length;m+=1){const f=e.childNodes[m];if((null==f?void 0:f.nodeType)!==f.ELEMENT_NODE)continue;const g=f;if(g.namespaceURI===jn){if("bookmarkStart"===g.localName||"bookmarkEnd"===g.localName){const e=oo(g);if(!e)continue;d.push({text:"",bookmark:e});continue}if("commentRangeStart"===g.localName||"commentRangeEnd"===g.localName){const e=ao(g);if(!e)continue;d.push({text:"",comment:e});continue}if("r"===g.localName){const e=ki(Xn(g,jn,"rPr"),o);if(Wn(g,jn,"fldChar").length>0||Wn(g,jn,"instrText").length>0){for(let t=0;t<g.childNodes.length;t+=1){const r=g.childNodes[t];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const n=r;n.namespaceURI===jn&&("fldChar"===n.localName?h(n,e):"instrText"===n.localName&&p(n,e))}continue}const t=Xn(g,jn,"footnoteReference");if(t){const r=$n(t,"id");if(!r)continue;const n=$n(t,"customMarkFollows");let i=e;(l=i??(i={})).styleId??(l.styleId="footnoteReference"),void 0===i.superscript&&(i.superscript=!0),d.push({text:"?",styles:i,footnoteReference:{docxId:r,...n?{customMark:n}:{}}});continue}const u=Xn(g,jn,"endnoteReference");if(u){const t=$n(u,"id");if(!t)continue;const r=$n(u,"customMarkFollows");let n=e;(c=n??(n={})).styleId??(c.styleId="endnoteReference"),void 0===n.superscript&&(n.superscript=!0),d.push({text:"?",styles:n,endnoteReference:{docxId:t,...r?{customMark:r}:{}}});continue}const{text:f,image:m,textBox:v,innerBookmarks:b,innerComments:y,sym:w}=await so(g,r,n,i,s);let _=e;w&&!(null==_?void 0:_.fontFamily)&&((_??(_={})).fontFamily=w.font),a&&((_??(_={})).link=a);const E=[...(b??[]).map(e=>({offset:e.offset,run:{text:"",bookmark:e.marker}})),...(y??[]).map(e=>({offset:e.offset,run:{text:"",comment:e.marker}}))];if(E.length>0&&!m&&!v){E.sort((e,t)=>e.offset-t.offset);let e=0;for(const r of E){const t=f.slice(e,r.offset);t.length>0&&d.push({text:t,..._?{styles:_}:{}}),d.push(r.run),e=r.offset}const t=f.slice(e);t.length>0&&d.push({text:t,..._?{styles:_}:{}});continue}if(0===f.length&&!m&&!v)continue;if(d.push({text:f,...m?{image:m}:{},...v?{textBox:v}:{},...w?{sym:w}:{},..._?{styles:_}:{}}),b)for(const r of b)d.push({text:"",bookmark:r.marker});continue}if("fldSimple"===g.localName){const e=g.getAttribute("w:instr")??g.getAttributeNS(jn,"instr")??g.getAttribute("instr")??"",l=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,c=await lo(g,t,r,n,i,o,a,s);if(l){const e=c.map(e=>e.text).join("")||"1",t=null==(u=c.find(e=>e.styles))?void 0:u.styles;d.push({text:e,styles:t,field:{type:l}})}else d.push({text:"",fieldChar:{kind:"begin"}}),d.push({text:"",fieldInstruction:e}),d.push({text:"",fieldChar:{kind:"separate"}}),d.push(...c),d.push({text:"",fieldChar:{kind:"end"}});continue}if("hyperlink"===g.localName){let e=n.get(g.getAttribute("r:id")??g.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;if(!e){const t=$n(g,"anchor");t&&(e=`#${t}`)}d.push(...await lo(g,t,r,n,i,o,e,s))}}}return d}function co(e){if(!e)return;const t=$n(e,"type"),r=$n(e,"w");if("auto"===t)return"auto";if("pct"===t){if(!r)return;const e=r.trim().endsWith("%")?Number.parseFloat(r):Number(r)/50;return Number.isFinite(e)?Math.round(1e4*e)/1e4+"%":void 0}return ci(r)}function uo(e,t){const r=$n(Xn(e,jn,t),"val"),n=r?Number(r):Number.NaN;return Number.isFinite(n)&&n>0?Math.floor(n):void 0}function fo(e,t){if(!e)return;const r=new Set(t),n=new nn,i=[],o=e.childNodes;for(let a=0;a<o.length;a+=1){const e=o[a];(null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&e.namespaceURI===jn&&r.has(e.localName??"")&&i.push(n.serializeToString(e))}return i.length>0?i:void 0}function ho(e){if(!e)return;const t=t=>ci($n(Xn(e,jn,t),"w")),r={},n=t("top"),i=t("right"),o=t("bottom"),a=t("left"),s=t("start"),l=t("end");return void 0!==n&&(r.top=n),void 0!==i&&(r.right=i),void 0!==o&&(r.bottom=o),void 0!==a&&(r.left=a),void 0!==s&&(r.start=s),void 0!==l&&(r.end=l),Object.keys(r).length>0?r:void 0}function po(e,t){const r={};t&&(r.styleId=t);const n=$n(Xn(e,jn,"tblCaption"),"val");n&&(r.altTitle=n);const i=$n(Xn(e,jn,"tblDescription"),"val");i&&(r.altDescription=i);const o=co(Xn(e,jn,"tblW"));void 0!==o&&(r.width=o);const a=co(Xn(e,jn,"tblInd"));void 0!==a&&(r.indentLeft=a);const s=$n(Xn(e,jn,"jc"),"val");"left"!==s&&"center"!==s&&"right"!==s||(r.align=s);const l=function(e){const t=$n(Xn(e,jn,"tblLayout"),"type");return"fixed"===t||"autofit"===t?t:void 0}(e);l&&(r.layout=l);const c=co(Xn(e,jn,"tblCellSpacing"));void 0!==c&&(r.cellSpacing=c);const u=ho(Xn(e,jn,"tblCellMar"));u&&(r.defaultCellMargins=u);const d=e?Jn(e,"bidiVisual"):void 0;void 0!==d&&(r.bidiVisual=d);const f=$n(Xn(e,jn,"tblOverlap"),"val");f&&(r.tblOverlap=f);const h=function(e){const t=Xn(e,jn,"tblpPr");if(!t||!t.attributes||0===t.attributes.length)return;const r={};for(let n=0;n<t.attributes.length;n+=1){const e=t.attributes.item(n);(null==e?void 0:e.namespaceURI)!==jn&&"w"!==(null==e?void 0:e.prefix)||(r[e.localName||e.name.replace(/^w:/,"")]=e.value)}return Object.keys(r).length>0?r:void 0}(e);h&&(r.floating=h);const p=fo(e,["tblPrChange"]);return p&&(r.revisionXml=p),Ni(r)}function mo(e){if(!e)return;const t={},r=uo(e,"gridBefore");void 0!==r&&(t.gridBefore=r);const n=uo(e,"gridAfter");void 0!==n&&(t.gridAfter=n);const i=co(Xn(e,jn,"wBefore"));void 0!==i&&(t.widthBefore=i);const o=co(Xn(e,jn,"wAfter"));void 0!==o&&(t.widthAfter=o);const a=Xn(e,jn,"trHeight"),s=ci($n(a,"val"));void 0!==s&&(t.height=s);const l=$n(a,"hRule");"auto"!==l&&"exact"!==l&&"atLeast"!==l||(t.heightRule=l);const c=co(Xn(e,jn,"tblCellSpacing"));void 0!==c&&(t.cellSpacing=c);const u=Jn(e,"cantSplit");void 0!==u&&(t.cantSplit=u);const d=Jn(e,"hidden");void 0!==d&&(t.hidden=d);const f=fo(e,["trPrChange","ins","del"]);return f&&(t.revisionXml=f),Ni(t)}function go(e){if(!e)return 1;const t=$n(Xn(e,jn,"gridSpan"),"val"),r=t?Number(t):1;return Number.isFinite(r)&&r>1?Math.floor(r):1}function vo(e){if(!e)return;const t=Xn(e,jn,"vMerge");if(!t)return;return"restart"===$n(t,"val")?"restart":"continue"}function bo(e,t){if(!e){if(!t)return;return Ni({paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,paddingStart:t.start,paddingEnd:t.end})}const r={...void 0!==(null==t?void 0:t.top)?{paddingTop:t.top}:{},...void 0!==(null==t?void 0:t.right)?{paddingRight:t.right}:{},...void 0!==(null==t?void 0:t.bottom)?{paddingBottom:t.bottom}:{},...void 0!==(null==t?void 0:t.left)?{paddingLeft:t.left}:{},...void 0!==(null==t?void 0:t.start)?{paddingStart:t.start}:{},...void 0!==(null==t?void 0:t.end)?{paddingEnd:t.end}:{}},n=Ti(Xn(e,jn,"shd"));n&&(r.shading=n);const i=Xn(e,jn,"tcW"),o=$n(i,"type"),a=$n(i,"w");if("dxa"===o){const e=ci(a);void 0!==e&&(r.width=e)}else if("pct"===o&&a){const e=Number(a);Number.isFinite(e)&&(r.width=Math.round(e/50*1e4)/1e4+"%")}const s=ho(Xn(e,jn,"tcMar"));s&&(void 0!==s.top&&(r.paddingTop=s.top),void 0!==s.bottom&&(r.paddingBottom=s.bottom),void 0!==s.left&&(r.paddingLeft=s.left),void 0!==s.right&&(r.paddingRight=s.right),void 0!==s.start&&(r.paddingStart=s.start),void 0!==s.end&&(r.paddingEnd=s.end));const l=function(e){if(!e)return;const t=$n(Xn(e,jn,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);l&&(r.verticalAlign=l);const c=Yn($n(Xn(e,jn,"textDirection"),"val"));c&&(r.textDirection=c);const u=Jn(e,"noWrap");void 0!==u&&(r.noWrap=u);const d=Jn(e,"tcFitText");void 0!==d&&(r.fitText=d);const f=Jn(e,"hideMark");void 0!==f&&(r.hideMark=f);const h=$n(Xn(e,jn,"headers"),"val");h&&(r.headers=h);const p=fo(e,["tcPrChange","cellIns","cellDel","cellMerge"]);p&&(r.revisionXml=p);for(const[m,g]of Object.entries(function(e){return e?Ii(Xn(e,jn,"tcBorders")):{}}(e)))g&&(r[m]=g);return Ni(r)}function yo(e){const t=Xn(e,jn,"trPr");return!!t&&!0===Jn(t,"tblHeader")}function wo(e,t){var r,n;const i=e=>e.style??(e.style={}),o=e.length-1;for(let a=0;a<e.length;a+=1){const r=t[a];r&&(0===a&&r.before&&(i(e[a]).spacingBefore=0),a===o&&r.after&&(i(e[a]).spacingAfter=0))}for(let a=0;a<o;a+=1){if(!(null==(r=t[a])?void 0:r.after)||!(null==(n=t[a+1])?void 0:n.before))continue;const o=i(e[a]),s=i(e[a+1]);(o.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:o.spacingAfter=0}}function _o(e,t,r,n,i,o,a){const s=i.firstRow&&0===e,l=i.lastRow&&e===r-1&&0!==e,c=i.firstCol&&0===t,u=i.lastCol&&t===n-1&&0!==t,d=[];if(!i.noHBand&&!s&&!l){const t=e-(i.firstRow?1:0),r=Math.floor(t/Math.max(1,o))%2;d.push(0===r?"band1Horz":"band2Horz")}if(!i.noVBand&&!c&&!u){const e=t-(i.firstCol?1:0),r=Math.floor(e/Math.max(1,a))%2;d.push(0===r?"band1Vert":"band2Vert")}return u&&d.push("lastCol"),c&&d.push("firstCol"),l&&d.push("lastRow"),s&&d.push("firstRow"),s&&c&&d.push("nwCell"),s&&u&&d.push("neCell"),l&&c&&d.push("swCell"),l&&u&&d.push("seCell"),d}function Eo(e,t){const r={};if(!t)return r;for(const n of e){const e=t[n];e&&(e.shading&&(r.shading=e.shading),e.textStyle&&(r.textStyle={...r.textStyle,...e.textStyle}),e.borders&&(r.borders={...r.borders,...e.borders}),e.paragraphStyle&&(r.paragraphStyle={...r.paragraphStyle,...e.paragraphStyle}),e.rowStyle&&(r.rowStyle={...r.rowStyle,...e.rowStyle}))}return r}function No(e,t){if(t&&0!==Object.keys(t).length)for(const r of e)for(const e of r.runs)e.styles={...t,...e.styles}}function xo(e,t,r){if(!e)return;const n=_n(t??yn(r),r),i=new Set(Object.keys(n)),o={};for(const[a,s]of Object.entries(e))i.has(a)||(o[a]=s);return Ni(o)}async function To(e,t,r,n,i,o,a){var s,l;const c=[],u=Xn(e,jn,"tblGrid");if(u)for(const I of Wn(u,jn,"gridCol")){const e=ci($n(I,"w"));void 0!==e&&c.push(e)}const d=Xn(u,jn,"tblGridChange"),f=Xn(e,jn,"tblPr"),h=$n(Xn(f,jn,"tblStyle"),"val"),p=h&&(null==(s=null==a?void 0:a[h])?void 0:s.paragraphStyle)?a[h].paragraphStyle:void 0,m=(g=Xn(f,jn,"tblBorders"))?{...Ii(g),borderInsideH:Ai(Xn(g,jn,"insideH")),borderInsideV:Ai(Xn(g,jn,"insideV"))}:{};var g;const v=h?null==(l=null==a?void 0:a[h])?void 0:l.tableStyle:void 0,b=po(f,h??void 0),y=null==b?void 0:b.defaultCellMargins,w=(null==v?void 0:v.conditionalFormats)??void 0,_=function(e){const t=Xn(e,jn,"tblLook"),r=e=>{const r=$n(t,e);return null===r||""===r?void 0:Kn(r)},n=$n(t,"val"),i=n?Number.parseInt(n,16):Number.NaN,o=e=>Number.isFinite(i)?0!==(i&e):void 0;return{firstRow:r("firstRow")??o(32)??!0,lastRow:r("lastRow")??o(64)??!1,firstCol:r("firstColumn")??o(128)??!0,lastCol:r("lastColumn")??o(256)??!1,noHBand:r("noHBand")??o(512)??!1,noVBand:r("noVBand")??o(1024)??!1}}(f),E=(null==v?void 0:v.rowBandSize)??1,N=(null==v?void 0:v.colBandSize)??1,x=Wn(e,jn,"tr"),T=x.length,S=c.length>0?c.length:x.reduce((e,t)=>Math.max(e,Wn(t,jn,"tc").length),0),k=[];for(let I=0;I<x.length;I+=1){const e=x[I],s=Xn(e,jn,"trPr"),l=Xn(s,jn,"cnfStyle"),c=[];"1"===$n(l,"firstRow")&&c.push("firstRow"),"1"===$n(l,"lastRow")&&c.push("lastRow");const u=Wn(e,jn,"tc"),d=[];for(let g=0;g<u.length;g+=1){const e=u[g],s=[],l=[],f=Xn(e,jn,"tcPr");for(const c of Wn(e,jn,"p")){const e=xo(p,$n(Xn(Xn(c,jn,"pPr"),jn,"pStyle"),"val")??void 0,a);s.push(await Io(c,t,r,n,i,o,e)),l.push(Ri(Xn(c,jn,"pPr")))}wo(s,l);const h=go(f),m=vo(f),v=bo(f,y),b=Eo([..._o(I,g,T,S,_,E,N),...c],w);if(No(s,b.textStyle),b.paragraphStyle){const e=b.paragraphStyle;for(const t of s)t.style={...e,...t.style}}const x=zn(s.length>0?s:[Bn([{text:""}])],h,"restart"===m?{rowSpan:1,vMerge:m}:m?{vMerge:m}:void 0),k={...v??{}},A=(null==v?void 0:v.shading)??b.shading;if(A&&(k.shading=A),b.borders)for(const t of["borderTop","borderRight","borderBottom","borderLeft"]){const e=b.borders[t];void 0===k[t]&&e&&(k[t]=e)}Object.keys(k).length>0&&(x.style=k),"continue"===m&&(x.blocks=[]),d.push(x)}const f=Un(d,yo(e)?{isHeader:!0}:void 0),h=mo(s);if(h&&(f.style=h),w){const e=_o(I,0,T,Math.max(1,S),_,E,N).filter(e=>"firstRow"===e||"lastRow"===e||"band1Horz"===e||"band2Horz"===e),t=Eo([...c,...e],w);t.rowStyle&&(f.style={...t.rowStyle,...f.style})}const m=Xn(e,jn,"tblPrEx");m&&(f.tblPrExXml=(new nn).serializeToString(m)),k.push(f)}!function(e,t){if(0===Object.keys(t).length)return;const r=e.length-1;for(let n=0;n<=r;n+=1){const i=e[n],o=i.cells.length-1;for(let e=0;e<=o;e+=1){const a=i.cells[e],s=a.style??{};0===n&&void 0===s.borderTop&&t.borderTop&&(s.borderTop=t.borderTop),n===r&&void 0===s.borderBottom&&t.borderBottom&&(s.borderBottom=t.borderBottom),0===e&&void 0===s.borderLeft&&t.borderLeft&&(s.borderLeft=t.borderLeft),e===o&&void 0===s.borderRight&&t.borderRight&&(s.borderRight=t.borderRight),n<r&&void 0===s.borderBottom&&t.borderInsideH&&(s.borderBottom=t.borderInsideH),e<o&&void 0===s.borderRight&&t.borderInsideV&&(s.borderRight=t.borderInsideV),Object.keys(s).length>0&&a.style!==s&&(a.style=s)}}}(k,m);for(let I=0;I<k.length;I+=1){const e=k[I];for(let t=0;t<e.cells.length;t+=1){const r=e.cells[t];if("restart"!==r.vMerge)continue;let n=1;for(let e=I+1;e<k.length;e+=1){const r=k[e].cells[t];if(!r||"continue"!==r.vMerge)break;n+=1}n>1&&(r.rowSpan=n)}}const A=function(e,t){const r={id:`table:${In}`,type:"table",rows:e,gridCols:t};return In+=1,r}(k,c.length>0?c:void 0);return b&&(A.style=b),A.style?A.style.tblLook=_:h&&(A.style={tblLook:_}),d&&(A.tblGridChangeXml=(new nn).serializeToString(d)),A}function So(e,t,r,n){var i;const o=Bn(e.length>0?e.map(e=>({text:e.text,styles:e.styles,image:e.image})):[{text:"",styles:n}]);e.forEach((e,t)=>{e.field&&(o.runs[t].field={...e.field}),e.fieldChar&&(o.runs[t].fieldChar={...e.fieldChar}),void 0!==e.fieldInstruction&&(o.runs[t].fieldInstruction=e.fieldInstruction),e.textBox&&(o.runs[t].textBox=e.textBox),e.footnoteReference&&(o.runs[t].__importedFootnoteRef={...e.footnoteReference}),e.endnoteReference&&(o.runs[t].__importedEndnoteRef={...e.endnoteReference}),e.bookmark&&(o.runs[t].__importedBookmark={...e.bookmark}),e.comment&&(o.runs[t].__importedComment={...e.comment}),e.sym&&(o.runs[t].sym={...e.sym})}),o.style=t?{...t}:void 0;for(const a of o.runs)a.styles=Si(a.styles,null==(i=o.style)?void 0:i.styleId);return o.list=r?{...r}:void 0,o}function ko(e){return e.some(e=>e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.text.replace(/\s/g,"").length>0)}async function Ao(e,t,r,n,i,o,a){const s=Xn(e,jn,"pPr"),l=await lo(e,t,r,n,i,o,void 0,e=>async function(e,t,r,n,i,o){const a=[];for(let s=0;s<e.childNodes.length;s+=1){const l=e.childNodes[s];if((null==l?void 0:l.nodeType)!==l.ELEMENT_NODE)continue;const c=l;if(c.namespaceURI===jn)if("p"===c.localName){const e=await Ao(c,t,r,n,i,o);for(const t of e.paragraphs)a.push(t)}else"tbl"===c.localName&&a.push(await To(c,t,r,n,i,o))}return a}(e,t,r,n,i,o)),c=Ci(Oi(s)),u=ki(Xn(s,jn,"rPr"),o),d=function(e,t){if(!e)return;const r=Xn(e,jn,"numPr");if(!r)return;const n=$n(Xn(r,jn,"numId"),"val");if(!n)return;const i=$n(Xn(r,jn,"ilvl"),"val")??"0",o=Number.parseInt(i,10),a=Number.isFinite(o)?o:0,s=_i(t,n,a),l=[];for(let f=0;f<=a;f+=1)l[f]=_i(t,n,f).format??"decimal";const c=`${n}:${a}`,u=!t.seenInstances.has(c);t.seenInstances.add(c);const d=u?t.numStartOverrides.get(c)??s.startAt:void 0;return{list:{kind:s.kind??"ordered",level:a,instanceId:n,suffix:s.suffix??"tab",...s.format?{format:s.format}:{},...l.length?{levelFormats:l}:{},...s.levelText?{levelText:s.levelText}:{},...s.alignment?{alignment:s.alignment}:{},...void 0!==s.legal?{legal:s.legal}:{},...void 0!==d&&1!==d?{startAt:d}:{},...s.bulletGlyph?{bulletGlyph:s.bulletGlyph}:{},...s.bulletFont?{bulletFont:s.bulletFont}:{}},indent:s.indent}}(s,t),f=null==d?void 0:d.list;let h=c;if(null==d?void 0:d.indent){const{left:e,hanging:t}=d.indent,r=c??{};h={...r,...void 0===r.indentLeft&&void 0!==e?{indentLeft:e}:{},...void 0===r.indentHanging&&void 0!==t?{indentHanging:t}:{}}}const p=function(e){if(!e)return;const t=Nn(e,Hn),r=Nn(void 0,Hn);return Ei({styleId:e.styleId,align:t.align!==r.align?t.align:void 0,spacingBefore:t.spacingBefore!==r.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==r.spacingAfter?t.spacingAfter:void 0,contextualSpacing:void 0!==e.contextualSpacing||t.contextualSpacing!==r.contextualSpacing?t.contextualSpacing:void 0,lineHeight:t.lineHeight!==r.lineHeight?t.lineHeight:void 0,lineRule:t.lineRule??void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:void 0!==e.snapToGrid||t.snapToGrid!==r.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==r.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==r.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==r.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==r.indentHanging?t.indentHanging:void 0,pageBreakBefore:void 0!==e.pageBreakBefore||t.pageBreakBefore!==r.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:void 0!==e.keepWithNext||t.keepWithNext!==r.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:void 0!==e.keepLinesTogether||t.keepLinesTogether!==r.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:void 0!==e.widowControl||t.widowControl!==r.widowControl?t.widowControl:void 0,shading:e.shading??void 0,borderTop:e.borderTop??void 0,borderRight:e.borderRight??void 0,borderBottom:e.borderBottom??void 0,borderLeft:e.borderLeft??void 0,tabs:e.tabs??void 0,textDirection:e.textDirection??void 0,outlineLevel:e.outlineLevel??void 0})}(a?{...a,...h??{}}:h),m=function(e,t){var r;const n=Xn(e,jn,"framePr");if(!n)return null;const i=$n(n,"dropCap");if(!i||"none"===i)return null;const o=t.map(e=>e.text).join("");if(0===o.length)return null;const a=Number($n(n,"lines"));return{text:o,lines:Number.isFinite(a)&&a>0?a:3,type:"margin"===i?"margin":"drop",style:null==(r=t[0])?void 0:r.styles}}(s,l);if(m)return{paragraphs:[],pageBreakAfter:!1,dropCapFrame:m};const{segments:g,hasPageBreak:v}=function(e){const t=[[]];let r=!1;const n=(e,r)=>{(0!==r.length||e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment)&&t[t.length-1].push({...e,text:r})};for(const i of e){if(!i.text.includes("\f")){n(i,i.text);continue}const e=i.text.split("\f");e.forEach((o,a)=>{n(i,o),a<e.length-1&&(r=!0,t.push([]))})}return{segments:t,hasPageBreak:r}}(l);if(!v)return{paragraphs:[So(l,p,f,u)],pageBreakAfter:!1};const b=[];let y=!1;for(let w=0;w<g.length;w+=1){const e=g[w];if(w>0&&(y=!0),!ko(e))continue;const t=y?{...p??{},pageBreakBefore:!0}:p;b.push(So(e,t,f,u)),y=!1}return{paragraphs:b,pageBreakAfter:y}}async function Io(e,t,r,n,i,o,a){return(await Ao(e,t,r,n,i,o,a)).paragraphs[0]??Bn([{text:""}])}async function Co(e,t,r,n,i,o,a){if(!e)return[];const s=(new on).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=[];for(let c=0;c<s.childNodes.length;c+=1){const e=s.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const u=e;"p"===u.localName&&u.namespaceURI===jn?l.push(await Io(u,t,r,n,i,o)):"tbl"===u.localName&&u.namespaceURI===jn&&l.push(await To(u,t,r,n,i,o,a))}return l}const Ro=new Set(["separator","continuationSeparator","continuationNotice"]);const Oo=new Set(["separator","continuationSeparator","continuationNotice"]);const Do=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function Lo(e){if(e<=0)return String(e);let t=e,r="";for(const[n,i]of Do)for(;t>=n;)r+=i,t-=n;return r}function Mo(e){if(e<=0)return String(e);let t=e,r="";for(;t>0;){r="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+r,t=Math.floor((t-1)/26)}return r}const Po=["*","†","‡","§","¶","#"];function Fo(e,t="decimal"){switch(t){case"lowerRoman":return Lo(e);case"upperRoman":return Lo(e).toUpperCase();case"lowerLetter":return Mo(e);case"upperLetter":return Mo(e).toUpperCase();case"symbol":{const t=(e-1)%Po.length,r=Math.floor((e-1)/Po.length)+1;return Po[t].repeat(r)}default:return String(e)}}function Bo(e){var t,r;const n=e.footnotes;if(!n||0===Object.keys(n.items).length)return e;const i=(null==(t=n.settings)?void 0:t.numberFormat)??"decimal",o=(null==(r=n.settings)?void 0:r.startAt)??1,a=new Set,s=new Map;let l=o-1;for(const{run:h}of function*(e){const t=xn(e);for(const r of t){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const t of e)for(const e of t)for(const t of Tn(e))for(const e of t.runs)e.footnoteReference&&(yield{paragraph:t,run:e})}}(e)){const e=h.footnoteReference;e&&(a.add(e.footnoteId),e.customMark?s.set(e.footnoteId,e.customMark):s.has(e.footnoteId)||(l+=1,s.set(e.footnoteId,Fo(l,i))))}let c=!1;const u=xn(e).map(e=>{const t=e=>{if(!e)return e;let t=!1;const r=e.map(e=>{if("paragraph"===e.type){const r=zo(e,s);return r!==e&&(t=!0),r}let r=!1;const n=e.rows.map(e=>{let t=!1;const n=e.cells.map(e=>{let r=!1;const n=e.blocks.map(e=>{const t=zo(e,s);return t!==e&&(r=!0),t});return r?(t=!0,{...e,blocks:n}):e});return t?(r=!0,{...e,cells:n}):e});return r?(t=!0,{...e,rows:n}):e});return t?(c=!0,r):e};return{...e,blocks:t(e.blocks)??e.blocks,header:t(e.header),firstPageHeader:t(e.firstPageHeader),evenPageHeader:t(e.evenPageHeader),footer:t(e.footer),firstPageFooter:t(e.firstPageFooter),evenPageFooter:t(e.evenPageFooter)}}),d={};let f=!1;for(const[h,p]of Object.entries(n.items))a.has(h)?d[h]=p:f=!0;return c||f?{...e,sections:c?u:e.sections,footnotes:{...n,items:f?d:n.items}}:e}function zo(e,t){let r=!1;const n=e.runs.map(e=>{if(!e.footnoteReference)return e;const n=t.get(e.footnoteReference.footnoteId);return void 0===n||e.text===n?e:(r=!0,{...e,text:n})});return r?{...e,runs:n}:e}function Uo(e){var t,r;const n=e.endnotes;if(!n||0===Object.keys(n.items).length)return e;const i=(null==(t=n.settings)?void 0:t.numberFormat)??"decimal",o=(null==(r=n.settings)?void 0:r.startAt)??1,a=new Set,s=new Map;let l=o-1;for(const{run:h}of function*(e){const t=xn(e);for(const r of t){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const t of e)for(const e of t)for(const t of Tn(e))for(const e of t.runs)e.endnoteReference&&(yield{paragraph:t,run:e})}}(e)){const e=h.endnoteReference;e&&(a.add(e.endnoteId),e.customMark?s.set(e.endnoteId,e.customMark):s.has(e.endnoteId)||(l+=1,s.set(e.endnoteId,Fo(l,i))))}let c=!1;const u=xn(e).map(e=>{const t=e=>{if(!e)return e;let t=!1;const r=e.map(e=>{if("paragraph"===e.type){const r=Ho(e,s);return r!==e&&(t=!0),r}let r=!1;const n=e.rows.map(e=>{let t=!1;const n=e.cells.map(e=>{let r=!1;const n=e.blocks.map(e=>{const t=Ho(e,s);return t!==e&&(r=!0),t});return r?(t=!0,{...e,blocks:n}):e});return t?(r=!0,{...e,cells:n}):e});return r?(t=!0,{...e,rows:n}):e});return t?(c=!0,r):e};return{...e,blocks:t(e.blocks)??e.blocks,header:t(e.header),firstPageHeader:t(e.firstPageHeader),evenPageHeader:t(e.evenPageHeader),footer:t(e.footer),firstPageFooter:t(e.firstPageFooter),evenPageFooter:t(e.evenPageFooter)}}),d={};let f=!1;for(const[h,p]of Object.entries(n.items))a.has(h)?d[h]=p:f=!0;return c||f?{...e,sections:c?u:e.sections,endnotes:{...n,items:f?d:n.items}}:e}function Ho(e,t){let r=!1;const n=e.runs.map(e=>{if(!e.endnoteReference)return e;const n=t.get(e.endnoteReference.endnoteId);return void 0===n||e.text===n?e:(r=!0,{...e,text:n})});return r?{...e,runs:n}:e}const qo=new Set(["_GoBack"]);function jo(e,t,r){if("paragraph"===e.type){let n=0;const i=[];for(const o of e.runs){const a=o.__importedBookmark;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:n,seq:r.value}}),r.value+=1):(n+=o.text.length,i.push(o))}return void(i.length!==e.runs.length&&(e.runs=i.length>0?i:[Pn("")]))}for(const n of e.rows)for(const e of n.cells)for(const n of e.blocks)jo(n,t,r)}function Go(e){var t;const r=[],n={value:0},i=e=>{null==e||e.forEach(e=>jo(e,r,n))};for(const u of e)i(u.blocks),i(u.header),i(u.firstPageHeader),i(u.evenPageHeader),i(u.footer),i(u.firstPageFooter),i(u.evenPageFooter);if(0===r.length)return;const o=new Map,a=new Map;for(const u of r){const e="start"===u.marker.kind?o:a,t=e.get(u.marker.docxId);t?t.push(u):e.set(u.marker.docxId,[u])}const s={},l=[],c=r.filter(e=>"start"===e.marker.kind);for(const u of c){const{marker:e,anchor:r}=u,n=e.name;if(!n||qo.has(n))continue;const i=Number.parseInt(e.docxId,10),o=null==(t=a.get(e.docxId))?void 0:t.shift(),c=Ln(),d={id:c,name:n,start:r};n.startsWith("_")&&(d.hidden=!0),Number.isNaN(i)||(d.docxIdHint=i),void 0!==e.colFirst&&(d.colFirst=e.colFirst),void 0!==e.colLast&&(d.colLast=e.colLast),o&&(d.end=o.anchor),s[c]=d,l.push(c)}return 0!==l.length?{items:s,order:l}:void 0}function Vo(e,t,r){if("paragraph"===e.type){let n=0;const i=[];for(const o of e.runs){const a=o.__importedComment;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:n,seq:r.value}}),r.value+=1):(n+=o.text.length,i.push(o))}return void(i.length!==e.runs.length&&(e.runs=i.length>0?i:[Pn("")]))}for(const n of e.rows)for(const e of n.cells)for(const n of e.blocks)Vo(n,t,r)}function Wo(e){const t=[],r={value:0},n=e=>{null==e||e.forEach(e=>Vo(e,t,r))};for(const o of e)n(o.blocks),n(o.header),n(o.firstPageHeader),n(o.evenPageHeader),n(o.footer),n(o.firstPageFooter),n(o.evenPageFooter);const i=new Map;for(const{marker:o,anchor:a}of t){const e=i.get(o.docxId)??{};"start"===o.kind?e.start=a:e.end=a,i.set(o.docxId,e)}return i}const Zo="http://schemas.microsoft.com/office/word/2012/wordml";function Yo(e){let t="";for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const i=n;if(i.namespaceURI===jn){if("t"===i.localName){t+=i.textContent??"";continue}if("tab"===i.localName){t+="\t";continue}if("br"===i.localName||"cr"===i.localName){t+="\n";continue}}t+=Yo(i)}return t}function Xo(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function $o(e,t){const r=new Map;if(!e)return r;const n=(new on).parseFromString(e,"application/xml").documentElement;if(!n)return r;const i=function(e){const t=new Map;if(!e)return t;const r=(new on).parseFromString(e,"application/xml").documentElement;if(!r)return t;for(const n of Wn(r,Zo,"commentEx")){const e=n.getAttributeNS(Zo,"paraId");if(!e)continue;const r=n.getAttributeNS(Zo,"done");t.set(e,"1"===r||"true"===r)}return t}(t);for(const o of Wn(n,jn,"comment")){const e=$n(o,"id");if(null===e)continue;const t=$n(o,"author")??"",n=$n(o,"initials")??void 0,a=Xo($n(o,"date")),s=Wn(o,jn,"p"),l=s.map(e=>Yo(e)).join("\n").trim(),c=s.length>0?$n(s[0],"paraId")??void 0:void 0,u=void 0!==c?i.get(c):void 0;r.set(e,{author:t,...n?{initials:n}:{},...void 0!==a?{date:a}:{},text:l,...u?{resolved:u}:{},...c?{paraId:c}:{}})}return r}async function Qo(e,t={}){var r,n,o,a,s,l,c,u,d,f,h,p,m;null==(r=t.onProgress)||r.call(t,"opening-docx");const g=await i.loadAsync(e),v=await(null==(n=g.file("word/document.xml"))?void 0:n.async("string"));if(!v)throw new Error("Missing word/document.xml");const b=ri(await(null==(o=g.file("word/_rels/document.xml.rels"))?void 0:o.async("string"))),y=function(e){const t={abstractLevels:new Map,numOverrideLevels:new Map,numStartOverrides:new Map,numToAbstractId:new Map,seenInstances:new Set};if(!e)return t;const r=(new on).parseFromString(e,"application/xml").documentElement;if(!r)return t;for(const n of Array.from(r.getElementsByTagNameNS(jn,"abstractNum"))){const e=$n(n,"abstractNumId");if(e)for(const r of Wn(n,jn,"lvl")){const n=$n(r,"ilvl")??"0";t.abstractLevels.set(`${e}:${n}`,wi(r))}}for(const n of Array.from(r.getElementsByTagNameNS(jn,"num"))){const e=$n(n,"numId"),r=$n(Xn(n,jn,"abstractNumId"),"val");if(e&&r){t.numToAbstractId.set(e,r);for(const r of Wn(n,jn,"lvlOverride")){const n=$n(r,"ilvl")??"0",i=Xn(r,jn,"lvl");i&&t.numOverrideLevels.set(`${e}:${n}`,wi(i));const o=$n(Xn(r,jn,"startOverride"),"val");if(null!=o){const r=Number.parseInt(o,10);Number.isFinite(r)&&t.numStartOverrides.set(`${e}:${n}`,r)}}}}return t}(await(null==(a=g.file("word/numbering.xml"))?void 0:a.async("string"))??null),w=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const r=(new on).parseFromString(e,"application/xml"),n=ci($n(Xn(r.documentElement,jn,"defaultTabStop"),"val"));void 0!==n&&(t.defaultTabStop=n),t.footnoteSettings=bi(Xn(r.documentElement,jn,"footnotePr")),t.endnoteSettings=bi(Xn(r.documentElement,jn,"endnotePr"));const i=Xn(r.documentElement,jn,"compat");if(i){const e=Xn(i,jn,"adjustLineHeightInTable");if(e){const r=$n(e,"val");t.adjustLineHeightInTable="0"!==r&&"false"!==r}}return t}(await(null==(s=g.file("word/settings.xml"))?void 0:s.async("string"))??null),_=await(null==(l=g.file("word/styles.xml"))?void 0:l.async("string"))??null,E=function(e){if(!e)return{fonts:{},colors:{}};const t=(new on).parseFromString(e,"application/xml").documentElement,r=t?Wn(t,Gn,"themeElements")[0]??null:null;return{fonts:si(r),colors:hi(r)}}(await(null==(c=g.file("word/theme/theme1.xml"))?void 0:c.async("string"))??null),N=function(e,t){if(!e)return;const r=(new on).parseFromString(e,"application/xml").documentElement;if(!r)return;const n=Xn(r,jn,"docDefaults"),i=Xn(Xn(n,jn,"pPrDefault"),jn,"pPr"),o=Xn(Xn(n,jn,"rPrDefault"),jn,"rPr"),a=i?{spacingBefore:0,spacingAfter:0,...Ci(Oi(i))}:Ci(Oi(i)),s=ki(o,t),l={};let c;for(const u of Wn(r,jn,"style")){const e=$n(u,"styleId"),r=$n(u,"type");if(!e||"paragraph"!==r&&"character"!==r&&"table"!==r)continue;const n=$n(Xn(u,jn,"name"),"val")??e,i=$n(Xn(u,jn,"basedOn"),"val")??void 0,o=$n(Xn(u,jn,"next"),"val")??void 0,d=Ci(Oi(Xn(u,jn,"pPr"))),f=ki(Xn(u,jn,"rPr"),t);let h;if("table"===r){const r=Xn(u,jn,"tblPr"),n=ci($n(Xn(r,jn,"tblInd"),"w")),i=e=>{const t=$n(Xn(r,jn,e),"val"),n=t?Number(t):Number.NaN;return Number.isFinite(n)&&n>0?Math.floor(n):void 0},o=i("tblStyleRowBandSize"),a=i("tblStyleColBandSize"),s={};for(const e of Wn(u,jn,"tblStylePr")){const r=$n(e,"type");if(!r)continue;const n=Xn(e,jn,"tcPr"),i=Ti(Xn(n,jn,"shd")),o=ki(Xn(e,jn,"rPr"),t),a=Ni(Ii(Xn(n,jn,"tcBorders"))),l=Oi(Xn(e,jn,"pPr")),c=Di(Xn(e,jn,"trPr"));(i||o||a||l||c)&&(s[r]={...i?{shading:i}:{},...o?{textStyle:o}:{},...a?{borders:a}:{},...l?{paragraphStyle:l}:{},...c?{rowStyle:c}:{}})}h={styleId:e,indentLeft:n,...void 0!==o?{rowBandSize:o}:{},...void 0!==a?{colBandSize:a}:{},...Object.keys(s).length>0?{conditionalFormats:s}:{}}}const p="paragraph"===r&&Kn($n(u,"default"));p&&(c=e),l[e]={id:e,name:n,type:r,basedOn:i,nextStyle:o,paragraphStyle:"paragraph"===r&&p?xi(a,d):d,textStyle:"paragraph"===r&&p?xi(s,f):f,tableStyle:h}}return c&&l[c]?l:((a||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:a,textStyle:s}),Ni(l))}(_,E);null==(u=t.onProgress)||u.call(t,"parsing-document");const x=(new on).parseFromString(v,"application/xml").getElementsByTagNameNS(jn,"body")[0];if(!x)return qn([Bn([{text:""}])]);const T={assets:{},byPath:new Map,nextId:1},S=[],k=[[]];let A=!1,I=null;const C=e=>{A&&(e.style={...e.style??{},pageBreakBefore:!0},A=!1),I&&"paragraph"===e.type&&(e.dropCap=I,I=null),k[k.length-1].push(e)};let R=0;for(let i=0;i<x.childNodes.length;i+=1){const e=x.childNodes[i];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===jn&&"sectPr"!==t.localName&&(R+=1)}}let O=0;const D=()=>{var e;O+=1,R>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",O/R))};for(let i=0;i<x.childNodes.length;i+=1){const e=x.childNodes[i];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===jn){if("sectPr"===t.localName)S.push(Pi(t)),k.push([]),A=!1;else if("p"===t.localName){const e=await Ao(t,y,g,b,T,E);for(const t of e.paragraphs)C(t);e.dropCapFrame&&(I=e.dropCapFrame),e.pageBreakAfter&&(A=!0),D()}else"tbl"===t.localName&&(C(await To(t,y,g,b,T,E,N)),D());await ti(50,O)}}if(0===S.length){const e=Xn(x,jn,"sectPr");S.push(e?Pi(e):{pageSettings:Fi(x),headerRIds:{},footerRIds:{}})}null==(d=t.onProgress)||d.call(t,"parsing-headers-footers");const L=[],M=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,P=S.filter(M).length;let F=0;const B=()=>{var e;F+=1,P>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",F/P))};for(let i=0;i<S.length;i+=1){const e=S[i],t=k[i]??[];Bi(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,w);const r=async t=>{var r;if(!t)return[];const n=b.get(t);if(!n)return[];let i=n.startsWith("/")?n.slice(1):n;i.startsWith("word/")||(i=`word/${n}`);const o=await(null==(r=g.file(i))?void 0:r.async("string")),a=await ni(g,i),s=await Co(o??null,y,g,a,T,E,N);return Bi(s,e.docGridLinePitchPx,e.docGridMode,e.docGridType,w),s},n=await r(e.headerRIds.default),o=await r(e.headerRIds.first),a=await r(e.headerRIds.even),s=await r(e.footerRIds.default),l=await r(e.footerRIds.first),c=await r(e.footerRIds.even);M(e)&&B(),await ti(2,F);const u=hn(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}});L.push({id:`section:${i+1}`,blocks:t.length>0?t:[Bn([{text:""}])],pageSettings:u,header:n.length>0?n:void 0,firstPageHeader:o.length>0?o:void 0,evenPageHeader:a.length>0?a:void 0,footer:s.length>0?s:void 0,firstPageFooter:l.length>0?l:void 0,evenPageFooter:c.length>0?c:void 0})}const z=await(null==(f=g.file("word/footnotes.xml"))?void 0:f.async("string"))??null,U=z?await ni(g,"word/footnotes.xml"):new Map,H=await async function(e,t,r,n,i,o,a){const s={byDocxId:new Map,footnotes:{items:{}}};if(!e)return s;const l=(new on).parseFromString(e,"application/xml").documentElement;if(!l)return s;const c={},u=new Map;let d,f;const h=Wn(l,jn,"footnote");let p=0;for(const m of h){const e=$n(m,"id")??"",s=$n(m,"type")??"",l=[];for(let c=0;c<m.childNodes.length;c+=1){const e=m.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const s=e;s.namespaceURI===jn&&("p"===s.localName?l.push(await Io(s,t,r,n,i,o)):"tbl"===s.localName&&l.push(await To(s,t,r,n,i,o,a)))}if(Ro.has(s)){"separator"===s?d=l:"continuationSeparator"===s&&(f=l);continue}if(("-1"===e||"0"===e)&&0===l.length)continue;p+=1;const h=`footnote:imported:${p}`,g=Number.parseInt(e,10),v={id:h,blocks:l.length>0?l:[],docxId:Number.isFinite(g)?g:void 0};c[h]=v,e&&u.set(e,v)}return{byDocxId:u,footnotes:{items:c,separator:d,continuationSeparator:f},separator:d,continuationSeparator:f}}(z,y,g,U,T,E,N);w.footnoteSettings&&(H.footnotes.settings=w.footnoteSettings);const q=Object.keys(H.footnotes.items).length>0||H.footnotes.separator||H.footnotes.continuationSeparator||H.footnotes.settings?H.footnotes:void 0;!function(e,t){var r,n,i,o,a,s;const l=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)l(t);else for(const r of e.runs){const e=r,n=e.__importedFootnoteRef;if(!n)continue;delete e.__importedFootnoteRef;const i=t.get(n.docxId);i&&(r.footnoteReference={footnoteId:i.id,...n.customMark?{customMark:n.customMark}:{}})}};for(const c of e)c.blocks.forEach(l),null==(r=c.header)||r.forEach(l),null==(n=c.firstPageHeader)||n.forEach(l),null==(i=c.evenPageHeader)||i.forEach(l),null==(o=c.footer)||o.forEach(l),null==(a=c.firstPageFooter)||a.forEach(l),null==(s=c.evenPageFooter)||s.forEach(l)}(L,H.byDocxId);const j=await(null==(h=g.file("word/endnotes.xml"))?void 0:h.async("string"))??null,G=j?await ni(g,"word/endnotes.xml"):new Map,V=await async function(e,t,r,n,i,o,a){const s={byDocxId:new Map,endnotes:{items:{}}};if(!e)return s;const l=(new on).parseFromString(e,"application/xml").documentElement;if(!l)return s;const c={},u=new Map;let d,f;const h=Wn(l,jn,"endnote");let p=0;for(const m of h){const e=$n(m,"id")??"",s=$n(m,"type")??"",l=[];for(let c=0;c<m.childNodes.length;c+=1){const e=m.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const s=e;s.namespaceURI===jn&&("p"===s.localName?l.push(await Io(s,t,r,n,i,o)):"tbl"===s.localName&&l.push(await To(s,t,r,n,i,o,a)))}if(Oo.has(s)){"separator"===s?d=l:"continuationSeparator"===s&&(f=l);continue}if(("-1"===e||"0"===e)&&0===l.length)continue;p+=1;const h=`endnote:imported:${p}`,g=Number.parseInt(e,10),v={id:h,blocks:l.length>0?l:[],docxId:Number.isFinite(g)?g:void 0};c[h]=v,e&&u.set(e,v)}return{byDocxId:u,endnotes:{items:c,separator:d,continuationSeparator:f},separator:d,continuationSeparator:f}}(j,y,g,G,T,E,N);w.endnoteSettings&&(V.endnotes.settings=w.endnoteSettings);const W=Object.keys(V.endnotes.items).length>0||V.endnotes.separator||V.endnotes.continuationSeparator||V.endnotes.settings?V.endnotes:void 0;!function(e,t){var r,n,i,o,a,s;const l=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)l(t);else for(const r of e.runs){const e=r,n=e.__importedEndnoteRef;if(!n)continue;delete e.__importedEndnoteRef;const i=t.get(n.docxId);i&&(r.endnoteReference={endnoteId:i.id,...n.customMark?{customMark:n.customMark}:{}})}};for(const c of e)c.blocks.forEach(l),null==(r=c.header)||r.forEach(l),null==(n=c.firstPageHeader)||n.forEach(l),null==(i=c.evenPageHeader)||i.forEach(l),null==(o=c.footer)||o.forEach(l),null==(a=c.firstPageFooter)||a.forEach(l),null==(s=c.evenPageFooter)||s.forEach(l)}(L,V.byDocxId);const Z=Go(L),Y=function(e,t){const r=new Set([...e.keys(),...t.keys()]);if(0===r.size)return;const n=[...r].sort((e,t)=>{const r=Number.parseInt(e,10),n=Number.parseInt(t,10);return Number.isNaN(r)||Number.isNaN(n)?e.localeCompare(t):r-n}),i={},o=[];for(const a of n){const r=e.get(a),n=t.get(a);if(!r&&!n)continue;const s=Mn(),l=Number.parseInt(a,10);i[s]={id:s,author:(null==n?void 0:n.author)??"",...(null==n?void 0:n.initials)?{initials:n.initials}:{},...void 0!==(null==n?void 0:n.date)?{date:n.date}:{},...(null==n?void 0:n.resolved)?{resolved:n.resolved}:{},text:(null==n?void 0:n.text)??"",...(null==r?void 0:r.start)?{start:r.start}:{},...(null==r?void 0:r.end)?{end:r.end}:{},...Number.isNaN(l)?{}:{docxIdHint:l}},o.push(s)}return o.length>0?{items:i,order:o}:void 0}(Wo(L),$o(await(null==(p=g.file("word/comments.xml"))?void 0:p.async("string"))??null,await(null==(m=g.file("word/commentsExtended.xml"))?void 0:m.async("string"))??null)),X=L.length>1||L.some(e=>{var t,r,n,i,o,a;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(r=e.firstPageHeader)?void 0:r.length)??0)>0||((null==(n=e.evenPageHeader)?void 0:n.length)??0)>0||((null==(i=e.footer)?void 0:i.length)??0)>0||((null==(o=e.firstPageFooter)?void 0:o.length)??0)>0||((null==(a=e.evenPageFooter)?void 0:a.length)??0)>0}),$=Object.keys(T.assets).length>0,Q=e=>{void 0!==w.defaultTabStop&&(e.settings={...e.settings??{},defaultTabStop:w.defaultTabStop});let t=e;return q&&(t.footnotes=q,t=Bo(t)),W&&(t.endnotes=W,t=Uo(t)),Z&&(t.bookmarks=Z),Y&&(t.comments=Y),t};if(X){const e=qn([]);return e.sections=L,1===L.length&&(e.pageSettings=L[0].pageSettings),N&&(e.styles=N),$&&(e.assets=T.assets),Q(e)}const K=L[0],J=qn((null==K?void 0:K.blocks.length)>0?K.blocks:[Bn([{text:""}])],null==K?void 0:K.pageSettings);return $&&(J.assets=T.assets),N&&(J.styles=N),Q(J)}function Ko(e){globalThis.postMessage(e)}globalThis.addEventListener("message",async e=>{const t=e.data;if("import-docx"===(null==t?void 0:t.type))try{const e=await Qo(t.buffer,{onProgress:(e,r)=>{Ko({type:"progress",id:t.id,stage:e,progress:r})}});Ko({type:"done",id:t.id,document:e})}catch(r){Ko({type:"error",id:t.id,error:r instanceof Error?r.message:String(r)})}})}();