oasis-editor 0.0.165 → 0.0.167

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
- */r.exports=function e(t,r,o){function i(s,l){if(!r[s]){if(!t[s]){if(!l&&n)return n(s);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,o)}return r[s].exports}for(var a=n,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){var r=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,l,c,u=[],d=0,f=e.length,p=f,h="string"!==r.getTypeOf(e);d<e.length;)p=f-d,o=h?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<p?(15&n)<<2|o>>6:64,c=2<p?63&o:64,u.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,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,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&p--,e.charAt(e.length-2)===i.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|p):new Array(0|p);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=i.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=n),64!==l&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(r.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 o(r.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,n){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).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,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.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 o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function o(e,t,n,o,a,u){var d,f,p=e.file,h=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(p.name)),v=i.transformTo("string",s.utf8encode(p.name)),w=p.comment,b=i.transformTo("string",u(w)),y=i.transformTo("string",s.utf8encode(w)),x=v.length!==p.name.length,N=y.length!==w.length,S="",E="",k="",_=p.dir,T=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!x&&!N||(C|=2048);var A,R,$,D=0,P=0;_&&(D|=16),"UNIX"===a?(P=798,D|=(A=p.unixPermissions,R=_,$=A,A||($=R?16893:33204),(65535&$)<<16)):(P=20,D|=function(e){return 63&(e||0)}(p.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,f=T.getUTCFullYear()-1980,f<<=4,f|=T.getUTCMonth()+1,f<<=5,f|=T.getUTCDate(),x&&(E=r(1,1)+r(l(g),4)+v,S+="up"+r(E.length,2)+E),N&&(k=r(1,1)+r(l(b),4)+y,S+="uc"+r(k.length,2)+k);var O="";return O+="\n\0",O+=r(C,2),O+=h.magic,O+=r(d,2),O+=r(f,2),O+=r(I.crc32,4),O+=r(I.compressedSize,4),O+=r(I.uncompressedSize,4),O+=r(g.length,2),O+=r(S.length,2),{fileRecord:c.LOCAL_FILE_HEADER+O+g+S,dirRecord:c.CENTRAL_FILE_HEADER+r(P,2)+O+r(b.length,2)+"\0\0\0\0"+r(D,4)+r(o,4)+g+S+b}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=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:n?(t+100*(n-r-1))/n: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 n=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,i=o(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),n)this.push({data:(t=e,c.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.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 n,o,a,s,l,u,d=this.bytesWritten-e,f=(n=this.dirRecords.length,o=d,a=e,s=this.zipComment,l=this.encodeFileName,u=i.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(o,4)+r(a,4)+r(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 n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}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,n){var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var i=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;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 r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var i=0;i<r.length;i++)n.push(c(r[i]));return o.Promise.all(n)}).then(function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,c=r.resolve(s.fileNameStr);n.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||(n.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(n.comment=o.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(i,o),i.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()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),n&&n(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){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,n){function r(e,t,n){var r,o=i.getTypeOf(t),s=i.extend(n||{},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&&(r=h(e))&&g.call(this,r,!0);var d="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.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",o="string");var v=null;v=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new p(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var w=new u(e,v,s);this.files[e]=w}var o=e("./utf8"),i=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"),p=e("./nodejs/NodejsStreamInputAdapter"),h=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]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var o=e;return this.filter(function(e,t){return!t.dir&&o.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},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 n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].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,n={};try{if((n=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");i.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(l){(t=new a("error")).error(l)}return new s(t,n.type||"string",n.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=w},{"./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,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},o.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=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.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,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.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=o},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.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=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.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=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.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=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),o=e("../utils");function i(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,r),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),o=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.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=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.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=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(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}r.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 n=0;n<this._listeners[e].length;n++)this._listeners[e][n].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=r},{}],29:[function(e,t,n){var r=e("../utils"),o=e("./ConvertWorker"),i=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(n,o){var i=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,n){i.push(e),t&&t(n)}).on("error",function(e){i=[],o(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,o=null,i=0;for(n=0;n<t.length;n++)i+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(i),n=0;n<t.length;n++)o.set(t[n],r),r+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),c);n(e)}catch(t){o(t)}i=[]}).resume()})}function d(e,t,n){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=n,r.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(s){this._worker=new i("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.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,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(i){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(i){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),o=e("./support"),i=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,n.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,n,r,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,i,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((o=e[t++])<128)l[n++]=o;else if(4<(i=s[o]))l[n++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(o.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:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],o=0,i=e.length;if(i<=n)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,i)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(i){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.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,i.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 i.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 i.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 i.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},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var o=t[r];"."===o||""===o&&0!==r&&r!==t.length-1||(".."===o?n.pop():n.push(o))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,s,c){return a.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(c?t=o.decode(t):i&&!0!==s&&(t=l(u=t,r.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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=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 ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},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",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},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,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},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(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.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(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.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(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=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,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-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 "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(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=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},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 n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(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=r(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,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new o(t,n,"")},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 n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(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++)r.prototype[c[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,r){(function(e){var t,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=i=++i%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;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}n.exports=function(e){1!==c.push(e)||r||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function o(){}var i={},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!==o&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}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 p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=h(function(){t(o,r)});"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},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 n=new this.constructor(o);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(o);++l<n;)u(e[l],l);return c;function u(e,o){t.resolve(e).then(function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))},function(e){r||(r=!0,i.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(o);++s<n;)a=e[s],t.resolve(a).then(function(e){r||(r=!0,i.resolve(l,e))},function(e){r||(r=!0,i.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=o.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 n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,h))!==c)throw new Error(a[n]);this._dict_set=!0}}function h(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(e,t){var n,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=i.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 o.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=h,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),o=e("./utils/common"),i=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=o.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 n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,f,p=this.strm,h=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?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(h),p.next_out=0,p.avail_out=h),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(p.output,p.next_out),c=p.next_out-l,d=i.buf2string(p.output,l),p.next_out=c,p.avail_out=h-c,c&&o.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.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=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.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,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=o=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(c){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var a=new r.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&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if(4<(i=a[o]))c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&n<s;)o=o<<6|63&e[n++],i--;1<i?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;i=i+(o=o+t[r++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,n){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,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,p=-1,h=4,m=2,g=8,v=9,w=286,b=30,y=19,x=2*w+1,N=15,S=3,E=258,k=E+S+1,_=42,T=113,I=1,C=2,A=3,R=4;function $(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function O(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,O(e.strm)}function L(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 B(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+E,p=c[i+a-1],h=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===h&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<f);if(r=E-(f-i),i=f-E,a<r){if(e.match_start=t,s<=(a=r))break;p=c[i+a-1],h=c[i+a]}}}while((t=d[t&u])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function U(e){var t,n,r,i,l,c,u,d,f,p,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-k)){for(o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;r=e.head[--t],e.head[t]=h<=r?r-h:0,--n;);for(t=n=h;r=e.prev[--t],e.prev[t]=h<=r?r-h:0,--n;);i+=h}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,p=void 0,(f=i)<(p=c.avail_in)&&(p=f),n=0===p?0:(c.avail_in-=p,o.arraySet(u,c.input,c.next_in,p,d),1===c.state.wrap?c.adler=a(c.adler,u,p,d):2===c.state.wrap&&(c.adler=s(c.adler,u,p,d)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=S)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+S-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<S)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<k){if(U(e),e.lookahead<k&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=B(e,n)),e.match_length>=S)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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 r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}function H(e,t){for(var n,r,o;;){if(e.lookahead<k){if(U(e),e.lookahead<k&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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=S-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=B(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-S,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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=S-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return I}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}function j(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function q(){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 o.Buf16(2*x),this.dyn_dtree=new o.Buf16(2*(2*b+1)),this.bl_tree=new o.Buf16(2*(2*y+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(N+1),this.heap=new o.Buf16(2*w+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*w+1),P(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 W(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,e.adler=2===t.wrap?0:1,t.last_flush=c,i._tr_init(t),d):$(e,f)}function G(e){var t,n=W(e);return n===d&&((t=e.state).window_size=2*t.w_size,P(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=S-1,t.match_available=0,t.ins_h=0),n}function V(e,t,n,r,i,a){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||v<i||n!==g||r<8||15<r||t<0||9<t||a<0||h<a)return $(e,f);8===r&&(r=9);var l=new q;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.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=n,G(e)}r=[new j(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return I;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return I;if(e.strstart-e.block_start>=e.w_size-k&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),I)}),new j(4,4,8,4,z),new j(4,5,16,8,z),new j(4,6,32,32,z),new j(4,4,16,16,H),new j(8,16,32,32,H),new j(8,16,128,128,H),new j(8,32,128,256,H),new j(32,128,258,1024,H),new j(32,258,258,4096,H)],n.deflateInit=function(e,t){return V(e,t,g,15,8,0)},n.deflateInit2=V,n.deflateReset=G,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,o,a,l;if(!e||!e.state||5<t||t<0)return e?$(e,f):f;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&t!==u)return $(e,0===e.avail_out?-5:f);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===_)if(2===o.wrap)e.adler=0,L(o,31),L(o,139),L(o,8),o.gzhead?(L(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),L(o,255&o.gzhead.time),L(o,o.gzhead.time>>8&255),L(o,o.gzhead.time>>16&255),L(o,o.gzhead.time>>24&255),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(L(o,255&o.gzhead.extra.length),L(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(L(o,0),L(o,0),L(o,0),L(o,0),L(o,0),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,3),o.status=T);else{var p=g+(o.w_bits-8<<4)<<8;p|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(p|=32),p+=31-p%31,o.status=T,F(o,p),0!==o.strstart&&(F(o,e.adler>>>16),F(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending!==o.pending_buf_size));)L(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,L(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,L(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&O(e),o.pending+2<=o.pending_buf_size&&(L(o,255&e.adler),L(o,e.adler>>8&255),e.adler=0,o.status=T)):o.status=T),0!==o.pending){if(O(e),0===e.avail_out)return o.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return $(e,-5);if(666===o.status&&0!==e.avail_in)return $(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==c&&666!==o.status){var h=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return I;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=E){if(U(e),e.lookahead<=E&&t===c)return I;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0<e.strstart&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+E;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=E-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(n=i._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}(o,t):r[o.level].func(o,t);if(h!==A&&h!==R||(o.status=666),h===I||h===A)return 0===e.avail_out&&(o.last_flush=-1),d;if(h===C&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(P(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),O(e),0===e.avail_out))return o.last_flush=-1,d}return t!==u?d:o.wrap<=0?1:(2===o.wrap?(L(o,255&e.adler),L(o,e.adler>>8&255),L(o,e.adler>>16&255),L(o,e.adler>>24&255),L(o,255&e.total_in),L(o,e.total_in>>8&255),L(o,e.total_in>>16&255),L(o,e.total_in>>24&255)):(F(o,e.adler>>>16),F(o,65535&e.adler)),O(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==_&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?$(e,f):(e.state=null,t===T?$(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,i,s,l,c,u,p,h=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==_||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,h-n.w_size,n.w_size,0),t=p,h=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,U(n);n.lookahead>=S;){for(r=n.strstart,i=n.lookahead-(S-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+S-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=S-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){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,n){t.exports=function(e,t){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,w,b,y,x,N,S,E,k,_;n=e.state,r=e.next_in,k=e.input,o=r+(e.avail_in-5),i=e.next_out,_=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{h<15&&(p+=k[r++]<<h,h+=8,p+=k[r++]<<h,h+=8),b=m[p&v];t:for(;;){if(p>>>=y=b>>>24,h-=y,0==(y=b>>>16&255))_[i++]=65535&b;else{if(!(16&y)){if(!(64&y)){b=m[(65535&b)+(p&(1<<y)-1)];continue t}if(32&y){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(y&=15)&&(h<y&&(p+=k[r++]<<h,h+=8),x+=p&(1<<y)-1,p>>>=y,h-=y),h<15&&(p+=k[r++]<<h,h+=8,p+=k[r++]<<h,h+=8),b=g[p&w];n:for(;;){if(p>>>=y=b>>>24,h-=y,!(16&(y=b>>>16&255))){if(!(64&y)){b=g[(65535&b)+(p&(1<<y)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(N=65535&b,h<(y&=15)&&(p+=k[r++]<<h,(h+=8)<y&&(p+=k[r++]<<h,h+=8)),l<(N+=p&(1<<y)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=y,h-=y,(y=i-a)<N){if(u<(y=N-y)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=f,(S=0)===d){if(S+=c-y,y<x){for(x-=y;_[i++]=f[S++],--y;);S=i-N,E=_}}else if(d<y){if(S+=c+d-y,(y-=d)<x){for(x-=y;_[i++]=f[S++],--y;);if(S=0,d<x){for(x-=y=d;_[i++]=f[S++],--y;);S=i-N,E=_}}}else if(S+=d-y,y<x){for(x-=y;_[i++]=f[S++],--y;);S=i-N,E=_}for(;2<x;)_[i++]=E[S++],_[i++]=E[S++],_[i++]=E[S++],x-=3;x&&(_[i++]=E[S++],1<x&&(_[i++]=E[S++]))}else{for(S=i-N;_[i++]=_[S++],_[i++]=_[S++],_[i++]=_[S++],2<(x-=3););x&&(_[i++]=_[S++],1<x&&(_[i++]=_[S++]))}break}}break}}while(r<o&&i<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=h}},{}],49:[function(e,t,n){var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,p=852,h=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 r.Buf16(320),this.work=new r.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 r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(h),t.sane=1,t.back=-1,u):d}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,w(e))):d}function y(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var x,N,S=!0;function E(e){if(S){var t;for(x=new r.Buf32(512),N=new r.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,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,N,0,e.work,{bits:5}),S=!1}e.lencode=x,e.lenbits=9,e.distcode=N,e.distbits=5}function k(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}n.inflateReset=w,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,p,h,g,v,w,b,y,x,N,S,_,T,I,C,A,R,$,D,P,O,M,L,F,B=0,U=new r.Buf8(4),z=[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===(n=e.state).mode&&(n.mode=13),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,N=w,S=b,M=u;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(2&n.wrap&&35615===y){U[n.check=0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0),x=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,O=8+(15&(y>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&y?10:12,x=y=0;break;case 2:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=3;case 3:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.time=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,n.check=i(n.check,U,4,0)),x=y=0,n.mode=4;case 4:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(w<(_=n.length)&&(_=w),_&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,_,O)),512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===w)break e;for(_=0;O=p[g+_++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&_<w;);if(512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===w)break e;for(_=0;O=p[g+_++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&_<w;);if(512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}e.adler=n.check=m(y),x=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}switch(n.last=1&y,x-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(E(n),n.mode=20,6!==t)break;y>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,x-=2;break;case 14:for(y>>>=7&x,x-=7&x;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,x=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(w<_&&(_=w),b<_&&(_=b),0===_)break e;r.arraySet(h,p,g,_,v),w-=_,g+=_,b-=_,v+=_,n.length-=_;break}n.mode=12;break;case 17:for(;x<14;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.nlen=257+(31&y),y>>>=5,x-=5,n.ndist=1+(31&y),y>>>=5,x-=5,n.ncode=4+(15&y),y>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.lens[z[n.have++]]=7&y,y>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(R<16)y>>>=C,x-=C,n.lens[n.have++]=R;else{if(16===R){for(F=C+2;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y>>>=C,x-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],_=3+(3&y),y>>>=2,x-=2}else if(17===R){for(F=C+3;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,_=3+(7&(y>>>=C)),y>>>=3,x-=3}else{for(F=C+7;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,_=11+(127&(y>>>=C)),y>>>=7,x-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},M=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},M=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=w&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,a(e,S),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(A&&!(240&A)){for($=C,D=A,P=R;A=(B=n.lencode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,n.length=R,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(B=n.distcode[y&(1<<n.distbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(!(240&A)){for($=C,D=A,P=R;A=(B=n.distcode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(_=S-b,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=_>n.wnext?(_-=n.wnext,n.wsize-_):n.wnext-_,_>n.length&&(_=n.length),I=n.window}else I=h,T=v-n.offset,_=n.length;for(b<_&&(_=b),b-=_,n.length-=_;h[v++]=I[T++],--_;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;h[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===w)break e;w--,y|=p[g++]<<x,x+=8}if(S-=b,e.total_out+=S,n.total+=S,S&&(e.adler=n.check=n.flags?i(n.check,h,S,v-S):o(n.check,h,S,v-S)),S=b,(n.flags?y:m(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=y=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,(n.wsize||S!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,S-e.avail_out)?(n.mode=31,-4):(N-=e.avail_in,S-=e.avail_out,e.total_in+=N,e.total_out+=S,n.total+=S,n.wrap&&S&&(e.adler=n.check=n.flags?i(n.check,h,S,e.next_out-S):o(n.check,h,S,e.next_out-S)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==N&&0===S||4===t)&&M===u&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&o(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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,n,l,c,u,d,f){var p,h,m,g,v,w,b,y,x,N=f.bits,S=0,E=0,k=0,_=0,T=0,I=0,C=0,A=0,R=0,$=0,D=null,P=0,O=new r.Buf16(16),M=new r.Buf16(16),L=null,F=0;for(S=0;S<=15;S++)O[S]=0;for(E=0;E<l;E++)O[t[n+E]]++;for(T=N,_=15;1<=_&&0===O[_];_--);if(_<T&&(T=_),0===_)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(k=1;k<_&&0===O[k];k++);for(T<k&&(T=k),S=A=1;S<=15;S++)if(A<<=1,(A-=O[S])<0)return-1;if(0<A&&(0===e||1!==_))return-1;for(M[1]=0,S=1;S<15;S++)M[S+1]=M[S]+O[S];for(E=0;E<l;E++)0!==t[n+E]&&(d[M[t[n+E]]++]=E);if(w=0===e?(D=L=d,19):1===e?(D=o,P-=257,L=i,F-=257,256):(D=a,L=s,-1),S=k,v=u,C=E=$=0,m=-1,g=(R=1<<(I=T))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(b=S-C,x=d[E]<w?(y=0,d[E]):d[E]>w?(y=L[F+d[E]],D[P+d[E]]):(y=96,0),p=1<<S-C,k=h=1<<I;c[v+($>>C)+(h-=p)]=b<<24|y<<16|x,0!==h;);for(p=1<<S-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,E++,0==--O[S]){if(S===_)break;S=t[n+d[E]]}if(T<S&&($&g)!==m){for(0===C&&(C=T),v+=k,A=1<<(I=S-C);I+C<_&&!((A-=O[I+C])<=0);)I++,A<<=1;if(R+=1<<I,1===e&&852<R||2===e&&592<R)return 1;c[m=$&g]=T<<24|I<<16|v-u}}return 0!==$&&(c[v+$]=S-C<<24|64<<16),f.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){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,n){var r=e("../utils/common"),o=0,i=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,p=2*u+1,h=15,m=16,g=7,v=256,w=16,b=17,y=18,x=[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],N=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(u+2));a(k);var _=new Array(2*d);a(_);var T=new Array(512);a(T);var I=new Array(256);a(I);var C=new Array(l);a(C);var A,R,$,D=new Array(d);function P(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?T[e]:T[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){F(e,n[2*t],n[2*t+1])}function U(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,o,i=new Array(h+1),a=0;for(r=1;r<=h;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=U(i[s]++,s))}}function H(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?L(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 q(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function W(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&q(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!q(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function G(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?B(e,o,t):(B(e,(i=I[o])+c+1,t),0!==(a=x[i])&&F(e,o-=C[i],a),B(e,i=M(--r),n),0!==(a=N[i])&&F(e,r-=D[i],a)),s<e.last_lit;);B(e,v,t)}function V(e,t){var n,r,o,i=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=p,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)W(e,i,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,W(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,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(i=0;i<=h;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(i=g,v++),l[2*r+1]=i,c<r||(e.bl_count[i]++,a=0,m<=r&&(a=f[r-m]),s=l[2*r],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==v){do{for(i=g-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[g]--,v-=2}while(0<v);for(i=g;0!==i;i--)for(r=e.bl_count[i];0!==r;)c<(o=e.heap[--n])||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),z(i,c,e.bl_count)}function X(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*y]++,i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function Z(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)for(;B(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(B(e,o,e.bl_tree),s--),B(e,w,e.bl_tree),F(e,s-3,2)):s<=10?(B(e,b,e.bl_tree),F(e,s-3,3)):(B(e,y,e.bl_tree),F(e,s-11,7));i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}a(D);var Y=!1;function Q(e,t,n,o){var i,a,l;F(e,(s<<1)+(o?1:0),3),a=t,l=n,j(i=e),L(i,l),L(i,~l),r.arraySet(i.pending_buf,i.window,a,l,i.pending),i.pending+=l}n._tr_init=function(e){Y||(function(){var e,t,n,r,o,i=new Array(h+1);for(r=n=0;r<l-1;r++)for(C[r]=n,e=0;e<1<<x[r];e++)I[n++]=r;for(I[n-1]=r,r=o=0;r<16;r++)for(D[r]=o,e=0;e<1<<N[r];e++)T[o++]=r;for(o>>=7;r<d;r++)for(D[r]=o<<7,e=0;e<1<<N[r]-7;e++)T[256+o++]=r;for(t=0;t<=h;t++)i[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,i[8]++;for(;e<=255;)k[2*e+1]=9,e++,i[9]++;for(;e<=279;)k[2*e+1]=7,e++,i[7]++;for(;e<=287;)k[2*e+1]=8,e++,i[8]++;for(z(k,u+1,i),e=0;e<d;e++)_[2*e+1]=5,_[2*e]=U(e,5);A=new P(k,x,c+1,u,h),R=new P(_,N,0,d,h),$=new P(new Array(0),S,0,f,g)}(),Y=!0),e.l_desc=new O(e.dyn_ltree,A),e.d_desc=new O(e.dyn_dtree,R),e.bl_desc=new O(e.bl_tree,$),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=Q,n._tr_flush_block=function(e,t,n,r){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return i;return o}(e)),V(e,e.l_desc),V(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),V(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*E[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=n+5,n+4<=a&&-1!==t?Q(e,t,n,r):4===e.strategy||s===a?(F(e,2+(r?1:0),3),G(e,k,_)):(F(e,4+(r?1:0),3),function(e,t,n,r){var o;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),o=0;o<r;o++)F(e,e.bl_tree[2*E[o]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&j(e)},n._tr_tally=function(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+c+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;F(e,2,3),B(e,v,k),16===(t=e).bi_valid?(L(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,n){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,n,r){(function(e){!function(e,t){if(!e.setImmediate){var n,r,o,i,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.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),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[a]=o,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.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 o=t(r.exports),i={};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"}),p=Object.keys(f).map(function(e){return f[e]});var h=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/"});i.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)s(t,n)&&(e[n]=t[n]);return e},i.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(s(e,r)){var o=e[r];if(t.call(void 0,o,r,e))return o}},i.freeze=a,i.HTML_BOOLEAN_ATTRIBUTES=l,i.HTML_RAW_TEXT_ELEMENTS=u,i.HTML_VOID_ELEMENTS=c,i.hasDefaultHTMLNamespace=function(e){return d(e)||e===f.XML_XHTML_APPLICATION},i.hasOwn=s,i.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},i.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},i.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},i.isHTMLMimeType=d,i.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},i.isValidMimeType=function(e){return p.indexOf(e)>-1},i.MIME_TYPE=f,i.NAMESPACE=h;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=i.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"}),w=Object.keys(v);function b(e){return"number"==typeof e&&e>=1&&e<=25}function y(e,t){var n;b(e)?(this.name=w[e],this.message=t||""):(this.message=e,this.name="string"==typeof(n=t)&&n.substring(n.length-v.Error.length)===v.Error?t:v.Error),Error.captureStackTrace&&Error.captureStackTrace(this,y)}g(y,!0),Object.defineProperties(y.prototype,{code:{enumerable:!0,get:function(){var e=w.indexOf(this.name);return b(e)?e:0}}});for(var x={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},N=Object.entries(x),S=0;S<N.length;S++){y[N[S][0]]=N[S][1]}function E(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,E)}g(E),m.DOMException=y,m.DOMExceptionName=v,m.ExceptionCode=x,m.ParseError=E;var k={},_={};function T(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(n){}return!1}var I=T();function C(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function A(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,""),I?"u":"")}function R(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var n="string"==typeof e;if(n&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return n?e:e.source}).join(""),I?"mu":"m")}function $(e){if(0===arguments.length)throw new Error("no parameters provided");return R.apply($,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var D=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;I&&(D=R("[",C(D),"\\u{10000}-\\u{10FFFF}","]"));var P=new RegExp("[^"+C(D)+"]",I?"u":""),O=/[\x20\x09\x0D\x0A]/,M=C(O),L=R(O,"+"),F=R(O,"*"),B=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;I&&(B=R("[",C(B),"\\u{10000}-\\u{10FFFF}","]"));var U=R("[",C(B),C(/[-.0-9\xB7]/),C(/[\u0300-\u036F\u203F-\u2040]/),"]"),z=R(B,U,"*"),H=R(U,"+"),j=R("&",z,";"),q=$(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),W=$(j,"|",q),G=R("%",z,";"),V=$(R('"',$(/[^%&"]/,"|",G,"|",W),"*",'"'),"|",R("'",$(/[^%&']/,"|",G,"|",W),"*","'")),X=$('"',$(/[^<&"]/,"|",W),"*",'"',"|","'",$(/[^<&']/,"|",W),"*","'"),Z=R(A(B,":"),A(U,":"),"*"),Y=R(Z,$(":",Z),"?"),Q=R("^",Y,"$"),K=R("(",Y,")"),J=$(/"[^"]*"|'[^']*'/),ee=R(/^<\?/,"(",z,")",$(L,"(",D,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,ne=$('"',te,'*"',"|","'",A(te,"'"),"*'"),re="\x3c!--",oe=R(re,$(A(D,"-"),"|",R("-",A(D,"-"))),"*","--\x3e"),ie="#PCDATA",ae=$(R(/\(/,F,ie,$(F,/\|/,F,Y),"*",F,/\)\*/),"|",R(/\(/,F,ie,F,/\)/)),se=$("EMPTY","|","ANY","|",ae,"|",R(/\([^>]+\)/,/[?*+]?/)),le=R("<!ELEMENT",L,$(Y,"|",G),L,$(se,"|",G),F,">"),ce=R("NOTATION",L,/\(/,F,z,$(F,/\|/,F,z),"*",F,/\)/),ue=R(/\(/,F,H,$(F,/\|/,F,H),"*",F,/\)/),de=$(ce,"|",ue),fe=$(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),pe=$(/#REQUIRED|#IMPLIED/,"|",$($("#FIXED",L),"?",X)),he=R("<!ATTLIST",L,z,$(L,z,L,fe,L,pe),"*",F,">"),me="about:legacy-compat",ge=$('"'+me+'"',"|","'"+me+"'"),ve="SYSTEM",we="PUBLIC",be=$($(ve,L,J),"|",$(we,L,ne,L,J)),ye=R("^",$($(ve,L,"(?<SystemLiteralOnly>",J,")"),"|",$(we,L,"(?<PubidLiteral>",ne,")",L,"(?<SystemLiteral>",J,")"))),xe=R("^",ne,"$"),Ne=R("^",J,"$"),Se=$(L,"NDATA",L,z),Ee="<!ENTITY",ke=R(Ee,L,z,L,$(V,"|",$(be,Se,"?")),F,">"),_e=$(V,"|",be),Te=$(ke,"|",R(Ee,L,"%",L,z,L,_e,F,">")),Ie=R(we,L,ne),Ce=R("<!NOTATION",L,z,L,$(be,"|",Ie),F,">"),Ae=R(F,"=",F),Re=/1[.]\d+/,$e=R(L,"version",Ae,$("'",Re,"'","|",'"',Re,'"')),De=/[A-Za-z][-A-Za-z0-9._]*/,Pe=R(/^<\?xml/,$e,$(L,"encoding",Ae,$('"',De,'"',"|","'",De,"'")),"?",$(L,"standalone",Ae,$("'",$("yes","|","no"),"'","|",'"',$("yes","|","no"),'"')),"?",F,/\?>/),Oe=R(D,"*?",/\]\]>/),Me=R(/<!\[CDATA\[/,Oe);_.chars=C,_.chars_without=A,_.detectUnicodeSupport=T,_.reg=R,_.regg=$,_.ABOUT_LEGACY_COMPAT=me,_.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,_.AttlistDecl=he,_.CDATA_START="<![CDATA[",_.CDATA_END="]]>",_.CDSect=Me,_.Char=D,_.Comment=oe,_.COMMENT_START=re,_.COMMENT_END="--\x3e",_.DOCTYPE_DECL_START="<!DOCTYPE",_.elementdecl=le,_.EntityDecl=Te,_.EntityValue=V,_.ExternalID=be,_.ExternalID_match=ye,_.Name=z,_.NotationDecl=Ce,_.Reference=W,_.PEReference=G,_.PI=ee,_.PUBLIC=we,_.PubidLiteral=ne,_.PubidLiteral_match=xe,_.QName=Y,_.QName_exact=Q,_.QName_group=K,_.S=L,_.SChar_s=M,_.S_OPT=F,_.SYSTEM=ve,_.SystemLiteral=J,_.SystemLiteral_match=Ne,_.InvalidChar=P,_.UNICODE_REPLACEMENT_CHARACTER="�",_.UNICODE_SUPPORT=I,_.XMLDecl=Pe;var Le=i,Fe=Le.find,Be=Le.hasDefaultHTMLNamespace,Ue=Le.hasOwn,ze=Le.isHTMLMimeType,He=Le.isHTMLRawTextElement,je=Le.isHTMLVoidElement,qe=Le.MIME_TYPE,We=Le.NAMESPACE,Ge=Symbol(),Ve=m,Xe=Ve.DOMException,Ze=Ve.DOMExceptionName,Ye=_;function Qe(e){if(e!==Ge)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(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function nt(e,t){tt(t),e=e||null;var n=null,r=t;if(t.indexOf(":")>=0){var o=t.split(":");n=o[0],r=o[1]}if(null!==n&&null===e)throw new Xe(Xe.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&e!==Le.NAMESPACE.XML)throw new Xe(Xe.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&e!==Le.NAMESPACE.XMLNS)throw new Xe(Xe.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Le.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new Xe(Xe.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,n,r]}function rt(e,t){for(var n in e)Ue(e,n)&&(t[n]=e[n])}function ot(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};r.prototype=t.prototype,r=new r,rt(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var it={},at=it.ELEMENT_NODE=1,st=it.ATTRIBUTE_NODE=2,lt=it.TEXT_NODE=3,ct=it.CDATA_SECTION_NODE=4,ut=it.ENTITY_REFERENCE_NODE=5,dt=it.ENTITY_NODE=6,ft=it.PROCESSING_INSTRUCTION_NODE=7,pt=it.COMMENT_NODE=8,ht=it.DOCUMENT_NODE=9,mt=it.DOCUMENT_TYPE_NODE=10,gt=it.DOCUMENT_FRAGMENT_NODE=11,vt=it.NOTATION_NODE=12,wt=Le.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 bt(e,t){if(t.length<e.length)return bt(t,e);var n=null;for(var r in e){if(e[r]!==t[r])return n;n=e[r]}return n}function yt(e){return e.guid||(e.guid=Math.random()),e.guid}function xt(){}function Nt(e,t){this._node=e,this._refresh=t,St(this)}function St(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(dn(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Ue(e,r)&&delete e[r];rt(n,e),e._inc=t}}function Et(){}function kt(e,t){for(var n=0;n<e.length;){if(e[n]===t)return n;n++}}function _t(e,t,n,r){if(r?t[kt(t,r)]=n:(t[t.length]=n,t.length++),e){n.ownerElement=e;var o=e.ownerDocument;o&&(r&&Pt(o,e,r),function(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===We.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(o,e,n))}}function Tt(e,t,n){var r=kt(t,n);if(r>=0){for(var o=t.length-1;r<=o;)t[r]=t[++r];if(t.length=o,e){var i=e.ownerDocument;i&&Pt(i,e,n),n.ownerElement=null}}}function It(){}function Ct(e){Qe(e)}function At(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Rt(e,t){$t(e,null,{enter:function(e){return!t(e)||$t.STOP}})}function $t(e,t,n){for(var r=[{node:e,context:t,phase:$t.ENTER}];r.length>0;){var o=r.pop();if(o.phase===$t.ENTER){var i=n.enter(o.node,o.context);if(i===$t.STOP)return $t.STOP;if(r.push({node:o.node,context:i,phase:$t.EXIT}),null==i)continue;for(var a=o.node.lastChild;a;)r.push({node:a,context:i,phase:$t.ENTER}),a=a.previousSibling}else n.exit&&n.exit(o.node,o.context)}}function Dt(e,t){Qe(e);var n=t||{};this.ownerDocument=this,this.contentType=n.contentType||qe.XML_APPLICATION,this.type=ze(this.contentType)?"html":"xml"}function Pt(e,t,n,r){e&&e._inc++,n.namespaceURI===We.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Ot(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n&&!n.nextSibling)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i,delete r[r.length]}}}function Mt(e,t){if(e!==t.parentNode)throw new Xe(Xe.NOT_FOUND_ERR,"child's parent is not parent");var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,Ot(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Lt(e){return e&&e.nodeType===Ct.DOCUMENT_TYPE_NODE}function Ft(e){return e&&e.nodeType===Ct.ELEMENT_NODE}function Bt(e){return e&&e.nodeType===Ct.TEXT_NODE}function Ut(e,t){var n=e.childNodes||[];if(Fe(n,Ft)||Lt(t))return!1;var r=Fe(n,Lt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function zt(e,t){var n=e.childNodes||[];if(Fe(n,function(e){return Ft(e)&&e!==t}))return!1;var r=Fe(n,Lt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function Ht(e,t,n){if(!function(e){return e&&(e.nodeType===Ct.DOCUMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.ELEMENT_NODE)}(e))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Xe(Xe.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Ct.CDATA_SECTION_NODE||e.nodeType===Ct.COMMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.DOCUMENT_TYPE_NODE||e.nodeType===Ct.ELEMENT_NODE||e.nodeType===Ct.PROCESSING_INSTRUCTION_NODE||e.nodeType===Ct.TEXT_NODE)}(t)||Lt(t)&&e.nodeType!==Ct.DOCUMENT_NODE)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Lt(t)){if(Fe(r,Lt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&a)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function qt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!zt(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!zt(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Lt(t)){if(Fe(r,function(e){return Lt(e)&&e!==n}))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Wt(e,t,n,r){Ht(e,t,n),e.nodeType===Ct.DOCUMENT_NODE&&(r||jt)(e,t,n);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===gt){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var s=n?n.previousSibling:e.lastChild;i.previousSibling=s,a.nextSibling=n,s?s.nextSibling=i:e.firstChild=i,null==n?e.lastChild=a:n.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return Ot(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Gt(e){Qe(e),this._nsMap=Object.create(null)}function Vt(e){Qe(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Xt(e){Qe(e)}function Zt(e){Qe(e)}function Yt(e){Qe(e)}function Qt(e){Qe(e)}function Kt(e){Qe(e)}function Jt(e){Qe(e)}function en(e){Qe(e)}function tn(e){Qe(e)}function nn(e){Qe(e)}function rn(e){Qe(e)}function on(){}function an(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 n=[],r=this.nodeType===ht&&this.documentElement||this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return cn(this,n,a,t),n.join("")}function sn(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===r&&o===We.XML||o===We.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===r)return a.namespace!==o}return!0}function ln(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,At),'"')}function cn(e,t,n,r){n||(n=[]);var o=r.nodeFilter,i=r.requireWellFormed,a=r.splitCDATASections,s="html"===(e.nodeType===ht?e:e.ownerDocument).type;$t(e,{ns:n},{enter:function(e,n){var l=n.ns;if(o){if(!(e=o(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 p,h=0;h<c.length;h++)if("xmlns"===c.item(h).name){p=c.item(h).value;break}if(!p)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){p=g.namespace;break}}if(p!==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(),w=0;w<u;w++){"xmlns"==(b=c.item(w)).prefix?v.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&v.push({prefix:"",namespace:b.value})}for(w=0;w<u;w++){var b;if(sn(b=c.item(w),0,v)){var y=b.prefix||"",x=b.namespaceURI;ln(t,y?"xmlns:"+y:"xmlns",x),v.push({prefix:y,namespace:x})}var N=o?o(b):b;N&&("string"==typeof N?t.push(N):ln(t,N.name,N.value))}if(d===f&&sn(e,0,v)){var S=e.prefix||"";x=e.namespaceURI;ln(t,S?"xmlns:"+S:"xmlns",x),v.push({prefix:S,namespace:x})}var E=!e.firstChild;if(E&&(s||e.namespaceURI===We.HTML)&&(E=je(d)),E)return t.push("/>"),null;if(t.push(">"),s&&He(d)){for(var k=e.firstChild;k;)k.data?t.push(k.data):cn(k,t,v.slice(),r),k=k.nextSibling;return t.push("</",f,">"),null}return{ns:v,tag:f};case ht:case gt:if(i&&e.nodeType===ht&&null==e.documentElement)throw new Xe("The Document has no documentElement",Ze.InvalidStateError);return{ns:l};case st:return ln(t,e.name,e.value),null;case lt:if(i&&Ye.InvalidChar.test(e.data))throw new Xe("The Text node data contains characters outside the XML Char production",Ze.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,At)),null;case ct:if(i&&-1!==e.data.indexOf("]]>"))throw new Xe('The CDATASection data contains "]]>"',Ze.InvalidStateError);return a?t.push(Ye.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),Ye.CDATA_END):t.push(Ye.CDATA_START,e.data,Ye.CDATA_END),null;case pt:if(i){if(Ye.InvalidChar.test(e.data))throw new Xe("The comment node data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Xe('The comment node data contains "--" or ends with "-"',Ze.InvalidStateError)}return t.push(Ye.COMMENT_START,e.data,Ye.COMMENT_END),null;case mt:var _=e.publicId,T=e.systemId;if(i){if(_&&!Ye.PubidLiteral_match.test(_))throw new Xe("DocumentType publicId is not a valid PubidLiteral",Ze.InvalidStateError);if(T&&"."!==T&&!Ye.SystemLiteral_match.test(T))throw new Xe("DocumentType systemId is not a valid SystemLiteral",Ze.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Xe('DocumentType internalSubset contains "]>"',Ze.InvalidStateError)}return t.push(Ye.DOCTYPE_DECL_START," ",e.name),_?(t.push(" ",Ye.PUBLIC," ",_),T&&"."!==T&&t.push(" ",T)):T&&"."!==T&&t.push(" ",Ye.SYSTEM," ",T),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ft:if(i){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Xe("The ProcessingInstruction target is not well-formed",Ze.InvalidStateError);if(Ye.InvalidChar.test(e.data))throw new Xe("The ProcessingInstruction data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Xe('The ProcessingInstruction data contains "?>"',Ze.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,n){n&&n.tag&&t.push("</",n.tag,">")}})}function un(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=new t.constructor(Ge);for(var a in t)if(Ue(t,a)){var s=t[a];"object"!=typeof s&&s!=i[a]&&(i[a]=s)}t.childNodes&&(i.childNodes=new xt),i.ownerDocument=e;var l=n;switch(i.nodeType){case at:var c=t.attributes,u=i.attributes=new Et,d=c.length;u._ownerElement=i;for(var f=0;f<d;f++)i.setAttributeNode(un(e,c.item(f),!0));break;case st:l=!0}return null!==o?o.appendChild(i):r=i,l?i:null}}),r}function dn(e,t,n){e[t]=n}function fn(e){for(var t=[],n=e.firstChild;n;)n.nodeType===at&&t.push(n),n=n.nextSibling;return t}xt.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 n=[],r=0;r<this.length;r++)cn(this[r],n,null,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},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}}}},Nt.prototype.item=function(e){return St(this),this[e]||null},ot(Nt,xt),Et.prototype={length:0,item:xt.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var n=this[t];if(n.nodeName===e)return n;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Xe(Xe.INUSE_ATTRIBUTE_ERR);var n=this.getNamedItemNS(e.namespaceURI,e.localName);return n===e?e:(_t(this._ownerElement,this,e,n),n)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Xe(Xe.NOT_FOUND_ERR,e);return Tt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);if(!n)throw new Xe(Xe.NOT_FOUND_ERR,e?e+" : "+t:t);return Tt(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){e||(e=null);for(var n=0;n<this.length;){var r=this[n];if(r.localName===t&&r.namespaceURI===e)return r;n++}return null}},Et.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}}}},It.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=qe.XML_APPLICATION;e===We.HTML?r=qe.XML_XHTML_APPLICATION:e===We.SVG&&(r=qe.XML_SVG_IMAGE);var o=new Dt(Ge,{contentType:r});if(o.implementation=this,o.childNodes=new xt,o.doctype=n||null,n&&o.appendChild(n),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,n,r){tt(e);var o=new Kt(Ge);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=n||"",o.internalSubset=r||"",o.childNodes=new xt,o},createHTMLDocument:function(e){var t=new Dt(Ge,{contentType:qe.HTML});if(t.implementation=this,t.childNodes=new xt,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var n=t.createElement("html");t.appendChild(n);var r=t.createElement("head");if(n.appendChild(r),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),r.appendChild(o)}n.appendChild(t.createElement("body"))}return t}},Ct.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 n=t.pop(),r=n.node,o=n.other;if(r.nodeType!==o.nodeType)return!1;switch(r.nodeType){case r.DOCUMENT_TYPE_NODE:if(r.name!==o.name)return!1;if(r.publicId!==o.publicId)return!1;if(r.systemId!==o.systemId)return!1;break;case r.ELEMENT_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.prefix!==o.prefix)return!1;if(r.localName!==o.localName)return!1;if(r.attributes.length!==o.attributes.length)return!1;for(var i=0;i<r.attributes.length;i++){var a=r.attributes.item(i),s=o.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case r.ATTRIBUTE_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.localName!==o.localName)return!1;if(r.value!==o.value)return!1;break;case r.PROCESSING_INSTRUCTION_NODE:if(r.target!==o.target||r.data!==o.data)return!1;break;case r.TEXT_NODE:case r.CDATA_SECTION_NODE:case r.COMMENT_NODE:if(r.data!==o.data)return!1}if(r.childNodes.length!==o.childNodes.length)return!1;for(i=r.childNodes.length-1;i>=0;i--)t.push({node:r.childNodes[i],other:o.childNodes[i]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Wt(this,e,t)},replaceChild:function(e,t){Wt(this,e,t,qt),t&&this.removeChild(t)},removeChild:function(e){return Mt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return un(this.ownerDocument||this,this,e)},normalize:function(){$t(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;null!==n&&n.nodeType===lt&&t.nodeType===lt?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(Ue(n,r)&&n[r]===e)return r;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Ue(n,e))return n[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,n=this,r=null,o=null;if(t instanceof Vt&&(t=(r=t).ownerElement),n instanceof Vt&&(n=(o=n).ownerElement,r&&t&&n===t))for(var i,a=0;i=n.attributes[a];a++){if(i===r)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_PRECEDING;if(i===o)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_FOLLOWING}if(!t||!n||n.ownerDocument!==t.ownerDocument)return wt.DOCUMENT_POSITION_DISCONNECTED+wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(yt(n.ownerDocument)>yt(t.ownerDocument)?wt.DOCUMENT_POSITION_FOLLOWING:wt.DOCUMENT_POSITION_PRECEDING);if(o&&t===n)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;if(r&&t===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!o&&l===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=n.parentNode;u;){if(!r&&u===t)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=bt(s,c);for(var f in d.childNodes){var p=d.childNodes[f];if(p===n)return wt.DOCUMENT_POSITION_FOLLOWING;if(p===t)return wt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(p)>=0)return wt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(p)>=0)return wt.DOCUMENT_POSITION_PRECEDING}return 0}},rt(it,Ct),rt(it,Ct.prototype),rt(wt,Ct),rt(wt,Ct.prototype),$t.STOP=Symbol("walkDOM.STOP"),$t.ENTER=0,$t.EXIT=1,Dt.prototype={implementation:null,nodeName:"#document",nodeType:ht,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Wt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===at&&(this.documentElement=e),e},removeChild:function(e){var t=Mt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Wt(this,e,t,qt),e.ownerDocument=this,t&&this.removeChild(t),Ft(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=t.cloneNode(!1);return i.ownerDocument=e,i.parentNode=null,null===o?r=i:o.appendChild(i),t.nodeType===st||n?i:null}}),r}(this,e,t)},getElementById:function(e){var t=null;return Rt(this.documentElement,function(n){if(n.nodeType==at&&n.getAttribute("id")==e)return t=n,!0}),t},createElement:function(e){var t=new Gt(Ge);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Be(this.contentType)&&(t.namespaceURI=We.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new xt,(t.attributes=new Et)._ownerElement=t,t},createDocumentFragment:function(){var e=new nn(Ge);return e.ownerDocument=this,e.childNodes=new xt,e},createTextNode:function(e){var t=new Zt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createComment:function(e){var t=new Yt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Xe(Xe.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Qt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new rn(Ge);return n.ownerDocument=this,n.childNodes=new xt,n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){if(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Vt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Ye.Name.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Xe("document is an html document",Ze.NotSupportedError);var t=new tn(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.nodeName=e,t},createElementNS:function(e,t){var n=nt(e,t),r=new Gt(Ge),o=r.attributes=new Et;return r.childNodes=new xt,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],o._ownerElement=r,r},createAttributeNS:function(e,t){var n=nt(e,t),r=new Vt(Ge);return r.ownerDocument=this,r.childNodes=new xt,r.nodeName=t,r.name=t,r.specified=!0,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],r}},ot(Dt,Ct),Gt.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===We.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 n=this.getAttributeNode(e);n?n.value=n.nodeValue=""+t:((n=this.ownerDocument._createAttribute(e)).value=n.nodeValue=""+t,this.setAttributeNode(n))},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 n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null},setAttributeNS:function(e,t,n){var r=nt(e,t)[2],o=this.getAttributeNodeNS(e,r);o?o.value=o.nodeValue=""+n:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+n,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new Nt(this,function(n){var r=[];return t.length>0&&Rt(n,function(o){if(o!==n&&o.nodeType===at){var i=o.getAttribute("class");if(i){var a=e===i;if(!a){var s=et(i);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&r.push(o)}}var l}),r})},getElementsByTagName:function(e){var t="html"===(this.nodeType===ht?this:this.ownerDocument).type,n=e.toLowerCase();return new Nt(this,function(r){var o=[];return Rt(r,function(i){i!==r&&i.nodeType===at&&(("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===We.HTML?n:e))&&o.push(i))}),o})},getElementsByTagNameNS:function(e,t){return new Nt(this,function(n){var r=[];return Rt(n,function(o){o===n||o.nodeType!==at||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)}),r})}},Dt.prototype.getElementsByClassName=Gt.prototype.getElementsByClassName,Dt.prototype.getElementsByTagName=Gt.prototype.getElementsByTagName,Dt.prototype.getElementsByTagNameNS=Gt.prototype.getElementsByTagNameNS,ot(Gt,Ct),Vt.prototype.nodeType=st,ot(Vt,Ct),Xt.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,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},ot(Xt,Ct),Zt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},ot(Zt,Xt),Yt.prototype={nodeName:"#comment",nodeType:pt},ot(Yt,Xt),Qt.prototype={nodeName:"#cdata-section",nodeType:ct},ot(Qt,Zt),Kt.prototype.nodeType=mt,ot(Kt,Ct),Jt.prototype.nodeType=vt,ot(Jt,Ct),en.prototype.nodeType=dt,ot(en,Ct),tn.prototype.nodeType=ut,ot(tn,Ct),nn.prototype.nodeName="#document-fragment",nn.prototype.nodeType=gt,ot(nn,Ct),rn.prototype.nodeType=ft,ot(rn,Xt),on.prototype.serializeToString=function(e,t){return an.call(e,t)},Ct.prototype.toString=an;try{Object.defineProperty&&(Object.defineProperty(Nt.prototype,"length",{get:function(){return St(this),this.$$length}}),Object.defineProperty(Ct.prototype,"textContent",{get:function(){if(this.nodeType===at||this.nodeType===gt){var e=[];return $t(this,null,{enter:function(t){return t.nodeType===at||t.nodeType===gt||(t.nodeType===ft||t.nodeType===pt?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(Gt.prototype,"children",{get:function(){return new Nt(this,fn)}}),Object.defineProperty(Dt.prototype,"children",{get:function(){return new Nt(this,fn)}}),Object.defineProperty(nn.prototype,"children",{get:function(){return new Nt(this,fn)}}),dn=function(e,t,n){e["$$"+t]=n})}catch(fd){}k._updateLiveList=St,k.Attr=Vt,k.CDATASection=Qt,k.CharacterData=Xt,k.Comment=Yt,k.Document=Dt,k.DocumentFragment=nn,k.DocumentType=Kt,k.DOMImplementation=It,k.Element=Gt,k.Entity=en,k.EntityReference=tn,k.LiveNodeList=Nt,k.NamedNodeMap=Et,k.Node=Ct,k.NodeList=xt,k.Notation=Jt,k.Text=Zt,k.ProcessingInstruction=rn,k.walkDOM=$t,k.XMLSerializer=on;var pn,hn,mn={},gn={};pn=gn,hn=i.freeze,pn.XML_ENTITIES=hn({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),pn.HTML_ENTITIES=hn({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:"‌"}),pn.entityMap=pn.HTML_ENTITIES;var vn={},wn=i,bn=_,yn=m,xn=wn.isHTMLEscapableRawTextElement,Nn=wn.isHTMLMimeType,Sn=wn.isHTMLRawTextElement,En=wn.hasOwn,kn=wn.NAMESPACE,_n=yn.ParseError,Tn=yn.DOMException;function In(){}In.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),Pn(t,t=Object.create(null)),function(e,t,n,r,o){var i=Nn(r.mimeType);e.indexOf(bn.UNICODE_REPLACEMENT_CHARACTER)>=0&&o.warning("Unicode replacement character detected, source encoding issues?");function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!i&&t!==e)return o.error("EntityRef: expecting ;"),e;var r=bn.Reference.exec(t);if(!r||r[0].length!==t.length)return o.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return En(n,s)?n[s]:"#"===s.charAt(0)?a(parseInt(s.substring(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>g){var n=e.substring(g,t).replace(Cn,s);f&&p(g),r.characters(n,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,f=r.locator;function p(t,n){for(;t>=u&&(n=d.exec(e));)c=u,u=n.index+n[0].length,f.lineNumber++;f.columnNumber=t-c+1}var h=[{currentNSMap:t}],m=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!i&&m.length>0)return o.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var w=r.doc,b=w.createTextNode(e.substring(g));if(w.documentElement)return o.error("Extra content at the end of the document");w.appendChild(b),r.currentElement=b}return}if(v>g){var y=e.substring(g,v);i||0!==m.length||(y=y.replace(new RegExp(bn.S_OPT.source,"g"),""))&&o.error("Unexpected content outside root element: '"+y+"'"),l(v)}switch(e.charAt(v+1)){case"/":var x=e.indexOf(">",v+2),N=e.substring(v+2,x>0?x:void 0);if(!N)return o.fatalError("end tag name missing");var S=x>0&&bn.reg("^",bn.QName_group,bn.S_OPT,"$").exec(N);if(!S)return o.fatalError('end tag name contains invalid characters: "'+N+'"');if(!r.currentElement&&!r.doc.documentElement)return;var E=m[m.length-1]||r.currentElement.tagName||r.doc.documentElement.tagName||"";if(E!==S[1]){var k=S[1].toLowerCase();if(!i||E.toLowerCase()!==k)return o.fatalError('Opening and ending tag mismatch: "'+E+'" != "'+N+'"')}var _=h.pop();m.pop();var T=_.localNSMap;if(r.endElement(_.uri,_.localName,E),T)for(var I in T)En(T,I)&&r.endPrefixMapping(I);x++;break;case"?":f&&p(v),x=Ln(e,v,r,o);break;case"!":f&&p(v),x=Mn(e,v,r,o,i);break;default:f&&p(v);var C=new Fn,A=h[h.length-1].currentNSMap,R=(x=Rn(e,v,C,A,s,o,i),C.length);if(C.closed||(i&&wn.isHTMLVoidElement(C.tagName)?C.closed=!0:m.push(C.tagName)),f&&R){for(var $=An(f,{}),D=0;D<R;D++){var P=C[D];p(P.offset),P.locator=An(f,{})}r.locator=$,$n(C,r,A)&&h.push(C),r.locator=f}else $n(C,r,A)&&h.push(C);i&&!C.closed?x=Dn(e,x,C.tagName,s,r):x++}}catch(fd){if(fd instanceof _n)throw fd;if(fd instanceof Tn)throw new _n(fd.name+": "+fd.message,r.locator,fd);o.error("element parse error: "+fd),x=-1}x>g?g=x:l(Math.max(v,g)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}};var Cn=/&#?\w+;?/g;function An(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Rn(e,t,n,r,o,i,a){function s(e,t,r){return En(n.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Cn,o),r)}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&&(i.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),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(t,c)).slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=l),4==u?(i.warning('attribute "'+f+'" missed quot(")!'),s(l,f,t)):(a||i.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:if(!a)return i.fatalError("AttValue: ' or \" expected")}return c;case"€":d=" ";default:if(d<=" ")switch(u){case 0:n.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);i.warning('attribute "'+f+'" missed quot(")!!'),s(l,f,t);case 5:u=6}else switch(u){case 2:a||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:i.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 $n(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],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==o&&(o=Object.create(null),Pn(n,n=Object.create(null))),n[d]=o[d]=l,a.uri=kn.XMLNS,t.startPrefixMapping(d,l))}for(i=e.length;i--;)(a=e[i]).prefix&&("xml"===a.prefix&&(a.uri=kn.XML),"xmlns"!==a.prefix&&(a.uri=n[a.prefix]));var f;(f=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,f),u=e.localName=r.slice(f+1)):(c=null,u=e.localName=r);var p=e.uri=n[c||""];if(t.startElement(p,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,u,r),o)for(c in o)En(o,c)&&t.endPrefixMapping(c)}function Dn(e,t,n,r,o){var i=xn(n);if(i||Sn(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);return i&&(s=s.replace(Cn,r)),o.characters(s,0,s.length),a}return t+1}function Pn(e,t){for(var n in e)En(e,n)&&(t[n]=e[n])}function On(e,t){var n=t;function r(t){return t=t||0,e.charAt(n+t)}function o(e){n+=e=e||1}function i(){return e.substring(n)}return{char:r,getIndex:function(){return n},getMatch:function(e){var t=bn.reg("^",e).exec(i());return t?(o(t[0].length),t[0]):null},getSource:function(){return e},skip:o,skipBlanks:function(){for(var t=0;n<e.length;){var i=r();if(" "!==i&&"\n"!==i&&"\t"!==i&&"\r"!==i)return t;t++,o()}return-1},substringFromIndex:i,substringStartsWith:function(t){return e.substring(n,n+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(n,n+t.length).toUpperCase()===t.toUpperCase()}}}function Mn(e,t,n,r,o){var i=On(e,t);switch(o?i.char(2).toUpperCase():i.char(2)){case"-":var a=i.getMatch(bn.Comment);return a?(n.comment(a,bn.COMMENT_START.length,a.length-bn.COMMENT_START.length-bn.COMMENT_END.length),i.getIndex()):r.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var s=i.getMatch(bn.CDSect);return s?o||n.currentElement?(n.startCDATA(),n.characters(s,bn.CDATA_START.length,s.length-bn.CDATA_START.length-bn.CDATA_END.length),n.endCDATA(),i.getIndex()):r.fatalError("CDATA outside of element"):r.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return r.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(o?!i.substringStartsWithCaseInsensitive(bn.DOCTYPE_DECL_START):!i.substringStartsWith(bn.DOCTYPE_DECL_START))return r.fatalError("Expected "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(bn.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=i.getMatch(bn.Name),!l.name)return r.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(o&&"html"!==l.name.toLowerCase()&&r.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(bn.PUBLIC)||i.substringStartsWith(bn.SYSTEM)){var c=bn.ExternalID_match.exec(i.substringFromIndex());if(!c)return r.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),i.skip(c[0].length)}else if(o&&i.substringStartsWithCaseInsensitive(bn.SYSTEM)){if(i.skip(bn.SYSTEM.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.SYSTEM+" at position "+i.getIndex());if(l.systemId=i.getMatch(bn.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return r.fatalError("Expected "+bn.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+bn.SYSTEM+" at position "+i.getIndex())}return o&&l.systemId&&!bn.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&r.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),o||(i.skipBlanks(),l.internalSubset=function(e,t){function n(e,t){var n=bn.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var r=e.getSource();if("["===e.char()){e.skip(1);for(var o=e.getIndex();e.getIndex()<r.length;){if(e.skipBlanks(),"]"===e.char()){var i=r.substring(o,e.getIndex());return e.skip(1),i}var a=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?a=e.getMatch(bn.elementdecl):"N"===e.char(3)&&(a=e.getMatch(bn.EntityDecl));break;case"A":a=e.getMatch(bn.AttlistDecl);break;case"N":a=e.getMatch(bn.NotationDecl);break;case"-":a=e.getMatch(bn.Comment)}else if("<"===e.char()&&"?"===e.char(1))a=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");a=e.getMatch(bn.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 ]")}}(i,r)),i.skipBlanks(),">"!==i.char()?r.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),n.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),n.endDTD(),i.getIndex());default:return r.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Ln(e,t,n,r){var o=e.substring(t).match(bn.PI);if(!o)return r.fatalError("Invalid processing instruction starting at position "+t);if("xml"===o[1].toLowerCase()){if(t>0)return r.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!bn.XMLDecl.test(e.substring(t)))return r.fatalError("xml declaration is not well-formed")}return n.processingInstruction(o[1],o[2]),t+o[0].length}function Fn(){this.attributeNames=Object.create(null)}Fn.prototype={setTagName:function(e){if(!bn.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!bn.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},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}},vn.XMLReader=In,vn.parseUtils=On,vn.parseDoctypeCommentOrCData=Mn;var Bn=i,Un=m,zn=gn,Hn=vn,jn=k.DOMImplementation,qn=Bn.hasDefaultHTMLNamespace,Wn=Bn.isHTMLMimeType,Gn=Bn.isValidMimeType,Vn=Bn.MIME_TYPE,Xn=Bn.NAMESPACE,Zn=Un.ParseError,Yn=Hn.XMLReader;function Qn(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Kn(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Bn.assign,this.domHandler=e.domHandler||Jn,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||Qn,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Jn(e){var t=e||{};this.mimeType=t.mimeType||Vn.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 er(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function tr(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function nr(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Kn.prototype.parseFromString=function(e,t){if(!Gn(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),r=zn.XML_ENTITIES,o=n[""]||null;qn(t)?(r=zn.HTML_ENTITIES,o=Xn.HTML):t===Vn.XML_SVG_IMAGE&&(o=Xn.SVG),n[""]=o,n.xml=n.xml||Xn.XML;var i=new this.domHandler({mimeType:t,defaultNamespace:o,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&i.setDocumentLocator(a);var s=new Yn;return s.errorHandler=i,s.domBuilder=i,!Bn.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),n,r),i.doc.documentElement||s.errorHandler.fatalError("missing root element"),i.doc},Jn.prototype={startDocument:function(){var e=new jn;this.doc=Wn(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,n,r){var o=this.doc,i=o.createElementNS(e,n||t),a=r.length;nr(this,i),this.currentElement=i,this.locator&&er(this.locator,i);for(var s=0;s<a;s++){e=r.getURI(s);var l=r.getValue(s),c=(n=r.getQName(s),o.createAttributeNS(e,n));this.locator&&er(r.getLocator(s),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&er(this.locator,n),nr(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=tr.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&er(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=tr.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&er(this.locator,r),nr(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,n,r);this.locator&&er(this.locator,i),nr(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(fd){throw new Zn("Reporting "+e+' "'+t+'" caused '+fd,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 Zn(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Jn.prototype[e]=function(){return null}}),mn.__DOMHandler=Jn,mn.DOMParser=Kn,mn.normalizeLineEndings=Qn,mn.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},mn.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rr=i;rr.assign,rr.hasDefaultHTMLNamespace,rr.isHTMLMimeType,rr.isValidMimeType,rr.MIME_TYPE,rr.NAMESPACE;var or=k.XMLSerializer,ir=mn.DOMParser;function ar(e){return`${e}:${crypto.randomUUID()}`}function sr(){return ar("bookmark")}function lr(){return ar("comment")}function cr(e=""){return{id:ar("run"),text:e,kind:"text"}}function ur(e=""){return{id:ar("paragraph"),type:"paragraph",runs:[cr(e)]}}function dr(e){return{id:ar("paragraph"),type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,n,r){const o={id:ar("run"),text:e};return t&&(o.styles={...t}),n?{...o,kind:"image",image:{...n}}:r?{...o,kind:"textBox",textBox:r}:{...o,kind:"text"}}(e.text,e.styles,e.image,e.textBox)):[cr("")]}}function fr(e,t=1,n){const r={id:ar("table-cell"),blocks:e.length>0?e:[ur("")]};return t>1&&(r.colSpan=t),(null==n?void 0:n.rowSpan)&&n.rowSpan>1&&(r.rowSpan=n.rowSpan),(null==n?void 0:n.vMerge)&&(r.vMerge=n.vMerge),r}function pr(e,t){const n={id:ar("table-row"),cells:e};return(null==t?void 0:t.isHeader)&&(n.isHeader=!0),n}const hr=96,mr=hr/72,gr=9525,vr=12700,wr=1440,br=1e5,yr=6e4,xr=14.6667,Nr=e=>({width:.5,type:"solid",color:e});function Sr(e,t,n){const r=`${n?"MediumShading1":"LightShading"}-Accent${e}`,o=Nr(n?"#ffffff":t.accent);return{id:r,name:`${n?"Medium Shading 1":"Light Shading"} Accent ${e}`,type:"table",qFormat:!0,uiPriority:(n?40:20)+e,tableStyle:{rowBandSize:1,tblLook:{firstRow:!0,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!1,noVBand:!0},borders:{borderTop:o,borderRight:o,borderBottom:o,borderLeft:o,borderInsideH:o,borderInsideV:o},conditionalFormats:{wholeTable:{shading:n?t.tint:"#ffffff"},firstRow:{shading:t.accent,textStyle:{bold:!0,color:"#ffffff"}},band1Horz:{shading:t.tint}}}}}const Er={TableNormal:{id:"TableNormal",name:"Table Normal",type:"table",isDefault:!0,uiPriority:0,tableStyle:{tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},TableGrid:{id:"TableGrid",name:"Table Grid",type:"table",qFormat:!0,uiPriority:1,tableStyle:{borders:{borderTop:Nr("#7f7f7f"),borderRight:Nr("#7f7f7f"),borderBottom:Nr("#7f7f7f"),borderLeft:Nr("#7f7f7f"),borderInsideH:Nr("#7f7f7f"),borderInsideV:Nr("#7f7f7f")},tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},...Object.fromEntries([{accent:"#4472c4",tint:"#d9e2f3"},{accent:"#ed7d31",tint:"#fce4d6"},{accent:"#a5a5a5",tint:"#e7e6e6"},{accent:"#ffc000",tint:"#fff2cc"},{accent:"#5b9bd5",tint:"#ddebf7"},{accent:"#70ad47",tint:"#e2f0d9"}].flatMap((e,t)=>{const n=t+1,r=Sr(n,e,!1),o=Sr(n,e,!0);return[[r.id,r],[o.id,o]]}))},kr={normal:{id:"normal",name:"Normal",type:"paragraph",qFormat:!0,uiPriority:0,paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:xr}},header:{id:"header",name:"Header",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",qFormat:!0,uiPriority:10,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",qFormat:!0,uiPriority:11,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",qFormat:!0,uiPriority:12,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",semiHidden:!0,basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",semiHidden:!0,basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",name:"Caption",type:"paragraph",qFormat:!0,uiPriority:35,basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}},...Er};function _r(e,t="value"){const n=e&&"object"==typeof e&&"type"in e?e.type:e;throw new Error(`Unhandled ${t}: ${String(n)}`)}function Tr(e){return"footnoteReference"===e.kind?e.footnoteReference:void 0}function Ir(e){return"endnoteReference"===e.kind?e.endnoteReference:void 0}function Cr(e,t){switch(e.kind){case"footnoteReference":return t.footnoteReference(e);case"endnoteReference":return t.endnoteReference(e);case"fieldChar":return t.fieldChar(e);case"fieldInstruction":return t.fieldInstruction(e);case"field":return t.field(e);case"textBox":return t.textBox(e);case"image":return t.image(e);case"sym":return t.sym(e);case"math":return t.math?t.math(e):t.text(e);case"text":return t.text(e);default:return _r(e,"run kind")}}const Ar="asset:";const Rr={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,rtl:!1,complexScript:!1,snapToGrid:!0,fitText:null,emphasisMark:null,textBorder:null,outline:!1,shadow:!1,emboss:!1,imprint:!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:xr,color:"#000000",highlight:null,shading:null,language:null,link:null},$r={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,mirrorIndents:!1,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null,suppressLineNumbers:!1,suppressAutoHyphens:!1,bidi:!1,kinsoku:!0,wordWrap:!0,overflowPunct:!0,topLinePunct:!1,autoSpaceDE:!0,autoSpaceDN:!0,adjustRightInd:!0,textAlignment:null,textboxTightWrap:null,divId:null,conditionalStyle:null,borderBetween:null,borderBar:null,framePrXml:null},Dr=816,Pr=1056,Or="portrait",Mr={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function Lr(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),n="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:n?e.height:e.width,height:n?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 Fr(e){const t=e.pageSettings;return Lr({width:(null==t?void 0:t.width)??Dr,height:(null==t?void 0:t.height)??Pr,orientation:(null==t?void 0:t.orientation)??Or,margins:{top:(null==t?void 0:t.margins.top)??Mr.top,right:(null==t?void 0:t.margins.right)??Mr.right,bottom:(null==t?void 0:t.margins.bottom)??Mr.bottom,left:(null==t?void 0:t.margins.left)??Mr.left,header:(null==t?void 0:t.margins.header)??Mr.header,footer:(null==t?void 0:t.margins.footer)??Mr.footer,gutter:(null==t?void 0:t.margins.gutter)??Mr.gutter},...(null==t?void 0:t.columns)?{columns:t.columns}:{}})}function Br(){return{merge(e,t){if(!t)return{...e};const n={...e};for(const[r,o]of Object.entries(t))void 0!==o&&(n[r]=o);return n}}}const Ur=Br(),zr=Br();function Hr(e,t){return Ur.merge(e,t)}function jr(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const n=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return n?n.id:void 0}function qr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?qr(n.basedOn,t):{},...n.textStyle??{}}}function Wr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?Wr(n.basedOn,t):{},...n.paragraphStyle??{}}}function Gr(e,t,n){const r=Hr(qr(t??jr(n),n),qr(null==e?void 0:e.styleId,n)),o=Hr(r,e);return{...Rr,...o}}function Vr(e,t){const n=(null==e?void 0:e.styleId)??jr(t),r=Wr(n,t),o=(i=r,a={...e,styleId:n},zr.merge(i,a));var i,a;return{...$r,...o}}function Xr(e,t){var n;if(!t)return"";if(!t.startsWith(Ar))return t;const r=t.slice(6),o=null==(n=null==e?void 0:e.assets)?void 0:n[r];return(null==o?void 0:o.url)??t}function Zr(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:Lr(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:Fr(e)}]}function Yr(e){return Zr(e)}function Qr(e){switch(e.type){case"paragraph":return[e];case"table":return e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks.flatMap(Qr)));default:return _r(e,"block")}}function Kr(e){const t=Object.fromEntries(Object.entries(Er).filter(([t])=>!(t in e)));return{...e,...t}}function Jr(e,t,n,r,o,i){const a=Lr(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:Dr,height:Pr,orientation:Or,margins:{...Mr}});return{schemaVersion:1,id:ar("document"),pageSettings:a,sections:n??[{id:"section:default",blocks:e,pageSettings:a}],styles:r?Kr(r):{...kr},metadata:o??{title:"Untitled document"},assets:i??void 0}}const eo="http://schemas.openxmlformats.org/markup-compatibility/2006",to={supportedNamespaces:new Set};function no(e,...t){return{supportedNamespaces:new Set([...e.supportedNamespaces,...t])}}function ro(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function oo(e){const t=e.parentNode;return 1===(null==t?void 0:t.nodeType)?t:null}function io(e,t){let n=e;const r=t?`xmlns:${t}`:"xmlns";for(;n;){const e=n.getAttribute(r);if(e)return e;n=oo(n)}}function ao(e,t){return e.getAttributeNS(eo,t)??e.getAttribute(`mc:${t}`)??void 0}function so(e,t){const n=[];let r=e;for(;r;)n.push(r),r=oo(r);const o=[];for(const i of n.reverse()){const e=ao(i,t);if(e)for(const t of e.split(/\s+/).filter(Boolean))o.push({element:i,token:t})}return o}function lo(e,t){const n=t.indexOf(":");if(n<1||n===t.length-1)return;const r=t.slice(0,n),o=t.slice(n+1),i=io(e,r);return i?`${i}\0${o}`:void 0}function co(e,t){var n;const r=null==(n=e.getAttribute("Requires"))?void 0:n.trim();return!!r&&r.split(/\s+/).every(n=>{const r=io(e,n);return Boolean(r&&t.supportedNamespaces.has(r))})}function uo(e,t){let n;for(const r of ro(e))if(r.namespaceURI===eo){if("Choice"===r.localName&&co(r,t))return r;"Fallback"===r.localName&&(n=r)}return n}function fo(e,t=to){const n=[],r=function(e){const t=new Set;for(const n of so(e,"Ignorable")){const e=io(n.element,n.token);e&&t.add(e)}return t}(e),o=function(e){const t=new Set;for(const n of so(e,"ProcessContent")){const e=lo(n.element,n.token);e&&t.add(e)}return t}(e);for(const i of ro(e)){if(i.namespaceURI===eo&&"AlternateContent"===i.localName){const e=uo(i,t);e&&n.push(...fo(e,t));continue}const e=i.namespaceURI??"";if(r.has(e)&&!t.supportedNamespaces.has(e)){const r=`${e}\0${i.localName??i.tagName}`;o.has(r)&&n.push(...fo(i,t));continue}n.push(i)}return n}const po="http://schemas.openxmlformats.org/wordprocessingml/2006/main",ho="http://schemas.openxmlformats.org/drawingml/2006/main",mo="http://schemas.microsoft.com/office/word/2010/wordml",go="http://schemas.microsoft.com/office/word/2012/wordml",vo=no(to,mo),wo=no(to,go);function bo(e,t,n){return e?fo(e).filter(e=>e.namespaceURI===t&&e.localName===n):[]}const yo=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function xo(e){return yo.includes(e)?e:void 0}function No(e,t,n){return bo(e,t,n)[0]??null}function So(e,t){return e?fo(e,vo).find(e=>e.namespaceURI===mo&&e.localName===t)??null:null}function Eo(e,t){return e?fo(e,wo).find(e=>e.namespaceURI===go&&e.localName===t)??null:null}function ko(e,t){return e?e.getAttributeNS(po,t)??e.getAttributeNS(mo,t)??e.getAttributeNS(go,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(`w15:${t}`)??e.getAttribute(t):null}function _o(e,t){for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if(1===(null==r?void 0:r.nodeType)){const e=r;if(e.localName===t)return e;const n=_o(e,t);if(n)return n}}return null}function To(e){const t={},n=e.attributes;for(let r=0;r<n.length;r+=1){const e=n[r];if(!e)continue;const o=e.namespaceURI;if(!o||o===po||o===eo)continue;if("xmlns"===e.prefix||"xmlns"===e.localName)continue;const i=e.localName??e.name;if(!i)continue;t[e.prefix?`${e.prefix}:${i}`:i]=e.value}return Object.keys(t).length>0?t:void 0}function Io(e){return"1"===e||"true"===e||"on"===e}function Co(e,t){const n=No(e,po,t);if(!n)return;const r=ko(n,"val");return null==r||"0"!==r&&"false"!==r&&"off"!==r&&Io(r)}function Ao(e,t){return ko(No(e,po,t),"val")??void 0}async function Ro(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}const $o={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"},Do={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/bmp":"bmp","image/tiff":"tif","image/svg+xml":"svg","image/x-emf":"emf","image/x-wmf":"wmf"};function Po(e){return Do[e.toLowerCase()]??null}async function Oo(e,t,n){let r=n;r.startsWith("/")&&(r=r.slice(1)),r.startsWith("word/")||(r="word/"+n);const o=e.file(r),i=function(e){var t;const n=null==(t=e.split(".").pop())?void 0:t.toLowerCase();return n?$o[n]??null:null}(n)??"image/png",a=await(null==o?void 0:o.async("base64"));if(a)return function(e,t,n){const r=e.byPath.get(t);if(r)return`${Ar}${r}`;const o=`img-${e.nextId}`;return e.nextId+=1,e.assets[o]={id:o,url:n},e.byPath.set(t,o),`${Ar}${o}`}(t,r,`data:${i};base64,${a}`)}function Mo(e){var t;const n=new Map;if(!e)return n;const r=null==(t=(new ir).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!r)return n;for(let o=0;o<r.length;o+=1){const e=r[o];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),r=t.getAttribute("Target");e&&r&&n.set(e,r)}}}return n}async function Lo(e,t){var n;const r=t.lastIndexOf("/"),o=r>=0?t.slice(0,r):"",i=r>=0?t.slice(r+1):t,a=o?`${o}/_rels/${i}.rels`:`_rels/${i}.rels`;return Mo(await(null==(n=e.file(a))?void 0:n.async("string")))}const Fo=e=>{var t;const n=No(e,ho,"latin");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||void 0},Bo=e=>{var t;const n=No(e,ho,"cs");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Fo(e)},Uo=e=>{var t;const n=No(e,ho,"ea");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Fo(e)};function zo(e,t){const n=10**t;return Math.round(e*n)/n}function Ho(e,t){const n=e?Number(e):Number.NaN;return Number.isFinite(n)?Math.round(n/wr*hr):t}function jo(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return zo(t/20,4)}function qo(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}const Wo=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Go(e){const t=No(e,ho,"srgbClr");if(t)return qo(ko(t,"val"));const n=No(e,ho,"sysClr");return n?qo(ko(n,"lastClr")):void 0}function Vo(e){if(!e)return;const t=Number.parseInt(e,16);return Number.isFinite(t)?t/255:void 0}function Xo(e,t,n){const r=e=>{return(t=e,Math.min(255,Math.max(0,Math.round(t)))).toString(16).padStart(2,"0").toUpperCase();var t};return`#${r(e)}${r(t)}${r(n)}`}function Zo(e,t){const n=ko(e,"themeColor");if(!n)return;const r=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}}(n),o=r?t[r]:void 0;if(!o)return;let i=Number.parseInt(o.slice(1,3),16),a=Number.parseInt(o.slice(3,5),16),s=Number.parseInt(o.slice(5,7),16);const l=Vo(ko(e,"themeShade"));void 0!==l&&(i*=l,a*=l,s*=l);const c=Vo(ko(e,"themeTint"));if(void 0!==c){const e=255*(1-c);i=i*c+e,a=a*c+e,s=s*c+e}return Xo(i,a,s)}function Yo(e){if(!e)return{fonts:{},colors:{}};const t=(new ir).parseFromString(e,"application/xml").documentElement,n=t?bo(t,ho,"themeElements")[0]??null:null,r=function(e){const t=No(e,ho,"fontScheme"),n=No(t,ho,"majorFont"),r=No(t,ho,"minorFont");return{majorHAnsi:Fo(n),minorHAnsi:Fo(r),majorEastAsia:Uo(n),minorEastAsia:Uo(r),majorBidi:Bo(n),minorBidi:Bo(r)}}(n),o=function(e){const t=No(e,ho,"clrScheme");if(!t)return{};const n={};for(const r of Wo){const e=Go(No(t,ho,r));e&&(n[r]=e)}return n}(n),i=n?bo(n,ho,"fmtScheme")[0]:void 0;return{fonts:r,colors:o,data:{name:(null==t?void 0:t.getAttribute("name"))||void 0,colors:{...o},fonts:{major:Object.fromEntries(Object.entries(r).filter(([e])=>e.startsWith("major"))),minor:Object.fromEntries(Object.entries(r).filter(([e])=>e.startsWith("minor")))},effectsXml:i?Array.from(i.childNodes).map(e=>(new or).serializeToString(e)).join(""):void 0,sourceXml:e}}}const Qo={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},Ko={continuous:"continuous",eachSect:"eachSection"};function Jo(e){if(!e)return;const t={},n=ko(No(e,po,"numFmt"),"val");n&&Qo[n]&&(t.numberFormat=Qo[n]);const r=Number.parseInt(ko(No(e,po,"numStart"),"val")??"",10);Number.isFinite(r)&&r>0&&(t.startAt=r);const o=ko(No(e,po,"numRestart"),"val");return o&&Ko[o]&&(t.restart=Ko[o]),Object.keys(t).length>0?t:void 0}function ei(e){return e.ooxmlNumbering}function ti(e){const t=ei(e);if((null==t?void 0:t.format)&&t.importedKind===e.kind&&t.importedFormat===e.format)return t.format}const ni={decimal:"decimal",lowerLetter:"lowerLetter",upperLetter:"upperLetter",lowerRoman:"lowerRoman",upperRoman:"upperRoman",bullet:"bullet"};function ri(e){const t=ko(e,"val");if(null==t)return;const n=Number.parseInt(t,10);return Number.isFinite(n)?n:void 0}function oi(e,t){if(!e||!/^\d+$/.test(e))return;const n=Number.parseInt(e,10);return Number.isSafeInteger(n)&&n>=t?n:void 0}function ii(e){const t={},n=ko(No(e,po,"numFmt"),"val");n&&(t.kind="bullet"===n?"bullet":"ordered",t.format=ni[n],t.rawFormat=n);const r=ko(No(e,po,"suff"),"val");"tab"!==r&&"space"!==r&&"nothing"!==r||(t.suffix=r);const o=ri(No(e,po,"start"));void 0!==o&&(t.startAt=o),t.levelText=ko(No(e,po,"lvlText"),"val")??void 0;const i=ko(No(e,po,"lvlJc"),"val");"left"!==i&&"center"!==i&&"right"!==i||(t.alignment=i);const a=No(e,po,"isLgl");var s;a&&(t.legal=null==(s=ko(a,"val"))||"1"===s||"true"===s||"on"===s);const l=ri(No(e,po,"lvlRestart"));void 0!==l&&(t.restartAfterLevel=l),t.paragraphStyleId=ko(No(e,po,"pStyle"),"val")??void 0,"bullet"===t.kind&&t.levelText&&(t.bulletGlyph=t.levelText);const c=No(e,po,"rPr"),u=No(c,po,"rFonts");t.bulletFont=ko(u,"ascii")??ko(u,"hAnsi")??void 0;const d=No(e,po,"pPr"),f=No(d,po,"ind");if(f){const e=ko(f,"left")??ko(f,"start"),n=ko(f,"hanging"),r=null!=e?Ho(e,0):void 0,o=null!=n?Ho(n,0):void 0;void 0===r&&void 0===o||(t.indent={left:r,hanging:o})}return t}function ai(e,t,n){const r=e.numToAbstractId.get(t),o=r?e.abstractLevels.get(`${r}:${n}`):void 0;return e.numOverrideLevels.get(`${t}:${n}`)??o??{}}function si(e){if(!e)return;const t=ko(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const n=Number(ko(e,"sz")),r=Number.isFinite(n)&&n>0?zo(n/8,4):.75,o=qo(ko(e,"color"))??"#000000",i=(null==t?void 0:t.toLowerCase())??"single";return{width:r,type:i.includes("dotted")||i.includes("dot")?"dotted":i.includes("dash")?"dashed":"solid",color:o}}function li(e){return e?{borderTop:si(No(e,po,"top")),borderRight:si(No(e,po,"right")),borderBottom:si(No(e,po,"bottom")),borderLeft:si(No(e,po,"left")),borderStart:si(No(e,po,"start")),borderEnd:si(No(e,po,"end")),borderTopLeftToBottomRight:si(No(e,po,"tl2br")),borderTopRightToBottomLeft:si(No(e,po,"tr2bl")),borderBetween:si(No(e,po,"between")),borderBar:si(No(e,po,"bar"))}:{}}function ci(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function ui(e){return Object.keys(e).length>0?e:void 0}function di(e,t){return ui({...e??{},...t??{}})}function fi(e,t){const n=qo(ko(e,"fill"));return n||(t?Zo(e,t):void 0)}function pi(e){const t=No(e,mo,"solidFill");if(t){const e=function(e){const t=No(e,mo,"srgbClr");if(!t)return null;const n=ko(t,"val");return n?qo(n)??null:null}(t);if(e)return{type:"solid",color:e}}const n=No(e,mo,"gradFill");if(n){const e=No(n,mo,"gsLst");if(e){const t=[];for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI!==mo||"gs"!==o.localName)continue;const i=ko(o,"pos"),a=null!==i?Number(i)/br:NaN;if(!Number.isFinite(a))continue;const s=No(o,mo,"srgbClr");if(!s)continue;const l=ko(s,"val");if(!l)continue;const c=qo(l);if(!c)continue;const u=No(s,mo,"alpha"),d=u?ko(u,"val"):null,f=null!==d?Number(d)/br:void 0,p={position:a,color:c};void 0!==f&&Number.isFinite(f)&&(p.alpha=f),t.push(p)}if(t.length>0){const e=No(n,mo,"lin"),r=e?ko(e,"ang"):null,o=null!==r?Number(r)/yr:void 0,i={type:"gradient",stops:t};return void 0!==o&&Number.isFinite(o)&&(i.angle=o),i}}}return null}function hi(e){const t=No(e,mo,"srgbClr");if(!t)return null;const n=ko(t,"val"),r=n?qo(n)??null:null;if(!r)return null;const o=No(t,mo,"alpha"),i=o?ko(o,"val"):null,a=null!==i&&Number.isFinite(Number(i))?Number(i)/br:void 0;return{color:r,...void 0!==a?{alpha:a}:{}}}function mi(e,t){if(!e)return;const n=Gr(e,t,kr),r=Gr(void 0,t,kr),o=(e,t)=>e!==t?e:void 0,i=(e,t,n)=>void 0!==e?e:o(t,n);return ci({styleId:e.styleId,bold:i(e.bold,n.bold,r.bold),italic:i(e.italic,n.italic,r.italic),underline:o(n.underline,r.underline),underlineStyle:o(n.underlineStyle,r.underlineStyle),underlineColor:o(n.underlineColor,r.underlineColor),strike:i(e.strike,n.strike,r.strike),doubleStrike:i(e.doubleStrike,n.doubleStrike,r.doubleStrike),superscript:o(n.superscript,r.superscript),subscript:o(n.subscript,r.subscript),smallCaps:i(e.smallCaps,n.smallCaps,r.smallCaps),allCaps:i(e.allCaps,n.allCaps,r.allCaps),hidden:i(e.hidden,n.hidden,r.hidden),noProof:i(e.noProof,n.noProof,r.noProof),webHidden:i(e.webHidden,n.webHidden,r.webHidden),specVanish:i(e.specVanish,n.specVanish,r.specVanish),rtl:i(e.rtl,n.rtl,r.rtl),complexScript:i(e.complexScript,n.complexScript,r.complexScript),snapToGrid:i(e.snapToGrid,n.snapToGrid,r.snapToGrid),outline:i(e.outline,n.outline,r.outline),shadow:i(e.shadow,n.shadow,r.shadow),emboss:i(e.emboss,n.emboss,r.emboss),imprint:i(e.imprint,n.imprint,r.imprint),fitText:o(n.fitText,r.fitText),emphasisMark:o(n.emphasisMark,r.emphasisMark),textBorder:o(n.textBorder,r.textBorder),textEffect:o(n.textEffect,r.textEffect),characterScale:o(n.characterScale,r.characterScale),characterSpacing:o(n.characterSpacing,r.characterSpacing),baselineShift:o(n.baselineShift,r.baselineShift),kerningThreshold:o(n.kerningThreshold,r.kerningThreshold),ligatures:o(n.ligatures,r.ligatures),numberSpacing:o(n.numberSpacing,r.numberSpacing),numberForm:o(n.numberForm,r.numberForm),stylisticSet:o(n.stylisticSet,r.stylisticSet),contextualAlternates:o(n.contextualAlternates,r.contextualAlternates),fontFamily:i(e.fontFamily,n.fontFamily,r.fontFamily),fontSize:i(e.fontSize,n.fontSize,r.fontSize),color:o(n.color,r.color),textFill:o(n.textFill,r.textFill),textOutline:o(n.textOutline,r.textOutline),textShadow:o(n.textShadow,r.textShadow),glow:o(n.glow,r.glow),reflection:o(n.reflection,r.reflection),scene3dXml:o(n.scene3dXml,r.scene3dXml),props3dXml:o(n.props3dXml,r.props3dXml),highlight:o(n.highlight,r.highlight),shading:o(n.shading,r.shading),language:o(n.language,r.language),link:o(n.link,r.link)})}function gi(e,t){if(!e)return;const n={},r=Ao(e,"rStyle");r&&(n.styleId=r);const o=Co(e,"b"),i=Co(e,"bCs");void 0===o&&void 0===i||(n.bold=!0===o||!0===i);const a=Co(e,"i"),s=Co(e,"iCs");void 0===a&&void 0===s||(n.italic=!0===a||!0===s);const l=Co(e,"strike");void 0!==l&&(n.strike=l);const c=Co(e,"dstrike");void 0!==c&&(n.doubleStrike=c);const u=Co(e,"smallCaps");void 0!==u&&(n.smallCaps=u);const d=Co(e,"caps");void 0!==d&&(n.allCaps=d);const f=Co(e,"vanish");void 0!==f&&(n.hidden=f);const p=Co(e,"noProof");void 0!==p&&(n.noProof=p);const h=Co(e,"webHidden");void 0!==h&&(n.webHidden=h);const m=Co(e,"specVanish");void 0!==m&&(n.specVanish=m);const g=Co(e,"rtl");void 0!==g&&(n.rtl=g);const v=Co(e,"cs");void 0!==v&&(n.complexScript=v);const w=Co(e,"snapToGrid");void 0!==w&&(n.snapToGrid=w);const b=Co(e,"outline");void 0!==b&&(n.outline=b);const y=Co(e,"shadow");void 0!==y&&(n.shadow=y);const x=Co(e,"emboss");void 0!==x&&(n.emboss=x);const N=Co(e,"imprint");void 0!==N&&(n.imprint=N);const S=ko(No(e,po,"em"),"val");"dot"!==S&&"comma"!==S&&"circle"!==S&&"underDot"!==S&&"none"!==S||(n.emphasisMark=S);const E=ko(No(e,po,"fitText"),"val");if(E){const e=jo(E);void 0!==e&&e>0&&(n.fitText=e)}const k=si(No(e,po,"bdr"));k&&(n.textBorder=k);const _=ko(No(e,po,"effect"),"val");_&&(n.textEffect=_);const T=ko(No(e,po,"w"),"val");if(T){const e=Number(T);Number.isFinite(e)&&e>0&&(n.characterScale=e)}const I=ko(No(e,po,"spacing"),"val");if(I){const e=jo(I);void 0!==e&&(n.characterSpacing=e)}const C=ko(No(e,po,"position"),"val");if(C){const e=Number(C);Number.isFinite(e)&&(n.baselineShift=e/2)}const A=ko(No(e,po,"kern"),"val");if(A){const e=Number(A);Number.isFinite(e)&&e>=0&&(n.kerningThreshold=e/2)}const R=ko(No(e,mo,"ligatures"),"val");"none"!==R&&"standard"!==R&&"contextual"!==R&&"historical"!==R&&"standardContextual"!==R||(n.ligatures=R);const $=ko(No(e,mo,"numSpacing"),"val");"proportional"!==$&&"tabular"!==$||(n.numberSpacing=$);const D=ko(No(e,mo,"numForm"),"val");"lining"!==D&&"oldStyle"!==D||(n.numberForm=D);const P=ko(No(e,mo,"stylisticSets"),"val");if(P){const e=/^[0-9a-fA-F]+$/.test(P)&&P.length>2?Number.parseInt(P,16):Number(P);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){n.stylisticSet=t;break}}const O=ko(No(e,mo,"cntxtAlts"),"val");null===O?No(e,mo,"cntxtAlts")&&(n.contextualAlternates=!0):Io(O)&&(n.contextualAlternates=!0);const M=No(e,po,"u"),L=ko(M,"val");if(M&&"none"!==L){n.underline=!0,L&&"single"!==L&&(n.underlineStyle=L);const e=ko(M,"color");e&&"auto"!==e&&(n.underlineColor=qo(e))}const F=ko(No(e,po,"vertAlign"),"val");"superscript"===F&&(n.superscript=!0),"subscript"===F&&(n.subscript=!0);const B=No(e,po,"rFonts"),U=ko(B,"ascii")??ko(B,"hAnsi")??ko(B,"cs")??ko(B,"eastAsia")??function(e,t){const n=ko(e,"asciiTheme")??ko(e,"hAnsiTheme")??ko(e,"eastAsiaTheme")??ko(e,"cstheme");if(!n)return;const r="majorAscii"===n||"majorHAnsi"===n?"majorHAnsi":"minorAscii"===n||"minorHAnsi"===n?"minorHAnsi":"majorEastAsia"===n?"majorEastAsia":"minorEastAsia"===n?"minorEastAsia":"majorBidi"===n?"majorBidi":"minorBidi"===n?"minorBidi":void 0;return r?t[r]:void 0}(B,t.fonts);U&&(n.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"}`}(U));const z=ko(No(e,po,"sz")??No(e,po,"szCs"),"val");if(z){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?zo(t/2/72*hr,4):null}(z);null!==e&&(n.fontSize=e)}const H=No(e,po,"color"),j=ko(H,"val");if(j&&"auto"!==j)n.color=qo(j);else if("auto"!==j){const e=Zo(H,t.colors);e&&(n.color=e)}const q=So(e,"textFill");if(q){const e=pi(q);e&&(n.textFill=e)}const W=So(e,"textOutline");if(W){const e=W.getAttributeNS(mo,"w"),t=null!==e?Number(e):NaN,r={widthPt:Number.isFinite(t)&&t>0?t/vr:.5},o=pi(W);o&&(r.fill=o,"solid"===o.type?r.color=o.color:"gradient"===o.type&&o.stops[0]&&(r.color=o.stops[0].color)),n.textOutline=r}const G=So(e,"shadow");if(G){const e=function(e){const t=hi(e);if(!t)return null;const n=e.getAttributeNS(mo,"blurRad"),r=e.getAttributeNS(mo,"dist"),o=e.getAttributeNS(mo,"dir"),i=n?Number(n)/vr:0,a=r?Number(r)/vr:0,s=o?Number(o)/yr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},blurPt:i,distPt:a,dirDeg:s}}(G);e&&(n.textShadow=e)}const V=So(e,"glow");if(V){const e=function(e){const t=hi(e);if(!t)return null;const n=e.getAttributeNS(mo,"rad"),r=n?Number(n)/vr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},radiusPt:r}}(V);e&&(n.glow=e)}const X=So(e,"reflection");X&&(n.reflection=function(e){const t=e.getAttributeNS(mo,"blurRad"),n=e.getAttributeNS(mo,"stA"),r=e.getAttributeNS(mo,"stPos"),o=e.getAttributeNS(mo,"endA"),i=e.getAttributeNS(mo,"endPos"),a=e.getAttributeNS(mo,"dist");return{blurPt:t?Number(t)/vr:0,startAlpha:null!==n?Number(n)/br:.55,startPos:null!==r?Number(r)/br:0,endAlpha:null!==o?Number(o)/br:0,endPos:null!==i?Number(i)/br:1,distPt:a?Number(a)/vr:0}}(X));const Z=So(e,"scene3d");Z&&(n.scene3dXml=(new or).serializeToString(Z));const Y=So(e,"props3d");Y&&(n.props3dXml=(new or).serializeToString(Y));const Q=ko(No(e,po,"highlight"),"val");Q&&"none"!==Q&&(n.highlight=Q);const K=fi(No(e,po,"shd"),t.colors);K&&(n.shading=K);const J=No(e,po,"lang");if(J){const e=ko(J,"val"),t=ko(J,"eastAsia"),r=ko(J,"bidi"),o={};e&&(o.value=e),t&&(o.eastAsia=t),r&&(o.bidi=r),Object.keys(o).length>0&&(n.language=o)}return ui(n)}const vi=[["firstRow","firstRow"],["lastRow","lastRow"],["firstColumn","firstCol"],["lastColumn","lastCol"],["oddVBand","band1Vert"],["evenVBand","band2Vert"],["oddHBand","band1Horz"],["evenHBand","band2Horz"],["firstRowFirstColumn","nwCell"],["firstRowLastColumn","neCell"],["lastRowFirstColumn","swCell"],["lastRowLastColumn","seCell"]],wi=[["top","borderTop"],["left","borderLeft"],["bottom","borderBottom"],["right","borderRight"],["insideH","borderInsideH"],["insideV","borderInsideV"]];function bi(e){if(!e)return;const t=ko(e,"type"),n=ko(e,"w");if("auto"===t)return"auto";if("pct"===t){if(!n)return;const e=n.trim().endsWith("%")?Number.parseFloat(n):Number(n)/50;return Number.isFinite(e)?`${zo(e,4)}%`:void 0}return jo(n)}function yi(e,t){const n=ko(No(e,po,t),"val"),r=n?Number(n):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0}function xi(e){const t=No(e,po,"cnfStyle");if(!t)return;const n=ko(t,"val")??"",r={};return vi.forEach(([e,o],i)=>{const a=ko(t,e);"1"===a||"true"===a||"on"===a?r[o]=!0:"0"===a||"false"===a||"off"===a?r[o]=!1:12===n.length&&"1"===n[i]&&(r[o]=!0)}),Object.keys(r).length>0?r:void 0}function Ni(e){const t=ko(e,"date"),n=t?Date.parse(t):Number.NaN;return{id:ko(e,"id")??`revision:${e.localName}`,author:ko(e,"author")??"Unknown",date:Number.isFinite(n)?n:0}}function Si(e){if(!e)return;const t=t=>jo(ko(No(e,po,t),"w")),n={},r=t("top"),o=t("right"),i=t("bottom"),a=t("left"),s=t("start"),l=t("end");return void 0!==r&&(n.top=r),void 0!==o&&(n.right=o),void 0!==i&&(n.bottom=i),void 0!==a&&(n.left=a),void 0!==s&&(n.start=s),void 0!==l&&(n.end=l),Object.keys(n).length>0?n:void 0}function Ei(e,t){const n={};t&&(n.styleId=t);const r=ko(No(e,po,"tblCaption"),"val");r&&(n.altTitle=r);const o=ko(No(e,po,"tblDescription"),"val");o&&(n.altDescription=o);const i=bi(No(e,po,"tblW"));void 0!==i&&(n.width=i);const a=bi(No(e,po,"tblInd"));void 0!==a&&(n.indentLeft=a);const s=ko(No(e,po,"jc"),"val");"left"===s||"start"===s?n.align="left":"center"===s?n.align="center":"right"!==s&&"end"!==s||(n.align="right");const l=function(e){const t=ko(No(e,po,"tblLayout"),"type");return"fixed"===t||"autofit"===t?t:void 0}(e);l&&(n.layout=l);const c=bi(No(e,po,"tblCellSpacing"));void 0!==c&&(n.cellSpacing=c);const u=(d=No(e,po,"tblBorders"))?{...li(d),borderInsideH:si(No(d,po,"insideH")),borderInsideV:si(No(d,po,"insideV"))}:{};var d;Object.keys(u).length>0&&(n.borders=u);const f=Si(No(e,po,"tblCellMar"));f&&(n.defaultCellMargins=f);const p=e?Co(e,"bidiVisual"):void 0;void 0!==p&&(n.bidiVisual=p);const h=ko(No(e,po,"tblOverlap"),"val");"overlap"!==h&&"never"!==h||(n.tblOverlap=h);const m=function(e){const t=No(e,po,"tblpPr");if(!t||!t.attributes||0===t.attributes.length)return;const n={};for(let l=0;l<t.attributes.length;l+=1){const e=t.attributes.item(l);(null==e?void 0:e.namespaceURI)!==po&&"w"!==(null==e?void 0:e.prefix)||(n[e.localName||e.name.replace(/^w:/,"")]=e.value)}const r=e=>jo(n[e]??null),o="margin"===n.horzAnchor||"page"===n.horzAnchor||"text"===n.horzAnchor?n.horzAnchor:void 0,i="margin"===n.vertAnchor||"page"===n.vertAnchor||"text"===n.vertAnchor?n.vertAnchor:void 0,a="left"===n.tblpXSpec||"center"===n.tblpXSpec||"right"===n.tblpXSpec||"inside"===n.tblpXSpec||"outside"===n.tblpXSpec?n.tblpXSpec:void 0,s="top"===n.tblpYSpec||"center"===n.tblpYSpec||"bottom"===n.tblpYSpec||"inside"===n.tblpYSpec||"outside"===n.tblpYSpec?n.tblpYSpec:void 0;return{...o?{horizontalAnchor:o}:{},...i?{verticalAnchor:i}:{},...void 0!==r("tblpX")?{x:r("tblpX")}:{},...void 0!==r("tblpY")?{y:r("tblpY")}:{},...a?{xAlign:a}:{},...s?{yAlign:s}:{},...void 0!==r("topFromText")?{distanceTop:r("topFromText")}:{},...void 0!==r("rightFromText")?{distanceRight:r("rightFromText")}:{},...void 0!==r("bottomFromText")?{distanceBottom:r("bottomFromText")}:{},...void 0!==r("leftFromText")?{distanceLeft:r("leftFromText")}:{}}}(e);m&&(n.floating=m);const g=yi(e,"tblStyleRowBandSize");void 0!==g&&(n.rowBandSize=g);const v=yi(e,"tblStyleColBandSize");void 0!==v&&(n.colBandSize=v);const w=No(e,po,"tblLook");if(w){const e=ko(w,"val"),t=e?Number.parseInt(e,16):Number.NaN,r=(e,n,r)=>{const o=ko(w,e);return null!==o&&""!==o?"1"===o||"true"===o||"on"===o:Number.isFinite(t)?0!==(t&n):r};n.tblLook={firstRow:r("firstRow",32,!0),lastRow:r("lastRow",64,!1),firstCol:r("firstColumn",128,!0),lastCol:r("lastColumn",256,!1),noHBand:r("noHBand",512,!1),noVBand:r("noVBand",1024,!1)}}const b=No(e,po,"tblPrChange"),y=No(b,po,"tblPr");return b&&y&&(n.revision={...Ni(b),type:"property",previous:Ei(y)??{}}),ui(n)}function ki(e){if(!e)return;const t={},n=Co(e,"tblHeader");void 0!==n&&(t.isHeader=n);const r=yi(e,"gridBefore");void 0!==r&&(t.gridBefore=r);const o=yi(e,"gridAfter");void 0!==o&&(t.gridAfter=o);const i=bi(No(e,po,"wBefore"));void 0!==i&&(t.widthBefore=i);const a=bi(No(e,po,"wAfter"));void 0!==a&&(t.widthAfter=a);const s=No(e,po,"trHeight"),l=jo(ko(s,"val"));void 0!==l&&(t.height=l);const c=ko(s,"hRule");"auto"!==c&&"exact"!==c&&"atLeast"!==c||(t.heightRule=c);const u=bi(No(e,po,"tblCellSpacing"));void 0!==u&&(t.cellSpacing=u);const d=ko(No(e,po,"jc"),"val");"left"===d||"start"===d?t.align="left":"center"===d?t.align="center":"right"!==d&&"end"!==d||(t.align="right");const f=Co(e,"cantSplit");void 0!==f&&(t.cantSplit=f);const p=Co(e,"hidden");void 0!==p&&(t.hidden=p);const h=No(e,po,"trPrChange"),m=No(h,po,"trPr");h&&m&&(t.propertyRevision={...Ni(h),type:"property",previous:ki(m)??{}});const g=No(e,po,"ins"),v=No(e,po,"del"),w=g??v;return w&&(t.revision={...Ni(w),type:g?"insert":"delete"}),ui(t)}function _i(e){if(!e)return 1;const t=ko(No(e,po,"gridSpan"),"val"),n=t?Number(t):1;return Number.isFinite(n)&&n>1?Math.floor(n):1}function Ti(e){if(!e)return;const t=No(e,po,"vMerge");if(!t)return;return"restart"===ko(t,"val")?"restart":"continue"}function Ii(e){if(!e)return;const t=No(e,po,"hMerge");if(!t)return;return"restart"===ko(t,"val")?"restart":"continue"}function Ci(e,t,n){if(!e)return;const r={},o=fi(No(e,po,"shd"),n);o&&(r.shading=o);const i=No(e,po,"tcW"),a=ko(i,"type"),s=ko(i,"w");if("dxa"===a){const e=jo(s);void 0!==e&&(r.width=e)}else if("pct"===a&&s){const e=Number(s);Number.isFinite(e)&&(r.width=`${zo(e/50,4)}%`)}const l=Si(No(e,po,"tcMar"));l&&(void 0!==l.top&&(r.paddingTop=l.top),void 0!==l.bottom&&(r.paddingBottom=l.bottom),void 0!==l.left&&(r.paddingLeft=l.left),void 0!==l.right&&(r.paddingRight=l.right),void 0!==l.start&&(r.paddingStart=l.start),void 0!==l.end&&(r.paddingEnd=l.end));const c=function(e){if(!e)return;const t=ko(No(e,po,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);c&&(r.verticalAlign=c);const u=xo(ko(No(e,po,"textDirection"),"val"));u&&(r.textDirection=u);const d=Co(e,"noWrap");void 0!==d&&(r.noWrap=d);const f=Co(e,"tcFitText");void 0!==f&&(r.fitText=f);const p=Co(e,"hideMark");void 0!==p&&(r.hideMark=p);const h=ko(No(e,po,"headers"),"val");h&&(r.headers=h);const m=No(e,po,"tcPrChange"),g=No(m,po,"tcPr");m&&g&&(r.propertyRevision={...Ni(m),type:"property",previous:Ci(g,void 0,n)??{}});const v=No(e,po,"cellIns"),w=No(e,po,"cellDel"),b=No(e,po,"cellMerge"),y=v??w??b;if(y){const e=ko(y,"vMergeOrig");r.revision={...Ni(y),type:v?"insert":w?"delete":"merge",...b&&e?{previous:{vMerge:"restart"===e?"restart":"continue"}}:{}}}for(const[x,N]of Object.entries(function(e){return e?li(No(e,po,"tcBorders")):{}}(e)))N&&(r[x]=N);return ui(r)}function Ai(e){const t=No(e,po,"trPr");return!!t&&!0===Co(t,"tblHeader")}function Ri(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function $i(e,t){if(!e)return;const n={},r=Ao(e,"pStyle");r&&(n.styleId=r);const o=ko(No(e,po,"jc"),"val");"left"===o||"start"===o||"center"===o||"right"===o||"end"===o||"justify"===o?n.align="start"===o?"left":"end"===o?"right":o:"both"!==o&&"distribute"!==o||(n.align="justify");const i=No(e,po,"spacing"),a=ko(i,"before"),s=ko(i,"after"),l=ko(i,"line"),c=ko(i,"lineRule");a&&(n.spacingBefore=Ho(a,0)),s&&(n.spacingAfter=Ho(s,0)),l&&("exact"===c||"atLeast"===c?(n.lineHeight=zo(Number(l)/1440*96,4),n.lineRule=c):n.lineHeight=Number(l)/240);const u=Co(e,"contextualSpacing");void 0!==u&&(n.contextualSpacing=u);const d=Co(e,"snapToGrid");void 0!==d&&(n.snapToGrid=d);const f=No(e,po,"ind"),p=ko(f,"start")??ko(f,"left"),h=ko(f,"end")??ko(f,"right"),m=ko(f,"firstLine"),g=ko(f,"hanging");p&&(n.indentLeft=Ho(p,0)),h&&(n.indentRight=Ho(h,0)),g?(n.indentHanging=Ho(g,0),n.indentFirstLine=void 0):m&&(n.indentFirstLine=Ho(m,0));const v=function(e){const t=No(e,po,"tabs");if(!t)return[];const n=[];for(const r of bo(t,po,"tab")){const e=jo(ko(r,"pos"));if(void 0===e)continue;const t=ko(r,"val"),o="center"===t||"right"===t||"decimal"===t||"bar"===t||"clear"===t?t:"left",i=ko(r,"leader"),a="dot"===i||"hyphen"===i||"underscore"===i||"heavy"===i||"middleDot"===i?i:"none"===i?"none":void 0;n.push({position:e,type:o,...void 0!==a?{leader:a}:{}})}return n}(e);v.length>0&&(n.tabs=v);const w=Co(e,"pageBreakBefore");void 0!==w&&(n.pageBreakBefore=w);const b=Co(e,"keepNext");void 0!==b&&(n.keepWithNext=b);const y=Co(e,"keepLines");void 0!==y&&(n.keepLinesTogether=y);const x=Co(e,"widowControl");void 0!==x&&(n.widowControl=x);const N=Co(e,"mirrorIndents");void 0!==N&&(n.mirrorIndents=N);const S=No(e,po,"pBdr");if(S){const{borderTop:e,borderRight:t,borderBottom:r,borderLeft:o,borderBetween:i,borderBar:a}=li(S);e&&(n.borderTop=e),t&&(n.borderRight=t),r&&(n.borderBottom=r),o&&(n.borderLeft=o),i&&(n.borderBetween=i),a&&(n.borderBar=a)}const E=fi(No(e,po,"shd"),t);E&&(n.shading=E);const k=xo(ko(No(e,po,"textDirection"),"val"));k&&(n.textDirection=k);const _=ko(No(e,po,"outlineLvl"),"val");if(void 0!==_){const e=Number(_);Number.isFinite(e)&&e>=0&&e<=8&&(n.outlineLevel=e)}const T=Co(e,"suppressLineNumbers");void 0!==T&&(n.suppressLineNumbers=T);const I=Co(e,"suppressAutoHyphens");void 0!==I&&(n.suppressAutoHyphens=I);const C=Co(e,"bidi");void 0!==C&&(n.bidi=C);const A=Co(e,"kinsoku");void 0!==A&&(n.kinsoku=A);const R=Co(e,"wordWrap");void 0!==R&&(n.wordWrap=R);const $=Co(e,"overflowPunct");void 0!==$&&(n.overflowPunct=$);const D=Co(e,"topLinePunct");void 0!==D&&(n.topLinePunct=D);const P=Co(e,"autoSpaceDE");void 0!==P&&(n.autoSpaceDE=P);const O=Co(e,"autoSpaceDN");void 0!==O&&(n.autoSpaceDN=O);const M=Co(e,"adjustRightInd");void 0!==M&&(n.adjustRightInd=M);const L=ko(No(e,po,"textAlignment"),"val");"auto"!==L&&"top"!==L&&"center"!==L&&"baseline"!==L&&"bottom"!==L||(n.textAlignment=L);const F=ko(No(e,po,"textboxTightWrap"),"val");"none"!==F&&"allLines"!==F&&"firstLineOnly"!==F&&"firstLastLine"!==F||(n.textboxTightWrap=F);const B=ko(No(e,po,"divId"),"val");if(null!==B){const e=Number(B);Number.isFinite(e)&&e>=0&&(n.divId=Math.floor(e))}const U=xi(e);U&&(n.conditionalStyle=U);const z=No(e,po,"framePr");if(z){const e=ko(z,"dropCap");e&&"none"!==e||(n.framePrXml=(new or).serializeToString(z))}return ui(n)}function Di(e){return"1"===e||"true"===e||"on"===e}function Pi(e){const t=No(e,po,"cols");if(!t)return;const n=Number.parseInt(ko(t,"num")??"1",10);if(!Number.isFinite(n)||n<=1)return;const r=Ho(ko(t,"space"),0),o=ko(t,"sep"),i=ko(t,"equalWidth"),a=bo(t,po,"col").map(e=>({width:Ho(ko(e,"w"),0),space:Ho(ko(e,"space"),r)})),s=null==i||Di(i);return{count:n,space:r,...Di(o)?{separator:!0}:{},...s?{}:{equalWidth:!1},...!s&&a.length>0?{columns:a}:{}}}function Oi(e){const t=No(e,po,"pgSz"),n=No(e,po,"pgMar"),r=Pi(e),o=No(e,po,"pgBorders"),i=No(o,po,"top"),a=ko(i,"val"),s=ko(i,"color"),l=Number.parseInt(ko(i,"sz")??"0",10),c=a&&s&&"nil"!==a?{style:"double"===a||"dashed"===a||"dotted"===a?a:"single",color:`#${s.replace(/^#/,"")}`,width:Number.isFinite(l)&&l>0?l/8:1,distance:Number(ko(i,"space")??0)}:void 0;let u;if(t||n||r){const e=Ho(ko(t,"w"),816),o=Ho(ko(t,"h"),1056),i=ko(t,"orient");u={width:e,height:o,orientation:"landscape"===i?"landscape":"portrait"===i?"portrait":e>o?"landscape":"portrait",margins:{top:Ho(ko(n,"top"),96),right:Ho(ko(n,"right"),96),bottom:Ho(ko(n,"bottom"),96),left:Ho(ko(n,"left"),96),header:Ho(ko(n,"header"),48),footer:Ho(ko(n,"footer"),48),gutter:Ho(ko(n,"gutter"),0)},...r?{columns:r}:{}}}const d=t=>{const n={};for(const r of bo(e,po,t)){const e=ko(r,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=r.getAttribute("r:id")??r.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(n[e]=t)}return n},f=d("headerReference"),p=d("footerReference"),h=No(e,po,"docGrid"),m=ko(h,"type"),g=Ho(ko(h,"linePitch"),Number.NaN),v=ko(No(e,po,"type"),"val"),w="continuous"===v||"nextPage"===v||"evenPage"===v||"oddPage"===v||"nextColumn"===v?v:void 0,b=No(e,po,"pgNumType");let y;if(b){const e=ko(b,"start"),t=null!==e?Number.parseInt(e,10):void 0,n=ko(b,"fmt")??void 0,r=ko(b,"chapStyle")??void 0,o=ko(b,"chapSep")??void 0;(void 0!==t&&Number.isFinite(t)||n||r||o)&&(y={...void 0!==t&&Number.isFinite(t)?{start:t}:{},...n?{format:n}:{},...r?{chapterStyle:r}:{},...o?{chapterSeparator:o}:{}})}const x=ko(No(e,po,"vAlign"),"val"),N="center"===x||"both"===x||"bottom"===x?x:void 0,S=Co(e,"bidi");return{pageSettings:u,...c?{pageBorder:c}:{},headerRIds:f,footerRIds:p,docGridLinePitchPx:Number.isFinite(g)&&g>0?g:void 0,docGridMode:"lines"===m||"linesAndChars"===m?"explicit":void 0,docGridType:m,breakType:w,pageNumbering:y,verticalAlignment:N,bidi:S}}function Mi(e){if(!e)return;const t=No(e,po,"sectPr");if(!t)return;const n=No(t,po,"pgSz"),r=No(t,po,"pgMar"),o=Pi(t);if(!n&&!r&&!o)return;const i=Ho(ko(n,"w"),816),a=Ho(ko(n,"h"),1056),s=ko(n,"orient");return{width:i,height:a,orientation:"landscape"===s?"landscape":"portrait"===s?"portrait":i>a?"landscape":"portrait",margins:{top:Ho(ko(r,"top"),96),right:Ho(ko(r,"right"),96),bottom:Ho(ko(r,"bottom"),96),left:Ho(ko(r,"left"),96),header:Ho(ko(r,"header"),48),footer:Ho(ko(r,"footer"),48),gutter:Ho(ko(r,"gutter"),0)},...o?{columns:o}:{}}}function Li(e,t,n,r,o){var i,a,s;if(t&&n)for(const l of e){if("paragraph"===l.type){const e=(null==(i=l.style)?void 0:i.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:r});continue}if(o.adjustLineHeightInTable)for(const e of l.rows)for(const i of e.cells)Li(i.blocks,t,n,r,o)}}const Fi="http://schemas.openxmlformats.org/officeDocument/2006/math",Bi=new or;function Ui(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)!==o.ELEMENT_NODE||o.namespaceURI!==Fi||t&&o.localName!==t||n.push(o)}return n}function zi(e,t){return Ui(e,t)[0]}function Hi(e,t){return(null==e?void 0:e.getAttributeNS(Fi,t))??(null==e?void 0:e.getAttribute(`m:${t}`))??(null==e?void 0:e.getAttribute(t))??void 0}function ji(e){return e?Ui(e).map(qi):[]}function qi(e){switch(e.localName){case"r":return function(e){var t;const n=(null==(t=zi(e,"t"))?void 0:t.textContent)??"",r=zi(e,"rPr"),o=r?{...zi(r,"sty")?{script:Hi(zi(r,"sty"),"val")}:{},...zi(r,"nor")?{normalText:!0}:{},...zi(r,"b")?{bold:"0"!==Hi(zi(r,"b"),"val")}:{},...zi(r,"i")?{italic:"0"!==Hi(zi(r,"i"),"val")}:{}}:void 0;return{kind:"text",value:n,...o&&Object.keys(o).length>0?{style:o}:{}}}(e);case"f":return{kind:"fraction",numerator:ji(zi(e,"num")),denominator:ji(zi(e,"den"))};case"rad":return{kind:"radical",radicand:ji(zi(e,"e")),...zi(e,"deg")?{degree:ji(zi(e,"deg"))}:{}};case"sSub":case"sSup":case"sSubSup":return function(e,t){const n=ji(zi(e,"e")),r=ji(zi(e,"sub")),o=ji(zi(e,"sup"));return{kind:t,base:n,...r.length>0?{subscript:r}:{},...o.length>0?{superscript:o}:{}}}(e,"script");case"d":{const t=zi(e,"dPr");return{kind:"delimiter",children:Ui(e,"e").map(ji),...Hi(zi(t,"begChr"),"val")?{begin:Hi(zi(t,"begChr"),"val")}:{},...Hi(zi(t,"endChr"),"val")?{end:Hi(zi(t,"endChr"),"val")}:{},...Hi(zi(t,"sepChr"),"val")?{separator:Hi(zi(t,"sepChr"),"val")}:{},grow:"0"!==Hi(zi(t,"grow"),"val")}}case"acc":{const t=zi(e,"accPr");return{kind:"accent",accent:Hi(zi(t,"chr"),"val")??"¯",children:ji(zi(e,"e"))}}case"nary":{const t=zi(e,"naryPr");return{kind:"nary",operator:Hi(zi(t,"chr"),"val")??"∑",children:ji(zi(e,"e")),...Ui(e,"sub").length>0?{subscript:ji(zi(e,"sub"))}:{},...Ui(e,"sup").length>0?{superscript:ji(zi(e,"sup"))}:{},grow:"0"!==Hi(zi(t,"grow"),"val")}}case"limLow":return{kind:"limit",operator:"low",base:ji(zi(e,"e")),limit:ji(zi(e,"lim"))};case"limUpp":return{kind:"limit",operator:"upper",base:ji(zi(e,"e")),limit:ji(zi(e,"lim"))};case"m":return{kind:"matrix",rows:Ui(e,"mr").map(e=>Ui(e,"e").map(ji))};case"box":case"borderBox":return{kind:"box",children:ji(zi(e,"e")),border:!0};case"phant":return{kind:"box",children:ji(zi(e,"e")),hidden:!0};case"groupChr":{const t=zi(e,"groupChrPr");return{kind:"accent",accent:Hi(zi(t,"chr"),"val")??"¯",children:ji(zi(e,"e"))}}case"func":return{kind:"group",children:[...ji(zi(e,"fName")),...ji(zi(e,"e"))]};default:return{kind:"raw",xml:Bi.serializeToString(e),fallbackText:e.textContent??""}}}function Wi(e){const t="oMathPara"===e.localName?zi(e,"oMath"):e;return{version:1,children:t?Ui(t).map(qi):[],display:"oMathPara"===e.localName,sourceXml:Bi.serializeToString(e)}}const Gi=new Set(["alias","tag","id","lock","placeholder","dataBinding","temporary","appearance","showingPlcHdr","color","text","richText","picture","comboBox","dropDownList","date","repeatingSection","repeatingSectionItem","group","equation","citation","bibliography"]),Vi=new Set(["repeatingSection","repeatingSectionItem"]);function Xi(e){if(!e)return{};const t={},n=No(e,po,"alias");if(n){const e=ko(n,"val");null!==e&&(t.alias=e)}const r=No(e,po,"tag");if(r){const e=ko(r,"val");null!==e&&(t.tag=e)}const o=No(e,po,"id");if(o){const e=ko(o,"val");null!==e&&(t.id=e)}const i=No(e,po,"lock");if(i){const e=ko(i,"val");null!==e&&(t.lock=e)}const a=No(e,po,"appearance");if(a){const e=ko(a,"val");null!==e&&(t.appearance=e)}const s=No(e,po,"showingPlcHdr");s&&(t.showingPlcHdr=Io(ko(s,"val")));const l=No(e,po,"temporary");l&&(t.temporary=Io(ko(l,"val")));const c=No(e,po,"color");if(c){const e=ko(c,"val");null!==e&&(t.color=e)}const u=No(e,po,"placeholder");if(u){const e=No(u,po,"docPart");if(e){const n=ko(e,"val");null!==n&&(t.placeholderDocPart=n)}}const d=No(e,po,"dataBinding");if(d){const e=function(e){const t={},n=ko(e,"prefixMappings"),r=ko(e,"xpath"),o=ko(e,"storeItemID");null!==n&&(t.prefixMappings=n);null!==r&&(t.xpath=r);null!==o&&(t.storeItemID=o);if(void 0===t.prefixMappings){const n=ko(No(e,po,"prefixMappings"),"val");null!==n&&(t.prefixMappings=n)}if(void 0===t.xpath){const n=ko(No(e,po,"xpath"),"val");null!==n&&(t.xpath=n)}if(void 0===t.storeItemID){const n=ko(No(e,po,"storeItemID"),"val");null!==n&&(t.storeItemID=n)}return void 0===t.prefixMappings&&void 0===t.xpath&&void 0===t.storeItemID?null:t}(d);e&&(t.dataBinding=e)}const f=function(e){const t=No(e,po,"comboBox");if(t){const e=No(t,po,"lastSelectedValue");return{kind:"comboBox",listItems:Zi(t),...e?{lastSelectedValue:ko(e,"val")??void 0}:{}}}const n=No(e,po,"dropDownList");if(n){const e=No(n,po,"lastSelectedValue");return{kind:"dropDownList",listItems:Zi(n),...e?{lastSelectedValue:ko(e,"val")??void 0}:{}}}const r=No(e,po,"date");if(r){const e=ko(r,"fullDate")??void 0,t=No(r,po,"dateFormat"),n=No(r,po,"lid"),o=No(r,po,"calendar"),i=No(r,po,"storeMappedDataAs");return{kind:"date",fullDate:e,dateFormat:t?ko(t,"val")??void 0:void 0,lid:n?ko(n,"val")??void 0:void 0,calendar:o?ko(o,"val")??void 0:void 0,storeMappedDataAs:i?ko(i,"val")??void 0:void 0}}if(No(e,po,"text"))return{kind:"text"};for(const i of["richText","picture","group","equation","citation","bibliography"])if(No(e,po,i))return{kind:i};if(Eo(e,"repeatingSection")||No(e,po,"repeatingSection"))return{kind:"repeatingSection"};if(Eo(e,"repeatingSectionItem")||No(e,po,"repeatingSectionItem"))return{kind:"repeatingSectionItem"};const o=So(e,"checkbox");if(o){const e=No(o,mo,"checked"),t=No(o,mo,"checkedState"),n=No(o,mo,"uncheckedState"),r=e?Io(ko(e,"val")):void 0;return{kind:"checkbox",...void 0!==r?{checked:r}:{},...t?{checkedStateFont:ko(t,"font")??void 0,checkedStateChar:ko(t,"char")??void 0}:{},...n?{uncheckedStateFont:ko(n,"font")??void 0,uncheckedStateChar:ko(n,"char")??void 0}:{}}}return}(e);if(f&&(t.subtype=f,"repeatingSection"===f.kind)){const n=Eo(e,"repeatingSection")??No(e,po,"repeatingSection");if(n){const e=Eo(n,"sectionTitle"),r=Eo(n,"doNotAllowInsertDeleteSection"),o={},i=ko(e,"val");if(null!==i&&(o.sectionTitle=i),r){const e=ko(r,"val");o.doNotAllowInsertDeleteSection=null===e||Io(e)}Object.keys(o).length>0&&(t.repeatingSectionProperties=o)}}const p=function(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r,i=o.localName&&o.namespaceURI===po&&Gi.has(o.localName),a=o.localName&&o.namespaceURI===go&&Vi.has(o.localName);i||a||(t+=(new or).serializeToString(o))}return t}(e);return p.length>0&&(t.unknownXml=p),t}function Zi(e){const t=bo(e,po,"listItem");if(0!==t.length)return t.map(e=>({displayText:ko(e,"displayText")??void 0,value:ko(e,"value")??void 0}))}const Yi=new Set(Object.keys({solid:[],dot:[.75,2.25],sysDot:[.75,.75],dash:[3.75,2.25],sysDash:[2.25,2.25],dashDot:[3.75,2.25,.75,2.25],lgDash:[6,2.25],lgDashDot:[6,2.25,.75,2.25],lgDashDotDot:[6,2.25,.75,2.25,.75,2.25]}));function Qi(e){return e&&Yi.has(e)?e:void 0}const Ki=/^[0-9a-fA-F]{6}$/;function Ji(e){return e.trim().replace(/^#/,"")}function ea(e){if(!e)return null;const t=Ji(e);return Ki.test(t)?t.toUpperCase():null}function ta(e){const t=na(e);return void 0===t?void 0:Math.round(t/gr)}function na(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function ra(e){const t=null==e?void 0:e.trim();if(!t)return null;const n=t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);if(!n)return null;const r=Number(n[1]);if(!Number.isFinite(r)||r<=0)return null;switch((n[2]??"px").toLowerCase()){case"pt":return Math.round(r*mr);case"in":return Math.round(r*hr);case"cm":return Math.round(r/2.54*hr);case"mm":return Math.round(r/25.4*hr);case"pc":return Math.round(12*r*mr);default:return Math.round(r)}}function oa(e){const t=ea(e);return t?`#${t}`:void 0}function ia(e){for(let t=0;t<e.childNodes.length;t+=1){const n=e.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;if("inline"===r.localName||"anchor"===r.localName)return{element:r,kind:r.localName}}}function aa(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function sa(e,t){var n,r,o,i;const a=_o(e,t);if(!a)return;const s=null==(r=null==(n=_o(a,"align"))?void 0:n.textContent)?void 0:r.trim(),l=na(null==(i=null==(o=_o(a,"posOffset"))?void 0:o.textContent)?void 0:i.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 la(e){const t=sa(e,"positionH"),n=sa(e,"positionV"),r=function(e){return _o(e,"wrapSquare")?"square":_o(e,"wrapTight")?"tight":_o(e,"wrapThrough")?"through":_o(e,"wrapTopAndBottom")?"topAndBottom":_o(e,"wrapNone")?"none":void 0}(e),o=na(e.getAttribute("distT")),i=na(e.getAttribute("distB")),a=na(e.getAttribute("distL")),s=na(e.getAttribute("distR")),l=aa(e.getAttribute("simplePos")),c=na(e.getAttribute("relativeHeight")),u=aa(e.getAttribute("behindDoc")),d=aa(e.getAttribute("locked")),f=aa(e.getAttribute("layoutInCell")),p=aa(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==o?{distT:o}:{},...void 0!==i?{distB:i}:{},...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!==p?{allowOverlap:p}:{},...t?{positionH:t}:{},...n?{positionV:n}:{},...r?{wrap:r}:{}}}async function ca(e,t,n,r){const o=_o(e,"blip");if(!o)return{text:"",image:void 0};const{embed:i,link:a}=function(e){const t={};for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];r&&("embed"===r.localName||"r:embed"===r.name?t.embed=r.value:"link"!==r.localName&&"r:link"!==r.name||(t.link=r.value))}return t}(o),s=ia(e),l=(null==s?void 0:s.element)??e,c=_o(l,"extent"),u=_o(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)/gr)),t&&(f=Math.round(parseInt(t,10)/gr))}const p=u?ko(u,"descr")??ko(u,"title"):null,h=function(e){const t=_o(e,"srcRect");if(!t)return;const n=e=>{const n=t.getAttribute(e);if(null===n||""===n)return;const r=parseInt(n,10);return Number.isFinite(r)&&0!==r?r/br:void 0},r={left:n("l"),top:n("t"),right:n("r"),bottom:n("b")};return void 0!==r.left||void 0!==r.top||void 0!==r.right||void 0!==r.bottom?r:void 0}(e),m=function(e){const t=_o(e,"pic"),n=t&&_o(t,"spPr");if(!n)return;let r=null;for(let l=0;l<n.childNodes.length;l+=1){const e=n.childNodes[l];if(1!==(null==e?void 0:e.nodeType))continue;const t=e;if("prstGeom"===t.localName){r=t;break}}const o=null==r?void 0:r.getAttribute("prst");if(!r||!o||"rect"===o)return;const i={},a=Array.from(r.childNodes).find(e=>1===(null==e?void 0:e.nodeType)&&"avLst"===e.localName);if(a)for(let l=0;l<a.childNodes.length;l+=1){const e=a.childNodes[l];if(1!==(null==e?void 0:e.nodeType)||"gd"!==e.localName)continue;const t=e,n=t.getAttribute("name"),r=(t.getAttribute("fmla")??"").match(/(-?\d+(?:\.\d+)?)\s*$/);n&&r&&(i[n]=Number(r[1]))}const s={preset:o,rawXml:(new or).serializeToString(r)};return Object.keys(i).length>0&&(s.adjustments=i),s}(e),g=function(e){if(_o(e,"tile"))return"tile"}(e),v=function(e){var t,n;const r=_o(e,"pic"),o=r&&_o(r,"spPr");if(o)for(let i=0;i<o.childNodes.length;i+=1){const e=o.childNodes[i];if(1!==(null==e?void 0:e.nodeType))continue;const r=e;if("ln"!==r.localName)continue;const a=oa(null==(t=_o(r,"srgbClr"))?void 0:t.getAttribute("val"));if(!a)return;const s={color:a},l=na(r.getAttribute("w"));void 0!==l&&(s.widthPt=zo(l/vr,2));const c=Qi(null==(n=_o(r,"prstDash"))?void 0:n.getAttribute("val"));return c&&(s.dash=c),s}}(e),w=function(e){const t=_o(e,"xfrm");if(!t)return{};const n={},r=t.getAttribute("rot");if(r){const e=parseInt(r,10);Number.isFinite(e)&&0!==e&&(n.rotation=e/yr)}const o=t.getAttribute("flipH");"1"!==o&&"true"!==o||(n.flipH=!0);const i=t.getAttribute("flipV");return"1"!==i&&"true"!==i||(n.flipV=!0),n}(e),b="anchor"===(null==s?void 0:s.kind)?la(s.element):void 0,y="anchor"===(null==s?void 0:s.kind)?function(e){const t=_o(e,"wrapPolygon");if(!t)return;const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if(1!==(null==e?void 0:e.nodeType))continue;const o=e;if("start"!==o.localName&&"lineTo"!==o.localName)continue;const i=na(o.getAttribute("x")),a=na(o.getAttribute("y"));void 0!==i&&void 0!==a&&n.push({x:i/21600,y:a/21600})}if(n.length>=2){const e=n[0],t=n[n.length-1];Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6&&n.pop()}return n.length>=3?n:void 0}(s.element):void 0,x={width:d,height:f,...null!==p?{alt:p}:{},...h?{crop:h}:{},...m?{cropShape:m,cropFit:"fill"}:{},...g?{fillMode:g}:{},...v?{border:v}:{},...void 0!==w.rotation?{rotation:w.rotation}:{},...w.flipH?{flipH:!0}:{},...w.flipV?{flipV:!0}:{},...b?{floating:b}:{},...y?{wrapPolygon:y}:{}},N=i?n.get(i):void 0,S=a?n.get(a):void 0;if(S&&function(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith("//")}(S))return{text:"",image:{src:"",linkedSrc:S,...x}};const E=N??S;if(E){const e=await Oo(t,r,E);if(e)return{text:"",image:{src:e,...x}}}return{text:"",image:void 0}}function ua(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 n=Number(t);return Number.isFinite(n)&&0!==n?n/65536:void 0}async function da(e,t,n,r){const o=_o(e,"imagedata");if(!o)return;const i=function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&("id"===n.localName||"r:id"===n.name))return n.value}}(o),a=i?n.get(i):void 0;if(!a)return;const s=_o(e,"shape"),l=function(e){const t={};if(!e)return t;for(const n of e.split(";")){const e=n.indexOf(":");if(e<0)continue;const r=n.slice(0,e).trim().toLowerCase(),o=n.slice(e+1).trim();if("width"===r){const e=ra(o);null!==e&&(t.width=e)}else if("height"===r){const e=ra(o);null!==e&&(t.height=e)}}return t}(null==s?void 0:s.getAttribute("style")),c=function(e){const t={left:ua(ko(e,"cropleft")),top:ua(ko(e,"croptop")),right:ua(ko(e,"cropright")),bottom:ua(ko(e,"cropbottom"))};if(void 0!==t.left||void 0!==t.top||void 0!==t.right||void 0!==t.bottom)return t}(o),u=ko(o,"title")??o.getAttribute("o:title"),d=await Oo(t,r,a);return d?{src:d,width:l.width??300,height:l.height??300,...u?{alt:u}:{},...c?{crop:c}:{}}:void 0}async function fa(e,t){const n=_o(e,"wsp");if(!n)return;const r=ia(e),o=(null==r?void 0:r.element)??e,i=_o(o,"extent"),a=ta(null==i?void 0:i.getAttribute("cx"))??300,s=ta(null==i?void 0:i.getAttribute("cy"))??300,l=_o(o,"docPr"),c=l?ko(l,"name"):null,u=l?ko(l,"descr")??ko(l,"title"):null,d="anchor"===(null==r?void 0:r.kind)?la(r.element):void 0,f=_o(n,"txbxContent"),p=f&&t?await t(f):[],h=function(e){var t,n;const r=_o(e,"spPr");if(!r)return;const o={},i=_o(r,"prstGeom"),a=null==i?void 0:i.getAttribute("prst");a&&(o.preset=a);for(let s=0;s<r.childNodes.length;s+=1){const e=r.childNodes[s];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("solidFill"===i.localName){const e=oa(null==(t=_o(i,"srgbClr"))?void 0:t.getAttribute("val"));e&&(o.fill=e)}else if("ln"===i.localName){const e=na(i.getAttribute("w"));void 0!==e&&(o.borderWidthPt=zo(e/vr,2));const t=oa(null==(n=_o(i,"srgbClr"))?void 0:n.getAttribute("val"));t&&(o.borderColor=t)}}return Object.keys(o).length>0?o:void 0}(n),m=function(e){const t=_o(e,"bodyPr");if(!t)return;const n={},r=ta(t.getAttribute("lIns")),o=ta(t.getAttribute("tIns")),i=ta(t.getAttribute("rIns")),a=ta(t.getAttribute("bIns"));void 0!==r&&(n.paddingLeft=r),void 0!==o&&(n.paddingTop=o),void 0!==i&&(n.paddingRight=i),void 0!==a&&(n.paddingBottom=a);const s=t.getAttribute("anchor");s&&(n.anchor=s);const l=t.getAttribute("wrap");l&&(n.wrap=l);const c=t.getAttribute("vert");return"vert"!==c&&"vert270"!==c&&"wordArtVert"!==c||(n.vert=c),_o(t,"spAutoFit")&&(n.autoFit=!0),Object.keys(n).length>0?n:void 0}(n),g=function(e){const t=_o(e,"spPr");if(!t)return;const n=_o(t,"xfrm"),r=na(null==n?void 0:n.getAttribute("rot"));return void 0!==r&&0!==r&&(Math.round(r/yr)%360+360)%360||void 0}(n);return{width:a,height:s,blocks:p,...d?{floating:d}:{},...void 0!==g?{rotation:g}:{},...c?{name:c}:{},...u?{alt:u}:{},...h?{shape:h}:{},...m?{body:m}:{}}}function pa(e){let t;for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if("Choice"!==o.localName)continue;const i=_o(o,"drawing");if(!i)continue;void 0===t&&(t=i);const a=o.getAttribute("Requires")??"";if(/\bwps\b/.test(a))return i}return t}function ha(e){const t=ko(e,"id");if(!t)return;if("bookmarkEnd"===e.localName)return{kind:"end",docxId:t};const n=ko(e,"name")??void 0,r=ko(e,"colFirst"),o=ko(e,"colLast"),i=null!==r?Number.parseInt(r,10):void 0,a=null!==o?Number.parseInt(o,10):void 0;return{kind:"start",docxId:t,...void 0!==n?{name:n}:{},...void 0===i||Number.isNaN(i)?{}:{colFirst:i},...void 0===a||Number.isNaN(a)?{}:{colLast:a}}}function ma(e){const t=ko(e,"id");if(t)return{kind:"commentRangeEnd"===e.localName?"end":"start",docxId:t}}function ga(e){const t=(new or).serializeToString(e);let n=2166136261;for(let r=0;r<t.length;r+=1)n^=t.charCodeAt(r),n=Math.imul(n,16777619);return`revision:${n>>>0}`}function va(e){const t=e.localName;if("ins"!==t&&"del"!==t&&"moveFrom"!==t&&"moveTo"!==t)return;const n=ko(e,"date"),r=n?Date.parse(n):Number.NaN,o="del"===t||"moveFrom"===t;return{id:ko(e,"id")??ga(e),type:o?"delete":"insert",author:ko(e,"author")??"Unknown",date:Number.isFinite(r)?r:0,..."moveFrom"===t?{move:"from"}:"moveTo"===t?{move:"to"}:{}}}function wa(e){const t=/^move(From|To)Range(Start|End)$/.exec(e.localName??"");if(!t)return;const n="From"===t[1]?"from":"to",r="Start"===t[2]?"start":"end",o=ko(e,"date"),i=o?Date.parse(o):Number.NaN,a=ko(e,"colFirst"),s=ko(e,"colLast"),l=null!==a?Number.parseInt(a,10):Number.NaN,c=null!==s?Number.parseInt(s,10):Number.NaN,u=ko(e,"name")??void 0,d=ko(e,"author")??void 0,f=ko(e,"displacedByCustomXml")??void 0;return{move:n,edge:r,id:ko(e,"id")??ga(e),...void 0!==u?{name:u}:{},...void 0!==d?{author:d}:{},...Number.isFinite(i)?{date:i}:{},...Number.isFinite(l)?{columnFirst:l}:{},...Number.isFinite(c)?{columnLast:c}:{},...void 0!==f?{displacedByCustomXml:f}:{}}}async function ba(e,t,n,r,o){const i=[];let a,s,l,c=0;const u=[],d=[],f=e=>{i.push(e),c+=e.length},p=e.childNodes;for(let h=0;h<p.length;h+=1){const e=p[h];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if(i.namespaceURI===po)if("t"===i.localName||"delText"===i.localName)f(i.textContent??"");else if("tab"===i.localName)f("\t");else if("noBreakHyphen"===i.localName)f("‑");else if("softHyphen"===i.localName)f("­");else if("br"===i.localName)f("page"===ko(i,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===i.localName)continue;if("bookmarkStart"===i.localName||"bookmarkEnd"===i.localName){const e=ha(i);e&&u.push({offset:c,marker:e});continue}if("commentRangeStart"===i.localName||"commentRangeEnd"===i.localName){const e=ma(i);e&&d.push({offset:c,marker:e});continue}if("proofErr"===i.localName||"commentReference"===i.localName||"permStart"===i.localName||"permEnd"===i.localName)continue;if("cr"===i.localName)f("\n");else if("drawing"===i.localName){const e=await ca(i,t,n,r);if(e.image)f(e.text),a=e.image;else{const e=await fa(i,o);e&&(f(""),s=e)}}else if("pict"===i.localName){const e=await da(i,t,n,r);e&&(f(""),a=e)}else if("sym"===i.localName){const e=ko(i,"font")??"",t=ko(i,"char")??"",n=parseInt(t,16);f(Number.isFinite(n)&&n>0?String.fromCodePoint(n):"?"),l={font:e,char:t}}}else if("AlternateContent"===i.localName){const e=pa(i);if(e){const t=await fa(e,o);t&&(f(""),s=t)}}}return{text:i.join(""),image:a,...s?{textBox:s}:{},...u.length>0?{innerBookmarks:u}:{},...d.length>0?{innerComments:d}:{},...l?{sym:l}:{}}}async function ya(e,t,n,r,o,i,a,s){var l,c,u;const d=[],f=[],p=(e,t)=>{const n=ko(e,"fldCharType"),r=ko(e,"fldLock"),o=ko(e,"dirty"),i="true"===r||"1"===r,a="true"===o||"1"===o;if("begin"===n)d.push({text:"",fieldChar:{kind:"begin",...i?{fieldLock:!0}:{},...a?{dirty:!0}:{}},...t?{styles:t}:{}}),f.push({beginIndex:d.length-1,instruction:"",...t?{beginStyles:t}:{}});else if("separate"===n)d.push({text:"",fieldChar:{kind:"separate"},...t?{styles:t}:{}});else if("end"===n){d.push({text:"",fieldChar:{kind:"end"},...t?{styles:t}:{}});const e=f.pop();e&&(e=>{var t;const n=/\bNUMPAGES\b/i.test(e.instruction)?"NUMPAGES":/\bPAGE\b/i.test(e.instruction)?"PAGE":null;if(!n)return;const r=d.slice(e.beginIndex);if(r.some(e=>e.bookmark))return;const o=r.filter(e=>!e.fieldChar&&void 0===e.fieldInstruction),i=o.map(e=>e.text).join("")||"1",a=(null==(t=o.find(e=>e.styles))?void 0:t.styles)??e.beginStyles;d.length=e.beginIndex,d.push({text:i,...a?{styles:a}:{},field:{type:n}})})(e)}},h=(e,t)=>{const n=e.textContent??"";d.push({text:"",fieldInstruction:n,...t?{styles:t}:{}});const r=f[f.length-1];r&&(r.instruction+=n)};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===Fi&&("oMath"===g.localName||"oMathPara"===g.localName)){d.push({text:"",math:Wi(g)});continue}if(g.namespaceURI!==po)continue;if("bookmarkStart"===g.localName||"bookmarkEnd"===g.localName){const e=ha(g);if(!e)continue;d.push({text:"",bookmark:e});continue}if("commentRangeStart"===g.localName||"commentRangeEnd"===g.localName){const e=ma(g);if(!e)continue;d.push({text:"",comment:e});continue}const v=wa(g);if(v){d.push({text:"",revisionRangeMarker:v});continue}const w=va(g);if(w){const e=await ya(g,t,n,r,o,i,a,s);for(const t of e)d.push({...t,revision:t.revision??w});continue}if("sdt"===g.localName){const e=No(g,po,"sdtContent");if(!e)continue;const l=No(g,po,"sdtPr"),c=No(g,po,"sdtEndPr"),u={groupId:ar("sdt"),sdtPr:Xi(l),...c?{sdtEndPrXml:(new or).serializeToString(c)}:{}},f=await ya(e,t,n,r,o,i,a,s);for(const t of f)d.push({...t,sdtWrappers:[u,...t.sdtWrappers??[]]});continue}if("r"===g.localName){const e=gi(No(g,po,"rPr"),i);if(bo(g,po,"fldChar").length>0||bo(g,po,"instrText").length>0||bo(g,po,"delInstrText").length>0){for(let t=0;t<g.childNodes.length;t+=1){const n=g.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;r.namespaceURI===po&&("fldChar"===r.localName?p(r,e):"instrText"!==r.localName&&"delInstrText"!==r.localName||h(r,e))}continue}const t=No(g,po,"footnoteReference");if(t){const n=ko(t,"id");if(!n)continue;const r=ko(t,"customMarkFollows");let o=e;(l=o??(o={})).styleId??(l.styleId="footnoteReference"),void 0===o.superscript&&(o.superscript=!0),d.push({text:"?",styles:o,footnoteReference:{docxId:n,...r?{customMark:r}:{}}});continue}const u=No(g,po,"endnoteReference");if(u){const t=ko(u,"id");if(!t)continue;const n=ko(u,"customMarkFollows");let r=e;(c=r??(r={})).styleId??(c.styleId="endnoteReference"),void 0===r.superscript&&(r.superscript=!0),d.push({text:"?",styles:r,endnoteReference:{docxId:t,...n?{customMark:n}:{}}});continue}const{text:f,image:m,textBox:v,innerBookmarks:w,innerComments:b,sym:y}=await ba(g,n,r,o,s);let x=e;y&&!(null==x?void 0:x.fontFamily)&&((x??(x={})).fontFamily=y.font),a&&((x??(x={})).link=a);const N=[...(w??[]).map(e=>({offset:e.offset,run:{text:"",bookmark:e.marker}})),...(b??[]).map(e=>({offset:e.offset,run:{text:"",comment:e.marker}}))];if(N.length>0&&!m&&!v){N.sort((e,t)=>e.offset-t.offset);let e=0;for(const n of N){const t=f.slice(e,n.offset);t.length>0&&d.push({text:t,...x?{styles:x}:{}}),d.push(n.run),e=n.offset}const t=f.slice(e);t.length>0&&d.push({text:t,...x?{styles:x}:{}});continue}if(0===f.length&&!m&&!v)continue;if(d.push({text:f,...m?{image:m}:{},...v?{textBox:v}:{},...y?{sym:y}:{},...x?{styles:x}:{}}),w)for(const n of w)d.push({text:"",bookmark:n.marker});continue}if("fldSimple"===g.localName){const e=g.getAttribute("w:instr")??g.getAttributeNS(po,"instr")??g.getAttribute("instr")??"",l=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,c=await ya(g,t,n,r,o,i,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=r.get(g.getAttribute("r:id")??g.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;if(!e){const t=ko(g,"anchor");t&&(e=`#${t}`)}d.push(...await ya(g,t,n,r,o,i,e,s))}}return d}const xa="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Na=/<w:rPr(?:\s|\/|>)/,Sa=/<w:pPr(?:\s|\/|>)/;function Ea(e){if(Array.isArray(e))return e.map(Ea);if(!e||"object"!=typeof e)return e;const t=e,n=function(e){return"string"==typeof e.kind||"string"==typeof e.type||Array.isArray(e.runs)||Array.isArray(e.rows)||Array.isArray(e.cells)||Array.isArray(e.blocks)}(t),r={};for(const[o,i]of Object.entries(t).sort(([e],[t])=>e.localeCompare(t)))void 0===i||"id"===o&&n||"ooxmlSource"===o||o.startsWith("__")||(r[o]=Ea(i));return r}function ka(e){return JSON.stringify(Ea(e))??"undefined"}function _a(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ta(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===xa&&o.localName===t&&n.push(o)}return n}function Ia(e,t){return Ta(e,t)[0]}function Ca(e){return e?(new or).serializeToString(e):void 0}function Aa(e){return ka(e)}function Ra(e){return ka({...e,text:void 0})}function $a(e,t){e.ooxmlSource={xml:t,semanticSignature:Aa(e),structureSignature:Ra(e)}}function Da(e){return e.ooxmlSource}function Pa(e){return ka(e)}function Oa(e){return ka({style:e.style,list:e.list})}function Ma(e){return e.ooxmlSource}function La(e){return ka(e)}function Fa(e){return ka({style:e.style})}function Ba(e){return ka({gridCols:e.gridCols,gridRevision:e.gridRevision})}function Ua(e){return ka({isHeader:e.isHeader,style:e.style,conditionalStyle:e.conditionalStyle})}function za(e){return ka({propertyExceptions:e.propertyExceptions,tblPrExChangeXml:e.tblPrExChangeXml})}function Ha(e){return ka({colSpan:e.colSpan,rowSpan:e.rowSpan,vMerge:e.vMerge,style:e.style,conditionalStyle:e.conditionalStyle,mergeRevisionState:e.mergeRevisionState})}function ja(e){return e.ooxmlSource}function qa(e,t){const n=Ca(Ia(t,"tblPr")),r=Ca(Ia(t,"tblGrid")),o=Ta(t,"tr");return o.length===e.rows.length&&o.forEach((t,n)=>{const r=e.rows[n];!function(e,t){const n={};t.rowPropertiesXml&&(n.rowProperties={xml:t.rowPropertiesXml,semanticSignature:Ua(e)}),t.propertyExceptionsXml&&(n.propertyExceptions={xml:t.propertyExceptionsXml,semanticSignature:za(e)}),(n.rowProperties||n.propertyExceptions)&&(e.ooxmlSource=n)}(r,{rowPropertiesXml:Ca(Ia(t,"trPr")),propertyExceptionsXml:Ca(Ia(t,"tblPrEx"))});const o=Ta(t,"tc");o.length===r.cells.length&&o.forEach((e,t)=>{const n=Ca(Ia(e,"tcPr"));n&&function(e,t){e.ooxmlSource={cellProperties:{xml:t,semanticSignature:Ha(e)}}}(r.cells[t],n)})}),{tablePropertiesXml:n,tableGridXml:r}}function Wa(e){return e.ooxmlSource}function Ga(e,t,n){const r=new or,o=function(e,t){const n=t.serializeToString(e.cloneNode(!1)),r=n.indexOf(">");if(r<0)return;const o=n.slice(0,r+1),i=e.tagName;return o.slice(`<${i}`.length,o.endsWith("/>")?-2:-1).trim()||void 0}(e,r),i=t?No(t,po,"sectPr"):null,a=i?void 0:r.serializeToString(e),s=t&&!i?r.serializeToString(t):void 0,l=function(e,t){const n=[],r=e=>{for(let o=0;o<e.childNodes.length;o+=1){const i=e.childNodes[o];if((null==i?void 0:i.nodeType)!==i.ELEMENT_NODE)continue;const a=i;a.namespaceURI!==po||"r"!==a.localName?(a.namespaceURI!==po||"pPr"!==a.localName&&"p"!==a.localName&&"tbl"!==a.localName&&"txbxContent"!==a.localName)&&r(a):n.push(t.serializeToString(a))}};return r(e),n}(e,r),c=l.length===n.length?l:void 0;if(a||o||s||c)return{...a?{xml:a}:{},...o?{attributes:o}:{},...s?{paragraphPropertiesXml:s}:{},...c?{runXml:c}:{}}}function Va(e){var t;const n={id:ar("run"),text:e.text};let r;e.styles&&(n.styles={...e.styles}),e.revision&&(n.revision={...e.revision}),e.revisionRangeMarker&&(n.revisionRangeMarker={...e.revisionRangeMarker}),(null==(t=e.sdtWrappers)?void 0:t.length)&&(n.sdtWrappers=[...e.sdtWrappers]),r=e.fieldChar?{...n,kind:"fieldChar",fieldChar:{...e.fieldChar}}:void 0!==e.fieldInstruction?{...n,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}:e.field?{...n,kind:"field",field:{...e.field}}:e.textBox?{...n,kind:"textBox",textBox:e.textBox}:e.image?{...n,kind:"image",image:e.image}:e.sym?{...n,kind:"sym",sym:{...e.sym}}:e.math?{...n,text:"",kind:"math",math:e.math}:{...n,kind:"text"};const o=r;return e.footnoteReference&&(o.__importedFootnoteRef={...e.footnoteReference}),e.endnoteReference&&(o.__importedEndnoteRef={...e.endnoteReference}),e.bookmark&&(o.__importedBookmark={...e.bookmark}),e.comment&&(o.__importedComment={...e.comment}),o}function Xa(e,t,n,r,o){var i,a;const s=e.length>0?e.map(Va):[{id:ar("run"),text:"",kind:"text",...r?{styles:{...r}}:{}}],l={id:ar("paragraph"),type:"paragraph",runs:s};l.style=t?{...t}:void 0;for(const c of l.runs)c.styles=mi(c.styles,null==(i=l.style)?void 0:i.styleId);if(l.list=n?{...n}:void 0,(null==(a=null==o?void 0:o.runXml)?void 0:a.length)===l.runs.length)for(let c=0;c<l.runs.length;c+=1)$a(l.runs[c],o.runXml[c]);return o&&function(e,t){const n={};t.xml&&(n.xml=t.xml,n.semanticSignature=Pa(e)),t.attributes&&(n.attributes=t.attributes),t.paragraphPropertiesXml&&(n.paragraphProperties={xml:t.paragraphPropertiesXml,semanticSignature:Oa(e)}),(n.xml||n.attributes||n.paragraphProperties)&&(e.ooxmlSource=n)}(l,o),l}function Za(e){return e.some(e=>e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.revisionRangeMarker||e.text.replace(/\s/g,"").length>0)}async function Ya(e,t,n,r,o,i,a,s){const l=No(e,po,"pPr"),c=await ya(e,t,n,r,o,i,void 0,a),u=Ri($i(l,i.colors)),d=gi(No(l,po,"rPr"),i),f=function(e,t){if(!e)return;const n=No(e,po,"numPr");if(!n)return;const r=ko(No(n,po,"numId"),"val");if(!r)return;const o=ko(No(n,po,"ilvl"),"val")??"0",i=Number.parseInt(o,10),a=Number.isFinite(i)?i:0,s=ai(t,r,a),l=[];for(let m=0;m<=a;m+=1)l[m]=ai(t,r,m).format??"decimal";const c=`${r}:${a}`,u=!t.seenInstances.has(c);t.seenInstances.add(c);const d=u?t.numStartOverrides.get(c)??s.startAt:void 0,f={kind:s.kind??"ordered",level:a,instanceId:r,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}:{}},p=oi(r,1),h=oi(t.numToAbstractId.get(r),0);return(void 0!==p||void 0!==h||s.rawFormat||void 0!==s.restartAfterLevel||s.paragraphStyleId)&&function(e,t){e.ooxmlNumbering={...t,importedFormat:e.format,importedKind:e.kind}}(f,{...void 0!==p?{sourceNumId:p}:{},...void 0!==h?{sourceAbstractNumId:h}:{},...s.rawFormat?{format:s.rawFormat}:{},...void 0!==s.restartAfterLevel?{restartAfterLevel:s.restartAfterLevel}:{},...s.paragraphStyleId?{paragraphStyleId:s.paragraphStyleId}:{}}),{list:f,indent:s.indent}}(l,t),p=null==f?void 0:f.list;let h=u;if(null==f?void 0:f.indent){const{left:e,hanging:t}=f.indent,n=u??{};h={...n,...void 0===n.indentLeft&&void 0!==e?{indentLeft:e}:{},...void 0===n.indentHanging&&void 0!==t?{indentHanging:t}:{}}}const m=function(e){if(!e)return;const t=Vr(e,kr),n=Vr(void 0,kr);return ci({styleId:e.styleId,align:t.align!==n.align?t.align:void 0,spacingBefore:t.spacingBefore!==n.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==n.spacingAfter?t.spacingAfter:void 0,contextualSpacing:void 0!==e.contextualSpacing||t.contextualSpacing!==n.contextualSpacing?t.contextualSpacing:void 0,lineHeight:t.lineHeight!==n.lineHeight?t.lineHeight:void 0,lineRule:t.lineRule??void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:void 0!==e.snapToGrid||t.snapToGrid!==n.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==n.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==n.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==n.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==n.indentHanging?t.indentHanging:void 0,mirrorIndents:void 0!==e.mirrorIndents||t.mirrorIndents!==n.mirrorIndents?t.mirrorIndents:void 0,pageBreakBefore:void 0!==e.pageBreakBefore||t.pageBreakBefore!==n.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:void 0!==e.keepWithNext||t.keepWithNext!==n.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:void 0!==e.keepLinesTogether||t.keepLinesTogether!==n.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:void 0!==e.widowControl||t.widowControl!==n.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,suppressLineNumbers:void 0!==e.suppressLineNumbers||t.suppressLineNumbers!==n.suppressLineNumbers?t.suppressLineNumbers:void 0,suppressAutoHyphens:void 0!==e.suppressAutoHyphens||t.suppressAutoHyphens!==n.suppressAutoHyphens?t.suppressAutoHyphens:void 0,bidi:void 0!==e.bidi||t.bidi!==n.bidi?t.bidi:void 0,kinsoku:void 0!==e.kinsoku||t.kinsoku!==n.kinsoku?t.kinsoku:void 0,wordWrap:void 0!==e.wordWrap||t.wordWrap!==n.wordWrap?t.wordWrap:void 0,overflowPunct:void 0!==e.overflowPunct||t.overflowPunct!==n.overflowPunct?t.overflowPunct:void 0,topLinePunct:void 0!==e.topLinePunct||t.topLinePunct!==n.topLinePunct?t.topLinePunct:void 0,autoSpaceDE:void 0!==e.autoSpaceDE||t.autoSpaceDE!==n.autoSpaceDE?t.autoSpaceDE:void 0,autoSpaceDN:void 0!==e.autoSpaceDN||t.autoSpaceDN!==n.autoSpaceDN?t.autoSpaceDN:void 0,adjustRightInd:void 0!==e.adjustRightInd||t.adjustRightInd!==n.adjustRightInd?t.adjustRightInd:void 0,textAlignment:e.textAlignment??void 0,textboxTightWrap:e.textboxTightWrap??void 0,divId:e.divId??void 0,conditionalStyle:e.conditionalStyle??void 0,borderBetween:e.borderBetween??void 0,borderBar:e.borderBar??void 0,framePrXml:e.framePrXml??void 0})}(h),g=function(e,t){var n;const r=No(e,po,"framePr");if(!r)return null;const o=ko(r,"dropCap");if(!o||"none"===o)return null;const i=t.map(e=>e.text).join("");if(0===i.length)return null;const a=Number(ko(r,"lines"));return{text:i,lines:Number.isFinite(a)&&a>0?a:3,type:"margin"===o?"margin":"drop",style:null==(n=t[0])?void 0:n.styles}}(l,c);if(g)return{paragraphs:[],pageBreakAfter:!1,dropCapFrame:g};const{segments:v,hasPageBreak:w}=function(e){const t=[[]];let n=!1;const r=(e,n)=>{(0!==n.length||e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.revisionRangeMarker)&&t[t.length-1].push({...e,text:n})};for(const o of e){if(!o.text.includes("\f")){r(o,o.text);continue}const e=o.text.split("\f");e.forEach((i,a)=>{r(o,i),a<e.length-1&&(n=!0,t.push([]))})}return{segments:t,hasPageBreak:n}}(c);if(!w){return{paragraphs:[Xa(c,m,p,d,Ga(e,l,c))],pageBreakAfter:!1}}const b=[];let y=!1;for(let x=0;x<v.length;x+=1){const e=v[x];if(x>0&&(y=!0),!Za(e))continue;const t=y?{...m??{},pageBreakBefore:!0}:m;b.push(Xa(e,t,p,d)),y=!1}return{paragraphs:b,pageBreakAfter:y}}async function Qa(e,t,n,r,o,i,a,s){return(await Ya(e,t,n,r,o,i,a)).paragraphs[0]??dr([{text:""}])}function Ka(e,t,n,r){for(const o of fo(e)){if(o.namespaceURI!==po)continue;if(o.localName===t){r.push({element:o,...n.length>0?{sdtWrappers:n}:{}});continue}if("sdt"!==o.localName)continue;const e=No(o,po,"sdtContent");if(!e)continue;const i=No(o,po,"sdtPr"),a=No(o,po,"sdtEndPr"),s={groupId:ar("sdt"),sdtPr:Xi(i),...a?{sdtEndPrXml:(new or).serializeToString(a)}:{}};Ka(e,t,[...n,s],r)}}function Ja(e,t){const n=[];return Ka(e,t,[],n),n}function es(e,t){if(!t.every(e=>"paragraph"===e.type))return;const n=bo(e,po,"p");n.length===t.length&&function(e,t){var n,r;const o=e=>e.style??(e.style={}),i=e.length-1;for(let a=0;a<e.length;a+=1){const n=t[a];n&&(0===a&&n.before&&(o(e[a]).spacingBefore=0),a===i&&n.after&&(o(e[a]).spacingAfter=0))}for(let a=0;a<i;a+=1){if(!(null==(n=t[a])?void 0:n.after)||!(null==(r=t[a+1])?void 0:r.before))continue;const i=o(e[a]),s=o(e[a+1]);(i.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:i.spacingAfter=0}}(t,n.map(e=>function(e){const t=No(e,po,"spacing");return{before:Io(ko(t,"beforeAutospacing")),after:Io(ko(t,"afterAutospacing"))}}(No(e,po,"pPr"))))}async function ts(e,t,n,r,o,i,a,s){var l,c;const u=[],d=No(e,po,"tblGrid");if(d)for(const y of bo(d,po,"gridCol")){const e=jo(ko(y,"w"));void 0!==e&&u.push(e)}const f=No(d,po,"tblGridChange"),p=No(e,po,"tblPr"),h=ko(No(p,po,"tblStyle"),"val"),m=Ei(p,h??void 0),g=function(e){const t=No(e,po,"tblLook"),n=e=>{const n=ko(t,e);return null===n||""===n?void 0:Io(n)},r=ko(t,"val"),o=r?Number.parseInt(r,16):Number.NaN,i=e=>Number.isFinite(o)?0!==(o&e):void 0;return{firstRow:n("firstRow")??i(32)??!0,lastRow:n("lastRow")??i(64)??!1,firstCol:n("firstColumn")??i(128)??!0,lastCol:n("lastColumn")??i(256)??!1,noHBand:n("noHBand")??i(512)??!1,noVBand:n("noVBand")??i(1024)??!1}}(p),v=Ja(e,"tr"),w=[];for(let y=0;y<v.length;y+=1){const e=v[y],t=e.element,n=No(t,po,"trPr"),r=xi(n),o=Ja(t,"tc"),s=[];for(let c=0;c<o.length;c+=1){const e=o[c],t=e.element,n=No(t,po,"tcPr"),r=await a(t);es(t,r);const u=_i(n);if("continue"===Ii(n)&&s.length>0){const e=s[s.length-1];e.colSpan=(e.colSpan??1)+u;continue}const d=Ti(n),f=Ci(n,0,i.colors),p=fr(r.length>0?r:[dr([{text:""}])],u,"restart"===d?{rowSpan:1,vMerge:d}:d?{vMerge:d}:void 0);f&&(p.style=f),p.conditionalStyle=xi(n),(null==(l=e.sdtWrappers)?void 0:l.length)&&(p.sdtWrappers=[...e.sdtWrappers]);const h=To(t);h&&(p.extAttributes=h),"continue"===d&&(p.blocks=[]),s.push(p)}const u=pr(s,Ai(t)?{isHeader:!0}:void 0),d=ki(n);d&&(u.style=d),u.conditionalStyle=r,(null==(c=e.sdtWrappers)?void 0:c.length)&&(u.sdtWrappers=[...e.sdtWrappers]);const f=To(t);f&&(u.extAttributes=f);const p=No(t,po,"tblPrEx");if(p){const e=Ei(p);e&&(u.propertyExceptions=e);const t=No(p,po,"tblPrExChange");t&&(u.tblPrExChangeXml=(new or).serializeToString(t))}w.push(u)}for(let y=0;y<w.length;y+=1){const e=w[y];for(let t=0;t<e.cells.length;t+=1){const n=e.cells[t];if("restart"!==n.vMerge)continue;let r=1;for(let e=y+1;e<w.length;e+=1){const n=w[e].cells[t];if(!n||"continue"!==n.vMerge)break;r+=1}r>1&&(n.rowSpan=r)}}const b=function(e,t){return{id:ar("table"),type:"table",rows:e,gridCols:t}}(w,u.length>0?u:void 0);if(m&&(b.style=m),b.style?b.style.tblLook=g:h&&(b.style={tblLook:g}),f){const e=No(f,po,"tblGrid"),t=e?bo(e,po,"gridCol").map(e=>jo(ko(e,"w"))).filter(e=>void 0!==e):[],n=ko(f,"date"),r=n?Date.parse(n):Number.NaN;b.gridRevision={id:ko(f,"id")??"revision:grid",author:ko(f,"author")??"Unknown",date:Number.isFinite(r)?r:0,type:"grid",previous:t}}return function(e,t){let n="string"==typeof t?{xml:t}:t;if("string"==typeof t){const r=(new ir).parseFromString(t,"application/xml").documentElement;(null==r?void 0:r.namespaceURI)===xa&&"tbl"===r.localName&&(n={...n,...qa(e,r)})}const r={xml:n.xml,semanticSignature:La(e)};n.tablePropertiesXml&&(r.tableProperties={xml:n.tablePropertiesXml,semanticSignature:Fa(e)}),n.tableGridXml&&(r.tableGrid={xml:n.tableGridXml,semanticSignature:Ba(e)}),e.ooxmlSource=r}(b,(new or).serializeToString(e)),b}async function ns(e,t,n,r,o,i,a){if(e.namespaceURI!==po)return[];if("p"===e.localName){return(await Ya(e,t,n,r,o,i,a)).paragraphs}return"tbl"===e.localName?[await ts(e,0,0,0,0,i,a)]:"sdt"===e.localName?rs(e,t,n,r,o,i,a):[]}async function rs(e,t,n,r,o,i,a){const s=No(e,po,"sdtPr"),l=No(e,po,"sdtEndPr"),c={groupId:ar("sdt"),sdtPr:Xi(s),...l?{sdtEndPrXml:(new or).serializeToString(l)}:{}},u=No(e,po,"sdtContent"),d=[];if(u)for(let f=0;f<u.childNodes.length;f+=1){const e=u.childNodes[f];(null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&d.push(...await ns(e,t,n,r,o,i,a))}for(const f of d)f.sdtWrappers=[c,...f.sdtWrappers??[]];return d}function os(e,t,n,r,o){return i=>async function(e,t,n,r,o,i){const a=os(t,n,r,o,i),s=[];for(let l=0;l<e.childNodes.length;l+=1){const c=e.childNodes[l];(null==c?void 0:c.nodeType)===c.ELEMENT_NODE&&s.push(...await ns(c,t,n,r,o,i,a))}return s}(i,e,t,n,r,o)}async function is(e,t,n,r,o,i,a){if(!e)return[];const s=(new ir).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=os(t,n,r,o,i),c=[];for(let u=0;u<s.childNodes.length;u+=1){const e=s.childNodes[u];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const a=e;"p"===a.localName&&a.namespaceURI===po?c.push(await Qa(a,t,n,r,o,i,l)):"tbl"===a.localName&&a.namespaceURI===po&&c.push(await ts(a,0,0,0,0,i,l))}return c}const as=new Set(["separator","continuationSeparator","continuationNotice"]);async function ss(e,t,n,r,o,i,a,s){const l={byDocxId:new Map,notes:{items:{}}};if(!t)return l;const c=(new ir).parseFromString(t,"application/xml").documentElement;if(!c)return l;const u={},d=new Map;let f,p;const h=bo(c,po,e);let m=0;const g=os(n,r,o,i,a);for(const v of h){const t=ko(v,"id")??"",s=ko(v,"type")??"",l=[];for(let e=0;e<v.childNodes.length;e+=1){const t=v.childNodes[e];if((null==t?void 0:t.nodeType)!==t.ELEMENT_NODE)continue;const s=t;s.namespaceURI===po&&("p"===s.localName?l.push(await Qa(s,n,r,o,i,a,g)):"tbl"===s.localName&&l.push(await ts(s,0,0,0,0,a,g)))}if(as.has(s)){"separator"===s?f=l:"continuationSeparator"===s&&(p=l);continue}if(("-1"===t||"0"===t)&&0===l.length)continue;m+=1;const c=`${e}:imported:${m}`,h=Number.parseInt(t,10),w={id:c,blocks:l.length>0?l:[],docxId:Number.isFinite(h)?h:void 0};u[c]=w,t&&d.set(t,w)}return{byDocxId:d,notes:{items:u,separator:f,continuationSeparator:p},separator:f,continuationSeparator:p}}function*ls(e,t){const n=Zr(e);for(const r of n){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const n of e)for(const e of n)for(const n of Qr(e))for(const e of n.runs)e.kind===t&&(yield{paragraph:n,run:e})}}function cs(e,t,n){if(!e)return{blocks:e,changed:!1};let r=!1;const o=e.map(e=>{switch(e.type){case"paragraph":{const o=function(e,t,n){let r=!1;const o=e.runs.map(e=>{const o=t.getRef(e);if(!o)return e;const i=n.get(o.id);return void 0===i||e.text===i?e:(r=!0,{...e,text:i})});return r?{...e,runs:o}:e}(e,t,n);return o!==e&&(r=!0),o}case"table":{let o=!1;const i=e.rows.map(e=>{let r=!1;const i=e.cells.map(e=>{const o=cs(e.blocks,t,n);return o.changed&&o.blocks?(r=!0,{...e,blocks:o.blocks}):e});return r?(o=!0,{...e,cells:i}):e});return o?(r=!0,{...e,rows:i}):e}default:return _r(e,"block")}});return{blocks:r?o:e,changed:r}}function us(e,t,n){var r,o;const i=(null==(r=t.settings)?void 0:r.numberFormat)??"decimal",a=(null==(o=t.settings)?void 0:o.startAt)??1,s=new Set,l=new Map;let c=a-1;for(const{run:h}of ls(e,n.runKind)){const e=n.getRef(h);e&&(s.add(e.id),e.customMark?l.set(e.id,e.customMark):l.has(e.id)||(c+=1,l.set(e.id,n.formatMarker(c,i))))}let u=!1;const d=Zr(e).map(e=>{const t=cs(e.blocks,n,l),r=cs(e.header,n,l),o=cs(e.firstPageHeader,n,l),i=cs(e.evenPageHeader,n,l),a=cs(e.footer,n,l),s=cs(e.firstPageFooter,n,l),c=cs(e.evenPageFooter,n,l);return t.changed||r.changed||o.changed||i.changed||a.changed||s.changed||c.changed?(u=!0,{...e,blocks:t.blocks??e.blocks,header:r.blocks,firstPageHeader:o.blocks,evenPageHeader:i.blocks,footer:a.blocks,firstPageFooter:s.blocks,evenPageFooter:c.blocks}):e}),f={};let p=!1;for(const[h,m]of Object.entries(t.items))s.has(h)||void 0!==m.docxId?f[h]=m:p=!0;return{sections:d,sectionsChanged:u,nextItems:f,itemsChanged:p}}const ds=[[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 fs(e){if(e<=0)return String(e);let t=e,n="";for(const[r,o]of ds)for(;t>=r;)n+=o,t-=r;return n}function ps(e){if(e<=0)return String(e);let t=e,n="";for(;t>0;){n="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+n,t=Math.floor((t-1)/26)}return n}const hs=["*","†","‡","§","¶","#"];function ms(e,t="decimal"){switch(t){case"lowerRoman":return fs(e);case"upperRoman":return fs(e).toUpperCase();case"lowerLetter":return ps(e);case"upperLetter":return ps(e).toUpperCase();case"symbol":{const t=(e-1)%hs.length,n=Math.floor((e-1)/hs.length)+1;return hs[t].repeat(n)}default:return String(e)}}const gs={runKind:"footnoteReference",getRef:e=>{const t=Tr(e);return t?{id:t.footnoteId,customMark:t.customMark}:void 0},formatMarker:ms};const vs={runKind:"endnoteReference",getRef:e=>{const t=Ir(e);return t?{id:t.endnoteId,customMark:t.customMark}:void 0},formatMarker:ms};const ws=new Set(["_GoBack"]);function bs(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedBookmark;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)bs(r,t,n)}function ys(e){var t;const n=[],r={value:0},o=e=>{null==e||e.forEach(e=>bs(e,n,r))};for(const u of e)o(u.blocks),o(u.header),o(u.firstPageHeader),o(u.evenPageHeader),o(u.footer),o(u.firstPageFooter),o(u.evenPageFooter);if(0===n.length)return;const i=new Map,a=new Map;for(const u of n){const e="start"===u.marker.kind?i:a,t=e.get(u.marker.docxId);t?t.push(u):e.set(u.marker.docxId,[u])}const s={},l=[],c=n.filter(e=>"start"===e.marker.kind);for(const u of c){const{marker:e,anchor:n}=u,r=e.name;if(!r||ws.has(r))continue;const o=Number.parseInt(e.docxId,10),i=null==(t=a.get(e.docxId))?void 0:t.shift(),c=sr(),d={id:c,name:r,start:n};r.startsWith("_")&&(d.hidden=!0),Number.isNaN(o)||(d.docxIdHint=o),void 0!==e.colFirst&&(d.colFirst=e.colFirst),void 0!==e.colLast&&(d.colLast=e.colLast),i&&(d.end=i.anchor),s[c]=d,l.push(c)}return 0!==l.length?{items:s,order:l}:void 0}function xs(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedComment;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)xs(r,t,n)}function Ns(e){const t=[],n={value:0},r=e=>{null==e||e.forEach(e=>xs(e,t,n))};for(const i of e)r(i.blocks),r(i.header),r(i.firstPageHeader),r(i.evenPageHeader),r(i.footer),r(i.firstPageFooter),r(i.evenPageFooter);const o=new Map;for(const{marker:i,anchor:a}of t){const e=o.get(i.docxId)??{};"start"===i.kind?e.start=a:e.end=a,o.set(i.docxId,e)}return o}const Ss="http://schemas.microsoft.com/office/word/2012/wordml";function Es(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI===po){if("t"===o.localName){t+=o.textContent??"";continue}if("tab"===o.localName){t+="\t";continue}if("br"===o.localName||"cr"===o.localName){t+="\n";continue}}t+=Es(o)}return t}function ks(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function _s(e,t){const n=new Map;if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;const o=function(e){const t=new Map;if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of bo(n,Ss,"commentEx")){const e=r.getAttributeNS(Ss,"paraId");if(!e)continue;const n=r.getAttributeNS(Ss,"done");t.set(e,"1"===n||"true"===n)}return t}(t);for(const i of bo(r,po,"comment")){const e=ko(i,"id");if(null===e)continue;const t=ko(i,"author")??"",r=ko(i,"initials")??void 0,a=ks(ko(i,"date")),s=ks(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du","dateUtc")),l=bo(i,po,"p"),c=l.map(e=>Es(e)).join("\n").trim(),u=l.length>0?ko(l[0],"paraId")??void 0:void 0,d=void 0!==u?o.get(u):void 0;n.set(e,{author:t,...r?{initials:r}:{},...void 0!==a?{date:a}:{},...void 0!==s?{dateUtc:s}:{},text:c,...d?{resolved:d}:{},...u?{paraId:u}:{}})}return n}async function Ts(e,t={}){var n,r,i,a,s,l,c,u,d,f,p,h,m,g,v;null==(n=t.onProgress)||n.call(t,"opening-docx");const w=await o.loadAsync(e),b=await(null==(r=w.file("word/document.xml"))?void 0:r.async("string"));if(!b)throw new Error("Missing word/document.xml");const y=Mo(await(null==(i=w.file("word/_rels/document.xml.rels"))?void 0:i.async("string"))),x=function(e){const t={abstractLevels:new Map,numOverrideLevels:new Map,numStartOverrides:new Map,numToAbstractId:new Map,seenInstances:new Set};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of Array.from(n.getElementsByTagNameNS(po,"abstractNum"))){const e=ko(r,"abstractNumId");if(e)for(const n of bo(r,po,"lvl")){const r=ko(n,"ilvl")??"0";t.abstractLevels.set(`${e}:${r}`,ii(n))}}for(const r of Array.from(n.getElementsByTagNameNS(po,"num"))){const e=ko(r,"numId"),n=ko(No(r,po,"abstractNumId"),"val");if(e&&n){t.numToAbstractId.set(e,n);for(const n of bo(r,po,"lvlOverride")){const r=ko(n,"ilvl")??"0",o=No(n,po,"lvl");o&&t.numOverrideLevels.set(`${e}:${r}`,ii(o));const i=ri(No(n,po,"startOverride"));void 0!==i&&t.numStartOverrides.set(`${e}:${r}`,i)}}}return t}(await(null==(a=w.file("word/numbering.xml"))?void 0:a.async("string"))??null),N=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml"),r=jo(ko(No(n.documentElement,po,"defaultTabStop"),"val"));void 0!==r&&(t.defaultTabStop=r);const o=No(n.documentElement,po,"autoHyphenation");if(o){const e=ko(o,"val");t.autoHyphenation="0"!==e&&"false"!==e}const i=No(n.documentElement,po,"doNotHyphenateCaps");if(i){const e=ko(i,"val");t.doNotHyphenateCaps="0"!==e&&"false"!==e}const a=Number.parseInt(ko(No(n.documentElement,po,"consecutiveHyphenLimit"),"val")??"",10);Number.isFinite(a)&&a>=0&&(t.consecutiveHyphenLimit=a);const s=jo(ko(No(n.documentElement,po,"hyphenationZone"),"val"));void 0!==s&&(t.hyphenationZone=s),t.footnoteSettings=Jo(No(n.documentElement,po,"footnotePr")),t.endnoteSettings=Jo(No(n.documentElement,po,"endnotePr"));const l=No(n.documentElement,po,"compat");if(l){const e=No(l,po,"adjustLineHeightInTable");if(e){const n=ko(e,"val");t.adjustLineHeightInTable="0"!==n&&"false"!==n}const n=No(l,po,"allowSpaceOfSameStyleInTable");if(n){const e=ko(n,"val");t.allowSpaceOfSameStyleInTable="0"!==e&&"false"!==e}}return t}(await(null==(s=w.file("word/settings.xml"))?void 0:s.async("string"))??null),S=await(null==(l=w.file("word/styles.xml"))?void 0:l.async("string"))??null,E=function(e){if(!e)return;const t=(new ir).parseFromString(e,"application/xml").getElementsByTagNameNS(po,"fonts")[0];if(!t)return;const n=[];for(const r of bo(t,po,"font")){const e=ko(r,"name");if(!e)continue;const t={name:e},o=ko(No(r,po,"altName"),"val");o&&(t.altName=o);const i=ko(No(r,po,"family"),"val");i&&(t.family=i);const a=ko(No(r,po,"pitch"),"val");a&&(t.pitch=a);const s=ko(No(r,po,"charset"),"val");s&&(t.charset=s);const l=ko(No(r,po,"panose1"),"val");l&&(t.panose1=l);const c=No(r,po,"sig");if(c){const e={};for(let t=0;t<c.attributes.length;t+=1){const n=c.attributes[t];e[n.localName??n.name]=n.value}Object.keys(e).length>0&&(t.sig=e)}n.push(t)}return n.length>0?n:void 0}(await(null==(c=w.file("word/fontTable.xml"))?void 0:c.async("string"))??null),k=await(null==(u=w.file("word/theme/theme1.xml"))?void 0:u.async("string"))??null,_=null!==k,T=Yo(k),I=function(e,t){if(!e)return;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return;const r=No(n,po,"docDefaults"),o=No(No(r,po,"pPrDefault"),po,"pPr"),i=No(No(r,po,"rPrDefault"),po,"rPr"),a=o?{spacingBefore:0,spacingAfter:0,...Ri($i(o,t.colors))}:Ri($i(o,t.colors)),s=gi(i,t),l={};let c;for(const u of bo(n,po,"style")){const e=ko(u,"styleId"),n=ko(u,"type");if(!e||"paragraph"!==n&&"character"!==n&&"table"!==n)continue;const r=ko(No(u,po,"name"),"val")??e,o=ko(No(u,po,"basedOn"),"val")??void 0,i=ko(No(u,po,"next"),"val")??void 0,d=Co(u,"qFormat"),f=Co(u,"semiHidden"),p=Co(u,"unhideWhenUsed"),h=ko(No(u,po,"uiPriority"),"val"),m=null===h?NaN:Number(h),g=Number.isInteger(m)&&m>=0?m:void 0,v=Ri($i(No(u,po,"pPr"),t.colors)),w=gi(No(u,po,"rPr"),t);let b;if("table"===n){const n=No(u,po,"tblPr"),r=e=>{const t=ko(No(n,po,e),"val"),r=t?Number(t):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0},o=r("tblStyleRowBandSize"),i=r("tblStyleColBandSize"),a={};for(const e of bo(u,po,"tblStylePr")){const n=ko(e,"type");if(!n)continue;const r=No(e,po,"tcPr"),o=Ci(r,0,t.colors),i=Ei(No(e,po,"tblPr")),s=fi(No(r,po,"shd"),t.colors),l=gi(No(e,po,"rPr"),t),c=ui(li(No(r,po,"tcBorders"))),u=$i(No(e,po,"pPr"),t.colors),d=ki(No(e,po,"trPr"));(s||l||c||u||d||o||i)&&(a[n]={...s?{shading:s}:{},...l?{textStyle:l}:{},...c?{borders:c}:{},...u?{paragraphStyle:u}:{},...d?{rowStyle:d}:{},...o?{cellStyle:o}:{},...i?{tableStyle:i}:{}})}b={...Ei(n,e)??{styleId:e},...void 0!==o?{rowBandSize:o}:{},...void 0!==i?{colBandSize:i}:{},...Object.keys(a).length>0?{conditionalFormats:a}:{}}}const y="paragraph"===n&&Io(ko(u,"default"));y&&(c=e),l[e]={id:e,name:r,type:n,isDefault:Io(ko(u,"default")),basedOn:o,nextStyle:i,qFormat:d,uiPriority:g,semiHidden:f,unhideWhenUsed:p,paragraphStyle:"paragraph"===n&&y?di(a,v):v,textStyle:"paragraph"===n&&y?di(s,w):w,tableStyle:b}}return c&&l[c]?l:((a||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:a,textStyle:s}),ui(l))}(S,T);null==(d=t.onProgress)||d.call(t,"parsing-document");const C=(new ir).parseFromString(b,"application/xml"),A=C.documentElement?No(C.documentElement,po,"background"):null,R=(null==A?void 0:A.getAttribute("w:color"))??(null==A?void 0:A.getAttributeNS(po,"color"))??null,$=C.getElementsByTagNameNS(po,"body")[0];if(!$)return Jr([dr([{text:""}])]);const D={assets:{},byPath:new Map,nextId:1};let P=null;const O=[],M=[[]];let L=!1,F=null;const B=e=>{L&&(e.style={...e.style??{},pageBreakBefore:!0},L=!1),F&&"paragraph"===e.type&&(e.dropCap=F,F=null),M[M.length-1].push(e)};let U=0;for(let o=0;o<$.childNodes.length;o+=1){const e=$.childNodes[o];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===po&&"sectPr"!==t.localName&&(U+=1)}}let z=0;const H=()=>{var e;z+=1,U>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",z/U))},j=os(x,w,y,D,T);for(let o=0;o<$.childNodes.length;o+=1){const e=$.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===po){if("sectPr"===t.localName)O.push(Oi(t)),M.push([]),L=!1;else if("p"===t.localName){const e=await Ya(t,x,w,y,D,T,j);for(const t of e.paragraphs)B(t);e.dropCapFrame&&(F=e.dropCapFrame),e.pageBreakAfter&&(L=!0);const n=No(t,po,"pPr"),r=n?No(n,po,"sectPr"):null;r&&(O.push(Oi(r)),M.push([]),L=!1),H()}else if("tbl"===t.localName)B(await ts(t,0,0,0,0,T,j)),H();else if("sdt"===t.localName){for(const e of await rs(t,x,w,y,D,T,j))B(e);H()}await Ro(50,z)}}if(0===O.length){const e=No($,po,"sectPr");O.push(e?Oi(e):{pageSettings:Mi($),headerRIds:{},footerRIds:{}})}null==(f=t.onProgress)||f.call(t,"parsing-headers-footers");const q=[],W=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,G=O.filter(W).length;let V=0;const X=()=>{var e;V+=1,G>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",V/G))};for(let o=0;o<O.length;o+=1){const e=O[o],t=M[o]??[];Li(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,N);const n=async t=>{var n,r;if(!t)return[];const o=y.get(t);if(!o)return[];let i=o.startsWith("/")?o.slice(1):o;i.startsWith("word/")||(i=`word/${o}`);const a=await(null==(n=w.file(i))?void 0:n.async("string")),s=await Lo(w,i);if(!P&&a){const e=a.match(/<v:textpath[^>]*string="([^"]+)"/i),t=a.match(/<v:shape\b([^>]*)>/i),n=(null==t?void 0:t[1])??"",o=e=>{var t;return null==(t=n.match(new RegExp(`${e}="([^"]+)"`,"i")))?void 0:t[1]},i=e=>e.replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");if(null==e?void 0:e[1])P={kind:"text",text:i(e[1]),color:o("fillcolor"),opacity:Number(o("fillopacity"))||void 0,rotation:Number(o("rotation"))||void 0};else{const e=null==(r=a.match(/<v:imagedata[^>]*(?:r:id|id)="([^"]+)"/i))?void 0:r[1],t=e?s.get(e):void 0;if(t){const e=t.startsWith("../")?`word/${t.slice(3)}`:t,n=await Oo(w,D,e);n&&(P={kind:"image",src:n,color:o("fillcolor"),opacity:Number(o("fillopacity"))||void 0,rotation:Number(o("rotation"))||void 0})}}}const l=await is(a??null,x,w,s,D,T);return Li(l,e.docGridLinePitchPx,e.docGridMode,e.docGridType,N),l},r=await n(e.headerRIds.default),i=await n(e.headerRIds.first),a=await n(e.headerRIds.even),s=await n(e.footerRIds.default),l=await n(e.footerRIds.first),c=await n(e.footerRIds.even);W(e)&&X(),await Ro(2,V);const u=Lr(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}}),d=o>0?null==(p=O[o-1])?void 0:p.breakType:void 0,f=e.pageNumbering,h=e.verticalAlignment,m=e.bidi;q.push({id:`section:${o+1}`,blocks:t.length>0?t:[dr([{text:""}])],pageSettings:u,...e.pageBorder?{pageBorder:e.pageBorder}:{},header:r.length>0?r:void 0,firstPageHeader:i.length>0?i: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,...d?{breakType:d}:{},...f?{pageNumbering:f}:{},...h?{verticalAlignment:h}:{},...m?{bidi:m}:{}})}const Z=await(null==(h=w.file("word/footnotes.xml"))?void 0:h.async("string"))??null,Y=Z?await Lo(w,"word/footnotes.xml"):new Map,Q=await async function(e,t,n,r,o,i){const a=await ss("footnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,footnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(Z,x,w,Y,D,T);N.footnoteSettings&&(Q.footnotes.settings=N.footnoteSettings);const K=Object.keys(Q.footnotes.items).length>0||Q.footnotes.separator||Q.footnotes.continuationSeparator||Q.footnotes.settings?Q.footnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedFootnoteRef;if(!i)return;delete o.__importedFootnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"footnoteReference",footnoteReference:{footnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};Is(e,n)}(q,Q.byDocxId);const J=await(null==(m=w.file("word/endnotes.xml"))?void 0:m.async("string"))??null,ee=J?await Lo(w,"word/endnotes.xml"):new Map,te=await async function(e,t,n,r,o,i){const a=await ss("endnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,endnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(J,x,w,ee,D,T);N.endnoteSettings&&(te.endnotes.settings=N.endnoteSettings);const ne=Object.keys(te.endnotes.items).length>0||te.endnotes.separator||te.endnotes.continuationSeparator||te.endnotes.settings?te.endnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedEndnoteRef;if(!i)return;delete o.__importedEndnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"endnoteReference",endnoteReference:{endnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};Is(e,n)}(q,te.byDocxId);const re=ys(q),oe=function(e,t){const n=new Set([...e.keys(),...t.keys()]);if(0===n.size)return;const r=[...n].sort((e,t)=>{const n=Number.parseInt(e,10),r=Number.parseInt(t,10);return Number.isNaN(n)||Number.isNaN(r)?e.localeCompare(t):n-r}),o={},i=[];for(const a of r){const n=e.get(a),r=t.get(a);if(!n&&!r)continue;const s=lr(),l=Number.parseInt(a,10);o[s]={id:s,author:(null==r?void 0:r.author)??"",...(null==r?void 0:r.initials)?{initials:r.initials}:{},...void 0!==(null==r?void 0:r.date)?{date:r.date}:{},...void 0!==(null==r?void 0:r.dateUtc)?{dateUtc:r.dateUtc}:{},...(null==r?void 0:r.resolved)?{resolved:r.resolved}:{},text:(null==r?void 0:r.text)??"",...(null==n?void 0:n.start)?{start:n.start}:{},...(null==n?void 0:n.end)?{end:n.end}:{},...Number.isNaN(l)?{}:{docxIdHint:l}},i.push(s)}return i.length>0?{items:o,order:i}:void 0}(Ns(q),_s(await(null==(g=w.file("word/comments.xml"))?void 0:g.async("string"))??null,await(null==(v=w.file("word/commentsExtended.xml"))?void 0:v.async("string"))??null)),ie=q.length>1||q.some(e=>{var t,n,r,o,i,a;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(n=e.firstPageHeader)?void 0:n.length)??0)>0||((null==(r=e.evenPageHeader)?void 0:r.length)??0)>0||((null==(o=e.footer)?void 0:o.length)??0)>0||((null==(i=e.firstPageFooter)?void 0:i.length)??0)>0||((null==(a=e.evenPageFooter)?void 0:a.length)??0)>0||void 0!==e.breakType||void 0!==e.pageNumbering||void 0!==e.verticalAlignment||void 0!==e.bidi||void 0!==e.pageBorder}),ae=Object.keys(D.assets).length>0,se=e=>{var t,n;if(_){const r=(null==(n=null==(t=T.data)?void 0:t.name)?void 0:n.toLowerCase())??"",o=["oasis","office","facet","integral","ion","retrospect"].find(e=>r.includes(e));e.design={...e.design??{},...o?{themeId:o}:{},...T.data?{themeData:T.data}:{}}}R&&(e.design={...e.design??{},pageColor:`#${R.replace(/^#/,"")}`}),P&&(e.design={...e.design??{},watermark:P});const r={};void 0!==N.defaultTabStop&&(r.defaultTabStop=N.defaultTabStop),N.allowSpaceOfSameStyleInTable&&(r.allowSpaceOfSameStyleInTable=!0),N.autoHyphenation&&(r.autoHyphenation=!0),N.doNotHyphenateCaps&&(r.doNotHyphenateCaps=!0),void 0!==N.consecutiveHyphenLimit&&(r.consecutiveHyphenLimit=N.consecutiveHyphenLimit),void 0!==N.hyphenationZone&&(r.hyphenationZone=N.hyphenationZone),Object.keys(r).length>0&&(e.settings={...e.settings??{},...r}),E&&(e.fontTable=E);let o=e;return K&&(o.footnotes=K,o=function(e){const t=e.footnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=us(e,t,gs);return r||i?{...e,sections:r?n:e.sections,footnotes:{...t,items:i?o:t.items}}:e}(o)),ne&&(o.endnotes=ne,o=function(e){const t=e.endnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=us(e,t,vs);return r||i?{...e,sections:r?n:e.sections,endnotes:{...t,items:i?o:t.items}}:e}(o)),re&&(o.bookmarks=re),oe&&(o.comments=oe),o};if(ie){const e=Jr([]);return e.sections=q,1===q.length&&(e.pageSettings=q[0].pageSettings),I&&(e.styles=I),ae&&(e.assets=D.assets),se(e)}const le=q[0],ce=Jr((null==le?void 0:le.blocks.length)>0?le.blocks:[dr([{text:""}])],null==le?void 0:le.pageSettings);return ae&&(ce.assets=D.assets),I&&(ce.styles=I),se(ce)}function Is(e,t){var n,r,o,i,a,s;for(const l of e)l.blocks.forEach(t),null==(n=l.header)||n.forEach(t),null==(r=l.firstPageHeader)||r.forEach(t),null==(o=l.evenPageHeader)||o.forEach(t),null==(i=l.footer)||i.forEach(t),null==(a=l.firstPageFooter)||a.forEach(t),null==(s=l.evenPageFooter)||s.forEach(t)}function Cs(e){return e.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function As(e){return e.replaceAll("\\","/").replace(/^\/+/,"")}function Rs(e){if("_rels/.rels"===e)return null;const t="/_rels/",n=e.lastIndexOf(t);if(n>=0&&e.endsWith(".rels")){return`${e.slice(0,n)}/${e.slice(n+7).slice(0,-5)}`}return e.startsWith("_rels/")&&e.endsWith(".rels")?e.slice(6,-5):void 0}function $s(e){if(!e)return[];const t=(new ir).parseFromString(e,"application/xml").documentElement;if(!t)return[];const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if("Relationship"!==o.localName)continue;const i=o.getAttribute("Id"),a=o.getAttribute("Type"),s=o.getAttribute("Target");if(!i||!a||!s)continue;const l=o.getAttribute("TargetMode");n.push({id:i,type:a,target:s,targetMode:"External"===l?"External":"Internal"})}return n}function Ds(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">${e.map(e=>{const t="External"===e.targetMode?' TargetMode="External"':"";return`<Relationship Id="${Cs(e.id)}" Type="${Cs(e.type)}" Target="${Cs(e.target)}"${t}/>`}).join("")}</Relationships>`}function Ps(e,t,n){return t.map(t=>{if("External"===t.targetMode)return{...t,resolvedTarget:void 0};const r=function(e,t){const n=t.replaceAll("\\","/"),r=(null==e?void 0:e.includes("/"))?e.slice(0,e.lastIndexOf("/")+1):"",o=n.startsWith("/")?n.slice(1):`${r}${n}`,i=[];for(const a of o.split("/"))if(a&&"."!==a)if(".."!==a)i.push(a);else{if(0===i.length)return null;i.pop()}return i.join("/")}(e,t.target);return r?{...t,resolvedTarget:r}:(null==n||n(t),t)})}const Os="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Ms="http://schemas.openxmlformats.org/package/2006/relationships",Ls="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Fs="http://schemas.microsoft.com/office/word/2010/wordml";function Bs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Us(e,t){return Number.isFinite(e)?Math.max(0,Math.round(e/hr*wr)):t}function zs(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*wr):null}function Hs(e){return null!=e&&Number.isFinite(e)?Math.max(0,Math.round(20*e)):null}function js(e,t="000000"){return ea(e)??t}function qs(e){return`<w:shd w:val="clear" w:color="auto" w:fill="${js(e,"FFFFFF")}"/>`}function Ws(e){if("end"===e.kind)return`<w:bookmarkEnd w:id="${e.wId}"/>`;const t=(void 0!==e.colFirst?` w:colFirst="${e.colFirst}"`:"")+(void 0!==e.colLast?` w:colLast="${e.colLast}"`:"");return`<w:bookmarkStart w:id="${e.wId}" w:name="${Bs(e.name??"")}"${t}/>`}function Gs(e){switch(e.kind){case"start":return`<w:commentRangeStart w:id="${e.wId}"/>`;case"end":return`<w:commentRangeEnd w:id="${e.wId}"/>`;case"reference":return`<w:r><w:commentReference w:id="${e.wId}"/></w:r>`}}const Vs=`xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du"`;function Xs(e){const t=e.comments.map(({comment:e,wId:t,paraId:n})=>{const r=void 0!==e.date?` w:date="${new Date(e.date).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",o=void 0!==e.dateUtc?` w16du:dateUtc="${new Date(e.dateUtc).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",i=e.initials?` w:initials="${Bs(e.initials)}"`:"";return`<w:comment w:id="${t}" w:author="${Bs(e.author)}"${r}${o}${i}><w:p w14:paraId="${n}">${a=e.text,`<w:r>${a.split("\n").map((e,t)=>`${t>0?"<w:br/>":""}<w:t xml:space="preserve">${Bs(e)}</w:t>`).join("")}</w:r>`}</w:p></w:comment>`;var a}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${Vs}>${t}</w:comments>`}function Zs(e){return void 0!==e&&Number.isSafeInteger(e)&&e>=1}function Ys(e){let t=1;for(const r of Object.values(e))Zs(r.docxId)&&(t=Math.max(t,r.docxId+1));const n=new Set;return e=>{if(Zs(e.docxId)&&!n.has(e.docxId))return n.add(e.docxId),e.docxId;for(;n.has(t);)t+=1;const r=t;return n.add(r),t+=1,r}}function Qs(e,t="000000"){if("none"===e.type||e.width<=0)return'w:val="nil"/>';return`w:val="${"dotted"===e.type?"dotted":"dashed"===e.type?"dashed":"single"}" w:sz="${Math.max(1,Math.round(8*e.width))}" w:space="0" w:color="${js(e.color,t)}"/>`}function Ks(e){const t=[["top",e.borderTop],["left",e.borderLeft],["bottom",e.borderBottom],["right",e.borderRight],["between",e.borderBetween],["bar",e.borderBar]].filter(e=>null!=e[1]).map(([e,t])=>`<w:${e} ${Qs(t)}`);return t.length>0?`<w:pBdr>${t.join("")}</w:pBdr>`:""}const Js="6F6F6F";function el(e){return e?Object.entries(e).map(([e,t])=>` ${e}="${Bs(t)}"`).join(""):""}function tl(e){const t=/^\d+$/.test(e.id)?e.id:String(Array.from(e.id).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0)),n=Number.isFinite(e.date)?new Date(e.date).toISOString():new Date(0).toISOString();return`w:id="${t}" w:author="${Bs(e.author)}" w:date="${n}"`}function nl(e){if(!e||0===Object.keys(e).length)return"";const t=vi.filter(([,t])=>void 0!==e[t]).map(([t,n])=>`w:${t}="${e[n]?"1":"0"}"`).join(" ");return t?`<w:cnfStyle ${t}/>`:""}function rl(e,t){return void 0===t?"":t?`<w:${e}/>`:`<w:${e} w:val="0"/>`}function ol(e,t,n={}){if("number"==typeof t&&Number.isFinite(t))return`<w:${e} w:w="${Hs(t)??0}" w:type="dxa"/>`;if("string"==typeof t){const n=t.trim();if("auto"===n)return`<w:${e} w:w="0" w:type="auto"/>`;if(n.endsWith("%")){const t=Number.parseFloat(n.slice(0,-1));if(Number.isFinite(t))return`<w:${e} w:w="${Math.round(50*t)}" w:type="pct"/>`}const r=Number.parseFloat(n);if(Number.isFinite(r))return`<w:${e} w:w="${Math.round(r)}" w:type="dxa"/>`}return n.fallbackAuto?`<w:${e} w:w="0" w:type="auto"/>`:""}function il(e,t=!0){return ol("tblW",e,{fallbackAuto:t})}function al(e){return Qs(e??{width:.75,type:"solid",color:`#${Js}`},Js)}function sl(e){if(!e)return"";const t=[],n=(e,n)=>{void 0!==n&&Number.isFinite(n)&&t.push(`<w:${e} w:w="${Hs(n)??0}" w:type="dxa"/>`)};return n("top",e.top),n("left",e.left),n("bottom",e.bottom),n("right",e.right),n("start",e.start),n("end",e.end),t.length>0?`<w:tblCellMar>${t.join("")}</w:tblCellMar>`:""}function ll(e,t){var n,r,o,i,a,s,l,c,u,d,f;const p=Math.max(1,Math.floor(e.colSpan??1)),h=[],m=nl(e.conditionalStyle);m&&h.push(m);const g=ol("tcW",(null==(n=e.style)?void 0:n.width)??t);g&&h.push(g),p>1&&h.push(`<w:gridSpan w:val="${p}"/>`),"restart"===e.vMerge?h.push('<w:vMerge w:val="restart"/>'):"continue"===e.vMerge&&h.push("<w:vMerge/>"),(null==(r=e.style)?void 0:r.shading)&&h.push(qs(e.style.shading));const v=rl("noWrap",null==(o=e.style)?void 0:o.noWrap);v&&h.push(v);const w=rl("tcFitText",null==(i=e.style)?void 0:i.fitText);if(w&&h.push(w),(null==(a=e.style)?void 0:a.headers)&&h.push(`<w:headers w:val="${Bs(e.style.headers)}"/>`),null==(s=e.style)?void 0:s.verticalAlign){const t="middle"===e.style.verticalAlign?"center":e.style.verticalAlign;h.push(`<w:vAlign w:val="${t}"/>`)}(null==(l=e.style)?void 0:l.textDirection)&&h.push(`<w:textDirection w:val="${e.style.textDirection}"/>`),h.push(function(e){const t=e.style,n=null==t?void 0:t.padding,r=Hs(n??(null==t?void 0:t.paddingTop)??0),o=Hs(n??(null==t?void 0:t.paddingBottom)??0);return`<w:tcMar><w:top w:w="${r??0}" w:type="dxa"/><w:left w:w="${Hs(n??(null==t?void 0:t.paddingLeft)??5.4)??0}" w:type="dxa"/><w:bottom w:w="${o??0}" w:type="dxa"/><w:right w:w="${Hs(n??(null==t?void 0:t.paddingRight)??5.4)??0}" w:type="dxa"/>${void 0!==(null==t?void 0:t.paddingStart)?`<w:start w:w="${Hs(t.paddingStart)??0}" w:type="dxa"/>`:""}${void 0!==(null==t?void 0:t.paddingEnd)?`<w:end w:w="${Hs(t.paddingEnd)??0}" w:type="dxa"/>`:""}</w:tcMar>`}(e)),h.push(function(e){var t,n,r,o,i,a,s,l;const c=[`<w:top ${al(null==(t=e.style)?void 0:t.borderTop)}`,`<w:left ${al(null==(n=e.style)?void 0:n.borderLeft)}`,`<w:bottom ${al(null==(r=e.style)?void 0:r.borderBottom)}`,`<w:right ${al(null==(o=e.style)?void 0:o.borderRight)}`];return(null==(i=e.style)?void 0:i.borderStart)&&c.push(`<w:start ${al(e.style.borderStart)}`),(null==(a=e.style)?void 0:a.borderEnd)&&c.push(`<w:end ${al(e.style.borderEnd)}`),(null==(s=e.style)?void 0:s.borderTopLeftToBottomRight)&&c.push(`<w:tl2br ${al(e.style.borderTopLeftToBottomRight)}`),(null==(l=e.style)?void 0:l.borderTopRightToBottomLeft)&&c.push(`<w:tr2bl ${al(e.style.borderTopRightToBottomLeft)}`),`<w:tcBorders>${c.join("")}</w:tcBorders>`}(e));const b=rl("hideMark",null==(c=e.style)?void 0:c.hideMark);if(b&&h.push(b),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision,n=ll({...e,style:t.previous});h.push(`<w:tcPrChange ${tl(t)}>${n}</w:tcPrChange>`)}if(null==(d=e.style)?void 0:d.revision){const t=e.style.revision,n="insert"===t.type?"cellIns":"delete"===t.type?"cellDel":"cellMerge",r="merge"===t.type?`${(null==(f=t.previous)?void 0:f.vMerge)?` w:vMergeOrig="${"restart"===t.previous.vMerge?"rest":"cont"}"`:""}${e.vMerge?` w:vMerge="${"restart"===e.vMerge?"rest":"cont"}"`:""}`:"";h.push(`<w:${n} ${tl(t)}${r}/>`)}return h.length>0?`<w:tcPr>${h.join("")}</w:tcPr>`:""}function cl(e,t){if(void 0===t||!Number.isFinite(t))return"";const n=Math.floor(t);return n>0?`<w:${e} w:val="${n}"/>`:""}function ul(e,t){const n="number"==typeof e?Hs(e):"string"==typeof e?Number.parseFloat(e):null,r=null!==n&&Number.isFinite(n);if(!r&&!t)return"";const o=[];return r&&o.push(`w:val="${Math.round(n)}"`),o.push(`w:hRule="${t??"atLeast"}"`),`<w:trHeight ${o.join(" ")}/>`}function dl(e){if(!e)return"";const t=[],n=cl("gridBefore",e.gridBefore);n&&t.push(n);const r=cl("gridAfter",e.gridAfter);r&&t.push(r);const o=ol("wBefore",e.widthBefore);o&&t.push(o);const i=ol("wAfter",e.widthAfter);i&&t.push(i);const a=ol("tblCellSpacing",e.cellSpacing);a&&t.push(a);const s=ul(e.height,e.heightRule);s&&t.push(s);const l=rl("cantSplit",e.cantSplit);l&&t.push(l);const c=rl("hidden",e.hidden);c&&t.push(c);const u=rl("tblHeader",e.isHeader);return u&&t.push(u),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),t.length>0?`<w:trPr>${t.join("")}</w:trPr>`:""}function fl(e){var t,n,r,o,i,a,s,l,c,u,d;const f=[],p=nl(e.conditionalStyle);p&&f.push(p);const h=cl("gridBefore",null==(t=e.style)?void 0:t.gridBefore);h&&f.push(h);const m=cl("gridAfter",null==(n=e.style)?void 0:n.gridAfter);m&&f.push(m);const g=ol("wBefore",null==(r=e.style)?void 0:r.widthBefore);g&&f.push(g);const v=ol("wAfter",null==(o=e.style)?void 0:o.widthAfter);v&&f.push(v);const w=ol("tblCellSpacing",null==(i=e.style)?void 0:i.cellSpacing);w&&f.push(w);const b=function(e){var t,n;return ul(null==(t=e.style)?void 0:t.height,null==(n=e.style)?void 0:n.heightRule)}(e);b&&f.push(b);const y=rl("cantSplit",null==(a=e.style)?void 0:a.cantSplit);y&&f.push(y),((null==(s=e.style)?void 0:s.isHeader)??e.isHeader)&&f.push("<w:tblHeader/>");const x=rl("hidden",null==(l=e.style)?void 0:l.hidden);if(x&&f.push(x),(null==(c=e.style)?void 0:c.align)&&f.push(`<w:jc w:val="${e.style.align}"/>`),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision;f.push(`<w:trPrChange ${tl(t)}>${dl(t.previous)}</w:trPrChange>`)}if((null==(d=e.style)?void 0:d.revision)&&"merge"!==e.style.revision.type){const t=e.style.revision,n="insert"===t.type?"ins":"del";f.push(`<w:${n} ${tl(t)}/>`)}return f.length>0?`<w:trPr>${f.join("")}</w:trPr>`:""}function pl(e){const t=null==e?void 0:e.borders;if(!t)return"";const n=wi.map(([e,n])=>[e,t[n]]).filter(e=>!!e[1]).map(([e,t])=>`<w:${e} ${Qs(t)}`).join("");return n?`<w:tblBorders>${n}</w:tblBorders>`:""}function hl(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h;const m=[];if((null==(t=e.style)?void 0:t.styleId)&&m.push(`<w:tblStyle w:val="${Bs(e.style.styleId)}"/>`),null==(n=e.style)?void 0:n.tblLook){const t=e.style.tblLook;m.push(`<w:tblLook w:firstRow="${t.firstRow?"1":"0"}" w:lastRow="${t.lastRow?"1":"0"}" w:firstColumn="${t.firstCol?"1":"0"}" w:lastColumn="${t.lastCol?"1":"0"}" w:noHBand="${t.noHBand?"1":"0"}" w:noVBand="${t.noVBand?"1":"0"}"/>`)}(null==(r=e.style)?void 0:r.altTitle)&&m.push(`<w:tblCaption w:val="${Bs(e.style.altTitle)}"/>`),(null==(o=e.style)?void 0:o.altDescription)&&m.push(`<w:tblDescription w:val="${Bs(e.style.altDescription)}"/>`);const g=function(e){if(!e||0===Object.keys(e).length)return"";const t=e=>{const t=Hs(e);return null===t?void 0:String(t)},n={horzAnchor:e.horizontalAnchor,vertAnchor:e.verticalAnchor,tblpX:t(e.x),tblpY:t(e.y),tblpXSpec:e.xAlign,tblpYSpec:e.yAlign,topFromText:t(e.distanceTop),rightFromText:t(e.distanceRight),bottomFromText:t(e.distanceBottom),leftFromText:t(e.distanceLeft)};return`<w:tblpPr ${Object.entries(n).filter(e=>void 0!==e[1]).map(([e,t])=>`w:${e}="${Bs(t)}"`).join(" ")}/>`}(null==(i=e.style)?void 0:i.floating);g&&m.push(g);const v=e.gridCols&&e.gridCols.length>0?e.gridCols.reduce((e,t)=>e+t,0):void 0;m.push(il((null==(a=e.style)?void 0:a.width)??v)),(null==(s=e.style)?void 0:s.align)&&m.push(`<w:jc w:val="${e.style.align}"/>`);const w=ol("tblCellSpacing",null==(l=e.style)?void 0:l.cellSpacing);w&&m.push(w);const b=sl(null==(c=e.style)?void 0:c.defaultCellMargins);b&&m.push(b);const y=pl(e.style);y&&m.push(y);const x=ol("tblInd",null==(u=e.style)?void 0:u.indentLeft);x&&m.push(x),m.push(`<w:tblLayout w:type="${(null==(d=e.style)?void 0:d.layout)??"fixed"}"/>`);const N=rl("bidiVisual",null==(f=e.style)?void 0:f.bidiVisual);if(N&&m.push(N),(null==(p=e.style)?void 0:p.tblOverlap)&&m.push(`<w:tblOverlap w:val="${Bs(e.style.tblOverlap)}"/>`),null==(h=e.style)?void 0:h.revision){const t=e.style.revision,n=hl({...e,style:t.previous});m.push(`<w:tblPrChange ${tl(t)}>${n}</w:tblPrChange>`)}return`<w:tblPr>${m.join("")}</w:tblPr>`}function ml(e,t){const n=function(e){var t,n,r;const o=[],i=[];for(let a=0;a<e.rows.length;a+=1){const r=e.rows[a];if(null==(t=r.style)?void 0:t.hidden)continue;let s=Math.max(0,Math.floor((null==(n=r.style)?void 0:n.gridBefore)??0));for(let e=0;e<r.cells.length;e+=1){for(;o[s]>0;)s+=1;const t=r.cells[e];if("continue"===t.vMerge)continue;const n=Math.max(1,t.colSpan??1),l=Math.max(1,t.rowSpan??1);i.push({rowIndex:a,cellIndex:e,visualRowIndex:a,visualColumnIndex:s,rowSpan:l,colSpan:n,cell:t});for(let e=0;e<n;e+=1)o[s+e]=Math.max(o[s+e]??0,l);s+=n}for(let e=0;e<o.length;e+=1)o[e]>0&&(o[e]-=1)}if((null==(r=e.style)?void 0:r.bidiVisual)&&i.length>0){const e=Math.max(...i.map(e=>e.visualColumnIndex+e.colSpan));for(const t of i)t.visualColumnIndex=e-t.visualColumnIndex-t.colSpan}return i}(e),r=new Map(n.map(e=>[`${e.rowIndex}:${e.cellIndex}`,e])),o=e.rows.map((n,o)=>{const i=n.cells.map((n,i)=>{const a=r.get(`${o}:${i}`),s=a&&e.gridCols?e.gridCols.slice(a.visualColumnIndex,a.visualColumnIndex+Math.max(1,a.colSpan)).reduce((e,t)=>e+t,0):void 0,l=(n.blocks.length>0?n.blocks:[{id:"",type:"paragraph",runs:[{id:"",text:"",kind:"text"}]}]).map(e=>t(e,n)).join(""),c="continue"===n.vMerge?"<w:p/>":l;return`<w:tc${el(n.extAttributes)}>${ll(n,s)}${c}</w:tc>`}).join("");return`<w:tr${el(n.extAttributes)}>${function(e,t){if(!e&&!t)return"";const n=[];void 0!==(null==e?void 0:e.width)&&n.push(il(e.width)),(null==e?void 0:e.align)&&n.push(`<w:jc w:val="${e.align}"/>`);const r=ol("tblCellSpacing",null==e?void 0:e.cellSpacing);r&&n.push(r);const o=ol("tblInd",null==e?void 0:e.indentLeft);o&&n.push(o);const i=e?pl(e):"";i&&n.push(i),(null==e?void 0:e.layout)&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);const a=sl(null==e?void 0:e.defaultCellMargins);return a&&n.push(a),t&&n.push(t),n.length>0?`<w:tblPrEx>${n.join("")}</w:tblPrEx>`:""}(n.propertyExceptions,n.tblPrExChangeXml)}${fl(n)}${i}</w:tr>`}).join(""),i=e.gridCols?`<w:tblGrid>${e.gridCols.map(e=>`<w:gridCol w:w="${Hs(e)??0}"/>`).join("")}${e.gridRevision?`<w:tblGridChange ${tl(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map(e=>`<w:gridCol w:w="${Hs(e)??0}"/>`).join("")}</w:tblGrid></w:tblGridChange>`:""}</w:tblGrid>`:"";return`<w:tbl>${hl(e)}${i}${o}</w:tbl>`}const gl='xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"';function vl(e){if(!(void 0!==e.alias||void 0!==e.tag||void 0!==e.id||void 0!==e.lock||void 0!==e.appearance||void 0!==e.showingPlcHdr||void 0!==e.temporary||void 0!==e.color||void 0!==e.placeholderDocPart||void 0!==e.dataBinding||void 0!==e.subtype||void 0!==e.repeatingSectionProperties||(e.unknownXml??"").length>0))return"<w:sdtPr/>";let t="";return void 0!==e.alias&&(t+=`<w:alias w:val="${Bs(e.alias)}"/>`),void 0!==e.tag&&(t+=`<w:tag w:val="${Bs(e.tag)}"/>`),void 0!==e.id&&(t+=`<w:id w:val="${Bs(e.id)}"/>`),void 0!==e.lock&&(t+=`<w:lock w:val="${Bs(e.lock)}"/>`),void 0!==e.placeholderDocPart&&(t+=`<w:placeholder><w:docPart w:val="${Bs(e.placeholderDocPart)}"/></w:placeholder>`),void 0!==e.dataBinding&&(t+=function(e){const t=[];void 0!==e.prefixMappings&&t.push(`w:prefixMappings="${Bs(e.prefixMappings)}"`);void 0!==e.xpath&&t.push(`w:xpath="${Bs(e.xpath)}"`);void 0!==e.storeItemID&&t.push(`w:storeItemID="${Bs(e.storeItemID)}"`);return t.length>0?`<w:dataBinding ${t.join(" ")}/>`:""}(e.dataBinding)),void 0!==e.temporary&&(t+=`<w:temporary w:val="${e.temporary?"true":"false"}"/>`),void 0!==e.subtype&&(t+=function(e,t){switch(e.kind){case"text":return"<w:text/>";case"richText":return"<w:richText/>";case"picture":return"<w:picture/>";case"group":return"<w:group/>";case"equation":return"<w:equation/>";case"citation":return"<w:citation/>";case"bibliography":return"<w:bibliography/>";case"repeatingSection":return function(e){let t="";void 0!==(null==e?void 0:e.sectionTitle)&&(t+=`<w15:sectionTitle w15:val="${Bs(e.sectionTitle)}"/>`);void 0!==(null==e?void 0:e.doNotAllowInsertDeleteSection)&&(t+=`<w15:doNotAllowInsertDeleteSection w15:val="${e.doNotAllowInsertDeleteSection?"1":"0"}"/>`);return t?`<w15:repeatingSection ${gl}>${t}</w15:repeatingSection>`:`<w15:repeatingSection ${gl}/>`}(t);case"repeatingSectionItem":return`<w15:repeatingSectionItem ${gl}/>`;case"comboBox":case"dropDownList":{const t=(e.listItems??[]).map(wl).join(""),n=void 0!==e.lastSelectedValue?`<w:lastSelectedValue w:val="${Bs(e.lastSelectedValue)}"/>`:"";return`<w:${e.kind}>${t}${n}</w:${e.kind}>`}case"date":{const t=void 0!==e.fullDate?` w:fullDate="${Bs(e.fullDate)}"`:"";let n="";return void 0!==e.dateFormat&&(n+=`<w:dateFormat w:val="${Bs(e.dateFormat)}"/>`),void 0!==e.lid&&(n+=`<w:lid w:val="${Bs(e.lid)}"/>`),void 0!==e.calendar&&(n+=`<w:calendar w:val="${Bs(e.calendar)}"/>`),void 0!==e.storeMappedDataAs&&(n+=`<w:storeMappedDataAs w:val="${Bs(e.storeMappedDataAs)}"/>`),`<w:date${t}>${n}</w:date>`}case"checkbox":{let t="";if(void 0!==e.checked&&(t+=`<w14:checked w14:val="${e.checked?"1":"0"}"/>`),void 0!==e.checkedStateFont||void 0!==e.checkedStateChar){t+=`<w14:checkedState${void 0!==e.checkedStateFont?` w14:font="${Bs(e.checkedStateFont)}"`:""}${void 0!==e.checkedStateChar?` w14:char="${Bs(e.checkedStateChar)}"`:""}/>`}if(void 0!==e.uncheckedStateFont||void 0!==e.uncheckedStateChar){t+=`<w14:uncheckedState${void 0!==e.uncheckedStateFont?` w14:font="${Bs(e.uncheckedStateFont)}"`:""}${void 0!==e.uncheckedStateChar?` w14:char="${Bs(e.uncheckedStateChar)}"`:""}/>`}return`<w14:checkbox>${t}</w14:checkbox>`}default:return e}}(e.subtype,e.repeatingSectionProperties)),void 0!==e.appearance&&(t+=`<w:appearance w:val="${Bs(e.appearance)}"/>`),void 0!==e.showingPlcHdr&&(t+=`<w:showingPlcHdr w:val="${e.showingPlcHdr?"true":"false"}"/>`),void 0!==e.color&&(t+=`<w:color w:val="${Bs(e.color)}"/>`),e.unknownXml&&(t+=e.unknownXml),`<w:sdtPr>${t}</w:sdtPr>`}function wl(e){return`<w:listItem${void 0!==e.displayText?` w:displayText="${Bs(e.displayText)}"`:""}${void 0!==e.value?` w:value="${Bs(e.value)}"`:""}/>`}function bl(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===Os&&o.localName===t&&n.push(o)}return n}function yl(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml">${e}</oasis:root>`,"application/xml").documentElement;if(n)for(let r=0;r<n.childNodes.length;r+=1){const e=n.childNodes[r];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&e.namespaceURI===Os&&e.localName===t)return e}}function xl(e,t){const n=e.ownerDocument;if(!n)return null;const r=n.createElementNS(Os,"w:sdt"),o=yl(vl(t.sdtPr),"sdtPr");if(o&&r.appendChild(o.cloneNode(!0)),t.sdtEndPrXml){const e=yl(t.sdtEndPrXml,"sdtEndPr");e&&r.appendChild(e.cloneNode(!0))}const i=n.createElementNS(Os,"w:sdtContent");return r.appendChild(i),{sdt:r,content:i}}function Nl(e,t){var n;let r=0;for(;r<t.length;){const o=t[r].wrappers[0];if(!o){r+=1;continue}let i=r+1;for(;i<t.length&&(null==(n=t[i].wrappers[0])?void 0:n.groupId)===o.groupId;)i+=1;const a=xl(e,o);if(!a){r=i;continue}e.insertBefore(a.sdt,t[r].element);const s=[];for(let e=r;e<i;e+=1){const n=t[e];a.content.appendChild(n.element),s.push({element:n.element,wrappers:n.wrappers.slice(1)})}Nl(a.content,s),r=i}}function Sl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function El(e){return`${e.namespaceURI??""}\0${function(e){return e.localName??e.tagName}(e)}`}function kl(e,t,n){const r=El(e[t]);let o=0;for(let i=0;i<t;i+=1)El(e[i])===r&&(o+=1);return n.filter(e=>El(e)===r)[o]}function _l(e,t){!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Os||r.namespaceURI===Ls)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(e,t);const n=Sl(e),r=Sl(t);n.forEach((e,o)=>{const i=kl(n,o,r);if(e.namespaceURI===Os)return void(i&&_l(e,i));if(i)return void _l(e,i);const a=n.slice(o+1).map((e,t)=>kl(n,o+t+1,r)).find(e=>Boolean(e));t.insertBefore(e.cloneNode(!0),a??null)})}const Tl=new Set(["tblStyle","tblpPr","tblOverlap","bidiVisual","tblStyleRowBandSize","tblStyleColBandSize","tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblLook","tblCaption","tblDescription","tblPrChange"]),Il=new Set(["gridCol","tblGridChange"]),Cl=new Set(["tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblPrExChange"]),Al=new Set(["cnfStyle","gridBefore","gridAfter","wBefore","wAfter","cantSplit","trHeight","tblHeader","tblCellSpacing","jc","hidden","ins","del","trPrChange"]),Rl=new Set(["cnfStyle","tcW","gridSpan","hMerge","vMerge","tcBorders","shd","noWrap","tcMar","textDirection","tcFitText","vAlign","hideMark","headers","cellIns","cellDel","cellMerge","tcPrChange"]);function $l(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Dl(e){return e.localName??e.tagName}function Pl(e){return`${e.namespaceURI??""}\0${Dl(e)}`}function Ol(e,t){const n=(new ir).parseFromString(e,"application/xml").documentElement;return(null==n?void 0:n.namespaceURI)===Os&&Dl(n)===t?n:void 0}function Ml(e,t,n,r,o){var i;if(!e||function(e){return Boolean(e&&_a(e.xml))}(e))return t;if(e.semanticSignature===o)return e.xml;const a=Ol(e.xml,n),s=function(e,t){if(e){const n=Ol(e,t);if(n)return n}return(new ir).parseFromString(`<w:${t} xmlns:w="${Os}"/>`,"application/xml").documentElement}(t,n);if(!a||!s)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Ls)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(a,s);const l=$l(a),c=$l(s),u=new Map;for(const h of c){const e=Pl(h),t=u.get(e)??[];t.push(h),u.set(e,t)}const d=new Map;for(const h of l){const e=Pl(h),t=d.get(e)??0;d.set(e,t+1);const n=null==(i=u.get(e))?void 0:i[t];n&&_l(h,n)}const f=new Set(c.map(Pl)),p=l.filter(e=>!(e.namespaceURI===Os&&r.has(Dl(e))||f.has(Pl(e))));for(const h of p){const e=l.indexOf(h),t=l.slice(e+1).find(e=>f.has(Pl(e))),n=t?$l(s).find(e=>Pl(e)===Pl(t))??null:null;s.insertBefore(h.cloneNode(!0),n)}return t||function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes.item(t);if(n&&"http://www.w3.org/2000/xmlns/"!==n.namespaceURI)return!0}return!1}(s)||0!==$l(s).length?(new or).serializeToString(s):""}function Ll(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Fl(e,t){return Ll(e).filter(e=>e.namespaceURI===Os&&e.localName===t)}function Bl(e,t){return Fl(e,t)[0]}function Ul(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}">${e}</oasis:root>`,"application/xml").documentElement;if(!n)return;return n?Ll(n).find(e=>e.namespaceURI===Os&&e.localName===t):void 0}function zl(e){return e?(new or).serializeToString(e):""}function Hl(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function jl(e){const t=new Map;let n=0;for(const r of e)r.namespaceURI===Os&&("tblPr"===r.localName||"tblGrid"===r.localName?t.set(r,r.localName):"tr"===r.localName&&(t.set(r,`tr:${n}`),n+=1));return t}function ql(e,t){var n;const r=null==(n=Wa(e))?void 0:n.xml;if(!r)return;const o=Ul(r,"tbl");if(!o)return;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Ls)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(o,t);const i=Ll(o),a=Ll(t),s=i.filter(e=>e.namespaceURI===Os&&"tr"===e.localName),l=a.filter(e=>e.namespaceURI===Os&&"tr"===e.localName);if(s.length!==l.length)return;const c=jl(i),u=new Map([...jl(a)].map(([e,t])=>[t,e]));for(let d=0;d<i.length;d+=1){const e=i[d];if(c.has(e))continue;if(Hl(zl(e)))continue;const n=i.slice(d+1).map(e=>c.get(e)).find(e=>Boolean(e)),r=n?u.get(n)??null:null;t.insertBefore(e.cloneNode(!0),r)}}function Wl(e,t,n,r,o){if(!n)return void(t&&e.removeChild(t));const i=Ul(n,r);i&&(t?e.replaceChild(i.cloneNode(!0),t):e.insertBefore(i.cloneNode(!0),o))}function Gl(e,t){const n=Bl(t,"tblPr"),r=Bl(t,"tblGrid"),o=Bl(t,"tr")??null;Wl(t,n,function(e,t){var n;return Ml(null==(n=Wa(e))?void 0:n.tableProperties,t,"tblPr",Tl,Fa(e))}(e,zl(n)),"tblPr",r??o);const i=Bl(t,"tblGrid");Wl(t,i,function(e,t){var n;return Ml(null==(n=Wa(e))?void 0:n.tableGrid,t,"tblGrid",Il,Ba(e))}(e,zl(i)),"tblGrid",Bl(t,"tr")??null)}function Vl(e,t){const n=Fl(t,"tr");n.length===e.rows.length&&n.forEach((t,n)=>{const r=e.rows[n],o=Bl(t,"tblPrEx"),i=Bl(t,"trPr"),a=Bl(t,"tc")??null;Wl(t,o,function(e,t){var n;return Ml(null==(n=ja(e))?void 0:n.propertyExceptions,t,"tblPrEx",Cl,za(e))}(r,zl(o)),"tblPrEx",i??a);const s=Bl(t,"trPr"),l=function(e,t){var n;return Ml(null==(n=ja(e))?void 0:n.rowProperties,t,"trPr",Al,Ua(e))}(r,zl(s));Wl(t,s,l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g,(e,t,n,r)=>`${t}${"start"===n?"left":"right"}${r}`),"trPr",Bl(t,"tc")??null);const c=Fl(t,"tc");c.length===r.cells.length&&c.forEach((e,t)=>{const n=r.cells[t],o=Bl(e,"tcPr");Wl(e,o,function(e,t){var n;return Ml(null==(n=function(e){return e.ooxmlSource}(e))?void 0:n.cellProperties,t,"tcPr",Rl,Ha(e))}(n,zl(o)),"tcPr",Bl(e,"p")??Bl(e,"tbl")??null)})})}function Xl(e){for(const t of Fl(e,"tr"))for(const e of Fl(t,"tc")){for(const r of Fl(e,"tbl"))Xl(r);const t=Ll(e),n=t[t.length-1];if((null==n?void 0:n.namespaceURI)===Os&&"tbl"===n.localName){const t=e.ownerDocument;t&&e.appendChild(t.createElementNS(Os,"w:p"))}}}function Zl(e,t){const n=ml(e,t),r=Ul(n,"tbl");if(!r)return n;ql(e,r),Gl(e,r),Vl(e,r),Xl(r),function(e,t){const n=bl(t,"tr");if(n.length===e.rows.length){for(let t=0;t<n.length;t+=1){const r=n[t],o=e.rows[t],i=bl(r,"tc");i.length===o.cells.length&&Nl(r,i.map((e,t)=>({element:e,wrappers:o.cells[t].sdtWrappers??[]})))}Nl(t,n.map((t,n)=>({element:t,wrappers:e.rows[n].sdtWrappers??[]})))}}(e,r);return(new or).serializeToString(r).replace(`<w:tbl xmlns:w="${Os}"`,"<w:tbl")}function Yl(e){if(!e||0===e.length)return"";const t=e.map(e=>{const t=Hs(e.position);if(null===t)return"";const n=[`w:val="${e.type}"`,`w:pos="${t}"`];return e.leader&&"none"!==e.leader?n.push(`w:leader="${e.leader}"`):"none"===e.leader&&n.push('w:leader="none"'),`<w:tab ${n.join(" ")}/>`}).filter(Boolean);return t.length>0?`<w:tabs>${t.join("")}</w:tabs>`:""}function Ql(e){const t=[];e.framePrXml&&t.push(e.framePrXml),e.suppressLineNumbers&&t.push("<w:suppressLineNumbers/>"),e.suppressAutoHyphens&&t.push("<w:suppressAutoHyphens/>"),e.bidi&&t.push("<w:bidi/>"),!1===e.kinsoku&&t.push('<w:kinsoku w:val="0"/>'),!1===e.wordWrap&&t.push('<w:wordWrap w:val="0"/>'),!1===e.overflowPunct&&t.push('<w:overflowPunct w:val="0"/>'),e.topLinePunct&&t.push("<w:topLinePunct/>"),!1===e.autoSpaceDE&&t.push('<w:autoSpaceDE w:val="0"/>'),!1===e.autoSpaceDN&&t.push('<w:autoSpaceDN w:val="0"/>'),!1===e.adjustRightInd&&t.push('<w:adjustRightInd w:val="0"/>'),e.textAlignment&&t.push(`<w:textAlignment w:val="${e.textAlignment}"/>`),e.textboxTightWrap&&t.push(`<w:textboxTightWrap w:val="${e.textboxTightWrap}"/>`),null!=e.divId&&t.push(`<w:divId w:val="${e.divId}"/>`);const n=(r=e.conditionalStyle)?`<w:cnfStyle w:val="${vi.map(([,e])=>r[e]?"1":"0").join("")}"/>`:"";var r;return n&&t.push(n),t}function Kl(e){const t=[];if(e.align&&t.push(`<w:jc w:val="${e.align}"/>`),void 0!==e.spacingBefore||void 0!==e.spacingAfter||void 0!==e.lineHeight){const n=[],r=zs(e.spacingBefore),o=zs(e.spacingAfter),i=void 0!==e.lineHeight&&null!==e.lineHeight&&Number.isFinite(e.lineHeight),a="exact"===e.lineRule||"atLeast"===e.lineRule,s=i?a?Us(e.lineHeight,0):Math.round(240*e.lineHeight):null;null!==r&&n.push(`w:before="${r}"`),null!==o&&n.push(`w:after="${o}"`),null!==s&&n.push(`w:line="${s}"`),null!==s&&a&&n.push(`w:lineRule="${e.lineRule}"`),n.length>0&&t.push(`<w:spacing ${n.join(" ")}/>`)}if(void 0!==e.indentLeft||void 0!==e.indentRight||void 0!==e.indentFirstLine||void 0!==e.indentHanging){const n=[],r=zs(e.indentLeft),o=zs(e.indentRight),i=zs(e.indentFirstLine),a=zs(e.indentHanging);null!==r&&n.push(`w:left="${r}"`),null!==o&&n.push(`w:right="${o}"`),null!==i&&n.push(`w:firstLine="${i}"`),null!==a&&n.push(`w:hanging="${a}"`),n.length>0&&t.push(`<w:ind ${n.join(" ")}/>`)}const n=Yl(e.tabs);n&&t.push(n),e.pageBreakBefore&&t.push("<w:pageBreakBefore/>"),e.keepWithNext&&t.push("<w:keepNext/>"),e.keepLinesTogether&&t.push("<w:keepLines/>"),!1===e.widowControl&&t.push('<w:widowControl w:val="0"/>'),e.contextualSpacing&&t.push("<w:contextualSpacing/>"),e.mirrorIndents&&t.push("<w:mirrorIndents/>");const r=Ks(e);return r&&t.push(r),e.shading&&t.push(qs(e.shading)),e.textDirection&&t.push(`<w:textDirection w:val="${e.textDirection}"/>`),null!=e.outlineLevel&&t.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`),t.push(...Ql(e)),t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function Jl(e,t,n,r){var o,i;const a=[],s=function(e,t){const n=Vr(e.style,t);return{align:n.align,spacingBefore:n.spacingBefore,spacingAfter:n.spacingAfter,contextualSpacing:n.contextualSpacing,lineHeight:n.lineHeight,lineRule:n.lineRule,indentLeft:n.indentLeft,indentRight:n.indentRight,indentFirstLine:n.indentFirstLine,indentHanging:n.indentHanging,mirrorIndents:n.mirrorIndents,pageBreakBefore:n.pageBreakBefore,keepWithNext:n.keepWithNext,keepLinesTogether:n.keepLinesTogether,widowControl:n.widowControl,shading:n.shading,borderTop:n.borderTop,borderRight:n.borderRight,borderBottom:n.borderBottom,borderLeft:n.borderLeft,tabs:n.tabs,textDirection:n.textDirection,outlineLevel:n.outlineLevel,suppressLineNumbers:n.suppressLineNumbers,suppressAutoHyphens:n.suppressAutoHyphens,bidi:n.bidi,kinsoku:n.kinsoku,wordWrap:n.wordWrap,overflowPunct:n.overflowPunct,topLinePunct:n.topLinePunct,autoSpaceDE:n.autoSpaceDE,autoSpaceDN:n.autoSpaceDN,adjustRightInd:n.adjustRightInd,textAlignment:n.textAlignment,textboxTightWrap:n.textboxTightWrap,divId:n.divId,conditionalStyle:n.conditionalStyle,borderBetween:n.borderBetween,borderBar:n.borderBar,framePrXml:n.framePrXml}}(e,n),l=(null==(o=e.style)?void 0:o.align)??(null==r?void 0:r.align)??s.align;if((null==(i=e.style)?void 0:i.styleId)&&a.push(`<w:pStyle w:val="${Bs(e.style.styleId)}"/>`),l&&a.push(`<w:jc w:val="${l}"/>`),void 0!==s.spacingBefore||void 0!==s.spacingAfter||void 0!==s.lineHeight){const e=[],t=zs(s.spacingBefore),n=zs(s.spacingAfter),r=void 0!==s.lineHeight&&null!==s.lineHeight&&Number.isFinite(s.lineHeight),o="exact"===s.lineRule||"atLeast"===s.lineRule,i=r?o?Us(s.lineHeight,0):Math.round(240*s.lineHeight):null;null!==t&&e.push(`w:before="${t}"`),null!==n&&e.push(`w:after="${n}"`),null!==i&&e.push(`w:line="${i}"`),null!==i&&o&&e.push(`w:lineRule="${s.lineRule}"`),e.length>0&&a.push(`<w:spacing ${e.join(" ")}/>`)}if(void 0!==s.indentLeft||void 0!==s.indentRight||void 0!==s.indentFirstLine||void 0!==s.indentHanging){const e=[],t=zs(s.indentLeft),n=zs(s.indentRight),r=zs(s.indentFirstLine),o=zs(s.indentHanging);null!==t&&e.push(`w:left="${t}"`),null!==n&&e.push(`w:right="${n}"`),null!==r&&e.push(`w:firstLine="${r}"`),null!==o&&e.push(`w:hanging="${o}"`),e.length>0&&a.push(`<w:ind ${e.join(" ")}/>`)}const c=Yl(s.tabs);c&&a.push(c),s.pageBreakBefore&&a.push("<w:pageBreakBefore/>"),s.keepWithNext&&a.push("<w:keepNext/>"),s.keepLinesTogether&&a.push("<w:keepLines/>"),!1===s.widowControl&&a.push('<w:widowControl w:val="0"/>'),s.contextualSpacing&&a.push("<w:contextualSpacing/>"),s.mirrorIndents&&a.push("<w:mirrorIndents/>");const u=Ks(s);u&&a.push(u),s.shading&&a.push(qs(s.shading)),s.textDirection&&a.push(`<w:textDirection w:val="${s.textDirection}"/>`),null!=s.outlineLevel&&a.push(`<w:outlineLvl w:val="${s.outlineLevel}"/>`),a.push(...Ql(s));const d=t.get(e.id);return d&&a.push(`<w:numPr><w:ilvl w:val="${d.level}"/><w:numId w:val="${d.numId}"/></w:numPr>`),a.length>0?`<w:pPr>${a.join("")}</w:pPr>`:""}const ec={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],green:[0,128,0],magenta:[255,0,255],red:[255,0,0],yellow:[255,255,0],white:[255,255,255],darkBlue:[0,0,139],darkCyan:[0,139,139],darkGreen:[0,100,0],darkMagenta:[139,0,139],darkRed:[139,0,0],darkYellow:[184,134,11],darkGray:[169,169,169],lightGray:[211,211,211]},tc={ffff00:"yellow",fef08a:"yellow",ff0000:"red","00ff00":"green","0000ff":"blue","00ffff":"cyan",ff00ff:"magenta","000000":"black",ffffff:"white"},nc="http://schemas.openxmlformats.org/markup-compatibility/2006";function rc(e){return`<w14:solidFill><w14:srgbClr w14:val="${js(e)}"/></w14:solidFill>`}function oc(e){if("solid"===e.type)return rc(e.color);return`<w14:gradFill><w14:gsLst>${e.stops.map(e=>{const t=js(e.color);return`<w14:gs w14:pos="${Math.round(e.position*br)}"><w14:srgbClr w14:val="${t}">${void 0!==e.alpha?`<w14:alpha w14:val="${Math.round(e.alpha*br)}"/>`:""}</w14:srgbClr></w14:gs>`}).join("")}</w14:gsLst><w14:lin w14:ang="${Math.round((e.angle??0)*yr)}" w14:scaled="0"/></w14:gradFill>`}function ic(e,t){return`<w14:srgbClr w14:val="${js(e)}">${void 0!==t?`<w14:alpha w14:val="${Math.round(t*br)}"/>`:""}</w14:srgbClr>`}function ac(e){return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14">${e}</mc:Choice><mc:Fallback/></mc:AlternateContent>`}function sc(e){return null!=e&&Number.isFinite(e)?Math.round(20*e):null}const lc=function(e){if(!e)return null;const t=Ji(e);return Ki.test(t)?[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]:null};function cc(e){if(!e)return"";const t=[];if(e.bold&&t.push("<w:b/>","<w:bCs/>"),e.italic&&t.push("<w:i/>","<w:iCs/>"),e.underline){const n=e.underlineStyle??"single",r=e.underlineColor?` w:color="${Bs(e.underlineColor.replace(/^#/,""))}"`:"";t.push(`<w:u w:val="${Bs(n)}"${r}/>`)}if(e.strike&&t.push("<w:strike/>"),e.doubleStrike&&t.push("<w:dstrike/>"),e.outline&&t.push("<w:outline/>"),e.shadow&&t.push("<w:shadow/>"),e.emboss&&t.push("<w:emboss/>"),e.imprint&&t.push("<w:imprint/>"),e.smallCaps&&t.push("<w:smallCaps/>"),e.allCaps&&t.push("<w:caps/>"),e.hidden&&t.push("<w:vanish/>"),e.noProof&&t.push("<w:noProof/>"),e.webHidden&&t.push("<w:webHidden/>"),e.specVanish&&t.push("<w:specVanish/>"),!1===e.snapToGrid&&t.push('<w:snapToGrid w:val="0"/>'),e.textEffect&&t.push(`<w:effect w:val="${Bs(e.textEffect)}"/>`),e.textBorder&&t.push(`<w:bdr ${Qs(e.textBorder)}`),void 0!==e.characterScale&&null!==e.characterScale&&Number.isFinite(e.characterScale)&&t.push(`<w:w w:val="${Math.max(1,Math.round(e.characterScale))}"/>`),void 0!==e.characterSpacing&&null!==e.characterSpacing){const n=sc(e.characterSpacing);null!==n&&t.push(`<w:spacing w:val="${n}"/>`)}void 0!==e.baselineShift&&null!==e.baselineShift&&Number.isFinite(e.baselineShift)&&t.push(`<w:position w:val="${Math.round(2*e.baselineShift)}"/>`),void 0!==e.kerningThreshold&&null!==e.kerningThreshold&&Number.isFinite(e.kerningThreshold)&&t.push(`<w:kern w:val="${Math.max(0,Math.round(2*e.kerningThreshold))}"/>`);const n=function(e){switch(e){case"none":return"none";case"standard":return"standard";case"contextual":return"contextual";case"historical":return"historical";case"standardContextual":return"standardContextual";default:return null}}(e.ligatures);n&&t.push(`<w14:ligatures w14:val="${n}"/>`);const r=function(e){switch(e){case"proportional":return"proportional";case"tabular":return"tabular";default:return null}}(e.numberSpacing);r&&t.push(`<w14:numSpacing w14:val="${r}"/>`);const o=function(e){switch(e){case"lining":return"lining";case"oldStyle":return"oldStyle";default:return null}}(e.numberForm);o&&t.push(`<w14:numForm w14:val="${o}"/>`);const i="number"!=typeof(a=e.stylisticSet)||a<1||a>20?null:(1<<a-1).toString(16).toUpperCase().padStart(8,"0");var a;if(i&&t.push(`<w14:stylisticSets w14:val="${i}"/>`),e.contextualAlternates&&t.push('<w14:cntxtAlts w14:val="1"/>'),e.superscript?t.push('<w:vertAlign w:val="superscript"/>'):e.subscript&&t.push('<w:vertAlign w:val="subscript"/>'),e.fontFamily&&t.push(`<w:rFonts w:ascii="${Bs(e.fontFamily)}" w:hAnsi="${Bs(e.fontFamily)}" w:cs="${Bs(e.fontFamily)}"/>`),void 0!==e.fontSize&&null!==e.fontSize){const n=function(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*72*2):null}(e.fontSize);null!==n&&t.push(`<w:sz w:val="${n}"/>`,`<w:szCs w:val="${n}"/>`)}if(e.textFill){const n="solid"===e.textFill.type?e.textFill.color:e.color;t.push(function(e,t){const n=oc(e),r=js(t??"000000");return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14"><w14:textFill>${n}</w14:textFill></mc:Choice><mc:Fallback><w:color w:val="${r}"/></mc:Fallback></mc:AlternateContent>`}(e.textFill,n??null))}else e.color&&t.push(`<w:color w:val="${Bs(e.color.replace(/^#/,""))}"/>`);if(e.textOutline&&t.push(function(e){const t=Math.round(Math.max(0,e.widthPt)*vr),n=e.fill?oc(e.fill):e.color?rc(e.color):"";return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">`+n+"</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>"}(e.textOutline)),e.textShadow&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(Math.max(0,e.distPt)*vr),r=Math.round(e.dirDeg*yr),o=ic(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${n}" w14:dir="${r}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">`+o+"</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>"}(e.textShadow)),e.glow&&t.push(function(e){const t=Math.round(Math.max(0,e.radiusPt)*vr),n=ic(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${n}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.glow)),e.reflection&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(e.startAlpha*br),r=Math.round(e.startPos*br),o=Math.round(e.endAlpha*br),i=Math.round(e.endPos*br),a=Math.round(Math.max(0,e.distPt)*vr);return`<mc:AlternateContent xmlns:mc="${nc}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${n}" w14:stPos="${r}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.reflection)),e.scene3dXml&&t.push(ac(e.scene3dXml)),e.props3dXml&&t.push(ac(e.props3dXml)),e.highlight&&t.push(`<w:highlight w:val="${Bs(function(e){if(e in ec)return e;const t=e.trim().replace(/^#/,"").toLowerCase(),n=tc[t];if(n)return n;const r=lc(e);if(!r)return"yellow";let o="yellow",i=Number.POSITIVE_INFINITY;for(const[a,s]of Object.entries(ec)){const e=(s[0]-r[0])**2+(s[1]-r[1])**2+(s[2]-r[2])**2;e<i&&(i=e,o=a)}return o}(e.highlight))}"/>`),e.shading&&t.push(qs(e.shading)),void 0!==e.fitText&&null!==e.fitText&&Number.isFinite(e.fitText)){const n=sc(e.fitText);null!==n&&n>0&&t.push(`<w:fitText w:val="${n}"/>`)}if(e.rtl&&t.push("<w:rtl/>"),e.complexScript&&t.push("<w:cs/>"),e.emphasisMark&&t.push(`<w:em w:val="${Bs(e.emphasisMark)}"/>`),e.language){const n=[];e.language.value&&n.push(`w:val="${Bs(e.language.value)}"`),e.language.eastAsia&&n.push(`w:eastAsia="${Bs(e.language.eastAsia)}"`),e.language.bidi&&n.push(`w:bidi="${Bs(e.language.bidi)}"`),n.length>0&&t.push(`<w:lang ${n.join(" ")}/>`)}return t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function uc(e){if(0===e.length)return"";var t;return`<w:t${/^\s|\s$/.test(t=e)||t.includes(" ")?' xml:space="preserve"':""}>${Bs(e)}</w:t>`}function dc(e){if(0===e.length)return"<w:t></w:t>";let t="",n="";for(const r of e)"\n"!==r?"\t"!==r?"‑"!==r?"­"!==r?n+=r:(t+=uc(n),n="",t+="<w:softHyphen/>"):(t+=uc(n),n="",t+="<w:noBreakHyphen/>"):(t+=uc(n),n="",t+="<w:tab/>"):(t+=uc(n),n="",t+="<w:br/>");return t+=uc(n),t||"<w:t></w:t>"}function fc(e,t){return e??t?"1":"0"}function pc(e,t,n){const r=Bs((null==t?void 0:t.relativeFrom)??n);if(null==t?void 0:t.align)return`<wp:${e} relativeFrom="${r}"><wp:align>${Bs(t.align)}</wp:align></wp:${e}>`;return`<wp:${e} relativeFrom="${r}"><wp:posOffset>${(null==t?void 0:t.offset)??0}</wp:posOffset></wp:${e}>`}function hc(e){if(!e||e.length<3)return"";const t=e=>Math.round(21600*Math.min(1,Math.max(0,e))),n=(e,n)=>`<wp:${n} x="${t(e.x)}" y="${t(e.y)}"/>`,r=e[0];return`<wp:wrapPolygon edited="0">${[n(r,"start"),...e.slice(1).map(e=>n(e,"lineTo")),n(r,"lineTo")].join("")}</wp:wrapPolygon>`}function mc(e){const{cx:t,cy:n,floating:r,docPrId:o,docPrName:i,altAttr:a,graphicXml:s}=e,l=Bs(i);if(!r)return`<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;const c=r.distT??0,u=r.distB??0,d=r.distL??0,f=r.distR??0,p=pc("positionH",r.positionH,"column"),h=pc("positionV",r.positionV,"paragraph"),m=function(e,t){switch(e){case"square":return'<wp:wrapSquare wrapText="bothSides"/>';case"tight":{const e=hc(t);return e?`<wp:wrapTight wrapText="bothSides">${e}</wp:wrapTight>`:'<wp:wrapTight wrapText="bothSides"/>'}case"through":{const e=hc(t);return e?`<wp:wrapThrough wrapText="bothSides">${e}</wp:wrapThrough>`:'<wp:wrapThrough wrapText="bothSides"/>'}case"topAndBottom":return"<wp:wrapTopAndBottom/>";default:return"<wp:wrapNone/>"}}(r.wrap,e.wrapPolygon);return`<w:drawing><wp:anchor distT="${c}" distB="${u}" distL="${d}" distR="${f}" simplePos="${fc(r.simplePos,!1)}" relativeHeight="${r.relativeHeight??0}" behindDoc="${fc(r.behindDoc,!1)}" locked="${fc(r.locked,!1)}" layoutInCell="${fc(r.layoutInCell,!0)}" allowOverlap="${fc(r.allowOverlap,!0)}"><wp:simplePos x="0" y="0"/>${p}${h}<wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/>${m}<wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:anchor></w:drawing>`}function gc(e,t,n,r){const o=n.images.find(e=>e.rId===t);if(!o)return null;const i=(parseInt(t.replace(/\D+/g,""),10)||0)+1,a=void 0!==o.alt?` descr="${Bs(o.alt)}" title="${Bs(o.alt)}"`:"",s=function(e){let t="";if(e.rotation){const n=Math.round(e.rotation*yr);0!==n&&(t+=` rot="${n}"`)}return e.flipH&&(t+=' flipH="1"'),e.flipV&&(t+=' flipV="1"'),t}(o),l=function(e){if(!e)return"";const t=e=>e?Math.round(e*br):0,n=t(e.left),r=t(e.top),o=t(e.right),i=t(e.bottom);return 0===n&&0===r&&0===o&&0===i?"":`<a:srcRect l="${n}" t="${r}" r="${o}" b="${i}"/>`}(o.crop),c=(u=o.border)?`<a:ln${void 0!==u.widthPt?` w="${Math.round(u.widthPt*vr)}"`:""}><a:solidFill><a:srgbClr val="${Bs(u.color.replace(/^#/,""))}"/></a:solidFill>${u.dash?`<a:prstDash val="${u.dash}"/>`:""}</a:ln>`:"";var u;const d="tile"===o.fillMode?"<a:tile/>":"<a:stretch><a:fillRect/></a:stretch>",f="linked"===o.kind?`r:link="${t}"`:`r:embed="${t}"`,p=function(e){if(!e)return'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>';if(e.rawXml&&!e.adjustments)return e.rawXml;const t=Object.entries(e.adjustments??{}).map(([e,t])=>`<a:gd name="${Bs(e)}" fmla="val ${Number.isFinite(t)?t:0}"/>`).join(""),n=t?`<a:avLst>${t}</a:avLst>`:"<a:avLst/>";return`<a:prstGeom prst="${Bs(e.preset)}">${n}</a:prstGeom>`}(o.cropShape),h=function(e,t,n,r){return mc({cx:e.cx,cy:e.cy,floating:e.floating,docPrId:t,docPrName:"Picture",altAttr:n,graphicXml:r,wrapPolygon:e.wrapPolygon})}(o,i,a,`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${f} xmlns:r="${Ls}"/>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${p}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`);return`<w:r>${r}${h}</w:r>`}function vc(e,t,n,r,o,i){const a=Math.round(t.width*gr),s=Math.round(t.height*gr),l=n.textBoxDocPrIds.get(e.id)??1,c=t.name??"Text Box",u=void 0!==t.alt?` descr="${Bs(t.alt)}" title="${Bs(t.alt)}"`:"",d=function(e,t,n,r,o,i){const a=e.shape,s=Bs((null==a?void 0:a.preset)??"rect"),l=e.rotation?Math.round(e.rotation*yr):0,c=0!==l?` rot="${l}"`:"",u=(null==a?void 0:a.fill)?`<a:solidFill><a:srgbClr val="${Bs(a.fill.replace(/^#/,""))}"/></a:solidFill>`:"";let d="";((null==a?void 0:a.borderColor)||void 0!==(null==a?void 0:a.borderWidthPt))&&(d=`<a:ln${void 0!==(null==a?void 0:a.borderWidthPt)?` w="${Math.round(a.borderWidthPt*vr)}"`:""}>${(null==a?void 0:a.borderColor)?`<a:solidFill><a:srgbClr val="${Bs(a.borderColor.replace(/^#/,""))}"/></a:solidFill>`:""}<a:miter lim="800000"/></a:ln>`);const f=e.body,p=['rot="0"',`vert="${Bs((null==f?void 0:f.vert)??"horz")}"`];p.push(`wrap="${Bs((null==f?void 0:f.wrap)??"square")}"`),void 0!==(null==f?void 0:f.paddingLeft)&&p.push(`lIns="${Math.round(f.paddingLeft*gr)}"`),void 0!==(null==f?void 0:f.paddingTop)&&p.push(`tIns="${Math.round(f.paddingTop*gr)}"`),void 0!==(null==f?void 0:f.paddingRight)&&p.push(`rIns="${Math.round(f.paddingRight*gr)}"`),void 0!==(null==f?void 0:f.paddingBottom)&&p.push(`bIns="${Math.round(f.paddingBottom*gr)}"`),p.push(`anchor="${Bs((null==f?void 0:f.anchor)??"t")}"`),p.push('anchorCtr="0"');const h=(null==f?void 0:f.autoFit)?"<a:spAutoFit/>":"",m=e.blocks.length>0,g=m?i(e.blocks,r,o):"";return'<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"><wps:wsp>'+(m?'<wps:cNvSpPr txBox="1"><a:spLocks noChangeArrowheads="1"/></wps:cNvSpPr>':"<wps:cNvSpPr/>")+`<wps:spPr bwMode="auto"><a:xfrm${c}><a:off x="0" y="0"/><a:ext cx="${t}" cy="${n}"/></a:xfrm><a:prstGeom prst="${s}"><a:avLst/></a:prstGeom>`+u+d+"</wps:spPr>"+(m?`<wps:txbx><w:txbxContent>${g}</w:txbxContent></wps:txbx>`:"")+`<wps:bodyPr ${p.join(" ")}>${h}</wps:bodyPr></wps:wsp></a:graphicData></a:graphic>`}(t,a,s,n,r,i);return`<w:r>${o}${mc({cx:a,cy:s,floating:t.floating,docPrId:l,docPrName:c,altAttr:u,graphicXml:d})}</w:r>`}const wc={footnote:"FootnoteReference",endnote:"EndnoteReference"};function bc(e){return`<w:r><w:rPr><w:rStyle w:val="${wc[e]}"/><w:vertAlign w:val="superscript"/></w:rPr><w:${e}Ref/></w:r>`}function yc(e,t,n,r){if(!t)return null;const o="footnote"===e?r.footnoteIdMap:r.endnoteIdMap,i=null==o?void 0:o.get(t.noteId);if(void 0===i)return null;const a={...n??{},superscript:!0},s=t.customMark?' w:customMarkFollows="1"':"",l=t.customMark?`<w:t xml:space="preserve">${Bs(t.customMark)}</w:t>`:"";return`<w:r>${cc(a)}<w:${e}Reference${s} w:id="${i}"/>${l}</w:r>`}function xc(e,t){return void 0===t?"":` m:${e}="${Bs(String(t))}"`}function Nc(e){return e.map(Sc).join("")}function Sc(e){switch(e.kind){case"text":return function(e){const t=e.style;return`<m:r>${t?`<m:rPr>${t.bold?"<m:b/>":""}${t.italic?"<m:i/>":""}${t.normalText?"<m:nor/>":""}${t.script?`<m:sty m:val="${Bs(t.script)}"/>`:""}</m:rPr>`:""}<m:t xml:space="preserve">${Bs(e.value)}</m:t></m:r>`}(e);case"fraction":return`<m:f>${!1===e.bar?'<m:fPr><m:type m:val="noBar"/></m:fPr>':""}<m:num>${Nc(e.numerator)}</m:num><m:den>${Nc(e.denominator)}</m:den></m:f>`;case"radical":return e.degree?`<m:rad><m:deg>${Nc(e.degree)}</m:deg><m:e>${Nc(e.radicand)}</m:e></m:rad>`:`<m:rad><m:e>${Nc(e.radicand)}</m:e></m:rad>`;case"script":{const t=e.subscript&&e.superscript?"sSubSup":e.subscript?"sSub":"sSup";return`<m:${t}><m:e>${Nc(e.base)}</m:e>${e.subscript?`<m:sub>${Nc(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Nc(e.superscript)}</m:sup>`:""}</m:${t}>`}case"delimiter":return`<m:d><m:dPr>${xc("begChr",e.begin)}${xc("endChr",e.end)}${xc("sepChr",e.separator)}${!1===e.grow?'<m:grow m:val="0"/>':""}</m:dPr>${e.children.map(e=>`<m:e>${Nc(e)}</m:e>`).join("")}</m:d>`;case"accent":return`<m:acc><m:accPr><m:chr${xc("val",e.accent)}/></m:accPr><m:e>${Nc(e.children)}</m:e></m:acc>`;case"nary":return`<m:nary><m:naryPr><m:chr${xc("val",e.operator)}/>${!1===e.grow?'<m:grow m:val="0"/>':""}</m:naryPr>${e.subscript?`<m:sub>${Nc(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Nc(e.superscript)}</m:sup>`:""}<m:e>${Nc(e.children)}</m:e></m:nary>`;case"limit":return"low"===e.operator?`<m:limLow><m:e>${Nc(e.base)}</m:e><m:lim>${Nc(e.limit)}</m:lim></m:limLow>`:`<m:limUpp><m:e>${Nc(e.base)}</m:e><m:lim>${Nc(e.limit)}</m:lim></m:limUpp>`;case"matrix":return`<m:m>${e.rows.map(e=>`<m:mr>${e.map(e=>`<m:e>${Nc(e)}</m:e>`).join("")}</m:mr>`).join("")}</m:m>`;case"box":return`<m:${e.hidden?"phant":e.border?"borderBox":"box"}><m:e>${Nc(e.children)}</m:e></m:${e.hidden?"phant":e.border?"borderBox":"box"}>`;case"group":return Nc(e.children);case"raw":return e.xml}}const Ec="http://schemas.openxmlformats.org/markup-compatibility/2006",kc=new Set(["t","tab","br","cr","noBreakHyphen","softHyphen"]),_c=new Set([...kc,"drawing","pict","sym","fldChar","instrText","footnoteReference","endnoteReference","separator","continuationSeparator"]),Tc=new Set(["rStyle","rFonts","b","bCs","i","iCs","caps","smallCaps","strike","dstrike","outline","shadow","emboss","imprint","noProof","snapToGrid","vanish","webHidden","color","spacing","w","kern","position","sz","szCs","highlight","u","effect","bdr","shd","fitText","vertAlign","rtl","cs","em","lang","eastAsianLayout","specVanish","oMath"]),Ic=new Set(["ligatures","numSpacing","numForm","stylisticSets","cntxtAlts","textFill","textOutline","shadow","glow","reflection","scene3d","props3d"]);function Cc(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ac(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Rc(e){return e.localName??e.tagName}function $c(e,t,n){return Ac(e).find(e=>e.namespaceURI===t&&Rc(e)===n)}function Dc(e){return`${e.namespaceURI??""}\0${Rc(e)}`}function Pc(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return t&&"r"===Rc(t)?t:void 0}function Oc(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:r="${Ls}" xmlns:mc="${Ec}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const n=Ac(t);return 1===n.length&&"r"===Rc(n[0])?n[0]:void 0}function Mc(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function Lc(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!Mc(n)&&n.namespaceURI!==Ls)return!0}return!1}function Fc(e){const t=Rc(e);return e.namespaceURI===Os?Tc.has(t):e.namespaceURI===Fs?Ic.has(t):e.namespaceURI===Ec&&"AlternateContent"===t}function Bc(e,t){const n=$c(e,Os,"rPr");if(!n)return;const r=Ac(n),o=$c(t,Os,"rPr"),i=o?Ac(o):[],a=new Set(i.map(Dc)),s=r.filter(e=>!Fc(e)&&!a.has(Dc(e)));if(0===s.length)return;const l=function(e){const t=$c(e,Os,"rPr");if(t)return t;const n=e.ownerDocument.createElementNS(Os,"w:rPr");return e.insertBefore(n,e.firstChild),n}(t);for(const c of s){const e=r.indexOf(c),t=r.slice(e+1).find(e=>a.has(Dc(e))),n=t?Ac(l).find(e=>Dc(e)===Dc(t))??null:null;l.insertBefore(c.cloneNode(!0),n)}}function Uc(e){const t=Rc(e);return e.namespaceURI===Ec&&"AlternateContent"===t?function(e){const t=e=>Ac(e).some(e=>{const n=Rc(e);return!(e.namespaceURI!==Os||!_c.has(n))||t(e)});return t(e)}(e):e.namespaceURI===Os&&("rPr"===t||_c.has(t))}function zc(e){const t=Da(e);if(t&&!Cc(t.xml)&&(n=t.xml,!Na.test(n))){var n;if(t.semanticSignature===Aa(e))return t.xml;if(t.structureSignature===Ra(e))return function(e,t){if("text"!==e.kind)return;const n=Pc(t);if(!n)return;const r=Ac(n),o=r.filter(e=>e.namespaceURI===Os&&kc.has(Rc(e))),i=o[0]??r.find(e=>!(e.namespaceURI===Os&&"rPr"===Rc(e)))??null,a=Oc(`<w:r>${dc(e.text)}</w:r>`);if(!a)return;const s=Ac(a);for(const l of s)n.insertBefore(l.cloneNode(!0),i);for(const l of o)n.removeChild(l);return(new or).serializeToString(n)}(e,t.xml)}}function Hc(e,t){const n=Da(e);if(!n||Cc(n.xml))return t;const r=Pc(n.xml);if(!r||!function(e){if(Lc(e))return!0;const t=$c(e,Os,"rPr");return!(!t||!Lc(t)&&!Ac(t).some(e=>!Fc(e)))||Ac(e).some(e=>!Uc(e))}(r))return t;const o=Oc(t);return o?(function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Ls)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o),Bc(r,o),function(e,t){const n=Ac(e),r=Ac(t),o=new Set(r.map(Dc)),i=n.filter(e=>!Uc(e)&&!o.has(Dc(e)));for(const a of i){const e=n.indexOf(a),r=n.slice(e+1).find(e=>Uc(e)),o=r?Ac(t).find(e=>Dc(e)===Dc(r))??null:null;t.insertBefore(a.cloneNode(!0),o)}}(r,o),(new or).serializeToString(o)):t}const jc=`xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"`;function qc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Wc(e,t,n){const r=e.ownerDocument;if(!r)return;const o=r.createElementNS(Os,`w:${n}`);for(let i=0;i<t.attributes.length;i+=1){const e=t.attributes.item(i);e&&(e.namespaceURI?o.setAttributeNS(e.namespaceURI,e.name,e.value):o.setAttribute(e.name,e.value))}for(;t.firstChild;)o.appendChild(t.firstChild);e.replaceChild(o,t)}function Gc(e){const t=function(e){const t=(new ir).parseFromString(`<oasis:root ${jc}>${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const n=qc(t);if(1!==n.length)return;const r=n[0];return r.namespaceURI===Os&&"r"===r.localName?r:void 0}(e);if(!t)return e;const n=qc(t),r=n.filter(e=>e.namespaceURI===Os&&"t"===e.localName);if(r.length>0){for(const e of n)e.namespaceURI===Os&&"delText"===e.localName&&t.removeChild(e);for(const e of r)Wc(t,e,"delText")}const o=qc(t),i=o.filter(e=>e.namespaceURI===Os&&"instrText"===e.localName);if(i.length>0){for(const e of o)e.namespaceURI===Os&&"delInstrText"===e.localName&&t.removeChild(e);for(const e of i)Wc(t,e,"delInstrText")}return(new or).serializeToString(t)}function Vc(e){return/^\d+$/.test(e)?e:String(Array.from(e).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0))}function Xc(e,t,n,r,o){if(e.revisionRangeMarker)return function(e){const t=`move${"from"===e.move?"From":"To"}Range${"start"===e.edge?"Start":"End"}`,n=[`w:id="${Vc(e.id)}"`];return void 0!==e.displacedByCustomXml&&n.push(`w:displacedByCustomXml="${Bs(e.displacedByCustomXml)}"`),"start"===e.edge&&(void 0!==e.name&&n.push(`w:name="${Bs(e.name)}"`),void 0!==e.author&&n.push(`w:author="${Bs(e.author)}"`),void 0!==e.date&&Number.isFinite(e.date)&&n.push(`w:date="${new Date(e.date).toISOString()}"`),void 0!==e.columnFirst&&n.push(`w:colFirst="${Math.trunc(e.columnFirst)}"`),void 0!==e.columnLast&&n.push(`w:colLast="${Math.trunc(e.columnLast)}"`)),`<w:${t} ${n.join(" ")}/>`}(e.revisionRangeMarker);if(e.__isFootnoteRefMarker)return bc("footnote");if(e.__isEndnoteRefMarker)return bc("endnote");const i=zc(e);if(i)return i;const a=function(e,t,n){var r;const o=Gr(e.styles,t,n),i={bold:o.bold,italic:o.italic,underline:o.underline,underlineStyle:o.underlineStyle,underlineColor:o.underlineColor,strike:o.strike,doubleStrike:o.doubleStrike,superscript:o.superscript,subscript:o.subscript,smallCaps:o.smallCaps,allCaps:o.allCaps,hidden:o.hidden,noProof:o.noProof,webHidden:o.webHidden,specVanish:o.specVanish,rtl:o.rtl,complexScript:o.complexScript,snapToGrid:o.snapToGrid,fitText:o.fitText,emphasisMark:o.emphasisMark,textBorder:o.textBorder,outline:o.outline,shadow:o.shadow,emboss:o.emboss,imprint:o.imprint,textEffect:o.textEffect,characterScale:o.characterScale,characterSpacing:o.characterSpacing,baselineShift:o.baselineShift,kerningThreshold:o.kerningThreshold,ligatures:o.ligatures,numberSpacing:o.numberSpacing,numberForm:o.numberForm,stylisticSet:o.stylisticSet,contextualAlternates:o.contextualAlternates,fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color,textFill:o.textFill,textOutline:o.textOutline,textShadow:o.textShadow,glow:o.glow,reflection:o.reflection,scene3dXml:o.scene3dXml,props3dXml:o.props3dXml,highlight:o.highlight,shading:o.shading,language:o.language};return(null==(r=e.styles)?void 0:r.link)&&(i.link=e.styles.link),i}(e,n,r),s=()=>cc(a),l=()=>`<w:r>${s()}${dc(e.text)}</w:r>`,c=Cr(e,{footnoteReference:e=>function(e,t,n){const r=Tr(e);return yc("footnote",r?{noteId:r.footnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),endnoteReference:e=>function(e,t,n){const r=Ir(e);return yc("endnote",r?{noteId:r.endnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),fieldChar:e=>function(e,t){const n=(e.fieldLock?' w:fldLock="true"':"")+(e.dirty?' w:dirty="true"':"");return`<w:r>${t}<w:fldChar w:fldCharType="${e.kind}"${n}/></w:r>`}(e.fieldChar,s()),fieldInstruction:e=>{return t=e.fieldInstruction,`<w:r>${s()}<w:instrText xml:space="preserve">${Bs(t)}</w:instrText></w:r>`;var t},field:e=>{return t=e.field.type,n=s(),`<w:fldSimple w:instr="${"PAGE"===t?" PAGE ":" NUMPAGES "}"><w:r>${n}<w:t>1</w:t></w:r></w:fldSimple>`;var t,n},textBox:e=>vc(e,e.textBox,t,r,s(),o),image:e=>{const n=t.imageMap.get(e.id);if(n){const r=gc(e.id,n,t,s());if(null!==r)return r}return l()},sym:e=>`<w:r>${s()}<w:sym w:font="${Bs(e.sym.font)}" w:char="${e.sym.char}"/></w:r>`,math:e=>function(e){const t=`<m:oMath>${Nc(e.children)}</m:oMath>`;return e.display?`<m:oMathPara>${t}</m:oMathPara>`:t}(e.math),text:()=>l()});return Hc(e,c)}function Zc(e,t,n,r,o){var i,a;let s=Xc(e,t,n,r,o);if(e.revisionRangeMarker)return s;"delete"===(null==(i=e.revision)?void 0:i.type)&&(s=Gc(s));const l=null==(a=e.styles)?void 0:a.link,c=l?function(e,t,n){if(t.startsWith("#"))return`<w:hyperlink w:anchor="${Bs(t.slice(1))}">${e}</w:hyperlink>`;const r=n.hyperlinkMap.get(t);return r?`<w:hyperlink r:id="${r}">${e}</w:hyperlink>`:e}(s,l,t):s;return e.revision?function(e,t){const n=Number.isFinite(t.date)?new Date(t.date).toISOString():new Date(0).toISOString(),r=`w:id="${Vc(t.id)}" w:author="${Bs(t.author)}" w:date="${n}"`,o=function(e){return"from"===e.move?"moveFrom":"to"===e.move?"moveTo":"delete"===e.type?"del":"ins"}(t);return`<w:${o} ${r}>${e}</w:${o}>`}(c,e.revision):c}function Yc(e,t){var n,r,o;let i="",a=0;for(;a<e.length;){const s=e[a],l=null==(n=s.sdtWrappers)?void 0:n[0];if(!l){i+=t(s),a+=1;continue}const c=[];let u=a;for(;u<e.length&&(null==(o=null==(r=e[u].sdtWrappers)?void 0:r[0])?void 0:o.groupId)===l.groupId;){const t=e[u],n=t.sdtWrappers.slice(1);c.push({...t,sdtWrappers:n.length>0?n:void 0}),u+=1}const d=Yc(c,t);i+=`<w:sdt>${vl(l.sdtPr)}${l.sdtEndPrXml??""}<w:sdtContent>${d}</w:sdtContent></w:sdt>`,a=u}return i}const Qc=new Set(["pStyle","keepNext","keepLines","pageBreakBefore","framePr","widowControl","numPr","suppressLineNumbers","pBdr","shd","tabs","suppressAutoHyphens","kinsoku","wordWrap","overflowPunct","topLinePunct","autoSpaceDE","autoSpaceDN","bidi","adjustRightInd","snapToGrid","spacing","ind","contextualSpacing","mirrorIndents","suppressOverlap","jc","textDirection","textAlignment","textboxTightWrap","outlineLvl","divId","cnfStyle","rPr","sectPr","pPrChange"]);function Kc(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Jc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function eu(e){return e.localName??e.tagName}function tu(e){return`${e.namespaceURI??""}\0${eu(e)}`}function nu(e,t){var n;if(!e||Kc(e))return t;const r=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===Os&&"pPr"===eu(t)?t:void 0}(e),o=function(e){if(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}">${e}</oasis:root>`,"application/xml").documentElement,n=t?Jc(t):[];if(1===n.length&&n[0].namespaceURI===Os&&"pPr"===eu(n[0]))return n[0]}return(new ir).parseFromString(`<w:pPr xmlns:w="${Os}"/>`,"application/xml").documentElement}(t);if(!r||!o)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Ls)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o);const i=Jc(r),a=Jc(o),s=new Map;for(const d of a){const e=tu(d),t=s.get(e)??[];t.push(d),s.set(e,t)}const l=new Map;for(const d of i){const e=tu(d),t=l.get(e)??0;l.set(e,t+1);const r=null==(n=s.get(e))?void 0:n[t];r&&_l(d,r)}const c=new Set(a.map(tu)),u=i.filter(e=>{return!(t=e,t.namespaceURI===Os&&Qc.has(eu(t))||c.has(tu(e)));var t});for(const d of u){const e=i.indexOf(d),t=i.slice(e+1).find(e=>c.has(tu(e))),n=t?Jc(o).find(e=>tu(e)===tu(t))??null:null;o.insertBefore(d.cloneNode(!0),n)}return t||1!==o.attributes.length||0!==Jc(o).length?(new or).serializeToString(o):""}const ru=new Set(["pPr","r","hyperlink","fldSimple","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd"]);function ou(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function iu(e){return e.localName??e.tagName}function au(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:r="${Ls}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!n)return;const r=ou(n);return 1===r.length&&r[0].namespaceURI===Os&&iu(r[0])===t?r[0]:void 0}function su(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function lu(e,t){const n=(r="pPr",ou(e).find(e=>e.namespaceURI===Os&&iu(e)===r));var r;if(!t)return n&&e.removeChild(n),!0;const o=au(t,"pPr");if(!o)return!1;const i=o.cloneNode(!0);return n?e.replaceChild(i,n):e.insertBefore(i,e.firstChild),!0}function cu(e,t,n,r){var o,i;const a=null==(o=Ma(e))?void 0:o.xml;if(!a||r.hasOverrides||r.hasBoundaryTokens||e.dropCap||/\br:(?:id|embed|link)\s*=/.test(a))return;const s=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===Os&&"p"===iu(t)?t:void 0}(a);if(!s||!function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!su(n)&&n.namespaceURI!==Ls)return!0}return ou(e).some(e=>{const t=iu(e);return e.namespaceURI!==Os||!ru.has(t)})}(s))return;const l=function(e){const t=[],n=e=>{for(const r of ou(e)){const e=iu(r);r.namespaceURI!==Os||"r"!==e?(r.namespaceURI!==Os||"pPr"!==e&&"p"!==e&&"tbl"!==e&&"txbxContent"!==e)&&n(r):t.push(r)}};return n(e),t}(s);if(l.length!==n.length)return;const c=n.map(e=>au(e,"r"));if(!c.some(e=>!e)&&lu(s,t)){for(let e=0;e<l.length;e+=1)null==(i=l[e].parentNode)||i.replaceChild(c[e].cloneNode(!0),l[e]);return(new or).serializeToString(s)}}function uu(e,t){return e.rows.some(e=>e.cells.some(e=>e.blocks.some(e=>function(e,t){var n,r;switch(e.type){case"paragraph":return Boolean((null==(n=t.bookmarkEventsByParagraph)?void 0:n.has(e.id))||(null==(r=t.commentEventsByParagraph)?void 0:r.has(e.id)));case"table":return uu(e,t);default:return _r(e,"block")}}(e,t))))}function du(e,t,n){var r;switch(e.type){case"paragraph":return pu(e,t,n);case"table":{const o=(null==(r=e.style)?void 0:r.pageBreakBefore)?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':"",i=function(e){var t;const n=null==(t=Wa(e))?void 0:t.xml;return Boolean(n&&/<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(n))}(e)?void 0:function(e,t){const n=Wa(e);if(n&&!t.hasBoundaryTokens&&!_a(n.xml))return n.semanticSignature===La(e)?n.xml:void 0}(e,{hasBoundaryTokens:uu(e,t)});return o+(i??Zl(e,(e,r)=>function(e,t,n,r){var o;return"paragraph"===e.type?pu(e,n,r,{align:null==(o=t.style)?void 0:o.horizontalAlign}):du(e,n,r)}(e,r,t,n)))}default:return _r(e,"block")}}function fu(e,t,n){var r,o,i;let a="",s=0;for(;s<e.length;){const l=e[s],c=null==(r=l.sdtWrappers)?void 0:r[0];if(!c){a+=du(l,t,n),s+=1;continue}const u=[];let d=s;for(;d<e.length&&(null==(i=null==(o=e[d].sdtWrappers)?void 0:o[0])?void 0:i.groupId)===c.groupId;){const t=e[d].sdtWrappers.slice(1);u.push({...e[d],sdtWrappers:t.length>0?t:void 0}),d+=1}const f=fu(u,t,n);a+=`<w:sdt>${vl(c.sdtPr)}${c.sdtEndPrXml??""}<w:sdtContent>${f}</w:sdtContent></w:sdt>`,s=d}return a}function pu(e,t,n,r){var o,i,a;const s=e.runs.length>0?e.runs:[{id:"",text:"",kind:"text"}],l=e.dropCap?function(e){const t=cc(e.style);var n;return`<w:p><w:pPr><w:keepNext/><w:framePr w:dropCap="${e.type}" w:lines="${e.lines}" w:wrap="around" w:vAnchor="text" w:hAnchor="text"/><w:spacing w:after="0"/>${t?`<w:rPr>${n=t,n.replace(/^<w:rPr>/,"").replace(/<\/w:rPr>$/,"")}</w:rPr>`:""}</w:pPr><w:r>${t}${dc(e.text)}</w:r></w:p>`}(e.dropCap):"",c=null==(o=t.bookmarkEventsByParagraph)?void 0:o.get(e.id),u=null==(i=t.commentEventsByParagraph)?void 0:i.get(e.id),d=[...(c??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Ws(e)})),...(u??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Gs(e)}))],f=function(e,t){const n=Ma(e);if(!(!(null==n?void 0:n.xml)||!n.semanticSignature||t.hasOverrides||t.hasBoundaryTokens||_a(n.xml)||Na.test(n.xml)||Sa.test(n.xml)))return n.semanticSignature===Pa(e)?n.xml:void 0}(e,{hasOverrides:Boolean(r),hasBoundaryTokens:d.length>0});if(f)return f;const p=r=>{var o;return Zc(r,t,null==(o=e.style)?void 0:o.styleId,n,fu)},h=0===d.length?s.map(p):void 0,m=0===d.length?Yc(s,p):function(e,t,n,r,o){const i=[...t].sort((e,t)=>e.offset-t.offset||e.seq-t.seq);let a=0,s=0,l=Yc(e,e=>{let t="";const l=s,c=l+e.text.length;for(;a<i.length&&i[a].offset<=l;)t+=i[a].xml,a+=1;if(function(e){return"text"===e.kind||"sym"===e.kind}(e)&&e.text.length>0){let s=l;for(;a<i.length&&i[a].offset<c;){const c=i[a];c.offset>s&&(t+=Zc({...e,text:e.text.slice(s-l,c.offset-l)},n,r,o,fu)),t+=c.xml,a+=1,s=c.offset}s<c&&(t+=Zc({...e,text:e.text.slice(s-l)},n,r,o,fu))}else t+=Zc(e,n,r,o,fu);return s=c,t});for(;a<i.length;)l+=i[a].xml,a+=1;return l}(s,d,t,null==(a=e.style)?void 0:a.styleId,n),g=function(e){var t;return null==(t=Ma(e))?void 0:t.attributes}(e),v=g?` ${g}`:"",w=Jl(e,t.numberingInfo,n,r),b=function(e,t,n){var r;const o=null==(r=Ma(e))?void 0:r.paragraphProperties;return!o||Kc(o.xml)?t:n||e.list||o.semanticSignature!==Oa(e)?nu(o.xml,t):o.xml}(e,w,Boolean(r));if(h){const t=cu(e,b,h,{hasOverrides:Boolean(r),hasBoundaryTokens:!1});if(t)return t}return`${l}<w:p${v}>${b}${m}</w:p>`}function hu(e){var t;const n=null==(t=e.footnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Ys(n);for(const{run:i}of function(e){return ls(e,"footnoteReference")}(e)){const e=Tr(i);if(!e||r.has(e.footnoteId))continue;const t=n[e.footnoteId];t&&r.set(e.footnoteId,{footnoteId:e.footnoteId,docxId:o(t),footnote:t})}return Array.from(r.values())}function mu(e){if(0===e.length)return[gu()];const[t,...n]=e;return"paragraph"!==t.type?[gu(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"FootnoteText"}}),...n];var r,o}function gu(e=!0){return{id:"synthetic:footnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0}]:[],{id:"synthetic:footnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"FootnoteText"}}}function vu(e){var t;const n=null==(t=e.endnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Ys(n);for(const{run:i}of function(e){return ls(e,"endnoteReference")}(e)){const e=Ir(i);if(!e||r.has(e.endnoteId))continue;const t=n[e.endnoteId];t&&r.set(e.endnoteId,{endnoteId:e.endnoteId,docxId:o(t),endnote:t})}return Array.from(r.values())}function wu(e){if(0===e.length)return[bu()];const[t,...n]=e;return"paragraph"!==t.type?[bu(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"EndnoteText"}}),...n];var r,o}function bu(e=!0){return{id:"synthetic:endnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0}]:[],{id:"synthetic:endnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"EndnoteText"}}}const yu=["wholeTable","band1Horz","band2Horz","band1Vert","band2Vert","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function xu(e){const t={...e.borders?{...e.borders.borderTop?{borderTop:e.borders.borderTop}:{},...e.borders.borderLeft?{borderLeft:e.borders.borderLeft}:{},...e.borders.borderBottom?{borderBottom:e.borders.borderBottom}:{},...e.borders.borderRight?{borderRight:e.borders.borderRight}:{}}:{},...e.shading?{shading:e.shading}:{},...e.cellStyle};return Object.keys(t).length>0?ll({id:"table-style-cell",blocks:[],style:t}):""}function Nu(e,t){if("number"==typeof t)return`<w:${e} w:w="${Hs(t)??0}" w:type="dxa"/>`;if("string"==typeof t&&t.endsWith("%")){const n=Number.parseFloat(t);return Number.isFinite(n)?`<w:${e} w:w="${Math.round(50*n)}" w:type="pct"/>`:""}return"auto"===t?`<w:${e} w:w="0" w:type="auto"/>`:""}function Su(e){if(!e)return"";const t=[];void 0!==e.rowBandSize&&t.push(`<w:tblStyleRowBandSize w:val="${e.rowBandSize}"/>`),void 0!==e.colBandSize&&t.push(`<w:tblStyleColBandSize w:val="${e.colBandSize}"/>`);const n=Nu("tblW",e.width);n&&t.push(n);const r=Nu("tblInd",e.indentLeft);r&&t.push(r);const o=Nu("tblCellSpacing",e.cellSpacing);if(o&&t.push(o),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),e.layout&&t.push(`<w:tblLayout w:type="${e.layout}"/>`),void 0!==e.bidiVisual&&t.push(`<w:bidiVisual w:val="${e.bidiVisual?"1":"0"}"/>`),e.defaultCellMargins){const n=Object.entries(e.defaultCellMargins).map(([e,t])=>`<w:${e} w:w="${Hs(t)??0}" w:type="dxa"/>`).join("");n&&t.push(`<w:tblCellMar>${n}</w:tblCellMar>`)}if(e.borders){const{borders:n}=e,r=wi.filter(([,e])=>!!n[e]).map(([e,t])=>`<w:${e} ${Qs(n[t])}`).join("");r&&t.push(`<w:tblBorders>${r}</w:tblBorders>`)}return t.length>0?`<w:tblPr>${t.join("")}</w:tblPr>`:""}function Eu(e,t){const n=[],r=t.paragraphStyle?Kl(t.paragraphStyle):"";r&&n.push(r);const o=t.textStyle?cc(t.textStyle):"";o&&n.push(o);const i=Su(t.tableStyle);i&&n.push(i);const a=t.rowStyle?dl(t.rowStyle):"";a&&n.push(a);const s=xu(t);return s&&n.push(s),0===n.length?"":`<w:tblStylePr w:type="${Bs(e)}">${n.join("")}</w:tblStylePr>`}function ku(e){const t=[];if(t.push(`<w:name w:val="${Bs(e.name)}"/>`),e.basedOn&&t.push(`<w:basedOn w:val="${Bs(e.basedOn)}"/>`),e.nextStyle&&t.push(`<w:next w:val="${Bs(e.nextStyle)}"/>`),void 0!==e.uiPriority&&t.push(`<w:uiPriority w:val="${Math.max(0,Math.floor(e.uiPriority))}"/>`),void 0!==e.qFormat&&t.push(`<w:qFormat w:val="${e.qFormat?"1":"0"}"/>`),void 0!==e.semiHidden&&t.push(`<w:semiHidden w:val="${e.semiHidden?"1":"0"}"/>`),void 0!==e.unhideWhenUsed&&t.push(`<w:unhideWhenUsed w:val="${e.unhideWhenUsed?"1":"0"}"/>`),("paragraph"===e.type||"table"===e.type)&&e.paragraphStyle){const n=Kl(e.paragraphStyle);n&&t.push(n)}if(e.textStyle){const n=cc(e.textStyle);n&&t.push(n)}if("table"===e.type&&e.tableStyle){const n=e.tableStyle,r=Su(n);if(r&&t.push(r),n.conditionalFormats){const e=[...yu.filter(e=>e in n.conditionalFormats),...Object.keys(n.conditionalFormats).filter(e=>!yu.includes(e))];for(const r of e){const e=n.conditionalFormats[r];if(e){const n=Eu(r,e);n&&t.push(n)}}}}return`<w:style w:type="${"character"===e.type?"character":"table"===e.type?"table":"paragraph"}" w:styleId="${Bs(e.id)}"${e.isDefault?' w:default="1"':""}>${t.join("")}</w:style>`}function _u(e,t,n,r,o,i,a,s,l,c=!1){const u=r.map(e=>{const t="header"===e.kind?"application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml":"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";return`<Override PartName="/word/${e.path}" ContentType="${t}"/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>${function(e){const t=new Set;let n="";for(const r of e){const e=r.toLowerCase();if(t.has(e))continue;const o=$o[e];o&&(t.add(e),n+=`<Default Extension="${e}" ContentType="${o}"/>`)}return n}(t)}<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>${a?'<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>':""}${e?'<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>':""}${n?'<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>':""}${o?'<Override PartName="/word/footnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"/>':""}${i?'<Override PartName="/word/endnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"/>':""}${s?'<Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/><Override PartName="/word/commentsExtended.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml"/>':""}${l?'<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>':""}${c?'<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>':""}${u}</Types>`}const Tu={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},Iu={continuous:"continuous",eachSection:"eachSect"};function Cu(e,t){if(!t)return null;const n=[];return t.numberFormat&&n.push(`<w:numFmt w:val="${Tu[t.numberFormat]}"/>`),void 0!==t.startAt&&n.push(`<w:numStart w:val="${Math.max(1,t.startAt)}"/>`),t.restart&&n.push(`<w:numRestart w:val="${Iu[t.restart]}"/>`),n.length>0?`<w:${e}>${n.join("")}</w:${e}>`:null}function Au(e,t){let n="";for(const r of t)n+=`<Relationship Id="${r.rId}" Type="${Ls}/hyperlink" Target="${Bs(r.href)}" TargetMode="External"/>`;for(const r of e){const e="linked"===r.kind?' TargetMode="External"':"";n+=`<Relationship Id="${r.rId}" Type="${Ls}/image" Target="${Bs(r.target)}"${e}/>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ms}">${n}</Relationships>`}function Ru(e,t){t(e);for(const n of e.runs)"textBox"===n.kind&&$u(n.textBox.blocks,t)}function $u(e,t){for(const n of e)switch(n.type){case"paragraph":Ru(n,t);break;case"table":for(const e of n.rows)for(const n of e.cells)$u(n.blocks,t);break;default:_r(n,"block")}}function Du(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if((null==r?void 0:r.localName)===t)return r.value}}function Pu(e,t,n){if(!e)return 0;const r=(new ir).parseFromString(e,"application/xml");let o=0;for(const i of Array.from(r.getElementsByTagNameNS(Os,t))){const e=Du(i,n);if(!e||!/^\d+$/.test(e))continue;const t=Number.parseInt(e,10);Number.isSafeInteger(t)&&(o=Math.max(o,t))}return o}function Ou(e,t){return void 0!==e&&Number.isSafeInteger(e)&&e>=t}function Mu(e){const t=new Map,n=new Map,r=[],o=new Set,i=new Set,a=function(e){var t;const n=e.sourcePackage;if(!n)return;const r=n.parts[n.mainDocumentPart],o=null==(t=null==r?void 0:r.relationships)?void 0:t.find(e=>"External"!==e.targetMode&&e.type.endsWith("/numbering")&&Boolean(e.resolvedTarget)),i=(null==o?void 0:o.resolvedTarget)?n.parts[o.resolvedTarget]:void 0;return"xml"===(null==i?void 0:i.kind)?i.data:void 0}(e);let s=Math.max(1,Pu(a,"abstractNum","abstractNumId")+1),l=Math.max(1,Pu(a,"num","numId")+1);const c=e=>{if(Ou(e,0)&&!o.has(e))return o.add(e),e;for(;o.has(s);)s+=1;const t=s;return s+=1,o.add(t),t},u=e=>{if(Ou(e,1)&&!i.has(e))return i.add(e),e;for(;i.has(l);)l+=1;const t=l;return l+=1,i.add(t),t},d=[],f=e=>{e.list&&d.push(e)};for(const p of Yr(e))$u(p.blocks,f),p.header&&$u(p.header,f),p.firstPageHeader&&$u(p.firstPageHeader,f),p.evenPageHeader&&$u(p.evenPageHeader,f),p.footer&&$u(p.footer,f),p.firstPageFooter&&$u(p.firstPageFooter,f),p.evenPageFooter&&$u(p.evenPageFooter,f);for(const p of d){const e=p.list,o=Math.max(0,e.level??0),i=e.bulletGlyph??"",a=e.instanceId?`instance:${e.instanceId}`:`legacy:${e.kind}:${o}:${i}`;let s=n.get(a);if(!s){const t=ei(e),o=void 0!==(null==t?void 0:t.sourceNumId)&&e.instanceId===String(t.sourceNumId);s={abstractNumId:c(o?t.sourceAbstractNumId:void 0),numId:u(o?t.sourceNumId:void 0),levels:[]},n.set(a,s),r.push(s)}if(!s.levels.some(e=>e.level===o)){const t=ei(e),n=ti(e);s.levels.push({kind:e.kind,level:o,format:e.format,startAt:e.startAt,levelText:e.levelText,suffix:e.suffix,alignment:e.alignment,legal:e.legal,bulletGlyph:e.bulletGlyph,bulletFont:e.bulletFont,...t?{ooxml:{...t,...n?{format:n}:{format:void 0}}}:{}})}t.set(p.id,{numId:s.numId,level:o})}return{numberingInfo:t,definitions:r}}const Lu=`xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:r="${Ls}"`;function Fu(e,t,n){var r,o;const i=Yr(e),a=i.map((r,o)=>{var a;const s=fu(r.blocks,t,e.styles),l=function(e,t,n,r){var o,i,a,s,l,c,u,d,f;const p=Us(e.width,12240),h=Us(e.height,15840),m=e.margins,g="landscape"===e.orientation?' w:orient="landscape"':"",v=[(null==(o=null==t?void 0:t.header)?void 0:o.first)?`<w:headerReference w:type="first" r:id="${t.header.first.relId}"/>`:"",(null==(i=null==t?void 0:t.header)?void 0:i.even)?`<w:headerReference w:type="even" r:id="${t.header.even.relId}"/>`:"",(null==(a=null==t?void 0:t.header)?void 0:a.default)?`<w:headerReference w:type="default" r:id="${t.header.default.relId}"/>`:"",(null==(s=null==t?void 0:t.footer)?void 0:s.first)?`<w:footerReference w:type="first" r:id="${t.footer.first.relId}"/>`:"",(null==(l=null==t?void 0:t.footer)?void 0:l.even)?`<w:footerReference w:type="even" r:id="${t.footer.even.relId}"/>`:"",(null==(c=null==t?void 0:t.footer)?void 0:c.default)?`<w:footerReference w:type="default" r:id="${t.footer.default.relId}"/>`:""].join(""),w=(null==(u=null==t?void 0:t.header)?void 0:u.first)||(null==(d=null==t?void 0:t.footer)?void 0:d.first)?"<w:titlePg/>":"",b=r&&"nextPage"!==r?`<w:type w:val="${r}"/>`:"",y=e.columns;let x="";if(y&&y.count>1){const e=Us(y.space,0),t=y.separator?' w:sep="1"':"";if(!1===y.equalWidth&&(null==(f=y.columns)?void 0:f.length)){const n=y.columns.map(e=>`<w:col w:w="${Us(e.width,0)}" w:space="${Us(e.space,0)}"/>`).join("");x=`<w:cols w:num="${y.count}" w:space="${e}" w:equalWidth="0"${t}>${n}</w:cols>`}else x=`<w:cols w:num="${y.count}" w:space="${e}"${t}/>`}const N=n.pageNumbering;let S="";if(N){const e=[];void 0!==N.start&&e.push(`w:start="${N.start}"`),N.format&&e.push(`w:fmt="${Bs(N.format)}"`),N.chapterStyle&&e.push(`w:chapStyle="${Bs(N.chapterStyle)}"`),N.chapterSeparator&&e.push(`w:chapSep="${Bs(N.chapterSeparator)}"`),e.length>0&&(S=`<w:pgNumType ${e.join(" ")}/>`)}const E=n.verticalAlignment&&"top"!==n.verticalAlignment?`<w:vAlign w:val="${n.verticalAlignment}"/>`:"",k=n.bidi?"<w:bidi/>":"",_=n.pageBorder,T=null==_?void 0:_.color.replace("#","").toUpperCase(),I=_?`<w:pgBorders w:offsetFrom="page"><w:top w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:left w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:bottom w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:right w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/></w:pgBorders>`:"";return`<w:sectPr>${v}${w}${b}<w:pgSz w:w="${p}" w:h="${h}"${g}/><w:pgMar w:top="${Us(m.top,1440)}" w:right="${Us(m.right,1440)}" w:bottom="${Us(m.bottom,1440)}" w:left="${Us(m.left,1440)}" w:header="${Us(m.header,720)}" w:footer="${Us(m.footer,720)}" w:gutter="${Us(m.gutter,0)}"/>${S}${x}${E}${k}${I}</w:sectPr>`}(r.pageSettings,n[o],r,null==(a=i[o+1])?void 0:a.breakType);return s+l}).join(""),s=null==(o=null==(r=e.design)?void 0:r.pageColor)?void 0:o.replace("#","").toUpperCase();return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${Lu}>${s?`<w:background w:color="${s}"/>`:""}<w:body>${a}</w:body></w:document>`}function Bu(e,t,n,r,o){const i="header"===e?"hdr":"ftr",a="header"===e&&"text"===(null==o?void 0:o.kind)&&o.text?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml"><v:shape type="#_x0000_t136" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#94a3b8"}" fillopacity="${o.opacity??.25}"><v:textpath on="true" string="${Bs(o.text)}" style="font-family:${Bs(o.fontFamily??"Arial")};font-size:${o.fontSize??48}pt"/></v:shape></w:pict>`:"header"===e&&"image"===(null==o?void 0:o.kind)&&n.images.some(e=>"__watermark"===e.runId)?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><v:shape type="#_x0000_t75" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#ffffff"}" fillopacity="${o.opacity??.25}" stroked="f"><v:imagedata r:id="rIdWatermark" o:title="Watermark"/></v:shape></w:pict>`:"";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${i} ${Lu}>${a}${fu(t,n,r)}</w:${i}>`}function Uu(e){return Array.isArray(e)?e.map(Uu):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Uu(t)])):e}function zu(e){const t={id:e.id,text:e.text,styles:(n=e.styles,n?{...n}:void 0),revision:e.revision?{...e.revision}:void 0,revisionRangeMarker:e.revisionRangeMarker?{...e.revisionRangeMarker}:void 0,sdtWrappers:e.sdtWrappers?[...e.sdtWrappers]:void 0};var n;return function(e,t){const n=Da(e);return n&&(t.ooxmlSource={...n}),t}(e,Cr(e,{text:()=>({...t,kind:"text"}),image:e=>({...t,kind:"image",image:{...e.image}}),textBox:e=>{return{...t,kind:"textBox",textBox:(n=e.textBox,{...n,floating:n.floating?{...n.floating,positionH:n.floating.positionH?{...n.floating.positionH}:void 0,positionV:n.floating.positionV?{...n.floating.positionV}:void 0}:void 0,shape:n.shape?{...n.shape}:void 0,body:n.body?{...n.body}:void 0,blocks:ju(n.blocks)})};var n},field:e=>({...t,kind:"field",field:{...e.field}}),fieldChar:e=>({...t,kind:"fieldChar",fieldChar:{...e.fieldChar}}),fieldInstruction:e=>({...t,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}),footnoteReference:e=>({...t,kind:"footnoteReference",footnoteReference:{...e.footnoteReference}}),endnoteReference:e=>({...t,kind:"endnoteReference",endnoteReference:{...e.endnoteReference}}),sym:e=>({...t,kind:"sym",sym:{...e.sym}}),math:e=>{return{...t,kind:"math",math:(n=e.math,Uu(n))};var n}}))}function Hu(e){return{...e,runs:e.runs.map(zu),style:e.style?{...e.style}:void 0,list:e.list?{...e.list}:void 0}}function ju(e){return e.map(e=>{switch(e.type){case"paragraph":return Hu(e);case"table":return{...e,style:e.style?{...e.style,defaultCellMargins:e.style.defaultCellMargins?{...e.style.defaultCellMargins}:void 0,floating:e.style.floating?{...e.style.floating}:void 0,revision:e.style.revision?{...e.style.revision,previous:{...e.style.revision.previous}}:void 0}:void 0,gridRevision:e.gridRevision?{...e.gridRevision,previous:[...e.gridRevision.previous]}:void 0,rows:e.rows.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,cells:e.cells.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,mergeRevisionState:e.mergeRevisionState?{...e.mergeRevisionState,previousCells:e.mergeRevisionState.previousCells.map(e=>({...e,mergeRevisionState:void 0,style:e.style?{...e.style}:void 0,blocks:ju(e.blocks)}))}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,blocks:ju(e.blocks)}))}))};default:return _r(e,"block")}})}function qu(e){var t,n;if(!e)return!1;return"caption"===(null==(n=null==(t=e.style)?void 0:t.styleId)?void 0:n.toLowerCase())&&e.runs.some(e=>{const t=function(e){return"fieldInstruction"===e.kind?e.fieldInstruction:void 0}(e);return void 0!==t&&new RegExp("\\bSEQ\\s+Figure\\b","i").test(t)})}function Wu(e,t){return e.map(e=>{switch(e.type){case"paragraph":return qu(e)?function(e,t){if(!qu(e))return Hu(e);let n=!1,r=!1;const o=e.runs.map(e=>"fieldChar"===e.kind&&"separate"===e.fieldChar.kind?(n=!0,{...e,fieldChar:{...e.fieldChar}}):"fieldChar"===e.kind&&"end"===e.fieldChar.kind?(n=!1,{...e,fieldChar:{...e.fieldChar}}):n&&""!==e.text?e.text===String(t)?{...e}:(r=!0,{...e,text:String(t)}):{...e});return r?{...Hu(e),runs:o}:Hu(e)}(e,t.next++):Hu(e);case"table":return{...e,rows:e.rows.map(e=>({...e,cells:e.cells.map(e=>({...e,blocks:Wu(e.blocks,t)}))}))};default:return _r(e,"block")}})}const Gu={oasis:{accent:"0F766E",heading:"115E59",body:"1F2937"},office:{accent:"4472C4",heading:"2F5597",body:"1F2937"},facet:{accent:"8064A2",heading:"604A7B",body:"262626"},integral:{accent:"70AD47",heading:"548235",body:"1F2937"},ion:{accent:"ED7D31",heading:"C55A11",body:"262626"},retrospect:{accent:"5B9BD5",heading:"2F75B5",body:"1F2937"}};function Vu(e,t,n,r){const o=[],i=new Map,a=new Map,s=[],l=new Map;return $u(e,e=>{var t;for(const c of e.runs){const e=null==(t=c.styles)?void 0:t.link;if(e&&!e.startsWith("#")&&!l.has(e)){const t=`rIdLink${s.length+1}`;l.set(e,t),s.push({rId:t,href:e})}if("textBox"!==c.kind||a.has(c.id)||(a.set(c.id,n.nextTextBoxDocPrId),n.nextTextBoxDocPrId+=1),"image"!==c.kind)continue;const u=n.nextImageId,d=`rIdImg${u}`,f={rId:d,runId:c.id,cx:Math.round(c.image.width*gr),cy:Math.round(c.image.height*gr),alt:c.image.alt,crop:c.image.crop,cropShape:c.image.cropShape,cropFit:c.image.cropFit,fillMode:c.image.fillMode,border:c.image.border,rotation:c.image.rotation,flipH:c.image.flipH,flipV:c.image.flipV,floating:c.image.floating,wrapPolygon:c.image.wrapPolygon};if(c.image.linkedSrc){o.push({...f,kind:"linked",target:c.image.linkedSrc}),i.set(c.id,d),n.nextImageId+=1;continue}const p=Xr(r,c.image.src).match(/^data:([^;,]+);base64,(.*)$/);if(!p)continue;const h=Po(p[1]);if(!h)continue;const m=p[2],g=`media/image${u}.${h}`;o.push({...f,kind:"embedded",target:g,base64:m}),i.set(c.id,d),n.nextImageId+=1}}),{numberingInfo:t.numberingInfo,definitions:t.definitions,images:o,imageMap:i,textBoxDocPrIds:a,hyperlinks:s,hyperlinkMap:l}}function Xu(e,t,n){n&&(e.file(`word/${t}.xml`,n.xml),(n.partContext.images.length>0||n.partContext.hyperlinks.length>0)&&e.file(`word/_rels/${t}.xml.rels`,Au(n.partContext.images,n.partContext.hyperlinks)))}async function Zu(e){var t,n,r,i,a,s,l,c,u,d,f,p,h,m,g,v,w,b;e=function(e){const t={next:1},n=Yr(e).map(e=>({...e,blocks:Wu(e.blocks,t),header:e.header?ju(e.header):void 0,footer:e.footer?ju(e.footer):void 0}));return{...e,sections:n}}(e);const y=new o,x=Mu(e),N={nextImageId:1,nextTextBoxDocPrId:1000001},S=Yr(e),E=function(e){var t;const n=null==(t=e.design)?void 0:t.watermark;if("image"!==(null==n?void 0:n.kind)||!n.src)return;const r=Xr(e,n.src).match(/^data:([^;,]+);base64,(.*)$/);if(!r)return;const o=Po(r[1]);return o?{rId:"rIdWatermark",runId:"__watermark",kind:"embedded",target:`media/watermark.${o}`,base64:r[2],cx:1,cy:1}:void 0}(e),k=hu(e),_=function(e){const t=new Map;for(const n of e)t.set(n.footnoteId,n.docxId);return t}(k),T=k.length>0,I=vu(e),C=function(e){const t=new Map;for(const n of e)t.set(n.endnoteId,n.docxId);return t}(I),A=I.length>0,R=function(e){const t=e.bookmarks;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const s of t.order){const e=t.items[s];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(s,o),r.add(o))}let o=0;for(const s of t.order)if(!n.has(s)){for(;r.has(o);)o+=1;n.set(s,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])};for(const s of t.order){const e=t.items[s];if(!e)continue;const r=n.get(s);e.start&&a(e.start.paragraphId,{kind:"start",offset:e.start.offset,seq:e.start.seq??0,wId:r,name:e.name,...void 0!==e.colFirst?{colFirst:e.colFirst}:{},...void 0!==e.colLast?{colLast:e.colLast}:{}}),e.end&&a(e.end.paragraphId,{kind:"end",offset:e.end.offset,seq:e.end.seq??0,wId:r})}return i}(e),$=function(e){const t=e.comments;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const l of t.order){const e=t.items[l];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(l,o),r.add(o))}let o=0;for(const l of t.order)if(!n.has(l)){for(;r.has(o);)o+=1;n.set(l,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])},s=[];return t.order.forEach((e,r)=>{const o=t.items[e];if(!o)return;const i=n.get(e),l=(1073741824+r).toString(16).toUpperCase();s.push({comment:o,wId:i,paraId:l}),o.start&&a(o.start.paragraphId,{kind:"start",offset:o.start.offset,seq:o.start.seq??0,wId:i}),o.end&&(a(o.end.paragraphId,{kind:"end",offset:o.end.offset,seq:o.end.seq??0,wId:i}),a(o.end.paragraphId,{kind:"reference",offset:o.end.offset,seq:(o.end.seq??0)+.5,wId:i}))}),{eventsByParagraph:i,comments:s}}(e),D=e=>(e.footnoteIdMap=_,e.endnoteIdMap=C,e.bookmarkEventsByParagraph=R,e.commentEventsByParagraph=null==$?void 0:$.eventsByParagraph,e),P=D(Vu(S.flatMap(e=>e.blocks),x,N,e)),O=void 0!==$,M=[],L=S.map(()=>({}));let F=1,B=1;S.forEach((t,n)=>{const r=(t,r,o)=>{var i,a,s;if(!(o&&0!==o.length||"header"===t&&"text"===(null==(a=null==(i=e.design)?void 0:i.watermark)?void 0:a.kind)||"header"===t&&void 0!==E))return;const l=o??[],c="header"===t?F:B,u=`${t}${c}.xml`,d=`rId${"header"===t?"Header":"Footer"}${c}`,f=D(Vu(l,x,N,e));"header"===t&&E&&f.images.push({...E}),M.push({kind:t,type:r,path:u,relId:d,blocks:l,context:f});const p="header"===t?"header":"footer";((s=L[n])[p]??(s[p]={}))[r]={relId:d},"header"===t?F+=1:B+=1};r("header","first",t.firstPageHeader),r("header","even",t.evenPageHeader),r("header","default",t.header),r("footer","first",t.firstPageFooter),r("footer","even",t.evenPageFooter),r("footer","default",t.footer)});const U=x.definitions.length>0,z=S.some(e=>{var t,n;return((null==(t=e.evenPageHeader)?void 0:t.length)??0)>0||((null==(n=e.evenPageFooter)?void 0:n.length)??0)>0}),H=z||void 0!==(null==(t=e.settings)?void 0:t.defaultTabStop)||void 0!==(null==(n=e.settings)?void 0:n.allowSpaceOfSameStyleInTable)||void 0!==(null==(r=e.settings)?void 0:r.autoHyphenation)||void 0!==(null==(i=e.settings)?void 0:i.consecutiveHyphenLimit)||void 0!==(null==(a=e.settings)?void 0:a.hyphenationZone)||void 0!==(null==(s=e.settings)?void 0:s.doNotHyphenateCaps)||void 0!==(null==(l=e.footnotes)?void 0:l.settings)||void 0!==(null==(c=e.endnotes)?void 0:c.settings),j=[...P.images,...M.flatMap(e=>e.context.images)],q=T?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>mu(e.footnote.blocks)));s.footnoteIdMap=a;const l=t.map(e=>{const t=fu(mu(e.footnote.blocks),s,i);return`<w:footnote w:id="${e.docxId}">${t}</w:footnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Ls}"><w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote><w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>${l}</w:footnotes>`,partContext:s}}(0,k,0,0,t=>Vu(t,x,N,e),e.styles,_):null;q&&j.push(...q.partContext.images);const W=A?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>wu(e.endnote.blocks)));s.endnoteIdMap=a;const l=t.map(e=>{const t=fu(wu(e.endnote.blocks),s,i);return`<w:endnote w:id="${e.docxId}">${t}</w:endnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${Os}" xmlns:w14="${Fs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Ls}"><w:endnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:endnote><w:endnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:endnote>${l}</w:endnotes>`,partContext:s}}(0,I,0,0,t=>Vu(t,x,N,e),e.styles,C):null;W&&j.push(...W.partContext.images);const G=j.filter(e=>"embedded"===e.kind).map(e=>{var t;return null==(t=e.target.split(".").pop())?void 0:t.toLowerCase()}).filter(e=>Boolean(e)),V=null!=e.styles&&Object.keys(e.styles).length>0,X=((null==(u=e.fontTable)?void 0:u.length)??0)>0,Z=void 0!==e.design;y.file("[Content_Types].xml",_u(U,G,H,M,T,A,V,O,X,Z)),y.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ms}"><Relationship Id="rId1" Type="${Ls}/officeDocument" Target="word/document.xml"/></Relationships>`),y.file("word/document.xml",Fu(e,P,L)),V&&y.file("word/styles.xml",function(e){const t=Object.values(e).map(ku).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${Fs}">${t}</w:styles>`}(e.styles)),U&&y.file("word/numbering.xml",function(e){const t=e.map(({abstractNumId:e,levels:t})=>`<w:abstractNum w:abstractNumId="${e}">${t.sort((e,t)=>e.level-t.level).map(({kind:e,level:t,format:n,startAt:r,levelText:o,suffix:i,alignment:a,legal:s,bulletGlyph:l,bulletFont:c,ooxml:u})=>{const d="bullet"===e?"bullet":(null==u?void 0:u.format)??n??"decimal",f=o??("bullet"===e?l??"":`%${t+1}.`),p=r??1,h="bullet"===e?c??"Symbol":void 0,m=h?`<w:rPr><w:rFonts w:ascii="${Bs(h)}" w:hAnsi="${Bs(h)}" w:hint="default"/></w:rPr>`:"",g=i&&"tab"!==i?`<w:suff w:val="${i}"/>`:"",v=s?"<w:isLgl/>":"",w=void 0!==(null==u?void 0:u.restartAfterLevel)?`<w:lvlRestart w:val="${u.restartAfterLevel}"/>`:"",b=(null==u?void 0:u.paragraphStyleId)?`<w:pStyle w:val="${Bs(u.paragraphStyleId)}"/>`:"";return`<w:lvl w:ilvl="${t}"><w:start w:val="${p}"/><w:numFmt w:val="${Bs(d)}"/>${w}${b}<w:lvlText w:val="${Bs(f)}"/><w:lvlJc w:val="${a??"left"}"/>${g}${v}${m}</w:lvl>`}).join("")}</w:abstractNum>`).join(""),n=e.map(({abstractNumId:e,numId:t})=>`<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${Os}">${t}${n}</w:numbering>`}(x.definitions)),(V||U||H||P.images.length>0||P.hyperlinks.length>0||M.length>0||T||A||O||X||Z)&&y.file("word/_rels/document.xml.rels",function(e,t,n,r,o,i,a,s,l,c,u=!1){let d="";s&&(d+=`<Relationship Id="rIdStyles" Type="${Ls}/styles" Target="styles.xml"/>`),e&&(d+=`<Relationship Id="rIdNum" Type="${Ls}/numbering" Target="numbering.xml"/>`),t&&(d+=`<Relationship Id="rIdSettings" Type="${Ls}/settings" Target="settings.xml"/>`);for(const f of r)d+=`<Relationship Id="${f.rId}" Type="${Ls}/hyperlink" Target="${Bs(f.href)}" TargetMode="External"/>`;for(const f of n){const e="linked"===f.kind?' TargetMode="External"':"";d+=`<Relationship Id="${f.rId}" Type="${Ls}/image" Target="${Bs(f.target)}"${e}/>`}for(const f of o){const e="header"===f.kind?"header":"footer";d+=`<Relationship Id="${f.relId}" Type="${Ls}/${e}" Target="${f.path}"/>`}return i&&(d+=`<Relationship Id="rIdFootnotes" Type="${Ls}/footnotes" Target="footnotes.xml"/>`),a&&(d+=`<Relationship Id="rIdEndnotes" Type="${Ls}/endnotes" Target="endnotes.xml"/>`),l&&(d+=`<Relationship Id="rIdComments" Type="${Ls}/comments" Target="comments.xml"/>`,d+='<Relationship Id="rIdCommentsExtended" Type="http://schemas.microsoft.com/office/2011/relationships/commentsExtended" Target="commentsExtended.xml"/>'),c&&(d+=`<Relationship Id="rIdFontTable" Type="${Ls}/fontTable" Target="fontTable.xml"/>`),u&&(d+=`<Relationship Id="rIdTheme" Type="${Ls}/theme" Target="theme/theme1.xml"/>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ms}">${d}</Relationships>`}(U,H,P.images,P.hyperlinks,M,T,A,V,O,X,Z)),X&&y.file("word/fontTable.xml",function(e){const t=e.map(e=>{const t=[];if(e.altName&&t.push(`<w:altName w:val="${Bs(e.altName)}"/>`),e.panose1&&t.push(`<w:panose1 w:val="${Bs(e.panose1)}"/>`),e.charset&&t.push(`<w:charset w:val="${Bs(e.charset)}"/>`),e.family&&t.push(`<w:family w:val="${Bs(e.family)}"/>`),e.pitch&&t.push(`<w:pitch w:val="${Bs(e.pitch)}"/>`),e.sig){const n=Object.entries(e.sig).map(([e,t])=>`w:${e}="${Bs(t)}"`).join(" ");n&&t.push(`<w:sig ${n}/>`)}return`<w:font w:name="${Bs(e.name)}">${t.join("")}</w:font>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:fonts xmlns:w="${Os}">${t}</w:fonts>`}(e.fontTable)),Z&&y.file("word/theme/theme1.xml",function(e){var t;const n=null==(t=null==e?void 0:e.themeData)?void 0:t.sourceXml;if(n)return n;const r=Gu[(null==e?void 0:e.themeId)??"oasis"]??Gu.oasis,o=null==e?void 0:e.themeData,i=(e,t)=>{var n;return((null==(n=null==o?void 0:o.colors)?void 0:n[e])??t).replace(/^#/,"").toUpperCase()},a={dk1:i("dk1","000000"),lt1:i("lt1","FFFFFF"),dk2:i("dk2",r.body),lt2:i("lt2","FFFFFF"),accent1:i("accent1",r.accent),accent2:i("accent2",r.heading),accent3:i("accent3","5B9BD5"),accent4:i("accent4","70AD47"),accent5:i("accent5","ED7D31"),accent6:i("accent6","A5A5A5"),hlink:i("hlink","0563C1"),folHlink:i("folHlink","954F72")},s=Object.entries(a).map(([e,t])=>`<a:${e}><a:srgbClr val="${t}"/></a:${e}>`).join(""),l=(e,t,n)=>{var r,i;return Bs((null==(i=null==(r=null==o?void 0:o.fonts)?void 0:r[e])?void 0:i[t])??n)},c=Bs((null==o?void 0:o.name)??`${((null==e?void 0:e.themeId)??"oasis")[0].toUpperCase()}${((null==e?void 0:e.themeId)??"oasis").slice(1)}`),u=(null==o?void 0:o.effectsXml)??"<a:fillStyleLst/><a:lnStyleLst/><a:effectStyleLst/><a:bgFillStyleLst/>";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="${c}"><a:themeElements><a:clrScheme name="${c}">${s}</a:clrScheme><a:fontScheme name="${c}"><a:majorFont><a:latin typeface="${l("major","majorHAnsi","Aptos Display")}"/><a:ea typeface="${l("major","majorEastAsia","Aptos Display")}"/><a:cs typeface="${l("major","majorBidi","Aptos Display")}"/></a:majorFont><a:minorFont><a:latin typeface="${l("minor","minorHAnsi","Aptos")}"/><a:ea typeface="${l("minor","minorEastAsia","Aptos")}"/><a:cs typeface="${l("minor","minorBidi","Aptos")}"/></a:minorFont></a:fontScheme><a:fmtScheme name="${c}">${u}</a:fmtScheme></a:themeElements></a:theme>`}(e.design)),H&&y.file("word/settings.xml",function(e,t,n,r,o,i){const a=[],s=Hs(t);null!==s&&a.push(`<w:defaultTabStop w:val="${s}"/>`),(null==i?void 0:i.autoHyphenation)&&a.push("<w:autoHyphenation/>"),void 0!==(null==i?void 0:i.consecutiveHyphenLimit)&&i.consecutiveHyphenLimit>=0&&a.push(`<w:consecutiveHyphenLimit w:val="${i.consecutiveHyphenLimit}"/>`);const l=Hs(null==i?void 0:i.hyphenationZone);null!==l&&a.push(`<w:hyphenationZone w:val="${l}"/>`),(null==i?void 0:i.doNotHyphenateCaps)&&a.push("<w:doNotHyphenateCaps/>");const c=Cu("footnotePr",n);c&&a.push(c);const u=Cu("endnotePr",r);return u&&a.push(u),e&&a.push("<w:evenAndOddHeaders/>"),o&&a.push("<w:compat><w:allowSpaceOfSameStyleInTable/></w:compat>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:settings xmlns:w="${Os}">${a.join("")}</w:settings>`}(z,null==(d=e.settings)?void 0:d.defaultTabStop,null==(f=e.footnotes)?void 0:f.settings,null==(p=e.endnotes)?void 0:p.settings,null==(h=e.settings)?void 0:h.allowSpaceOfSameStyleInTable,{autoHyphenation:null==(m=e.settings)?void 0:m.autoHyphenation,consecutiveHyphenLimit:null==(g=e.settings)?void 0:g.consecutiveHyphenLimit,hyphenationZone:null==(v=e.settings)?void 0:v.hyphenationZone,doNotHyphenateCaps:null==(w=e.settings)?void 0:w.doNotHyphenateCaps}));for(const o of M)y.file(`word/${o.path}`,Bu(o.kind,o.blocks,o.context,e.styles,null==(b=e.design)?void 0:b.watermark)),(o.context.images.length>0||o.context.hyperlinks.length>0)&&y.file(`word/_rels/${o.path}.rels`,Au(o.context.images,o.context.hyperlinks));Xu(y,"footnotes",q),Xu(y,"endnotes",W),$&&(y.file("word/comments.xml",Xs($)),y.file("word/commentsExtended.xml",function(e){const t=e.comments.map(({comment:e,paraId:t})=>`<w15:commentEx w15:paraId="${t}" w15:done="${e.resolved?"1":"0"}"/>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${Vs}>${t}</w15:commentsEx>`}($)));for(const o of j)"embedded"===o.kind&&o.base64&&y.file(`word/${o.target}`,o.base64,{base64:!0});return y.generateAsync({type:"arraybuffer"})}function Yu(e){let t=2166136261;for(const n of e)t^=n,t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}async function Qu(e){return async function(e){const t=await o.loadAsync(e),n={};for(const[r,o]of Object.entries(t.files))o.dir||(n[As(r)]=Yu(await o.async("uint8array")));return n}(await Zu(e))}const Ku="word/document.xml";function Ju(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function ed(e,t){const n=t.overrides[e];if(n)return n;const r=e.includes(".")?e.slice(e.lastIndexOf(".")+1).toLowerCase():"";return t.defaults[r]}function td(e,t){return!(!e.endsWith(".xml")&&!e.endsWith(".rels"))||("application/xml"===t||Boolean(null==t?void 0:t.endsWith("+xml")))}async function nd(e){var t;const n=await o.loadAsync(e),r=[],i=await(null==(t=n.file("[Content_Types].xml"))?void 0:t.async("string")),a=function(e){var t;const n={defaults:{},overrides:{}};if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;for(let o=0;o<r.childNodes.length;o+=1){const e=r.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("Default"===i.localName){const e=null==(t=i.getAttribute("Extension"))?void 0:t.toLowerCase(),r=i.getAttribute("ContentType");e&&r&&(n.defaults[e]=r)}else if("Override"===i.localName){const e=i.getAttribute("PartName"),t=i.getAttribute("ContentType");e&&t&&(n.overrides[As(e)]=t)}}return n}(i);i||r.push({level:"warning",code:"missing-content-types",message:"The DOCX package does not contain [Content_Types].xml."});const s={};for(const[o,d]of Object.entries(n.files)){if(d.dir)continue;const e=As(o),t=ed(e,a),n=td(e,t)?"xml":"binary",r="xml"===n?await d.async("string"):await d.async("base64");s[e]={path:e,...t?{contentType:t}:{},kind:n,data:r,encoding:"xml"===n?"utf8":"base64",originalHash:Ju(r)}}let l=[];for(const[o,d]of Object.entries(s)){const e=Rs(o);if(void 0===e||"xml"!==d.kind)continue;const t=Ps(e,$s(d.data),t=>{r.push({level:"warning",code:"unsafe-relationship-target",message:`Relationship ${t.id} points outside the OPC package.`,...e?{partPath:e}:{},relationshipId:t.id})});if(null===e){l=t;continue}const n=s[e];n?n.relationships=t:r.push({level:"warning",code:"orphan-relationships-part",message:`Relationship part ${o} has no owning package part.`,partPath:o})}const c=l.find(e=>"External"!==e.targetMode&&e.type.endsWith("/officeDocument"));let u=null==c?void 0:c.resolvedTarget;if(!u||!s[u]){if(!s[Ku])throw new Error("DOCX package has no resolvable officeDocument relationship or word/document.xml fallback.");u=Ku,r.push({level:"warning",code:"main-document-fallback",message:"The officeDocument relationship was absent or invalid; word/document.xml was used as a compatibility fallback."})}return{format:"docx",mainDocumentPart:u,contentTypes:a,rootRelationships:l,parts:s,...r.length>0?{diagnostics:r}:{}}}const rd="word/document.xml",od={"/styles":"word/styles.xml","/numbering":"word/numbering.xml","/settings":"word/settings.xml","/fontTable":"word/fontTable.xml","/theme":"word/theme/theme1.xml","/footnotes":"word/footnotes.xml","/endnotes":"word/endnotes.xml","/comments":"word/comments.xml","/commentsExtended":"word/commentsExtended.xml"};function id(e){const t=e.lastIndexOf("/"),n=t>=0?e.slice(0,t):"",r=t>=0?e.slice(t+1):e;return n?`${n}/_rels/${r}.rels`:`_rels/${r}.rels`}function ad(e,t,n){"base64"===n.encoding?e.file(t,n.data,{base64:!0}):e.file(t,n.data)}function sd(e){return`word/__oasis_source__/${e}`}function ld(e){return e?e.map(e=>"External"!==e.targetMode&&e.resolvedTarget?{...e,target:`/${sd(e.resolvedTarget)}`,resolvedTarget:void 0}:e):[]}function cd(e){for(const[t,n]of Object.entries(od))if(e.type.endsWith(t))return n}async function ud(e,t){if(!function(e){var t;if(e.mainDocumentPart!==rd)return!0;const n=e.parts[e.mainDocumentPart];return Boolean(null==(t=null==n?void 0:n.relationships)?void 0:t.some(e=>{const t=cd(e);return Boolean(t&&e.resolvedTarget&&e.resolvedTarget!==t)}))}(t))return e;const n=new o;for(const o of Object.values(t.parts))ad(n,o.path,o);for(const o of Object.values(t.parts)){if(o.path.endsWith(".rels")||"[Content_Types].xml"===o.path)continue;const e=sd(o.path);ad(n,e,o);const t=ld(o.relationships);t.length>0&&n.file(id(e),Ds(t))}const r=t.parts[t.mainDocumentPart];if(!r)throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);ad(n,rd,r);const i=ld(r.relationships);i.length>0&&n.file(id(rd),Ds(i));for(const o of r.relationships??[]){if("External"===o.targetMode||!o.resolvedTarget)continue;const e=cd(o),r=t.parts[o.resolvedTarget];if(!e||!r)continue;ad(n,e,r);const i=ld(r.relationships);i.length>0&&n.file(id(e),Ds(i))}return n.generateAsync({type:"arraybuffer"})}function dd(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 nd(t.buffer),n=await ud(t.buffer,e),r=await Ts(n,{onProgress:(e,n)=>{dd({type:"progress",id:t.id,stage:e,progress:n})}});await async function(e,t){try{t.rebuiltPartHashes=await Qu(e)}catch(n){(t.diagnostics??(t.diagnostics=[])).push({level:"warning",code:"rebuilt-baseline-unavailable",message:`The imported document could not be fingerprinted for granular source-part preservation: ${n instanceof Error?n.message:String(n)}`})}}(r,e),r.sourcePackage=e,dd({type:"done",id:t.id,document:r})}catch(n){dd({type:"error",id:t.id,error:n instanceof Error?n.message:String(n)})}})}();
12
+ */r.exports=function e(t,r,o){function i(s,l){if(!r[s]){if(!t[s]){if(!l&&n)return n(s);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,o)}return r[s].exports}for(var a=n,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){var r=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,l,c,u=[],d=0,f=e.length,p=f,h="string"!==r.getTypeOf(e);d<e.length;)p=f-d,o=h?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<p?(15&n)<<2|o>>6:64,c=2<p?63&o:64,u.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,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,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&p--,e.charAt(e.length-2)===i.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|p):new Array(0|p);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=i.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=n),64!==l&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(r.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 o(r.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,n){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).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,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.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 o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function o(e,t,n,o,a,u){var d,f,p=e.file,h=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(p.name)),v=i.transformTo("string",s.utf8encode(p.name)),w=p.comment,b=i.transformTo("string",u(w)),y=i.transformTo("string",s.utf8encode(w)),x=v.length!==p.name.length,N=y.length!==w.length,S="",E="",k="",_=p.dir,T=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!x&&!N||(C|=2048);var A,R,$,D=0,P=0;_&&(D|=16),"UNIX"===a?(P=798,D|=(A=p.unixPermissions,R=_,$=A,A||($=R?16893:33204),(65535&$)<<16)):(P=20,D|=function(e){return 63&(e||0)}(p.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,f=T.getUTCFullYear()-1980,f<<=4,f|=T.getUTCMonth()+1,f<<=5,f|=T.getUTCDate(),x&&(E=r(1,1)+r(l(g),4)+v,S+="up"+r(E.length,2)+E),N&&(k=r(1,1)+r(l(b),4)+y,S+="uc"+r(k.length,2)+k);var O="";return O+="\n\0",O+=r(C,2),O+=h.magic,O+=r(d,2),O+=r(f,2),O+=r(I.crc32,4),O+=r(I.compressedSize,4),O+=r(I.uncompressedSize,4),O+=r(g.length,2),O+=r(S.length,2),{fileRecord:c.LOCAL_FILE_HEADER+O+g+S,dirRecord:c.CENTRAL_FILE_HEADER+r(P,2)+O+r(b.length,2)+"\0\0\0\0"+r(D,4)+r(o,4)+g+S+b}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=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:n?(t+100*(n-r-1))/n: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 n=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,i=o(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),n)this.push({data:(t=e,c.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.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 n,o,a,s,l,u,d=this.bytesWritten-e,f=(n=this.dirRecords.length,o=d,a=e,s=this.zipComment,l=this.encodeFileName,u=i.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(o,4)+r(a,4)+r(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 n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}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,n){var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var i=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;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 r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var i=0;i<r.length;i++)n.push(c(r[i]));return o.Promise.all(n)}).then(function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,c=r.resolve(s.fileNameStr);n.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||(n.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(n.comment=o.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(i,o),i.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()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),n&&n(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){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,n){function r(e,t,n){var r,o=i.getTypeOf(t),s=i.extend(n||{},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&&(r=h(e))&&g.call(this,r,!0);var d="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.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",o="string");var v=null;v=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new p(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var w=new u(e,v,s);this.files[e]=w}var o=e("./utf8"),i=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"),p=e("./nodejs/NodejsStreamInputAdapter"),h=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]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var o=e;return this.filter(function(e,t){return!t.dir&&o.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},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 n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].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,n={};try{if((n=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");i.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(l){(t=new a("error")).error(l)}return new s(t,n.type||"string",n.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=w},{"./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,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},o.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=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.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,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.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=o},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.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=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.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=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.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=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),o=e("../utils");function i(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,r),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),o=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.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=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.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=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(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}r.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 n=0;n<this._listeners[e].length;n++)this._listeners[e][n].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=r},{}],29:[function(e,t,n){var r=e("../utils"),o=e("./ConvertWorker"),i=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(n,o){var i=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,n){i.push(e),t&&t(n)}).on("error",function(e){i=[],o(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,o=null,i=0;for(n=0;n<t.length;n++)i+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(i),n=0;n<t.length;n++)o.set(t[n],r),r+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),c);n(e)}catch(t){o(t)}i=[]}).resume()})}function d(e,t,n){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=n,r.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(s){this._worker=new i("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.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,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(i){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(i){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),o=e("./support"),i=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,n.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,n,r,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,i,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((o=e[t++])<128)l[n++]=o;else if(4<(i=s[o]))l[n++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(o.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:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],o=0,i=e.length;if(i<=n)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,i)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(i){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.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,i.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 i.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 i.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 i.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},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var o=t[r];"."===o||""===o&&0!==r&&r!==t.length-1||(".."===o?n.pop():n.push(o))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,s,c){return a.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(c?t=o.decode(t):i&&!0!==s&&(t=l(u=t,r.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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=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 ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},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",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},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,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},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(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.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(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.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(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=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,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-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 "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(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=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},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 n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(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=r(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,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new o(t,n,"")},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 n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(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++)r.prototype[c[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,r){(function(e){var t,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=i=++i%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;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}n.exports=function(e){1!==c.push(e)||r||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function o(){}var i={},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!==o&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}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 p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=h(function(){t(o,r)});"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},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 n=new this.constructor(o);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(o);++l<n;)u(e[l],l);return c;function u(e,o){t.resolve(e).then(function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))},function(e){r||(r=!0,i.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(o);++s<n;)a=e[s],t.resolve(a).then(function(e){r||(r=!0,i.resolve(l,e))},function(e){r||(r=!0,i.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=o.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 n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,h))!==c)throw new Error(a[n]);this._dict_set=!0}}function h(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(e,t){var n,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=i.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 o.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=h,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),o=e("./utils/common"),i=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=o.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 n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,f,p=this.strm,h=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?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(h),p.next_out=0,p.avail_out=h),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(p.output,p.next_out),c=p.next_out-l,d=i.buf2string(p.output,l),p.next_out=c,p.avail_out=h-c,c&&o.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.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=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.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,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=o=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(c){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var a=new r.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&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if(4<(i=a[o]))c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&n<s;)o=o<<6|63&e[n++],i--;1<i?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;i=i+(o=o+t[r++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,n){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,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,p=-1,h=4,m=2,g=8,v=9,w=286,b=30,y=19,x=2*w+1,N=15,S=3,E=258,k=E+S+1,_=42,T=113,I=1,C=2,A=3,R=4;function $(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function O(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,O(e.strm)}function L(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 B(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+E,p=c[i+a-1],h=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===h&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<f);if(r=E-(f-i),i=f-E,a<r){if(e.match_start=t,s<=(a=r))break;p=c[i+a-1],h=c[i+a]}}}while((t=d[t&u])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function U(e){var t,n,r,i,l,c,u,d,f,p,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-k)){for(o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;r=e.head[--t],e.head[t]=h<=r?r-h:0,--n;);for(t=n=h;r=e.prev[--t],e.prev[t]=h<=r?r-h:0,--n;);i+=h}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,p=void 0,(f=i)<(p=c.avail_in)&&(p=f),n=0===p?0:(c.avail_in-=p,o.arraySet(u,c.input,c.next_in,p,d),1===c.state.wrap?c.adler=a(c.adler,u,p,d):2===c.state.wrap&&(c.adler=s(c.adler,u,p,d)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=S)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+S-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<S)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<k){if(U(e),e.lookahead<k&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=B(e,n)),e.match_length>=S)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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 r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}function H(e,t){for(var n,r,o;;){if(e.lookahead<k){if(U(e),e.lookahead<k&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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=S-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=B(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-S,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=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=S-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return I}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}function j(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function q(){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 o.Buf16(2*x),this.dyn_dtree=new o.Buf16(2*(2*b+1)),this.bl_tree=new o.Buf16(2*(2*y+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(N+1),this.heap=new o.Buf16(2*w+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*w+1),P(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 W(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,e.adler=2===t.wrap?0:1,t.last_flush=c,i._tr_init(t),d):$(e,f)}function G(e){var t,n=W(e);return n===d&&((t=e.state).window_size=2*t.w_size,P(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=S-1,t.match_available=0,t.ins_h=0),n}function V(e,t,n,r,i,a){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||v<i||n!==g||r<8||15<r||t<0||9<t||a<0||h<a)return $(e,f);8===r&&(r=9);var l=new q;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.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=n,G(e)}r=[new j(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return I;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return I;if(e.strstart-e.block_start>=e.w_size-k&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),I)}),new j(4,4,8,4,z),new j(4,5,16,8,z),new j(4,6,32,32,z),new j(4,4,16,16,H),new j(8,16,32,32,H),new j(8,16,128,128,H),new j(8,32,128,256,H),new j(32,128,258,1024,H),new j(32,258,258,4096,H)],n.deflateInit=function(e,t){return V(e,t,g,15,8,0)},n.deflateInit2=V,n.deflateReset=G,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,o,a,l;if(!e||!e.state||5<t||t<0)return e?$(e,f):f;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&t!==u)return $(e,0===e.avail_out?-5:f);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===_)if(2===o.wrap)e.adler=0,L(o,31),L(o,139),L(o,8),o.gzhead?(L(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),L(o,255&o.gzhead.time),L(o,o.gzhead.time>>8&255),L(o,o.gzhead.time>>16&255),L(o,o.gzhead.time>>24&255),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(L(o,255&o.gzhead.extra.length),L(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(L(o,0),L(o,0),L(o,0),L(o,0),L(o,0),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,3),o.status=T);else{var p=g+(o.w_bits-8<<4)<<8;p|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(p|=32),p+=31-p%31,o.status=T,F(o,p),0!==o.strstart&&(F(o,e.adler>>>16),F(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending!==o.pending_buf_size));)L(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,L(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,L(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&O(e),o.pending+2<=o.pending_buf_size&&(L(o,255&e.adler),L(o,e.adler>>8&255),e.adler=0,o.status=T)):o.status=T),0!==o.pending){if(O(e),0===e.avail_out)return o.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return $(e,-5);if(666===o.status&&0!==e.avail_in)return $(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==c&&666!==o.status){var h=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return I;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=E){if(U(e),e.lookahead<=E&&t===c)return I;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0<e.strstart&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+E;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=E-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(n=i._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?I:C}(o,t):r[o.level].func(o,t);if(h!==A&&h!==R||(o.status=666),h===I||h===A)return 0===e.avail_out&&(o.last_flush=-1),d;if(h===C&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(P(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),O(e),0===e.avail_out))return o.last_flush=-1,d}return t!==u?d:o.wrap<=0?1:(2===o.wrap?(L(o,255&e.adler),L(o,e.adler>>8&255),L(o,e.adler>>16&255),L(o,e.adler>>24&255),L(o,255&e.total_in),L(o,e.total_in>>8&255),L(o,e.total_in>>16&255),L(o,e.total_in>>24&255)):(F(o,e.adler>>>16),F(o,65535&e.adler)),O(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==_&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?$(e,f):(e.state=null,t===T?$(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,i,s,l,c,u,p,h=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==_||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,h-n.w_size,n.w_size,0),t=p,h=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,U(n);n.lookahead>=S;){for(r=n.strstart,i=n.lookahead-(S-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+S-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=S-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){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,n){t.exports=function(e,t){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,w,b,y,x,N,S,E,k,_;n=e.state,r=e.next_in,k=e.input,o=r+(e.avail_in-5),i=e.next_out,_=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{h<15&&(p+=k[r++]<<h,h+=8,p+=k[r++]<<h,h+=8),b=m[p&v];t:for(;;){if(p>>>=y=b>>>24,h-=y,0==(y=b>>>16&255))_[i++]=65535&b;else{if(!(16&y)){if(!(64&y)){b=m[(65535&b)+(p&(1<<y)-1)];continue t}if(32&y){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(y&=15)&&(h<y&&(p+=k[r++]<<h,h+=8),x+=p&(1<<y)-1,p>>>=y,h-=y),h<15&&(p+=k[r++]<<h,h+=8,p+=k[r++]<<h,h+=8),b=g[p&w];n:for(;;){if(p>>>=y=b>>>24,h-=y,!(16&(y=b>>>16&255))){if(!(64&y)){b=g[(65535&b)+(p&(1<<y)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(N=65535&b,h<(y&=15)&&(p+=k[r++]<<h,(h+=8)<y&&(p+=k[r++]<<h,h+=8)),l<(N+=p&(1<<y)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=y,h-=y,(y=i-a)<N){if(u<(y=N-y)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=f,(S=0)===d){if(S+=c-y,y<x){for(x-=y;_[i++]=f[S++],--y;);S=i-N,E=_}}else if(d<y){if(S+=c+d-y,(y-=d)<x){for(x-=y;_[i++]=f[S++],--y;);if(S=0,d<x){for(x-=y=d;_[i++]=f[S++],--y;);S=i-N,E=_}}}else if(S+=d-y,y<x){for(x-=y;_[i++]=f[S++],--y;);S=i-N,E=_}for(;2<x;)_[i++]=E[S++],_[i++]=E[S++],_[i++]=E[S++],x-=3;x&&(_[i++]=E[S++],1<x&&(_[i++]=E[S++]))}else{for(S=i-N;_[i++]=_[S++],_[i++]=_[S++],_[i++]=_[S++],2<(x-=3););x&&(_[i++]=_[S++],1<x&&(_[i++]=_[S++]))}break}}break}}while(r<o&&i<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=h}},{}],49:[function(e,t,n){var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,p=852,h=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 r.Buf16(320),this.work=new r.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 r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(h),t.sane=1,t.back=-1,u):d}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,w(e))):d}function y(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var x,N,S=!0;function E(e){if(S){var t;for(x=new r.Buf32(512),N=new r.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,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,N,0,e.work,{bits:5}),S=!1}e.lencode=x,e.lenbits=9,e.distcode=N,e.distbits=5}function k(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}n.inflateReset=w,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,p,h,g,v,w,b,y,x,N,S,_,T,I,C,A,R,$,D,P,O,M,L,F,B=0,U=new r.Buf8(4),z=[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===(n=e.state).mode&&(n.mode=13),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,N=w,S=b,M=u;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(2&n.wrap&&35615===y){U[n.check=0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0),x=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,O=8+(15&(y>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&y?10:12,x=y=0;break;case 2:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=3;case 3:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.time=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,n.check=i(n.check,U,4,0)),x=y=0,n.mode=4;case 4:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(w<(_=n.length)&&(_=w),_&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,_,O)),512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===w)break e;for(_=0;O=p[g+_++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&_<w;);if(512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===w)break e;for(_=0;O=p[g+_++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&_<w;);if(512&n.flags&&(n.check=i(n.check,p,_,g)),w-=_,g+=_,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}e.adler=n.check=m(y),x=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}switch(n.last=1&y,x-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(E(n),n.mode=20,6!==t)break;y>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,x-=2;break;case 14:for(y>>>=7&x,x-=7&x;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,x=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(w<_&&(_=w),b<_&&(_=b),0===_)break e;r.arraySet(h,p,g,_,v),w-=_,g+=_,b-=_,v+=_,n.length-=_;break}n.mode=12;break;case 17:for(;x<14;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.nlen=257+(31&y),y>>>=5,x-=5,n.ndist=1+(31&y),y>>>=5,x-=5,n.ncode=4+(15&y),y>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.lens[z[n.have++]]=7&y,y>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(R<16)y>>>=C,x-=C,n.lens[n.have++]=R;else{if(16===R){for(F=C+2;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y>>>=C,x-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],_=3+(3&y),y>>>=2,x-=2}else if(17===R){for(F=C+3;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,_=3+(7&(y>>>=C)),y>>>=3,x-=3}else{for(F=C+7;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,_=11+(127&(y>>>=C)),y>>>=7,x-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},M=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},M=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=w&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,a(e,S),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(A&&!(240&A)){for($=C,D=A,P=R;A=(B=n.lencode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,n.length=R,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(B=n.distcode[y&(1<<n.distbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(!(240&A)){for($=C,D=A,P=R;A=(B=n.distcode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(_=S-b,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=_>n.wnext?(_-=n.wnext,n.wsize-_):n.wnext-_,_>n.length&&(_=n.length),I=n.window}else I=h,T=v-n.offset,_=n.length;for(b<_&&(_=b),b-=_,n.length-=_;h[v++]=I[T++],--_;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;h[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===w)break e;w--,y|=p[g++]<<x,x+=8}if(S-=b,e.total_out+=S,n.total+=S,S&&(e.adler=n.check=n.flags?i(n.check,h,S,v-S):o(n.check,h,S,v-S)),S=b,(n.flags?y:m(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=y=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,(n.wsize||S!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,S-e.avail_out)?(n.mode=31,-4):(N-=e.avail_in,S-=e.avail_out,e.total_in+=N,e.total_out+=S,n.total+=S,n.wrap&&S&&(e.adler=n.check=n.flags?i(n.check,h,S,e.next_out-S):o(n.check,h,S,e.next_out-S)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==N&&0===S||4===t)&&M===u&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&o(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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,n,l,c,u,d,f){var p,h,m,g,v,w,b,y,x,N=f.bits,S=0,E=0,k=0,_=0,T=0,I=0,C=0,A=0,R=0,$=0,D=null,P=0,O=new r.Buf16(16),M=new r.Buf16(16),L=null,F=0;for(S=0;S<=15;S++)O[S]=0;for(E=0;E<l;E++)O[t[n+E]]++;for(T=N,_=15;1<=_&&0===O[_];_--);if(_<T&&(T=_),0===_)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(k=1;k<_&&0===O[k];k++);for(T<k&&(T=k),S=A=1;S<=15;S++)if(A<<=1,(A-=O[S])<0)return-1;if(0<A&&(0===e||1!==_))return-1;for(M[1]=0,S=1;S<15;S++)M[S+1]=M[S]+O[S];for(E=0;E<l;E++)0!==t[n+E]&&(d[M[t[n+E]]++]=E);if(w=0===e?(D=L=d,19):1===e?(D=o,P-=257,L=i,F-=257,256):(D=a,L=s,-1),S=k,v=u,C=E=$=0,m=-1,g=(R=1<<(I=T))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(b=S-C,x=d[E]<w?(y=0,d[E]):d[E]>w?(y=L[F+d[E]],D[P+d[E]]):(y=96,0),p=1<<S-C,k=h=1<<I;c[v+($>>C)+(h-=p)]=b<<24|y<<16|x,0!==h;);for(p=1<<S-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,E++,0==--O[S]){if(S===_)break;S=t[n+d[E]]}if(T<S&&($&g)!==m){for(0===C&&(C=T),v+=k,A=1<<(I=S-C);I+C<_&&!((A-=O[I+C])<=0);)I++,A<<=1;if(R+=1<<I,1===e&&852<R||2===e&&592<R)return 1;c[m=$&g]=T<<24|I<<16|v-u}}return 0!==$&&(c[v+$]=S-C<<24|64<<16),f.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){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,n){var r=e("../utils/common"),o=0,i=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,p=2*u+1,h=15,m=16,g=7,v=256,w=16,b=17,y=18,x=[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],N=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(u+2));a(k);var _=new Array(2*d);a(_);var T=new Array(512);a(T);var I=new Array(256);a(I);var C=new Array(l);a(C);var A,R,$,D=new Array(d);function P(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?T[e]:T[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){F(e,n[2*t],n[2*t+1])}function U(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,o,i=new Array(h+1),a=0;for(r=1;r<=h;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=U(i[s]++,s))}}function H(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?L(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 q(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function W(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&q(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!q(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function G(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?B(e,o,t):(B(e,(i=I[o])+c+1,t),0!==(a=x[i])&&F(e,o-=C[i],a),B(e,i=M(--r),n),0!==(a=N[i])&&F(e,r-=D[i],a)),s<e.last_lit;);B(e,v,t)}function V(e,t){var n,r,o,i=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=p,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)W(e,i,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,W(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,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(i=0;i<=h;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(i=g,v++),l[2*r+1]=i,c<r||(e.bl_count[i]++,a=0,m<=r&&(a=f[r-m]),s=l[2*r],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==v){do{for(i=g-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[g]--,v-=2}while(0<v);for(i=g;0!==i;i--)for(r=e.bl_count[i];0!==r;)c<(o=e.heap[--n])||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),z(i,c,e.bl_count)}function X(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*y]++,i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function Z(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)for(;B(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(B(e,o,e.bl_tree),s--),B(e,w,e.bl_tree),F(e,s-3,2)):s<=10?(B(e,b,e.bl_tree),F(e,s-3,3)):(B(e,y,e.bl_tree),F(e,s-11,7));i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}a(D);var Y=!1;function Q(e,t,n,o){var i,a,l;F(e,(s<<1)+(o?1:0),3),a=t,l=n,j(i=e),L(i,l),L(i,~l),r.arraySet(i.pending_buf,i.window,a,l,i.pending),i.pending+=l}n._tr_init=function(e){Y||(function(){var e,t,n,r,o,i=new Array(h+1);for(r=n=0;r<l-1;r++)for(C[r]=n,e=0;e<1<<x[r];e++)I[n++]=r;for(I[n-1]=r,r=o=0;r<16;r++)for(D[r]=o,e=0;e<1<<N[r];e++)T[o++]=r;for(o>>=7;r<d;r++)for(D[r]=o<<7,e=0;e<1<<N[r]-7;e++)T[256+o++]=r;for(t=0;t<=h;t++)i[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,i[8]++;for(;e<=255;)k[2*e+1]=9,e++,i[9]++;for(;e<=279;)k[2*e+1]=7,e++,i[7]++;for(;e<=287;)k[2*e+1]=8,e++,i[8]++;for(z(k,u+1,i),e=0;e<d;e++)_[2*e+1]=5,_[2*e]=U(e,5);A=new P(k,x,c+1,u,h),R=new P(_,N,0,d,h),$=new P(new Array(0),S,0,f,g)}(),Y=!0),e.l_desc=new O(e.dyn_ltree,A),e.d_desc=new O(e.dyn_dtree,R),e.bl_desc=new O(e.bl_tree,$),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=Q,n._tr_flush_block=function(e,t,n,r){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return i;return o}(e)),V(e,e.l_desc),V(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),V(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*E[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=n+5,n+4<=a&&-1!==t?Q(e,t,n,r):4===e.strategy||s===a?(F(e,2+(r?1:0),3),G(e,k,_)):(F(e,4+(r?1:0),3),function(e,t,n,r){var o;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),o=0;o<r;o++)F(e,e.bl_tree[2*E[o]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&j(e)},n._tr_tally=function(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+c+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;F(e,2,3),B(e,v,k),16===(t=e).bi_valid?(L(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,n){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,n,r){(function(e){!function(e,t){if(!e.setImmediate){var n,r,o,i,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.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),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[a]=o,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.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 o=t(r.exports),i={};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"}),p=Object.keys(f).map(function(e){return f[e]});var h=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/"});i.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)s(t,n)&&(e[n]=t[n]);return e},i.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(s(e,r)){var o=e[r];if(t.call(void 0,o,r,e))return o}},i.freeze=a,i.HTML_BOOLEAN_ATTRIBUTES=l,i.HTML_RAW_TEXT_ELEMENTS=u,i.HTML_VOID_ELEMENTS=c,i.hasDefaultHTMLNamespace=function(e){return d(e)||e===f.XML_XHTML_APPLICATION},i.hasOwn=s,i.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},i.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},i.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},i.isHTMLMimeType=d,i.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},i.isValidMimeType=function(e){return p.indexOf(e)>-1},i.MIME_TYPE=f,i.NAMESPACE=h;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=i.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"}),w=Object.keys(v);function b(e){return"number"==typeof e&&e>=1&&e<=25}function y(e,t){var n;b(e)?(this.name=w[e],this.message=t||""):(this.message=e,this.name="string"==typeof(n=t)&&n.substring(n.length-v.Error.length)===v.Error?t:v.Error),Error.captureStackTrace&&Error.captureStackTrace(this,y)}g(y,!0),Object.defineProperties(y.prototype,{code:{enumerable:!0,get:function(){var e=w.indexOf(this.name);return b(e)?e:0}}});for(var x={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},N=Object.entries(x),S=0;S<N.length;S++){y[N[S][0]]=N[S][1]}function E(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,E)}g(E),m.DOMException=y,m.DOMExceptionName=v,m.ExceptionCode=x,m.ParseError=E;var k={},_={};function T(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(n){}return!1}var I=T();function C(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function A(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,""),I?"u":"")}function R(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var n="string"==typeof e;if(n&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return n?e:e.source}).join(""),I?"mu":"m")}function $(e){if(0===arguments.length)throw new Error("no parameters provided");return R.apply($,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var D=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;I&&(D=R("[",C(D),"\\u{10000}-\\u{10FFFF}","]"));var P=new RegExp("[^"+C(D)+"]",I?"u":""),O=/[\x20\x09\x0D\x0A]/,M=C(O),L=R(O,"+"),F=R(O,"*"),B=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;I&&(B=R("[",C(B),"\\u{10000}-\\u{10FFFF}","]"));var U=R("[",C(B),C(/[-.0-9\xB7]/),C(/[\u0300-\u036F\u203F-\u2040]/),"]"),z=R(B,U,"*"),H=R(U,"+"),j=R("&",z,";"),q=$(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),W=$(j,"|",q),G=R("%",z,";"),V=$(R('"',$(/[^%&"]/,"|",G,"|",W),"*",'"'),"|",R("'",$(/[^%&']/,"|",G,"|",W),"*","'")),X=$('"',$(/[^<&"]/,"|",W),"*",'"',"|","'",$(/[^<&']/,"|",W),"*","'"),Z=R(A(B,":"),A(U,":"),"*"),Y=R(Z,$(":",Z),"?"),Q=R("^",Y,"$"),K=R("(",Y,")"),J=$(/"[^"]*"|'[^']*'/),ee=R(/^<\?/,"(",z,")",$(L,"(",D,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,ne=$('"',te,'*"',"|","'",A(te,"'"),"*'"),re="\x3c!--",oe=R(re,$(A(D,"-"),"|",R("-",A(D,"-"))),"*","--\x3e"),ie="#PCDATA",ae=$(R(/\(/,F,ie,$(F,/\|/,F,Y),"*",F,/\)\*/),"|",R(/\(/,F,ie,F,/\)/)),se=$("EMPTY","|","ANY","|",ae,"|",R(/\([^>]+\)/,/[?*+]?/)),le=R("<!ELEMENT",L,$(Y,"|",G),L,$(se,"|",G),F,">"),ce=R("NOTATION",L,/\(/,F,z,$(F,/\|/,F,z),"*",F,/\)/),ue=R(/\(/,F,H,$(F,/\|/,F,H),"*",F,/\)/),de=$(ce,"|",ue),fe=$(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),pe=$(/#REQUIRED|#IMPLIED/,"|",$($("#FIXED",L),"?",X)),he=R("<!ATTLIST",L,z,$(L,z,L,fe,L,pe),"*",F,">"),me="about:legacy-compat",ge=$('"'+me+'"',"|","'"+me+"'"),ve="SYSTEM",we="PUBLIC",be=$($(ve,L,J),"|",$(we,L,ne,L,J)),ye=R("^",$($(ve,L,"(?<SystemLiteralOnly>",J,")"),"|",$(we,L,"(?<PubidLiteral>",ne,")",L,"(?<SystemLiteral>",J,")"))),xe=R("^",ne,"$"),Ne=R("^",J,"$"),Se=$(L,"NDATA",L,z),Ee="<!ENTITY",ke=R(Ee,L,z,L,$(V,"|",$(be,Se,"?")),F,">"),_e=$(V,"|",be),Te=$(ke,"|",R(Ee,L,"%",L,z,L,_e,F,">")),Ie=R(we,L,ne),Ce=R("<!NOTATION",L,z,L,$(be,"|",Ie),F,">"),Ae=R(F,"=",F),Re=/1[.]\d+/,$e=R(L,"version",Ae,$("'",Re,"'","|",'"',Re,'"')),De=/[A-Za-z][-A-Za-z0-9._]*/,Pe=R(/^<\?xml/,$e,$(L,"encoding",Ae,$('"',De,'"',"|","'",De,"'")),"?",$(L,"standalone",Ae,$("'",$("yes","|","no"),"'","|",'"',$("yes","|","no"),'"')),"?",F,/\?>/),Oe=R(D,"*?",/\]\]>/),Me=R(/<!\[CDATA\[/,Oe);_.chars=C,_.chars_without=A,_.detectUnicodeSupport=T,_.reg=R,_.regg=$,_.ABOUT_LEGACY_COMPAT=me,_.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,_.AttlistDecl=he,_.CDATA_START="<![CDATA[",_.CDATA_END="]]>",_.CDSect=Me,_.Char=D,_.Comment=oe,_.COMMENT_START=re,_.COMMENT_END="--\x3e",_.DOCTYPE_DECL_START="<!DOCTYPE",_.elementdecl=le,_.EntityDecl=Te,_.EntityValue=V,_.ExternalID=be,_.ExternalID_match=ye,_.Name=z,_.NotationDecl=Ce,_.Reference=W,_.PEReference=G,_.PI=ee,_.PUBLIC=we,_.PubidLiteral=ne,_.PubidLiteral_match=xe,_.QName=Y,_.QName_exact=Q,_.QName_group=K,_.S=L,_.SChar_s=M,_.S_OPT=F,_.SYSTEM=ve,_.SystemLiteral=J,_.SystemLiteral_match=Ne,_.InvalidChar=P,_.UNICODE_REPLACEMENT_CHARACTER="�",_.UNICODE_SUPPORT=I,_.XMLDecl=Pe;var Le=i,Fe=Le.find,Be=Le.hasDefaultHTMLNamespace,Ue=Le.hasOwn,ze=Le.isHTMLMimeType,He=Le.isHTMLRawTextElement,je=Le.isHTMLVoidElement,qe=Le.MIME_TYPE,We=Le.NAMESPACE,Ge=Symbol(),Ve=m,Xe=Ve.DOMException,Ze=Ve.DOMExceptionName,Ye=_;function Qe(e){if(e!==Ge)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(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function nt(e,t){tt(t),e=e||null;var n=null,r=t;if(t.indexOf(":")>=0){var o=t.split(":");n=o[0],r=o[1]}if(null!==n&&null===e)throw new Xe(Xe.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&e!==Le.NAMESPACE.XML)throw new Xe(Xe.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&e!==Le.NAMESPACE.XMLNS)throw new Xe(Xe.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Le.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new Xe(Xe.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,n,r]}function rt(e,t){for(var n in e)Ue(e,n)&&(t[n]=e[n])}function ot(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};r.prototype=t.prototype,r=new r,rt(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var it={},at=it.ELEMENT_NODE=1,st=it.ATTRIBUTE_NODE=2,lt=it.TEXT_NODE=3,ct=it.CDATA_SECTION_NODE=4,ut=it.ENTITY_REFERENCE_NODE=5,dt=it.ENTITY_NODE=6,ft=it.PROCESSING_INSTRUCTION_NODE=7,pt=it.COMMENT_NODE=8,ht=it.DOCUMENT_NODE=9,mt=it.DOCUMENT_TYPE_NODE=10,gt=it.DOCUMENT_FRAGMENT_NODE=11,vt=it.NOTATION_NODE=12,wt=Le.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 bt(e,t){if(t.length<e.length)return bt(t,e);var n=null;for(var r in e){if(e[r]!==t[r])return n;n=e[r]}return n}function yt(e){return e.guid||(e.guid=Math.random()),e.guid}function xt(){}function Nt(e,t){this._node=e,this._refresh=t,St(this)}function St(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(dn(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Ue(e,r)&&delete e[r];rt(n,e),e._inc=t}}function Et(){}function kt(e,t){for(var n=0;n<e.length;){if(e[n]===t)return n;n++}}function _t(e,t,n,r){if(r?t[kt(t,r)]=n:(t[t.length]=n,t.length++),e){n.ownerElement=e;var o=e.ownerDocument;o&&(r&&Pt(o,e,r),function(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===We.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(o,e,n))}}function Tt(e,t,n){var r=kt(t,n);if(r>=0){for(var o=t.length-1;r<=o;)t[r]=t[++r];if(t.length=o,e){var i=e.ownerDocument;i&&Pt(i,e,n),n.ownerElement=null}}}function It(){}function Ct(e){Qe(e)}function At(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Rt(e,t){$t(e,null,{enter:function(e){return!t(e)||$t.STOP}})}function $t(e,t,n){for(var r=[{node:e,context:t,phase:$t.ENTER}];r.length>0;){var o=r.pop();if(o.phase===$t.ENTER){var i=n.enter(o.node,o.context);if(i===$t.STOP)return $t.STOP;if(r.push({node:o.node,context:i,phase:$t.EXIT}),null==i)continue;for(var a=o.node.lastChild;a;)r.push({node:a,context:i,phase:$t.ENTER}),a=a.previousSibling}else n.exit&&n.exit(o.node,o.context)}}function Dt(e,t){Qe(e);var n=t||{};this.ownerDocument=this,this.contentType=n.contentType||qe.XML_APPLICATION,this.type=ze(this.contentType)?"html":"xml"}function Pt(e,t,n,r){e&&e._inc++,n.namespaceURI===We.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Ot(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n&&!n.nextSibling)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i,delete r[r.length]}}}function Mt(e,t){if(e!==t.parentNode)throw new Xe(Xe.NOT_FOUND_ERR,"child's parent is not parent");var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,Ot(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Lt(e){return e&&e.nodeType===Ct.DOCUMENT_TYPE_NODE}function Ft(e){return e&&e.nodeType===Ct.ELEMENT_NODE}function Bt(e){return e&&e.nodeType===Ct.TEXT_NODE}function Ut(e,t){var n=e.childNodes||[];if(Fe(n,Ft)||Lt(t))return!1;var r=Fe(n,Lt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function zt(e,t){var n=e.childNodes||[];if(Fe(n,function(e){return Ft(e)&&e!==t}))return!1;var r=Fe(n,Lt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function Ht(e,t,n){if(!function(e){return e&&(e.nodeType===Ct.DOCUMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.ELEMENT_NODE)}(e))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Xe(Xe.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Ct.CDATA_SECTION_NODE||e.nodeType===Ct.COMMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.DOCUMENT_TYPE_NODE||e.nodeType===Ct.ELEMENT_NODE||e.nodeType===Ct.PROCESSING_INSTRUCTION_NODE||e.nodeType===Ct.TEXT_NODE)}(t)||Lt(t)&&e.nodeType!==Ct.DOCUMENT_NODE)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Lt(t)){if(Fe(r,Lt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&a)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function qt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!zt(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!zt(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Lt(t)){if(Fe(r,function(e){return Lt(e)&&e!==n}))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Wt(e,t,n,r){Ht(e,t,n),e.nodeType===Ct.DOCUMENT_NODE&&(r||jt)(e,t,n);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===gt){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var s=n?n.previousSibling:e.lastChild;i.previousSibling=s,a.nextSibling=n,s?s.nextSibling=i:e.firstChild=i,null==n?e.lastChild=a:n.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return Ot(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Gt(e){Qe(e),this._nsMap=Object.create(null)}function Vt(e){Qe(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Xt(e){Qe(e)}function Zt(e){Qe(e)}function Yt(e){Qe(e)}function Qt(e){Qe(e)}function Kt(e){Qe(e)}function Jt(e){Qe(e)}function en(e){Qe(e)}function tn(e){Qe(e)}function nn(e){Qe(e)}function rn(e){Qe(e)}function on(){}function an(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 n=[],r=this.nodeType===ht&&this.documentElement||this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return cn(this,n,a,t),n.join("")}function sn(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===r&&o===We.XML||o===We.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===r)return a.namespace!==o}return!0}function ln(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,At),'"')}function cn(e,t,n,r){n||(n=[]);var o=r.nodeFilter,i=r.requireWellFormed,a=r.splitCDATASections,s="html"===(e.nodeType===ht?e:e.ownerDocument).type;$t(e,{ns:n},{enter:function(e,n){var l=n.ns;if(o){if(!(e=o(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 p,h=0;h<c.length;h++)if("xmlns"===c.item(h).name){p=c.item(h).value;break}if(!p)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){p=g.namespace;break}}if(p!==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(),w=0;w<u;w++){"xmlns"==(b=c.item(w)).prefix?v.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&v.push({prefix:"",namespace:b.value})}for(w=0;w<u;w++){var b;if(sn(b=c.item(w),0,v)){var y=b.prefix||"",x=b.namespaceURI;ln(t,y?"xmlns:"+y:"xmlns",x),v.push({prefix:y,namespace:x})}var N=o?o(b):b;N&&("string"==typeof N?t.push(N):ln(t,N.name,N.value))}if(d===f&&sn(e,0,v)){var S=e.prefix||"";x=e.namespaceURI;ln(t,S?"xmlns:"+S:"xmlns",x),v.push({prefix:S,namespace:x})}var E=!e.firstChild;if(E&&(s||e.namespaceURI===We.HTML)&&(E=je(d)),E)return t.push("/>"),null;if(t.push(">"),s&&He(d)){for(var k=e.firstChild;k;)k.data?t.push(k.data):cn(k,t,v.slice(),r),k=k.nextSibling;return t.push("</",f,">"),null}return{ns:v,tag:f};case ht:case gt:if(i&&e.nodeType===ht&&null==e.documentElement)throw new Xe("The Document has no documentElement",Ze.InvalidStateError);return{ns:l};case st:return ln(t,e.name,e.value),null;case lt:if(i&&Ye.InvalidChar.test(e.data))throw new Xe("The Text node data contains characters outside the XML Char production",Ze.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,At)),null;case ct:if(i&&-1!==e.data.indexOf("]]>"))throw new Xe('The CDATASection data contains "]]>"',Ze.InvalidStateError);return a?t.push(Ye.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),Ye.CDATA_END):t.push(Ye.CDATA_START,e.data,Ye.CDATA_END),null;case pt:if(i){if(Ye.InvalidChar.test(e.data))throw new Xe("The comment node data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Xe('The comment node data contains "--" or ends with "-"',Ze.InvalidStateError)}return t.push(Ye.COMMENT_START,e.data,Ye.COMMENT_END),null;case mt:var _=e.publicId,T=e.systemId;if(i){if(_&&!Ye.PubidLiteral_match.test(_))throw new Xe("DocumentType publicId is not a valid PubidLiteral",Ze.InvalidStateError);if(T&&"."!==T&&!Ye.SystemLiteral_match.test(T))throw new Xe("DocumentType systemId is not a valid SystemLiteral",Ze.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Xe('DocumentType internalSubset contains "]>"',Ze.InvalidStateError)}return t.push(Ye.DOCTYPE_DECL_START," ",e.name),_?(t.push(" ",Ye.PUBLIC," ",_),T&&"."!==T&&t.push(" ",T)):T&&"."!==T&&t.push(" ",Ye.SYSTEM," ",T),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ft:if(i){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Xe("The ProcessingInstruction target is not well-formed",Ze.InvalidStateError);if(Ye.InvalidChar.test(e.data))throw new Xe("The ProcessingInstruction data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Xe('The ProcessingInstruction data contains "?>"',Ze.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,n){n&&n.tag&&t.push("</",n.tag,">")}})}function un(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=new t.constructor(Ge);for(var a in t)if(Ue(t,a)){var s=t[a];"object"!=typeof s&&s!=i[a]&&(i[a]=s)}t.childNodes&&(i.childNodes=new xt),i.ownerDocument=e;var l=n;switch(i.nodeType){case at:var c=t.attributes,u=i.attributes=new Et,d=c.length;u._ownerElement=i;for(var f=0;f<d;f++)i.setAttributeNode(un(e,c.item(f),!0));break;case st:l=!0}return null!==o?o.appendChild(i):r=i,l?i:null}}),r}function dn(e,t,n){e[t]=n}function fn(e){for(var t=[],n=e.firstChild;n;)n.nodeType===at&&t.push(n),n=n.nextSibling;return t}xt.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 n=[],r=0;r<this.length;r++)cn(this[r],n,null,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},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}}}},Nt.prototype.item=function(e){return St(this),this[e]||null},ot(Nt,xt),Et.prototype={length:0,item:xt.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var n=this[t];if(n.nodeName===e)return n;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Xe(Xe.INUSE_ATTRIBUTE_ERR);var n=this.getNamedItemNS(e.namespaceURI,e.localName);return n===e?e:(_t(this._ownerElement,this,e,n),n)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Xe(Xe.NOT_FOUND_ERR,e);return Tt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);if(!n)throw new Xe(Xe.NOT_FOUND_ERR,e?e+" : "+t:t);return Tt(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){e||(e=null);for(var n=0;n<this.length;){var r=this[n];if(r.localName===t&&r.namespaceURI===e)return r;n++}return null}},Et.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}}}},It.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=qe.XML_APPLICATION;e===We.HTML?r=qe.XML_XHTML_APPLICATION:e===We.SVG&&(r=qe.XML_SVG_IMAGE);var o=new Dt(Ge,{contentType:r});if(o.implementation=this,o.childNodes=new xt,o.doctype=n||null,n&&o.appendChild(n),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,n,r){tt(e);var o=new Kt(Ge);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=n||"",o.internalSubset=r||"",o.childNodes=new xt,o},createHTMLDocument:function(e){var t=new Dt(Ge,{contentType:qe.HTML});if(t.implementation=this,t.childNodes=new xt,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var n=t.createElement("html");t.appendChild(n);var r=t.createElement("head");if(n.appendChild(r),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),r.appendChild(o)}n.appendChild(t.createElement("body"))}return t}},Ct.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 n=t.pop(),r=n.node,o=n.other;if(r.nodeType!==o.nodeType)return!1;switch(r.nodeType){case r.DOCUMENT_TYPE_NODE:if(r.name!==o.name)return!1;if(r.publicId!==o.publicId)return!1;if(r.systemId!==o.systemId)return!1;break;case r.ELEMENT_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.prefix!==o.prefix)return!1;if(r.localName!==o.localName)return!1;if(r.attributes.length!==o.attributes.length)return!1;for(var i=0;i<r.attributes.length;i++){var a=r.attributes.item(i),s=o.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case r.ATTRIBUTE_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.localName!==o.localName)return!1;if(r.value!==o.value)return!1;break;case r.PROCESSING_INSTRUCTION_NODE:if(r.target!==o.target||r.data!==o.data)return!1;break;case r.TEXT_NODE:case r.CDATA_SECTION_NODE:case r.COMMENT_NODE:if(r.data!==o.data)return!1}if(r.childNodes.length!==o.childNodes.length)return!1;for(i=r.childNodes.length-1;i>=0;i--)t.push({node:r.childNodes[i],other:o.childNodes[i]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Wt(this,e,t)},replaceChild:function(e,t){Wt(this,e,t,qt),t&&this.removeChild(t)},removeChild:function(e){return Mt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return un(this.ownerDocument||this,this,e)},normalize:function(){$t(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;null!==n&&n.nodeType===lt&&t.nodeType===lt?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(Ue(n,r)&&n[r]===e)return r;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Ue(n,e))return n[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,n=this,r=null,o=null;if(t instanceof Vt&&(t=(r=t).ownerElement),n instanceof Vt&&(n=(o=n).ownerElement,r&&t&&n===t))for(var i,a=0;i=n.attributes[a];a++){if(i===r)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_PRECEDING;if(i===o)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_FOLLOWING}if(!t||!n||n.ownerDocument!==t.ownerDocument)return wt.DOCUMENT_POSITION_DISCONNECTED+wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(yt(n.ownerDocument)>yt(t.ownerDocument)?wt.DOCUMENT_POSITION_FOLLOWING:wt.DOCUMENT_POSITION_PRECEDING);if(o&&t===n)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;if(r&&t===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!o&&l===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=n.parentNode;u;){if(!r&&u===t)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=bt(s,c);for(var f in d.childNodes){var p=d.childNodes[f];if(p===n)return wt.DOCUMENT_POSITION_FOLLOWING;if(p===t)return wt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(p)>=0)return wt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(p)>=0)return wt.DOCUMENT_POSITION_PRECEDING}return 0}},rt(it,Ct),rt(it,Ct.prototype),rt(wt,Ct),rt(wt,Ct.prototype),$t.STOP=Symbol("walkDOM.STOP"),$t.ENTER=0,$t.EXIT=1,Dt.prototype={implementation:null,nodeName:"#document",nodeType:ht,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Wt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===at&&(this.documentElement=e),e},removeChild:function(e){var t=Mt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Wt(this,e,t,qt),e.ownerDocument=this,t&&this.removeChild(t),Ft(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=t.cloneNode(!1);return i.ownerDocument=e,i.parentNode=null,null===o?r=i:o.appendChild(i),t.nodeType===st||n?i:null}}),r}(this,e,t)},getElementById:function(e){var t=null;return Rt(this.documentElement,function(n){if(n.nodeType==at&&n.getAttribute("id")==e)return t=n,!0}),t},createElement:function(e){var t=new Gt(Ge);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Be(this.contentType)&&(t.namespaceURI=We.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new xt,(t.attributes=new Et)._ownerElement=t,t},createDocumentFragment:function(){var e=new nn(Ge);return e.ownerDocument=this,e.childNodes=new xt,e},createTextNode:function(e){var t=new Zt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createComment:function(e){var t=new Yt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Xe(Xe.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Qt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new rn(Ge);return n.ownerDocument=this,n.childNodes=new xt,n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){if(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Vt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Ye.Name.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Xe("document is an html document",Ze.NotSupportedError);var t=new tn(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.nodeName=e,t},createElementNS:function(e,t){var n=nt(e,t),r=new Gt(Ge),o=r.attributes=new Et;return r.childNodes=new xt,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],o._ownerElement=r,r},createAttributeNS:function(e,t){var n=nt(e,t),r=new Vt(Ge);return r.ownerDocument=this,r.childNodes=new xt,r.nodeName=t,r.name=t,r.specified=!0,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],r}},ot(Dt,Ct),Gt.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===We.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 n=this.getAttributeNode(e);n?n.value=n.nodeValue=""+t:((n=this.ownerDocument._createAttribute(e)).value=n.nodeValue=""+t,this.setAttributeNode(n))},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 n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null},setAttributeNS:function(e,t,n){var r=nt(e,t)[2],o=this.getAttributeNodeNS(e,r);o?o.value=o.nodeValue=""+n:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+n,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new Nt(this,function(n){var r=[];return t.length>0&&Rt(n,function(o){if(o!==n&&o.nodeType===at){var i=o.getAttribute("class");if(i){var a=e===i;if(!a){var s=et(i);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&r.push(o)}}var l}),r})},getElementsByTagName:function(e){var t="html"===(this.nodeType===ht?this:this.ownerDocument).type,n=e.toLowerCase();return new Nt(this,function(r){var o=[];return Rt(r,function(i){i!==r&&i.nodeType===at&&(("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===We.HTML?n:e))&&o.push(i))}),o})},getElementsByTagNameNS:function(e,t){return new Nt(this,function(n){var r=[];return Rt(n,function(o){o===n||o.nodeType!==at||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)}),r})}},Dt.prototype.getElementsByClassName=Gt.prototype.getElementsByClassName,Dt.prototype.getElementsByTagName=Gt.prototype.getElementsByTagName,Dt.prototype.getElementsByTagNameNS=Gt.prototype.getElementsByTagNameNS,ot(Gt,Ct),Vt.prototype.nodeType=st,ot(Vt,Ct),Xt.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,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},ot(Xt,Ct),Zt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},ot(Zt,Xt),Yt.prototype={nodeName:"#comment",nodeType:pt},ot(Yt,Xt),Qt.prototype={nodeName:"#cdata-section",nodeType:ct},ot(Qt,Zt),Kt.prototype.nodeType=mt,ot(Kt,Ct),Jt.prototype.nodeType=vt,ot(Jt,Ct),en.prototype.nodeType=dt,ot(en,Ct),tn.prototype.nodeType=ut,ot(tn,Ct),nn.prototype.nodeName="#document-fragment",nn.prototype.nodeType=gt,ot(nn,Ct),rn.prototype.nodeType=ft,ot(rn,Xt),on.prototype.serializeToString=function(e,t){return an.call(e,t)},Ct.prototype.toString=an;try{Object.defineProperty&&(Object.defineProperty(Nt.prototype,"length",{get:function(){return St(this),this.$$length}}),Object.defineProperty(Ct.prototype,"textContent",{get:function(){if(this.nodeType===at||this.nodeType===gt){var e=[];return $t(this,null,{enter:function(t){return t.nodeType===at||t.nodeType===gt||(t.nodeType===ft||t.nodeType===pt?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(Gt.prototype,"children",{get:function(){return new Nt(this,fn)}}),Object.defineProperty(Dt.prototype,"children",{get:function(){return new Nt(this,fn)}}),Object.defineProperty(nn.prototype,"children",{get:function(){return new Nt(this,fn)}}),dn=function(e,t,n){e["$$"+t]=n})}catch(wd){}k._updateLiveList=St,k.Attr=Vt,k.CDATASection=Qt,k.CharacterData=Xt,k.Comment=Yt,k.Document=Dt,k.DocumentFragment=nn,k.DocumentType=Kt,k.DOMImplementation=It,k.Element=Gt,k.Entity=en,k.EntityReference=tn,k.LiveNodeList=Nt,k.NamedNodeMap=Et,k.Node=Ct,k.NodeList=xt,k.Notation=Jt,k.Text=Zt,k.ProcessingInstruction=rn,k.walkDOM=$t,k.XMLSerializer=on;var pn,hn,mn={},gn={};pn=gn,hn=i.freeze,pn.XML_ENTITIES=hn({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),pn.HTML_ENTITIES=hn({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:"‌"}),pn.entityMap=pn.HTML_ENTITIES;var vn={},wn=i,bn=_,yn=m,xn=wn.isHTMLEscapableRawTextElement,Nn=wn.isHTMLMimeType,Sn=wn.isHTMLRawTextElement,En=wn.hasOwn,kn=wn.NAMESPACE,_n=yn.ParseError,Tn=yn.DOMException;function In(){}In.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),Pn(t,t=Object.create(null)),function(e,t,n,r,o){var i=Nn(r.mimeType);e.indexOf(bn.UNICODE_REPLACEMENT_CHARACTER)>=0&&o.warning("Unicode replacement character detected, source encoding issues?");function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!i&&t!==e)return o.error("EntityRef: expecting ;"),e;var r=bn.Reference.exec(t);if(!r||r[0].length!==t.length)return o.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return En(n,s)?n[s]:"#"===s.charAt(0)?a(parseInt(s.substring(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>g){var n=e.substring(g,t).replace(Cn,s);f&&p(g),r.characters(n,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,f=r.locator;function p(t,n){for(;t>=u&&(n=d.exec(e));)c=u,u=n.index+n[0].length,f.lineNumber++;f.columnNumber=t-c+1}var h=[{currentNSMap:t}],m=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!i&&m.length>0)return o.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var w=r.doc,b=w.createTextNode(e.substring(g));if(w.documentElement)return o.error("Extra content at the end of the document");w.appendChild(b),r.currentElement=b}return}if(v>g){var y=e.substring(g,v);i||0!==m.length||(y=y.replace(new RegExp(bn.S_OPT.source,"g"),""))&&o.error("Unexpected content outside root element: '"+y+"'"),l(v)}switch(e.charAt(v+1)){case"/":var x=e.indexOf(">",v+2),N=e.substring(v+2,x>0?x:void 0);if(!N)return o.fatalError("end tag name missing");var S=x>0&&bn.reg("^",bn.QName_group,bn.S_OPT,"$").exec(N);if(!S)return o.fatalError('end tag name contains invalid characters: "'+N+'"');if(!r.currentElement&&!r.doc.documentElement)return;var E=m[m.length-1]||r.currentElement.tagName||r.doc.documentElement.tagName||"";if(E!==S[1]){var k=S[1].toLowerCase();if(!i||E.toLowerCase()!==k)return o.fatalError('Opening and ending tag mismatch: "'+E+'" != "'+N+'"')}var _=h.pop();m.pop();var T=_.localNSMap;if(r.endElement(_.uri,_.localName,E),T)for(var I in T)En(T,I)&&r.endPrefixMapping(I);x++;break;case"?":f&&p(v),x=Ln(e,v,r,o);break;case"!":f&&p(v),x=Mn(e,v,r,o,i);break;default:f&&p(v);var C=new Fn,A=h[h.length-1].currentNSMap,R=(x=Rn(e,v,C,A,s,o,i),C.length);if(C.closed||(i&&wn.isHTMLVoidElement(C.tagName)?C.closed=!0:m.push(C.tagName)),f&&R){for(var $=An(f,{}),D=0;D<R;D++){var P=C[D];p(P.offset),P.locator=An(f,{})}r.locator=$,$n(C,r,A)&&h.push(C),r.locator=f}else $n(C,r,A)&&h.push(C);i&&!C.closed?x=Dn(e,x,C.tagName,s,r):x++}}catch(wd){if(wd instanceof _n)throw wd;if(wd instanceof Tn)throw new _n(wd.name+": "+wd.message,r.locator,wd);o.error("element parse error: "+wd),x=-1}x>g?g=x:l(Math.max(v,g)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}};var Cn=/&#?\w+;?/g;function An(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Rn(e,t,n,r,o,i,a){function s(e,t,r){return En(n.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Cn,o),r)}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&&(i.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),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(t,c)).slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=l),4==u?(i.warning('attribute "'+f+'" missed quot(")!'),s(l,f,t)):(a||i.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:if(!a)return i.fatalError("AttValue: ' or \" expected")}return c;case"€":d=" ";default:if(d<=" ")switch(u){case 0:n.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);i.warning('attribute "'+f+'" missed quot(")!!'),s(l,f,t);case 5:u=6}else switch(u){case 2:a||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:i.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 $n(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],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==o&&(o=Object.create(null),Pn(n,n=Object.create(null))),n[d]=o[d]=l,a.uri=kn.XMLNS,t.startPrefixMapping(d,l))}for(i=e.length;i--;)(a=e[i]).prefix&&("xml"===a.prefix&&(a.uri=kn.XML),"xmlns"!==a.prefix&&(a.uri=n[a.prefix]));var f;(f=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,f),u=e.localName=r.slice(f+1)):(c=null,u=e.localName=r);var p=e.uri=n[c||""];if(t.startElement(p,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,u,r),o)for(c in o)En(o,c)&&t.endPrefixMapping(c)}function Dn(e,t,n,r,o){var i=xn(n);if(i||Sn(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);return i&&(s=s.replace(Cn,r)),o.characters(s,0,s.length),a}return t+1}function Pn(e,t){for(var n in e)En(e,n)&&(t[n]=e[n])}function On(e,t){var n=t;function r(t){return t=t||0,e.charAt(n+t)}function o(e){n+=e=e||1}function i(){return e.substring(n)}return{char:r,getIndex:function(){return n},getMatch:function(e){var t=bn.reg("^",e).exec(i());return t?(o(t[0].length),t[0]):null},getSource:function(){return e},skip:o,skipBlanks:function(){for(var t=0;n<e.length;){var i=r();if(" "!==i&&"\n"!==i&&"\t"!==i&&"\r"!==i)return t;t++,o()}return-1},substringFromIndex:i,substringStartsWith:function(t){return e.substring(n,n+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(n,n+t.length).toUpperCase()===t.toUpperCase()}}}function Mn(e,t,n,r,o){var i=On(e,t);switch(o?i.char(2).toUpperCase():i.char(2)){case"-":var a=i.getMatch(bn.Comment);return a?(n.comment(a,bn.COMMENT_START.length,a.length-bn.COMMENT_START.length-bn.COMMENT_END.length),i.getIndex()):r.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var s=i.getMatch(bn.CDSect);return s?o||n.currentElement?(n.startCDATA(),n.characters(s,bn.CDATA_START.length,s.length-bn.CDATA_START.length-bn.CDATA_END.length),n.endCDATA(),i.getIndex()):r.fatalError("CDATA outside of element"):r.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return r.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(o?!i.substringStartsWithCaseInsensitive(bn.DOCTYPE_DECL_START):!i.substringStartsWith(bn.DOCTYPE_DECL_START))return r.fatalError("Expected "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(bn.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=i.getMatch(bn.Name),!l.name)return r.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(o&&"html"!==l.name.toLowerCase()&&r.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(bn.PUBLIC)||i.substringStartsWith(bn.SYSTEM)){var c=bn.ExternalID_match.exec(i.substringFromIndex());if(!c)return r.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),i.skip(c[0].length)}else if(o&&i.substringStartsWithCaseInsensitive(bn.SYSTEM)){if(i.skip(bn.SYSTEM.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.SYSTEM+" at position "+i.getIndex());if(l.systemId=i.getMatch(bn.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return r.fatalError("Expected "+bn.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+bn.SYSTEM+" at position "+i.getIndex())}return o&&l.systemId&&!bn.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&r.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),o||(i.skipBlanks(),l.internalSubset=function(e,t){function n(e,t){var n=bn.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var r=e.getSource();if("["===e.char()){e.skip(1);for(var o=e.getIndex();e.getIndex()<r.length;){if(e.skipBlanks(),"]"===e.char()){var i=r.substring(o,e.getIndex());return e.skip(1),i}var a=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?a=e.getMatch(bn.elementdecl):"N"===e.char(3)&&(a=e.getMatch(bn.EntityDecl));break;case"A":a=e.getMatch(bn.AttlistDecl);break;case"N":a=e.getMatch(bn.NotationDecl);break;case"-":a=e.getMatch(bn.Comment)}else if("<"===e.char()&&"?"===e.char(1))a=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");a=e.getMatch(bn.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 ]")}}(i,r)),i.skipBlanks(),">"!==i.char()?r.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),n.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),n.endDTD(),i.getIndex());default:return r.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Ln(e,t,n,r){var o=e.substring(t).match(bn.PI);if(!o)return r.fatalError("Invalid processing instruction starting at position "+t);if("xml"===o[1].toLowerCase()){if(t>0)return r.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!bn.XMLDecl.test(e.substring(t)))return r.fatalError("xml declaration is not well-formed")}return n.processingInstruction(o[1],o[2]),t+o[0].length}function Fn(){this.attributeNames=Object.create(null)}Fn.prototype={setTagName:function(e){if(!bn.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!bn.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},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}},vn.XMLReader=In,vn.parseUtils=On,vn.parseDoctypeCommentOrCData=Mn;var Bn=i,Un=m,zn=gn,Hn=vn,jn=k.DOMImplementation,qn=Bn.hasDefaultHTMLNamespace,Wn=Bn.isHTMLMimeType,Gn=Bn.isValidMimeType,Vn=Bn.MIME_TYPE,Xn=Bn.NAMESPACE,Zn=Un.ParseError,Yn=Hn.XMLReader;function Qn(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Kn(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Bn.assign,this.domHandler=e.domHandler||Jn,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||Qn,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Jn(e){var t=e||{};this.mimeType=t.mimeType||Vn.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 er(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function tr(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function nr(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Kn.prototype.parseFromString=function(e,t){if(!Gn(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),r=zn.XML_ENTITIES,o=n[""]||null;qn(t)?(r=zn.HTML_ENTITIES,o=Xn.HTML):t===Vn.XML_SVG_IMAGE&&(o=Xn.SVG),n[""]=o,n.xml=n.xml||Xn.XML;var i=new this.domHandler({mimeType:t,defaultNamespace:o,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&i.setDocumentLocator(a);var s=new Yn;return s.errorHandler=i,s.domBuilder=i,!Bn.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),n,r),i.doc.documentElement||s.errorHandler.fatalError("missing root element"),i.doc},Jn.prototype={startDocument:function(){var e=new jn;this.doc=Wn(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,n,r){var o=this.doc,i=o.createElementNS(e,n||t),a=r.length;nr(this,i),this.currentElement=i,this.locator&&er(this.locator,i);for(var s=0;s<a;s++){e=r.getURI(s);var l=r.getValue(s),c=(n=r.getQName(s),o.createAttributeNS(e,n));this.locator&&er(r.getLocator(s),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&er(this.locator,n),nr(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=tr.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&er(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=tr.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&er(this.locator,r),nr(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,n,r);this.locator&&er(this.locator,i),nr(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(wd){throw new Zn("Reporting "+e+' "'+t+'" caused '+wd,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 Zn(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Jn.prototype[e]=function(){return null}}),mn.__DOMHandler=Jn,mn.DOMParser=Kn,mn.normalizeLineEndings=Qn,mn.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},mn.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rr=i;rr.assign,rr.hasDefaultHTMLNamespace,rr.isHTMLMimeType,rr.isValidMimeType,rr.MIME_TYPE,rr.NAMESPACE;var or=k.XMLSerializer,ir=mn.DOMParser;function ar(e){return`${e}:${crypto.randomUUID()}`}function sr(){return ar("bookmark")}function lr(){return ar("comment")}function cr(e=""){return{id:ar("run"),text:e,kind:"text"}}function ur(e=""){return{id:ar("paragraph"),type:"paragraph",runs:[cr(e)]}}function dr(e){return{id:ar("paragraph"),type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,n,r){const o={id:ar("run"),text:e};return t&&(o.styles={...t}),n?{...o,kind:"image",image:{...n}}:r?{...o,kind:"textBox",textBox:r}:{...o,kind:"text"}}(e.text,e.styles,e.image,e.textBox)):[cr("")]}}function fr(e,t=1,n){const r={id:ar("table-cell"),blocks:e.length>0?e:[ur("")]};return t>1&&(r.colSpan=t),(null==n?void 0:n.rowSpan)&&n.rowSpan>1&&(r.rowSpan=n.rowSpan),(null==n?void 0:n.vMerge)&&(r.vMerge=n.vMerge),r}function pr(e,t){const n={id:ar("table-row"),cells:e};return(null==t?void 0:t.isHeader)&&(n.isHeader=!0),n}const hr=96,mr=hr/72,gr=9525,vr=12700,wr=1440,br=1e5,yr=6e4,xr=14.6667,Nr=e=>({width:.5,type:"solid",color:e});function Sr(e,t,n){const r=`${n?"MediumShading1":"LightShading"}-Accent${e}`,o=Nr(n?"#ffffff":t.accent);return{id:r,name:`${n?"Medium Shading 1":"Light Shading"} Accent ${e}`,type:"table",qFormat:!0,uiPriority:(n?40:20)+e,tableStyle:{rowBandSize:1,tblLook:{firstRow:!0,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!1,noVBand:!0},borders:{borderTop:o,borderRight:o,borderBottom:o,borderLeft:o,borderInsideH:o,borderInsideV:o},conditionalFormats:{wholeTable:{shading:n?t.tint:"#ffffff"},firstRow:{shading:t.accent,textStyle:{bold:!0,color:"#ffffff"}},band1Horz:{shading:t.tint}}}}}const Er={TableNormal:{id:"TableNormal",name:"Table Normal",type:"table",isDefault:!0,uiPriority:0,tableStyle:{tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},TableGrid:{id:"TableGrid",name:"Table Grid",type:"table",qFormat:!0,uiPriority:1,tableStyle:{borders:{borderTop:Nr("#7f7f7f"),borderRight:Nr("#7f7f7f"),borderBottom:Nr("#7f7f7f"),borderLeft:Nr("#7f7f7f"),borderInsideH:Nr("#7f7f7f"),borderInsideV:Nr("#7f7f7f")},tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},...Object.fromEntries([{accent:"#4472c4",tint:"#d9e2f3"},{accent:"#ed7d31",tint:"#fce4d6"},{accent:"#a5a5a5",tint:"#e7e6e6"},{accent:"#ffc000",tint:"#fff2cc"},{accent:"#5b9bd5",tint:"#ddebf7"},{accent:"#70ad47",tint:"#e2f0d9"}].flatMap((e,t)=>{const n=t+1,r=Sr(n,e,!1),o=Sr(n,e,!0);return[[r.id,r],[o.id,o]]}))},kr={normal:{id:"normal",name:"Normal",type:"paragraph",qFormat:!0,uiPriority:0,paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:xr}},header:{id:"header",name:"Header",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",qFormat:!0,uiPriority:10,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",qFormat:!0,uiPriority:11,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",qFormat:!0,uiPriority:12,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",semiHidden:!0,basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",semiHidden:!0,basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",name:"Caption",type:"paragraph",qFormat:!0,uiPriority:35,basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}},...Er};function _r(e,t="value"){const n=e&&"object"==typeof e&&"type"in e?e.type:e;throw new Error(`Unhandled ${t}: ${String(n)}`)}function Tr(e){return"footnoteReference"===e.kind?e.footnoteReference:void 0}function Ir(e){return"endnoteReference"===e.kind?e.endnoteReference:void 0}function Cr(e,t){switch(e.kind){case"footnoteReference":return t.footnoteReference(e);case"endnoteReference":return t.endnoteReference(e);case"fieldChar":return t.fieldChar(e);case"fieldInstruction":return t.fieldInstruction(e);case"field":return t.field(e);case"textBox":return t.textBox(e);case"image":return t.image(e);case"sym":return t.sym(e);case"math":return t.math?t.math(e):t.text(e);case"text":return t.text(e);default:return _r(e,"run kind")}}const Ar="asset:";const Rr={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,rtl:!1,complexScript:!1,snapToGrid:!0,fitText:null,emphasisMark:null,textBorder:null,outline:!1,shadow:!1,emboss:!1,imprint:!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:xr,color:"#000000",highlight:null,shading:null,language:null,link:null},$r={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,mirrorIndents:!1,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null,suppressLineNumbers:!1,suppressAutoHyphens:!1,bidi:!1,kinsoku:!0,wordWrap:!0,overflowPunct:!0,topLinePunct:!1,autoSpaceDE:!0,autoSpaceDN:!0,adjustRightInd:!0,textAlignment:null,textboxTightWrap:null,divId:null,conditionalStyle:null,borderBetween:null,borderBar:null,framePrXml:null},Dr=816,Pr=1056,Or="portrait",Mr={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function Lr(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),n="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:n?e.height:e.width,height:n?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 Fr(e){const t=e.pageSettings;return Lr({width:(null==t?void 0:t.width)??Dr,height:(null==t?void 0:t.height)??Pr,orientation:(null==t?void 0:t.orientation)??Or,margins:{top:(null==t?void 0:t.margins.top)??Mr.top,right:(null==t?void 0:t.margins.right)??Mr.right,bottom:(null==t?void 0:t.margins.bottom)??Mr.bottom,left:(null==t?void 0:t.margins.left)??Mr.left,header:(null==t?void 0:t.margins.header)??Mr.header,footer:(null==t?void 0:t.margins.footer)??Mr.footer,gutter:(null==t?void 0:t.margins.gutter)??Mr.gutter},...(null==t?void 0:t.columns)?{columns:t.columns}:{}})}function Br(){return{merge(e,t){if(!t)return{...e};const n={...e};for(const[r,o]of Object.entries(t))void 0!==o&&(n[r]=o);return n}}}const Ur=Br(),zr=Br();function Hr(e,t){return Ur.merge(e,t)}function jr(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const n=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return n?n.id:void 0}function qr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?qr(n.basedOn,t):{},...n.textStyle??{}}}function Wr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?Wr(n.basedOn,t):{},...n.paragraphStyle??{}}}function Gr(e,t,n){const r=Hr(qr(t??jr(n),n),qr(null==e?void 0:e.styleId,n)),o=Hr(r,e);return{...Rr,...o}}function Vr(e,t){const n=(null==e?void 0:e.styleId)??jr(t),r=Wr(n,t),o=(i=r,a={...e,styleId:n},zr.merge(i,a));var i,a;return{...$r,...o}}function Xr(e,t){var n;if(!t)return"";if(!t.startsWith(Ar))return t;const r=t.slice(6),o=null==(n=null==e?void 0:e.assets)?void 0:n[r];return(null==o?void 0:o.url)??t}function Zr(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:Lr(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:Fr(e)}]}function Yr(e){return Zr(e)}function Qr(e){switch(e.type){case"paragraph":return[e];case"table":return e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks.flatMap(Qr)));default:return _r(e,"block")}}function Kr(e){const t=Object.fromEntries(Object.entries(Er).filter(([t])=>!(t in e)));return{...e,...t}}function Jr(e,t,n,r,o,i){const a=Lr(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:Dr,height:Pr,orientation:Or,margins:{...Mr}});return{schemaVersion:1,id:ar("document"),pageSettings:a,sections:n??[{id:"section:default",blocks:e,pageSettings:a}],styles:r?Kr(r):{...kr},metadata:o??{title:"Untitled document"},assets:i??void 0}}const eo="http://schemas.openxmlformats.org/markup-compatibility/2006",to={supportedNamespaces:new Set};function no(e,...t){return{supportedNamespaces:new Set([...e.supportedNamespaces,...t])}}function ro(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function oo(e){const t=e.parentNode;return 1===(null==t?void 0:t.nodeType)?t:null}function io(e,t){let n=e;const r=t?`xmlns:${t}`:"xmlns";for(;n;){const e=n.getAttribute(r);if(e)return e;n=oo(n)}}function ao(e,t){return e.getAttributeNS(eo,t)??e.getAttribute(`mc:${t}`)??void 0}function so(e,t){const n=[];let r=e;for(;r;)n.push(r),r=oo(r);const o=[];for(const i of n.reverse()){const e=ao(i,t);if(e)for(const t of e.split(/\s+/).filter(Boolean))o.push({element:i,token:t})}return o}function lo(e,t){const n=t.indexOf(":");if(n<1||n===t.length-1)return;const r=t.slice(0,n),o=t.slice(n+1),i=io(e,r);return i?`${i}\0${o}`:void 0}function co(e,t){var n;const r=null==(n=e.getAttribute("Requires"))?void 0:n.trim();return!!r&&r.split(/\s+/).every(n=>{const r=io(e,n);return Boolean(r&&t.supportedNamespaces.has(r))})}function uo(e,t){let n;for(const r of ro(e))if(r.namespaceURI===eo){if("Choice"===r.localName&&co(r,t))return r;"Fallback"===r.localName&&(n=r)}return n}function fo(e,t=to){const n=[],r=function(e){const t=new Set;for(const n of so(e,"Ignorable")){const e=io(n.element,n.token);e&&t.add(e)}return t}(e),o=function(e){const t=new Set;for(const n of so(e,"ProcessContent")){const e=lo(n.element,n.token);e&&t.add(e)}return t}(e);for(const i of ro(e)){if(i.namespaceURI===eo&&"AlternateContent"===i.localName){const e=uo(i,t);e&&n.push(...fo(e,t));continue}const e=i.namespaceURI??"";if(r.has(e)&&!t.supportedNamespaces.has(e)){const r=`${e}\0${i.localName??i.tagName}`;o.has(r)&&n.push(...fo(i,t));continue}n.push(i)}return n}const po="http://schemas.openxmlformats.org/wordprocessingml/2006/main",ho="http://schemas.openxmlformats.org/drawingml/2006/main",mo="http://schemas.microsoft.com/office/word/2010/wordml",go="http://schemas.microsoft.com/office/word/2012/wordml",vo=no(to,mo),wo=no(to,go);function bo(e,t,n){return e?fo(e).filter(e=>e.namespaceURI===t&&e.localName===n):[]}const yo=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function xo(e){return yo.includes(e)?e:void 0}function No(e,t,n){return bo(e,t,n)[0]??null}function So(e,t){return e?fo(e,vo).find(e=>e.namespaceURI===mo&&e.localName===t)??null:null}function Eo(e,t){return e?fo(e,wo).find(e=>e.namespaceURI===go&&e.localName===t)??null:null}function ko(e,t){return e?e.getAttributeNS(po,t)??e.getAttributeNS(mo,t)??e.getAttributeNS(go,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(`w15:${t}`)??e.getAttribute(t):null}function _o(e,t){for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if(1===(null==r?void 0:r.nodeType)){const e=r;if(e.localName===t)return e;const n=_o(e,t);if(n)return n}}return null}function To(e){const t={},n=e.attributes;for(let r=0;r<n.length;r+=1){const e=n[r];if(!e)continue;const o=e.namespaceURI;if(!o||o===po||o===eo)continue;if("xmlns"===e.prefix||"xmlns"===e.localName)continue;const i=e.localName??e.name;if(!i)continue;t[e.prefix?`${e.prefix}:${i}`:i]=e.value}return Object.keys(t).length>0?t:void 0}function Io(e){return"1"===e||"true"===e||"on"===e}function Co(e,t){const n=No(e,po,t);if(!n)return;const r=ko(n,"val");return null==r||"0"!==r&&"false"!==r&&"off"!==r&&Io(r)}function Ao(e,t){return ko(No(e,po,t),"val")??void 0}async function Ro(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}const $o={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"},Do={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/bmp":"bmp","image/tiff":"tif","image/svg+xml":"svg","image/x-emf":"emf","image/x-wmf":"wmf"};function Po(e){return Do[e.toLowerCase()]??null}async function Oo(e,t,n){let r=n;r.startsWith("/")&&(r=r.slice(1)),r.startsWith("word/")||(r="word/"+n);const o=e.file(r),i=function(e){var t;const n=null==(t=e.split(".").pop())?void 0:t.toLowerCase();return n?$o[n]??null:null}(n)??"image/png",a=await(null==o?void 0:o.async("base64"));if(a)return function(e,t,n){const r=e.byPath.get(t);if(r)return`${Ar}${r}`;const o=`img-${e.nextId}`;return e.nextId+=1,e.assets[o]={id:o,url:n},e.byPath.set(t,o),`${Ar}${o}`}(t,r,`data:${i};base64,${a}`)}function Mo(e){var t;const n=new Map;if(!e)return n;const r=null==(t=(new ir).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!r)return n;for(let o=0;o<r.length;o+=1){const e=r[o];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),r=t.getAttribute("Target");e&&r&&n.set(e,r)}}}return n}async function Lo(e,t){var n;const r=t.lastIndexOf("/"),o=r>=0?t.slice(0,r):"",i=r>=0?t.slice(r+1):t,a=o?`${o}/_rels/${i}.rels`:`_rels/${i}.rels`;return Mo(await(null==(n=e.file(a))?void 0:n.async("string")))}const Fo=e=>{var t;const n=No(e,ho,"latin");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||void 0},Bo=e=>{var t;const n=No(e,ho,"cs");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Fo(e)},Uo=e=>{var t;const n=No(e,ho,"ea");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Fo(e)};function zo(e,t){const n=10**t;return Math.round(e*n)/n}function Ho(e,t){const n=e?Number(e):Number.NaN;return Number.isFinite(n)?Math.round(n/wr*hr):t}function jo(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return zo(t/20,4)}function qo(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}const Wo=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Go(e){const t=No(e,ho,"srgbClr");if(t)return qo(ko(t,"val"));const n=No(e,ho,"sysClr");return n?qo(ko(n,"lastClr")):void 0}function Vo(e){if(!e)return;const t=Number.parseInt(e,16);return Number.isFinite(t)?t/255:void 0}function Xo(e,t,n){const r=e=>{return(t=e,Math.min(255,Math.max(0,Math.round(t)))).toString(16).padStart(2,"0").toUpperCase();var t};return`#${r(e)}${r(t)}${r(n)}`}function Zo(e,t){const n=ko(e,"themeColor");if(!n)return;const r=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}}(n),o=r?t[r]:void 0;if(!o)return;let i=Number.parseInt(o.slice(1,3),16),a=Number.parseInt(o.slice(3,5),16),s=Number.parseInt(o.slice(5,7),16);const l=Vo(ko(e,"themeShade"));void 0!==l&&(i*=l,a*=l,s*=l);const c=Vo(ko(e,"themeTint"));if(void 0!==c){const e=255*(1-c);i=i*c+e,a=a*c+e,s=s*c+e}return Xo(i,a,s)}function Yo(e){if(!e)return{fonts:{},colors:{}};const t=(new ir).parseFromString(e,"application/xml").documentElement,n=t?bo(t,ho,"themeElements")[0]??null:null,r=function(e){const t=No(e,ho,"fontScheme"),n=No(t,ho,"majorFont"),r=No(t,ho,"minorFont");return{majorHAnsi:Fo(n),minorHAnsi:Fo(r),majorEastAsia:Uo(n),minorEastAsia:Uo(r),majorBidi:Bo(n),minorBidi:Bo(r)}}(n),o=function(e){const t=No(e,ho,"clrScheme");if(!t)return{};const n={};for(const r of Wo){const e=Go(No(t,ho,r));e&&(n[r]=e)}return n}(n),i=n?bo(n,ho,"fmtScheme")[0]:void 0;return{fonts:r,colors:o,data:{name:(null==t?void 0:t.getAttribute("name"))||void 0,colors:{...o},fonts:{major:Object.fromEntries(Object.entries(r).filter(([e])=>e.startsWith("major"))),minor:Object.fromEntries(Object.entries(r).filter(([e])=>e.startsWith("minor")))},effectsXml:i?Array.from(i.childNodes).map(e=>(new or).serializeToString(e)).join(""):void 0,sourceXml:e}}}const Qo={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},Ko={continuous:"continuous",eachSect:"eachSection"};function Jo(e){if(!e)return;const t={},n=ko(No(e,po,"numFmt"),"val");n&&Qo[n]&&(t.numberFormat=Qo[n]);const r=Number.parseInt(ko(No(e,po,"numStart"),"val")??"",10);Number.isFinite(r)&&r>0&&(t.startAt=r);const o=ko(No(e,po,"numRestart"),"val");return o&&Ko[o]&&(t.restart=Ko[o]),Object.keys(t).length>0?t:void 0}function ei(e){return e.ooxmlNumbering}function ti(e){const t=ei(e);if((null==t?void 0:t.format)&&t.importedKind===e.kind&&t.importedFormat===e.format)return t.format}const ni={decimal:"decimal",lowerLetter:"lowerLetter",upperLetter:"upperLetter",lowerRoman:"lowerRoman",upperRoman:"upperRoman",bullet:"bullet"};function ri(e){const t=ko(e,"val");if(null==t)return;const n=Number.parseInt(t,10);return Number.isFinite(n)?n:void 0}function oi(e,t){if(!e||!/^\d+$/.test(e))return;const n=Number.parseInt(e,10);return Number.isSafeInteger(n)&&n>=t?n:void 0}function ii(e){const t={},n=ko(No(e,po,"numFmt"),"val");n&&(t.kind="bullet"===n?"bullet":"ordered",t.format=ni[n],t.rawFormat=n);const r=ko(No(e,po,"suff"),"val");"tab"!==r&&"space"!==r&&"nothing"!==r||(t.suffix=r);const o=ri(No(e,po,"start"));void 0!==o&&(t.startAt=o),t.levelText=ko(No(e,po,"lvlText"),"val")??void 0;const i=ko(No(e,po,"lvlJc"),"val");"left"!==i&&"center"!==i&&"right"!==i||(t.alignment=i);const a=No(e,po,"isLgl");var s;a&&(t.legal=null==(s=ko(a,"val"))||"1"===s||"true"===s||"on"===s);const l=ri(No(e,po,"lvlRestart"));void 0!==l&&(t.restartAfterLevel=l),t.paragraphStyleId=ko(No(e,po,"pStyle"),"val")??void 0,"bullet"===t.kind&&t.levelText&&(t.bulletGlyph=t.levelText);const c=No(e,po,"rPr"),u=No(c,po,"rFonts");t.bulletFont=ko(u,"ascii")??ko(u,"hAnsi")??void 0;const d=No(e,po,"pPr"),f=No(d,po,"ind");if(f){const e=ko(f,"left")??ko(f,"start"),n=ko(f,"hanging"),r=null!=e?Ho(e,0):void 0,o=null!=n?Ho(n,0):void 0;void 0===r&&void 0===o||(t.indent={left:r,hanging:o})}return t}function ai(e,t,n){const r=e.numToAbstractId.get(t),o=r?e.abstractLevels.get(`${r}:${n}`):void 0;return e.numOverrideLevels.get(`${t}:${n}`)??o??{}}function si(e){if(!e)return;const t=ko(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const n=Number(ko(e,"sz")),r=Number.isFinite(n)&&n>0?zo(n/8,4):.75,o=qo(ko(e,"color"))??"#000000",i=(null==t?void 0:t.toLowerCase())??"single";return{width:r,type:i.includes("dotted")||i.includes("dot")?"dotted":i.includes("dash")?"dashed":"solid",color:o}}function li(e){return e?{borderTop:si(No(e,po,"top")),borderRight:si(No(e,po,"right")),borderBottom:si(No(e,po,"bottom")),borderLeft:si(No(e,po,"left")),borderStart:si(No(e,po,"start")),borderEnd:si(No(e,po,"end")),borderTopLeftToBottomRight:si(No(e,po,"tl2br")),borderTopRightToBottomLeft:si(No(e,po,"tr2bl")),borderBetween:si(No(e,po,"between")),borderBar:si(No(e,po,"bar"))}:{}}function ci(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function ui(e){return Object.keys(e).length>0?e:void 0}function di(e,t){return ui({...e??{},...t??{}})}function fi(e,t){const n=qo(ko(e,"fill"));return n||(t?Zo(e,t):void 0)}function pi(e){if(!e)return;const t=ko(e,"id"),n=ko(e,"author"),r=ko(e,"date");if(!t||!n||!r)return;const o=Date.parse(r);return Number.isFinite(o)?{id:t,author:n,date:o}:void 0}function hi(e){const t=No(e,mo,"solidFill");if(t){const e=function(e){const t=No(e,mo,"srgbClr");if(!t)return null;const n=ko(t,"val");return n?qo(n)??null:null}(t);if(e)return{type:"solid",color:e}}const n=No(e,mo,"gradFill");if(n){const e=No(n,mo,"gsLst");if(e){const t=[];for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI!==mo||"gs"!==o.localName)continue;const i=ko(o,"pos"),a=null!==i?Number(i)/br:NaN;if(!Number.isFinite(a))continue;const s=No(o,mo,"srgbClr");if(!s)continue;const l=ko(s,"val");if(!l)continue;const c=qo(l);if(!c)continue;const u=No(s,mo,"alpha"),d=u?ko(u,"val"):null,f=null!==d?Number(d)/br:void 0,p={position:a,color:c};void 0!==f&&Number.isFinite(f)&&(p.alpha=f),t.push(p)}if(t.length>0){const e=No(n,mo,"lin"),r=e?ko(e,"ang"):null,o=null!==r?Number(r)/yr:void 0,i={type:"gradient",stops:t};return void 0!==o&&Number.isFinite(o)&&(i.angle=o),i}}}return null}function mi(e){const t=No(e,mo,"srgbClr");if(!t)return null;const n=ko(t,"val"),r=n?qo(n)??null:null;if(!r)return null;const o=No(t,mo,"alpha"),i=o?ko(o,"val"):null,a=null!==i&&Number.isFinite(Number(i))?Number(i)/br:void 0;return{color:r,...void 0!==a?{alpha:a}:{}}}function gi(e,t){if(!e)return;const n=Gr(e,t,kr),r=Gr(void 0,t,kr),o=(e,t)=>e!==t?e:void 0,i=(e,t,n)=>void 0!==e?e:o(t,n);return ci({styleId:e.styleId,bold:i(e.bold,n.bold,r.bold),italic:i(e.italic,n.italic,r.italic),underline:o(n.underline,r.underline),underlineStyle:o(n.underlineStyle,r.underlineStyle),underlineColor:o(n.underlineColor,r.underlineColor),strike:i(e.strike,n.strike,r.strike),doubleStrike:i(e.doubleStrike,n.doubleStrike,r.doubleStrike),superscript:o(n.superscript,r.superscript),subscript:o(n.subscript,r.subscript),smallCaps:i(e.smallCaps,n.smallCaps,r.smallCaps),allCaps:i(e.allCaps,n.allCaps,r.allCaps),hidden:i(e.hidden,n.hidden,r.hidden),noProof:i(e.noProof,n.noProof,r.noProof),webHidden:i(e.webHidden,n.webHidden,r.webHidden),specVanish:i(e.specVanish,n.specVanish,r.specVanish),rtl:i(e.rtl,n.rtl,r.rtl),complexScript:i(e.complexScript,n.complexScript,r.complexScript),snapToGrid:i(e.snapToGrid,n.snapToGrid,r.snapToGrid),outline:i(e.outline,n.outline,r.outline),shadow:i(e.shadow,n.shadow,r.shadow),emboss:i(e.emboss,n.emboss,r.emboss),imprint:i(e.imprint,n.imprint,r.imprint),fitText:o(n.fitText,r.fitText),emphasisMark:o(n.emphasisMark,r.emphasisMark),textBorder:o(n.textBorder,r.textBorder),textEffect:o(n.textEffect,r.textEffect),characterScale:o(n.characterScale,r.characterScale),characterSpacing:o(n.characterSpacing,r.characterSpacing),baselineShift:o(n.baselineShift,r.baselineShift),kerningThreshold:o(n.kerningThreshold,r.kerningThreshold),ligatures:o(n.ligatures,r.ligatures),numberSpacing:o(n.numberSpacing,r.numberSpacing),numberForm:o(n.numberForm,r.numberForm),stylisticSet:o(n.stylisticSet,r.stylisticSet),contextualAlternates:o(n.contextualAlternates,r.contextualAlternates),fontFamily:i(e.fontFamily,n.fontFamily,r.fontFamily),fontSize:i(e.fontSize,n.fontSize,r.fontSize),color:o(n.color,r.color),textFill:o(n.textFill,r.textFill),textOutline:o(n.textOutline,r.textOutline),textShadow:o(n.textShadow,r.textShadow),glow:o(n.glow,r.glow),reflection:o(n.reflection,r.reflection),scene3dXml:o(n.scene3dXml,r.scene3dXml),props3dXml:o(n.props3dXml,r.props3dXml),highlight:o(n.highlight,r.highlight),shading:o(n.shading,r.shading),language:o(n.language,r.language),link:o(n.link,r.link),propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:gi(e.propertyRevision.previous,t)??{}}:void 0})}function vi(e,t){if(!e)return;const n={},r=Ao(e,"rStyle");r&&(n.styleId=r);const o=Co(e,"b"),i=Co(e,"bCs");void 0===o&&void 0===i||(n.bold=!0===o||!0===i);const a=Co(e,"i"),s=Co(e,"iCs");void 0===a&&void 0===s||(n.italic=!0===a||!0===s);const l=Co(e,"strike");void 0!==l&&(n.strike=l);const c=Co(e,"dstrike");void 0!==c&&(n.doubleStrike=c);const u=Co(e,"smallCaps");void 0!==u&&(n.smallCaps=u);const d=Co(e,"caps");void 0!==d&&(n.allCaps=d);const f=Co(e,"vanish");void 0!==f&&(n.hidden=f);const p=Co(e,"noProof");void 0!==p&&(n.noProof=p);const h=Co(e,"webHidden");void 0!==h&&(n.webHidden=h);const m=Co(e,"specVanish");void 0!==m&&(n.specVanish=m);const g=Co(e,"rtl");void 0!==g&&(n.rtl=g);const v=Co(e,"cs");void 0!==v&&(n.complexScript=v);const w=Co(e,"snapToGrid");void 0!==w&&(n.snapToGrid=w);const b=Co(e,"outline");void 0!==b&&(n.outline=b);const y=Co(e,"shadow");void 0!==y&&(n.shadow=y);const x=Co(e,"emboss");void 0!==x&&(n.emboss=x);const N=Co(e,"imprint");void 0!==N&&(n.imprint=N);const S=ko(No(e,po,"em"),"val");"dot"!==S&&"comma"!==S&&"circle"!==S&&"underDot"!==S&&"none"!==S||(n.emphasisMark=S);const E=ko(No(e,po,"fitText"),"val");if(E){const e=jo(E);void 0!==e&&e>0&&(n.fitText=e)}const k=si(No(e,po,"bdr"));k&&(n.textBorder=k);const _=ko(No(e,po,"effect"),"val");_&&(n.textEffect=_);const T=ko(No(e,po,"w"),"val");if(T){const e=Number(T);Number.isFinite(e)&&e>0&&(n.characterScale=e)}const I=ko(No(e,po,"spacing"),"val");if(I){const e=jo(I);void 0!==e&&(n.characterSpacing=e)}const C=ko(No(e,po,"position"),"val");if(C){const e=Number(C);Number.isFinite(e)&&(n.baselineShift=e/2)}const A=ko(No(e,po,"kern"),"val");if(A){const e=Number(A);Number.isFinite(e)&&e>=0&&(n.kerningThreshold=e/2)}const R=ko(No(e,mo,"ligatures"),"val");"none"!==R&&"standard"!==R&&"contextual"!==R&&"historical"!==R&&"standardContextual"!==R||(n.ligatures=R);const $=ko(No(e,mo,"numSpacing"),"val");"proportional"!==$&&"tabular"!==$||(n.numberSpacing=$);const D=ko(No(e,mo,"numForm"),"val");"lining"!==D&&"oldStyle"!==D||(n.numberForm=D);const P=ko(No(e,mo,"stylisticSets"),"val");if(P){const e=/^[0-9a-fA-F]+$/.test(P)&&P.length>2?Number.parseInt(P,16):Number(P);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){n.stylisticSet=t;break}}const O=ko(No(e,mo,"cntxtAlts"),"val");null===O?No(e,mo,"cntxtAlts")&&(n.contextualAlternates=!0):Io(O)&&(n.contextualAlternates=!0);const M=No(e,po,"u"),L=ko(M,"val");if(M&&"none"!==L){n.underline=!0,L&&"single"!==L&&(n.underlineStyle=L);const e=ko(M,"color");e&&"auto"!==e&&(n.underlineColor=qo(e))}const F=ko(No(e,po,"vertAlign"),"val");"superscript"===F&&(n.superscript=!0),"subscript"===F&&(n.subscript=!0);const B=No(e,po,"rFonts"),U=ko(B,"ascii")??ko(B,"hAnsi")??ko(B,"cs")??ko(B,"eastAsia")??function(e,t){const n=ko(e,"asciiTheme")??ko(e,"hAnsiTheme")??ko(e,"eastAsiaTheme")??ko(e,"cstheme");if(!n)return;const r="majorAscii"===n||"majorHAnsi"===n?"majorHAnsi":"minorAscii"===n||"minorHAnsi"===n?"minorHAnsi":"majorEastAsia"===n?"majorEastAsia":"minorEastAsia"===n?"minorEastAsia":"majorBidi"===n?"majorBidi":"minorBidi"===n?"minorBidi":void 0;return r?t[r]:void 0}(B,t.fonts);U&&(n.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"}`}(U));const z=ko(No(e,po,"sz")??No(e,po,"szCs"),"val");if(z){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?zo(t/2/72*hr,4):null}(z);null!==e&&(n.fontSize=e)}const H=No(e,po,"color"),j=ko(H,"val");if(j&&"auto"!==j)n.color=qo(j);else if("auto"!==j){const e=Zo(H,t.colors);e&&(n.color=e)}const q=So(e,"textFill");if(q){const e=hi(q);e&&(n.textFill=e)}const W=So(e,"textOutline");if(W){const e=W.getAttributeNS(mo,"w"),t=null!==e?Number(e):NaN,r={widthPt:Number.isFinite(t)&&t>0?t/vr:.5},o=hi(W);o&&(r.fill=o,"solid"===o.type?r.color=o.color:"gradient"===o.type&&o.stops[0]&&(r.color=o.stops[0].color)),n.textOutline=r}const G=So(e,"shadow");if(G){const e=function(e){const t=mi(e);if(!t)return null;const n=e.getAttributeNS(mo,"blurRad"),r=e.getAttributeNS(mo,"dist"),o=e.getAttributeNS(mo,"dir"),i=n?Number(n)/vr:0,a=r?Number(r)/vr:0,s=o?Number(o)/yr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},blurPt:i,distPt:a,dirDeg:s}}(G);e&&(n.textShadow=e)}const V=So(e,"glow");if(V){const e=function(e){const t=mi(e);if(!t)return null;const n=e.getAttributeNS(mo,"rad"),r=n?Number(n)/vr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},radiusPt:r}}(V);e&&(n.glow=e)}const X=So(e,"reflection");X&&(n.reflection=function(e){const t=e.getAttributeNS(mo,"blurRad"),n=e.getAttributeNS(mo,"stA"),r=e.getAttributeNS(mo,"stPos"),o=e.getAttributeNS(mo,"endA"),i=e.getAttributeNS(mo,"endPos"),a=e.getAttributeNS(mo,"dist");return{blurPt:t?Number(t)/vr:0,startAlpha:null!==n?Number(n)/br:.55,startPos:null!==r?Number(r)/br:0,endAlpha:null!==o?Number(o)/br:0,endPos:null!==i?Number(i)/br:1,distPt:a?Number(a)/vr:0}}(X));const Z=So(e,"scene3d");Z&&(n.scene3dXml=(new or).serializeToString(Z));const Y=So(e,"props3d");Y&&(n.props3dXml=(new or).serializeToString(Y));const Q=ko(No(e,po,"highlight"),"val");Q&&"none"!==Q&&(n.highlight=Q);const K=fi(No(e,po,"shd"),t.colors);K&&(n.shading=K);const J=No(e,po,"lang");if(J){const e=ko(J,"val"),t=ko(J,"eastAsia"),r=ko(J,"bidi"),o={};e&&(o.value=e),t&&(o.eastAsia=t),r&&(o.bidi=r),Object.keys(o).length>0&&(n.language=o)}const ee=No(e,po,"rPrChange"),te=pi(ee),ne=No(ee,po,"rPr");return te&&ne&&(n.propertyRevision={...te,type:"property",previous:vi(ne,t)??{}}),ui(n)}const wi=[["firstRow","firstRow"],["lastRow","lastRow"],["firstColumn","firstCol"],["lastColumn","lastCol"],["oddVBand","band1Vert"],["evenVBand","band2Vert"],["oddHBand","band1Horz"],["evenHBand","band2Horz"],["firstRowFirstColumn","nwCell"],["firstRowLastColumn","neCell"],["lastRowFirstColumn","swCell"],["lastRowLastColumn","seCell"]],bi=[["top","borderTop"],["left","borderLeft"],["bottom","borderBottom"],["right","borderRight"],["insideH","borderInsideH"],["insideV","borderInsideV"]];function yi(e){if(!e)return;const t=ko(e,"type"),n=ko(e,"w");if("auto"===t)return"auto";if("pct"===t){if(!n)return;const e=n.trim().endsWith("%")?Number.parseFloat(n):Number(n)/50;return Number.isFinite(e)?`${zo(e,4)}%`:void 0}return jo(n)}function xi(e,t){const n=ko(No(e,po,t),"val"),r=n?Number(n):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0}function Ni(e){const t=No(e,po,"cnfStyle");if(!t)return;const n=ko(t,"val")??"",r={};return wi.forEach(([e,o],i)=>{const a=ko(t,e);"1"===a||"true"===a||"on"===a?r[o]=!0:"0"===a||"false"===a||"off"===a?r[o]=!1:12===n.length&&"1"===n[i]&&(r[o]=!0)}),Object.keys(r).length>0?r:void 0}function Si(e){const t=ko(e,"date"),n=t?Date.parse(t):Number.NaN;return{id:ko(e,"id")??`revision:${e.localName}`,author:ko(e,"author")??"Unknown",date:Number.isFinite(n)?n:0}}function Ei(e){if(!e)return;const t=t=>jo(ko(No(e,po,t),"w")),n={},r=t("top"),o=t("right"),i=t("bottom"),a=t("left"),s=t("start"),l=t("end");return void 0!==r&&(n.top=r),void 0!==o&&(n.right=o),void 0!==i&&(n.bottom=i),void 0!==a&&(n.left=a),void 0!==s&&(n.start=s),void 0!==l&&(n.end=l),Object.keys(n).length>0?n:void 0}function ki(e,t){const n={};t&&(n.styleId=t);const r=ko(No(e,po,"tblCaption"),"val");r&&(n.altTitle=r);const o=ko(No(e,po,"tblDescription"),"val");o&&(n.altDescription=o);const i=yi(No(e,po,"tblW"));void 0!==i&&(n.width=i);const a=yi(No(e,po,"tblInd"));void 0!==a&&(n.indentLeft=a);const s=ko(No(e,po,"jc"),"val");"left"===s||"start"===s?n.align="left":"center"===s?n.align="center":"right"!==s&&"end"!==s||(n.align="right");const l=function(e){const t=ko(No(e,po,"tblLayout"),"type");return"fixed"===t||"autofit"===t?t:void 0}(e);l&&(n.layout=l);const c=yi(No(e,po,"tblCellSpacing"));void 0!==c&&(n.cellSpacing=c);const u=(d=No(e,po,"tblBorders"))?{...li(d),borderInsideH:si(No(d,po,"insideH")),borderInsideV:si(No(d,po,"insideV"))}:{};var d;Object.keys(u).length>0&&(n.borders=u);const f=Ei(No(e,po,"tblCellMar"));f&&(n.defaultCellMargins=f);const p=e?Co(e,"bidiVisual"):void 0;void 0!==p&&(n.bidiVisual=p);const h=ko(No(e,po,"tblOverlap"),"val");"overlap"!==h&&"never"!==h||(n.tblOverlap=h);const m=function(e){const t=No(e,po,"tblpPr");if(!t||!t.attributes||0===t.attributes.length)return;const n={};for(let l=0;l<t.attributes.length;l+=1){const e=t.attributes.item(l);(null==e?void 0:e.namespaceURI)!==po&&"w"!==(null==e?void 0:e.prefix)||(n[e.localName||e.name.replace(/^w:/,"")]=e.value)}const r=e=>jo(n[e]??null),o="margin"===n.horzAnchor||"page"===n.horzAnchor||"text"===n.horzAnchor?n.horzAnchor:void 0,i="margin"===n.vertAnchor||"page"===n.vertAnchor||"text"===n.vertAnchor?n.vertAnchor:void 0,a="left"===n.tblpXSpec||"center"===n.tblpXSpec||"right"===n.tblpXSpec||"inside"===n.tblpXSpec||"outside"===n.tblpXSpec?n.tblpXSpec:void 0,s="top"===n.tblpYSpec||"center"===n.tblpYSpec||"bottom"===n.tblpYSpec||"inside"===n.tblpYSpec||"outside"===n.tblpYSpec?n.tblpYSpec:void 0;return{...o?{horizontalAnchor:o}:{},...i?{verticalAnchor:i}:{},...void 0!==r("tblpX")?{x:r("tblpX")}:{},...void 0!==r("tblpY")?{y:r("tblpY")}:{},...a?{xAlign:a}:{},...s?{yAlign:s}:{},...void 0!==r("topFromText")?{distanceTop:r("topFromText")}:{},...void 0!==r("rightFromText")?{distanceRight:r("rightFromText")}:{},...void 0!==r("bottomFromText")?{distanceBottom:r("bottomFromText")}:{},...void 0!==r("leftFromText")?{distanceLeft:r("leftFromText")}:{}}}(e);m&&(n.floating=m);const g=xi(e,"tblStyleRowBandSize");void 0!==g&&(n.rowBandSize=g);const v=xi(e,"tblStyleColBandSize");void 0!==v&&(n.colBandSize=v);const w=No(e,po,"tblLook");if(w){const e=ko(w,"val"),t=e?Number.parseInt(e,16):Number.NaN,r=(e,n,r)=>{const o=ko(w,e);return null!==o&&""!==o?"1"===o||"true"===o||"on"===o:Number.isFinite(t)?0!==(t&n):r};n.tblLook={firstRow:r("firstRow",32,!0),lastRow:r("lastRow",64,!1),firstCol:r("firstColumn",128,!0),lastCol:r("lastColumn",256,!1),noHBand:r("noHBand",512,!1),noVBand:r("noVBand",1024,!1)}}const b=No(e,po,"tblPrChange"),y=No(b,po,"tblPr");return b&&y&&(n.revision={...Si(b),type:"property",previous:ki(y)??{}}),ui(n)}function _i(e){if(!e)return;const t={},n=Co(e,"tblHeader");void 0!==n&&(t.isHeader=n);const r=xi(e,"gridBefore");void 0!==r&&(t.gridBefore=r);const o=xi(e,"gridAfter");void 0!==o&&(t.gridAfter=o);const i=yi(No(e,po,"wBefore"));void 0!==i&&(t.widthBefore=i);const a=yi(No(e,po,"wAfter"));void 0!==a&&(t.widthAfter=a);const s=No(e,po,"trHeight"),l=jo(ko(s,"val"));void 0!==l&&(t.height=l);const c=ko(s,"hRule");"auto"!==c&&"exact"!==c&&"atLeast"!==c||(t.heightRule=c);const u=yi(No(e,po,"tblCellSpacing"));void 0!==u&&(t.cellSpacing=u);const d=ko(No(e,po,"jc"),"val");"left"===d||"start"===d?t.align="left":"center"===d?t.align="center":"right"!==d&&"end"!==d||(t.align="right");const f=Co(e,"cantSplit");void 0!==f&&(t.cantSplit=f);const p=Co(e,"hidden");void 0!==p&&(t.hidden=p);const h=No(e,po,"trPrChange"),m=No(h,po,"trPr");h&&m&&(t.propertyRevision={...Si(h),type:"property",previous:_i(m)??{}});const g=No(e,po,"ins"),v=No(e,po,"del"),w=g??v;return w&&(t.revision={...Si(w),type:g?"insert":"delete"}),ui(t)}function Ti(e){if(!e)return 1;const t=ko(No(e,po,"gridSpan"),"val"),n=t?Number(t):1;return Number.isFinite(n)&&n>1?Math.floor(n):1}function Ii(e){if(!e)return;const t=No(e,po,"vMerge");if(!t)return;return"restart"===ko(t,"val")?"restart":"continue"}function Ci(e){if(!e)return;const t=No(e,po,"hMerge");if(!t)return;return"restart"===ko(t,"val")?"restart":"continue"}function Ai(e,t,n){if(!e)return;const r={},o=fi(No(e,po,"shd"),n);o&&(r.shading=o);const i=No(e,po,"tcW"),a=ko(i,"type"),s=ko(i,"w");if("dxa"===a){const e=jo(s);void 0!==e&&(r.width=e)}else if("pct"===a&&s){const e=Number(s);Number.isFinite(e)&&(r.width=`${zo(e/50,4)}%`)}const l=Ei(No(e,po,"tcMar"));l&&(void 0!==l.top&&(r.paddingTop=l.top),void 0!==l.bottom&&(r.paddingBottom=l.bottom),void 0!==l.left&&(r.paddingLeft=l.left),void 0!==l.right&&(r.paddingRight=l.right),void 0!==l.start&&(r.paddingStart=l.start),void 0!==l.end&&(r.paddingEnd=l.end));const c=function(e){if(!e)return;const t=ko(No(e,po,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);c&&(r.verticalAlign=c);const u=xo(ko(No(e,po,"textDirection"),"val"));u&&(r.textDirection=u);const d=Co(e,"noWrap");void 0!==d&&(r.noWrap=d);const f=Co(e,"tcFitText");void 0!==f&&(r.fitText=f);const p=Co(e,"hideMark");void 0!==p&&(r.hideMark=p);const h=ko(No(e,po,"headers"),"val");h&&(r.headers=h);const m=No(e,po,"tcPrChange"),g=No(m,po,"tcPr");m&&g&&(r.propertyRevision={...Si(m),type:"property",previous:Ai(g,void 0,n)??{}});const v=No(e,po,"cellIns"),w=No(e,po,"cellDel"),b=No(e,po,"cellMerge"),y=v??w??b;if(y){const e=ko(y,"vMergeOrig");r.revision={...Si(y),type:v?"insert":w?"delete":"merge",...b&&e?{previous:{vMerge:"restart"===e?"restart":"continue"}}:{}}}for(const[x,N]of Object.entries(function(e){return e?li(No(e,po,"tcBorders")):{}}(e)))N&&(r[x]=N);return ui(r)}function Ri(e){const t=No(e,po,"trPr");return!!t&&!0===Co(t,"tblHeader")}function $i(e){if(!e)return;const t=Vr(e,kr),n=Vr(void 0,kr);return ci({styleId:e.styleId,align:t.align!==n.align?t.align:void 0,spacingBefore:t.spacingBefore!==n.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==n.spacingAfter?t.spacingAfter:void 0,contextualSpacing:void 0!==e.contextualSpacing||t.contextualSpacing!==n.contextualSpacing?t.contextualSpacing:void 0,lineHeight:t.lineHeight!==n.lineHeight?t.lineHeight:void 0,lineRule:t.lineRule??void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:void 0!==e.snapToGrid||t.snapToGrid!==n.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==n.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==n.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==n.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==n.indentHanging?t.indentHanging:void 0,mirrorIndents:void 0!==e.mirrorIndents||t.mirrorIndents!==n.mirrorIndents?t.mirrorIndents:void 0,pageBreakBefore:void 0!==e.pageBreakBefore||t.pageBreakBefore!==n.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:void 0!==e.keepWithNext||t.keepWithNext!==n.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:void 0!==e.keepLinesTogether||t.keepLinesTogether!==n.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:void 0!==e.widowControl||t.widowControl!==n.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,suppressLineNumbers:void 0!==e.suppressLineNumbers||t.suppressLineNumbers!==n.suppressLineNumbers?t.suppressLineNumbers:void 0,suppressAutoHyphens:void 0!==e.suppressAutoHyphens||t.suppressAutoHyphens!==n.suppressAutoHyphens?t.suppressAutoHyphens:void 0,bidi:void 0!==e.bidi||t.bidi!==n.bidi?t.bidi:void 0,kinsoku:void 0!==e.kinsoku||t.kinsoku!==n.kinsoku?t.kinsoku:void 0,wordWrap:void 0!==e.wordWrap||t.wordWrap!==n.wordWrap?t.wordWrap:void 0,overflowPunct:void 0!==e.overflowPunct||t.overflowPunct!==n.overflowPunct?t.overflowPunct:void 0,topLinePunct:void 0!==e.topLinePunct||t.topLinePunct!==n.topLinePunct?t.topLinePunct:void 0,autoSpaceDE:void 0!==e.autoSpaceDE||t.autoSpaceDE!==n.autoSpaceDE?t.autoSpaceDE:void 0,autoSpaceDN:void 0!==e.autoSpaceDN||t.autoSpaceDN!==n.autoSpaceDN?t.autoSpaceDN:void 0,adjustRightInd:void 0!==e.adjustRightInd||t.adjustRightInd!==n.adjustRightInd?t.adjustRightInd:void 0,textAlignment:e.textAlignment??void 0,textboxTightWrap:e.textboxTightWrap??void 0,divId:e.divId??void 0,conditionalStyle:e.conditionalStyle??void 0,borderBetween:e.borderBetween??void 0,borderBar:e.borderBar??void 0,framePrXml:e.framePrXml??void 0,propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:$i(e.propertyRevision.previous)??{}}:void 0})}function Di(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function Pi(e,t){if(!e)return;const n={},r=Ao(e,"pStyle");r&&(n.styleId=r);const o=ko(No(e,po,"jc"),"val");"left"===o||"start"===o||"center"===o||"right"===o||"end"===o||"justify"===o?n.align="start"===o?"left":"end"===o?"right":o:"both"!==o&&"distribute"!==o||(n.align="justify");const i=No(e,po,"spacing"),a=ko(i,"before"),s=ko(i,"after"),l=ko(i,"line"),c=ko(i,"lineRule");a&&(n.spacingBefore=Ho(a,0)),s&&(n.spacingAfter=Ho(s,0)),l&&("exact"===c||"atLeast"===c?(n.lineHeight=zo(Number(l)/1440*96,4),n.lineRule=c):n.lineHeight=Number(l)/240);const u=Co(e,"contextualSpacing");void 0!==u&&(n.contextualSpacing=u);const d=Co(e,"snapToGrid");void 0!==d&&(n.snapToGrid=d);const f=No(e,po,"ind"),p=ko(f,"start")??ko(f,"left"),h=ko(f,"end")??ko(f,"right"),m=ko(f,"firstLine"),g=ko(f,"hanging");p&&(n.indentLeft=Ho(p,0)),h&&(n.indentRight=Ho(h,0)),g?(n.indentHanging=Ho(g,0),n.indentFirstLine=void 0):m&&(n.indentFirstLine=Ho(m,0));const v=function(e){const t=No(e,po,"tabs");if(!t)return[];const n=[];for(const r of bo(t,po,"tab")){const e=jo(ko(r,"pos"));if(void 0===e)continue;const t=ko(r,"val"),o="center"===t||"right"===t||"decimal"===t||"bar"===t||"clear"===t?t:"left",i=ko(r,"leader"),a="dot"===i||"hyphen"===i||"underscore"===i||"heavy"===i||"middleDot"===i?i:"none"===i?"none":void 0;n.push({position:e,type:o,...void 0!==a?{leader:a}:{}})}return n}(e);v.length>0&&(n.tabs=v);const w=Co(e,"pageBreakBefore");void 0!==w&&(n.pageBreakBefore=w);const b=Co(e,"keepNext");void 0!==b&&(n.keepWithNext=b);const y=Co(e,"keepLines");void 0!==y&&(n.keepLinesTogether=y);const x=Co(e,"widowControl");void 0!==x&&(n.widowControl=x);const N=Co(e,"mirrorIndents");void 0!==N&&(n.mirrorIndents=N);const S=No(e,po,"pBdr");if(S){const{borderTop:e,borderRight:t,borderBottom:r,borderLeft:o,borderBetween:i,borderBar:a}=li(S);e&&(n.borderTop=e),t&&(n.borderRight=t),r&&(n.borderBottom=r),o&&(n.borderLeft=o),i&&(n.borderBetween=i),a&&(n.borderBar=a)}const E=fi(No(e,po,"shd"),t);E&&(n.shading=E);const k=xo(ko(No(e,po,"textDirection"),"val"));k&&(n.textDirection=k);const _=ko(No(e,po,"outlineLvl"),"val");if(void 0!==_){const e=Number(_);Number.isFinite(e)&&e>=0&&e<=8&&(n.outlineLevel=e)}const T=Co(e,"suppressLineNumbers");void 0!==T&&(n.suppressLineNumbers=T);const I=Co(e,"suppressAutoHyphens");void 0!==I&&(n.suppressAutoHyphens=I);const C=Co(e,"bidi");void 0!==C&&(n.bidi=C);const A=Co(e,"kinsoku");void 0!==A&&(n.kinsoku=A);const R=Co(e,"wordWrap");void 0!==R&&(n.wordWrap=R);const $=Co(e,"overflowPunct");void 0!==$&&(n.overflowPunct=$);const D=Co(e,"topLinePunct");void 0!==D&&(n.topLinePunct=D);const P=Co(e,"autoSpaceDE");void 0!==P&&(n.autoSpaceDE=P);const O=Co(e,"autoSpaceDN");void 0!==O&&(n.autoSpaceDN=O);const M=Co(e,"adjustRightInd");void 0!==M&&(n.adjustRightInd=M);const L=ko(No(e,po,"textAlignment"),"val");"auto"!==L&&"top"!==L&&"center"!==L&&"baseline"!==L&&"bottom"!==L||(n.textAlignment=L);const F=ko(No(e,po,"textboxTightWrap"),"val");"none"!==F&&"allLines"!==F&&"firstLineOnly"!==F&&"firstLastLine"!==F||(n.textboxTightWrap=F);const B=ko(No(e,po,"divId"),"val");if(null!==B){const e=Number(B);Number.isFinite(e)&&e>=0&&(n.divId=Math.floor(e))}const U=Ni(e);U&&(n.conditionalStyle=U);const z=No(e,po,"framePr");if(z){const e=ko(z,"dropCap");e&&"none"!==e||(n.framePrXml=(new or).serializeToString(z))}const H=No(e,po,"pPrChange"),j=pi(H),q=No(H,po,"pPr");return j&&q&&(n.propertyRevision={...j,type:"property",previous:Pi(q,t)??{}}),ui(n)}function Oi(e){return"1"===e||"true"===e||"on"===e}function Mi(e){const t=No(e,po,"cols");if(!t)return;const n=Number.parseInt(ko(t,"num")??"1",10);if(!Number.isFinite(n)||n<=1)return;const r=Ho(ko(t,"space"),0),o=ko(t,"sep"),i=ko(t,"equalWidth"),a=bo(t,po,"col").map(e=>({width:Ho(ko(e,"w"),0),space:Ho(ko(e,"space"),r)})),s=null==i||Oi(i);return{count:n,space:r,...Oi(o)?{separator:!0}:{},...s?{}:{equalWidth:!1},...!s&&a.length>0?{columns:a}:{}}}function Li(e){const t=No(e,po,"pgSz"),n=No(e,po,"pgMar"),r=Mi(e),o=No(e,po,"pgBorders"),i=No(o,po,"top"),a=ko(i,"val"),s=ko(i,"color"),l=Number.parseInt(ko(i,"sz")??"0",10),c=a&&s&&"nil"!==a?{style:"double"===a||"dashed"===a||"dotted"===a?a:"single",color:`#${s.replace(/^#/,"")}`,width:Number.isFinite(l)&&l>0?l/8:1,distance:Number(ko(i,"space")??0)}:void 0;let u;if(t||n||r){const e=Ho(ko(t,"w"),816),o=Ho(ko(t,"h"),1056),i=ko(t,"orient");u={width:e,height:o,orientation:"landscape"===i?"landscape":"portrait"===i?"portrait":e>o?"landscape":"portrait",margins:{top:Ho(ko(n,"top"),96),right:Ho(ko(n,"right"),96),bottom:Ho(ko(n,"bottom"),96),left:Ho(ko(n,"left"),96),header:Ho(ko(n,"header"),48),footer:Ho(ko(n,"footer"),48),gutter:Ho(ko(n,"gutter"),0)},...r?{columns:r}:{}}}const d=t=>{const n={};for(const r of bo(e,po,t)){const e=ko(r,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=r.getAttribute("r:id")??r.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(n[e]=t)}return n},f=d("headerReference"),p=d("footerReference"),h=No(e,po,"docGrid"),m=ko(h,"type"),g=Ho(ko(h,"linePitch"),Number.NaN),v=ko(No(e,po,"type"),"val"),w="continuous"===v||"nextPage"===v||"evenPage"===v||"oddPage"===v||"nextColumn"===v?v:void 0,b=No(e,po,"pgNumType");let y;if(b){const e=ko(b,"start"),t=null!==e?Number.parseInt(e,10):void 0,n=ko(b,"fmt")??void 0,r=ko(b,"chapStyle")??void 0,o=ko(b,"chapSep")??void 0;(void 0!==t&&Number.isFinite(t)||n||r||o)&&(y={...void 0!==t&&Number.isFinite(t)?{start:t}:{},...n?{format:n}:{},...r?{chapterStyle:r}:{},...o?{chapterSeparator:o}:{}})}const x=ko(No(e,po,"vAlign"),"val"),N="center"===x||"both"===x||"bottom"===x?x:void 0,S=Co(e,"bidi");return{pageSettings:u,...c?{pageBorder:c}:{},headerRIds:f,footerRIds:p,docGridLinePitchPx:Number.isFinite(g)&&g>0?g:void 0,docGridMode:"lines"===m||"linesAndChars"===m?"explicit":void 0,docGridType:m,breakType:w,pageNumbering:y,verticalAlignment:N,bidi:S}}function Fi(e){if(!e)return;const t=No(e,po,"sectPr");if(!t)return;const n=No(t,po,"pgSz"),r=No(t,po,"pgMar"),o=Mi(t);if(!n&&!r&&!o)return;const i=Ho(ko(n,"w"),816),a=Ho(ko(n,"h"),1056),s=ko(n,"orient");return{width:i,height:a,orientation:"landscape"===s?"landscape":"portrait"===s?"portrait":i>a?"landscape":"portrait",margins:{top:Ho(ko(r,"top"),96),right:Ho(ko(r,"right"),96),bottom:Ho(ko(r,"bottom"),96),left:Ho(ko(r,"left"),96),header:Ho(ko(r,"header"),48),footer:Ho(ko(r,"footer"),48),gutter:Ho(ko(r,"gutter"),0)},...o?{columns:o}:{}}}function Bi(e,t,n,r,o){var i,a,s;if(t&&n)for(const l of e){if("paragraph"===l.type){const e=(null==(i=l.style)?void 0:i.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:r});continue}if(o.adjustLineHeightInTable)for(const e of l.rows)for(const i of e.cells)Bi(i.blocks,t,n,r,o)}}const Ui="http://schemas.openxmlformats.org/officeDocument/2006/math",zi=new or;function Hi(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)!==o.ELEMENT_NODE||o.namespaceURI!==Ui||t&&o.localName!==t||n.push(o)}return n}function ji(e,t){return Hi(e,t)[0]}function qi(e,t){return(null==e?void 0:e.getAttributeNS(Ui,t))??(null==e?void 0:e.getAttribute(`m:${t}`))??(null==e?void 0:e.getAttribute(t))??void 0}function Wi(e){return e?Hi(e).map(Gi):[]}function Gi(e){switch(e.localName){case"r":return function(e){var t;const n=(null==(t=ji(e,"t"))?void 0:t.textContent)??"",r=ji(e,"rPr"),o=r?{...ji(r,"sty")?{script:qi(ji(r,"sty"),"val")}:{},...ji(r,"nor")?{normalText:!0}:{},...ji(r,"b")?{bold:"0"!==qi(ji(r,"b"),"val")}:{},...ji(r,"i")?{italic:"0"!==qi(ji(r,"i"),"val")}:{}}:void 0;return{kind:"text",value:n,...o&&Object.keys(o).length>0?{style:o}:{}}}(e);case"f":return{kind:"fraction",numerator:Wi(ji(e,"num")),denominator:Wi(ji(e,"den"))};case"rad":return{kind:"radical",radicand:Wi(ji(e,"e")),...ji(e,"deg")?{degree:Wi(ji(e,"deg"))}:{}};case"sSub":case"sSup":case"sSubSup":return function(e,t){const n=Wi(ji(e,"e")),r=Wi(ji(e,"sub")),o=Wi(ji(e,"sup"));return{kind:t,base:n,...r.length>0?{subscript:r}:{},...o.length>0?{superscript:o}:{}}}(e,"script");case"d":{const t=ji(e,"dPr");return{kind:"delimiter",children:Hi(e,"e").map(Wi),...qi(ji(t,"begChr"),"val")?{begin:qi(ji(t,"begChr"),"val")}:{},...qi(ji(t,"endChr"),"val")?{end:qi(ji(t,"endChr"),"val")}:{},...qi(ji(t,"sepChr"),"val")?{separator:qi(ji(t,"sepChr"),"val")}:{},grow:"0"!==qi(ji(t,"grow"),"val")}}case"acc":{const t=ji(e,"accPr");return{kind:"accent",accent:qi(ji(t,"chr"),"val")??"¯",children:Wi(ji(e,"e"))}}case"nary":{const t=ji(e,"naryPr");return{kind:"nary",operator:qi(ji(t,"chr"),"val")??"∑",children:Wi(ji(e,"e")),...Hi(e,"sub").length>0?{subscript:Wi(ji(e,"sub"))}:{},...Hi(e,"sup").length>0?{superscript:Wi(ji(e,"sup"))}:{},grow:"0"!==qi(ji(t,"grow"),"val")}}case"limLow":return{kind:"limit",operator:"low",base:Wi(ji(e,"e")),limit:Wi(ji(e,"lim"))};case"limUpp":return{kind:"limit",operator:"upper",base:Wi(ji(e,"e")),limit:Wi(ji(e,"lim"))};case"m":return{kind:"matrix",rows:Hi(e,"mr").map(e=>Hi(e,"e").map(Wi))};case"box":case"borderBox":return{kind:"box",children:Wi(ji(e,"e")),border:!0};case"phant":return{kind:"box",children:Wi(ji(e,"e")),hidden:!0};case"groupChr":{const t=ji(e,"groupChrPr");return{kind:"accent",accent:qi(ji(t,"chr"),"val")??"¯",children:Wi(ji(e,"e"))}}case"func":return{kind:"group",children:[...Wi(ji(e,"fName")),...Wi(ji(e,"e"))]};default:return{kind:"raw",xml:zi.serializeToString(e),fallbackText:e.textContent??""}}}function Vi(e){const t="oMathPara"===e.localName?ji(e,"oMath"):e;return{version:1,children:t?Hi(t).map(Gi):[],display:"oMathPara"===e.localName,sourceXml:zi.serializeToString(e)}}const Xi=new Set(["alias","tag","id","lock","placeholder","dataBinding","temporary","appearance","showingPlcHdr","color","text","richText","picture","comboBox","dropDownList","date","repeatingSection","repeatingSectionItem","group","equation","citation","bibliography"]),Zi=new Set(["repeatingSection","repeatingSectionItem"]);function Yi(e){if(!e)return{};const t={},n=No(e,po,"alias");if(n){const e=ko(n,"val");null!==e&&(t.alias=e)}const r=No(e,po,"tag");if(r){const e=ko(r,"val");null!==e&&(t.tag=e)}const o=No(e,po,"id");if(o){const e=ko(o,"val");null!==e&&(t.id=e)}const i=No(e,po,"lock");if(i){const e=ko(i,"val");null!==e&&(t.lock=e)}const a=No(e,po,"appearance");if(a){const e=ko(a,"val");null!==e&&(t.appearance=e)}const s=No(e,po,"showingPlcHdr");s&&(t.showingPlcHdr=Io(ko(s,"val")));const l=No(e,po,"temporary");l&&(t.temporary=Io(ko(l,"val")));const c=No(e,po,"color");if(c){const e=ko(c,"val");null!==e&&(t.color=e)}const u=No(e,po,"placeholder");if(u){const e=No(u,po,"docPart");if(e){const n=ko(e,"val");null!==n&&(t.placeholderDocPart=n)}}const d=No(e,po,"dataBinding");if(d){const e=function(e){const t={},n=ko(e,"prefixMappings"),r=ko(e,"xpath"),o=ko(e,"storeItemID");null!==n&&(t.prefixMappings=n);null!==r&&(t.xpath=r);null!==o&&(t.storeItemID=o);if(void 0===t.prefixMappings){const n=ko(No(e,po,"prefixMappings"),"val");null!==n&&(t.prefixMappings=n)}if(void 0===t.xpath){const n=ko(No(e,po,"xpath"),"val");null!==n&&(t.xpath=n)}if(void 0===t.storeItemID){const n=ko(No(e,po,"storeItemID"),"val");null!==n&&(t.storeItemID=n)}return void 0===t.prefixMappings&&void 0===t.xpath&&void 0===t.storeItemID?null:t}(d);e&&(t.dataBinding=e)}const f=function(e){const t=No(e,po,"comboBox");if(t){const e=No(t,po,"lastSelectedValue");return{kind:"comboBox",listItems:Qi(t),...e?{lastSelectedValue:ko(e,"val")??void 0}:{}}}const n=No(e,po,"dropDownList");if(n){const e=No(n,po,"lastSelectedValue");return{kind:"dropDownList",listItems:Qi(n),...e?{lastSelectedValue:ko(e,"val")??void 0}:{}}}const r=No(e,po,"date");if(r){const e=ko(r,"fullDate")??void 0,t=No(r,po,"dateFormat"),n=No(r,po,"lid"),o=No(r,po,"calendar"),i=No(r,po,"storeMappedDataAs");return{kind:"date",fullDate:e,dateFormat:t?ko(t,"val")??void 0:void 0,lid:n?ko(n,"val")??void 0:void 0,calendar:o?ko(o,"val")??void 0:void 0,storeMappedDataAs:i?ko(i,"val")??void 0:void 0}}if(No(e,po,"text"))return{kind:"text"};for(const i of["richText","picture","group","equation","citation","bibliography"])if(No(e,po,i))return{kind:i};if(Eo(e,"repeatingSection")||No(e,po,"repeatingSection"))return{kind:"repeatingSection"};if(Eo(e,"repeatingSectionItem")||No(e,po,"repeatingSectionItem"))return{kind:"repeatingSectionItem"};const o=So(e,"checkbox");if(o){const e=No(o,mo,"checked"),t=No(o,mo,"checkedState"),n=No(o,mo,"uncheckedState"),r=e?Io(ko(e,"val")):void 0;return{kind:"checkbox",...void 0!==r?{checked:r}:{},...t?{checkedStateFont:ko(t,"font")??void 0,checkedStateChar:ko(t,"char")??void 0}:{},...n?{uncheckedStateFont:ko(n,"font")??void 0,uncheckedStateChar:ko(n,"char")??void 0}:{}}}return}(e);if(f&&(t.subtype=f,"repeatingSection"===f.kind)){const n=Eo(e,"repeatingSection")??No(e,po,"repeatingSection");if(n){const e=Eo(n,"sectionTitle"),r=Eo(n,"doNotAllowInsertDeleteSection"),o={},i=ko(e,"val");if(null!==i&&(o.sectionTitle=i),r){const e=ko(r,"val");o.doNotAllowInsertDeleteSection=null===e||Io(e)}Object.keys(o).length>0&&(t.repeatingSectionProperties=o)}}const p=function(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r,i=o.localName&&o.namespaceURI===po&&Xi.has(o.localName),a=o.localName&&o.namespaceURI===go&&Zi.has(o.localName);i||a||(t+=(new or).serializeToString(o))}return t}(e);return p.length>0&&(t.unknownXml=p),t}function Qi(e){const t=bo(e,po,"listItem");if(0!==t.length)return t.map(e=>({displayText:ko(e,"displayText")??void 0,value:ko(e,"value")??void 0}))}const Ki=new Set(Object.keys({solid:[],dot:[.75,2.25],sysDot:[.75,.75],dash:[3.75,2.25],sysDash:[2.25,2.25],dashDot:[3.75,2.25,.75,2.25],lgDash:[6,2.25],lgDashDot:[6,2.25,.75,2.25],lgDashDotDot:[6,2.25,.75,2.25,.75,2.25]}));function Ji(e){return e&&Ki.has(e)?e:void 0}const ea=/^[0-9a-fA-F]{6}$/;function ta(e){return e.trim().replace(/^#/,"")}function na(e){if(!e)return null;const t=ta(e);return ea.test(t)?t.toUpperCase():null}function ra(e){const t=oa(e);return void 0===t?void 0:Math.round(t/gr)}function oa(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function ia(e){const t=null==e?void 0:e.trim();if(!t)return null;const n=t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);if(!n)return null;const r=Number(n[1]);if(!Number.isFinite(r)||r<=0)return null;switch((n[2]??"px").toLowerCase()){case"pt":return Math.round(r*mr);case"in":return Math.round(r*hr);case"cm":return Math.round(r/2.54*hr);case"mm":return Math.round(r/25.4*hr);case"pc":return Math.round(12*r*mr);default:return Math.round(r)}}function aa(e){const t=na(e);return t?`#${t}`:void 0}function sa(e){for(let t=0;t<e.childNodes.length;t+=1){const n=e.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;if("inline"===r.localName||"anchor"===r.localName)return{element:r,kind:r.localName}}}function la(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function ca(e,t){var n,r,o,i;const a=_o(e,t);if(!a)return;const s=null==(r=null==(n=_o(a,"align"))?void 0:n.textContent)?void 0:r.trim(),l=oa(null==(i=null==(o=_o(a,"posOffset"))?void 0:o.textContent)?void 0:i.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 ua(e){const t=ca(e,"positionH"),n=ca(e,"positionV"),r=function(e){return _o(e,"wrapSquare")?"square":_o(e,"wrapTight")?"tight":_o(e,"wrapThrough")?"through":_o(e,"wrapTopAndBottom")?"topAndBottom":_o(e,"wrapNone")?"none":void 0}(e),o=oa(e.getAttribute("distT")),i=oa(e.getAttribute("distB")),a=oa(e.getAttribute("distL")),s=oa(e.getAttribute("distR")),l=la(e.getAttribute("simplePos")),c=oa(e.getAttribute("relativeHeight")),u=la(e.getAttribute("behindDoc")),d=la(e.getAttribute("locked")),f=la(e.getAttribute("layoutInCell")),p=la(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==o?{distT:o}:{},...void 0!==i?{distB:i}:{},...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!==p?{allowOverlap:p}:{},...t?{positionH:t}:{},...n?{positionV:n}:{},...r?{wrap:r}:{}}}async function da(e,t,n,r){const o=_o(e,"blip");if(!o)return{text:"",image:void 0};const{embed:i,link:a}=function(e){const t={};for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];r&&("embed"===r.localName||"r:embed"===r.name?t.embed=r.value:"link"!==r.localName&&"r:link"!==r.name||(t.link=r.value))}return t}(o),s=sa(e),l=(null==s?void 0:s.element)??e,c=_o(l,"extent"),u=_o(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)/gr)),t&&(f=Math.round(parseInt(t,10)/gr))}const p=u?ko(u,"descr")??ko(u,"title"):null,h=function(e){const t=_o(e,"srcRect");if(!t)return;const n=e=>{const n=t.getAttribute(e);if(null===n||""===n)return;const r=parseInt(n,10);return Number.isFinite(r)&&0!==r?r/br:void 0},r={left:n("l"),top:n("t"),right:n("r"),bottom:n("b")};return void 0!==r.left||void 0!==r.top||void 0!==r.right||void 0!==r.bottom?r:void 0}(e),m=function(e){const t=_o(e,"pic"),n=t&&_o(t,"spPr");if(!n)return;let r=null;for(let l=0;l<n.childNodes.length;l+=1){const e=n.childNodes[l];if(1!==(null==e?void 0:e.nodeType))continue;const t=e;if("prstGeom"===t.localName){r=t;break}}const o=null==r?void 0:r.getAttribute("prst");if(!r||!o||"rect"===o)return;const i={},a=Array.from(r.childNodes).find(e=>1===(null==e?void 0:e.nodeType)&&"avLst"===e.localName);if(a)for(let l=0;l<a.childNodes.length;l+=1){const e=a.childNodes[l];if(1!==(null==e?void 0:e.nodeType)||"gd"!==e.localName)continue;const t=e,n=t.getAttribute("name"),r=(t.getAttribute("fmla")??"").match(/(-?\d+(?:\.\d+)?)\s*$/);n&&r&&(i[n]=Number(r[1]))}const s={preset:o,rawXml:(new or).serializeToString(r)};return Object.keys(i).length>0&&(s.adjustments=i),s}(e),g=function(e){if(_o(e,"tile"))return"tile"}(e),v=function(e){var t,n;const r=_o(e,"pic"),o=r&&_o(r,"spPr");if(o)for(let i=0;i<o.childNodes.length;i+=1){const e=o.childNodes[i];if(1!==(null==e?void 0:e.nodeType))continue;const r=e;if("ln"!==r.localName)continue;const a=aa(null==(t=_o(r,"srgbClr"))?void 0:t.getAttribute("val"));if(!a)return;const s={color:a},l=oa(r.getAttribute("w"));void 0!==l&&(s.widthPt=zo(l/vr,2));const c=Ji(null==(n=_o(r,"prstDash"))?void 0:n.getAttribute("val"));return c&&(s.dash=c),s}}(e),w=function(e){const t=_o(e,"xfrm");if(!t)return{};const n={},r=t.getAttribute("rot");if(r){const e=parseInt(r,10);Number.isFinite(e)&&0!==e&&(n.rotation=e/yr)}const o=t.getAttribute("flipH");"1"!==o&&"true"!==o||(n.flipH=!0);const i=t.getAttribute("flipV");return"1"!==i&&"true"!==i||(n.flipV=!0),n}(e),b="anchor"===(null==s?void 0:s.kind)?ua(s.element):void 0,y="anchor"===(null==s?void 0:s.kind)?function(e){const t=_o(e,"wrapPolygon");if(!t)return;const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if(1!==(null==e?void 0:e.nodeType))continue;const o=e;if("start"!==o.localName&&"lineTo"!==o.localName)continue;const i=oa(o.getAttribute("x")),a=oa(o.getAttribute("y"));void 0!==i&&void 0!==a&&n.push({x:i/21600,y:a/21600})}if(n.length>=2){const e=n[0],t=n[n.length-1];Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6&&n.pop()}return n.length>=3?n:void 0}(s.element):void 0,x={width:d,height:f,...null!==p?{alt:p}:{},...h?{crop:h}:{},...m?{cropShape:m,cropFit:"fill"}:{},...g?{fillMode:g}:{},...v?{border:v}:{},...void 0!==w.rotation?{rotation:w.rotation}:{},...w.flipH?{flipH:!0}:{},...w.flipV?{flipV:!0}:{},...b?{floating:b}:{},...y?{wrapPolygon:y}:{}},N=i?n.get(i):void 0,S=a?n.get(a):void 0;if(S&&function(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith("//")}(S))return{text:"",image:{src:"",linkedSrc:S,...x}};const E=N??S;if(E){const e=await Oo(t,r,E);if(e)return{text:"",image:{src:e,...x}}}return{text:"",image:void 0}}function fa(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 n=Number(t);return Number.isFinite(n)&&0!==n?n/65536:void 0}async function pa(e,t,n,r){const o=_o(e,"imagedata");if(!o)return;const i=function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&("id"===n.localName||"r:id"===n.name))return n.value}}(o),a=i?n.get(i):void 0;if(!a)return;const s=_o(e,"shape"),l=function(e){const t={};if(!e)return t;for(const n of e.split(";")){const e=n.indexOf(":");if(e<0)continue;const r=n.slice(0,e).trim().toLowerCase(),o=n.slice(e+1).trim();if("width"===r){const e=ia(o);null!==e&&(t.width=e)}else if("height"===r){const e=ia(o);null!==e&&(t.height=e)}}return t}(null==s?void 0:s.getAttribute("style")),c=function(e){const t={left:fa(ko(e,"cropleft")),top:fa(ko(e,"croptop")),right:fa(ko(e,"cropright")),bottom:fa(ko(e,"cropbottom"))};if(void 0!==t.left||void 0!==t.top||void 0!==t.right||void 0!==t.bottom)return t}(o),u=ko(o,"title")??o.getAttribute("o:title"),d=await Oo(t,r,a);return d?{src:d,width:l.width??300,height:l.height??300,...u?{alt:u}:{},...c?{crop:c}:{}}:void 0}async function ha(e,t){const n=_o(e,"wsp");if(!n)return;const r=sa(e),o=(null==r?void 0:r.element)??e,i=_o(o,"extent"),a=ra(null==i?void 0:i.getAttribute("cx"))??300,s=ra(null==i?void 0:i.getAttribute("cy"))??300,l=_o(o,"docPr"),c=l?ko(l,"name"):null,u=l?ko(l,"descr")??ko(l,"title"):null,d="anchor"===(null==r?void 0:r.kind)?ua(r.element):void 0,f=_o(n,"txbxContent"),p=f&&t?await t(f):[],h=function(e){var t,n;const r=_o(e,"spPr");if(!r)return;const o={},i=_o(r,"prstGeom"),a=null==i?void 0:i.getAttribute("prst");a&&(o.preset=a);for(let s=0;s<r.childNodes.length;s+=1){const e=r.childNodes[s];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("solidFill"===i.localName){const e=aa(null==(t=_o(i,"srgbClr"))?void 0:t.getAttribute("val"));e&&(o.fill=e)}else if("ln"===i.localName){const e=oa(i.getAttribute("w"));void 0!==e&&(o.borderWidthPt=zo(e/vr,2));const t=aa(null==(n=_o(i,"srgbClr"))?void 0:n.getAttribute("val"));t&&(o.borderColor=t)}}return Object.keys(o).length>0?o:void 0}(n),m=function(e){const t=_o(e,"bodyPr");if(!t)return;const n={},r=ra(t.getAttribute("lIns")),o=ra(t.getAttribute("tIns")),i=ra(t.getAttribute("rIns")),a=ra(t.getAttribute("bIns"));void 0!==r&&(n.paddingLeft=r),void 0!==o&&(n.paddingTop=o),void 0!==i&&(n.paddingRight=i),void 0!==a&&(n.paddingBottom=a);const s=t.getAttribute("anchor");s&&(n.anchor=s);const l=t.getAttribute("wrap");l&&(n.wrap=l);const c=t.getAttribute("vert");return"vert"!==c&&"vert270"!==c&&"wordArtVert"!==c||(n.vert=c),_o(t,"spAutoFit")&&(n.autoFit=!0),Object.keys(n).length>0?n:void 0}(n),g=function(e){const t=_o(e,"spPr");if(!t)return;const n=_o(t,"xfrm"),r=oa(null==n?void 0:n.getAttribute("rot"));return void 0!==r&&0!==r&&(Math.round(r/yr)%360+360)%360||void 0}(n);return{width:a,height:s,blocks:p,...d?{floating:d}:{},...void 0!==g?{rotation:g}:{},...c?{name:c}:{},...u?{alt:u}:{},...h?{shape:h}:{},...m?{body:m}:{}}}function ma(e){let t;for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if("Choice"!==o.localName)continue;const i=_o(o,"drawing");if(!i)continue;void 0===t&&(t=i);const a=o.getAttribute("Requires")??"";if(/\bwps\b/.test(a))return i}return t}function ga(e){const t=ko(e,"id");if(!t)return;if("bookmarkEnd"===e.localName)return{kind:"end",docxId:t};const n=ko(e,"name")??void 0,r=ko(e,"colFirst"),o=ko(e,"colLast"),i=null!==r?Number.parseInt(r,10):void 0,a=null!==o?Number.parseInt(o,10):void 0;return{kind:"start",docxId:t,...void 0!==n?{name:n}:{},...void 0===i||Number.isNaN(i)?{}:{colFirst:i},...void 0===a||Number.isNaN(a)?{}:{colLast:a}}}function va(e){const t=ko(e,"id");if(t)return{kind:"commentRangeEnd"===e.localName?"end":"start",docxId:t}}function wa(e){const t=(new or).serializeToString(e);let n=2166136261;for(let r=0;r<t.length;r+=1)n^=t.charCodeAt(r),n=Math.imul(n,16777619);return`revision:${n>>>0}`}function ba(e){const t=e.localName;if("ins"!==t&&"del"!==t&&"moveFrom"!==t&&"moveTo"!==t)return;const n=ko(e,"date"),r=n?Date.parse(n):Number.NaN,o="del"===t||"moveFrom"===t;return{id:ko(e,"id")??wa(e),type:o?"delete":"insert",author:ko(e,"author")??"Unknown",date:Number.isFinite(r)?r:0,..."moveFrom"===t?{move:"from"}:"moveTo"===t?{move:"to"}:{}}}function ya(e){const t=/^move(From|To)Range(Start|End)$/.exec(e.localName??"");if(!t)return;const n="From"===t[1]?"from":"to",r="Start"===t[2]?"start":"end",o=ko(e,"date"),i=o?Date.parse(o):Number.NaN,a=ko(e,"colFirst"),s=ko(e,"colLast"),l=null!==a?Number.parseInt(a,10):Number.NaN,c=null!==s?Number.parseInt(s,10):Number.NaN,u=ko(e,"name")??void 0,d=ko(e,"author")??void 0,f=ko(e,"displacedByCustomXml")??void 0;return{move:n,edge:r,id:ko(e,"id")??wa(e),...void 0!==u?{name:u}:{},...void 0!==d?{author:d}:{},...Number.isFinite(i)?{date:i}:{},...Number.isFinite(l)?{columnFirst:l}:{},...Number.isFinite(c)?{columnLast:c}:{},...void 0!==f?{displacedByCustomXml:f}:{}}}async function xa(e,t,n,r,o){const i=[];let a,s,l,c=0;const u=[],d=[],f=e=>{i.push(e),c+=e.length},p=e.childNodes;for(let h=0;h<p.length;h+=1){const e=p[h];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if(i.namespaceURI===po)if("t"===i.localName||"delText"===i.localName)f(i.textContent??"");else if("tab"===i.localName)f("\t");else if("noBreakHyphen"===i.localName)f("‑");else if("softHyphen"===i.localName)f("­");else if("br"===i.localName)f("page"===ko(i,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===i.localName)continue;if("bookmarkStart"===i.localName||"bookmarkEnd"===i.localName){const e=ga(i);e&&u.push({offset:c,marker:e});continue}if("commentRangeStart"===i.localName||"commentRangeEnd"===i.localName){const e=va(i);e&&d.push({offset:c,marker:e});continue}if("proofErr"===i.localName||"commentReference"===i.localName||"permStart"===i.localName||"permEnd"===i.localName)continue;if("cr"===i.localName)f("\n");else if("drawing"===i.localName){const e=await da(i,t,n,r);if(e.image)f(e.text),a=e.image;else{const e=await ha(i,o);e&&(f(""),s=e)}}else if("pict"===i.localName){const e=await pa(i,t,n,r);e&&(f(""),a=e)}else if("sym"===i.localName){const e=ko(i,"font")??"",t=ko(i,"char")??"",n=parseInt(t,16);f(Number.isFinite(n)&&n>0?String.fromCodePoint(n):"?"),l={font:e,char:t}}}else if("AlternateContent"===i.localName){const e=ma(i);if(e){const t=await ha(e,o);t&&(f(""),s=t)}}}return{text:i.join(""),image:a,...s?{textBox:s}:{},...u.length>0?{innerBookmarks:u}:{},...d.length>0?{innerComments:d}:{},...l?{sym:l}:{}}}async function Na(e,t,n,r,o,i,a,s){var l,c,u;const d=[],f=[],p=(e,t)=>{const n=ko(e,"fldCharType"),r=ko(e,"fldLock"),o=ko(e,"dirty"),i="true"===r||"1"===r,a="true"===o||"1"===o;if("begin"===n)d.push({text:"",fieldChar:{kind:"begin",...i?{fieldLock:!0}:{},...a?{dirty:!0}:{}},...t?{styles:t}:{}}),f.push({beginIndex:d.length-1,instruction:"",...t?{beginStyles:t}:{}});else if("separate"===n)d.push({text:"",fieldChar:{kind:"separate"},...t?{styles:t}:{}});else if("end"===n){d.push({text:"",fieldChar:{kind:"end"},...t?{styles:t}:{}});const e=f.pop();e&&(e=>{var t;const n=/\bNUMPAGES\b/i.test(e.instruction)?"NUMPAGES":/\bPAGE\b/i.test(e.instruction)?"PAGE":null;if(!n)return;const r=d.slice(e.beginIndex);if(r.some(e=>e.bookmark))return;const o=r.filter(e=>!e.fieldChar&&void 0===e.fieldInstruction),i=o.map(e=>e.text).join("")||"1",a=(null==(t=o.find(e=>e.styles))?void 0:t.styles)??e.beginStyles;d.length=e.beginIndex,d.push({text:i,...a?{styles:a}:{},field:{type:n}})})(e)}},h=(e,t)=>{const n=e.textContent??"";d.push({text:"",fieldInstruction:n,...t?{styles:t}:{}});const r=f[f.length-1];r&&(r.instruction+=n)};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===Ui&&("oMath"===g.localName||"oMathPara"===g.localName)){d.push({text:"",math:Vi(g)});continue}if(g.namespaceURI!==po)continue;if("bookmarkStart"===g.localName||"bookmarkEnd"===g.localName){const e=ga(g);if(!e)continue;d.push({text:"",bookmark:e});continue}if("commentRangeStart"===g.localName||"commentRangeEnd"===g.localName){const e=va(g);if(!e)continue;d.push({text:"",comment:e});continue}const v=ya(g);if(v){d.push({text:"",revisionRangeMarker:v});continue}const w=ba(g);if(w){const e=await Na(g,t,n,r,o,i,a,s);for(const t of e)d.push({...t,revision:t.revision??w});continue}if("sdt"===g.localName){const e=No(g,po,"sdtContent");if(!e)continue;const l=No(g,po,"sdtPr"),c=No(g,po,"sdtEndPr"),u={groupId:ar("sdt"),sdtPr:Yi(l),...c?{sdtEndPrXml:(new or).serializeToString(c)}:{}},f=await Na(e,t,n,r,o,i,a,s);for(const t of f)d.push({...t,sdtWrappers:[u,...t.sdtWrappers??[]]});continue}if("r"===g.localName){const e=vi(No(g,po,"rPr"),i);if(bo(g,po,"fldChar").length>0||bo(g,po,"instrText").length>0||bo(g,po,"delInstrText").length>0){for(let t=0;t<g.childNodes.length;t+=1){const n=g.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;r.namespaceURI===po&&("fldChar"===r.localName?p(r,e):"instrText"!==r.localName&&"delInstrText"!==r.localName||h(r,e))}continue}const t=No(g,po,"footnoteReference");if(t){const n=ko(t,"id");if(!n)continue;const r=ko(t,"customMarkFollows");let o=e;(l=o??(o={})).styleId??(l.styleId="footnoteReference"),void 0===o.superscript&&(o.superscript=!0),d.push({text:"?",styles:o,footnoteReference:{docxId:n,...r?{customMark:r}:{}}});continue}const u=No(g,po,"endnoteReference");if(u){const t=ko(u,"id");if(!t)continue;const n=ko(u,"customMarkFollows");let r=e;(c=r??(r={})).styleId??(c.styleId="endnoteReference"),void 0===r.superscript&&(r.superscript=!0),d.push({text:"?",styles:r,endnoteReference:{docxId:t,...n?{customMark:n}:{}}});continue}const{text:f,image:m,textBox:v,innerBookmarks:w,innerComments:b,sym:y}=await xa(g,n,r,o,s);let x=e;y&&!(null==x?void 0:x.fontFamily)&&((x??(x={})).fontFamily=y.font),a&&((x??(x={})).link=a);const N=[...(w??[]).map(e=>({offset:e.offset,run:{text:"",bookmark:e.marker}})),...(b??[]).map(e=>({offset:e.offset,run:{text:"",comment:e.marker}}))];if(N.length>0&&!m&&!v){N.sort((e,t)=>e.offset-t.offset);let e=0;for(const n of N){const t=f.slice(e,n.offset);t.length>0&&d.push({text:t,...x?{styles:x}:{}}),d.push(n.run),e=n.offset}const t=f.slice(e);t.length>0&&d.push({text:t,...x?{styles:x}:{}});continue}if(0===f.length&&!m&&!v)continue;if(d.push({text:f,...m?{image:m}:{},...v?{textBox:v}:{},...y?{sym:y}:{},...x?{styles:x}:{}}),w)for(const n of w)d.push({text:"",bookmark:n.marker});continue}if("fldSimple"===g.localName){const e=g.getAttribute("w:instr")??g.getAttributeNS(po,"instr")??g.getAttribute("instr")??"",l=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,c=await Na(g,t,n,r,o,i,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=r.get(g.getAttribute("r:id")??g.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;if(!e){const t=ko(g,"anchor");t&&(e=`#${t}`)}d.push(...await Na(g,t,n,r,o,i,e,s))}}return d}const Sa="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Ea=/<w:rPr(?:\s|\/|>)/,ka=/<w:pPr(?:\s|\/|>)/;function _a(e){if(Array.isArray(e))return e.map(_a);if(!e||"object"!=typeof e)return e;const t=e,n=function(e){return"string"==typeof e.kind||"string"==typeof e.type||Array.isArray(e.runs)||Array.isArray(e.rows)||Array.isArray(e.cells)||Array.isArray(e.blocks)}(t),r={};for(const[o,i]of Object.entries(t).sort(([e],[t])=>e.localeCompare(t)))void 0===i||"id"===o&&n||"ooxmlSource"===o||o.startsWith("__")||(r[o]=_a(i));return r}function Ta(e){return JSON.stringify(_a(e))??"undefined"}function Ia(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Ca(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===Sa&&o.localName===t&&n.push(o)}return n}function Aa(e,t){return Ca(e,t)[0]}function Ra(e){return e?(new or).serializeToString(e):void 0}function $a(e){return Ta(e)}function Da(e){return Ta({...e,text:void 0})}function Pa(e,t){e.ooxmlSource={xml:t,semanticSignature:$a(e),structureSignature:Da(e)}}function Oa(e){return e.ooxmlSource}function Ma(e){return Ta(e)}function La(e){return Ta({style:e.style,list:e.list})}function Fa(e){return e.ooxmlSource}function Ba(e){return Ta(e)}function Ua(e){return Ta({style:e.style})}function za(e){return Ta({gridCols:e.gridCols,gridRevision:e.gridRevision})}function Ha(e){return Ta({isHeader:e.isHeader,style:e.style,conditionalStyle:e.conditionalStyle})}function ja(e){return Ta({propertyExceptions:e.propertyExceptions,tblPrExChangeXml:e.tblPrExChangeXml})}function qa(e){return Ta({colSpan:e.colSpan,rowSpan:e.rowSpan,vMerge:e.vMerge,style:e.style,conditionalStyle:e.conditionalStyle,mergeRevisionState:e.mergeRevisionState})}function Wa(e){return e.ooxmlSource}function Ga(e,t){const n=Ra(Aa(t,"tblPr")),r=Ra(Aa(t,"tblGrid")),o=Ca(t,"tr");return o.length===e.rows.length&&o.forEach((t,n)=>{const r=e.rows[n];!function(e,t){const n={};t.rowPropertiesXml&&(n.rowProperties={xml:t.rowPropertiesXml,semanticSignature:Ha(e)}),t.propertyExceptionsXml&&(n.propertyExceptions={xml:t.propertyExceptionsXml,semanticSignature:ja(e)}),(n.rowProperties||n.propertyExceptions)&&(e.ooxmlSource=n)}(r,{rowPropertiesXml:Ra(Aa(t,"trPr")),propertyExceptionsXml:Ra(Aa(t,"tblPrEx"))});const o=Ca(t,"tc");o.length===r.cells.length&&o.forEach((e,t)=>{const n=Ra(Aa(e,"tcPr"));n&&function(e,t){e.ooxmlSource={cellProperties:{xml:t,semanticSignature:qa(e)}}}(r.cells[t],n)})}),{tablePropertiesXml:n,tableGridXml:r}}function Va(e){return e.ooxmlSource}function Xa(e,t,n){const r=new or,o=function(e,t){const n=t.serializeToString(e.cloneNode(!1)),r=n.indexOf(">");if(r<0)return;const o=n.slice(0,r+1),i=e.tagName;return o.slice(`<${i}`.length,o.endsWith("/>")?-2:-1).trim()||void 0}(e,r),i=t?No(t,po,"sectPr"):null,a=i?void 0:r.serializeToString(e),s=t&&!i?r.serializeToString(t):void 0,l=function(e,t){const n=[],r=e=>{for(let o=0;o<e.childNodes.length;o+=1){const i=e.childNodes[o];if((null==i?void 0:i.nodeType)!==i.ELEMENT_NODE)continue;const a=i;a.namespaceURI!==po||"r"!==a.localName?(a.namespaceURI!==po||"pPr"!==a.localName&&"p"!==a.localName&&"tbl"!==a.localName&&"txbxContent"!==a.localName)&&r(a):n.push(t.serializeToString(a))}};return r(e),n}(e,r),c=l.length===n.length?l:void 0;if(a||o||s||c)return{...a?{xml:a}:{},...o?{attributes:o}:{},...s?{paragraphPropertiesXml:s}:{},...c?{runXml:c}:{}}}function Za(e){var t;const n={id:ar("run"),text:e.text};let r;e.styles&&(n.styles={...e.styles}),e.revision&&(n.revision={...e.revision}),e.revisionRangeMarker&&(n.revisionRangeMarker={...e.revisionRangeMarker}),(null==(t=e.sdtWrappers)?void 0:t.length)&&(n.sdtWrappers=[...e.sdtWrappers]),r=e.fieldChar?{...n,kind:"fieldChar",fieldChar:{...e.fieldChar}}:void 0!==e.fieldInstruction?{...n,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}:e.field?{...n,kind:"field",field:{...e.field}}:e.textBox?{...n,kind:"textBox",textBox:e.textBox}:e.image?{...n,kind:"image",image:e.image}:e.sym?{...n,kind:"sym",sym:{...e.sym}}:e.math?{...n,text:"",kind:"math",math:e.math}:{...n,kind:"text"};const o=r;return e.footnoteReference&&(o.__importedFootnoteRef={...e.footnoteReference}),e.endnoteReference&&(o.__importedEndnoteRef={...e.endnoteReference}),e.bookmark&&(o.__importedBookmark={...e.bookmark}),e.comment&&(o.__importedComment={...e.comment}),o}function Ya(e,t,n,r,o){var i,a;const s=e.length>0?e.map(Za):[{id:ar("run"),text:"",kind:"text",...r?{styles:{...r}}:{}}],l={id:ar("paragraph"),type:"paragraph",runs:s};l.style=t?{...t}:void 0;for(const c of l.runs)c.styles=gi(c.styles,null==(i=l.style)?void 0:i.styleId);if(l.list=n?{...n}:void 0,(null==(a=null==o?void 0:o.runXml)?void 0:a.length)===l.runs.length)for(let c=0;c<l.runs.length;c+=1)Pa(l.runs[c],o.runXml[c]);return o&&function(e,t){const n={};t.xml&&(n.xml=t.xml,n.semanticSignature=Ma(e)),t.attributes&&(n.attributes=t.attributes),t.paragraphPropertiesXml&&(n.paragraphProperties={xml:t.paragraphPropertiesXml,semanticSignature:La(e)}),(n.xml||n.attributes||n.paragraphProperties)&&(e.ooxmlSource=n)}(l,o),l}function Qa(e){return e.some(e=>e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.revisionRangeMarker||e.text.replace(/\s/g,"").length>0)}async function Ka(e,t,n,r,o,i,a,s){const l=No(e,po,"pPr"),c=await Na(e,t,n,r,o,i,void 0,a),u=Di(Pi(l,i.colors)),d=vi(No(l,po,"rPr"),i),f=function(e,t){if(!e)return;const n=No(e,po,"numPr");if(!n)return;const r=ko(No(n,po,"numId"),"val");if(!r)return;const o=ko(No(n,po,"ilvl"),"val")??"0",i=Number.parseInt(o,10),a=Number.isFinite(i)?i:0,s=ai(t,r,a),l=[];for(let m=0;m<=a;m+=1)l[m]=ai(t,r,m).format??"decimal";const c=`${r}:${a}`,u=!t.seenInstances.has(c);t.seenInstances.add(c);const d=u?t.numStartOverrides.get(c)??s.startAt:void 0,f={kind:s.kind??"ordered",level:a,instanceId:r,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}:{}},p=oi(r,1),h=oi(t.numToAbstractId.get(r),0);return(void 0!==p||void 0!==h||s.rawFormat||void 0!==s.restartAfterLevel||s.paragraphStyleId)&&function(e,t){e.ooxmlNumbering={...t,importedFormat:e.format,importedKind:e.kind}}(f,{...void 0!==p?{sourceNumId:p}:{},...void 0!==h?{sourceAbstractNumId:h}:{},...s.rawFormat?{format:s.rawFormat}:{},...void 0!==s.restartAfterLevel?{restartAfterLevel:s.restartAfterLevel}:{},...s.paragraphStyleId?{paragraphStyleId:s.paragraphStyleId}:{}}),{list:f,indent:s.indent}}(l,t),p=null==f?void 0:f.list;let h=u;if(null==f?void 0:f.indent){const{left:e,hanging:t}=f.indent,n=u??{};h={...n,...void 0===n.indentLeft&&void 0!==e?{indentLeft:e}:{},...void 0===n.indentHanging&&void 0!==t?{indentHanging:t}:{}}}const m=$i(h),g=function(e,t){var n;const r=No(e,po,"framePr");if(!r)return null;const o=ko(r,"dropCap");if(!o||"none"===o)return null;const i=t.map(e=>e.text).join("");if(0===i.length)return null;const a=Number(ko(r,"lines"));return{text:i,lines:Number.isFinite(a)&&a>0?a:3,type:"margin"===o?"margin":"drop",style:null==(n=t[0])?void 0:n.styles}}(l,c);if(g)return{paragraphs:[],pageBreakAfter:!1,dropCapFrame:g};const{segments:v,hasPageBreak:w}=function(e){const t=[[]];let n=!1;const r=(e,n)=>{(0!==n.length||e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.revisionRangeMarker)&&t[t.length-1].push({...e,text:n})};for(const o of e){if(!o.text.includes("\f")){r(o,o.text);continue}const e=o.text.split("\f");e.forEach((i,a)=>{r(o,i),a<e.length-1&&(n=!0,t.push([]))})}return{segments:t,hasPageBreak:n}}(c);if(!w){return{paragraphs:[Ya(c,m,p,d,Xa(e,l,c))],pageBreakAfter:!1}}const b=[];let y=!1;for(let x=0;x<v.length;x+=1){const e=v[x];if(x>0&&(y=!0),!Qa(e))continue;const t=y?{...m??{},pageBreakBefore:!0}:m;b.push(Ya(e,t,p,d)),y=!1}return{paragraphs:b,pageBreakAfter:y}}async function Ja(e,t,n,r,o,i,a,s){return(await Ka(e,t,n,r,o,i,a)).paragraphs[0]??dr([{text:""}])}function es(e,t,n,r){for(const o of fo(e)){if(o.namespaceURI!==po)continue;if(o.localName===t){r.push({element:o,...n.length>0?{sdtWrappers:n}:{}});continue}if("sdt"!==o.localName)continue;const e=No(o,po,"sdtContent");if(!e)continue;const i=No(o,po,"sdtPr"),a=No(o,po,"sdtEndPr"),s={groupId:ar("sdt"),sdtPr:Yi(i),...a?{sdtEndPrXml:(new or).serializeToString(a)}:{}};es(e,t,[...n,s],r)}}function ts(e,t){const n=[];return es(e,t,[],n),n}function ns(e,t){if(!t.every(e=>"paragraph"===e.type))return;const n=bo(e,po,"p");n.length===t.length&&function(e,t){var n,r;const o=e=>e.style??(e.style={}),i=e.length-1;for(let a=0;a<e.length;a+=1){const n=t[a];n&&(0===a&&n.before&&(o(e[a]).spacingBefore=0),a===i&&n.after&&(o(e[a]).spacingAfter=0))}for(let a=0;a<i;a+=1){if(!(null==(n=t[a])?void 0:n.after)||!(null==(r=t[a+1])?void 0:r.before))continue;const i=o(e[a]),s=o(e[a+1]);(i.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:i.spacingAfter=0}}(t,n.map(e=>function(e){const t=No(e,po,"spacing");return{before:Io(ko(t,"beforeAutospacing")),after:Io(ko(t,"afterAutospacing"))}}(No(e,po,"pPr"))))}async function rs(e,t,n,r,o,i,a,s){var l,c;const u=[],d=No(e,po,"tblGrid");if(d)for(const y of bo(d,po,"gridCol")){const e=jo(ko(y,"w"));void 0!==e&&u.push(e)}const f=No(d,po,"tblGridChange"),p=No(e,po,"tblPr"),h=ko(No(p,po,"tblStyle"),"val"),m=ki(p,h??void 0),g=function(e){const t=No(e,po,"tblLook"),n=e=>{const n=ko(t,e);return null===n||""===n?void 0:Io(n)},r=ko(t,"val"),o=r?Number.parseInt(r,16):Number.NaN,i=e=>Number.isFinite(o)?0!==(o&e):void 0;return{firstRow:n("firstRow")??i(32)??!0,lastRow:n("lastRow")??i(64)??!1,firstCol:n("firstColumn")??i(128)??!0,lastCol:n("lastColumn")??i(256)??!1,noHBand:n("noHBand")??i(512)??!1,noVBand:n("noVBand")??i(1024)??!1}}(p),v=ts(e,"tr"),w=[];for(let y=0;y<v.length;y+=1){const e=v[y],t=e.element,n=No(t,po,"trPr"),r=Ni(n),o=ts(t,"tc"),s=[];for(let c=0;c<o.length;c+=1){const e=o[c],t=e.element,n=No(t,po,"tcPr"),r=await a(t);ns(t,r);const u=Ti(n);if("continue"===Ci(n)&&s.length>0){const e=s[s.length-1];e.colSpan=(e.colSpan??1)+u;continue}const d=Ii(n),f=Ai(n,0,i.colors),p=fr(r.length>0?r:[dr([{text:""}])],u,"restart"===d?{rowSpan:1,vMerge:d}:d?{vMerge:d}:void 0);f&&(p.style=f),p.conditionalStyle=Ni(n),(null==(l=e.sdtWrappers)?void 0:l.length)&&(p.sdtWrappers=[...e.sdtWrappers]);const h=To(t);h&&(p.extAttributes=h),"continue"===d&&(p.blocks=[]),s.push(p)}const u=pr(s,Ri(t)?{isHeader:!0}:void 0),d=_i(n);d&&(u.style=d),u.conditionalStyle=r,(null==(c=e.sdtWrappers)?void 0:c.length)&&(u.sdtWrappers=[...e.sdtWrappers]);const f=To(t);f&&(u.extAttributes=f);const p=No(t,po,"tblPrEx");if(p){const e=ki(p);e&&(u.propertyExceptions=e);const t=No(p,po,"tblPrExChange");t&&(u.tblPrExChangeXml=(new or).serializeToString(t))}w.push(u)}for(let y=0;y<w.length;y+=1){const e=w[y];for(let t=0;t<e.cells.length;t+=1){const n=e.cells[t];if("restart"!==n.vMerge)continue;let r=1;for(let e=y+1;e<w.length;e+=1){const n=w[e].cells[t];if(!n||"continue"!==n.vMerge)break;r+=1}r>1&&(n.rowSpan=r)}}const b=function(e,t){return{id:ar("table"),type:"table",rows:e,gridCols:t}}(w,u.length>0?u:void 0);if(m&&(b.style=m),b.style?b.style.tblLook=g:h&&(b.style={tblLook:g}),f){const e=No(f,po,"tblGrid"),t=e?bo(e,po,"gridCol").map(e=>jo(ko(e,"w"))).filter(e=>void 0!==e):[],n=ko(f,"date"),r=n?Date.parse(n):Number.NaN;b.gridRevision={id:ko(f,"id")??"revision:grid",author:ko(f,"author")??"Unknown",date:Number.isFinite(r)?r:0,type:"grid",previous:t}}return function(e,t){let n="string"==typeof t?{xml:t}:t;if("string"==typeof t){const r=(new ir).parseFromString(t,"application/xml").documentElement;(null==r?void 0:r.namespaceURI)===Sa&&"tbl"===r.localName&&(n={...n,...Ga(e,r)})}const r={xml:n.xml,semanticSignature:Ba(e)};n.tablePropertiesXml&&(r.tableProperties={xml:n.tablePropertiesXml,semanticSignature:Ua(e)}),n.tableGridXml&&(r.tableGrid={xml:n.tableGridXml,semanticSignature:za(e)}),e.ooxmlSource=r}(b,(new or).serializeToString(e)),b}async function os(e,t,n,r,o,i,a){if(e.namespaceURI!==po)return[];if("p"===e.localName){return(await Ka(e,t,n,r,o,i,a)).paragraphs}return"tbl"===e.localName?[await rs(e,0,0,0,0,i,a)]:"sdt"===e.localName?is(e,t,n,r,o,i,a):[]}async function is(e,t,n,r,o,i,a){const s=No(e,po,"sdtPr"),l=No(e,po,"sdtEndPr"),c={groupId:ar("sdt"),sdtPr:Yi(s),...l?{sdtEndPrXml:(new or).serializeToString(l)}:{}},u=No(e,po,"sdtContent"),d=[];if(u)for(let f=0;f<u.childNodes.length;f+=1){const e=u.childNodes[f];(null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&d.push(...await os(e,t,n,r,o,i,a))}for(const f of d)f.sdtWrappers=[c,...f.sdtWrappers??[]];return d}function as(e,t,n,r,o){return i=>async function(e,t,n,r,o,i){const a=as(t,n,r,o,i),s=[];for(let l=0;l<e.childNodes.length;l+=1){const c=e.childNodes[l];(null==c?void 0:c.nodeType)===c.ELEMENT_NODE&&s.push(...await os(c,t,n,r,o,i,a))}return s}(i,e,t,n,r,o)}async function ss(e,t,n,r,o,i,a){if(!e)return[];const s=(new ir).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=as(t,n,r,o,i),c=[];for(let u=0;u<s.childNodes.length;u+=1){const e=s.childNodes[u];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const a=e;"p"===a.localName&&a.namespaceURI===po?c.push(await Ja(a,t,n,r,o,i,l)):"tbl"===a.localName&&a.namespaceURI===po&&c.push(await rs(a,0,0,0,0,i,l))}return c}const ls=new Set(["separator","continuationSeparator","continuationNotice"]);async function cs(e,t,n,r,o,i,a,s){const l={byDocxId:new Map,notes:{items:{}}};if(!t)return l;const c=(new ir).parseFromString(t,"application/xml").documentElement;if(!c)return l;const u={},d=new Map;let f,p;const h=bo(c,po,e);let m=0;const g=as(n,r,o,i,a);for(const v of h){const t=ko(v,"id")??"",s=ko(v,"type")??"",l=[];for(let e=0;e<v.childNodes.length;e+=1){const t=v.childNodes[e];if((null==t?void 0:t.nodeType)!==t.ELEMENT_NODE)continue;const s=t;s.namespaceURI===po&&("p"===s.localName?l.push(await Ja(s,n,r,o,i,a,g)):"tbl"===s.localName&&l.push(await rs(s,0,0,0,0,a,g)))}if(ls.has(s)){"separator"===s?f=l:"continuationSeparator"===s&&(p=l);continue}if(("-1"===t||"0"===t)&&0===l.length)continue;m+=1;const c=`${e}:imported:${m}`,h=Number.parseInt(t,10),w={id:c,blocks:l.length>0?l:[],docxId:Number.isFinite(h)?h:void 0};u[c]=w,t&&d.set(t,w)}return{byDocxId:d,notes:{items:u,separator:f,continuationSeparator:p},separator:f,continuationSeparator:p}}function*us(e,t){const n=Zr(e);for(const r of n){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const n of e)for(const e of n)for(const n of Qr(e))for(const e of n.runs)e.kind===t&&(yield{paragraph:n,run:e})}}function ds(e,t,n){if(!e)return{blocks:e,changed:!1};let r=!1;const o=e.map(e=>{switch(e.type){case"paragraph":{const o=function(e,t,n){let r=!1;const o=e.runs.map(e=>{const o=t.getRef(e);if(!o)return e;const i=n.get(o.id);return void 0===i||e.text===i?e:(r=!0,{...e,text:i})});return r?{...e,runs:o}:e}(e,t,n);return o!==e&&(r=!0),o}case"table":{let o=!1;const i=e.rows.map(e=>{let r=!1;const i=e.cells.map(e=>{const o=ds(e.blocks,t,n);return o.changed&&o.blocks?(r=!0,{...e,blocks:o.blocks}):e});return r?(o=!0,{...e,cells:i}):e});return o?(r=!0,{...e,rows:i}):e}default:return _r(e,"block")}});return{blocks:r?o:e,changed:r}}function fs(e,t,n){var r,o;const i=(null==(r=t.settings)?void 0:r.numberFormat)??"decimal",a=(null==(o=t.settings)?void 0:o.startAt)??1,s=new Set,l=new Map;let c=a-1;for(const{run:h}of us(e,n.runKind)){const e=n.getRef(h);e&&(s.add(e.id),e.customMark?l.set(e.id,e.customMark):l.has(e.id)||(c+=1,l.set(e.id,n.formatMarker(c,i))))}let u=!1;const d=Zr(e).map(e=>{const t=ds(e.blocks,n,l),r=ds(e.header,n,l),o=ds(e.firstPageHeader,n,l),i=ds(e.evenPageHeader,n,l),a=ds(e.footer,n,l),s=ds(e.firstPageFooter,n,l),c=ds(e.evenPageFooter,n,l);return t.changed||r.changed||o.changed||i.changed||a.changed||s.changed||c.changed?(u=!0,{...e,blocks:t.blocks??e.blocks,header:r.blocks,firstPageHeader:o.blocks,evenPageHeader:i.blocks,footer:a.blocks,firstPageFooter:s.blocks,evenPageFooter:c.blocks}):e}),f={};let p=!1;for(const[h,m]of Object.entries(t.items))s.has(h)||void 0!==m.docxId?f[h]=m:p=!0;return{sections:d,sectionsChanged:u,nextItems:f,itemsChanged:p}}const ps=[[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 hs(e){if(e<=0)return String(e);let t=e,n="";for(const[r,o]of ps)for(;t>=r;)n+=o,t-=r;return n}function ms(e){if(e<=0)return String(e);let t=e,n="";for(;t>0;){n="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+n,t=Math.floor((t-1)/26)}return n}const gs=["*","†","‡","§","¶","#"];function vs(e,t="decimal"){switch(t){case"lowerRoman":return hs(e);case"upperRoman":return hs(e).toUpperCase();case"lowerLetter":return ms(e);case"upperLetter":return ms(e).toUpperCase();case"symbol":{const t=(e-1)%gs.length,n=Math.floor((e-1)/gs.length)+1;return gs[t].repeat(n)}default:return String(e)}}const ws={runKind:"footnoteReference",getRef:e=>{const t=Tr(e);return t?{id:t.footnoteId,customMark:t.customMark}:void 0},formatMarker:vs};const bs={runKind:"endnoteReference",getRef:e=>{const t=Ir(e);return t?{id:t.endnoteId,customMark:t.customMark}:void 0},formatMarker:vs};const ys=new Set(["_GoBack"]);function xs(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedBookmark;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)xs(r,t,n)}function Ns(e){var t;const n=[],r={value:0},o=e=>{null==e||e.forEach(e=>xs(e,n,r))};for(const u of e)o(u.blocks),o(u.header),o(u.firstPageHeader),o(u.evenPageHeader),o(u.footer),o(u.firstPageFooter),o(u.evenPageFooter);if(0===n.length)return;const i=new Map,a=new Map;for(const u of n){const e="start"===u.marker.kind?i:a,t=e.get(u.marker.docxId);t?t.push(u):e.set(u.marker.docxId,[u])}const s={},l=[],c=n.filter(e=>"start"===e.marker.kind);for(const u of c){const{marker:e,anchor:n}=u,r=e.name;if(!r||ys.has(r))continue;const o=Number.parseInt(e.docxId,10),i=null==(t=a.get(e.docxId))?void 0:t.shift(),c=sr(),d={id:c,name:r,start:n};r.startsWith("_")&&(d.hidden=!0),Number.isNaN(o)||(d.docxIdHint=o),void 0!==e.colFirst&&(d.colFirst=e.colFirst),void 0!==e.colLast&&(d.colLast=e.colLast),i&&(d.end=i.anchor),s[c]=d,l.push(c)}return 0!==l.length?{items:s,order:l}:void 0}function Ss(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedComment;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)Ss(r,t,n)}function Es(e){const t=[],n={value:0},r=e=>{null==e||e.forEach(e=>Ss(e,t,n))};for(const i of e)r(i.blocks),r(i.header),r(i.firstPageHeader),r(i.evenPageHeader),r(i.footer),r(i.firstPageFooter),r(i.evenPageFooter);const o=new Map;for(const{marker:i,anchor:a}of t){const e=o.get(i.docxId)??{};"start"===i.kind?e.start=a:e.end=a,o.set(i.docxId,e)}return o}const ks="http://schemas.microsoft.com/office/word/2012/wordml";function _s(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI===po){if("t"===o.localName){t+=o.textContent??"";continue}if("tab"===o.localName){t+="\t";continue}if("br"===o.localName||"cr"===o.localName){t+="\n";continue}}t+=_s(o)}return t}function Ts(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function Is(e,t){const n=new Map;if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;const o=function(e){const t=new Map;if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of bo(n,ks,"commentEx")){const e=r.getAttributeNS(ks,"paraId");if(!e)continue;const n=r.getAttributeNS(ks,"done");t.set(e,"1"===n||"true"===n)}return t}(t);for(const i of bo(r,po,"comment")){const e=ko(i,"id");if(null===e)continue;const t=ko(i,"author")??"",r=ko(i,"initials")??void 0,a=Ts(ko(i,"date")),s=Ts(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du","dateUtc")),l=bo(i,po,"p"),c=l.map(e=>_s(e)).join("\n").trim(),u=l.length>0?ko(l[0],"paraId")??void 0:void 0,d=void 0!==u?o.get(u):void 0;n.set(e,{author:t,...r?{initials:r}:{},...void 0!==a?{date:a}:{},...void 0!==s?{dateUtc:s}:{},text:c,...d?{resolved:d}:{},...u?{paraId:u}:{}})}return n}async function Cs(e,t={}){var n,r,i,a,s,l,c,u,d,f,p,h,m,g,v;null==(n=t.onProgress)||n.call(t,"opening-docx");const w=await o.loadAsync(e),b=await(null==(r=w.file("word/document.xml"))?void 0:r.async("string"));if(!b)throw new Error("Missing word/document.xml");const y=Mo(await(null==(i=w.file("word/_rels/document.xml.rels"))?void 0:i.async("string"))),x=function(e){const t={abstractLevels:new Map,numOverrideLevels:new Map,numStartOverrides:new Map,numToAbstractId:new Map,seenInstances:new Set};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of Array.from(n.getElementsByTagNameNS(po,"abstractNum"))){const e=ko(r,"abstractNumId");if(e)for(const n of bo(r,po,"lvl")){const r=ko(n,"ilvl")??"0";t.abstractLevels.set(`${e}:${r}`,ii(n))}}for(const r of Array.from(n.getElementsByTagNameNS(po,"num"))){const e=ko(r,"numId"),n=ko(No(r,po,"abstractNumId"),"val");if(e&&n){t.numToAbstractId.set(e,n);for(const n of bo(r,po,"lvlOverride")){const r=ko(n,"ilvl")??"0",o=No(n,po,"lvl");o&&t.numOverrideLevels.set(`${e}:${r}`,ii(o));const i=ri(No(n,po,"startOverride"));void 0!==i&&t.numStartOverrides.set(`${e}:${r}`,i)}}}return t}(await(null==(a=w.file("word/numbering.xml"))?void 0:a.async("string"))??null),N=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml"),r=jo(ko(No(n.documentElement,po,"defaultTabStop"),"val"));void 0!==r&&(t.defaultTabStop=r);const o=No(n.documentElement,po,"autoHyphenation");if(o){const e=ko(o,"val");t.autoHyphenation="0"!==e&&"false"!==e}const i=No(n.documentElement,po,"doNotHyphenateCaps");if(i){const e=ko(i,"val");t.doNotHyphenateCaps="0"!==e&&"false"!==e}const a=Number.parseInt(ko(No(n.documentElement,po,"consecutiveHyphenLimit"),"val")??"",10);Number.isFinite(a)&&a>=0&&(t.consecutiveHyphenLimit=a);const s=jo(ko(No(n.documentElement,po,"hyphenationZone"),"val"));void 0!==s&&(t.hyphenationZone=s),t.footnoteSettings=Jo(No(n.documentElement,po,"footnotePr")),t.endnoteSettings=Jo(No(n.documentElement,po,"endnotePr"));const l=No(n.documentElement,po,"compat");if(l){const e=No(l,po,"adjustLineHeightInTable");if(e){const n=ko(e,"val");t.adjustLineHeightInTable="0"!==n&&"false"!==n}const n=No(l,po,"allowSpaceOfSameStyleInTable");if(n){const e=ko(n,"val");t.allowSpaceOfSameStyleInTable="0"!==e&&"false"!==e}}return t}(await(null==(s=w.file("word/settings.xml"))?void 0:s.async("string"))??null),S=await(null==(l=w.file("word/styles.xml"))?void 0:l.async("string"))??null,E=function(e){if(!e)return;const t=(new ir).parseFromString(e,"application/xml").getElementsByTagNameNS(po,"fonts")[0];if(!t)return;const n=[];for(const r of bo(t,po,"font")){const e=ko(r,"name");if(!e)continue;const t={name:e},o=ko(No(r,po,"altName"),"val");o&&(t.altName=o);const i=ko(No(r,po,"family"),"val");i&&(t.family=i);const a=ko(No(r,po,"pitch"),"val");a&&(t.pitch=a);const s=ko(No(r,po,"charset"),"val");s&&(t.charset=s);const l=ko(No(r,po,"panose1"),"val");l&&(t.panose1=l);const c=No(r,po,"sig");if(c){const e={};for(let t=0;t<c.attributes.length;t+=1){const n=c.attributes[t];e[n.localName??n.name]=n.value}Object.keys(e).length>0&&(t.sig=e)}n.push(t)}return n.length>0?n:void 0}(await(null==(c=w.file("word/fontTable.xml"))?void 0:c.async("string"))??null),k=await(null==(u=w.file("word/theme/theme1.xml"))?void 0:u.async("string"))??null,_=null!==k,T=Yo(k),I=function(e,t){if(!e)return;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return;const r=No(n,po,"docDefaults"),o=No(No(r,po,"pPrDefault"),po,"pPr"),i=No(No(r,po,"rPrDefault"),po,"rPr"),a=o?{spacingBefore:0,spacingAfter:0,...Di(Pi(o,t.colors))}:Di(Pi(o,t.colors)),s=vi(i,t),l={};let c;for(const u of bo(n,po,"style")){const e=ko(u,"styleId"),n=ko(u,"type");if(!e||"paragraph"!==n&&"character"!==n&&"table"!==n)continue;const r=ko(No(u,po,"name"),"val")??e,o=ko(No(u,po,"basedOn"),"val")??void 0,i=ko(No(u,po,"next"),"val")??void 0,d=Co(u,"qFormat"),f=Co(u,"semiHidden"),p=Co(u,"unhideWhenUsed"),h=ko(No(u,po,"uiPriority"),"val"),m=null===h?NaN:Number(h),g=Number.isInteger(m)&&m>=0?m:void 0,v=Di(Pi(No(u,po,"pPr"),t.colors)),w=vi(No(u,po,"rPr"),t);let b;if("table"===n){const n=No(u,po,"tblPr"),r=e=>{const t=ko(No(n,po,e),"val"),r=t?Number(t):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0},o=r("tblStyleRowBandSize"),i=r("tblStyleColBandSize"),a={};for(const e of bo(u,po,"tblStylePr")){const n=ko(e,"type");if(!n)continue;const r=No(e,po,"tcPr"),o=Ai(r,0,t.colors),i=ki(No(e,po,"tblPr")),s=fi(No(r,po,"shd"),t.colors),l=vi(No(e,po,"rPr"),t),c=ui(li(No(r,po,"tcBorders"))),u=Pi(No(e,po,"pPr"),t.colors),d=_i(No(e,po,"trPr"));(s||l||c||u||d||o||i)&&(a[n]={...s?{shading:s}:{},...l?{textStyle:l}:{},...c?{borders:c}:{},...u?{paragraphStyle:u}:{},...d?{rowStyle:d}:{},...o?{cellStyle:o}:{},...i?{tableStyle:i}:{}})}b={...ki(n,e)??{styleId:e},...void 0!==o?{rowBandSize:o}:{},...void 0!==i?{colBandSize:i}:{},...Object.keys(a).length>0?{conditionalFormats:a}:{}}}const y="paragraph"===n&&Io(ko(u,"default"));y&&(c=e),l[e]={id:e,name:r,type:n,isDefault:Io(ko(u,"default")),basedOn:o,nextStyle:i,qFormat:d,uiPriority:g,semiHidden:f,unhideWhenUsed:p,paragraphStyle:"paragraph"===n&&y?di(a,v):v,textStyle:"paragraph"===n&&y?di(s,w):w,tableStyle:b}}return c&&l[c]?l:((a||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:a,textStyle:s}),ui(l))}(S,T);null==(d=t.onProgress)||d.call(t,"parsing-document");const C=(new ir).parseFromString(b,"application/xml"),A=C.documentElement?No(C.documentElement,po,"background"):null,R=(null==A?void 0:A.getAttribute("w:color"))??(null==A?void 0:A.getAttributeNS(po,"color"))??null,$=C.getElementsByTagNameNS(po,"body")[0];if(!$)return Jr([dr([{text:""}])]);const D={assets:{},byPath:new Map,nextId:1};let P=null;const O=[],M=[[]];let L=!1,F=null;const B=e=>{L&&(e.style={...e.style??{},pageBreakBefore:!0},L=!1),F&&"paragraph"===e.type&&(e.dropCap=F,F=null),M[M.length-1].push(e)};let U=0;for(let o=0;o<$.childNodes.length;o+=1){const e=$.childNodes[o];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===po&&"sectPr"!==t.localName&&(U+=1)}}let z=0;const H=()=>{var e;z+=1,U>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",z/U))},j=as(x,w,y,D,T);for(let o=0;o<$.childNodes.length;o+=1){const e=$.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===po){if("sectPr"===t.localName)O.push(Li(t)),M.push([]),L=!1;else if("p"===t.localName){const e=await Ka(t,x,w,y,D,T,j);for(const t of e.paragraphs)B(t);e.dropCapFrame&&(F=e.dropCapFrame),e.pageBreakAfter&&(L=!0);const n=No(t,po,"pPr"),r=n?No(n,po,"sectPr"):null;r&&(O.push(Li(r)),M.push([]),L=!1),H()}else if("tbl"===t.localName)B(await rs(t,0,0,0,0,T,j)),H();else if("sdt"===t.localName){for(const e of await is(t,x,w,y,D,T,j))B(e);H()}await Ro(50,z)}}if(0===O.length){const e=No($,po,"sectPr");O.push(e?Li(e):{pageSettings:Fi($),headerRIds:{},footerRIds:{}})}null==(f=t.onProgress)||f.call(t,"parsing-headers-footers");const q=[],W=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,G=O.filter(W).length;let V=0;const X=()=>{var e;V+=1,G>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",V/G))};for(let o=0;o<O.length;o+=1){const e=O[o],t=M[o]??[];Bi(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,N);const n=async t=>{var n,r;if(!t)return[];const o=y.get(t);if(!o)return[];let i=o.startsWith("/")?o.slice(1):o;i.startsWith("word/")||(i=`word/${o}`);const a=await(null==(n=w.file(i))?void 0:n.async("string")),s=await Lo(w,i);if(!P&&a){const e=a.match(/<v:textpath[^>]*string="([^"]+)"/i),t=a.match(/<v:shape\b([^>]*)>/i),n=(null==t?void 0:t[1])??"",o=e=>{var t;return null==(t=n.match(new RegExp(`${e}="([^"]+)"`,"i")))?void 0:t[1]},i=e=>e.replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");if(null==e?void 0:e[1])P={kind:"text",text:i(e[1]),color:o("fillcolor"),opacity:Number(o("fillopacity"))||void 0,rotation:Number(o("rotation"))||void 0};else{const e=null==(r=a.match(/<v:imagedata[^>]*(?:r:id|id)="([^"]+)"/i))?void 0:r[1],t=e?s.get(e):void 0;if(t){const e=t.startsWith("../")?`word/${t.slice(3)}`:t,n=await Oo(w,D,e);n&&(P={kind:"image",src:n,color:o("fillcolor"),opacity:Number(o("fillopacity"))||void 0,rotation:Number(o("rotation"))||void 0})}}}const l=await ss(a??null,x,w,s,D,T);return Bi(l,e.docGridLinePitchPx,e.docGridMode,e.docGridType,N),l},r=await n(e.headerRIds.default),i=await n(e.headerRIds.first),a=await n(e.headerRIds.even),s=await n(e.footerRIds.default),l=await n(e.footerRIds.first),c=await n(e.footerRIds.even);W(e)&&X(),await Ro(2,V);const u=Lr(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}}),d=o>0?null==(p=O[o-1])?void 0:p.breakType:void 0,f=e.pageNumbering,h=e.verticalAlignment,m=e.bidi;q.push({id:`section:${o+1}`,blocks:t.length>0?t:[dr([{text:""}])],pageSettings:u,...e.pageBorder?{pageBorder:e.pageBorder}:{},header:r.length>0?r:void 0,firstPageHeader:i.length>0?i: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,...d?{breakType:d}:{},...f?{pageNumbering:f}:{},...h?{verticalAlignment:h}:{},...m?{bidi:m}:{}})}const Z=await(null==(h=w.file("word/footnotes.xml"))?void 0:h.async("string"))??null,Y=Z?await Lo(w,"word/footnotes.xml"):new Map,Q=await async function(e,t,n,r,o,i){const a=await cs("footnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,footnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(Z,x,w,Y,D,T);N.footnoteSettings&&(Q.footnotes.settings=N.footnoteSettings);const K=Object.keys(Q.footnotes.items).length>0||Q.footnotes.separator||Q.footnotes.continuationSeparator||Q.footnotes.settings?Q.footnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedFootnoteRef;if(!i)return;delete o.__importedFootnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"footnoteReference",footnoteReference:{footnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};As(e,n)}(q,Q.byDocxId);const J=await(null==(m=w.file("word/endnotes.xml"))?void 0:m.async("string"))??null,ee=J?await Lo(w,"word/endnotes.xml"):new Map,te=await async function(e,t,n,r,o,i){const a=await cs("endnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,endnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(J,x,w,ee,D,T);N.endnoteSettings&&(te.endnotes.settings=N.endnoteSettings);const ne=Object.keys(te.endnotes.items).length>0||te.endnotes.separator||te.endnotes.continuationSeparator||te.endnotes.settings?te.endnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedEndnoteRef;if(!i)return;delete o.__importedEndnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"endnoteReference",endnoteReference:{endnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};As(e,n)}(q,te.byDocxId);const re=Ns(q),oe=function(e,t){const n=new Set([...e.keys(),...t.keys()]);if(0===n.size)return;const r=[...n].sort((e,t)=>{const n=Number.parseInt(e,10),r=Number.parseInt(t,10);return Number.isNaN(n)||Number.isNaN(r)?e.localeCompare(t):n-r}),o={},i=[];for(const a of r){const n=e.get(a),r=t.get(a);if(!n&&!r)continue;const s=lr(),l=Number.parseInt(a,10);o[s]={id:s,author:(null==r?void 0:r.author)??"",...(null==r?void 0:r.initials)?{initials:r.initials}:{},...void 0!==(null==r?void 0:r.date)?{date:r.date}:{},...void 0!==(null==r?void 0:r.dateUtc)?{dateUtc:r.dateUtc}:{},...(null==r?void 0:r.resolved)?{resolved:r.resolved}:{},text:(null==r?void 0:r.text)??"",...(null==n?void 0:n.start)?{start:n.start}:{},...(null==n?void 0:n.end)?{end:n.end}:{},...Number.isNaN(l)?{}:{docxIdHint:l}},i.push(s)}return i.length>0?{items:o,order:i}:void 0}(Es(q),Is(await(null==(g=w.file("word/comments.xml"))?void 0:g.async("string"))??null,await(null==(v=w.file("word/commentsExtended.xml"))?void 0:v.async("string"))??null)),ie=q.length>1||q.some(e=>{var t,n,r,o,i,a;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(n=e.firstPageHeader)?void 0:n.length)??0)>0||((null==(r=e.evenPageHeader)?void 0:r.length)??0)>0||((null==(o=e.footer)?void 0:o.length)??0)>0||((null==(i=e.firstPageFooter)?void 0:i.length)??0)>0||((null==(a=e.evenPageFooter)?void 0:a.length)??0)>0||void 0!==e.breakType||void 0!==e.pageNumbering||void 0!==e.verticalAlignment||void 0!==e.bidi||void 0!==e.pageBorder}),ae=Object.keys(D.assets).length>0,se=e=>{var t,n;if(_){const r=(null==(n=null==(t=T.data)?void 0:t.name)?void 0:n.toLowerCase())??"",o=["oasis","office","facet","integral","ion","retrospect"].find(e=>r.includes(e));e.design={...e.design??{},...o?{themeId:o}:{},...T.data?{themeData:T.data}:{}}}R&&(e.design={...e.design??{},pageColor:`#${R.replace(/^#/,"")}`}),P&&(e.design={...e.design??{},watermark:P});const r={};void 0!==N.defaultTabStop&&(r.defaultTabStop=N.defaultTabStop),N.allowSpaceOfSameStyleInTable&&(r.allowSpaceOfSameStyleInTable=!0),N.autoHyphenation&&(r.autoHyphenation=!0),N.doNotHyphenateCaps&&(r.doNotHyphenateCaps=!0),void 0!==N.consecutiveHyphenLimit&&(r.consecutiveHyphenLimit=N.consecutiveHyphenLimit),void 0!==N.hyphenationZone&&(r.hyphenationZone=N.hyphenationZone),Object.keys(r).length>0&&(e.settings={...e.settings??{},...r}),E&&(e.fontTable=E);let o=e;return K&&(o.footnotes=K,o=function(e){const t=e.footnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=fs(e,t,ws);return r||i?{...e,sections:r?n:e.sections,footnotes:{...t,items:i?o:t.items}}:e}(o)),ne&&(o.endnotes=ne,o=function(e){const t=e.endnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=fs(e,t,bs);return r||i?{...e,sections:r?n:e.sections,endnotes:{...t,items:i?o:t.items}}:e}(o)),re&&(o.bookmarks=re),oe&&(o.comments=oe),o};if(ie){const e=Jr([]);return e.sections=q,1===q.length&&(e.pageSettings=q[0].pageSettings),I&&(e.styles=I),ae&&(e.assets=D.assets),se(e)}const le=q[0],ce=Jr((null==le?void 0:le.blocks.length)>0?le.blocks:[dr([{text:""}])],null==le?void 0:le.pageSettings);return ae&&(ce.assets=D.assets),I&&(ce.styles=I),se(ce)}function As(e,t){var n,r,o,i,a,s;for(const l of e)l.blocks.forEach(t),null==(n=l.header)||n.forEach(t),null==(r=l.firstPageHeader)||r.forEach(t),null==(o=l.evenPageHeader)||o.forEach(t),null==(i=l.footer)||i.forEach(t),null==(a=l.firstPageFooter)||a.forEach(t),null==(s=l.evenPageFooter)||s.forEach(t)}function Rs(e){return e.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function $s(e){return e.replaceAll("\\","/").replace(/^\/+/,"")}function Ds(e){if("_rels/.rels"===e)return null;const t="/_rels/",n=e.lastIndexOf(t);if(n>=0&&e.endsWith(".rels")){return`${e.slice(0,n)}/${e.slice(n+7).slice(0,-5)}`}return e.startsWith("_rels/")&&e.endsWith(".rels")?e.slice(6,-5):void 0}function Ps(e){if(!e)return[];const t=(new ir).parseFromString(e,"application/xml").documentElement;if(!t)return[];const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if("Relationship"!==o.localName)continue;const i=o.getAttribute("Id"),a=o.getAttribute("Type"),s=o.getAttribute("Target");if(!i||!a||!s)continue;const l=o.getAttribute("TargetMode");n.push({id:i,type:a,target:s,targetMode:"External"===l?"External":"Internal"})}return n}function Os(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">${e.map(e=>{const t="External"===e.targetMode?' TargetMode="External"':"";return`<Relationship Id="${Rs(e.id)}" Type="${Rs(e.type)}" Target="${Rs(e.target)}"${t}/>`}).join("")}</Relationships>`}function Ms(e,t,n){return t.map(t=>{if("External"===t.targetMode)return{...t,resolvedTarget:void 0};const r=function(e,t){const n=t.replaceAll("\\","/"),r=(null==e?void 0:e.includes("/"))?e.slice(0,e.lastIndexOf("/")+1):"",o=n.startsWith("/")?n.slice(1):`${r}${n}`,i=[];for(const a of o.split("/"))if(a&&"."!==a)if(".."!==a)i.push(a);else{if(0===i.length)return null;i.pop()}return i.join("/")}(e,t.target);return r?{...t,resolvedTarget:r}:(null==n||n(t),t)})}const Ls="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Fs="http://schemas.openxmlformats.org/package/2006/relationships",Bs="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Us="http://schemas.microsoft.com/office/word/2010/wordml";function zs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Hs(e,t){return Number.isFinite(e)?Math.max(0,Math.round(e/hr*wr)):t}function js(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*wr):null}function qs(e){return null!=e&&Number.isFinite(e)?Math.max(0,Math.round(20*e)):null}function Ws(e,t="000000"){return na(e)??t}function Gs(e){return`<w:shd w:val="clear" w:color="auto" w:fill="${Ws(e,"FFFFFF")}"/>`}function Vs(e){if("end"===e.kind)return`<w:bookmarkEnd w:id="${e.wId}"/>`;const t=(void 0!==e.colFirst?` w:colFirst="${e.colFirst}"`:"")+(void 0!==e.colLast?` w:colLast="${e.colLast}"`:"");return`<w:bookmarkStart w:id="${e.wId}" w:name="${zs(e.name??"")}"${t}/>`}function Xs(e){switch(e.kind){case"start":return`<w:commentRangeStart w:id="${e.wId}"/>`;case"end":return`<w:commentRangeEnd w:id="${e.wId}"/>`;case"reference":return`<w:r><w:commentReference w:id="${e.wId}"/></w:r>`}}const Zs=`xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du"`;function Ys(e){const t=e.comments.map(({comment:e,wId:t,paraId:n})=>{const r=void 0!==e.date?` w:date="${new Date(e.date).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",o=void 0!==e.dateUtc?` w16du:dateUtc="${new Date(e.dateUtc).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",i=e.initials?` w:initials="${zs(e.initials)}"`:"";return`<w:comment w:id="${t}" w:author="${zs(e.author)}"${r}${o}${i}><w:p w14:paraId="${n}">${a=e.text,`<w:r>${a.split("\n").map((e,t)=>`${t>0?"<w:br/>":""}<w:t xml:space="preserve">${zs(e)}</w:t>`).join("")}</w:r>`}</w:p></w:comment>`;var a}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${Zs}>${t}</w:comments>`}function Qs(e){return void 0!==e&&Number.isSafeInteger(e)&&e>=1}function Ks(e){let t=1;for(const r of Object.values(e))Qs(r.docxId)&&(t=Math.max(t,r.docxId+1));const n=new Set;return e=>{if(Qs(e.docxId)&&!n.has(e.docxId))return n.add(e.docxId),e.docxId;for(;n.has(t);)t+=1;const r=t;return n.add(r),t+=1,r}}function Js(e,t="000000"){if("none"===e.type||e.width<=0)return'w:val="nil"/>';return`w:val="${"dotted"===e.type?"dotted":"dashed"===e.type?"dashed":"single"}" w:sz="${Math.max(1,Math.round(8*e.width))}" w:space="0" w:color="${Ws(e.color,t)}"/>`}function el(e){const t=[["top",e.borderTop],["left",e.borderLeft],["bottom",e.borderBottom],["right",e.borderRight],["between",e.borderBetween],["bar",e.borderBar]].filter(e=>null!=e[1]).map(([e,t])=>`<w:${e} ${Js(t)}`);return t.length>0?`<w:pBdr>${t.join("")}</w:pBdr>`:""}const tl="6F6F6F";function nl(e){return e?Object.entries(e).map(([e,t])=>` ${e}="${zs(t)}"`).join(""):""}function rl(e){const t=/^\d+$/.test(e.id)?e.id:String(Array.from(e.id).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0)),n=Number.isFinite(e.date)?new Date(e.date).toISOString():new Date(0).toISOString();return`w:id="${t}" w:author="${zs(e.author)}" w:date="${n}"`}function ol(e){if(!e||0===Object.keys(e).length)return"";const t=wi.filter(([,t])=>void 0!==e[t]).map(([t,n])=>`w:${t}="${e[n]?"1":"0"}"`).join(" ");return t?`<w:cnfStyle ${t}/>`:""}function il(e,t){return void 0===t?"":t?`<w:${e}/>`:`<w:${e} w:val="0"/>`}function al(e,t,n={}){if("number"==typeof t&&Number.isFinite(t))return`<w:${e} w:w="${qs(t)??0}" w:type="dxa"/>`;if("string"==typeof t){const n=t.trim();if("auto"===n)return`<w:${e} w:w="0" w:type="auto"/>`;if(n.endsWith("%")){const t=Number.parseFloat(n.slice(0,-1));if(Number.isFinite(t))return`<w:${e} w:w="${Math.round(50*t)}" w:type="pct"/>`}const r=Number.parseFloat(n);if(Number.isFinite(r))return`<w:${e} w:w="${Math.round(r)}" w:type="dxa"/>`}return n.fallbackAuto?`<w:${e} w:w="0" w:type="auto"/>`:""}function sl(e,t=!0){return al("tblW",e,{fallbackAuto:t})}function ll(e){return Js(e??{width:.75,type:"solid",color:`#${tl}`},tl)}function cl(e){if(!e)return"";const t=[],n=(e,n)=>{void 0!==n&&Number.isFinite(n)&&t.push(`<w:${e} w:w="${qs(n)??0}" w:type="dxa"/>`)};return n("top",e.top),n("left",e.left),n("bottom",e.bottom),n("right",e.right),n("start",e.start),n("end",e.end),t.length>0?`<w:tblCellMar>${t.join("")}</w:tblCellMar>`:""}function ul(e,t){var n,r,o,i,a,s,l,c,u,d,f;const p=Math.max(1,Math.floor(e.colSpan??1)),h=[],m=ol(e.conditionalStyle);m&&h.push(m);const g=al("tcW",(null==(n=e.style)?void 0:n.width)??t);g&&h.push(g),p>1&&h.push(`<w:gridSpan w:val="${p}"/>`),"restart"===e.vMerge?h.push('<w:vMerge w:val="restart"/>'):"continue"===e.vMerge&&h.push("<w:vMerge/>"),(null==(r=e.style)?void 0:r.shading)&&h.push(Gs(e.style.shading));const v=il("noWrap",null==(o=e.style)?void 0:o.noWrap);v&&h.push(v);const w=il("tcFitText",null==(i=e.style)?void 0:i.fitText);if(w&&h.push(w),(null==(a=e.style)?void 0:a.headers)&&h.push(`<w:headers w:val="${zs(e.style.headers)}"/>`),null==(s=e.style)?void 0:s.verticalAlign){const t="middle"===e.style.verticalAlign?"center":e.style.verticalAlign;h.push(`<w:vAlign w:val="${t}"/>`)}(null==(l=e.style)?void 0:l.textDirection)&&h.push(`<w:textDirection w:val="${e.style.textDirection}"/>`),h.push(function(e){const t=e.style,n=null==t?void 0:t.padding,r=qs(n??(null==t?void 0:t.paddingTop)??0),o=qs(n??(null==t?void 0:t.paddingBottom)??0);return`<w:tcMar><w:top w:w="${r??0}" w:type="dxa"/><w:left w:w="${qs(n??(null==t?void 0:t.paddingLeft)??5.4)??0}" w:type="dxa"/><w:bottom w:w="${o??0}" w:type="dxa"/><w:right w:w="${qs(n??(null==t?void 0:t.paddingRight)??5.4)??0}" w:type="dxa"/>${void 0!==(null==t?void 0:t.paddingStart)?`<w:start w:w="${qs(t.paddingStart)??0}" w:type="dxa"/>`:""}${void 0!==(null==t?void 0:t.paddingEnd)?`<w:end w:w="${qs(t.paddingEnd)??0}" w:type="dxa"/>`:""}</w:tcMar>`}(e)),h.push(function(e){var t,n,r,o,i,a,s,l;const c=[`<w:top ${ll(null==(t=e.style)?void 0:t.borderTop)}`,`<w:left ${ll(null==(n=e.style)?void 0:n.borderLeft)}`,`<w:bottom ${ll(null==(r=e.style)?void 0:r.borderBottom)}`,`<w:right ${ll(null==(o=e.style)?void 0:o.borderRight)}`];return(null==(i=e.style)?void 0:i.borderStart)&&c.push(`<w:start ${ll(e.style.borderStart)}`),(null==(a=e.style)?void 0:a.borderEnd)&&c.push(`<w:end ${ll(e.style.borderEnd)}`),(null==(s=e.style)?void 0:s.borderTopLeftToBottomRight)&&c.push(`<w:tl2br ${ll(e.style.borderTopLeftToBottomRight)}`),(null==(l=e.style)?void 0:l.borderTopRightToBottomLeft)&&c.push(`<w:tr2bl ${ll(e.style.borderTopRightToBottomLeft)}`),`<w:tcBorders>${c.join("")}</w:tcBorders>`}(e));const b=il("hideMark",null==(c=e.style)?void 0:c.hideMark);if(b&&h.push(b),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision,n=ul({...e,style:t.previous});h.push(`<w:tcPrChange ${rl(t)}>${n}</w:tcPrChange>`)}if(null==(d=e.style)?void 0:d.revision){const t=e.style.revision,n="insert"===t.type?"cellIns":"delete"===t.type?"cellDel":"cellMerge",r="merge"===t.type?`${(null==(f=t.previous)?void 0:f.vMerge)?` w:vMergeOrig="${"restart"===t.previous.vMerge?"rest":"cont"}"`:""}${e.vMerge?` w:vMerge="${"restart"===e.vMerge?"rest":"cont"}"`:""}`:"";h.push(`<w:${n} ${rl(t)}${r}/>`)}return h.length>0?`<w:tcPr>${h.join("")}</w:tcPr>`:""}function dl(e,t){if(void 0===t||!Number.isFinite(t))return"";const n=Math.floor(t);return n>0?`<w:${e} w:val="${n}"/>`:""}function fl(e,t){const n="number"==typeof e?qs(e):"string"==typeof e?Number.parseFloat(e):null,r=null!==n&&Number.isFinite(n);if(!r&&!t)return"";const o=[];return r&&o.push(`w:val="${Math.round(n)}"`),o.push(`w:hRule="${t??"atLeast"}"`),`<w:trHeight ${o.join(" ")}/>`}function pl(e){if(!e)return"";const t=[],n=dl("gridBefore",e.gridBefore);n&&t.push(n);const r=dl("gridAfter",e.gridAfter);r&&t.push(r);const o=al("wBefore",e.widthBefore);o&&t.push(o);const i=al("wAfter",e.widthAfter);i&&t.push(i);const a=al("tblCellSpacing",e.cellSpacing);a&&t.push(a);const s=fl(e.height,e.heightRule);s&&t.push(s);const l=il("cantSplit",e.cantSplit);l&&t.push(l);const c=il("hidden",e.hidden);c&&t.push(c);const u=il("tblHeader",e.isHeader);return u&&t.push(u),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),t.length>0?`<w:trPr>${t.join("")}</w:trPr>`:""}function hl(e){var t,n,r,o,i,a,s,l,c,u,d;const f=[],p=ol(e.conditionalStyle);p&&f.push(p);const h=dl("gridBefore",null==(t=e.style)?void 0:t.gridBefore);h&&f.push(h);const m=dl("gridAfter",null==(n=e.style)?void 0:n.gridAfter);m&&f.push(m);const g=al("wBefore",null==(r=e.style)?void 0:r.widthBefore);g&&f.push(g);const v=al("wAfter",null==(o=e.style)?void 0:o.widthAfter);v&&f.push(v);const w=al("tblCellSpacing",null==(i=e.style)?void 0:i.cellSpacing);w&&f.push(w);const b=function(e){var t,n;return fl(null==(t=e.style)?void 0:t.height,null==(n=e.style)?void 0:n.heightRule)}(e);b&&f.push(b);const y=il("cantSplit",null==(a=e.style)?void 0:a.cantSplit);y&&f.push(y),((null==(s=e.style)?void 0:s.isHeader)??e.isHeader)&&f.push("<w:tblHeader/>");const x=il("hidden",null==(l=e.style)?void 0:l.hidden);if(x&&f.push(x),(null==(c=e.style)?void 0:c.align)&&f.push(`<w:jc w:val="${e.style.align}"/>`),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision;f.push(`<w:trPrChange ${rl(t)}>${pl(t.previous)}</w:trPrChange>`)}if((null==(d=e.style)?void 0:d.revision)&&"merge"!==e.style.revision.type){const t=e.style.revision,n="insert"===t.type?"ins":"del";f.push(`<w:${n} ${rl(t)}/>`)}return f.length>0?`<w:trPr>${f.join("")}</w:trPr>`:""}function ml(e){const t=null==e?void 0:e.borders;if(!t)return"";const n=bi.map(([e,n])=>[e,t[n]]).filter(e=>!!e[1]).map(([e,t])=>`<w:${e} ${Js(t)}`).join("");return n?`<w:tblBorders>${n}</w:tblBorders>`:""}function gl(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h;const m=[];if((null==(t=e.style)?void 0:t.styleId)&&m.push(`<w:tblStyle w:val="${zs(e.style.styleId)}"/>`),null==(n=e.style)?void 0:n.tblLook){const t=e.style.tblLook;m.push(`<w:tblLook w:firstRow="${t.firstRow?"1":"0"}" w:lastRow="${t.lastRow?"1":"0"}" w:firstColumn="${t.firstCol?"1":"0"}" w:lastColumn="${t.lastCol?"1":"0"}" w:noHBand="${t.noHBand?"1":"0"}" w:noVBand="${t.noVBand?"1":"0"}"/>`)}(null==(r=e.style)?void 0:r.altTitle)&&m.push(`<w:tblCaption w:val="${zs(e.style.altTitle)}"/>`),(null==(o=e.style)?void 0:o.altDescription)&&m.push(`<w:tblDescription w:val="${zs(e.style.altDescription)}"/>`);const g=function(e){if(!e||0===Object.keys(e).length)return"";const t=e=>{const t=qs(e);return null===t?void 0:String(t)},n={horzAnchor:e.horizontalAnchor,vertAnchor:e.verticalAnchor,tblpX:t(e.x),tblpY:t(e.y),tblpXSpec:e.xAlign,tblpYSpec:e.yAlign,topFromText:t(e.distanceTop),rightFromText:t(e.distanceRight),bottomFromText:t(e.distanceBottom),leftFromText:t(e.distanceLeft)};return`<w:tblpPr ${Object.entries(n).filter(e=>void 0!==e[1]).map(([e,t])=>`w:${e}="${zs(t)}"`).join(" ")}/>`}(null==(i=e.style)?void 0:i.floating);g&&m.push(g);const v=e.gridCols&&e.gridCols.length>0?e.gridCols.reduce((e,t)=>e+t,0):void 0;m.push(sl((null==(a=e.style)?void 0:a.width)??v)),(null==(s=e.style)?void 0:s.align)&&m.push(`<w:jc w:val="${e.style.align}"/>`);const w=al("tblCellSpacing",null==(l=e.style)?void 0:l.cellSpacing);w&&m.push(w);const b=cl(null==(c=e.style)?void 0:c.defaultCellMargins);b&&m.push(b);const y=ml(e.style);y&&m.push(y);const x=al("tblInd",null==(u=e.style)?void 0:u.indentLeft);x&&m.push(x),m.push(`<w:tblLayout w:type="${(null==(d=e.style)?void 0:d.layout)??"fixed"}"/>`);const N=il("bidiVisual",null==(f=e.style)?void 0:f.bidiVisual);if(N&&m.push(N),(null==(p=e.style)?void 0:p.tblOverlap)&&m.push(`<w:tblOverlap w:val="${zs(e.style.tblOverlap)}"/>`),null==(h=e.style)?void 0:h.revision){const t=e.style.revision,n=gl({...e,style:t.previous});m.push(`<w:tblPrChange ${rl(t)}>${n}</w:tblPrChange>`)}return`<w:tblPr>${m.join("")}</w:tblPr>`}function vl(e,t){const n=function(e){var t,n,r;const o=[],i=[];for(let a=0;a<e.rows.length;a+=1){const r=e.rows[a];if(null==(t=r.style)?void 0:t.hidden)continue;let s=Math.max(0,Math.floor((null==(n=r.style)?void 0:n.gridBefore)??0));for(let e=0;e<r.cells.length;e+=1){for(;o[s]>0;)s+=1;const t=r.cells[e];if("continue"===t.vMerge)continue;const n=Math.max(1,t.colSpan??1),l=Math.max(1,t.rowSpan??1);i.push({rowIndex:a,cellIndex:e,visualRowIndex:a,visualColumnIndex:s,rowSpan:l,colSpan:n,cell:t});for(let e=0;e<n;e+=1)o[s+e]=Math.max(o[s+e]??0,l);s+=n}for(let e=0;e<o.length;e+=1)o[e]>0&&(o[e]-=1)}if((null==(r=e.style)?void 0:r.bidiVisual)&&i.length>0){const e=Math.max(...i.map(e=>e.visualColumnIndex+e.colSpan));for(const t of i)t.visualColumnIndex=e-t.visualColumnIndex-t.colSpan}return i}(e),r=new Map(n.map(e=>[`${e.rowIndex}:${e.cellIndex}`,e])),o=e.rows.map((n,o)=>{const i=n.cells.map((n,i)=>{const a=r.get(`${o}:${i}`),s=a&&e.gridCols?e.gridCols.slice(a.visualColumnIndex,a.visualColumnIndex+Math.max(1,a.colSpan)).reduce((e,t)=>e+t,0):void 0,l=(n.blocks.length>0?n.blocks:[{id:"",type:"paragraph",runs:[{id:"",text:"",kind:"text"}]}]).map(e=>t(e,n)).join(""),c="continue"===n.vMerge?"<w:p/>":l;return`<w:tc${nl(n.extAttributes)}>${ul(n,s)}${c}</w:tc>`}).join("");return`<w:tr${nl(n.extAttributes)}>${function(e,t){if(!e&&!t)return"";const n=[];void 0!==(null==e?void 0:e.width)&&n.push(sl(e.width)),(null==e?void 0:e.align)&&n.push(`<w:jc w:val="${e.align}"/>`);const r=al("tblCellSpacing",null==e?void 0:e.cellSpacing);r&&n.push(r);const o=al("tblInd",null==e?void 0:e.indentLeft);o&&n.push(o);const i=e?ml(e):"";i&&n.push(i),(null==e?void 0:e.layout)&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);const a=cl(null==e?void 0:e.defaultCellMargins);return a&&n.push(a),t&&n.push(t),n.length>0?`<w:tblPrEx>${n.join("")}</w:tblPrEx>`:""}(n.propertyExceptions,n.tblPrExChangeXml)}${hl(n)}${i}</w:tr>`}).join(""),i=e.gridCols?`<w:tblGrid>${e.gridCols.map(e=>`<w:gridCol w:w="${qs(e)??0}"/>`).join("")}${e.gridRevision?`<w:tblGridChange ${rl(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map(e=>`<w:gridCol w:w="${qs(e)??0}"/>`).join("")}</w:tblGrid></w:tblGridChange>`:""}</w:tblGrid>`:"";return`<w:tbl>${gl(e)}${i}${o}</w:tbl>`}const wl='xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"';function bl(e){if(!(void 0!==e.alias||void 0!==e.tag||void 0!==e.id||void 0!==e.lock||void 0!==e.appearance||void 0!==e.showingPlcHdr||void 0!==e.temporary||void 0!==e.color||void 0!==e.placeholderDocPart||void 0!==e.dataBinding||void 0!==e.subtype||void 0!==e.repeatingSectionProperties||(e.unknownXml??"").length>0))return"<w:sdtPr/>";let t="";return void 0!==e.alias&&(t+=`<w:alias w:val="${zs(e.alias)}"/>`),void 0!==e.tag&&(t+=`<w:tag w:val="${zs(e.tag)}"/>`),void 0!==e.id&&(t+=`<w:id w:val="${zs(e.id)}"/>`),void 0!==e.lock&&(t+=`<w:lock w:val="${zs(e.lock)}"/>`),void 0!==e.placeholderDocPart&&(t+=`<w:placeholder><w:docPart w:val="${zs(e.placeholderDocPart)}"/></w:placeholder>`),void 0!==e.dataBinding&&(t+=function(e){const t=[];void 0!==e.prefixMappings&&t.push(`w:prefixMappings="${zs(e.prefixMappings)}"`);void 0!==e.xpath&&t.push(`w:xpath="${zs(e.xpath)}"`);void 0!==e.storeItemID&&t.push(`w:storeItemID="${zs(e.storeItemID)}"`);return t.length>0?`<w:dataBinding ${t.join(" ")}/>`:""}(e.dataBinding)),void 0!==e.temporary&&(t+=`<w:temporary w:val="${e.temporary?"true":"false"}"/>`),void 0!==e.subtype&&(t+=function(e,t){switch(e.kind){case"text":return"<w:text/>";case"richText":return"<w:richText/>";case"picture":return"<w:picture/>";case"group":return"<w:group/>";case"equation":return"<w:equation/>";case"citation":return"<w:citation/>";case"bibliography":return"<w:bibliography/>";case"repeatingSection":return function(e){let t="";void 0!==(null==e?void 0:e.sectionTitle)&&(t+=`<w15:sectionTitle w15:val="${zs(e.sectionTitle)}"/>`);void 0!==(null==e?void 0:e.doNotAllowInsertDeleteSection)&&(t+=`<w15:doNotAllowInsertDeleteSection w15:val="${e.doNotAllowInsertDeleteSection?"1":"0"}"/>`);return t?`<w15:repeatingSection ${wl}>${t}</w15:repeatingSection>`:`<w15:repeatingSection ${wl}/>`}(t);case"repeatingSectionItem":return`<w15:repeatingSectionItem ${wl}/>`;case"comboBox":case"dropDownList":{const t=(e.listItems??[]).map(yl).join(""),n=void 0!==e.lastSelectedValue?`<w:lastSelectedValue w:val="${zs(e.lastSelectedValue)}"/>`:"";return`<w:${e.kind}>${t}${n}</w:${e.kind}>`}case"date":{const t=void 0!==e.fullDate?` w:fullDate="${zs(e.fullDate)}"`:"";let n="";return void 0!==e.dateFormat&&(n+=`<w:dateFormat w:val="${zs(e.dateFormat)}"/>`),void 0!==e.lid&&(n+=`<w:lid w:val="${zs(e.lid)}"/>`),void 0!==e.calendar&&(n+=`<w:calendar w:val="${zs(e.calendar)}"/>`),void 0!==e.storeMappedDataAs&&(n+=`<w:storeMappedDataAs w:val="${zs(e.storeMappedDataAs)}"/>`),`<w:date${t}>${n}</w:date>`}case"checkbox":{let t="";if(void 0!==e.checked&&(t+=`<w14:checked w14:val="${e.checked?"1":"0"}"/>`),void 0!==e.checkedStateFont||void 0!==e.checkedStateChar){t+=`<w14:checkedState${void 0!==e.checkedStateFont?` w14:font="${zs(e.checkedStateFont)}"`:""}${void 0!==e.checkedStateChar?` w14:char="${zs(e.checkedStateChar)}"`:""}/>`}if(void 0!==e.uncheckedStateFont||void 0!==e.uncheckedStateChar){t+=`<w14:uncheckedState${void 0!==e.uncheckedStateFont?` w14:font="${zs(e.uncheckedStateFont)}"`:""}${void 0!==e.uncheckedStateChar?` w14:char="${zs(e.uncheckedStateChar)}"`:""}/>`}return`<w14:checkbox>${t}</w14:checkbox>`}default:return e}}(e.subtype,e.repeatingSectionProperties)),void 0!==e.appearance&&(t+=`<w:appearance w:val="${zs(e.appearance)}"/>`),void 0!==e.showingPlcHdr&&(t+=`<w:showingPlcHdr w:val="${e.showingPlcHdr?"true":"false"}"/>`),void 0!==e.color&&(t+=`<w:color w:val="${zs(e.color)}"/>`),e.unknownXml&&(t+=e.unknownXml),`<w:sdtPr>${t}</w:sdtPr>`}function yl(e){return`<w:listItem${void 0!==e.displayText?` w:displayText="${zs(e.displayText)}"`:""}${void 0!==e.value?` w:value="${zs(e.value)}"`:""}/>`}function xl(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===Ls&&o.localName===t&&n.push(o)}return n}function Nl(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml">${e}</oasis:root>`,"application/xml").documentElement;if(n)for(let r=0;r<n.childNodes.length;r+=1){const e=n.childNodes[r];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&e.namespaceURI===Ls&&e.localName===t)return e}}function Sl(e,t){const n=e.ownerDocument;if(!n)return null;const r=n.createElementNS(Ls,"w:sdt"),o=Nl(bl(t.sdtPr),"sdtPr");if(o&&r.appendChild(o.cloneNode(!0)),t.sdtEndPrXml){const e=Nl(t.sdtEndPrXml,"sdtEndPr");e&&r.appendChild(e.cloneNode(!0))}const i=n.createElementNS(Ls,"w:sdtContent");return r.appendChild(i),{sdt:r,content:i}}function El(e,t){var n;let r=0;for(;r<t.length;){const o=t[r].wrappers[0];if(!o){r+=1;continue}let i=r+1;for(;i<t.length&&(null==(n=t[i].wrappers[0])?void 0:n.groupId)===o.groupId;)i+=1;const a=Sl(e,o);if(!a){r=i;continue}e.insertBefore(a.sdt,t[r].element);const s=[];for(let e=r;e<i;e+=1){const n=t[e];a.content.appendChild(n.element),s.push({element:n.element,wrappers:n.wrappers.slice(1)})}El(a.content,s),r=i}}function kl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function _l(e){return`${e.namespaceURI??""}\0${function(e){return e.localName??e.tagName}(e)}`}function Tl(e,t,n){const r=_l(e[t]);let o=0;for(let i=0;i<t;i+=1)_l(e[i])===r&&(o+=1);return n.filter(e=>_l(e)===r)[o]}function Il(e,t){!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Ls||r.namespaceURI===Bs)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(e,t);const n=kl(e),r=kl(t);n.forEach((e,o)=>{const i=Tl(n,o,r);if(e.namespaceURI===Ls)return void(i&&Il(e,i));if(i)return void Il(e,i);const a=n.slice(o+1).map((e,t)=>Tl(n,o+t+1,r)).find(e=>Boolean(e));t.insertBefore(e.cloneNode(!0),a??null)})}const Cl=new Set(["tblStyle","tblpPr","tblOverlap","bidiVisual","tblStyleRowBandSize","tblStyleColBandSize","tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblLook","tblCaption","tblDescription","tblPrChange"]),Al=new Set(["gridCol","tblGridChange"]),Rl=new Set(["tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblPrExChange"]),$l=new Set(["cnfStyle","gridBefore","gridAfter","wBefore","wAfter","cantSplit","trHeight","tblHeader","tblCellSpacing","jc","hidden","ins","del","trPrChange"]),Dl=new Set(["cnfStyle","tcW","gridSpan","hMerge","vMerge","tcBorders","shd","noWrap","tcMar","textDirection","tcFitText","vAlign","hideMark","headers","cellIns","cellDel","cellMerge","tcPrChange"]);function Pl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Ol(e){return e.localName??e.tagName}function Ml(e){return`${e.namespaceURI??""}\0${Ol(e)}`}function Ll(e,t){const n=(new ir).parseFromString(e,"application/xml").documentElement;return(null==n?void 0:n.namespaceURI)===Ls&&Ol(n)===t?n:void 0}function Fl(e,t,n,r,o){var i;if(!e||function(e){return Boolean(e&&Ia(e.xml))}(e))return t;if(e.semanticSignature===o)return e.xml;const a=Ll(e.xml,n),s=function(e,t){if(e){const n=Ll(e,t);if(n)return n}return(new ir).parseFromString(`<w:${t} xmlns:w="${Ls}"/>`,"application/xml").documentElement}(t,n);if(!a||!s)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Bs)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(a,s);const l=Pl(a),c=Pl(s),u=new Map;for(const h of c){const e=Ml(h),t=u.get(e)??[];t.push(h),u.set(e,t)}const d=new Map;for(const h of l){const e=Ml(h),t=d.get(e)??0;d.set(e,t+1);const n=null==(i=u.get(e))?void 0:i[t];n&&Il(h,n)}const f=new Set(c.map(Ml)),p=l.filter(e=>!(e.namespaceURI===Ls&&r.has(Ol(e))||f.has(Ml(e))));for(const h of p){const e=l.indexOf(h),t=l.slice(e+1).find(e=>f.has(Ml(e))),n=t?Pl(s).find(e=>Ml(e)===Ml(t))??null:null;s.insertBefore(h.cloneNode(!0),n)}return t||function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes.item(t);if(n&&"http://www.w3.org/2000/xmlns/"!==n.namespaceURI)return!0}return!1}(s)||0!==Pl(s).length?(new or).serializeToString(s):""}function Bl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Ul(e,t){return Bl(e).filter(e=>e.namespaceURI===Ls&&e.localName===t)}function zl(e,t){return Ul(e,t)[0]}function Hl(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}">${e}</oasis:root>`,"application/xml").documentElement;if(!n)return;return n?Bl(n).find(e=>e.namespaceURI===Ls&&e.localName===t):void 0}function jl(e){return e?(new or).serializeToString(e):""}function ql(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Wl(e){const t=new Map;let n=0;for(const r of e)r.namespaceURI===Ls&&("tblPr"===r.localName||"tblGrid"===r.localName?t.set(r,r.localName):"tr"===r.localName&&(t.set(r,`tr:${n}`),n+=1));return t}function Gl(e,t){var n;const r=null==(n=Va(e))?void 0:n.xml;if(!r)return;const o=Hl(r,"tbl");if(!o)return;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Bs)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(o,t);const i=Bl(o),a=Bl(t),s=i.filter(e=>e.namespaceURI===Ls&&"tr"===e.localName),l=a.filter(e=>e.namespaceURI===Ls&&"tr"===e.localName);if(s.length!==l.length)return;const c=Wl(i),u=new Map([...Wl(a)].map(([e,t])=>[t,e]));for(let d=0;d<i.length;d+=1){const e=i[d];if(c.has(e))continue;if(ql(jl(e)))continue;const n=i.slice(d+1).map(e=>c.get(e)).find(e=>Boolean(e)),r=n?u.get(n)??null:null;t.insertBefore(e.cloneNode(!0),r)}}function Vl(e,t,n,r,o){if(!n)return void(t&&e.removeChild(t));const i=Hl(n,r);i&&(t?e.replaceChild(i.cloneNode(!0),t):e.insertBefore(i.cloneNode(!0),o))}function Xl(e,t){const n=zl(t,"tblPr"),r=zl(t,"tblGrid"),o=zl(t,"tr")??null;Vl(t,n,function(e,t){var n;return Fl(null==(n=Va(e))?void 0:n.tableProperties,t,"tblPr",Cl,Ua(e))}(e,jl(n)),"tblPr",r??o);const i=zl(t,"tblGrid");Vl(t,i,function(e,t){var n;return Fl(null==(n=Va(e))?void 0:n.tableGrid,t,"tblGrid",Al,za(e))}(e,jl(i)),"tblGrid",zl(t,"tr")??null)}function Zl(e,t){const n=Ul(t,"tr");n.length===e.rows.length&&n.forEach((t,n)=>{const r=e.rows[n],o=zl(t,"tblPrEx"),i=zl(t,"trPr"),a=zl(t,"tc")??null;Vl(t,o,function(e,t){var n;return Fl(null==(n=Wa(e))?void 0:n.propertyExceptions,t,"tblPrEx",Rl,ja(e))}(r,jl(o)),"tblPrEx",i??a);const s=zl(t,"trPr"),l=function(e,t){var n;return Fl(null==(n=Wa(e))?void 0:n.rowProperties,t,"trPr",$l,Ha(e))}(r,jl(s));Vl(t,s,l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g,(e,t,n,r)=>`${t}${"start"===n?"left":"right"}${r}`),"trPr",zl(t,"tc")??null);const c=Ul(t,"tc");c.length===r.cells.length&&c.forEach((e,t)=>{const n=r.cells[t],o=zl(e,"tcPr");Vl(e,o,function(e,t){var n;return Fl(null==(n=function(e){return e.ooxmlSource}(e))?void 0:n.cellProperties,t,"tcPr",Dl,qa(e))}(n,jl(o)),"tcPr",zl(e,"p")??zl(e,"tbl")??null)})})}function Yl(e){for(const t of Ul(e,"tr"))for(const e of Ul(t,"tc")){for(const r of Ul(e,"tbl"))Yl(r);const t=Bl(e),n=t[t.length-1];if((null==n?void 0:n.namespaceURI)===Ls&&"tbl"===n.localName){const t=e.ownerDocument;t&&e.appendChild(t.createElementNS(Ls,"w:p"))}}}function Ql(e,t){const n=vl(e,t),r=Hl(n,"tbl");if(!r)return n;Gl(e,r),Xl(e,r),Zl(e,r),Yl(r),function(e,t){const n=xl(t,"tr");if(n.length===e.rows.length){for(let t=0;t<n.length;t+=1){const r=n[t],o=e.rows[t],i=xl(r,"tc");i.length===o.cells.length&&El(r,i.map((e,t)=>({element:e,wrappers:o.cells[t].sdtWrappers??[]})))}El(t,n.map((t,n)=>({element:t,wrappers:e.rows[n].sdtWrappers??[]})))}}(e,r);return(new or).serializeToString(r).replace(`<w:tbl xmlns:w="${Ls}"`,"<w:tbl")}const Kl=`xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"`;function Jl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function ec(e,t,n){const r=e.ownerDocument;if(!r)return;const o=r.createElementNS(Ls,`w:${n}`);for(let i=0;i<t.attributes.length;i+=1){const e=t.attributes.item(i);e&&(e.namespaceURI?o.setAttributeNS(e.namespaceURI,e.name,e.value):o.setAttribute(e.name,e.value))}for(;t.firstChild;)o.appendChild(t.firstChild);e.replaceChild(o,t)}function tc(e){const t=function(e){const t=(new ir).parseFromString(`<oasis:root ${Kl}>${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const n=Jl(t);if(1!==n.length)return;const r=n[0];return r.namespaceURI===Ls&&"r"===r.localName?r:void 0}(e);if(!t)return e;const n=Jl(t),r=n.filter(e=>e.namespaceURI===Ls&&"t"===e.localName);if(r.length>0){for(const e of n)e.namespaceURI===Ls&&"delText"===e.localName&&t.removeChild(e);for(const e of r)ec(t,e,"delText")}const o=Jl(t),i=o.filter(e=>e.namespaceURI===Ls&&"instrText"===e.localName);if(i.length>0){for(const e of o)e.namespaceURI===Ls&&"delInstrText"===e.localName&&t.removeChild(e);for(const e of i)ec(t,e,"delInstrText")}return(new or).serializeToString(t)}function nc(e){return/^\d+$/.test(e)?e:String(Array.from(e).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0))}function rc(e){const t=Number.isFinite(e.date)?new Date(e.date).toISOString():new Date(0).toISOString();return`w:id="${nc(e.id)}" w:author="${zs(e.author)}" w:date="${t}"`}function oc(e){if(!e||0===e.length)return"";const t=e.map(e=>{const t=qs(e.position);if(null===t)return"";const n=[`w:val="${e.type}"`,`w:pos="${t}"`];return e.leader&&"none"!==e.leader?n.push(`w:leader="${e.leader}"`):"none"===e.leader&&n.push('w:leader="none"'),`<w:tab ${n.join(" ")}/>`}).filter(Boolean);return t.length>0?`<w:tabs>${t.join("")}</w:tabs>`:""}function ic(e){const t=[];e.framePrXml&&t.push(e.framePrXml),e.suppressLineNumbers&&t.push("<w:suppressLineNumbers/>"),e.suppressAutoHyphens&&t.push("<w:suppressAutoHyphens/>"),e.bidi&&t.push("<w:bidi/>"),!1===e.kinsoku&&t.push('<w:kinsoku w:val="0"/>'),!1===e.wordWrap&&t.push('<w:wordWrap w:val="0"/>'),!1===e.overflowPunct&&t.push('<w:overflowPunct w:val="0"/>'),e.topLinePunct&&t.push("<w:topLinePunct/>"),!1===e.autoSpaceDE&&t.push('<w:autoSpaceDE w:val="0"/>'),!1===e.autoSpaceDN&&t.push('<w:autoSpaceDN w:val="0"/>'),!1===e.adjustRightInd&&t.push('<w:adjustRightInd w:val="0"/>'),e.textAlignment&&t.push(`<w:textAlignment w:val="${e.textAlignment}"/>`),e.textboxTightWrap&&t.push(`<w:textboxTightWrap w:val="${e.textboxTightWrap}"/>`),null!=e.divId&&t.push(`<w:divId w:val="${e.divId}"/>`);const n=(r=e.conditionalStyle)?`<w:cnfStyle w:val="${wi.map(([,e])=>r[e]?"1":"0").join("")}"/>`:"";var r;return n&&t.push(n),t}function ac(e){const{propertyRevision:t,styleId:n,...r}=e.previous,o=sc(r),i=o?o.slice(7,-8):"",a=n?`<w:pStyle w:val="${zs(n)}"/>`:"";return`<w:pPrChange ${rc(e)}><w:pPr>${a}${i}</w:pPr></w:pPrChange>`}function sc(e){const t=[];if(e.align&&t.push(`<w:jc w:val="${e.align}"/>`),void 0!==e.spacingBefore||void 0!==e.spacingAfter||void 0!==e.lineHeight){const n=[],r=js(e.spacingBefore),o=js(e.spacingAfter),i=void 0!==e.lineHeight&&null!==e.lineHeight&&Number.isFinite(e.lineHeight),a="exact"===e.lineRule||"atLeast"===e.lineRule,s=i?a?Hs(e.lineHeight,0):Math.round(240*e.lineHeight):null;null!==r&&n.push(`w:before="${r}"`),null!==o&&n.push(`w:after="${o}"`),null!==s&&n.push(`w:line="${s}"`),null!==s&&a&&n.push(`w:lineRule="${e.lineRule}"`),n.length>0&&t.push(`<w:spacing ${n.join(" ")}/>`)}if(void 0!==e.indentLeft||void 0!==e.indentRight||void 0!==e.indentFirstLine||void 0!==e.indentHanging){const n=[],r=js(e.indentLeft),o=js(e.indentRight),i=js(e.indentFirstLine),a=js(e.indentHanging);null!==r&&n.push(`w:left="${r}"`),null!==o&&n.push(`w:right="${o}"`),null!==i&&n.push(`w:firstLine="${i}"`),null!==a&&n.push(`w:hanging="${a}"`),n.length>0&&t.push(`<w:ind ${n.join(" ")}/>`)}const n=oc(e.tabs);n&&t.push(n),e.pageBreakBefore&&t.push("<w:pageBreakBefore/>"),e.keepWithNext&&t.push("<w:keepNext/>"),e.keepLinesTogether&&t.push("<w:keepLines/>"),!1===e.widowControl&&t.push('<w:widowControl w:val="0"/>'),e.contextualSpacing&&t.push("<w:contextualSpacing/>"),e.mirrorIndents&&t.push("<w:mirrorIndents/>");const r=el(e);return r&&t.push(r),e.shading&&t.push(Gs(e.shading)),e.textDirection&&t.push(`<w:textDirection w:val="${e.textDirection}"/>`),null!=e.outlineLevel&&t.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`),t.push(...ic(e)),e.propertyRevision&&t.push(ac(e.propertyRevision)),t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function lc(e,t,n,r){var o,i,a;const s=[],l=function(e,t){var n;const r=Vr(e.style,t);return{align:r.align,spacingBefore:r.spacingBefore,spacingAfter:r.spacingAfter,contextualSpacing:r.contextualSpacing,lineHeight:r.lineHeight,lineRule:r.lineRule,indentLeft:r.indentLeft,indentRight:r.indentRight,indentFirstLine:r.indentFirstLine,indentHanging:r.indentHanging,mirrorIndents:r.mirrorIndents,pageBreakBefore:r.pageBreakBefore,keepWithNext:r.keepWithNext,keepLinesTogether:r.keepLinesTogether,widowControl:r.widowControl,shading:r.shading,borderTop:r.borderTop,borderRight:r.borderRight,borderBottom:r.borderBottom,borderLeft:r.borderLeft,tabs:r.tabs,textDirection:r.textDirection,outlineLevel:r.outlineLevel,suppressLineNumbers:r.suppressLineNumbers,suppressAutoHyphens:r.suppressAutoHyphens,bidi:r.bidi,kinsoku:r.kinsoku,wordWrap:r.wordWrap,overflowPunct:r.overflowPunct,topLinePunct:r.topLinePunct,autoSpaceDE:r.autoSpaceDE,autoSpaceDN:r.autoSpaceDN,adjustRightInd:r.adjustRightInd,textAlignment:r.textAlignment,textboxTightWrap:r.textboxTightWrap,divId:r.divId,conditionalStyle:r.conditionalStyle,borderBetween:r.borderBetween,borderBar:r.borderBar,framePrXml:r.framePrXml,propertyRevision:null==(n=e.style)?void 0:n.propertyRevision}}(e,n),c=(null==(o=e.style)?void 0:o.align)??(null==r?void 0:r.align)??l.align;if((null==(i=e.style)?void 0:i.styleId)&&s.push(`<w:pStyle w:val="${zs(e.style.styleId)}"/>`),c&&s.push(`<w:jc w:val="${c}"/>`),void 0!==l.spacingBefore||void 0!==l.spacingAfter||void 0!==l.lineHeight){const e=[],t=js(l.spacingBefore),n=js(l.spacingAfter),r=void 0!==l.lineHeight&&null!==l.lineHeight&&Number.isFinite(l.lineHeight),o="exact"===l.lineRule||"atLeast"===l.lineRule,i=r?o?Hs(l.lineHeight,0):Math.round(240*l.lineHeight):null;null!==t&&e.push(`w:before="${t}"`),null!==n&&e.push(`w:after="${n}"`),null!==i&&e.push(`w:line="${i}"`),null!==i&&o&&e.push(`w:lineRule="${l.lineRule}"`),e.length>0&&s.push(`<w:spacing ${e.join(" ")}/>`)}if(void 0!==l.indentLeft||void 0!==l.indentRight||void 0!==l.indentFirstLine||void 0!==l.indentHanging){const e=[],t=js(l.indentLeft),n=js(l.indentRight),r=js(l.indentFirstLine),o=js(l.indentHanging);null!==t&&e.push(`w:left="${t}"`),null!==n&&e.push(`w:right="${n}"`),null!==r&&e.push(`w:firstLine="${r}"`),null!==o&&e.push(`w:hanging="${o}"`),e.length>0&&s.push(`<w:ind ${e.join(" ")}/>`)}const u=oc(l.tabs);u&&s.push(u),l.pageBreakBefore&&s.push("<w:pageBreakBefore/>"),l.keepWithNext&&s.push("<w:keepNext/>"),l.keepLinesTogether&&s.push("<w:keepLines/>"),!1===l.widowControl&&s.push('<w:widowControl w:val="0"/>'),l.contextualSpacing&&s.push("<w:contextualSpacing/>"),l.mirrorIndents&&s.push("<w:mirrorIndents/>");const d=el(l);d&&s.push(d),l.shading&&s.push(Gs(l.shading)),l.textDirection&&s.push(`<w:textDirection w:val="${l.textDirection}"/>`),null!=l.outlineLevel&&s.push(`<w:outlineLvl w:val="${l.outlineLevel}"/>`),s.push(...ic(l));const f=t.get(e.id);return f&&s.push(`<w:numPr><w:ilvl w:val="${f.level}"/><w:numId w:val="${f.numId}"/></w:numPr>`),(null==(a=e.style)?void 0:a.propertyRevision)&&s.push(ac(e.style.propertyRevision)),s.length>0?`<w:pPr>${s.join("")}</w:pPr>`:""}const cc={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],green:[0,128,0],magenta:[255,0,255],red:[255,0,0],yellow:[255,255,0],white:[255,255,255],darkBlue:[0,0,139],darkCyan:[0,139,139],darkGreen:[0,100,0],darkMagenta:[139,0,139],darkRed:[139,0,0],darkYellow:[184,134,11],darkGray:[169,169,169],lightGray:[211,211,211]},uc={ffff00:"yellow",fef08a:"yellow",ff0000:"red","00ff00":"green","0000ff":"blue","00ffff":"cyan",ff00ff:"magenta","000000":"black",ffffff:"white"},dc="http://schemas.openxmlformats.org/markup-compatibility/2006";function fc(e){return`<w14:solidFill><w14:srgbClr w14:val="${Ws(e)}"/></w14:solidFill>`}function pc(e){if("solid"===e.type)return fc(e.color);return`<w14:gradFill><w14:gsLst>${e.stops.map(e=>{const t=Ws(e.color);return`<w14:gs w14:pos="${Math.round(e.position*br)}"><w14:srgbClr w14:val="${t}">${void 0!==e.alpha?`<w14:alpha w14:val="${Math.round(e.alpha*br)}"/>`:""}</w14:srgbClr></w14:gs>`}).join("")}</w14:gsLst><w14:lin w14:ang="${Math.round((e.angle??0)*yr)}" w14:scaled="0"/></w14:gradFill>`}function hc(e,t){return`<w14:srgbClr w14:val="${Ws(e)}">${void 0!==t?`<w14:alpha w14:val="${Math.round(t*br)}"/>`:""}</w14:srgbClr>`}function mc(e){return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14">${e}</mc:Choice><mc:Fallback/></mc:AlternateContent>`}function gc(e){return null!=e&&Number.isFinite(e)?Math.round(20*e):null}const vc=function(e){if(!e)return null;const t=ta(e);return ea.test(t)?[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]:null};function wc(e){if(!e)return"";const t=[];if(e.bold&&t.push("<w:b/>","<w:bCs/>"),e.italic&&t.push("<w:i/>","<w:iCs/>"),e.underline){const n=e.underlineStyle??"single",r=e.underlineColor?` w:color="${zs(e.underlineColor.replace(/^#/,""))}"`:"";t.push(`<w:u w:val="${zs(n)}"${r}/>`)}if(e.strike&&t.push("<w:strike/>"),e.doubleStrike&&t.push("<w:dstrike/>"),e.outline&&t.push("<w:outline/>"),e.shadow&&t.push("<w:shadow/>"),e.emboss&&t.push("<w:emboss/>"),e.imprint&&t.push("<w:imprint/>"),e.smallCaps&&t.push("<w:smallCaps/>"),e.allCaps&&t.push("<w:caps/>"),e.hidden&&t.push("<w:vanish/>"),e.noProof&&t.push("<w:noProof/>"),e.webHidden&&t.push("<w:webHidden/>"),e.specVanish&&t.push("<w:specVanish/>"),!1===e.snapToGrid&&t.push('<w:snapToGrid w:val="0"/>'),e.textEffect&&t.push(`<w:effect w:val="${zs(e.textEffect)}"/>`),e.textBorder&&t.push(`<w:bdr ${Js(e.textBorder)}`),void 0!==e.characterScale&&null!==e.characterScale&&Number.isFinite(e.characterScale)&&t.push(`<w:w w:val="${Math.max(1,Math.round(e.characterScale))}"/>`),void 0!==e.characterSpacing&&null!==e.characterSpacing){const n=gc(e.characterSpacing);null!==n&&t.push(`<w:spacing w:val="${n}"/>`)}void 0!==e.baselineShift&&null!==e.baselineShift&&Number.isFinite(e.baselineShift)&&t.push(`<w:position w:val="${Math.round(2*e.baselineShift)}"/>`),void 0!==e.kerningThreshold&&null!==e.kerningThreshold&&Number.isFinite(e.kerningThreshold)&&t.push(`<w:kern w:val="${Math.max(0,Math.round(2*e.kerningThreshold))}"/>`);const n=function(e){switch(e){case"none":return"none";case"standard":return"standard";case"contextual":return"contextual";case"historical":return"historical";case"standardContextual":return"standardContextual";default:return null}}(e.ligatures);n&&t.push(`<w14:ligatures w14:val="${n}"/>`);const r=function(e){switch(e){case"proportional":return"proportional";case"tabular":return"tabular";default:return null}}(e.numberSpacing);r&&t.push(`<w14:numSpacing w14:val="${r}"/>`);const o=function(e){switch(e){case"lining":return"lining";case"oldStyle":return"oldStyle";default:return null}}(e.numberForm);o&&t.push(`<w14:numForm w14:val="${o}"/>`);const i="number"!=typeof(a=e.stylisticSet)||a<1||a>20?null:(1<<a-1).toString(16).toUpperCase().padStart(8,"0");var a;if(i&&t.push(`<w14:stylisticSets w14:val="${i}"/>`),e.contextualAlternates&&t.push('<w14:cntxtAlts w14:val="1"/>'),e.superscript?t.push('<w:vertAlign w:val="superscript"/>'):e.subscript&&t.push('<w:vertAlign w:val="subscript"/>'),e.fontFamily&&t.push(`<w:rFonts w:ascii="${zs(e.fontFamily)}" w:hAnsi="${zs(e.fontFamily)}" w:cs="${zs(e.fontFamily)}"/>`),void 0!==e.fontSize&&null!==e.fontSize){const n=function(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*72*2):null}(e.fontSize);null!==n&&t.push(`<w:sz w:val="${n}"/>`,`<w:szCs w:val="${n}"/>`)}if(e.textFill){const n="solid"===e.textFill.type?e.textFill.color:e.color;t.push(function(e,t){const n=pc(e),r=Ws(t??"000000");return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14"><w14:textFill>${n}</w14:textFill></mc:Choice><mc:Fallback><w:color w:val="${r}"/></mc:Fallback></mc:AlternateContent>`}(e.textFill,n??null))}else e.color&&t.push(`<w:color w:val="${zs(e.color.replace(/^#/,""))}"/>`);if(e.textOutline&&t.push(function(e){const t=Math.round(Math.max(0,e.widthPt)*vr),n=e.fill?pc(e.fill):e.color?fc(e.color):"";return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">`+n+"</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>"}(e.textOutline)),e.textShadow&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(Math.max(0,e.distPt)*vr),r=Math.round(e.dirDeg*yr),o=hc(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${n}" w14:dir="${r}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">`+o+"</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>"}(e.textShadow)),e.glow&&t.push(function(e){const t=Math.round(Math.max(0,e.radiusPt)*vr),n=hc(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${n}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.glow)),e.reflection&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(e.startAlpha*br),r=Math.round(e.startPos*br),o=Math.round(e.endAlpha*br),i=Math.round(e.endPos*br),a=Math.round(Math.max(0,e.distPt)*vr);return`<mc:AlternateContent xmlns:mc="${dc}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${n}" w14:stPos="${r}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.reflection)),e.scene3dXml&&t.push(mc(e.scene3dXml)),e.props3dXml&&t.push(mc(e.props3dXml)),e.highlight&&t.push(`<w:highlight w:val="${zs(function(e){if(e in cc)return e;const t=e.trim().replace(/^#/,"").toLowerCase(),n=uc[t];if(n)return n;const r=vc(e);if(!r)return"yellow";let o="yellow",i=Number.POSITIVE_INFINITY;for(const[a,s]of Object.entries(cc)){const e=(s[0]-r[0])**2+(s[1]-r[1])**2+(s[2]-r[2])**2;e<i&&(i=e,o=a)}return o}(e.highlight))}"/>`),e.shading&&t.push(Gs(e.shading)),void 0!==e.fitText&&null!==e.fitText&&Number.isFinite(e.fitText)){const n=gc(e.fitText);null!==n&&n>0&&t.push(`<w:fitText w:val="${n}"/>`)}if(e.rtl&&t.push("<w:rtl/>"),e.complexScript&&t.push("<w:cs/>"),e.emphasisMark&&t.push(`<w:em w:val="${zs(e.emphasisMark)}"/>`),e.language){const n=[];e.language.value&&n.push(`w:val="${zs(e.language.value)}"`),e.language.eastAsia&&n.push(`w:eastAsia="${zs(e.language.eastAsia)}"`),e.language.bidi&&n.push(`w:bidi="${zs(e.language.bidi)}"`),n.length>0&&t.push(`<w:lang ${n.join(" ")}/>`)}return e.propertyRevision&&t.push(function(e){const{propertyRevision:t,styleId:n,...r}=e.previous,o=wc(r),i=o?o.slice(7,-8):"",a=n?`<w:rStyle w:val="${zs(n)}"/>`:"";return`<w:rPrChange ${rc(e)}><w:rPr>${a}${i}</w:rPr></w:rPrChange>`}(e.propertyRevision)),t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function bc(e){if(0===e.length)return"";var t;return`<w:t${/^\s|\s$/.test(t=e)||t.includes(" ")?' xml:space="preserve"':""}>${zs(e)}</w:t>`}function yc(e){if(0===e.length)return"<w:t></w:t>";let t="",n="";for(const r of e)"\n"!==r?"\t"!==r?"‑"!==r?"­"!==r?n+=r:(t+=bc(n),n="",t+="<w:softHyphen/>"):(t+=bc(n),n="",t+="<w:noBreakHyphen/>"):(t+=bc(n),n="",t+="<w:tab/>"):(t+=bc(n),n="",t+="<w:br/>");return t+=bc(n),t||"<w:t></w:t>"}function xc(e,t){return e??t?"1":"0"}function Nc(e,t,n){const r=zs((null==t?void 0:t.relativeFrom)??n);if(null==t?void 0:t.align)return`<wp:${e} relativeFrom="${r}"><wp:align>${zs(t.align)}</wp:align></wp:${e}>`;return`<wp:${e} relativeFrom="${r}"><wp:posOffset>${(null==t?void 0:t.offset)??0}</wp:posOffset></wp:${e}>`}function Sc(e){if(!e||e.length<3)return"";const t=e=>Math.round(21600*Math.min(1,Math.max(0,e))),n=(e,n)=>`<wp:${n} x="${t(e.x)}" y="${t(e.y)}"/>`,r=e[0];return`<wp:wrapPolygon edited="0">${[n(r,"start"),...e.slice(1).map(e=>n(e,"lineTo")),n(r,"lineTo")].join("")}</wp:wrapPolygon>`}function Ec(e){const{cx:t,cy:n,floating:r,docPrId:o,docPrName:i,altAttr:a,graphicXml:s}=e,l=zs(i);if(!r)return`<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;const c=r.distT??0,u=r.distB??0,d=r.distL??0,f=r.distR??0,p=Nc("positionH",r.positionH,"column"),h=Nc("positionV",r.positionV,"paragraph"),m=function(e,t){switch(e){case"square":return'<wp:wrapSquare wrapText="bothSides"/>';case"tight":{const e=Sc(t);return e?`<wp:wrapTight wrapText="bothSides">${e}</wp:wrapTight>`:'<wp:wrapTight wrapText="bothSides"/>'}case"through":{const e=Sc(t);return e?`<wp:wrapThrough wrapText="bothSides">${e}</wp:wrapThrough>`:'<wp:wrapThrough wrapText="bothSides"/>'}case"topAndBottom":return"<wp:wrapTopAndBottom/>";default:return"<wp:wrapNone/>"}}(r.wrap,e.wrapPolygon);return`<w:drawing><wp:anchor distT="${c}" distB="${u}" distL="${d}" distR="${f}" simplePos="${xc(r.simplePos,!1)}" relativeHeight="${r.relativeHeight??0}" behindDoc="${xc(r.behindDoc,!1)}" locked="${xc(r.locked,!1)}" layoutInCell="${xc(r.layoutInCell,!0)}" allowOverlap="${xc(r.allowOverlap,!0)}"><wp:simplePos x="0" y="0"/>${p}${h}<wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/>${m}<wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:anchor></w:drawing>`}function kc(e,t,n,r){const o=n.images.find(e=>e.rId===t);if(!o)return null;const i=(parseInt(t.replace(/\D+/g,""),10)||0)+1,a=void 0!==o.alt?` descr="${zs(o.alt)}" title="${zs(o.alt)}"`:"",s=function(e){let t="";if(e.rotation){const n=Math.round(e.rotation*yr);0!==n&&(t+=` rot="${n}"`)}return e.flipH&&(t+=' flipH="1"'),e.flipV&&(t+=' flipV="1"'),t}(o),l=function(e){if(!e)return"";const t=e=>e?Math.round(e*br):0,n=t(e.left),r=t(e.top),o=t(e.right),i=t(e.bottom);return 0===n&&0===r&&0===o&&0===i?"":`<a:srcRect l="${n}" t="${r}" r="${o}" b="${i}"/>`}(o.crop),c=(u=o.border)?`<a:ln${void 0!==u.widthPt?` w="${Math.round(u.widthPt*vr)}"`:""}><a:solidFill><a:srgbClr val="${zs(u.color.replace(/^#/,""))}"/></a:solidFill>${u.dash?`<a:prstDash val="${u.dash}"/>`:""}</a:ln>`:"";var u;const d="tile"===o.fillMode?"<a:tile/>":"<a:stretch><a:fillRect/></a:stretch>",f="linked"===o.kind?`r:link="${t}"`:`r:embed="${t}"`,p=function(e){if(!e)return'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>';if(e.rawXml&&!e.adjustments)return e.rawXml;const t=Object.entries(e.adjustments??{}).map(([e,t])=>`<a:gd name="${zs(e)}" fmla="val ${Number.isFinite(t)?t:0}"/>`).join(""),n=t?`<a:avLst>${t}</a:avLst>`:"<a:avLst/>";return`<a:prstGeom prst="${zs(e.preset)}">${n}</a:prstGeom>`}(o.cropShape),h=function(e,t,n,r){return Ec({cx:e.cx,cy:e.cy,floating:e.floating,docPrId:t,docPrName:"Picture",altAttr:n,graphicXml:r,wrapPolygon:e.wrapPolygon})}(o,i,a,`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${f} xmlns:r="${Bs}"/>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${p}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`);return`<w:r>${r}${h}</w:r>`}function _c(e,t,n,r,o,i){const a=Math.round(t.width*gr),s=Math.round(t.height*gr),l=n.textBoxDocPrIds.get(e.id)??1,c=t.name??"Text Box",u=void 0!==t.alt?` descr="${zs(t.alt)}" title="${zs(t.alt)}"`:"",d=function(e,t,n,r,o,i){const a=e.shape,s=zs((null==a?void 0:a.preset)??"rect"),l=e.rotation?Math.round(e.rotation*yr):0,c=0!==l?` rot="${l}"`:"",u=(null==a?void 0:a.fill)?`<a:solidFill><a:srgbClr val="${zs(a.fill.replace(/^#/,""))}"/></a:solidFill>`:"";let d="";((null==a?void 0:a.borderColor)||void 0!==(null==a?void 0:a.borderWidthPt))&&(d=`<a:ln${void 0!==(null==a?void 0:a.borderWidthPt)?` w="${Math.round(a.borderWidthPt*vr)}"`:""}>${(null==a?void 0:a.borderColor)?`<a:solidFill><a:srgbClr val="${zs(a.borderColor.replace(/^#/,""))}"/></a:solidFill>`:""}<a:miter lim="800000"/></a:ln>`);const f=e.body,p=['rot="0"',`vert="${zs((null==f?void 0:f.vert)??"horz")}"`];p.push(`wrap="${zs((null==f?void 0:f.wrap)??"square")}"`),void 0!==(null==f?void 0:f.paddingLeft)&&p.push(`lIns="${Math.round(f.paddingLeft*gr)}"`),void 0!==(null==f?void 0:f.paddingTop)&&p.push(`tIns="${Math.round(f.paddingTop*gr)}"`),void 0!==(null==f?void 0:f.paddingRight)&&p.push(`rIns="${Math.round(f.paddingRight*gr)}"`),void 0!==(null==f?void 0:f.paddingBottom)&&p.push(`bIns="${Math.round(f.paddingBottom*gr)}"`),p.push(`anchor="${zs((null==f?void 0:f.anchor)??"t")}"`),p.push('anchorCtr="0"');const h=(null==f?void 0:f.autoFit)?"<a:spAutoFit/>":"",m=e.blocks.length>0,g=m?i(e.blocks,r,o):"";return'<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"><wps:wsp>'+(m?'<wps:cNvSpPr txBox="1"><a:spLocks noChangeArrowheads="1"/></wps:cNvSpPr>':"<wps:cNvSpPr/>")+`<wps:spPr bwMode="auto"><a:xfrm${c}><a:off x="0" y="0"/><a:ext cx="${t}" cy="${n}"/></a:xfrm><a:prstGeom prst="${s}"><a:avLst/></a:prstGeom>`+u+d+"</wps:spPr>"+(m?`<wps:txbx><w:txbxContent>${g}</w:txbxContent></wps:txbx>`:"")+`<wps:bodyPr ${p.join(" ")}>${h}</wps:bodyPr></wps:wsp></a:graphicData></a:graphic>`}(t,a,s,n,r,i);return`<w:r>${o}${Ec({cx:a,cy:s,floating:t.floating,docPrId:l,docPrName:c,altAttr:u,graphicXml:d})}</w:r>`}const Tc={footnote:"FootnoteReference",endnote:"EndnoteReference"};function Ic(e){return`<w:r><w:rPr><w:rStyle w:val="${Tc[e]}"/><w:vertAlign w:val="superscript"/></w:rPr><w:${e}Ref/></w:r>`}function Cc(e,t,n,r){if(!t)return null;const o="footnote"===e?r.footnoteIdMap:r.endnoteIdMap,i=null==o?void 0:o.get(t.noteId);if(void 0===i)return null;const a={...n??{},superscript:!0},s=t.customMark?' w:customMarkFollows="1"':"",l=t.customMark?`<w:t xml:space="preserve">${zs(t.customMark)}</w:t>`:"";return`<w:r>${wc(a)}<w:${e}Reference${s} w:id="${i}"/>${l}</w:r>`}function Ac(e,t){return void 0===t?"":` m:${e}="${zs(String(t))}"`}function Rc(e){return e.map($c).join("")}function $c(e){switch(e.kind){case"text":return function(e){const t=e.style;return`<m:r>${t?`<m:rPr>${t.bold?"<m:b/>":""}${t.italic?"<m:i/>":""}${t.normalText?"<m:nor/>":""}${t.script?`<m:sty m:val="${zs(t.script)}"/>`:""}</m:rPr>`:""}<m:t xml:space="preserve">${zs(e.value)}</m:t></m:r>`}(e);case"fraction":return`<m:f>${!1===e.bar?'<m:fPr><m:type m:val="noBar"/></m:fPr>':""}<m:num>${Rc(e.numerator)}</m:num><m:den>${Rc(e.denominator)}</m:den></m:f>`;case"radical":return e.degree?`<m:rad><m:deg>${Rc(e.degree)}</m:deg><m:e>${Rc(e.radicand)}</m:e></m:rad>`:`<m:rad><m:e>${Rc(e.radicand)}</m:e></m:rad>`;case"script":{const t=e.subscript&&e.superscript?"sSubSup":e.subscript?"sSub":"sSup";return`<m:${t}><m:e>${Rc(e.base)}</m:e>${e.subscript?`<m:sub>${Rc(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Rc(e.superscript)}</m:sup>`:""}</m:${t}>`}case"delimiter":return`<m:d><m:dPr>${Ac("begChr",e.begin)}${Ac("endChr",e.end)}${Ac("sepChr",e.separator)}${!1===e.grow?'<m:grow m:val="0"/>':""}</m:dPr>${e.children.map(e=>`<m:e>${Rc(e)}</m:e>`).join("")}</m:d>`;case"accent":return`<m:acc><m:accPr><m:chr${Ac("val",e.accent)}/></m:accPr><m:e>${Rc(e.children)}</m:e></m:acc>`;case"nary":return`<m:nary><m:naryPr><m:chr${Ac("val",e.operator)}/>${!1===e.grow?'<m:grow m:val="0"/>':""}</m:naryPr>${e.subscript?`<m:sub>${Rc(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${Rc(e.superscript)}</m:sup>`:""}<m:e>${Rc(e.children)}</m:e></m:nary>`;case"limit":return"low"===e.operator?`<m:limLow><m:e>${Rc(e.base)}</m:e><m:lim>${Rc(e.limit)}</m:lim></m:limLow>`:`<m:limUpp><m:e>${Rc(e.base)}</m:e><m:lim>${Rc(e.limit)}</m:lim></m:limUpp>`;case"matrix":return`<m:m>${e.rows.map(e=>`<m:mr>${e.map(e=>`<m:e>${Rc(e)}</m:e>`).join("")}</m:mr>`).join("")}</m:m>`;case"box":return`<m:${e.hidden?"phant":e.border?"borderBox":"box"}><m:e>${Rc(e.children)}</m:e></m:${e.hidden?"phant":e.border?"borderBox":"box"}>`;case"group":return Rc(e.children);case"raw":return e.xml}}const Dc="http://schemas.openxmlformats.org/markup-compatibility/2006",Pc=new Set(["t","tab","br","cr","noBreakHyphen","softHyphen"]),Oc=new Set([...Pc,"drawing","pict","sym","fldChar","instrText","footnoteReference","endnoteReference","separator","continuationSeparator"]),Mc=new Set(["rStyle","rFonts","b","bCs","i","iCs","caps","smallCaps","strike","dstrike","outline","shadow","emboss","imprint","noProof","snapToGrid","vanish","webHidden","color","spacing","w","kern","position","sz","szCs","highlight","u","effect","bdr","shd","fitText","vertAlign","rtl","cs","em","lang","eastAsianLayout","specVanish","oMath"]),Lc=new Set(["ligatures","numSpacing","numForm","stylisticSets","cntxtAlts","textFill","textOutline","shadow","glow","reflection","scene3d","props3d"]);function Fc(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Bc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Uc(e){return e.localName??e.tagName}function zc(e,t,n){return Bc(e).find(e=>e.namespaceURI===t&&Uc(e)===n)}function Hc(e){return`${e.namespaceURI??""}\0${Uc(e)}`}function jc(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return t&&"r"===Uc(t)?t:void 0}function qc(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:r="${Bs}" xmlns:mc="${Dc}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const n=Bc(t);return 1===n.length&&"r"===Uc(n[0])?n[0]:void 0}function Wc(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function Gc(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!Wc(n)&&n.namespaceURI!==Bs)return!0}return!1}function Vc(e){const t=Uc(e);return e.namespaceURI===Ls?Mc.has(t):e.namespaceURI===Us?Lc.has(t):e.namespaceURI===Dc&&"AlternateContent"===t}function Xc(e,t){const n=zc(e,Ls,"rPr");if(!n)return;const r=Bc(n),o=zc(t,Ls,"rPr"),i=o?Bc(o):[],a=new Set(i.map(Hc)),s=r.filter(e=>!Vc(e)&&!a.has(Hc(e)));if(0===s.length)return;const l=function(e){const t=zc(e,Ls,"rPr");if(t)return t;const n=e.ownerDocument.createElementNS(Ls,"w:rPr");return e.insertBefore(n,e.firstChild),n}(t);for(const c of s){const e=r.indexOf(c),t=r.slice(e+1).find(e=>a.has(Hc(e))),n=t?Bc(l).find(e=>Hc(e)===Hc(t))??null:null;l.insertBefore(c.cloneNode(!0),n)}}function Zc(e){const t=Uc(e);return e.namespaceURI===Dc&&"AlternateContent"===t?function(e){const t=e=>Bc(e).some(e=>{const n=Uc(e);return!(e.namespaceURI!==Ls||!Oc.has(n))||t(e)});return t(e)}(e):e.namespaceURI===Ls&&("rPr"===t||Oc.has(t))}function Yc(e){const t=Oa(e);if(t&&!Fc(t.xml)&&(n=t.xml,!Ea.test(n))){var n;if(t.semanticSignature===$a(e))return t.xml;if(t.structureSignature===Da(e))return function(e,t){if("text"!==e.kind)return;const n=jc(t);if(!n)return;const r=Bc(n),o=r.filter(e=>e.namespaceURI===Ls&&Pc.has(Uc(e))),i=o[0]??r.find(e=>!(e.namespaceURI===Ls&&"rPr"===Uc(e)))??null,a=qc(`<w:r>${yc(e.text)}</w:r>`);if(!a)return;const s=Bc(a);for(const l of s)n.insertBefore(l.cloneNode(!0),i);for(const l of o)n.removeChild(l);return(new or).serializeToString(n)}(e,t.xml)}}function Qc(e,t){const n=Oa(e);if(!n||Fc(n.xml))return t;const r=jc(n.xml);if(!r||!function(e){if(Gc(e))return!0;const t=zc(e,Ls,"rPr");return!(!t||!Gc(t)&&!Bc(t).some(e=>!Vc(e)))||Bc(e).some(e=>!Zc(e))}(r))return t;const o=qc(t);return o?(function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Bs)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o),Xc(r,o),function(e,t){const n=Bc(e),r=Bc(t),o=new Set(r.map(Hc)),i=n.filter(e=>!Zc(e)&&!o.has(Hc(e)));for(const a of i){const e=n.indexOf(a),r=n.slice(e+1).find(e=>Zc(e)),o=r?Bc(t).find(e=>Hc(e)===Hc(r))??null:null;t.insertBefore(a.cloneNode(!0),o)}}(r,o),(new or).serializeToString(o)):t}function Kc(e,t,n,r,o){if(e.revisionRangeMarker)return function(e){const t=`move${"from"===e.move?"From":"To"}Range${"start"===e.edge?"Start":"End"}`,n=[`w:id="${nc(e.id)}"`];return void 0!==e.displacedByCustomXml&&n.push(`w:displacedByCustomXml="${zs(e.displacedByCustomXml)}"`),"start"===e.edge&&(void 0!==e.name&&n.push(`w:name="${zs(e.name)}"`),void 0!==e.author&&n.push(`w:author="${zs(e.author)}"`),void 0!==e.date&&Number.isFinite(e.date)&&n.push(`w:date="${new Date(e.date).toISOString()}"`),void 0!==e.columnFirst&&n.push(`w:colFirst="${Math.trunc(e.columnFirst)}"`),void 0!==e.columnLast&&n.push(`w:colLast="${Math.trunc(e.columnLast)}"`)),`<w:${t} ${n.join(" ")}/>`}(e.revisionRangeMarker);if(e.__isFootnoteRefMarker)return Ic("footnote");if(e.__isEndnoteRefMarker)return Ic("endnote");const i=Yc(e);if(i)return i;const a=function(e,t,n){var r,o;const i=Gr(e.styles,t,n),a={bold:i.bold,italic:i.italic,underline:i.underline,underlineStyle:i.underlineStyle,underlineColor:i.underlineColor,strike:i.strike,doubleStrike:i.doubleStrike,superscript:i.superscript,subscript:i.subscript,smallCaps:i.smallCaps,allCaps:i.allCaps,hidden:i.hidden,noProof:i.noProof,webHidden:i.webHidden,specVanish:i.specVanish,rtl:i.rtl,complexScript:i.complexScript,snapToGrid:i.snapToGrid,fitText:i.fitText,emphasisMark:i.emphasisMark,textBorder:i.textBorder,outline:i.outline,shadow:i.shadow,emboss:i.emboss,imprint:i.imprint,textEffect:i.textEffect,characterScale:i.characterScale,characterSpacing:i.characterSpacing,baselineShift:i.baselineShift,kerningThreshold:i.kerningThreshold,ligatures:i.ligatures,numberSpacing:i.numberSpacing,numberForm:i.numberForm,stylisticSet:i.stylisticSet,contextualAlternates:i.contextualAlternates,fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color,textFill:i.textFill,textOutline:i.textOutline,textShadow:i.textShadow,glow:i.glow,reflection:i.reflection,scene3dXml:i.scene3dXml,props3dXml:i.props3dXml,highlight:i.highlight,shading:i.shading,language:i.language,propertyRevision:null==(r=e.styles)?void 0:r.propertyRevision};return(null==(o=e.styles)?void 0:o.link)&&(a.link=e.styles.link),a}(e,n,r),s=()=>wc(a),l=()=>`<w:r>${s()}${yc(e.text)}</w:r>`,c=Cr(e,{footnoteReference:e=>function(e,t,n){const r=Tr(e);return Cc("footnote",r?{noteId:r.footnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),endnoteReference:e=>function(e,t,n){const r=Ir(e);return Cc("endnote",r?{noteId:r.endnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),fieldChar:e=>function(e,t){const n=(e.fieldLock?' w:fldLock="true"':"")+(e.dirty?' w:dirty="true"':"");return`<w:r>${t}<w:fldChar w:fldCharType="${e.kind}"${n}/></w:r>`}(e.fieldChar,s()),fieldInstruction:e=>{return t=e.fieldInstruction,`<w:r>${s()}<w:instrText xml:space="preserve">${zs(t)}</w:instrText></w:r>`;var t},field:e=>{return t=e.field.type,n=s(),`<w:fldSimple w:instr="${"PAGE"===t?" PAGE ":" NUMPAGES "}"><w:r>${n}<w:t>1</w:t></w:r></w:fldSimple>`;var t,n},textBox:e=>_c(e,e.textBox,t,r,s(),o),image:e=>{const n=t.imageMap.get(e.id);if(n){const r=kc(e.id,n,t,s());if(null!==r)return r}return l()},sym:e=>`<w:r>${s()}<w:sym w:font="${zs(e.sym.font)}" w:char="${e.sym.char}"/></w:r>`,math:e=>function(e){const t=`<m:oMath>${Rc(e.children)}</m:oMath>`;return e.display?`<m:oMathPara>${t}</m:oMathPara>`:t}(e.math),text:()=>l()});return Qc(e,c)}function Jc(e,t,n,r,o){var i,a;let s=Kc(e,t,n,r,o);if(e.revisionRangeMarker)return s;"delete"===(null==(i=e.revision)?void 0:i.type)&&(s=tc(s));const l=null==(a=e.styles)?void 0:a.link,c=l?function(e,t,n){if(t.startsWith("#"))return`<w:hyperlink w:anchor="${zs(t.slice(1))}">${e}</w:hyperlink>`;const r=n.hyperlinkMap.get(t);return r?`<w:hyperlink r:id="${r}">${e}</w:hyperlink>`:e}(s,l,t):s;return e.revision?function(e,t){const n=rc(t),r=function(e){return"from"===e.move?"moveFrom":"to"===e.move?"moveTo":"delete"===e.type?"del":"ins"}(t);return`<w:${r} ${n}>${e}</w:${r}>`}(c,e.revision):c}function eu(e,t){var n,r,o;let i="",a=0;for(;a<e.length;){const s=e[a],l=null==(n=s.sdtWrappers)?void 0:n[0];if(!l){i+=t(s),a+=1;continue}const c=[];let u=a;for(;u<e.length&&(null==(o=null==(r=e[u].sdtWrappers)?void 0:r[0])?void 0:o.groupId)===l.groupId;){const t=e[u],n=t.sdtWrappers.slice(1);c.push({...t,sdtWrappers:n.length>0?n:void 0}),u+=1}const d=eu(c,t);i+=`<w:sdt>${bl(l.sdtPr)}${l.sdtEndPrXml??""}<w:sdtContent>${d}</w:sdtContent></w:sdt>`,a=u}return i}const tu=new Set(["pStyle","keepNext","keepLines","pageBreakBefore","framePr","widowControl","numPr","suppressLineNumbers","pBdr","shd","tabs","suppressAutoHyphens","kinsoku","wordWrap","overflowPunct","topLinePunct","autoSpaceDE","autoSpaceDN","bidi","adjustRightInd","snapToGrid","spacing","ind","contextualSpacing","mirrorIndents","suppressOverlap","jc","textDirection","textAlignment","textboxTightWrap","outlineLvl","divId","cnfStyle","rPr","sectPr","pPrChange"]);function nu(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function ru(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function ou(e){return e.localName??e.tagName}function iu(e){return`${e.namespaceURI??""}\0${ou(e)}`}function au(e,t){var n;if(!e||nu(e))return t;const r=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===Ls&&"pPr"===ou(t)?t:void 0}(e),o=function(e){if(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}">${e}</oasis:root>`,"application/xml").documentElement,n=t?ru(t):[];if(1===n.length&&n[0].namespaceURI===Ls&&"pPr"===ou(n[0]))return n[0]}return(new ir).parseFromString(`<w:pPr xmlns:w="${Ls}"/>`,"application/xml").documentElement}(t);if(!r||!o)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Bs)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o);const i=ru(r),a=ru(o),s=new Map;for(const d of a){const e=iu(d),t=s.get(e)??[];t.push(d),s.set(e,t)}const l=new Map;for(const d of i){const e=iu(d),t=l.get(e)??0;l.set(e,t+1);const r=null==(n=s.get(e))?void 0:n[t];r&&Il(d,r)}const c=new Set(a.map(iu)),u=i.filter(e=>{return!(t=e,t.namespaceURI===Ls&&tu.has(ou(t))||c.has(iu(e)));var t});for(const d of u){const e=i.indexOf(d),t=i.slice(e+1).find(e=>c.has(iu(e))),n=t?ru(o).find(e=>iu(e)===iu(t))??null:null;o.insertBefore(d.cloneNode(!0),n)}return t||1!==o.attributes.length||0!==ru(o).length?(new or).serializeToString(o):""}const su=new Set(["pPr","r","hyperlink","fldSimple","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd"]);function lu(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function cu(e){return e.localName??e.tagName}function uu(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:r="${Bs}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!n)return;const r=lu(n);return 1===r.length&&r[0].namespaceURI===Ls&&cu(r[0])===t?r[0]:void 0}function du(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function fu(e,t){const n=(r="pPr",lu(e).find(e=>e.namespaceURI===Ls&&cu(e)===r));var r;if(!t)return n&&e.removeChild(n),!0;const o=uu(t,"pPr");if(!o)return!1;const i=o.cloneNode(!0);return n?e.replaceChild(i,n):e.insertBefore(i,e.firstChild),!0}function pu(e,t,n,r){var o,i;const a=null==(o=Fa(e))?void 0:o.xml;if(!a||r.hasOverrides||r.hasBoundaryTokens||e.dropCap||/\br:(?:id|embed|link)\s*=/.test(a))return;const s=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===Ls&&"p"===cu(t)?t:void 0}(a);if(!s||!function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!du(n)&&n.namespaceURI!==Bs)return!0}return lu(e).some(e=>{const t=cu(e);return e.namespaceURI!==Ls||!su.has(t)})}(s))return;const l=function(e){const t=[],n=e=>{for(const r of lu(e)){const e=cu(r);r.namespaceURI!==Ls||"r"!==e?(r.namespaceURI!==Ls||"pPr"!==e&&"p"!==e&&"tbl"!==e&&"txbxContent"!==e)&&n(r):t.push(r)}};return n(e),t}(s);if(l.length!==n.length)return;const c=n.map(e=>uu(e,"r"));if(!c.some(e=>!e)&&fu(s,t)){for(let e=0;e<l.length;e+=1)null==(i=l[e].parentNode)||i.replaceChild(c[e].cloneNode(!0),l[e]);return(new or).serializeToString(s)}}function hu(e,t){return e.rows.some(e=>e.cells.some(e=>e.blocks.some(e=>function(e,t){var n,r;switch(e.type){case"paragraph":return Boolean((null==(n=t.bookmarkEventsByParagraph)?void 0:n.has(e.id))||(null==(r=t.commentEventsByParagraph)?void 0:r.has(e.id)));case"table":return hu(e,t);default:return _r(e,"block")}}(e,t))))}function mu(e,t,n){var r;switch(e.type){case"paragraph":return vu(e,t,n);case"table":{const o=(null==(r=e.style)?void 0:r.pageBreakBefore)?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':"",i=function(e){var t;const n=null==(t=Va(e))?void 0:t.xml;return Boolean(n&&/<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(n))}(e)?void 0:function(e,t){const n=Va(e);if(n&&!t.hasBoundaryTokens&&!Ia(n.xml))return n.semanticSignature===Ba(e)?n.xml:void 0}(e,{hasBoundaryTokens:hu(e,t)});return o+(i??Ql(e,(e,r)=>function(e,t,n,r){var o;return"paragraph"===e.type?vu(e,n,r,{align:null==(o=t.style)?void 0:o.horizontalAlign}):mu(e,n,r)}(e,r,t,n)))}default:return _r(e,"block")}}function gu(e,t,n){var r,o,i;let a="",s=0;for(;s<e.length;){const l=e[s],c=null==(r=l.sdtWrappers)?void 0:r[0];if(!c){a+=mu(l,t,n),s+=1;continue}const u=[];let d=s;for(;d<e.length&&(null==(i=null==(o=e[d].sdtWrappers)?void 0:o[0])?void 0:i.groupId)===c.groupId;){const t=e[d].sdtWrappers.slice(1);u.push({...e[d],sdtWrappers:t.length>0?t:void 0}),d+=1}const f=gu(u,t,n);a+=`<w:sdt>${bl(c.sdtPr)}${c.sdtEndPrXml??""}<w:sdtContent>${f}</w:sdtContent></w:sdt>`,s=d}return a}function vu(e,t,n,r){var o,i,a;const s=e.runs.length>0?e.runs:[{id:"",text:"",kind:"text"}],l=e.dropCap?function(e){const t=wc(e.style);var n;return`<w:p><w:pPr><w:keepNext/><w:framePr w:dropCap="${e.type}" w:lines="${e.lines}" w:wrap="around" w:vAnchor="text" w:hAnchor="text"/><w:spacing w:after="0"/>${t?`<w:rPr>${n=t,n.replace(/^<w:rPr>/,"").replace(/<\/w:rPr>$/,"")}</w:rPr>`:""}</w:pPr><w:r>${t}${yc(e.text)}</w:r></w:p>`}(e.dropCap):"",c=null==(o=t.bookmarkEventsByParagraph)?void 0:o.get(e.id),u=null==(i=t.commentEventsByParagraph)?void 0:i.get(e.id),d=[...(c??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Vs(e)})),...(u??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Xs(e)}))],f=function(e,t){const n=Fa(e);if(!(!(null==n?void 0:n.xml)||!n.semanticSignature||t.hasOverrides||t.hasBoundaryTokens||Ia(n.xml)||Ea.test(n.xml)||ka.test(n.xml)))return n.semanticSignature===Ma(e)?n.xml:void 0}(e,{hasOverrides:Boolean(r),hasBoundaryTokens:d.length>0});if(f)return f;const p=r=>{var o;return Jc(r,t,null==(o=e.style)?void 0:o.styleId,n,gu)},h=0===d.length?s.map(p):void 0,m=0===d.length?eu(s,p):function(e,t,n,r,o){const i=[...t].sort((e,t)=>e.offset-t.offset||e.seq-t.seq);let a=0,s=0,l=eu(e,e=>{let t="";const l=s,c=l+e.text.length;for(;a<i.length&&i[a].offset<=l;)t+=i[a].xml,a+=1;if(function(e){return"text"===e.kind||"sym"===e.kind}(e)&&e.text.length>0){let s=l;for(;a<i.length&&i[a].offset<c;){const c=i[a];c.offset>s&&(t+=Jc({...e,text:e.text.slice(s-l,c.offset-l)},n,r,o,gu)),t+=c.xml,a+=1,s=c.offset}s<c&&(t+=Jc({...e,text:e.text.slice(s-l)},n,r,o,gu))}else t+=Jc(e,n,r,o,gu);return s=c,t});for(;a<i.length;)l+=i[a].xml,a+=1;return l}(s,d,t,null==(a=e.style)?void 0:a.styleId,n),g=function(e){var t;return null==(t=Fa(e))?void 0:t.attributes}(e),v=g?` ${g}`:"",w=lc(e,t.numberingInfo,n,r),b=function(e,t,n){var r;const o=null==(r=Fa(e))?void 0:r.paragraphProperties;return!o||nu(o.xml)?t:n||e.list||o.semanticSignature!==La(e)?au(o.xml,t):o.xml}(e,w,Boolean(r));if(h){const t=pu(e,b,h,{hasOverrides:Boolean(r),hasBoundaryTokens:!1});if(t)return t}return`${l}<w:p${v}>${b}${m}</w:p>`}function wu(e){var t;const n=null==(t=e.footnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Ks(n);for(const{run:i}of function(e){return us(e,"footnoteReference")}(e)){const e=Tr(i);if(!e||r.has(e.footnoteId))continue;const t=n[e.footnoteId];t&&r.set(e.footnoteId,{footnoteId:e.footnoteId,docxId:o(t),footnote:t})}return Array.from(r.values())}function bu(e){if(0===e.length)return[yu()];const[t,...n]=e;return"paragraph"!==t.type?[yu(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"FootnoteText"}}),...n];var r,o}function yu(e=!0){return{id:"synthetic:footnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0}]:[],{id:"synthetic:footnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"FootnoteText"}}}function xu(e){var t;const n=null==(t=e.endnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Ks(n);for(const{run:i}of function(e){return us(e,"endnoteReference")}(e)){const e=Ir(i);if(!e||r.has(e.endnoteId))continue;const t=n[e.endnoteId];t&&r.set(e.endnoteId,{endnoteId:e.endnoteId,docxId:o(t),endnote:t})}return Array.from(r.values())}function Nu(e){if(0===e.length)return[Su()];const[t,...n]=e;return"paragraph"!==t.type?[Su(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"EndnoteText"}}),...n];var r,o}function Su(e=!0){return{id:"synthetic:endnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0}]:[],{id:"synthetic:endnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"EndnoteText"}}}const Eu=["wholeTable","band1Horz","band2Horz","band1Vert","band2Vert","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function ku(e){const t={...e.borders?{...e.borders.borderTop?{borderTop:e.borders.borderTop}:{},...e.borders.borderLeft?{borderLeft:e.borders.borderLeft}:{},...e.borders.borderBottom?{borderBottom:e.borders.borderBottom}:{},...e.borders.borderRight?{borderRight:e.borders.borderRight}:{}}:{},...e.shading?{shading:e.shading}:{},...e.cellStyle};return Object.keys(t).length>0?ul({id:"table-style-cell",blocks:[],style:t}):""}function _u(e,t){if("number"==typeof t)return`<w:${e} w:w="${qs(t)??0}" w:type="dxa"/>`;if("string"==typeof t&&t.endsWith("%")){const n=Number.parseFloat(t);return Number.isFinite(n)?`<w:${e} w:w="${Math.round(50*n)}" w:type="pct"/>`:""}return"auto"===t?`<w:${e} w:w="0" w:type="auto"/>`:""}function Tu(e){if(!e)return"";const t=[];void 0!==e.rowBandSize&&t.push(`<w:tblStyleRowBandSize w:val="${e.rowBandSize}"/>`),void 0!==e.colBandSize&&t.push(`<w:tblStyleColBandSize w:val="${e.colBandSize}"/>`);const n=_u("tblW",e.width);n&&t.push(n);const r=_u("tblInd",e.indentLeft);r&&t.push(r);const o=_u("tblCellSpacing",e.cellSpacing);if(o&&t.push(o),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),e.layout&&t.push(`<w:tblLayout w:type="${e.layout}"/>`),void 0!==e.bidiVisual&&t.push(`<w:bidiVisual w:val="${e.bidiVisual?"1":"0"}"/>`),e.defaultCellMargins){const n=Object.entries(e.defaultCellMargins).map(([e,t])=>`<w:${e} w:w="${qs(t)??0}" w:type="dxa"/>`).join("");n&&t.push(`<w:tblCellMar>${n}</w:tblCellMar>`)}if(e.borders){const{borders:n}=e,r=bi.filter(([,e])=>!!n[e]).map(([e,t])=>`<w:${e} ${Js(n[t])}`).join("");r&&t.push(`<w:tblBorders>${r}</w:tblBorders>`)}return t.length>0?`<w:tblPr>${t.join("")}</w:tblPr>`:""}function Iu(e,t){const n=[],r=t.paragraphStyle?sc(t.paragraphStyle):"";r&&n.push(r);const o=t.textStyle?wc(t.textStyle):"";o&&n.push(o);const i=Tu(t.tableStyle);i&&n.push(i);const a=t.rowStyle?pl(t.rowStyle):"";a&&n.push(a);const s=ku(t);return s&&n.push(s),0===n.length?"":`<w:tblStylePr w:type="${zs(e)}">${n.join("")}</w:tblStylePr>`}function Cu(e){const t=[];if(t.push(`<w:name w:val="${zs(e.name)}"/>`),e.basedOn&&t.push(`<w:basedOn w:val="${zs(e.basedOn)}"/>`),e.nextStyle&&t.push(`<w:next w:val="${zs(e.nextStyle)}"/>`),void 0!==e.uiPriority&&t.push(`<w:uiPriority w:val="${Math.max(0,Math.floor(e.uiPriority))}"/>`),void 0!==e.qFormat&&t.push(`<w:qFormat w:val="${e.qFormat?"1":"0"}"/>`),void 0!==e.semiHidden&&t.push(`<w:semiHidden w:val="${e.semiHidden?"1":"0"}"/>`),void 0!==e.unhideWhenUsed&&t.push(`<w:unhideWhenUsed w:val="${e.unhideWhenUsed?"1":"0"}"/>`),("paragraph"===e.type||"table"===e.type)&&e.paragraphStyle){const n=sc(e.paragraphStyle);n&&t.push(n)}if(e.textStyle){const n=wc(e.textStyle);n&&t.push(n)}if("table"===e.type&&e.tableStyle){const n=e.tableStyle,r=Tu(n);if(r&&t.push(r),n.conditionalFormats){const e=[...Eu.filter(e=>e in n.conditionalFormats),...Object.keys(n.conditionalFormats).filter(e=>!Eu.includes(e))];for(const r of e){const e=n.conditionalFormats[r];if(e){const n=Iu(r,e);n&&t.push(n)}}}}return`<w:style w:type="${"character"===e.type?"character":"table"===e.type?"table":"paragraph"}" w:styleId="${zs(e.id)}"${e.isDefault?' w:default="1"':""}>${t.join("")}</w:style>`}function Au(e,t,n,r,o,i,a,s,l,c=!1){const u=r.map(e=>{const t="header"===e.kind?"application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml":"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";return`<Override PartName="/word/${e.path}" ContentType="${t}"/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>${function(e){const t=new Set;let n="";for(const r of e){const e=r.toLowerCase();if(t.has(e))continue;const o=$o[e];o&&(t.add(e),n+=`<Default Extension="${e}" ContentType="${o}"/>`)}return n}(t)}<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>${a?'<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>':""}${e?'<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>':""}${n?'<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>':""}${o?'<Override PartName="/word/footnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"/>':""}${i?'<Override PartName="/word/endnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"/>':""}${s?'<Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/><Override PartName="/word/commentsExtended.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml"/>':""}${l?'<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>':""}${c?'<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>':""}${u}</Types>`}const Ru={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},$u={continuous:"continuous",eachSection:"eachSect"};function Du(e,t){if(!t)return null;const n=[];return t.numberFormat&&n.push(`<w:numFmt w:val="${Ru[t.numberFormat]}"/>`),void 0!==t.startAt&&n.push(`<w:numStart w:val="${Math.max(1,t.startAt)}"/>`),t.restart&&n.push(`<w:numRestart w:val="${$u[t.restart]}"/>`),n.length>0?`<w:${e}>${n.join("")}</w:${e}>`:null}function Pu(e,t){let n="";for(const r of t)n+=`<Relationship Id="${r.rId}" Type="${Bs}/hyperlink" Target="${zs(r.href)}" TargetMode="External"/>`;for(const r of e){const e="linked"===r.kind?' TargetMode="External"':"";n+=`<Relationship Id="${r.rId}" Type="${Bs}/image" Target="${zs(r.target)}"${e}/>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fs}">${n}</Relationships>`}function Ou(e,t){t(e);for(const n of e.runs)"textBox"===n.kind&&Mu(n.textBox.blocks,t)}function Mu(e,t){for(const n of e)switch(n.type){case"paragraph":Ou(n,t);break;case"table":for(const e of n.rows)for(const n of e.cells)Mu(n.blocks,t);break;default:_r(n,"block")}}function Lu(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if((null==r?void 0:r.localName)===t)return r.value}}function Fu(e,t,n){if(!e)return 0;const r=(new ir).parseFromString(e,"application/xml");let o=0;for(const i of Array.from(r.getElementsByTagNameNS(Ls,t))){const e=Lu(i,n);if(!e||!/^\d+$/.test(e))continue;const t=Number.parseInt(e,10);Number.isSafeInteger(t)&&(o=Math.max(o,t))}return o}function Bu(e,t){return void 0!==e&&Number.isSafeInteger(e)&&e>=t}function Uu(e){const t=new Map,n=new Map,r=[],o=new Set,i=new Set,a=function(e){var t;const n=e.sourcePackage;if(!n)return;const r=n.parts[n.mainDocumentPart],o=null==(t=null==r?void 0:r.relationships)?void 0:t.find(e=>"External"!==e.targetMode&&e.type.endsWith("/numbering")&&Boolean(e.resolvedTarget)),i=(null==o?void 0:o.resolvedTarget)?n.parts[o.resolvedTarget]:void 0;return"xml"===(null==i?void 0:i.kind)?i.data:void 0}(e);let s=Math.max(1,Fu(a,"abstractNum","abstractNumId")+1),l=Math.max(1,Fu(a,"num","numId")+1);const c=e=>{if(Bu(e,0)&&!o.has(e))return o.add(e),e;for(;o.has(s);)s+=1;const t=s;return s+=1,o.add(t),t},u=e=>{if(Bu(e,1)&&!i.has(e))return i.add(e),e;for(;i.has(l);)l+=1;const t=l;return l+=1,i.add(t),t},d=[],f=e=>{e.list&&d.push(e)};for(const p of Yr(e))Mu(p.blocks,f),p.header&&Mu(p.header,f),p.firstPageHeader&&Mu(p.firstPageHeader,f),p.evenPageHeader&&Mu(p.evenPageHeader,f),p.footer&&Mu(p.footer,f),p.firstPageFooter&&Mu(p.firstPageFooter,f),p.evenPageFooter&&Mu(p.evenPageFooter,f);for(const p of d){const e=p.list,o=Math.max(0,e.level??0),i=e.bulletGlyph??"",a=e.instanceId?`instance:${e.instanceId}`:`legacy:${e.kind}:${o}:${i}`;let s=n.get(a);if(!s){const t=ei(e),o=void 0!==(null==t?void 0:t.sourceNumId)&&e.instanceId===String(t.sourceNumId);s={abstractNumId:c(o?t.sourceAbstractNumId:void 0),numId:u(o?t.sourceNumId:void 0),levels:[]},n.set(a,s),r.push(s)}if(!s.levels.some(e=>e.level===o)){const t=ei(e),n=ti(e);s.levels.push({kind:e.kind,level:o,format:e.format,startAt:e.startAt,levelText:e.levelText,suffix:e.suffix,alignment:e.alignment,legal:e.legal,bulletGlyph:e.bulletGlyph,bulletFont:e.bulletFont,...t?{ooxml:{...t,...n?{format:n}:{format:void 0}}}:{}})}t.set(p.id,{numId:s.numId,level:o})}return{numberingInfo:t,definitions:r}}const zu=`xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:r="${Bs}"`;function Hu(e,t,n){var r,o;const i=Yr(e),a=i.map((r,o)=>{var a;const s=gu(r.blocks,t,e.styles),l=function(e,t,n,r){var o,i,a,s,l,c,u,d,f;const p=Hs(e.width,12240),h=Hs(e.height,15840),m=e.margins,g="landscape"===e.orientation?' w:orient="landscape"':"",v=[(null==(o=null==t?void 0:t.header)?void 0:o.first)?`<w:headerReference w:type="first" r:id="${t.header.first.relId}"/>`:"",(null==(i=null==t?void 0:t.header)?void 0:i.even)?`<w:headerReference w:type="even" r:id="${t.header.even.relId}"/>`:"",(null==(a=null==t?void 0:t.header)?void 0:a.default)?`<w:headerReference w:type="default" r:id="${t.header.default.relId}"/>`:"",(null==(s=null==t?void 0:t.footer)?void 0:s.first)?`<w:footerReference w:type="first" r:id="${t.footer.first.relId}"/>`:"",(null==(l=null==t?void 0:t.footer)?void 0:l.even)?`<w:footerReference w:type="even" r:id="${t.footer.even.relId}"/>`:"",(null==(c=null==t?void 0:t.footer)?void 0:c.default)?`<w:footerReference w:type="default" r:id="${t.footer.default.relId}"/>`:""].join(""),w=(null==(u=null==t?void 0:t.header)?void 0:u.first)||(null==(d=null==t?void 0:t.footer)?void 0:d.first)?"<w:titlePg/>":"",b=r&&"nextPage"!==r?`<w:type w:val="${r}"/>`:"",y=e.columns;let x="";if(y&&y.count>1){const e=Hs(y.space,0),t=y.separator?' w:sep="1"':"";if(!1===y.equalWidth&&(null==(f=y.columns)?void 0:f.length)){const n=y.columns.map(e=>`<w:col w:w="${Hs(e.width,0)}" w:space="${Hs(e.space,0)}"/>`).join("");x=`<w:cols w:num="${y.count}" w:space="${e}" w:equalWidth="0"${t}>${n}</w:cols>`}else x=`<w:cols w:num="${y.count}" w:space="${e}"${t}/>`}const N=n.pageNumbering;let S="";if(N){const e=[];void 0!==N.start&&e.push(`w:start="${N.start}"`),N.format&&e.push(`w:fmt="${zs(N.format)}"`),N.chapterStyle&&e.push(`w:chapStyle="${zs(N.chapterStyle)}"`),N.chapterSeparator&&e.push(`w:chapSep="${zs(N.chapterSeparator)}"`),e.length>0&&(S=`<w:pgNumType ${e.join(" ")}/>`)}const E=n.verticalAlignment&&"top"!==n.verticalAlignment?`<w:vAlign w:val="${n.verticalAlignment}"/>`:"",k=n.bidi?"<w:bidi/>":"",_=n.pageBorder,T=null==_?void 0:_.color.replace("#","").toUpperCase(),I=_?`<w:pgBorders w:offsetFrom="page"><w:top w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:left w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:bottom w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/><w:right w:val="${_.style}" w:sz="${Math.max(1,Math.round(8*_.width))}" w:space="${Math.max(0,Math.round(_.distance??0))}" w:color="${T}"/></w:pgBorders>`:"";return`<w:sectPr>${v}${w}${b}<w:pgSz w:w="${p}" w:h="${h}"${g}/><w:pgMar w:top="${Hs(m.top,1440)}" w:right="${Hs(m.right,1440)}" w:bottom="${Hs(m.bottom,1440)}" w:left="${Hs(m.left,1440)}" w:header="${Hs(m.header,720)}" w:footer="${Hs(m.footer,720)}" w:gutter="${Hs(m.gutter,0)}"/>${S}${x}${E}${k}${I}</w:sectPr>`}(r.pageSettings,n[o],r,null==(a=i[o+1])?void 0:a.breakType);return s+l}).join(""),s=null==(o=null==(r=e.design)?void 0:r.pageColor)?void 0:o.replace("#","").toUpperCase();return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${zu}>${s?`<w:background w:color="${s}"/>`:""}<w:body>${a}</w:body></w:document>`}function ju(e,t,n,r,o){const i="header"===e?"hdr":"ftr",a="header"===e&&"text"===(null==o?void 0:o.kind)&&o.text?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml"><v:shape type="#_x0000_t136" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#94a3b8"}" fillopacity="${o.opacity??.25}"><v:textpath on="true" string="${zs(o.text)}" style="font-family:${zs(o.fontFamily??"Arial")};font-size:${o.fontSize??48}pt"/></v:shape></w:pict>`:"header"===e&&"image"===(null==o?void 0:o.kind)&&n.images.some(e=>"__watermark"===e.runId)?`<w:pict xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><v:shape type="#_x0000_t75" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation??-45}" fillcolor="${o.color??"#ffffff"}" fillopacity="${o.opacity??.25}" stroked="f"><v:imagedata r:id="rIdWatermark" o:title="Watermark"/></v:shape></w:pict>`:"";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${i} ${zu}>${a}${gu(t,n,r)}</w:${i}>`}function qu(e){if(e)return{...e,propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:qu(e.propertyRevision.previous)??{}}:void 0}}function Wu(e){if(e)return{...e,tabs:e.tabs?e.tabs.map(e=>({...e})):e.tabs,propertyRevision:e.propertyRevision?{...e.propertyRevision,previous:Wu(e.propertyRevision.previous)??{}}:void 0}}function Gu(e){return Array.isArray(e)?e.map(Gu):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Gu(t)])):e}function Vu(e){const t={id:e.id,text:e.text,styles:qu(e.styles),revision:e.revision?{...e.revision}:void 0,revisionRangeMarker:e.revisionRangeMarker?{...e.revisionRangeMarker}:void 0,sdtWrappers:e.sdtWrappers?[...e.sdtWrappers]:void 0};return function(e,t){const n=Oa(e);return n&&(t.ooxmlSource={...n}),t}(e,Cr(e,{text:()=>({...t,kind:"text"}),image:e=>({...t,kind:"image",image:{...e.image}}),textBox:e=>{return{...t,kind:"textBox",textBox:(n=e.textBox,{...n,floating:n.floating?{...n.floating,positionH:n.floating.positionH?{...n.floating.positionH}:void 0,positionV:n.floating.positionV?{...n.floating.positionV}:void 0}:void 0,shape:n.shape?{...n.shape}:void 0,body:n.body?{...n.body}:void 0,blocks:Zu(n.blocks)})};var n},field:e=>({...t,kind:"field",field:{...e.field}}),fieldChar:e=>({...t,kind:"fieldChar",fieldChar:{...e.fieldChar}}),fieldInstruction:e=>({...t,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}),footnoteReference:e=>({...t,kind:"footnoteReference",footnoteReference:{...e.footnoteReference}}),endnoteReference:e=>({...t,kind:"endnoteReference",endnoteReference:{...e.endnoteReference}}),sym:e=>({...t,kind:"sym",sym:{...e.sym}}),math:e=>{return{...t,kind:"math",math:(n=e.math,Gu(n))};var n}}))}function Xu(e){return{...e,runs:e.runs.map(Vu),style:Wu(e.style),list:e.list?{...e.list}:void 0}}function Zu(e){return e.map(e=>{switch(e.type){case"paragraph":return Xu(e);case"table":return{...e,style:e.style?{...e.style,defaultCellMargins:e.style.defaultCellMargins?{...e.style.defaultCellMargins}:void 0,floating:e.style.floating?{...e.style.floating}:void 0,revision:e.style.revision?{...e.style.revision,previous:{...e.style.revision.previous}}:void 0}:void 0,gridRevision:e.gridRevision?{...e.gridRevision,previous:[...e.gridRevision.previous]}:void 0,rows:e.rows.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,cells:e.cells.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,mergeRevisionState:e.mergeRevisionState?{...e.mergeRevisionState,previousCells:e.mergeRevisionState.previousCells.map(e=>({...e,mergeRevisionState:void 0,style:e.style?{...e.style}:void 0,blocks:Zu(e.blocks)}))}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,blocks:Zu(e.blocks)}))}))};default:return _r(e,"block")}})}function Yu(e){var t,n;if(!e)return!1;return"caption"===(null==(n=null==(t=e.style)?void 0:t.styleId)?void 0:n.toLowerCase())&&e.runs.some(e=>{const t=function(e){return"fieldInstruction"===e.kind?e.fieldInstruction:void 0}(e);return void 0!==t&&new RegExp("\\bSEQ\\s+Figure\\b","i").test(t)})}function Qu(e,t){return e.map(e=>{switch(e.type){case"paragraph":return Yu(e)?function(e,t){if(!Yu(e))return Xu(e);let n=!1,r=!1;const o=e.runs.map(e=>"fieldChar"===e.kind&&"separate"===e.fieldChar.kind?(n=!0,{...e,fieldChar:{...e.fieldChar}}):"fieldChar"===e.kind&&"end"===e.fieldChar.kind?(n=!1,{...e,fieldChar:{...e.fieldChar}}):n&&""!==e.text?e.text===String(t)?{...e}:(r=!0,{...e,text:String(t)}):{...e});return r?{...Xu(e),runs:o}:Xu(e)}(e,t.next++):Xu(e);case"table":return{...e,rows:e.rows.map(e=>({...e,cells:e.cells.map(e=>({...e,blocks:Qu(e.blocks,t)}))}))};default:return _r(e,"block")}})}const Ku={oasis:{accent:"0F766E",heading:"115E59",body:"1F2937"},office:{accent:"4472C4",heading:"2F5597",body:"1F2937"},facet:{accent:"8064A2",heading:"604A7B",body:"262626"},integral:{accent:"70AD47",heading:"548235",body:"1F2937"},ion:{accent:"ED7D31",heading:"C55A11",body:"262626"},retrospect:{accent:"5B9BD5",heading:"2F75B5",body:"1F2937"}};function Ju(e,t,n,r){const o=[],i=new Map,a=new Map,s=[],l=new Map;return Mu(e,e=>{var t;for(const c of e.runs){const e=null==(t=c.styles)?void 0:t.link;if(e&&!e.startsWith("#")&&!l.has(e)){const t=`rIdLink${s.length+1}`;l.set(e,t),s.push({rId:t,href:e})}if("textBox"!==c.kind||a.has(c.id)||(a.set(c.id,n.nextTextBoxDocPrId),n.nextTextBoxDocPrId+=1),"image"!==c.kind)continue;const u=n.nextImageId,d=`rIdImg${u}`,f={rId:d,runId:c.id,cx:Math.round(c.image.width*gr),cy:Math.round(c.image.height*gr),alt:c.image.alt,crop:c.image.crop,cropShape:c.image.cropShape,cropFit:c.image.cropFit,fillMode:c.image.fillMode,border:c.image.border,rotation:c.image.rotation,flipH:c.image.flipH,flipV:c.image.flipV,floating:c.image.floating,wrapPolygon:c.image.wrapPolygon};if(c.image.linkedSrc){o.push({...f,kind:"linked",target:c.image.linkedSrc}),i.set(c.id,d),n.nextImageId+=1;continue}const p=Xr(r,c.image.src).match(/^data:([^;,]+);base64,(.*)$/);if(!p)continue;const h=Po(p[1]);if(!h)continue;const m=p[2],g=`media/image${u}.${h}`;o.push({...f,kind:"embedded",target:g,base64:m}),i.set(c.id,d),n.nextImageId+=1}}),{numberingInfo:t.numberingInfo,definitions:t.definitions,images:o,imageMap:i,textBoxDocPrIds:a,hyperlinks:s,hyperlinkMap:l}}function ed(e,t,n){n&&(e.file(`word/${t}.xml`,n.xml),(n.partContext.images.length>0||n.partContext.hyperlinks.length>0)&&e.file(`word/_rels/${t}.xml.rels`,Pu(n.partContext.images,n.partContext.hyperlinks)))}async function td(e){var t,n,r,i,a,s,l,c,u,d,f,p,h,m,g,v,w,b;e=function(e){const t={next:1},n=Yr(e).map(e=>({...e,blocks:Qu(e.blocks,t),header:e.header?Zu(e.header):void 0,footer:e.footer?Zu(e.footer):void 0}));return{...e,sections:n}}(e);const y=new o,x=Uu(e),N={nextImageId:1,nextTextBoxDocPrId:1000001},S=Yr(e),E=function(e){var t;const n=null==(t=e.design)?void 0:t.watermark;if("image"!==(null==n?void 0:n.kind)||!n.src)return;const r=Xr(e,n.src).match(/^data:([^;,]+);base64,(.*)$/);if(!r)return;const o=Po(r[1]);return o?{rId:"rIdWatermark",runId:"__watermark",kind:"embedded",target:`media/watermark.${o}`,base64:r[2],cx:1,cy:1}:void 0}(e),k=wu(e),_=function(e){const t=new Map;for(const n of e)t.set(n.footnoteId,n.docxId);return t}(k),T=k.length>0,I=xu(e),C=function(e){const t=new Map;for(const n of e)t.set(n.endnoteId,n.docxId);return t}(I),A=I.length>0,R=function(e){const t=e.bookmarks;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const s of t.order){const e=t.items[s];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(s,o),r.add(o))}let o=0;for(const s of t.order)if(!n.has(s)){for(;r.has(o);)o+=1;n.set(s,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])};for(const s of t.order){const e=t.items[s];if(!e)continue;const r=n.get(s);e.start&&a(e.start.paragraphId,{kind:"start",offset:e.start.offset,seq:e.start.seq??0,wId:r,name:e.name,...void 0!==e.colFirst?{colFirst:e.colFirst}:{},...void 0!==e.colLast?{colLast:e.colLast}:{}}),e.end&&a(e.end.paragraphId,{kind:"end",offset:e.end.offset,seq:e.end.seq??0,wId:r})}return i}(e),$=function(e){const t=e.comments;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const l of t.order){const e=t.items[l];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(l,o),r.add(o))}let o=0;for(const l of t.order)if(!n.has(l)){for(;r.has(o);)o+=1;n.set(l,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])},s=[];return t.order.forEach((e,r)=>{const o=t.items[e];if(!o)return;const i=n.get(e),l=(1073741824+r).toString(16).toUpperCase();s.push({comment:o,wId:i,paraId:l}),o.start&&a(o.start.paragraphId,{kind:"start",offset:o.start.offset,seq:o.start.seq??0,wId:i}),o.end&&(a(o.end.paragraphId,{kind:"end",offset:o.end.offset,seq:o.end.seq??0,wId:i}),a(o.end.paragraphId,{kind:"reference",offset:o.end.offset,seq:(o.end.seq??0)+.5,wId:i}))}),{eventsByParagraph:i,comments:s}}(e),D=e=>(e.footnoteIdMap=_,e.endnoteIdMap=C,e.bookmarkEventsByParagraph=R,e.commentEventsByParagraph=null==$?void 0:$.eventsByParagraph,e),P=D(Ju(S.flatMap(e=>e.blocks),x,N,e)),O=void 0!==$,M=[],L=S.map(()=>({}));let F=1,B=1;S.forEach((t,n)=>{const r=(t,r,o)=>{var i,a,s;if(!(o&&0!==o.length||"header"===t&&"text"===(null==(a=null==(i=e.design)?void 0:i.watermark)?void 0:a.kind)||"header"===t&&void 0!==E))return;const l=o??[],c="header"===t?F:B,u=`${t}${c}.xml`,d=`rId${"header"===t?"Header":"Footer"}${c}`,f=D(Ju(l,x,N,e));"header"===t&&E&&f.images.push({...E}),M.push({kind:t,type:r,path:u,relId:d,blocks:l,context:f});const p="header"===t?"header":"footer";((s=L[n])[p]??(s[p]={}))[r]={relId:d},"header"===t?F+=1:B+=1};r("header","first",t.firstPageHeader),r("header","even",t.evenPageHeader),r("header","default",t.header),r("footer","first",t.firstPageFooter),r("footer","even",t.evenPageFooter),r("footer","default",t.footer)});const U=x.definitions.length>0,z=S.some(e=>{var t,n;return((null==(t=e.evenPageHeader)?void 0:t.length)??0)>0||((null==(n=e.evenPageFooter)?void 0:n.length)??0)>0}),H=z||void 0!==(null==(t=e.settings)?void 0:t.defaultTabStop)||void 0!==(null==(n=e.settings)?void 0:n.allowSpaceOfSameStyleInTable)||void 0!==(null==(r=e.settings)?void 0:r.autoHyphenation)||void 0!==(null==(i=e.settings)?void 0:i.consecutiveHyphenLimit)||void 0!==(null==(a=e.settings)?void 0:a.hyphenationZone)||void 0!==(null==(s=e.settings)?void 0:s.doNotHyphenateCaps)||void 0!==(null==(l=e.footnotes)?void 0:l.settings)||void 0!==(null==(c=e.endnotes)?void 0:c.settings),j=[...P.images,...M.flatMap(e=>e.context.images)],q=T?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>bu(e.footnote.blocks)));s.footnoteIdMap=a;const l=t.map(e=>{const t=gu(bu(e.footnote.blocks),s,i);return`<w:footnote w:id="${e.docxId}">${t}</w:footnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Bs}"><w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote><w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>${l}</w:footnotes>`,partContext:s}}(0,k,0,0,t=>Ju(t,x,N,e),e.styles,_):null;q&&j.push(...q.partContext.images);const W=A?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>Nu(e.endnote.blocks)));s.endnoteIdMap=a;const l=t.map(e=>{const t=gu(Nu(e.endnote.blocks),s,i);return`<w:endnote w:id="${e.docxId}">${t}</w:endnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${Ls}" xmlns:w14="${Us}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Bs}"><w:endnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:endnote><w:endnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:endnote>${l}</w:endnotes>`,partContext:s}}(0,I,0,0,t=>Ju(t,x,N,e),e.styles,C):null;W&&j.push(...W.partContext.images);const G=j.filter(e=>"embedded"===e.kind).map(e=>{var t;return null==(t=e.target.split(".").pop())?void 0:t.toLowerCase()}).filter(e=>Boolean(e)),V=null!=e.styles&&Object.keys(e.styles).length>0,X=((null==(u=e.fontTable)?void 0:u.length)??0)>0,Z=void 0!==e.design;y.file("[Content_Types].xml",Au(U,G,H,M,T,A,V,O,X,Z)),y.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fs}"><Relationship Id="rId1" Type="${Bs}/officeDocument" Target="word/document.xml"/></Relationships>`),y.file("word/document.xml",Hu(e,P,L)),V&&y.file("word/styles.xml",function(e){const t=Object.values(e).map(Cu).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${Us}">${t}</w:styles>`}(e.styles)),U&&y.file("word/numbering.xml",function(e){const t=e.map(({abstractNumId:e,levels:t})=>`<w:abstractNum w:abstractNumId="${e}">${t.sort((e,t)=>e.level-t.level).map(({kind:e,level:t,format:n,startAt:r,levelText:o,suffix:i,alignment:a,legal:s,bulletGlyph:l,bulletFont:c,ooxml:u})=>{const d="bullet"===e?"bullet":(null==u?void 0:u.format)??n??"decimal",f=o??("bullet"===e?l??"":`%${t+1}.`),p=r??1,h="bullet"===e?c??"Symbol":void 0,m=h?`<w:rPr><w:rFonts w:ascii="${zs(h)}" w:hAnsi="${zs(h)}" w:hint="default"/></w:rPr>`:"",g=i&&"tab"!==i?`<w:suff w:val="${i}"/>`:"",v=s?"<w:isLgl/>":"",w=void 0!==(null==u?void 0:u.restartAfterLevel)?`<w:lvlRestart w:val="${u.restartAfterLevel}"/>`:"",b=(null==u?void 0:u.paragraphStyleId)?`<w:pStyle w:val="${zs(u.paragraphStyleId)}"/>`:"";return`<w:lvl w:ilvl="${t}"><w:start w:val="${p}"/><w:numFmt w:val="${zs(d)}"/>${w}${b}<w:lvlText w:val="${zs(f)}"/><w:lvlJc w:val="${a??"left"}"/>${g}${v}${m}</w:lvl>`}).join("")}</w:abstractNum>`).join(""),n=e.map(({abstractNumId:e,numId:t})=>`<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${Ls}">${t}${n}</w:numbering>`}(x.definitions)),(V||U||H||P.images.length>0||P.hyperlinks.length>0||M.length>0||T||A||O||X||Z)&&y.file("word/_rels/document.xml.rels",function(e,t,n,r,o,i,a,s,l,c,u=!1){let d="";s&&(d+=`<Relationship Id="rIdStyles" Type="${Bs}/styles" Target="styles.xml"/>`),e&&(d+=`<Relationship Id="rIdNum" Type="${Bs}/numbering" Target="numbering.xml"/>`),t&&(d+=`<Relationship Id="rIdSettings" Type="${Bs}/settings" Target="settings.xml"/>`);for(const f of r)d+=`<Relationship Id="${f.rId}" Type="${Bs}/hyperlink" Target="${zs(f.href)}" TargetMode="External"/>`;for(const f of n){const e="linked"===f.kind?' TargetMode="External"':"";d+=`<Relationship Id="${f.rId}" Type="${Bs}/image" Target="${zs(f.target)}"${e}/>`}for(const f of o){const e="header"===f.kind?"header":"footer";d+=`<Relationship Id="${f.relId}" Type="${Bs}/${e}" Target="${f.path}"/>`}return i&&(d+=`<Relationship Id="rIdFootnotes" Type="${Bs}/footnotes" Target="footnotes.xml"/>`),a&&(d+=`<Relationship Id="rIdEndnotes" Type="${Bs}/endnotes" Target="endnotes.xml"/>`),l&&(d+=`<Relationship Id="rIdComments" Type="${Bs}/comments" Target="comments.xml"/>`,d+='<Relationship Id="rIdCommentsExtended" Type="http://schemas.microsoft.com/office/2011/relationships/commentsExtended" Target="commentsExtended.xml"/>'),c&&(d+=`<Relationship Id="rIdFontTable" Type="${Bs}/fontTable" Target="fontTable.xml"/>`),u&&(d+=`<Relationship Id="rIdTheme" Type="${Bs}/theme" Target="theme/theme1.xml"/>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fs}">${d}</Relationships>`}(U,H,P.images,P.hyperlinks,M,T,A,V,O,X,Z)),X&&y.file("word/fontTable.xml",function(e){const t=e.map(e=>{const t=[];if(e.altName&&t.push(`<w:altName w:val="${zs(e.altName)}"/>`),e.panose1&&t.push(`<w:panose1 w:val="${zs(e.panose1)}"/>`),e.charset&&t.push(`<w:charset w:val="${zs(e.charset)}"/>`),e.family&&t.push(`<w:family w:val="${zs(e.family)}"/>`),e.pitch&&t.push(`<w:pitch w:val="${zs(e.pitch)}"/>`),e.sig){const n=Object.entries(e.sig).map(([e,t])=>`w:${e}="${zs(t)}"`).join(" ");n&&t.push(`<w:sig ${n}/>`)}return`<w:font w:name="${zs(e.name)}">${t.join("")}</w:font>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:fonts xmlns:w="${Ls}">${t}</w:fonts>`}(e.fontTable)),Z&&y.file("word/theme/theme1.xml",function(e){var t;const n=null==(t=null==e?void 0:e.themeData)?void 0:t.sourceXml;if(n)return n;const r=Ku[(null==e?void 0:e.themeId)??"oasis"]??Ku.oasis,o=null==e?void 0:e.themeData,i=(e,t)=>{var n;return((null==(n=null==o?void 0:o.colors)?void 0:n[e])??t).replace(/^#/,"").toUpperCase()},a={dk1:i("dk1","000000"),lt1:i("lt1","FFFFFF"),dk2:i("dk2",r.body),lt2:i("lt2","FFFFFF"),accent1:i("accent1",r.accent),accent2:i("accent2",r.heading),accent3:i("accent3","5B9BD5"),accent4:i("accent4","70AD47"),accent5:i("accent5","ED7D31"),accent6:i("accent6","A5A5A5"),hlink:i("hlink","0563C1"),folHlink:i("folHlink","954F72")},s=Object.entries(a).map(([e,t])=>`<a:${e}><a:srgbClr val="${t}"/></a:${e}>`).join(""),l=(e,t,n)=>{var r,i;return zs((null==(i=null==(r=null==o?void 0:o.fonts)?void 0:r[e])?void 0:i[t])??n)},c=zs((null==o?void 0:o.name)??`${((null==e?void 0:e.themeId)??"oasis")[0].toUpperCase()}${((null==e?void 0:e.themeId)??"oasis").slice(1)}`),u=(null==o?void 0:o.effectsXml)??"<a:fillStyleLst/><a:lnStyleLst/><a:effectStyleLst/><a:bgFillStyleLst/>";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="${c}"><a:themeElements><a:clrScheme name="${c}">${s}</a:clrScheme><a:fontScheme name="${c}"><a:majorFont><a:latin typeface="${l("major","majorHAnsi","Aptos Display")}"/><a:ea typeface="${l("major","majorEastAsia","Aptos Display")}"/><a:cs typeface="${l("major","majorBidi","Aptos Display")}"/></a:majorFont><a:minorFont><a:latin typeface="${l("minor","minorHAnsi","Aptos")}"/><a:ea typeface="${l("minor","minorEastAsia","Aptos")}"/><a:cs typeface="${l("minor","minorBidi","Aptos")}"/></a:minorFont></a:fontScheme><a:fmtScheme name="${c}">${u}</a:fmtScheme></a:themeElements></a:theme>`}(e.design)),H&&y.file("word/settings.xml",function(e,t,n,r,o,i){const a=[],s=qs(t);null!==s&&a.push(`<w:defaultTabStop w:val="${s}"/>`),(null==i?void 0:i.autoHyphenation)&&a.push("<w:autoHyphenation/>"),void 0!==(null==i?void 0:i.consecutiveHyphenLimit)&&i.consecutiveHyphenLimit>=0&&a.push(`<w:consecutiveHyphenLimit w:val="${i.consecutiveHyphenLimit}"/>`);const l=qs(null==i?void 0:i.hyphenationZone);null!==l&&a.push(`<w:hyphenationZone w:val="${l}"/>`),(null==i?void 0:i.doNotHyphenateCaps)&&a.push("<w:doNotHyphenateCaps/>");const c=Du("footnotePr",n);c&&a.push(c);const u=Du("endnotePr",r);return u&&a.push(u),e&&a.push("<w:evenAndOddHeaders/>"),o&&a.push("<w:compat><w:allowSpaceOfSameStyleInTable/></w:compat>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:settings xmlns:w="${Ls}">${a.join("")}</w:settings>`}(z,null==(d=e.settings)?void 0:d.defaultTabStop,null==(f=e.footnotes)?void 0:f.settings,null==(p=e.endnotes)?void 0:p.settings,null==(h=e.settings)?void 0:h.allowSpaceOfSameStyleInTable,{autoHyphenation:null==(m=e.settings)?void 0:m.autoHyphenation,consecutiveHyphenLimit:null==(g=e.settings)?void 0:g.consecutiveHyphenLimit,hyphenationZone:null==(v=e.settings)?void 0:v.hyphenationZone,doNotHyphenateCaps:null==(w=e.settings)?void 0:w.doNotHyphenateCaps}));for(const o of M)y.file(`word/${o.path}`,ju(o.kind,o.blocks,o.context,e.styles,null==(b=e.design)?void 0:b.watermark)),(o.context.images.length>0||o.context.hyperlinks.length>0)&&y.file(`word/_rels/${o.path}.rels`,Pu(o.context.images,o.context.hyperlinks));ed(y,"footnotes",q),ed(y,"endnotes",W),$&&(y.file("word/comments.xml",Ys($)),y.file("word/commentsExtended.xml",function(e){const t=e.comments.map(({comment:e,paraId:t})=>`<w15:commentEx w15:paraId="${t}" w15:done="${e.resolved?"1":"0"}"/>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${Zs}>${t}</w15:commentsEx>`}($)));for(const o of j)"embedded"===o.kind&&o.base64&&y.file(`word/${o.target}`,o.base64,{base64:!0});return y.generateAsync({type:"arraybuffer"})}function nd(e){let t=2166136261;for(const n of e)t^=n,t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}async function rd(e){return async function(e){const t=await o.loadAsync(e),n={};for(const[r,o]of Object.entries(t.files))o.dir||(n[$s(r)]=nd(await o.async("uint8array")));return n}(await td(e))}const od="word/document.xml";function id(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function ad(e,t){const n=t.overrides[e];if(n)return n;const r=e.includes(".")?e.slice(e.lastIndexOf(".")+1).toLowerCase():"";return t.defaults[r]}function sd(e,t){return!(!e.endsWith(".xml")&&!e.endsWith(".rels"))||("application/xml"===t||Boolean(null==t?void 0:t.endsWith("+xml")))}async function ld(e){var t;const n=await o.loadAsync(e),r=[],i=await(null==(t=n.file("[Content_Types].xml"))?void 0:t.async("string")),a=function(e){var t;const n={defaults:{},overrides:{}};if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;for(let o=0;o<r.childNodes.length;o+=1){const e=r.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("Default"===i.localName){const e=null==(t=i.getAttribute("Extension"))?void 0:t.toLowerCase(),r=i.getAttribute("ContentType");e&&r&&(n.defaults[e]=r)}else if("Override"===i.localName){const e=i.getAttribute("PartName"),t=i.getAttribute("ContentType");e&&t&&(n.overrides[$s(e)]=t)}}return n}(i);i||r.push({level:"warning",code:"missing-content-types",message:"The DOCX package does not contain [Content_Types].xml."});const s={};for(const[o,d]of Object.entries(n.files)){if(d.dir)continue;const e=$s(o),t=ad(e,a),n=sd(e,t)?"xml":"binary",r="xml"===n?await d.async("string"):await d.async("base64");s[e]={path:e,...t?{contentType:t}:{},kind:n,data:r,encoding:"xml"===n?"utf8":"base64",originalHash:id(r)}}let l=[];for(const[o,d]of Object.entries(s)){const e=Ds(o);if(void 0===e||"xml"!==d.kind)continue;const t=Ms(e,Ps(d.data),t=>{r.push({level:"warning",code:"unsafe-relationship-target",message:`Relationship ${t.id} points outside the OPC package.`,...e?{partPath:e}:{},relationshipId:t.id})});if(null===e){l=t;continue}const n=s[e];n?n.relationships=t:r.push({level:"warning",code:"orphan-relationships-part",message:`Relationship part ${o} has no owning package part.`,partPath:o})}const c=l.find(e=>"External"!==e.targetMode&&e.type.endsWith("/officeDocument"));let u=null==c?void 0:c.resolvedTarget;if(!u||!s[u]){if(!s[od])throw new Error("DOCX package has no resolvable officeDocument relationship or word/document.xml fallback.");u=od,r.push({level:"warning",code:"main-document-fallback",message:"The officeDocument relationship was absent or invalid; word/document.xml was used as a compatibility fallback."})}return{format:"docx",mainDocumentPart:u,contentTypes:a,rootRelationships:l,parts:s,...r.length>0?{diagnostics:r}:{}}}const cd="word/document.xml",ud={"/styles":"word/styles.xml","/numbering":"word/numbering.xml","/settings":"word/settings.xml","/fontTable":"word/fontTable.xml","/theme":"word/theme/theme1.xml","/footnotes":"word/footnotes.xml","/endnotes":"word/endnotes.xml","/comments":"word/comments.xml","/commentsExtended":"word/commentsExtended.xml"};function dd(e){const t=e.lastIndexOf("/"),n=t>=0?e.slice(0,t):"",r=t>=0?e.slice(t+1):e;return n?`${n}/_rels/${r}.rels`:`_rels/${r}.rels`}function fd(e,t,n){"base64"===n.encoding?e.file(t,n.data,{base64:!0}):e.file(t,n.data)}function pd(e){return`word/__oasis_source__/${e}`}function hd(e){return e?e.map(e=>"External"!==e.targetMode&&e.resolvedTarget?{...e,target:`/${pd(e.resolvedTarget)}`,resolvedTarget:void 0}:e):[]}function md(e){for(const[t,n]of Object.entries(ud))if(e.type.endsWith(t))return n}async function gd(e,t){if(!function(e){var t;if(e.mainDocumentPart!==cd)return!0;const n=e.parts[e.mainDocumentPart];return Boolean(null==(t=null==n?void 0:n.relationships)?void 0:t.some(e=>{const t=md(e);return Boolean(t&&e.resolvedTarget&&e.resolvedTarget!==t)}))}(t))return e;const n=new o;for(const o of Object.values(t.parts))fd(n,o.path,o);for(const o of Object.values(t.parts)){if(o.path.endsWith(".rels")||"[Content_Types].xml"===o.path)continue;const e=pd(o.path);fd(n,e,o);const t=hd(o.relationships);t.length>0&&n.file(dd(e),Os(t))}const r=t.parts[t.mainDocumentPart];if(!r)throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);fd(n,cd,r);const i=hd(r.relationships);i.length>0&&n.file(dd(cd),Os(i));for(const o of r.relationships??[]){if("External"===o.targetMode||!o.resolvedTarget)continue;const e=md(o),r=t.parts[o.resolvedTarget];if(!e||!r)continue;fd(n,e,r);const i=hd(r.relationships);i.length>0&&n.file(dd(e),Os(i))}return n.generateAsync({type:"arraybuffer"})}function vd(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 ld(t.buffer),n=await gd(t.buffer,e),r=await Cs(n,{onProgress:(e,n)=>{vd({type:"progress",id:t.id,stage:e,progress:n})}});await async function(e,t){try{t.rebuiltPartHashes=await rd(e)}catch(n){(t.diagnostics??(t.diagnostics=[])).push({level:"warning",code:"rebuilt-baseline-unavailable",message:`The imported document could not be fingerprinted for granular source-part preservation: ${n instanceof Error?n.message:String(n)}`})}}(r,e),r.sourcePackage=e,vd({type:"done",id:t.id,document:r})}catch(n){vd({type:"error",id:t.id,error:n instanceof Error?n.message:String(n)})}})}();