openlearn-next 0.2.8 → 0.3.1
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.
- package/dist/assets/AdminDirectoryView-0XV86Ues.js +1 -0
- package/dist/assets/BatchPickerModal-of9a5EJz.js +1 -0
- package/dist/assets/ClassesView-CefnsjZ8.js +19 -0
- package/dist/assets/CloudDriveModal-DgVQLbO5.js +1 -0
- package/dist/assets/ComputerLabView-BId0ZarM.js +1 -0
- package/dist/assets/CourseManagement-Cxhc784Q.js +1 -0
- package/dist/assets/CourseWizardModal-Da6PKhnU.js +3 -0
- package/dist/assets/CoursewareHubPanel-LpUgjqbH.js +1 -0
- package/dist/assets/{Dashboard-DQ91dQio.js → Dashboard-LWbFbup4.js} +2 -2
- package/dist/assets/ExportWeightModal-Cyg1zMEd.js +1 -0
- package/dist/assets/HelpTour-CHPIK2ae.js +1 -0
- package/dist/assets/{HelpView-DLAKVpwf.js → HelpView-CvpgBpdr.js} +5 -5
- package/dist/assets/ImportLessonsModal-CfWIrW1K.js +1 -0
- package/dist/assets/ImportModal-BTfia0Ah.js +1 -0
- package/dist/assets/InteractiveCoursewareViewer-CS5BqfJZ.js +1 -0
- package/dist/assets/InteractiveWhiteboard-U23CsqGo.js +78 -0
- package/dist/assets/{LazyCourseware-g7b8EXR_.js → LazyCourseware-DXL9IxZO.js} +1 -1
- package/dist/assets/{LazyWhiteboard-B6rDWBFb.js → LazyWhiteboard-CtkzSFtN.js} +2 -2
- package/dist/assets/LessonEditorView-Bfxf4VVB.js +1 -0
- package/dist/assets/LiveClassroomView-DHzCM4qQ.js +1 -0
- package/dist/assets/NotificationDetailModal-BxrpnlWV.js +1 -0
- package/dist/assets/{PluginView-DCY4yi2h.js → PluginView-12qYzmnq.js} +3 -3
- package/dist/assets/{ProcessLogsModal-B-PY780w.js → ProcessLogsModal-01S7zsw0.js} +1 -1
- package/dist/assets/QuizGeneratorModal-DfZI40Ii.js +1 -0
- package/dist/assets/StudentAssignmentView-BP6zbHuM.js +1 -0
- package/dist/assets/StudentLessonView-DEpMzrH2.js +1 -0
- package/dist/assets/StudentPreviewModal-DCmai53s.js +1 -0
- package/dist/assets/StudentView-CcGlfW25.js +2 -0
- package/dist/assets/SystemResourceLibraryModal-BzHw1edT.js +1 -0
- package/dist/assets/TeacherView-Dw6mKwcv.js +2 -0
- package/dist/assets/{TimetableView-BMsjwi-s.js → TimetableView-DJgOlGSf.js} +3 -3
- package/dist/assets/index-B-YxO39A.css +1 -0
- package/dist/assets/index-C8sCKzmN.js +2 -0
- package/dist/assets/index-CYzNsYZB.js +193 -0
- package/dist/assets/{index.es-DZ6UeYE-.js → index.es-CfxBkm_z.js} +1 -1
- package/dist/assets/{vendor-charts-B7ViBL9w.js → vendor-charts-CRXa4AlU.js} +1 -1
- package/dist/assets/vendor-content-CYR4BTuT.js +3 -0
- package/dist/assets/{vendor-icons-_c3xpwjZ.js → vendor-icons-Dq6MhgH9.js} +1 -1
- package/dist/assets/{vendor-pdf-CVyNPGVr.js → vendor-pdf-Cp-cYteE.js} +2 -2
- package/dist/assets/{vendor-pptx-B0hlo0eh.js → vendor-pptx-B_NheIKl.js} +5 -5
- package/dist/assets/vendor-utils-BEhuP0Zq.js +1 -0
- package/dist/index.html +2 -2
- package/dist/server.cjs +1079 -699
- package/package.json +9 -6
- package/dist/assets/AdminDirectoryView-CD7tW4mc.js +0 -1
- package/dist/assets/BatchPickerModal-Bt8Qx0Av.js +0 -1
- package/dist/assets/ClassesView-B1B3wlkx.js +0 -19
- package/dist/assets/CloudDriveModal-BSZaWIex.js +0 -1
- package/dist/assets/ComputerLabView-B6-twB0u.js +0 -1
- package/dist/assets/CourseManagement-Bnezm9Vv.js +0 -1
- package/dist/assets/CourseWizardModal-BvfTvcQT.js +0 -3
- package/dist/assets/CoursewareHubPanel-Cb1mAqHS.js +0 -1
- package/dist/assets/ExportWeightModal-al1iIVxb.js +0 -1
- package/dist/assets/HelpTour-DwM9UBiA.js +0 -1
- package/dist/assets/ImportLessonsModal-DwhvqzY_.js +0 -1
- package/dist/assets/ImportModal-CmUt1YeX.js +0 -1
- package/dist/assets/InteractiveCoursewareViewer-DWnzq20c.js +0 -1
- package/dist/assets/InteractiveWhiteboard-CQ-4meYj.js +0 -102
- package/dist/assets/LessonEditorView-DixwX1Kw.js +0 -1
- package/dist/assets/LiveClassroomView-j93YOxSh.js +0 -1
- package/dist/assets/NotificationDetailModal-CQ9PIqkD.js +0 -1
- package/dist/assets/QuizGeneratorModal-BvTcmD68.js +0 -1
- package/dist/assets/StudentAssignmentView-4R0WxStx.js +0 -1
- package/dist/assets/StudentLessonView-DZ0i9-tX.js +0 -1
- package/dist/assets/StudentPreviewModal-CfsB1dPY.js +0 -1
- package/dist/assets/StudentView-D7GtUiYR.js +0 -2
- package/dist/assets/SystemResourceLibraryModal-Ilnthwpw.js +0 -1
- package/dist/assets/TeacherView-DjnjsQ_3.js +0 -2
- package/dist/assets/index-CATki2cp.css +0 -1
- package/dist/assets/index-D8x6bUeG.js +0 -150
- package/dist/assets/index-wdWIWwbg.js +0 -1
- package/dist/assets/vendor-content-V6uLfjnH.js +0 -3
- package/dist/assets/vendor-utils-4FcTwKPj.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as yr,g as tg}from"./vendor-react-0Lg0vA-4.js";function ti(v){throw new Error('Could not dynamically require "'+v+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var
|
|
1
|
+
import{c as yr,g as tg}from"./vendor-react-0Lg0vA-4.js";const se=[];for(let v=0;v<256;++v)se.push((v+256).toString(16).slice(1));function _u(v,o=0){return(se[v[o+0]]+se[v[o+1]]+se[v[o+2]]+se[v[o+3]]+"-"+se[v[o+4]]+se[v[o+5]]+"-"+se[v[o+6]]+se[v[o+7]]+"-"+se[v[o+8]]+se[v[o+9]]+"-"+se[v[o+10]]+se[v[o+11]]+se[v[o+12]]+se[v[o+13]]+se[v[o+14]]+se[v[o+15]]).toLowerCase()}const eg=new Uint8Array(16);function mu(){return crypto.getRandomValues(eg)}function rg(v,o,n){return crypto.randomUUID?crypto.randomUUID():ng(v)}function ng(v,o,n){v=v||{};const s=v.random??v.rng?.()??mu();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,_u(s)}const vs={};function xg(v,o,n){let s;{const u=Date.now(),a=mu();ig(vs,u,a),s=sg(a,vs.msecs,vs.seq,o,n)}return o??_u(s)}function ig(v,o,n){return v.msecs??=-1/0,v.seq??=0,o>v.msecs?(v.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],v.msecs=o):(v.seq=v.seq+1|0,v.seq===0&&v.msecs++),v}function sg(v,o,n,s,u=0){if(v.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),u=0;else if(u<0||u+16>s.length)throw new RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);return o??=Date.now(),n??=v[6]*127<<24|v[7]<<16|v[8]<<8|v[9],s[u++]=o/1099511627776&255,s[u++]=o/4294967296&255,s[u++]=o/16777216&255,s[u++]=o/65536&255,s[u++]=o/256&255,s[u++]=o&255,s[u++]=112|n>>>28&15,s[u++]=n>>>20&255,s[u++]=128|n>>>14&63,s[u++]=n>>>6&255,s[u++]=n<<2&255|v[10]&3,s[u++]=v[11],s[u++]=v[12],s[u++]=v[13],s[u++]=v[14],s[u++]=v[15],s}function ti(v){throw new Error('Could not dynamically require "'+v+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ys={exports:{}};/*!
|
|
2
2
|
|
|
3
3
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
4
|
<http://stuartk.com/jszip>
|
|
@@ -8,8 +8,8 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
8
8
|
|
|
9
9
|
JSZip uses the library pako released under the MIT license :
|
|
10
10
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
11
|
-
*/var nu;function
|
|
12
|
-
\0`,ht+=a(G,2),ht+=U.magic,ht+=a(A,2),ht+=a(R,2),ht+=a(bt.crc32,4),ht+=a(bt.compressedSize,4),ht+=a(bt.uncompressedSize,4),ht+=a(J.length,2),ht+=a(V.length,2),{fileRecord:k.LOCAL_FILE_HEADER+ht+J+V,dirRecord:k.CENTRAL_FILE_HEADER+a(mt,2)+ht+a(gt.length,2)+"\0\0\0\0"+a(W,4)+a(x,4)+J+V+gt}}var c=n("../utils"),g=n("../stream/GenericWorker"),S=n("../utf8"),C=n("../crc32"),k=n("../signature");function I(w,P,_,x){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=P,this.zipPlatform=_,this.encodeFileName=x,this.streamFiles=w,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c.inherits(I,g),I.prototype.push=function(w){var P=w.meta.percent||0,_=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(w):(this.bytesWritten+=w.data.length,g.prototype.push.call(this,{data:w.data,meta:{currentFile:this.currentFile,percent:_?(P+100*(_-x-1))/_:100}}))},I.prototype.openedSource=function(w){this.currentSourceOffset=this.bytesWritten,this.currentFile=w.file.name;var P=this.streamFiles&&!w.file.dir;if(P){var _=l(w,P,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},I.prototype.closedSource=function(w){this.accumulate=!1;var P=this.streamFiles&&!w.file.dir,_=l(w,P,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(_.dirRecord),P)this.push({data:(function(x){return k.DATA_DESCRIPTOR+a(x.crc32,4)+a(x.compressedSize,4)+a(x.uncompressedSize,4)})(w),meta:{percent:100}});else for(this.push({data:_.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},I.prototype.flush=function(){for(var w=this.bytesWritten,P=0;P<this.dirRecords.length;P++)this.push({data:this.dirRecords[P],meta:{percent:100}});var _=this.bytesWritten-w,x=(function(d,m,A,R,T){var U=c.transformTo("string",T(R));return k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(d,2)+a(d,2)+a(m,4)+a(A,4)+a(U.length,2)+U})(this.dirRecords.length,_,w,this.zipComment,this.encodeFileName);this.push({data:x,meta:{percent:100}})},I.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},I.prototype.registerPrevious=function(w){this._sources.push(w);var P=this;return w.on("data",function(_){P.processChunk(_)}),w.on("end",function(){P.closedSource(P.previous.streamInfo),P._sources.length?P.prepareNextSource():P.end()}),w.on("error",function(_){P.error(_)}),this},I.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},I.prototype.error=function(w){var P=this._sources;if(!g.prototype.error.call(this,w))return!1;for(var _=0;_<P.length;_++)try{P[_].error(w)}catch{}return!0},I.prototype.lock=function(){g.prototype.lock.call(this);for(var w=this._sources,P=0;P<w.length;P++)w[P].lock()},s.exports=I},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,s,u){var a=n("../compressions"),l=n("./ZipFileWorker");u.generateWorker=function(c,g,S){var C=new l(g.streamFiles,S,g.platform,g.encodeFileName),k=0;try{c.forEach(function(I,w){k++;var P=(function(m,A){var R=m||A,T=a[R];if(!T)throw new Error(R+" is not a valid compression method !");return T})(w.options.compression,g.compression),_=w.options.compressionOptions||g.compressionOptions||{},x=w.dir,d=w.date;w._compressWorker(P,_).withStreamInfo("file",{name:I,dir:x,date:d,comment:w.comment||"",unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions}).pipe(C)}),C.entriesCount=k}catch(I){C.error(I)}return C}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,s,u){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new a;for(var c in this)typeof this[c]!="function"&&(l[c]=this[c]);return l}}(a.prototype=n("./object")).loadAsync=n("./load"),a.support=n("./support"),a.defaults=n("./defaults"),a.version="3.10.1",a.loadAsync=function(l,c){return new a().loadAsync(l,c)},a.external=n("./external"),s.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,s,u){var a=n("./utils"),l=n("./external"),c=n("./utf8"),g=n("./zipEntries"),S=n("./stream/Crc32Probe"),C=n("./nodejsUtils");function k(I){return new l.Promise(function(w,P){var _=I.decompressed.getContentWorker().pipe(new S);_.on("error",function(x){P(x)}).on("end",function(){_.streamInfo.crc32!==I.decompressed.crc32?P(new Error("Corrupted zip : CRC32 mismatch")):w()}).resume()})}s.exports=function(I,w){var P=this;return w=a.extend(w||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:c.utf8decode}),C.isNode&&C.isStream(I)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",I,!0,w.optimizedBinaryString,w.base64).then(function(_){var x=new g(w);return x.load(_),x}).then(function(_){var x=[l.Promise.resolve(_)],d=_.files;if(w.checkCRC32)for(var m=0;m<d.length;m++)x.push(k(d[m]));return l.Promise.all(x)}).then(function(_){for(var x=_.shift(),d=x.files,m=0;m<d.length;m++){var A=d[m],R=A.fileNameStr,T=a.resolve(A.fileNameStr);P.file(T,A.decompressed,{binary:!0,optimizedBinaryString:!0,date:A.date,dir:A.dir,comment:A.fileCommentStr.length?A.fileCommentStr:null,unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions,createFolders:w.createFolders}),A.dir||(P.file(T).unsafeOriginalName=R)}return x.zipComment.length&&(P.comment=x.zipComment),P})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,s,u){var a=n("../utils"),l=n("../stream/GenericWorker");function c(g,S){l.call(this,"Nodejs stream input adapter for "+g),this._upstreamEnded=!1,this._bindStream(S)}a.inherits(c,l),c.prototype._bindStream=function(g){var S=this;(this._stream=g).pause(),g.on("data",function(C){S.push({data:C,meta:{percent:0}})}).on("error",function(C){S.isPaused?this.generatedError=C:S.error(C)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},c.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},c.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=c},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,s,u){var a=n("readable-stream").Readable;function l(c,g,S){a.call(this,g),this._helper=c;var C=this;c.on("data",function(k,I){C.push(k)||C._helper.pause(),S&&S(I)}).on("error",function(k){C.emit("error",k)}).on("end",function(){C.push(null)})}n("../utils").inherits(l,a),l.prototype._read=function(){this._helper.resume()},s.exports=l},{"../utils":32,"readable-stream":16}],14:[function(n,s,u){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,l);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,l)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var l=new Buffer(a);return l.fill(0),l},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(n,s,u){function a(T,U,Z){var J,H=c.getTypeOf(U),ot=c.extend(Z||{},C);ot.date=ot.date||new Date,ot.compression!==null&&(ot.compression=ot.compression.toUpperCase()),typeof ot.unixPermissions=="string"&&(ot.unixPermissions=parseInt(ot.unixPermissions,8)),ot.unixPermissions&&16384&ot.unixPermissions&&(ot.dir=!0),ot.dosPermissions&&16&ot.dosPermissions&&(ot.dir=!0),ot.dir&&(T=d(T)),ot.createFolders&&(J=x(T))&&m.call(this,J,!0);var gt=H==="string"&&ot.binary===!1&&ot.base64===!1;Z&&Z.binary!==void 0||(ot.binary=!gt),(U instanceof k&&U.uncompressedSize===0||ot.dir||!U||U.length===0)&&(ot.base64=!1,ot.binary=!0,U="",ot.compression="STORE",H="string");var B=null;B=U instanceof k||U instanceof g?U:P.isNode&&P.isStream(U)?new _(T,U):c.prepareContent(T,U,ot.binary,ot.optimizedBinaryString,ot.base64);var $=new I(T,B,ot);this.files[T]=$}var l=n("./utf8"),c=n("./utils"),g=n("./stream/GenericWorker"),S=n("./stream/StreamHelper"),C=n("./defaults"),k=n("./compressedObject"),I=n("./zipObject"),w=n("./generate"),P=n("./nodejsUtils"),_=n("./nodejs/NodejsStreamInputAdapter"),x=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var U=T.lastIndexOf("/");return 0<U?T.substring(0,U):""},d=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},m=function(T,U){return U=U!==void 0?U:C.createFolders,T=d(T),this.files[T]||a.call(this,T,null,{dir:!0,createFolders:U}),this.files[T]};function A(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var R={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var U,Z,J;for(U in this.files)J=this.files[U],(Z=U.slice(this.root.length,U.length))&&U.slice(0,this.root.length)===this.root&&T(Z,J)},filter:function(T){var U=[];return this.forEach(function(Z,J){T(Z,J)&&U.push(J)}),U},file:function(T,U,Z){if(arguments.length!==1)return T=this.root+T,a.call(this,T,U,Z),this;if(A(T)){var J=T;return this.filter(function(ot,gt){return!gt.dir&&J.test(ot)})}var H=this.files[this.root+T];return H&&!H.dir?H:null},folder:function(T){if(!T)return this;if(A(T))return this.filter(function(H,ot){return ot.dir&&T.test(H)});var U=this.root+T,Z=m.call(this,U),J=this.clone();return J.root=Z.name,J},remove:function(T){T=this.root+T;var U=this.files[T];if(U||(T.slice(-1)!=="/"&&(T+="/"),U=this.files[T]),U&&!U.dir)delete this.files[T];else for(var Z=this.filter(function(H,ot){return ot.name.slice(0,T.length)===T}),J=0;J<Z.length;J++)delete this.files[Z[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var U,Z={};try{if((Z=c.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=Z.type.toLowerCase(),Z.compression=Z.compression.toUpperCase(),Z.type==="binarystring"&&(Z.type="string"),!Z.type)throw new Error("No output type specified.");c.checkSupport(Z.type),Z.platform!=="darwin"&&Z.platform!=="freebsd"&&Z.platform!=="linux"&&Z.platform!=="sunos"||(Z.platform="UNIX"),Z.platform==="win32"&&(Z.platform="DOS");var J=Z.comment||this.comment||"";U=w.generateWorker(this,Z,J)}catch(H){(U=new g("error")).error(H)}return new S(U,Z.type||"string",Z.mimeType)},generateAsync:function(T,U){return this.generateInternalStream(T).accumulate(U)},generateNodeStream:function(T,U){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(U)}};s.exports=R},{"./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(n,s,u){s.exports=n("stream")},{stream:void 0}],17:[function(n,s,u){var a=n("./DataReader");function l(c){a.call(this,c);for(var g=0;g<this.data.length;g++)c[g]=255&c[g]}n("../utils").inherits(l,a),l.prototype.byteAt=function(c){return this.data[this.zero+c]},l.prototype.lastIndexOfSignature=function(c){for(var g=c.charCodeAt(0),S=c.charCodeAt(1),C=c.charCodeAt(2),k=c.charCodeAt(3),I=this.length-4;0<=I;--I)if(this.data[I]===g&&this.data[I+1]===S&&this.data[I+2]===C&&this.data[I+3]===k)return I-this.zero;return-1},l.prototype.readAndCheckSignature=function(c){var g=c.charCodeAt(0),S=c.charCodeAt(1),C=c.charCodeAt(2),k=c.charCodeAt(3),I=this.readData(4);return g===I[0]&&S===I[1]&&C===I[2]&&k===I[3]},l.prototype.readData=function(c){if(this.checkOffset(c),c===0)return[];var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./DataReader":18}],18:[function(n,s,u){var a=n("../utils");function l(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length<this.zero+c||c<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+c+"). Corrupted zip ?")},setIndex:function(c){this.checkIndex(c),this.index=c},skip:function(c){this.setIndex(this.index+c)},byteAt:function(){},readInt:function(c){var g,S=0;for(this.checkOffset(c),g=this.index+c-1;g>=this.index;g--)S=(S<<8)+this.byteAt(g);return this.index+=c,S},readString:function(c){return a.transformTo("string",this.readData(c))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC(1980+(c>>25&127),(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(31&c)<<1))}},s.exports=l},{"../utils":32}],19:[function(n,s,u){var a=n("./Uint8ArrayReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.readData=function(c){this.checkOffset(c);var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,s,u){var a=n("./DataReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.byteAt=function(c){return this.data.charCodeAt(this.zero+c)},l.prototype.lastIndexOfSignature=function(c){return this.data.lastIndexOf(c)-this.zero},l.prototype.readAndCheckSignature=function(c){return c===this.readData(4)},l.prototype.readData=function(c){this.checkOffset(c);var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./DataReader":18}],21:[function(n,s,u){var a=n("./ArrayReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(n,s,u){var a=n("../utils"),l=n("../support"),c=n("./ArrayReader"),g=n("./StringReader"),S=n("./NodeBufferReader"),C=n("./Uint8ArrayReader");s.exports=function(k){var I=a.getTypeOf(k);return a.checkSupport(I),I!=="string"||l.uint8array?I==="nodebuffer"?new S(k):l.uint8array?new C(a.transformTo("uint8array",k)):new c(a.transformTo("array",k)):new g(k)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,s,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,s,u){var a=n("./GenericWorker"),l=n("../utils");function c(g){a.call(this,"ConvertWorker to "+g),this.destType=g}l.inherits(c,a),c.prototype.processChunk=function(g){this.push({data:l.transformTo(this.destType,g.data),meta:g.meta})},s.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(n,s,u){var a=n("./GenericWorker"),l=n("../crc32");function c(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(c,a),c.prototype.processChunk=function(g){this.streamInfo.crc32=l(g.data,this.streamInfo.crc32||0),this.push(g)},s.exports=c},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,s,u){var a=n("../utils"),l=n("./GenericWorker");function c(g){l.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}a.inherits(c,l),c.prototype.processChunk=function(g){if(g){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+g.data.length}l.prototype.processChunk.call(this,g)},s.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(n,s,u){var a=n("../utils"),l=n("./GenericWorker");function c(g){l.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then(function(C){S.dataIsReady=!0,S.data=C,S.max=C&&C.length||0,S.type=a.getTypeOf(C),S.isPaused||S._tickAndRepeat()},function(C){S.error(C)})}a.inherits(c,l),c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},c.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},c.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},c.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,S);break;case"uint8array":g=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":g=this.data.slice(this.index,S)}return this.index=S,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=c},{"../utils":32,"./GenericWorker":28}],28:[function(n,s,u){function a(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,c){return this._listeners[l].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,c){if(this._listeners[l])for(var g=0;g<this._listeners[l].length;g++)this._listeners[l][g].call(this,c)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var c=this;return l.on("data",function(g){c.processChunk(g)}),l.on("end",function(){c.end()}),l.on("error",function(g){c.error(g)}),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 l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,c){return this.extraStreamInfo[l]=c,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},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 l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},s.exports=a},{}],29:[function(n,s,u){var a=n("../utils"),l=n("./ConvertWorker"),c=n("./GenericWorker"),g=n("../base64"),S=n("../support"),C=n("../external"),k=null;if(S.nodestream)try{k=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(P,_){return new C.Promise(function(x,d){var m=[],A=P._internalType,R=P._outputType,T=P._mimeType;P.on("data",function(U,Z){m.push(U),_&&_(Z)}).on("error",function(U){m=[],d(U)}).on("end",function(){try{var U=(function(Z,J,H){switch(Z){case"blob":return a.newBlob(a.transformTo("arraybuffer",J),H);case"base64":return g.encode(J);default:return a.transformTo(Z,J)}})(R,(function(Z,J){var H,ot=0,gt=null,B=0;for(H=0;H<J.length;H++)B+=J[H].length;switch(Z){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(gt=new Uint8Array(B),H=0;H<J.length;H++)gt.set(J[H],ot),ot+=J[H].length;return gt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+Z+"'")}})(A,m),T);x(U)}catch(Z){d(Z)}m=[]}).resume()})}function w(P,_,x){var d=_;switch(_){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=_,this._mimeType=x,a.checkSupport(d),this._worker=P.pipe(new l(d)),P.lock()}catch(m){this._worker=new c("error"),this._worker.error(m)}}w.prototype={accumulate:function(P){return I(this,P)},on:function(P,_){var x=this;return P==="data"?this._worker.on(P,function(d){_.call(x,d.data,d.meta)}):this._worker.on(P,function(){a.delay(_,arguments,x)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(P){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new k(this,{objectMode:this._outputType!=="nodebuffer"},P)}},s.exports=w},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,s,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u.nodebuffer=typeof Buffer<"u",u.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")u.blob=!1;else{var a=new ArrayBuffer(0);try{u.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(a),u.blob=l.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!n("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(n,s,u){for(var a=n("./utils"),l=n("./support"),c=n("./nodejsUtils"),g=n("./stream/GenericWorker"),S=new Array(256),C=0;C<256;C++)S[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;S[254]=S[254]=1;function k(){g.call(this,"utf-8 decode"),this.leftOver=null}function I(){g.call(this,"utf-8 encode")}u.utf8encode=function(w){return l.nodebuffer?c.newBufferFrom(w,"utf-8"):(function(P){var _,x,d,m,A,R=P.length,T=0;for(m=0;m<R;m++)(64512&(x=P.charCodeAt(m)))==55296&&m+1<R&&(64512&(d=P.charCodeAt(m+1)))==56320&&(x=65536+(x-55296<<10)+(d-56320),m++),T+=x<128?1:x<2048?2:x<65536?3:4;for(_=l.uint8array?new Uint8Array(T):new Array(T),m=A=0;A<T;m++)(64512&(x=P.charCodeAt(m)))==55296&&m+1<R&&(64512&(d=P.charCodeAt(m+1)))==56320&&(x=65536+(x-55296<<10)+(d-56320),m++),x<128?_[A++]=x:(x<2048?_[A++]=192|x>>>6:(x<65536?_[A++]=224|x>>>12:(_[A++]=240|x>>>18,_[A++]=128|x>>>12&63),_[A++]=128|x>>>6&63),_[A++]=128|63&x);return _})(w)},u.utf8decode=function(w){return l.nodebuffer?a.transformTo("nodebuffer",w).toString("utf-8"):(function(P){var _,x,d,m,A=P.length,R=new Array(2*A);for(_=x=0;_<A;)if((d=P[_++])<128)R[x++]=d;else if(4<(m=S[d]))R[x++]=65533,_+=m-1;else{for(d&=m===2?31:m===3?15:7;1<m&&_<A;)d=d<<6|63&P[_++],m--;1<m?R[x++]=65533:d<65536?R[x++]=d:(d-=65536,R[x++]=55296|d>>10&1023,R[x++]=56320|1023&d)}return R.length!==x&&(R.subarray?R=R.subarray(0,x):R.length=x),a.applyFromCharCode(R)})(w=a.transformTo(l.uint8array?"uint8array":"array",w))},a.inherits(k,g),k.prototype.processChunk=function(w){var P=a.transformTo(l.uint8array?"uint8array":"array",w.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var _=P;(P=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),P.set(_,this.leftOver.length)}else P=this.leftOver.concat(P);this.leftOver=null}var x=(function(m,A){var R;for((A=A||m.length)>m.length&&(A=m.length),R=A-1;0<=R&&(192&m[R])==128;)R--;return R<0||R===0?A:R+S[m[R]]>A?R:A})(P),d=P;x!==P.length&&(l.uint8array?(d=P.subarray(0,x),this.leftOver=P.subarray(x,P.length)):(d=P.slice(0,x),this.leftOver=P.slice(x,P.length))),this.push({data:u.utf8decode(d),meta:w.meta})},k.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=k,a.inherits(I,g),I.prototype.processChunk=function(w){this.push({data:u.utf8encode(w.data),meta:w.meta})},u.Utf8EncodeWorker=I},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,s,u){var a=n("./support"),l=n("./base64"),c=n("./nodejsUtils"),g=n("./external");function S(_){return _}function C(_,x){for(var d=0;d<_.length;++d)x[d]=255&_.charCodeAt(d);return x}n("setimmediate"),u.newBlob=function(_,x){u.checkSupport("blob");try{return new Blob([_],{type:x})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(_),d.getBlob(x)}catch{throw new Error("Bug : can't construct the Blob.")}}};var k={stringifyByChunk:function(_,x,d){var m=[],A=0,R=_.length;if(R<=d)return String.fromCharCode.apply(null,_);for(;A<R;)x==="array"||x==="nodebuffer"?m.push(String.fromCharCode.apply(null,_.slice(A,Math.min(A+d,R)))):m.push(String.fromCharCode.apply(null,_.subarray(A,Math.min(A+d,R)))),A+=d;return m.join("")},stringifyByChar:function(_){for(var x="",d=0;d<_.length;d++)x+=String.fromCharCode(_[d]);return x},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,c.allocBuffer(1)).length===1}catch{return!1}})()}};function I(_){var x=65536,d=u.getTypeOf(_),m=!0;if(d==="uint8array"?m=k.applyCanBeUsed.uint8array:d==="nodebuffer"&&(m=k.applyCanBeUsed.nodebuffer),m)for(;1<x;)try{return k.stringifyByChunk(_,d,x)}catch{x=Math.floor(x/2)}return k.stringifyByChar(_)}function w(_,x){for(var d=0;d<_.length;d++)x[d]=_[d];return x}u.applyFromCharCode=I;var P={};P.string={string:S,array:function(_){return C(_,new Array(_.length))},arraybuffer:function(_){return P.string.uint8array(_).buffer},uint8array:function(_){return C(_,new Uint8Array(_.length))},nodebuffer:function(_){return C(_,c.allocBuffer(_.length))}},P.array={string:I,array:S,arraybuffer:function(_){return new Uint8Array(_).buffer},uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return c.newBufferFrom(_)}},P.arraybuffer={string:function(_){return I(new Uint8Array(_))},array:function(_){return w(new Uint8Array(_),new Array(_.byteLength))},arraybuffer:S,uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return c.newBufferFrom(new Uint8Array(_))}},P.uint8array={string:I,array:function(_){return w(_,new Array(_.length))},arraybuffer:function(_){return _.buffer},uint8array:S,nodebuffer:function(_){return c.newBufferFrom(_)}},P.nodebuffer={string:I,array:function(_){return w(_,new Array(_.length))},arraybuffer:function(_){return P.nodebuffer.uint8array(_).buffer},uint8array:function(_){return w(_,new Uint8Array(_.length))},nodebuffer:S},u.transformTo=function(_,x){if(x=x||"",!_)return x;u.checkSupport(_);var d=u.getTypeOf(x);return P[d][_](x)},u.resolve=function(_){for(var x=_.split("/"),d=[],m=0;m<x.length;m++){var A=x[m];A==="."||A===""&&m!==0&&m!==x.length-1||(A===".."?d.pop():d.push(A))}return d.join("/")},u.getTypeOf=function(_){return typeof _=="string"?"string":Object.prototype.toString.call(_)==="[object Array]"?"array":a.nodebuffer&&c.isBuffer(_)?"nodebuffer":a.uint8array&&_ instanceof Uint8Array?"uint8array":a.arraybuffer&&_ instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(_){if(!a[_.toLowerCase()])throw new Error(_+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(_){var x,d,m="";for(d=0;d<(_||"").length;d++)m+="\\x"+((x=_.charCodeAt(d))<16?"0":"")+x.toString(16).toUpperCase();return m},u.delay=function(_,x,d){setImmediate(function(){_.apply(d||null,x||[])})},u.inherits=function(_,x){function d(){}d.prototype=x.prototype,_.prototype=new d},u.extend=function(){var _,x,d={};for(_=0;_<arguments.length;_++)for(x in arguments[_])Object.prototype.hasOwnProperty.call(arguments[_],x)&&d[x]===void 0&&(d[x]=arguments[_][x]);return d},u.prepareContent=function(_,x,d,m,A){return g.Promise.resolve(x).then(function(R){return a.blob&&(R instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(R))!==-1)&&typeof FileReader<"u"?new g.Promise(function(T,U){var Z=new FileReader;Z.onload=function(J){T(J.target.result)},Z.onerror=function(J){U(J.target.error)},Z.readAsArrayBuffer(R)}):R}).then(function(R){var T=u.getTypeOf(R);return T?(T==="arraybuffer"?R=u.transformTo("uint8array",R):T==="string"&&(A?R=l.decode(R):d&&m!==!0&&(R=(function(U){return C(U,a.uint8array?new Uint8Array(U.length):new Array(U.length))})(R))),R):g.Promise.reject(new Error("Can't read the data of '"+_+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,s,u){var a=n("./reader/readerFor"),l=n("./utils"),c=n("./signature"),g=n("./zipEntry"),S=n("./support");function C(k){this.files=[],this.loadOptions=k}C.prototype={checkSignature:function(k){if(!this.reader.readAndCheckSignature(k)){this.reader.index-=4;var I=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(I)+", expected "+l.pretty(k)+")")}},isSignature:function(k,I){var w=this.reader.index;this.reader.setIndex(k);var P=this.reader.readString(4)===I;return this.reader.setIndex(w),P},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 k=this.reader.readData(this.zipCommentLength),I=S.uint8array?"uint8array":"array",w=l.transformTo(I,k);this.zipComment=this.loadOptions.decodeFileName(w)},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 k,I,w,P=this.zip64EndOfCentralSize-44;0<P;)k=this.reader.readInt(2),I=this.reader.readInt(4),w=this.reader.readData(I),this.zip64ExtensibleData[k]={id:k,length:I,value:w}},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 k,I;for(k=0;k<this.files.length;k++)I=this.files[k],this.reader.setIndex(I.localHeaderOffset),this.checkSignature(c.LOCAL_FILE_HEADER),I.readLocalPart(this.reader),I.handleUTF8(),I.processAttributes()},readCentralDir:function(){var k;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(c.CENTRAL_FILE_HEADER);)(k=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(k);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var k=this.reader.lastIndexOfSignature(c.CENTRAL_DIRECTORY_END);if(k<0)throw this.isSignature(0,c.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(k);var I=k;if(this.checkSignature(c.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(k=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(k),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,c.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(c.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(c.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var P=I-w;if(0<P)this.isSignature(I,c.CENTRAL_FILE_HEADER)||(this.reader.zero=P);else if(P<0)throw new Error("Corrupted zip: missing "+Math.abs(P)+" bytes.")},prepareReader:function(k){this.reader=a(k)},load:function(k){this.prepareReader(k),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=C},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,s,u){var a=n("./reader/readerFor"),l=n("./utils"),c=n("./compressedObject"),g=n("./crc32"),S=n("./utf8"),C=n("./compressions"),k=n("./support");function I(w,P){this.options=w,this.loadOptions=P}I.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(w){var P,_;if(w.skip(22),this.fileNameLength=w.readInt(2),_=w.readInt(2),this.fileName=w.readData(this.fileNameLength),w.skip(_),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((P=(function(x){for(var d in C)if(Object.prototype.hasOwnProperty.call(C,d)&&C[d].magic===x)return C[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,P,w.readData(this.compressedSize))},readCentralPart:function(w){this.versionMadeBy=w.readInt(2),w.skip(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4);var P=w.readInt(2);if(this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");w.skip(P),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),w==0&&(this.dosPermissions=63&this.externalFileAttributes),w==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=a(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var P,_,x,d=w.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});w.index+4<d;)P=w.readInt(2),_=w.readInt(2),x=w.readData(_),this.extraFields[P]={id:P,length:_,value:x};w.setIndex(d)},handleUTF8:function(){var w=k.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var P=this.findExtraFieldUnicodePath();if(P!==null)this.fileNameStr=P;else{var _=l.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(_)}var x=this.findExtraFieldUnicodeComment();if(x!==null)this.fileCommentStr=x;else{var d=l.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var P=a(w.value);return P.readInt(1)!==1||g(this.fileName)!==P.readInt(4)?null:S.utf8decode(P.readData(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var P=a(w.value);return P.readInt(1)!==1||g(this.fileComment)!==P.readInt(4)?null:S.utf8decode(P.readData(w.length-5))}return null}},s.exports=I},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,s,u){function a(P,_,x){this.name=P,this.dir=x.dir,this.date=x.date,this.comment=x.comment,this.unixPermissions=x.unixPermissions,this.dosPermissions=x.dosPermissions,this._data=_,this._dataBinary=x.binary,this.options={compression:x.compression,compressionOptions:x.compressionOptions}}var l=n("./stream/StreamHelper"),c=n("./stream/DataWorker"),g=n("./utf8"),S=n("./compressedObject"),C=n("./stream/GenericWorker");a.prototype={internalStream:function(P){var _=null,x="string";try{if(!P)throw new Error("No output type specified.");var d=(x=P.toLowerCase())==="string"||x==="text";x!=="binarystring"&&x!=="text"||(x="string"),_=this._decompressWorker();var m=!this._dataBinary;m&&!d&&(_=_.pipe(new g.Utf8EncodeWorker)),!m&&d&&(_=_.pipe(new g.Utf8DecodeWorker))}catch(A){(_=new C("error")).error(A)}return new l(_,x,"")},async:function(P,_){return this.internalStream(P).accumulate(_)},nodeStream:function(P,_){return this.internalStream(P||"nodebuffer").toNodejsStream(_)},_compressWorker:function(P,_){if(this._data instanceof S&&this._data.compression.magic===P.magic)return this._data.getCompressedWorker();var x=this._decompressWorker();return this._dataBinary||(x=x.pipe(new g.Utf8EncodeWorker)),S.createWorkerFrom(x,P,_)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof C?this._data:new c(this._data)}};for(var k=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],I=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},w=0;w<k.length;w++)a.prototype[k[w]]=I;s.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,s,u){(function(a){var l,c,g=a.MutationObserver||a.WebKitMutationObserver;if(g){var S=0,C=new g(P),k=a.document.createTextNode("");C.observe(k,{characterData:!0}),l=function(){k.data=S=++S%2}}else if(a.setImmediate||a.MessageChannel===void 0)l="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var _=a.document.createElement("script");_.onreadystatechange=function(){P(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},a.document.documentElement.appendChild(_)}:function(){setTimeout(P,0)};else{var I=new a.MessageChannel;I.port1.onmessage=P,l=function(){I.port2.postMessage(0)}}var w=[];function P(){var _,x;c=!0;for(var d=w.length;d;){for(x=w,w=[],_=-1;++_<d;)x[_]();d=w.length}c=!1}s.exports=function(_){w.push(_)!==1||c||l()}}).call(this,typeof yr<"u"?yr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,s,u){var a=n("immediate");function l(){}var c={},g=["REJECTED"],S=["FULFILLED"],C=["PENDING"];function k(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=C,this.queue=[],this.outcome=void 0,d!==l&&_(this,d)}function I(d,m,A){this.promise=d,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}function w(d,m,A){a(function(){var R;try{R=m(A)}catch(T){return c.reject(d,T)}R===d?c.reject(d,new TypeError("Cannot resolve promise with itself")):c.resolve(d,R)})}function P(d){var m=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof m=="function")return function(){m.apply(d,arguments)}}function _(d,m){var A=!1;function R(Z){A||(A=!0,c.reject(d,Z))}function T(Z){A||(A=!0,c.resolve(d,Z))}var U=x(function(){m(T,R)});U.status==="error"&&R(U.value)}function x(d,m){var A={};try{A.value=d(m),A.status="success"}catch(R){A.status="error",A.value=R}return A}(s.exports=k).prototype.finally=function(d){if(typeof d!="function")return this;var m=this.constructor;return this.then(function(A){return m.resolve(d()).then(function(){return A})},function(A){return m.resolve(d()).then(function(){throw A})})},k.prototype.catch=function(d){return this.then(null,d)},k.prototype.then=function(d,m){if(typeof d!="function"&&this.state===S||typeof m!="function"&&this.state===g)return this;var A=new this.constructor(l);return this.state!==C?w(A,this.state===S?d:m,this.outcome):this.queue.push(new I(A,d,m)),A},I.prototype.callFulfilled=function(d){c.resolve(this.promise,d)},I.prototype.otherCallFulfilled=function(d){w(this.promise,this.onFulfilled,d)},I.prototype.callRejected=function(d){c.reject(this.promise,d)},I.prototype.otherCallRejected=function(d){w(this.promise,this.onRejected,d)},c.resolve=function(d,m){var A=x(P,m);if(A.status==="error")return c.reject(d,A.value);var R=A.value;if(R)_(d,R);else{d.state=S,d.outcome=m;for(var T=-1,U=d.queue.length;++T<U;)d.queue[T].callFulfilled(m)}return d},c.reject=function(d,m){d.state=g,d.outcome=m;for(var A=-1,R=d.queue.length;++A<R;)d.queue[A].callRejected(m);return d},k.resolve=function(d){return d instanceof this?d:c.resolve(new this(l),d)},k.reject=function(d){var m=new this(l);return c.reject(m,d)},k.all=function(d){var m=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=d.length,R=!1;if(!A)return this.resolve([]);for(var T=new Array(A),U=0,Z=-1,J=new this(l);++Z<A;)H(d[Z],Z);return J;function H(ot,gt){m.resolve(ot).then(function(B){T[gt]=B,++U!==A||R||(R=!0,c.resolve(J,T))},function(B){R||(R=!0,c.reject(J,B))})}},k.race=function(d){var m=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=d.length,R=!1;if(!A)return this.resolve([]);for(var T=-1,U=new this(l);++T<A;)Z=d[T],m.resolve(Z).then(function(J){R||(R=!0,c.resolve(U,J))},function(J){R||(R=!0,c.reject(U,J))});var Z;return U}},{immediate:36}],38:[function(n,s,u){var a={};(0,n("./lib/utils/common").assign)(a,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),s.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,s,u){var a=n("./zlib/deflate"),l=n("./utils/common"),c=n("./utils/strings"),g=n("./zlib/messages"),S=n("./zlib/zstream"),C=Object.prototype.toString,k=0,I=-1,w=0,P=8;function _(d){if(!(this instanceof _))return new _(d);this.options=l.assign({level:I,method:P,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},d||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var A=a.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(A!==k)throw new Error(g[A]);if(m.header&&a.deflateSetHeader(this.strm,m.header),m.dictionary){var R;if(R=typeof m.dictionary=="string"?c.string2buf(m.dictionary):C.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(A=a.deflateSetDictionary(this.strm,R))!==k)throw new Error(g[A]);this._dict_set=!0}}function x(d,m){var A=new _(m);if(A.push(d,!0),A.err)throw A.msg||g[A.err];return A.result}_.prototype.push=function(d,m){var A,R,T=this.strm,U=this.options.chunkSize;if(this.ended)return!1;R=m===~~m?m:m===!0?4:0,typeof d=="string"?T.input=c.string2buf(d):C.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new l.Buf8(U),T.next_out=0,T.avail_out=U),(A=a.deflate(T,R))!==1&&A!==k)return this.onEnd(A),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||R!==4&&R!==2)||(this.options.to==="string"?this.onData(c.buf2binstring(l.shrinkBuf(T.output,T.next_out))):this.onData(l.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&A!==1);return R===4?(A=a.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===k):R!==2||(this.onEnd(k),!(T.avail_out=0))},_.prototype.onData=function(d){this.chunks.push(d)},_.prototype.onEnd=function(d){d===k&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},u.Deflate=_,u.deflate=x,u.deflateRaw=function(d,m){return(m=m||{}).raw=!0,x(d,m)},u.gzip=function(d,m){return(m=m||{}).gzip=!0,x(d,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,s,u){var a=n("./zlib/inflate"),l=n("./utils/common"),c=n("./utils/strings"),g=n("./zlib/constants"),S=n("./zlib/messages"),C=n("./zlib/zstream"),k=n("./zlib/gzheader"),I=Object.prototype.toString;function w(_){if(!(this instanceof w))return new w(_);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},_||{});var x=this.options;x.raw&&0<=x.windowBits&&x.windowBits<16&&(x.windowBits=-x.windowBits,x.windowBits===0&&(x.windowBits=-15)),!(0<=x.windowBits&&x.windowBits<16)||_&&_.windowBits||(x.windowBits+=32),15<x.windowBits&&x.windowBits<48&&(15&x.windowBits)==0&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var d=a.inflateInit2(this.strm,x.windowBits);if(d!==g.Z_OK)throw new Error(S[d]);this.header=new k,a.inflateGetHeader(this.strm,this.header)}function P(_,x){var d=new w(x);if(d.push(_,!0),d.err)throw d.msg||S[d.err];return d.result}w.prototype.push=function(_,x){var d,m,A,R,T,U,Z=this.strm,J=this.options.chunkSize,H=this.options.dictionary,ot=!1;if(this.ended)return!1;m=x===~~x?x:x===!0?g.Z_FINISH:g.Z_NO_FLUSH,typeof _=="string"?Z.input=c.binstring2buf(_):I.call(_)==="[object ArrayBuffer]"?Z.input=new Uint8Array(_):Z.input=_,Z.next_in=0,Z.avail_in=Z.input.length;do{if(Z.avail_out===0&&(Z.output=new l.Buf8(J),Z.next_out=0,Z.avail_out=J),(d=a.inflate(Z,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&H&&(U=typeof H=="string"?c.string2buf(H):I.call(H)==="[object ArrayBuffer]"?new Uint8Array(H):H,d=a.inflateSetDictionary(this.strm,U)),d===g.Z_BUF_ERROR&&ot===!0&&(d=g.Z_OK,ot=!1),d!==g.Z_STREAM_END&&d!==g.Z_OK)return this.onEnd(d),!(this.ended=!0);Z.next_out&&(Z.avail_out!==0&&d!==g.Z_STREAM_END&&(Z.avail_in!==0||m!==g.Z_FINISH&&m!==g.Z_SYNC_FLUSH)||(this.options.to==="string"?(A=c.utf8border(Z.output,Z.next_out),R=Z.next_out-A,T=c.buf2string(Z.output,A),Z.next_out=R,Z.avail_out=J-R,R&&l.arraySet(Z.output,Z.output,A,R,0),this.onData(T)):this.onData(l.shrinkBuf(Z.output,Z.next_out)))),Z.avail_in===0&&Z.avail_out===0&&(ot=!0)}while((0<Z.avail_in||Z.avail_out===0)&&d!==g.Z_STREAM_END);return d===g.Z_STREAM_END&&(m=g.Z_FINISH),m===g.Z_FINISH?(d=a.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===g.Z_OK):m!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),!(Z.avail_out=0))},w.prototype.onData=function(_){this.chunks.push(_)},w.prototype.onEnd=function(_){_===g.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},u.Inflate=w,u.inflate=P,u.inflateRaw=function(_,x){return(x=x||{}).raw=!0,P(_,x)},u.ungzip=P},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,s,u){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";u.assign=function(g){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var C=S.shift();if(C){if(typeof C!="object")throw new TypeError(C+"must be non-object");for(var k in C)C.hasOwnProperty(k)&&(g[k]=C[k])}}return g},u.shrinkBuf=function(g,S){return g.length===S?g:g.subarray?g.subarray(0,S):(g.length=S,g)};var l={arraySet:function(g,S,C,k,I){if(S.subarray&&g.subarray)g.set(S.subarray(C,C+k),I);else for(var w=0;w<k;w++)g[I+w]=S[C+w]},flattenChunks:function(g){var S,C,k,I,w,P;for(S=k=0,C=g.length;S<C;S++)k+=g[S].length;for(P=new Uint8Array(k),S=I=0,C=g.length;S<C;S++)w=g[S],P.set(w,I),I+=w.length;return P}},c={arraySet:function(g,S,C,k,I){for(var w=0;w<k;w++)g[I+w]=S[C+w]},flattenChunks:function(g){return[].concat.apply([],g)}};u.setTyped=function(g){g?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,l)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,c))},u.setTyped(a)},{}],42:[function(n,s,u){var a=n("./common"),l=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c=!1}for(var g=new a.Buf8(256),S=0;S<256;S++)g[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function C(k,I){if(I<65537&&(k.subarray&&c||!k.subarray&&l))return String.fromCharCode.apply(null,a.shrinkBuf(k,I));for(var w="",P=0;P<I;P++)w+=String.fromCharCode(k[P]);return w}g[254]=g[254]=1,u.string2buf=function(k){var I,w,P,_,x,d=k.length,m=0;for(_=0;_<d;_++)(64512&(w=k.charCodeAt(_)))==55296&&_+1<d&&(64512&(P=k.charCodeAt(_+1)))==56320&&(w=65536+(w-55296<<10)+(P-56320),_++),m+=w<128?1:w<2048?2:w<65536?3:4;for(I=new a.Buf8(m),_=x=0;x<m;_++)(64512&(w=k.charCodeAt(_)))==55296&&_+1<d&&(64512&(P=k.charCodeAt(_+1)))==56320&&(w=65536+(w-55296<<10)+(P-56320),_++),w<128?I[x++]=w:(w<2048?I[x++]=192|w>>>6:(w<65536?I[x++]=224|w>>>12:(I[x++]=240|w>>>18,I[x++]=128|w>>>12&63),I[x++]=128|w>>>6&63),I[x++]=128|63&w);return I},u.buf2binstring=function(k){return C(k,k.length)},u.binstring2buf=function(k){for(var I=new a.Buf8(k.length),w=0,P=I.length;w<P;w++)I[w]=k.charCodeAt(w);return I},u.buf2string=function(k,I){var w,P,_,x,d=I||k.length,m=new Array(2*d);for(w=P=0;w<d;)if((_=k[w++])<128)m[P++]=_;else if(4<(x=g[_]))m[P++]=65533,w+=x-1;else{for(_&=x===2?31:x===3?15:7;1<x&&w<d;)_=_<<6|63&k[w++],x--;1<x?m[P++]=65533:_<65536?m[P++]=_:(_-=65536,m[P++]=55296|_>>10&1023,m[P++]=56320|1023&_)}return C(m,P)},u.utf8border=function(k,I){var w;for((I=I||k.length)>k.length&&(I=k.length),w=I-1;0<=w&&(192&k[w])==128;)w--;return w<0||w===0?I:w+g[k[w]]>I?w:I}},{"./common":41}],43:[function(n,s,u){s.exports=function(a,l,c,g){for(var S=65535&a|0,C=a>>>16&65535|0,k=0;c!==0;){for(c-=k=2e3<c?2e3:c;C=C+(S=S+l[g++]|0)|0,--k;);S%=65521,C%=65521}return S|C<<16|0}},{}],44:[function(n,s,u){s.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(n,s,u){var a=(function(){for(var l,c=[],g=0;g<256;g++){l=g;for(var S=0;S<8;S++)l=1&l?3988292384^l>>>1:l>>>1;c[g]=l}return c})();s.exports=function(l,c,g,S){var C=a,k=S+g;l^=-1;for(var I=S;I<k;I++)l=l>>>8^C[255&(l^c[I])];return-1^l}},{}],46:[function(n,s,u){var a,l=n("../utils/common"),c=n("./trees"),g=n("./adler32"),S=n("./crc32"),C=n("./messages"),k=0,I=4,w=0,P=-2,_=-1,x=4,d=2,m=8,A=9,R=286,T=30,U=19,Z=2*R+1,J=15,H=3,ot=258,gt=ot+H+1,B=42,$=113,p=1,V=2,yt=3,st=4;function xt(f,X){return f.msg=C[X],X}function nt(f){return(f<<1)-(4<f?9:0)}function bt(f){for(var X=f.length;0<=--X;)f[X]=0}function G(f){var X=f.state,q=X.pending;q>f.avail_out&&(q=f.avail_out),q!==0&&(l.arraySet(f.output,X.pending_buf,X.pending_out,q,f.next_out),f.next_out+=q,X.pending_out+=q,f.total_out+=q,f.avail_out-=q,X.pending-=q,X.pending===0&&(X.pending_out=0))}function W(f,X){c._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,X),f.block_start=f.strstart,G(f.strm)}function mt(f,X){f.pending_buf[f.pending++]=X}function ht(f,X){f.pending_buf[f.pending++]=X>>>8&255,f.pending_buf[f.pending++]=255&X}function lt(f,X){var q,O,E=f.max_chain_length,D=f.strstart,et=f.prev_length,rt=f.nice_match,F=f.strstart>f.w_size-gt?f.strstart-(f.w_size-gt):0,at=f.window,ct=f.w_mask,ut=f.prev,_t=f.strstart+ot,Ft=at[D+et-1],Et=at[D+et];f.prev_length>=f.good_match&&(E>>=2),rt>f.lookahead&&(rt=f.lookahead);do if(at[(q=X)+et]===Et&&at[q+et-1]===Ft&&at[q]===at[D]&&at[++q]===at[D+1]){D+=2,q++;do;while(at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&D<_t);if(O=ot-(_t-D),D=_t-ot,et<O){if(f.match_start=X,rt<=(et=O))break;Ft=at[D+et-1],Et=at[D+et]}}while((X=ut[X&ct])>F&&--E!=0);return et<=f.lookahead?et:f.lookahead}function Mt(f){var X,q,O,E,D,et,rt,F,at,ct,ut=f.w_size;do{if(E=f.window_size-f.lookahead-f.strstart,f.strstart>=ut+(ut-gt)){for(l.arraySet(f.window,f.window,ut,ut,0),f.match_start-=ut,f.strstart-=ut,f.block_start-=ut,X=q=f.hash_size;O=f.head[--X],f.head[X]=ut<=O?O-ut:0,--q;);for(X=q=ut;O=f.prev[--X],f.prev[X]=ut<=O?O-ut:0,--q;);E+=ut}if(f.strm.avail_in===0)break;if(et=f.strm,rt=f.window,F=f.strstart+f.lookahead,at=E,ct=void 0,ct=et.avail_in,at<ct&&(ct=at),q=ct===0?0:(et.avail_in-=ct,l.arraySet(rt,et.input,et.next_in,ct,F),et.state.wrap===1?et.adler=g(et.adler,rt,ct,F):et.state.wrap===2&&(et.adler=S(et.adler,rt,ct,F)),et.next_in+=ct,et.total_in+=ct,ct),f.lookahead+=q,f.lookahead+f.insert>=H)for(D=f.strstart-f.insert,f.ins_h=f.window[D],f.ins_h=(f.ins_h<<f.hash_shift^f.window[D+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[D+H-1])&f.hash_mask,f.prev[D&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=D,D++,f.insert--,!(f.lookahead+f.insert<H)););}while(f.lookahead<gt&&f.strm.avail_in!==0)}function $t(f,X){for(var q,O;;){if(f.lookahead<gt){if(Mt(f),f.lookahead<gt&&X===k)return p;if(f.lookahead===0)break}if(q=0,f.lookahead>=H&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),q!==0&&f.strstart-q<=f.w_size-gt&&(f.match_length=lt(f,q)),f.match_length>=H)if(O=c._tr_tally(f,f.strstart-f.match_start,f.match_length-H),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=H){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else O=c._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(O&&(W(f,!1),f.strm.avail_out===0))return p}return f.insert=f.strstart<H-1?f.strstart:H-1,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):f.last_lit&&(W(f,!1),f.strm.avail_out===0)?p:V}function Ot(f,X){for(var q,O,E;;){if(f.lookahead<gt){if(Mt(f),f.lookahead<gt&&X===k)return p;if(f.lookahead===0)break}if(q=0,f.lookahead>=H&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=H-1,q!==0&&f.prev_length<f.max_lazy_match&&f.strstart-q<=f.w_size-gt&&(f.match_length=lt(f,q),f.match_length<=5&&(f.strategy===1||f.match_length===H&&4096<f.strstart-f.match_start)&&(f.match_length=H-1)),f.prev_length>=H&&f.match_length<=f.prev_length){for(E=f.strstart+f.lookahead-H,O=c._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-H),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=E&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=H-1,f.strstart++,O&&(W(f,!1),f.strm.avail_out===0))return p}else if(f.match_available){if((O=c._tr_tally(f,0,f.window[f.strstart-1]))&&W(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return p}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(O=c._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<H-1?f.strstart:H-1,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):f.last_lit&&(W(f,!1),f.strm.avail_out===0)?p:V}function Rt(f,X,q,O,E){this.good_length=f,this.max_lazy=X,this.nice_length=q,this.max_chain=O,this.func=E}function jt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*Z),this.dyn_dtree=new l.Buf16(2*(2*T+1)),this.bl_tree=new l.Buf16(2*(2*U+1)),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(J+1),this.heap=new l.Buf16(2*R+1),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*R+1),bt(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 Kt(f){var X;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(X=f.state).pending=0,X.pending_out=0,X.wrap<0&&(X.wrap=-X.wrap),X.status=X.wrap?B:$,f.adler=X.wrap===2?0:1,X.last_flush=k,c._tr_init(X),w):xt(f,P)}function he(f){var X=Kt(f);return X===w&&(function(q){q.window_size=2*q.w_size,bt(q.head),q.max_lazy_match=a[q.level].max_lazy,q.good_match=a[q.level].good_length,q.nice_match=a[q.level].nice_length,q.max_chain_length=a[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=H-1,q.match_available=0,q.ins_h=0})(f.state),X}function ae(f,X,q,O,E,D){if(!f)return P;var et=1;if(X===_&&(X=6),O<0?(et=0,O=-O):15<O&&(et=2,O-=16),E<1||A<E||q!==m||O<8||15<O||X<0||9<X||D<0||x<D)return xt(f,P);O===8&&(O=9);var rt=new jt;return(f.state=rt).strm=f,rt.wrap=et,rt.gzhead=null,rt.w_bits=O,rt.w_size=1<<rt.w_bits,rt.w_mask=rt.w_size-1,rt.hash_bits=E+7,rt.hash_size=1<<rt.hash_bits,rt.hash_mask=rt.hash_size-1,rt.hash_shift=~~((rt.hash_bits+H-1)/H),rt.window=new l.Buf8(2*rt.w_size),rt.head=new l.Buf16(rt.hash_size),rt.prev=new l.Buf16(rt.w_size),rt.lit_bufsize=1<<E+6,rt.pending_buf_size=4*rt.lit_bufsize,rt.pending_buf=new l.Buf8(rt.pending_buf_size),rt.d_buf=1*rt.lit_bufsize,rt.l_buf=3*rt.lit_bufsize,rt.level=X,rt.strategy=D,rt.method=q,he(f)}a=[new Rt(0,0,0,0,function(f,X){var q=65535;for(q>f.pending_buf_size-5&&(q=f.pending_buf_size-5);;){if(f.lookahead<=1){if(Mt(f),f.lookahead===0&&X===k)return p;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var O=f.block_start+q;if((f.strstart===0||f.strstart>=O)&&(f.lookahead=f.strstart-O,f.strstart=O,W(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-gt&&(W(f,!1),f.strm.avail_out===0))return p}return f.insert=0,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):(f.strstart>f.block_start&&(W(f,!1),f.strm.avail_out),p)}),new Rt(4,4,8,4,$t),new Rt(4,5,16,8,$t),new Rt(4,6,32,32,$t),new Rt(4,4,16,16,Ot),new Rt(8,16,32,32,Ot),new Rt(8,16,128,128,Ot),new Rt(8,32,128,256,Ot),new Rt(32,128,258,1024,Ot),new Rt(32,258,258,4096,Ot)],u.deflateInit=function(f,X){return ae(f,X,m,15,8,0)},u.deflateInit2=ae,u.deflateReset=he,u.deflateResetKeep=Kt,u.deflateSetHeader=function(f,X){return f&&f.state?f.state.wrap!==2?P:(f.state.gzhead=X,w):P},u.deflate=function(f,X){var q,O,E,D;if(!f||!f.state||5<X||X<0)return f?xt(f,P):P;if(O=f.state,!f.output||!f.input&&f.avail_in!==0||O.status===666&&X!==I)return xt(f,f.avail_out===0?-5:P);if(O.strm=f,q=O.last_flush,O.last_flush=X,O.status===B)if(O.wrap===2)f.adler=0,mt(O,31),mt(O,139),mt(O,8),O.gzhead?(mt(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)),mt(O,255&O.gzhead.time),mt(O,O.gzhead.time>>8&255),mt(O,O.gzhead.time>>16&255),mt(O,O.gzhead.time>>24&255),mt(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),mt(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(mt(O,255&O.gzhead.extra.length),mt(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(f.adler=S(f.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(mt(O,0),mt(O,0),mt(O,0),mt(O,0),mt(O,0),mt(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),mt(O,3),O.status=$);else{var et=m+(O.w_bits-8<<4)<<8;et|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(et|=32),et+=31-et%31,O.status=$,ht(O,et),O.strstart!==0&&(ht(O,f.adler>>>16),ht(O,65535&f.adler)),f.adler=1}if(O.status===69)if(O.gzhead.extra){for(E=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending!==O.pending_buf_size));)mt(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){E=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending===O.pending_buf_size)){D=1;break}D=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,mt(O,D)}while(D!==0);O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),D===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){E=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending===O.pending_buf_size)){D=1;break}D=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,mt(O,D)}while(D!==0);O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),D===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&G(f),O.pending+2<=O.pending_buf_size&&(mt(O,255&f.adler),mt(O,f.adler>>8&255),f.adler=0,O.status=$)):O.status=$),O.pending!==0){if(G(f),f.avail_out===0)return O.last_flush=-1,w}else if(f.avail_in===0&&nt(X)<=nt(q)&&X!==I)return xt(f,-5);if(O.status===666&&f.avail_in!==0)return xt(f,-5);if(f.avail_in!==0||O.lookahead!==0||X!==k&&O.status!==666){var rt=O.strategy===2?(function(F,at){for(var ct;;){if(F.lookahead===0&&(Mt(F),F.lookahead===0)){if(at===k)return p;break}if(F.match_length=0,ct=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,ct&&(W(F,!1),F.strm.avail_out===0))return p}return F.insert=0,at===I?(W(F,!0),F.strm.avail_out===0?yt:st):F.last_lit&&(W(F,!1),F.strm.avail_out===0)?p:V})(O,X):O.strategy===3?(function(F,at){for(var ct,ut,_t,Ft,Et=F.window;;){if(F.lookahead<=ot){if(Mt(F),F.lookahead<=ot&&at===k)return p;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=H&&0<F.strstart&&(ut=Et[_t=F.strstart-1])===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]){Ft=F.strstart+ot;do;while(ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&_t<Ft);F.match_length=ot-(Ft-_t),F.match_length>F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=H?(ct=c._tr_tally(F,1,F.match_length-H),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(ct=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),ct&&(W(F,!1),F.strm.avail_out===0))return p}return F.insert=0,at===I?(W(F,!0),F.strm.avail_out===0?yt:st):F.last_lit&&(W(F,!1),F.strm.avail_out===0)?p:V})(O,X):a[O.level].func(O,X);if(rt!==yt&&rt!==st||(O.status=666),rt===p||rt===yt)return f.avail_out===0&&(O.last_flush=-1),w;if(rt===V&&(X===1?c._tr_align(O):X!==5&&(c._tr_stored_block(O,0,0,!1),X===3&&(bt(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),G(f),f.avail_out===0))return O.last_flush=-1,w}return X!==I?w:O.wrap<=0?1:(O.wrap===2?(mt(O,255&f.adler),mt(O,f.adler>>8&255),mt(O,f.adler>>16&255),mt(O,f.adler>>24&255),mt(O,255&f.total_in),mt(O,f.total_in>>8&255),mt(O,f.total_in>>16&255),mt(O,f.total_in>>24&255)):(ht(O,f.adler>>>16),ht(O,65535&f.adler)),G(f),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?w:1)},u.deflateEnd=function(f){var X;return f&&f.state?(X=f.state.status)!==B&&X!==69&&X!==73&&X!==91&&X!==103&&X!==$&&X!==666?xt(f,P):(f.state=null,X===$?xt(f,-3):w):P},u.deflateSetDictionary=function(f,X){var q,O,E,D,et,rt,F,at,ct=X.length;if(!f||!f.state||(D=(q=f.state).wrap)===2||D===1&&q.status!==B||q.lookahead)return P;for(D===1&&(f.adler=g(f.adler,X,ct,0)),q.wrap=0,ct>=q.w_size&&(D===0&&(bt(q.head),q.strstart=0,q.block_start=0,q.insert=0),at=new l.Buf8(q.w_size),l.arraySet(at,X,ct-q.w_size,q.w_size,0),X=at,ct=q.w_size),et=f.avail_in,rt=f.next_in,F=f.input,f.avail_in=ct,f.next_in=0,f.input=X,Mt(q);q.lookahead>=H;){for(O=q.strstart,E=q.lookahead-(H-1);q.ins_h=(q.ins_h<<q.hash_shift^q.window[O+H-1])&q.hash_mask,q.prev[O&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=O,O++,--E;);q.strstart=O,q.lookahead=H-1,Mt(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=H-1,q.match_available=0,f.next_in=rt,f.input=F,f.avail_in=et,q.wrap=D,w},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,s,u){s.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(n,s,u){s.exports=function(a,l){var c,g,S,C,k,I,w,P,_,x,d,m,A,R,T,U,Z,J,H,ot,gt,B,$,p,V;c=a.state,g=a.next_in,p=a.input,S=g+(a.avail_in-5),C=a.next_out,V=a.output,k=C-(l-a.avail_out),I=C+(a.avail_out-257),w=c.dmax,P=c.wsize,_=c.whave,x=c.wnext,d=c.window,m=c.hold,A=c.bits,R=c.lencode,T=c.distcode,U=(1<<c.lenbits)-1,Z=(1<<c.distbits)-1;t:do{A<15&&(m+=p[g++]<<A,A+=8,m+=p[g++]<<A,A+=8),J=R[m&U];e:for(;;){if(m>>>=H=J>>>24,A-=H,(H=J>>>16&255)===0)V[C++]=65535&J;else{if(!(16&H)){if((64&H)==0){J=R[(65535&J)+(m&(1<<H)-1)];continue e}if(32&H){c.mode=12;break t}a.msg="invalid literal/length code",c.mode=30;break t}ot=65535&J,(H&=15)&&(A<H&&(m+=p[g++]<<A,A+=8),ot+=m&(1<<H)-1,m>>>=H,A-=H),A<15&&(m+=p[g++]<<A,A+=8,m+=p[g++]<<A,A+=8),J=T[m&Z];r:for(;;){if(m>>>=H=J>>>24,A-=H,!(16&(H=J>>>16&255))){if((64&H)==0){J=T[(65535&J)+(m&(1<<H)-1)];continue r}a.msg="invalid distance code",c.mode=30;break t}if(gt=65535&J,A<(H&=15)&&(m+=p[g++]<<A,(A+=8)<H&&(m+=p[g++]<<A,A+=8)),w<(gt+=m&(1<<H)-1)){a.msg="invalid distance too far back",c.mode=30;break t}if(m>>>=H,A-=H,(H=C-k)<gt){if(_<(H=gt-H)&&c.sane){a.msg="invalid distance too far back",c.mode=30;break t}if($=d,(B=0)===x){if(B+=P-H,H<ot){for(ot-=H;V[C++]=d[B++],--H;);B=C-gt,$=V}}else if(x<H){if(B+=P+x-H,(H-=x)<ot){for(ot-=H;V[C++]=d[B++],--H;);if(B=0,x<ot){for(ot-=H=x;V[C++]=d[B++],--H;);B=C-gt,$=V}}}else if(B+=x-H,H<ot){for(ot-=H;V[C++]=d[B++],--H;);B=C-gt,$=V}for(;2<ot;)V[C++]=$[B++],V[C++]=$[B++],V[C++]=$[B++],ot-=3;ot&&(V[C++]=$[B++],1<ot&&(V[C++]=$[B++]))}else{for(B=C-gt;V[C++]=V[B++],V[C++]=V[B++],V[C++]=V[B++],2<(ot-=3););ot&&(V[C++]=V[B++],1<ot&&(V[C++]=V[B++]))}break}}break}}while(g<S&&C<I);g-=ot=A>>3,m&=(1<<(A-=ot<<3))-1,a.next_in=g,a.next_out=C,a.avail_in=g<S?S-g+5:5-(g-S),a.avail_out=C<I?I-C+257:257-(C-I),c.hold=m,c.bits=A}},{}],49:[function(n,s,u){var a=n("../utils/common"),l=n("./adler32"),c=n("./crc32"),g=n("./inffast"),S=n("./inftrees"),C=1,k=2,I=0,w=-2,P=1,_=852,x=592;function d(B){return(B>>>24&255)+(B>>>8&65280)+((65280&B)<<8)+((255&B)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(B){var $;return B&&B.state?($=B.state,B.total_in=B.total_out=$.total=0,B.msg="",$.wrap&&(B.adler=1&$.wrap),$.mode=P,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new a.Buf32(_),$.distcode=$.distdyn=new a.Buf32(x),$.sane=1,$.back=-1,I):w}function R(B){var $;return B&&B.state?(($=B.state).wsize=0,$.whave=0,$.wnext=0,A(B)):w}function T(B,$){var p,V;return B&&B.state?(V=B.state,$<0?(p=0,$=-$):(p=1+($>>4),$<48&&($&=15)),$&&($<8||15<$)?w:(V.window!==null&&V.wbits!==$&&(V.window=null),V.wrap=p,V.wbits=$,R(B))):w}function U(B,$){var p,V;return B?(V=new m,(B.state=V).window=null,(p=T(B,$))!==I&&(B.state=null),p):w}var Z,J,H=!0;function ot(B){if(H){var $;for(Z=new a.Buf32(512),J=new a.Buf32(32),$=0;$<144;)B.lens[$++]=8;for(;$<256;)B.lens[$++]=9;for(;$<280;)B.lens[$++]=7;for(;$<288;)B.lens[$++]=8;for(S(C,B.lens,0,288,Z,0,B.work,{bits:9}),$=0;$<32;)B.lens[$++]=5;S(k,B.lens,0,32,J,0,B.work,{bits:5}),H=!1}B.lencode=Z,B.lenbits=9,B.distcode=J,B.distbits=5}function gt(B,$,p,V){var yt,st=B.state;return st.window===null&&(st.wsize=1<<st.wbits,st.wnext=0,st.whave=0,st.window=new a.Buf8(st.wsize)),V>=st.wsize?(a.arraySet(st.window,$,p-st.wsize,st.wsize,0),st.wnext=0,st.whave=st.wsize):(V<(yt=st.wsize-st.wnext)&&(yt=V),a.arraySet(st.window,$,p-V,yt,st.wnext),(V-=yt)?(a.arraySet(st.window,$,p-V,V,0),st.wnext=V,st.whave=st.wsize):(st.wnext+=yt,st.wnext===st.wsize&&(st.wnext=0),st.whave<st.wsize&&(st.whave+=yt))),0}u.inflateReset=R,u.inflateReset2=T,u.inflateResetKeep=A,u.inflateInit=function(B){return U(B,15)},u.inflateInit2=U,u.inflate=function(B,$){var p,V,yt,st,xt,nt,bt,G,W,mt,ht,lt,Mt,$t,Ot,Rt,jt,Kt,he,ae,f,X,q,O,E=0,D=new a.Buf8(4),et=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!B||!B.state||!B.output||!B.input&&B.avail_in!==0)return w;(p=B.state).mode===12&&(p.mode=13),xt=B.next_out,yt=B.output,bt=B.avail_out,st=B.next_in,V=B.input,nt=B.avail_in,G=p.hold,W=p.bits,mt=nt,ht=bt,X=I;t:for(;;)switch(p.mode){case P:if(p.wrap===0){p.mode=13;break}for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(2&p.wrap&&G===35615){D[p.check=0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0),W=G=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&G)<<8)+(G>>8))%31){B.msg="incorrect header check",p.mode=30;break}if((15&G)!=8){B.msg="unknown compression method",p.mode=30;break}if(W-=4,f=8+(15&(G>>>=4)),p.wbits===0)p.wbits=f;else if(f>p.wbits){B.msg="invalid window size",p.mode=30;break}p.dmax=1<<f,B.adler=p.check=1,p.mode=512&G?10:12,W=G=0;break;case 2:for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(p.flags=G,(255&p.flags)!=8){B.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){B.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=G>>8&1),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0,p.mode=3;case 3:for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.head&&(p.head.time=G),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,D[2]=G>>>16&255,D[3]=G>>>24&255,p.check=c(p.check,D,4,0)),W=G=0,p.mode=4;case 4:for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.head&&(p.head.xflags=255&G,p.head.os=G>>8),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0,p.mode=5;case 5:if(1024&p.flags){for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.length=G,p.head&&(p.head.extra_len=G),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(nt<(lt=p.length)&&(lt=nt),lt&&(p.head&&(f=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),a.arraySet(p.head.extra,V,st,lt,f)),512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,p.length-=lt),p.length))break t;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(nt===0)break t;for(lt=0;f=V[st+lt++],p.head&&f&&p.length<65536&&(p.head.name+=String.fromCharCode(f)),f&<<nt;);if(512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,f)break t}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(nt===0)break t;for(lt=0;f=V[st+lt++],p.head&&f&&p.length<65536&&(p.head.comment+=String.fromCharCode(f)),f&<<nt;);if(512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,f)break t}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G!==(65535&p.check)){B.msg="header crc mismatch",p.mode=30;break}W=G=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),B.adler=p.check=0,p.mode=12;break;case 10:for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}B.adler=p.check=d(G),W=G=0,p.mode=11;case 11:if(p.havedict===0)return B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,2;B.adler=p.check=1,p.mode=12;case 12:if($===5||$===6)break t;case 13:if(p.last){G>>>=7&W,W-=7&W,p.mode=27;break}for(;W<3;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}switch(p.last=1&G,W-=1,3&(G>>>=1)){case 0:p.mode=14;break;case 1:if(ot(p),p.mode=20,$!==6)break;G>>>=2,W-=2;break t;case 2:p.mode=17;break;case 3:B.msg="invalid block type",p.mode=30}G>>>=2,W-=2;break;case 14:for(G>>>=7&W,W-=7&W;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if((65535&G)!=(G>>>16^65535)){B.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&G,W=G=0,p.mode=15,$===6)break t;case 15:p.mode=16;case 16:if(lt=p.length){if(nt<lt&&(lt=nt),bt<lt&&(lt=bt),lt===0)break t;a.arraySet(yt,V,st,lt,xt),nt-=lt,st+=lt,bt-=lt,xt+=lt,p.length-=lt;break}p.mode=12;break;case 17:for(;W<14;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(p.nlen=257+(31&G),G>>>=5,W-=5,p.ndist=1+(31&G),G>>>=5,W-=5,p.ncode=4+(15&G),G>>>=4,W-=4,286<p.nlen||30<p.ndist){B.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;W<3;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.lens[et[p.have++]]=7&G,G>>>=3,W-=3}for(;p.have<19;)p.lens[et[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,q={bits:p.lenbits},X=S(0,p.lens,0,19,p.lencode,0,p.work,q),p.lenbits=q.bits,X){B.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;Rt=(E=p.lencode[G&(1<<p.lenbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(jt<16)G>>>=Ot,W-=Ot,p.lens[p.have++]=jt;else{if(jt===16){for(O=Ot+2;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G>>>=Ot,W-=Ot,p.have===0){B.msg="invalid bit length repeat",p.mode=30;break}f=p.lens[p.have-1],lt=3+(3&G),G>>>=2,W-=2}else if(jt===17){for(O=Ot+3;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}W-=Ot,f=0,lt=3+(7&(G>>>=Ot)),G>>>=3,W-=3}else{for(O=Ot+7;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}W-=Ot,f=0,lt=11+(127&(G>>>=Ot)),G>>>=7,W-=7}if(p.have+lt>p.nlen+p.ndist){B.msg="invalid bit length repeat",p.mode=30;break}for(;lt--;)p.lens[p.have++]=f}}if(p.mode===30)break;if(p.lens[256]===0){B.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,q={bits:p.lenbits},X=S(C,p.lens,0,p.nlen,p.lencode,0,p.work,q),p.lenbits=q.bits,X){B.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,q={bits:p.distbits},X=S(k,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,q),p.distbits=q.bits,X){B.msg="invalid distances set",p.mode=30;break}if(p.mode=20,$===6)break t;case 20:p.mode=21;case 21:if(6<=nt&&258<=bt){B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,g(B,ht),xt=B.next_out,yt=B.output,bt=B.avail_out,st=B.next_in,V=B.input,nt=B.avail_in,G=p.hold,W=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;Rt=(E=p.lencode[G&(1<<p.lenbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(Rt&&(240&Rt)==0){for(Kt=Ot,he=Rt,ae=jt;Rt=(E=p.lencode[ae+((G&(1<<Kt+he)-1)>>Kt)])>>>16&255,jt=65535&E,!(Kt+(Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}G>>>=Kt,W-=Kt,p.back+=Kt}if(G>>>=Ot,W-=Ot,p.back+=Ot,p.length=jt,Rt===0){p.mode=26;break}if(32&Rt){p.back=-1,p.mode=12;break}if(64&Rt){B.msg="invalid literal/length code",p.mode=30;break}p.extra=15&Rt,p.mode=22;case 22:if(p.extra){for(O=p.extra;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.length+=G&(1<<p.extra)-1,G>>>=p.extra,W-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;Rt=(E=p.distcode[G&(1<<p.distbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if((240&Rt)==0){for(Kt=Ot,he=Rt,ae=jt;Rt=(E=p.distcode[ae+((G&(1<<Kt+he)-1)>>Kt)])>>>16&255,jt=65535&E,!(Kt+(Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}G>>>=Kt,W-=Kt,p.back+=Kt}if(G>>>=Ot,W-=Ot,p.back+=Ot,64&Rt){B.msg="invalid distance code",p.mode=30;break}p.offset=jt,p.extra=15&Rt,p.mode=24;case 24:if(p.extra){for(O=p.extra;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.offset+=G&(1<<p.extra)-1,G>>>=p.extra,W-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){B.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(bt===0)break t;if(lt=ht-bt,p.offset>lt){if((lt=p.offset-lt)>p.whave&&p.sane){B.msg="invalid distance too far back",p.mode=30;break}Mt=lt>p.wnext?(lt-=p.wnext,p.wsize-lt):p.wnext-lt,lt>p.length&&(lt=p.length),$t=p.window}else $t=yt,Mt=xt-p.offset,lt=p.length;for(bt<lt&&(lt=bt),bt-=lt,p.length-=lt;yt[xt++]=$t[Mt++],--lt;);p.length===0&&(p.mode=21);break;case 26:if(bt===0)break t;yt[xt++]=p.length,bt--,p.mode=21;break;case 27:if(p.wrap){for(;W<32;){if(nt===0)break t;nt--,G|=V[st++]<<W,W+=8}if(ht-=bt,B.total_out+=ht,p.total+=ht,ht&&(B.adler=p.check=p.flags?c(p.check,yt,ht,xt-ht):l(p.check,yt,ht,xt-ht)),ht=bt,(p.flags?G:d(G))!==p.check){B.msg="incorrect data check",p.mode=30;break}W=G=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G!==(4294967295&p.total)){B.msg="incorrect length check",p.mode=30;break}W=G=0}p.mode=29;case 29:X=1;break t;case 30:X=-3;break t;case 31:return-4;case 32:default:return w}return B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,(p.wsize||ht!==B.avail_out&&p.mode<30&&(p.mode<27||$!==4))&>(B,B.output,B.next_out,ht-B.avail_out)?(p.mode=31,-4):(mt-=B.avail_in,ht-=B.avail_out,B.total_in+=mt,B.total_out+=ht,p.total+=ht,p.wrap&&ht&&(B.adler=p.check=p.flags?c(p.check,yt,ht,B.next_out-ht):l(p.check,yt,ht,B.next_out-ht)),B.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(mt==0&&ht===0||$===4)&&X===I&&(X=-5),X)},u.inflateEnd=function(B){if(!B||!B.state)return w;var $=B.state;return $.window&&($.window=null),B.state=null,I},u.inflateGetHeader=function(B,$){var p;return B&&B.state?(2&(p=B.state).wrap)==0?w:((p.head=$).done=!1,I):w},u.inflateSetDictionary=function(B,$){var p,V=$.length;return B&&B.state?(p=B.state).wrap!==0&&p.mode!==11?w:p.mode===11&&l(1,$,V,0)!==p.check?-3:gt(B,$,V,V)?(p.mode=31,-4):(p.havedict=1,I):w},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,s,u){var a=n("../utils/common"),l=[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],c=[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],g=[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];s.exports=function(C,k,I,w,P,_,x,d){var m,A,R,T,U,Z,J,H,ot,gt=d.bits,B=0,$=0,p=0,V=0,yt=0,st=0,xt=0,nt=0,bt=0,G=0,W=null,mt=0,ht=new a.Buf16(16),lt=new a.Buf16(16),Mt=null,$t=0;for(B=0;B<=15;B++)ht[B]=0;for($=0;$<w;$++)ht[k[I+$]]++;for(yt=gt,V=15;1<=V&&ht[V]===0;V--);if(V<yt&&(yt=V),V===0)return P[_++]=20971520,P[_++]=20971520,d.bits=1,0;for(p=1;p<V&&ht[p]===0;p++);for(yt<p&&(yt=p),B=nt=1;B<=15;B++)if(nt<<=1,(nt-=ht[B])<0)return-1;if(0<nt&&(C===0||V!==1))return-1;for(lt[1]=0,B=1;B<15;B++)lt[B+1]=lt[B]+ht[B];for($=0;$<w;$++)k[I+$]!==0&&(x[lt[k[I+$]]++]=$);if(Z=C===0?(W=Mt=x,19):C===1?(W=l,mt-=257,Mt=c,$t-=257,256):(W=g,Mt=S,-1),B=p,U=_,xt=$=G=0,R=-1,T=(bt=1<<(st=yt))-1,C===1&&852<bt||C===2&&592<bt)return 1;for(;;){for(J=B-xt,ot=x[$]<Z?(H=0,x[$]):x[$]>Z?(H=Mt[$t+x[$]],W[mt+x[$]]):(H=96,0),m=1<<B-xt,p=A=1<<st;P[U+(G>>xt)+(A-=m)]=J<<24|H<<16|ot|0,A!==0;);for(m=1<<B-1;G&m;)m>>=1;if(m!==0?(G&=m-1,G+=m):G=0,$++,--ht[B]==0){if(B===V)break;B=k[I+x[$]]}if(yt<B&&(G&T)!==R){for(xt===0&&(xt=yt),U+=p,nt=1<<(st=B-xt);st+xt<V&&!((nt-=ht[st+xt])<=0);)st++,nt<<=1;if(bt+=1<<st,C===1&&852<bt||C===2&&592<bt)return 1;P[R=G&T]=yt<<24|st<<16|U-_|0}}return G!==0&&(P[U+G]=B-xt<<24|64<<16|0),d.bits=yt,0}},{"../utils/common":41}],51:[function(n,s,u){s.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(n,s,u){var a=n("../utils/common"),l=0,c=1;function g(E){for(var D=E.length;0<=--D;)E[D]=0}var S=0,C=29,k=256,I=k+1+C,w=30,P=19,_=2*I+1,x=15,d=16,m=7,A=256,R=16,T=17,U=18,Z=[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],J=[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],H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ot=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gt=new Array(2*(I+2));g(gt);var B=new Array(2*w);g(B);var $=new Array(512);g($);var p=new Array(256);g(p);var V=new Array(C);g(V);var yt,st,xt,nt=new Array(w);function bt(E,D,et,rt,F){this.static_tree=E,this.extra_bits=D,this.extra_base=et,this.elems=rt,this.max_length=F,this.has_stree=E&&E.length}function G(E,D){this.dyn_tree=E,this.max_code=0,this.stat_desc=D}function W(E){return E<256?$[E]:$[256+(E>>>7)]}function mt(E,D){E.pending_buf[E.pending++]=255&D,E.pending_buf[E.pending++]=D>>>8&255}function ht(E,D,et){E.bi_valid>d-et?(E.bi_buf|=D<<E.bi_valid&65535,mt(E,E.bi_buf),E.bi_buf=D>>d-E.bi_valid,E.bi_valid+=et-d):(E.bi_buf|=D<<E.bi_valid&65535,E.bi_valid+=et)}function lt(E,D,et){ht(E,et[2*D],et[2*D+1])}function Mt(E,D){for(var et=0;et|=1&E,E>>>=1,et<<=1,0<--D;);return et>>>1}function $t(E,D,et){var rt,F,at=new Array(x+1),ct=0;for(rt=1;rt<=x;rt++)at[rt]=ct=ct+et[rt-1]<<1;for(F=0;F<=D;F++){var ut=E[2*F+1];ut!==0&&(E[2*F]=Mt(at[ut]++,ut))}}function Ot(E){var D;for(D=0;D<I;D++)E.dyn_ltree[2*D]=0;for(D=0;D<w;D++)E.dyn_dtree[2*D]=0;for(D=0;D<P;D++)E.bl_tree[2*D]=0;E.dyn_ltree[2*A]=1,E.opt_len=E.static_len=0,E.last_lit=E.matches=0}function Rt(E){8<E.bi_valid?mt(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 jt(E,D,et,rt){var F=2*D,at=2*et;return E[F]<E[at]||E[F]===E[at]&&rt[D]<=rt[et]}function Kt(E,D,et){for(var rt=E.heap[et],F=et<<1;F<=E.heap_len&&(F<E.heap_len&&jt(D,E.heap[F+1],E.heap[F],E.depth)&&F++,!jt(D,rt,E.heap[F],E.depth));)E.heap[et]=E.heap[F],et=F,F<<=1;E.heap[et]=rt}function he(E,D,et){var rt,F,at,ct,ut=0;if(E.last_lit!==0)for(;rt=E.pending_buf[E.d_buf+2*ut]<<8|E.pending_buf[E.d_buf+2*ut+1],F=E.pending_buf[E.l_buf+ut],ut++,rt===0?lt(E,F,D):(lt(E,(at=p[F])+k+1,D),(ct=Z[at])!==0&&ht(E,F-=V[at],ct),lt(E,at=W(--rt),et),(ct=J[at])!==0&&ht(E,rt-=nt[at],ct)),ut<E.last_lit;);lt(E,A,D)}function ae(E,D){var et,rt,F,at=D.dyn_tree,ct=D.stat_desc.static_tree,ut=D.stat_desc.has_stree,_t=D.stat_desc.elems,Ft=-1;for(E.heap_len=0,E.heap_max=_,et=0;et<_t;et++)at[2*et]!==0?(E.heap[++E.heap_len]=Ft=et,E.depth[et]=0):at[2*et+1]=0;for(;E.heap_len<2;)at[2*(F=E.heap[++E.heap_len]=Ft<2?++Ft:0)]=1,E.depth[F]=0,E.opt_len--,ut&&(E.static_len-=ct[2*F+1]);for(D.max_code=Ft,et=E.heap_len>>1;1<=et;et--)Kt(E,at,et);for(F=_t;et=E.heap[1],E.heap[1]=E.heap[E.heap_len--],Kt(E,at,1),rt=E.heap[1],E.heap[--E.heap_max]=et,E.heap[--E.heap_max]=rt,at[2*F]=at[2*et]+at[2*rt],E.depth[F]=(E.depth[et]>=E.depth[rt]?E.depth[et]:E.depth[rt])+1,at[2*et+1]=at[2*rt+1]=F,E.heap[1]=F++,Kt(E,at,1),2<=E.heap_len;);E.heap[--E.heap_max]=E.heap[1],(function(Et,Vt){var $e,me,Je,Zt,ur,wr,xe=Vt.dyn_tree,Rr=Vt.max_code,Xr=Vt.stat_desc.static_tree,ni=Vt.stat_desc.has_stree,ii=Vt.stat_desc.extra_bits,hn=Vt.stat_desc.extra_base,lr=Vt.stat_desc.max_length,xr=0;for(Zt=0;Zt<=x;Zt++)Et.bl_count[Zt]=0;for(xe[2*Et.heap[Et.heap_max]+1]=0,$e=Et.heap_max+1;$e<_;$e++)lr<(Zt=xe[2*xe[2*(me=Et.heap[$e])+1]+1]+1)&&(Zt=lr,xr++),xe[2*me+1]=Zt,Rr<me||(Et.bl_count[Zt]++,ur=0,hn<=me&&(ur=ii[me-hn]),wr=xe[2*me],Et.opt_len+=wr*(Zt+ur),ni&&(Et.static_len+=wr*(Xr[2*me+1]+ur)));if(xr!==0){do{for(Zt=lr-1;Et.bl_count[Zt]===0;)Zt--;Et.bl_count[Zt]--,Et.bl_count[Zt+1]+=2,Et.bl_count[lr]--,xr-=2}while(0<xr);for(Zt=lr;Zt!==0;Zt--)for(me=Et.bl_count[Zt];me!==0;)Rr<(Je=Et.heap[--$e])||(xe[2*Je+1]!==Zt&&(Et.opt_len+=(Zt-xe[2*Je+1])*xe[2*Je],xe[2*Je+1]=Zt),me--)}})(E,D),$t(at,Ft,E.bl_count)}function f(E,D,et){var rt,F,at=-1,ct=D[1],ut=0,_t=7,Ft=4;for(ct===0&&(_t=138,Ft=3),D[2*(et+1)+1]=65535,rt=0;rt<=et;rt++)F=ct,ct=D[2*(rt+1)+1],++ut<_t&&F===ct||(ut<Ft?E.bl_tree[2*F]+=ut:F!==0?(F!==at&&E.bl_tree[2*F]++,E.bl_tree[2*R]++):ut<=10?E.bl_tree[2*T]++:E.bl_tree[2*U]++,at=F,Ft=(ut=0)===ct?(_t=138,3):F===ct?(_t=6,3):(_t=7,4))}function X(E,D,et){var rt,F,at=-1,ct=D[1],ut=0,_t=7,Ft=4;for(ct===0&&(_t=138,Ft=3),rt=0;rt<=et;rt++)if(F=ct,ct=D[2*(rt+1)+1],!(++ut<_t&&F===ct)){if(ut<Ft)for(;lt(E,F,E.bl_tree),--ut!=0;);else F!==0?(F!==at&&(lt(E,F,E.bl_tree),ut--),lt(E,R,E.bl_tree),ht(E,ut-3,2)):ut<=10?(lt(E,T,E.bl_tree),ht(E,ut-3,3)):(lt(E,U,E.bl_tree),ht(E,ut-11,7));at=F,Ft=(ut=0)===ct?(_t=138,3):F===ct?(_t=6,3):(_t=7,4)}}g(nt);var q=!1;function O(E,D,et,rt){ht(E,(S<<1)+(rt?1:0),3),(function(F,at,ct,ut){Rt(F),mt(F,ct),mt(F,~ct),a.arraySet(F.pending_buf,F.window,at,ct,F.pending),F.pending+=ct})(E,D,et)}u._tr_init=function(E){q||((function(){var D,et,rt,F,at,ct=new Array(x+1);for(F=rt=0;F<C-1;F++)for(V[F]=rt,D=0;D<1<<Z[F];D++)p[rt++]=F;for(p[rt-1]=F,F=at=0;F<16;F++)for(nt[F]=at,D=0;D<1<<J[F];D++)$[at++]=F;for(at>>=7;F<w;F++)for(nt[F]=at<<7,D=0;D<1<<J[F]-7;D++)$[256+at++]=F;for(et=0;et<=x;et++)ct[et]=0;for(D=0;D<=143;)gt[2*D+1]=8,D++,ct[8]++;for(;D<=255;)gt[2*D+1]=9,D++,ct[9]++;for(;D<=279;)gt[2*D+1]=7,D++,ct[7]++;for(;D<=287;)gt[2*D+1]=8,D++,ct[8]++;for($t(gt,I+1,ct),D=0;D<w;D++)B[2*D+1]=5,B[2*D]=Mt(D,5);yt=new bt(gt,Z,k+1,I,x),st=new bt(B,J,0,w,x),xt=new bt(new Array(0),H,0,P,m)})(),q=!0),E.l_desc=new G(E.dyn_ltree,yt),E.d_desc=new G(E.dyn_dtree,st),E.bl_desc=new G(E.bl_tree,xt),E.bi_buf=0,E.bi_valid=0,Ot(E)},u._tr_stored_block=O,u._tr_flush_block=function(E,D,et,rt){var F,at,ct=0;0<E.level?(E.strm.data_type===2&&(E.strm.data_type=(function(ut){var _t,Ft=4093624447;for(_t=0;_t<=31;_t++,Ft>>>=1)if(1&Ft&&ut.dyn_ltree[2*_t]!==0)return l;if(ut.dyn_ltree[18]!==0||ut.dyn_ltree[20]!==0||ut.dyn_ltree[26]!==0)return c;for(_t=32;_t<k;_t++)if(ut.dyn_ltree[2*_t]!==0)return c;return l})(E)),ae(E,E.l_desc),ae(E,E.d_desc),ct=(function(ut){var _t;for(f(ut,ut.dyn_ltree,ut.l_desc.max_code),f(ut,ut.dyn_dtree,ut.d_desc.max_code),ae(ut,ut.bl_desc),_t=P-1;3<=_t&&ut.bl_tree[2*ot[_t]+1]===0;_t--);return ut.opt_len+=3*(_t+1)+5+5+4,_t})(E),F=E.opt_len+3+7>>>3,(at=E.static_len+3+7>>>3)<=F&&(F=at)):F=at=et+5,et+4<=F&&D!==-1?O(E,D,et,rt):E.strategy===4||at===F?(ht(E,2+(rt?1:0),3),he(E,gt,B)):(ht(E,4+(rt?1:0),3),(function(ut,_t,Ft,Et){var Vt;for(ht(ut,_t-257,5),ht(ut,Ft-1,5),ht(ut,Et-4,4),Vt=0;Vt<Et;Vt++)ht(ut,ut.bl_tree[2*ot[Vt]+1],3);X(ut,ut.dyn_ltree,_t-1),X(ut,ut.dyn_dtree,Ft-1)})(E,E.l_desc.max_code+1,E.d_desc.max_code+1,ct+1),he(E,E.dyn_ltree,E.dyn_dtree)),Ot(E),rt&&Rt(E)},u._tr_tally=function(E,D,et){return E.pending_buf[E.d_buf+2*E.last_lit]=D>>>8&255,E.pending_buf[E.d_buf+2*E.last_lit+1]=255&D,E.pending_buf[E.l_buf+E.last_lit]=255&et,E.last_lit++,D===0?E.dyn_ltree[2*et]++:(E.matches++,D--,E.dyn_ltree[2*(p[et]+k+1)]++,E.dyn_dtree[2*W(D)]++),E.last_lit===E.lit_bufsize-1},u._tr_align=function(E){ht(E,2,3),lt(E,A,gt),(function(D){D.bi_valid===16?(mt(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)})(E)}},{"../utils/common":41}],53:[function(n,s,u){s.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(n,s,u){(function(a){(function(l,c){if(!l.setImmediate){var g,S,C,k,I=1,w={},P=!1,_=l.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(l);x=x&&x.setTimeout?x:l,g={}.toString.call(l.process)==="[object process]"?function(R){process.nextTick(function(){m(R)})}:(function(){if(l.postMessage&&!l.importScripts){var R=!0,T=l.onmessage;return l.onmessage=function(){R=!1},l.postMessage("","*"),l.onmessage=T,R}})()?(k="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",A,!1):l.attachEvent("onmessage",A),function(R){l.postMessage(k+R,"*")}):l.MessageChannel?((C=new MessageChannel).port1.onmessage=function(R){m(R.data)},function(R){C.port2.postMessage(R)}):_&&"onreadystatechange"in _.createElement("script")?(S=_.documentElement,function(R){var T=_.createElement("script");T.onreadystatechange=function(){m(R),T.onreadystatechange=null,S.removeChild(T),T=null},S.appendChild(T)}):function(R){setTimeout(m,0,R)},x.setImmediate=function(R){typeof R!="function"&&(R=new Function(""+R));for(var T=new Array(arguments.length-1),U=0;U<T.length;U++)T[U]=arguments[U+1];var Z={callback:R,args:T};return w[I]=Z,g(I),I++},x.clearImmediate=d}function d(R){delete w[R]}function m(R){if(P)setTimeout(m,0,R);else{var T=w[R];if(T){P=!0;try{(function(U){var Z=U.callback,J=U.args;switch(J.length){case 0:Z();break;case 1:Z(J[0]);break;case 2:Z(J[0],J[1]);break;case 3:Z(J[0],J[1],J[2]);break;default:Z.apply(c,J)}})(T)}finally{d(R),P=!1}}}}function A(R){R.source===l&&typeof R.data=="string"&&R.data.indexOf(k)===0&&m(+R.data.slice(k.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof yr<"u"?yr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(vs)),vs.exports}var rg=eg();const ng=tg(rg),se=[];for(let v=0;v<256;++v)se.push((v+256).toString(16).slice(1));function _u(v,o=0){return(se[v[o+0]]+se[v[o+1]]+se[v[o+2]]+se[v[o+3]]+"-"+se[v[o+4]]+se[v[o+5]]+"-"+se[v[o+6]]+se[v[o+7]]+"-"+se[v[o+8]]+se[v[o+9]]+"-"+se[v[o+10]]+se[v[o+11]]+se[v[o+12]]+se[v[o+13]]+se[v[o+14]]+se[v[o+15]]).toLowerCase()}const ig=new Uint8Array(16);function mu(){return crypto.getRandomValues(ig)}function sg(v,o,n){return crypto.randomUUID?crypto.randomUUID():ag(v)}function ag(v,o,n){v=v||{};const s=v.random??v.rng?.()??mu();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,_u(s)}const ys={};function xg(v,o,n){let s;{const u=Date.now(),a=mu();og(ys,u,a),s=ug(a,ys.msecs,ys.seq,o,n)}return o??_u(s)}function og(v,o,n){return v.msecs??=-1/0,v.seq??=0,o>v.msecs?(v.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],v.msecs=o):(v.seq=v.seq+1|0,v.seq===0&&v.msecs++),v}function ug(v,o,n,s,u=0){if(v.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),u=0;else if(u<0||u+16>s.length)throw new RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);return o??=Date.now(),n??=v[6]*127<<24|v[7]<<16|v[8]<<8|v[9],s[u++]=o/1099511627776&255,s[u++]=o/4294967296&255,s[u++]=o/16777216&255,s[u++]=o/65536&255,s[u++]=o/256&255,s[u++]=o&255,s[u++]=112|n>>>28&15,s[u++]=n>>>20&255,s[u++]=128|n>>>14&63,s[u++]=n>>>6&255,s[u++]=n<<2&255|v[10]&3,s[u++]=v[11],s[u++]=v[12],s[u++]=v[13],s[u++]=v[14],s[u++]=v[15],s}var ks=function(v,o){return ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])},ks(v,o)};function vu(v,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");ks(v,o);function n(){this.constructor=v}v.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}var Oe=function(){return Oe=Object.assign||function(o){for(var n,s=1,u=arguments.length;s<u;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}return o},Oe.apply(this,arguments)};function fe(v,o,n,s){function u(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function c(C){try{S(s.next(C))}catch(k){l(k)}}function g(C){try{S(s.throw(C))}catch(k){l(k)}}function S(C){C.done?a(C.value):u(C.value).then(c,g)}S((s=s.apply(v,o||[])).next())})}function ce(v,o){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,u,a,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(S){return function(C){return g([S,C])}}function g(S){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,S[0]&&(n=0)),n;)try{if(s=1,u&&(a=S[0]&2?u.return:S[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,S[1])).done)return a;switch(u=0,a&&(S=[S[0]&2,a.value]),S[0]){case 0:case 1:a=S;break;case 4:return n.label++,{value:S[1],done:!1};case 5:n.label++,u=S[1],S=[0];continue;case 7:S=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(S[0]===6||S[0]===2)){n=0;continue}if(S[0]===3&&(!a||S[1]>a[0]&&S[1]<a[3])){n.label=S[1];break}if(S[0]===6&&n.label<a[1]){n.label=a[1],a=S;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(S);break}a[2]&&n.ops.pop(),n.trys.pop();continue}S=o.call(v,n)}catch(C){S=[6,C],u=0}finally{s=a=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function bs(v,o,n){if(n||arguments.length===2)for(var s=0,u=o.length,a;s<u;s++)(a||!(s in o))&&(a||(a=Array.prototype.slice.call(o,0,s)),a[s]=o[s]);return v.concat(a||Array.prototype.slice.call(o))}var cn={exports:{}};/**
|
|
11
|
+
*/var nu;function ag(){return nu||(nu=1,(function(v,o){(function(n){v.exports=n()})(function(){return(function n(s,u,a){function l(S,C){if(!u[S]){if(!s[S]){var k=typeof ti=="function"&&ti;if(!C&&k)return k(S,!0);if(c)return c(S,!0);var I=new Error("Cannot find module '"+S+"'");throw I.code="MODULE_NOT_FOUND",I}var w=u[S]={exports:{}};s[S][0].call(w.exports,function(P){var _=s[S][1][P];return l(_||P)},w,w.exports,n,s,u,a)}return u[S].exports}for(var c=typeof ti=="function"&&ti,g=0;g<a.length;g++)l(a[g]);return l})({1:[function(n,s,u){var a=n("./utils"),l=n("./support"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(g){for(var S,C,k,I,w,P,_,x=[],d=0,m=g.length,A=m,R=a.getTypeOf(g)!=="string";d<g.length;)A=m-d,k=R?(S=g[d++],C=d<m?g[d++]:0,d<m?g[d++]:0):(S=g.charCodeAt(d++),C=d<m?g.charCodeAt(d++):0,d<m?g.charCodeAt(d++):0),I=S>>2,w=(3&S)<<4|C>>4,P=1<A?(15&C)<<2|k>>6:64,_=2<A?63&k:64,x.push(c.charAt(I)+c.charAt(w)+c.charAt(P)+c.charAt(_));return x.join("")},u.decode=function(g){var S,C,k,I,w,P,_=0,x=0,d="data:";if(g.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var m,A=3*(g=g.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(g.charAt(g.length-1)===c.charAt(64)&&A--,g.charAt(g.length-2)===c.charAt(64)&&A--,A%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=l.uint8array?new Uint8Array(0|A):new Array(0|A);_<g.length;)S=c.indexOf(g.charAt(_++))<<2|(I=c.indexOf(g.charAt(_++)))>>4,C=(15&I)<<4|(w=c.indexOf(g.charAt(_++)))>>2,k=(3&w)<<6|(P=c.indexOf(g.charAt(_++))),m[x++]=S,w!==64&&(m[x++]=C),P!==64&&(m[x++]=k);return m}},{"./support":30,"./utils":32}],2:[function(n,s,u){var a=n("./external"),l=n("./stream/DataWorker"),c=n("./stream/Crc32Probe"),g=n("./stream/DataLengthProbe");function S(C,k,I,w,P){this.compressedSize=C,this.uncompressedSize=k,this.crc32=I,this.compression=w,this.compressedContent=P}S.prototype={getContentWorker:function(){var C=new l(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),k=this;return C.on("end",function(){if(this.streamInfo.data_length!==k.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),C},getCompressedWorker:function(){return new l(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(C,k,I){return C.pipe(new c).pipe(new g("uncompressedSize")).pipe(k.compressWorker(I)).pipe(new g("compressedSize")).withStreamInfo("compression",k)},s.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,s,u){var a=n("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},u.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,s,u){var a=n("./utils"),l=(function(){for(var c,g=[],S=0;S<256;S++){c=S;for(var C=0;C<8;C++)c=1&c?3988292384^c>>>1:c>>>1;g[S]=c}return g})();s.exports=function(c,g){return c!==void 0&&c.length?a.getTypeOf(c)!=="string"?(function(S,C,k,I){var w=l,P=I+k;S^=-1;for(var _=I;_<P;_++)S=S>>>8^w[255&(S^C[_])];return-1^S})(0|g,c,c.length,0):(function(S,C,k,I){var w=l,P=I+k;S^=-1;for(var _=I;_<P;_++)S=S>>>8^w[255&(S^C.charCodeAt(_))];return-1^S})(0|g,c,c.length,0):0}},{"./utils":32}],5:[function(n,s,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(n,s,u){var a=null;a=typeof Promise<"u"?Promise:n("lie"),s.exports={Promise:a}},{lie:37}],7:[function(n,s,u){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=n("pako"),c=n("./utils"),g=n("./stream/GenericWorker"),S=a?"uint8array":"array";function C(k,I){g.call(this,"FlateWorker/"+k),this._pako=null,this._pakoAction=k,this._pakoOptions=I,this.meta={}}u.magic="\b\0",c.inherits(C,g),C.prototype.processChunk=function(k){this.meta=k.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(S,k.data),!1)},C.prototype.flush=function(){g.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},C.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},C.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var k=this;this._pako.onData=function(I){k.push({data:I,meta:k.meta})}},u.compressWorker=function(k){return new C("Deflate",k)},u.uncompressWorker=function(){return new C("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,s,u){function a(w,P){var _,x="";for(_=0;_<P;_++)x+=String.fromCharCode(255&w),w>>>=8;return x}function l(w,P,_,x,d,m){var A,R,T=w.file,U=w.compression,Z=m!==S.utf8encode,J=c.transformTo("string",m(T.name)),H=c.transformTo("string",S.utf8encode(T.name)),ot=T.comment,gt=c.transformTo("string",m(ot)),B=c.transformTo("string",S.utf8encode(ot)),$=H.length!==T.name.length,p=B.length!==ot.length,V="",yt="",st="",xt=T.dir,nt=T.date,bt={crc32:0,compressedSize:0,uncompressedSize:0};P&&!_||(bt.crc32=w.crc32,bt.compressedSize=w.compressedSize,bt.uncompressedSize=w.uncompressedSize);var G=0;P&&(G|=8),Z||!$&&!p||(G|=2048);var W=0,mt=0;xt&&(W|=16),d==="UNIX"?(mt=798,W|=(function(lt,Mt){var $t=lt;return lt||($t=Mt?16893:33204),(65535&$t)<<16})(T.unixPermissions,xt)):(mt=20,W|=(function(lt){return 63&(lt||0)})(T.dosPermissions)),A=nt.getUTCHours(),A<<=6,A|=nt.getUTCMinutes(),A<<=5,A|=nt.getUTCSeconds()/2,R=nt.getUTCFullYear()-1980,R<<=4,R|=nt.getUTCMonth()+1,R<<=5,R|=nt.getUTCDate(),$&&(yt=a(1,1)+a(C(J),4)+H,V+="up"+a(yt.length,2)+yt),p&&(st=a(1,1)+a(C(gt),4)+B,V+="uc"+a(st.length,2)+st);var ht="";return ht+=`
|
|
12
|
+
\0`,ht+=a(G,2),ht+=U.magic,ht+=a(A,2),ht+=a(R,2),ht+=a(bt.crc32,4),ht+=a(bt.compressedSize,4),ht+=a(bt.uncompressedSize,4),ht+=a(J.length,2),ht+=a(V.length,2),{fileRecord:k.LOCAL_FILE_HEADER+ht+J+V,dirRecord:k.CENTRAL_FILE_HEADER+a(mt,2)+ht+a(gt.length,2)+"\0\0\0\0"+a(W,4)+a(x,4)+J+V+gt}}var c=n("../utils"),g=n("../stream/GenericWorker"),S=n("../utf8"),C=n("../crc32"),k=n("../signature");function I(w,P,_,x){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=P,this.zipPlatform=_,this.encodeFileName=x,this.streamFiles=w,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c.inherits(I,g),I.prototype.push=function(w){var P=w.meta.percent||0,_=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(w):(this.bytesWritten+=w.data.length,g.prototype.push.call(this,{data:w.data,meta:{currentFile:this.currentFile,percent:_?(P+100*(_-x-1))/_:100}}))},I.prototype.openedSource=function(w){this.currentSourceOffset=this.bytesWritten,this.currentFile=w.file.name;var P=this.streamFiles&&!w.file.dir;if(P){var _=l(w,P,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},I.prototype.closedSource=function(w){this.accumulate=!1;var P=this.streamFiles&&!w.file.dir,_=l(w,P,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(_.dirRecord),P)this.push({data:(function(x){return k.DATA_DESCRIPTOR+a(x.crc32,4)+a(x.compressedSize,4)+a(x.uncompressedSize,4)})(w),meta:{percent:100}});else for(this.push({data:_.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},I.prototype.flush=function(){for(var w=this.bytesWritten,P=0;P<this.dirRecords.length;P++)this.push({data:this.dirRecords[P],meta:{percent:100}});var _=this.bytesWritten-w,x=(function(d,m,A,R,T){var U=c.transformTo("string",T(R));return k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(d,2)+a(d,2)+a(m,4)+a(A,4)+a(U.length,2)+U})(this.dirRecords.length,_,w,this.zipComment,this.encodeFileName);this.push({data:x,meta:{percent:100}})},I.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},I.prototype.registerPrevious=function(w){this._sources.push(w);var P=this;return w.on("data",function(_){P.processChunk(_)}),w.on("end",function(){P.closedSource(P.previous.streamInfo),P._sources.length?P.prepareNextSource():P.end()}),w.on("error",function(_){P.error(_)}),this},I.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},I.prototype.error=function(w){var P=this._sources;if(!g.prototype.error.call(this,w))return!1;for(var _=0;_<P.length;_++)try{P[_].error(w)}catch{}return!0},I.prototype.lock=function(){g.prototype.lock.call(this);for(var w=this._sources,P=0;P<w.length;P++)w[P].lock()},s.exports=I},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,s,u){var a=n("../compressions"),l=n("./ZipFileWorker");u.generateWorker=function(c,g,S){var C=new l(g.streamFiles,S,g.platform,g.encodeFileName),k=0;try{c.forEach(function(I,w){k++;var P=(function(m,A){var R=m||A,T=a[R];if(!T)throw new Error(R+" is not a valid compression method !");return T})(w.options.compression,g.compression),_=w.options.compressionOptions||g.compressionOptions||{},x=w.dir,d=w.date;w._compressWorker(P,_).withStreamInfo("file",{name:I,dir:x,date:d,comment:w.comment||"",unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions}).pipe(C)}),C.entriesCount=k}catch(I){C.error(I)}return C}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,s,u){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new a;for(var c in this)typeof this[c]!="function"&&(l[c]=this[c]);return l}}(a.prototype=n("./object")).loadAsync=n("./load"),a.support=n("./support"),a.defaults=n("./defaults"),a.version="3.10.1",a.loadAsync=function(l,c){return new a().loadAsync(l,c)},a.external=n("./external"),s.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,s,u){var a=n("./utils"),l=n("./external"),c=n("./utf8"),g=n("./zipEntries"),S=n("./stream/Crc32Probe"),C=n("./nodejsUtils");function k(I){return new l.Promise(function(w,P){var _=I.decompressed.getContentWorker().pipe(new S);_.on("error",function(x){P(x)}).on("end",function(){_.streamInfo.crc32!==I.decompressed.crc32?P(new Error("Corrupted zip : CRC32 mismatch")):w()}).resume()})}s.exports=function(I,w){var P=this;return w=a.extend(w||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:c.utf8decode}),C.isNode&&C.isStream(I)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",I,!0,w.optimizedBinaryString,w.base64).then(function(_){var x=new g(w);return x.load(_),x}).then(function(_){var x=[l.Promise.resolve(_)],d=_.files;if(w.checkCRC32)for(var m=0;m<d.length;m++)x.push(k(d[m]));return l.Promise.all(x)}).then(function(_){for(var x=_.shift(),d=x.files,m=0;m<d.length;m++){var A=d[m],R=A.fileNameStr,T=a.resolve(A.fileNameStr);P.file(T,A.decompressed,{binary:!0,optimizedBinaryString:!0,date:A.date,dir:A.dir,comment:A.fileCommentStr.length?A.fileCommentStr:null,unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions,createFolders:w.createFolders}),A.dir||(P.file(T).unsafeOriginalName=R)}return x.zipComment.length&&(P.comment=x.zipComment),P})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,s,u){var a=n("../utils"),l=n("../stream/GenericWorker");function c(g,S){l.call(this,"Nodejs stream input adapter for "+g),this._upstreamEnded=!1,this._bindStream(S)}a.inherits(c,l),c.prototype._bindStream=function(g){var S=this;(this._stream=g).pause(),g.on("data",function(C){S.push({data:C,meta:{percent:0}})}).on("error",function(C){S.isPaused?this.generatedError=C:S.error(C)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},c.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},c.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=c},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,s,u){var a=n("readable-stream").Readable;function l(c,g,S){a.call(this,g),this._helper=c;var C=this;c.on("data",function(k,I){C.push(k)||C._helper.pause(),S&&S(I)}).on("error",function(k){C.emit("error",k)}).on("end",function(){C.push(null)})}n("../utils").inherits(l,a),l.prototype._read=function(){this._helper.resume()},s.exports=l},{"../utils":32,"readable-stream":16}],14:[function(n,s,u){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,l);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,l)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var l=new Buffer(a);return l.fill(0),l},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(n,s,u){function a(T,U,Z){var J,H=c.getTypeOf(U),ot=c.extend(Z||{},C);ot.date=ot.date||new Date,ot.compression!==null&&(ot.compression=ot.compression.toUpperCase()),typeof ot.unixPermissions=="string"&&(ot.unixPermissions=parseInt(ot.unixPermissions,8)),ot.unixPermissions&&16384&ot.unixPermissions&&(ot.dir=!0),ot.dosPermissions&&16&ot.dosPermissions&&(ot.dir=!0),ot.dir&&(T=d(T)),ot.createFolders&&(J=x(T))&&m.call(this,J,!0);var gt=H==="string"&&ot.binary===!1&&ot.base64===!1;Z&&Z.binary!==void 0||(ot.binary=!gt),(U instanceof k&&U.uncompressedSize===0||ot.dir||!U||U.length===0)&&(ot.base64=!1,ot.binary=!0,U="",ot.compression="STORE",H="string");var B=null;B=U instanceof k||U instanceof g?U:P.isNode&&P.isStream(U)?new _(T,U):c.prepareContent(T,U,ot.binary,ot.optimizedBinaryString,ot.base64);var $=new I(T,B,ot);this.files[T]=$}var l=n("./utf8"),c=n("./utils"),g=n("./stream/GenericWorker"),S=n("./stream/StreamHelper"),C=n("./defaults"),k=n("./compressedObject"),I=n("./zipObject"),w=n("./generate"),P=n("./nodejsUtils"),_=n("./nodejs/NodejsStreamInputAdapter"),x=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var U=T.lastIndexOf("/");return 0<U?T.substring(0,U):""},d=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},m=function(T,U){return U=U!==void 0?U:C.createFolders,T=d(T),this.files[T]||a.call(this,T,null,{dir:!0,createFolders:U}),this.files[T]};function A(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var R={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var U,Z,J;for(U in this.files)J=this.files[U],(Z=U.slice(this.root.length,U.length))&&U.slice(0,this.root.length)===this.root&&T(Z,J)},filter:function(T){var U=[];return this.forEach(function(Z,J){T(Z,J)&&U.push(J)}),U},file:function(T,U,Z){if(arguments.length!==1)return T=this.root+T,a.call(this,T,U,Z),this;if(A(T)){var J=T;return this.filter(function(ot,gt){return!gt.dir&&J.test(ot)})}var H=this.files[this.root+T];return H&&!H.dir?H:null},folder:function(T){if(!T)return this;if(A(T))return this.filter(function(H,ot){return ot.dir&&T.test(H)});var U=this.root+T,Z=m.call(this,U),J=this.clone();return J.root=Z.name,J},remove:function(T){T=this.root+T;var U=this.files[T];if(U||(T.slice(-1)!=="/"&&(T+="/"),U=this.files[T]),U&&!U.dir)delete this.files[T];else for(var Z=this.filter(function(H,ot){return ot.name.slice(0,T.length)===T}),J=0;J<Z.length;J++)delete this.files[Z[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var U,Z={};try{if((Z=c.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=Z.type.toLowerCase(),Z.compression=Z.compression.toUpperCase(),Z.type==="binarystring"&&(Z.type="string"),!Z.type)throw new Error("No output type specified.");c.checkSupport(Z.type),Z.platform!=="darwin"&&Z.platform!=="freebsd"&&Z.platform!=="linux"&&Z.platform!=="sunos"||(Z.platform="UNIX"),Z.platform==="win32"&&(Z.platform="DOS");var J=Z.comment||this.comment||"";U=w.generateWorker(this,Z,J)}catch(H){(U=new g("error")).error(H)}return new S(U,Z.type||"string",Z.mimeType)},generateAsync:function(T,U){return this.generateInternalStream(T).accumulate(U)},generateNodeStream:function(T,U){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(U)}};s.exports=R},{"./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(n,s,u){s.exports=n("stream")},{stream:void 0}],17:[function(n,s,u){var a=n("./DataReader");function l(c){a.call(this,c);for(var g=0;g<this.data.length;g++)c[g]=255&c[g]}n("../utils").inherits(l,a),l.prototype.byteAt=function(c){return this.data[this.zero+c]},l.prototype.lastIndexOfSignature=function(c){for(var g=c.charCodeAt(0),S=c.charCodeAt(1),C=c.charCodeAt(2),k=c.charCodeAt(3),I=this.length-4;0<=I;--I)if(this.data[I]===g&&this.data[I+1]===S&&this.data[I+2]===C&&this.data[I+3]===k)return I-this.zero;return-1},l.prototype.readAndCheckSignature=function(c){var g=c.charCodeAt(0),S=c.charCodeAt(1),C=c.charCodeAt(2),k=c.charCodeAt(3),I=this.readData(4);return g===I[0]&&S===I[1]&&C===I[2]&&k===I[3]},l.prototype.readData=function(c){if(this.checkOffset(c),c===0)return[];var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./DataReader":18}],18:[function(n,s,u){var a=n("../utils");function l(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length<this.zero+c||c<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+c+"). Corrupted zip ?")},setIndex:function(c){this.checkIndex(c),this.index=c},skip:function(c){this.setIndex(this.index+c)},byteAt:function(){},readInt:function(c){var g,S=0;for(this.checkOffset(c),g=this.index+c-1;g>=this.index;g--)S=(S<<8)+this.byteAt(g);return this.index+=c,S},readString:function(c){return a.transformTo("string",this.readData(c))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC(1980+(c>>25&127),(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(31&c)<<1))}},s.exports=l},{"../utils":32}],19:[function(n,s,u){var a=n("./Uint8ArrayReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.readData=function(c){this.checkOffset(c);var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,s,u){var a=n("./DataReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.byteAt=function(c){return this.data.charCodeAt(this.zero+c)},l.prototype.lastIndexOfSignature=function(c){return this.data.lastIndexOf(c)-this.zero},l.prototype.readAndCheckSignature=function(c){return c===this.readData(4)},l.prototype.readData=function(c){this.checkOffset(c);var g=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./DataReader":18}],21:[function(n,s,u){var a=n("./ArrayReader");function l(c){a.call(this,c)}n("../utils").inherits(l,a),l.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,g},s.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(n,s,u){var a=n("../utils"),l=n("../support"),c=n("./ArrayReader"),g=n("./StringReader"),S=n("./NodeBufferReader"),C=n("./Uint8ArrayReader");s.exports=function(k){var I=a.getTypeOf(k);return a.checkSupport(I),I!=="string"||l.uint8array?I==="nodebuffer"?new S(k):l.uint8array?new C(a.transformTo("uint8array",k)):new c(a.transformTo("array",k)):new g(k)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,s,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,s,u){var a=n("./GenericWorker"),l=n("../utils");function c(g){a.call(this,"ConvertWorker to "+g),this.destType=g}l.inherits(c,a),c.prototype.processChunk=function(g){this.push({data:l.transformTo(this.destType,g.data),meta:g.meta})},s.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(n,s,u){var a=n("./GenericWorker"),l=n("../crc32");function c(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(c,a),c.prototype.processChunk=function(g){this.streamInfo.crc32=l(g.data,this.streamInfo.crc32||0),this.push(g)},s.exports=c},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,s,u){var a=n("../utils"),l=n("./GenericWorker");function c(g){l.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}a.inherits(c,l),c.prototype.processChunk=function(g){if(g){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+g.data.length}l.prototype.processChunk.call(this,g)},s.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(n,s,u){var a=n("../utils"),l=n("./GenericWorker");function c(g){l.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then(function(C){S.dataIsReady=!0,S.data=C,S.max=C&&C.length||0,S.type=a.getTypeOf(C),S.isPaused||S._tickAndRepeat()},function(C){S.error(C)})}a.inherits(c,l),c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},c.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},c.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},c.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,S);break;case"uint8array":g=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":g=this.data.slice(this.index,S)}return this.index=S,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=c},{"../utils":32,"./GenericWorker":28}],28:[function(n,s,u){function a(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,c){return this._listeners[l].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,c){if(this._listeners[l])for(var g=0;g<this._listeners[l].length;g++)this._listeners[l][g].call(this,c)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var c=this;return l.on("data",function(g){c.processChunk(g)}),l.on("end",function(){c.end()}),l.on("error",function(g){c.error(g)}),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 l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,c){return this.extraStreamInfo[l]=c,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},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 l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},s.exports=a},{}],29:[function(n,s,u){var a=n("../utils"),l=n("./ConvertWorker"),c=n("./GenericWorker"),g=n("../base64"),S=n("../support"),C=n("../external"),k=null;if(S.nodestream)try{k=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(P,_){return new C.Promise(function(x,d){var m=[],A=P._internalType,R=P._outputType,T=P._mimeType;P.on("data",function(U,Z){m.push(U),_&&_(Z)}).on("error",function(U){m=[],d(U)}).on("end",function(){try{var U=(function(Z,J,H){switch(Z){case"blob":return a.newBlob(a.transformTo("arraybuffer",J),H);case"base64":return g.encode(J);default:return a.transformTo(Z,J)}})(R,(function(Z,J){var H,ot=0,gt=null,B=0;for(H=0;H<J.length;H++)B+=J[H].length;switch(Z){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(gt=new Uint8Array(B),H=0;H<J.length;H++)gt.set(J[H],ot),ot+=J[H].length;return gt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+Z+"'")}})(A,m),T);x(U)}catch(Z){d(Z)}m=[]}).resume()})}function w(P,_,x){var d=_;switch(_){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=_,this._mimeType=x,a.checkSupport(d),this._worker=P.pipe(new l(d)),P.lock()}catch(m){this._worker=new c("error"),this._worker.error(m)}}w.prototype={accumulate:function(P){return I(this,P)},on:function(P,_){var x=this;return P==="data"?this._worker.on(P,function(d){_.call(x,d.data,d.meta)}):this._worker.on(P,function(){a.delay(_,arguments,x)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(P){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new k(this,{objectMode:this._outputType!=="nodebuffer"},P)}},s.exports=w},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,s,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u.nodebuffer=typeof Buffer<"u",u.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")u.blob=!1;else{var a=new ArrayBuffer(0);try{u.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(a),u.blob=l.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!n("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(n,s,u){for(var a=n("./utils"),l=n("./support"),c=n("./nodejsUtils"),g=n("./stream/GenericWorker"),S=new Array(256),C=0;C<256;C++)S[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;S[254]=S[254]=1;function k(){g.call(this,"utf-8 decode"),this.leftOver=null}function I(){g.call(this,"utf-8 encode")}u.utf8encode=function(w){return l.nodebuffer?c.newBufferFrom(w,"utf-8"):(function(P){var _,x,d,m,A,R=P.length,T=0;for(m=0;m<R;m++)(64512&(x=P.charCodeAt(m)))==55296&&m+1<R&&(64512&(d=P.charCodeAt(m+1)))==56320&&(x=65536+(x-55296<<10)+(d-56320),m++),T+=x<128?1:x<2048?2:x<65536?3:4;for(_=l.uint8array?new Uint8Array(T):new Array(T),m=A=0;A<T;m++)(64512&(x=P.charCodeAt(m)))==55296&&m+1<R&&(64512&(d=P.charCodeAt(m+1)))==56320&&(x=65536+(x-55296<<10)+(d-56320),m++),x<128?_[A++]=x:(x<2048?_[A++]=192|x>>>6:(x<65536?_[A++]=224|x>>>12:(_[A++]=240|x>>>18,_[A++]=128|x>>>12&63),_[A++]=128|x>>>6&63),_[A++]=128|63&x);return _})(w)},u.utf8decode=function(w){return l.nodebuffer?a.transformTo("nodebuffer",w).toString("utf-8"):(function(P){var _,x,d,m,A=P.length,R=new Array(2*A);for(_=x=0;_<A;)if((d=P[_++])<128)R[x++]=d;else if(4<(m=S[d]))R[x++]=65533,_+=m-1;else{for(d&=m===2?31:m===3?15:7;1<m&&_<A;)d=d<<6|63&P[_++],m--;1<m?R[x++]=65533:d<65536?R[x++]=d:(d-=65536,R[x++]=55296|d>>10&1023,R[x++]=56320|1023&d)}return R.length!==x&&(R.subarray?R=R.subarray(0,x):R.length=x),a.applyFromCharCode(R)})(w=a.transformTo(l.uint8array?"uint8array":"array",w))},a.inherits(k,g),k.prototype.processChunk=function(w){var P=a.transformTo(l.uint8array?"uint8array":"array",w.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var _=P;(P=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),P.set(_,this.leftOver.length)}else P=this.leftOver.concat(P);this.leftOver=null}var x=(function(m,A){var R;for((A=A||m.length)>m.length&&(A=m.length),R=A-1;0<=R&&(192&m[R])==128;)R--;return R<0||R===0?A:R+S[m[R]]>A?R:A})(P),d=P;x!==P.length&&(l.uint8array?(d=P.subarray(0,x),this.leftOver=P.subarray(x,P.length)):(d=P.slice(0,x),this.leftOver=P.slice(x,P.length))),this.push({data:u.utf8decode(d),meta:w.meta})},k.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=k,a.inherits(I,g),I.prototype.processChunk=function(w){this.push({data:u.utf8encode(w.data),meta:w.meta})},u.Utf8EncodeWorker=I},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,s,u){var a=n("./support"),l=n("./base64"),c=n("./nodejsUtils"),g=n("./external");function S(_){return _}function C(_,x){for(var d=0;d<_.length;++d)x[d]=255&_.charCodeAt(d);return x}n("setimmediate"),u.newBlob=function(_,x){u.checkSupport("blob");try{return new Blob([_],{type:x})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(_),d.getBlob(x)}catch{throw new Error("Bug : can't construct the Blob.")}}};var k={stringifyByChunk:function(_,x,d){var m=[],A=0,R=_.length;if(R<=d)return String.fromCharCode.apply(null,_);for(;A<R;)x==="array"||x==="nodebuffer"?m.push(String.fromCharCode.apply(null,_.slice(A,Math.min(A+d,R)))):m.push(String.fromCharCode.apply(null,_.subarray(A,Math.min(A+d,R)))),A+=d;return m.join("")},stringifyByChar:function(_){for(var x="",d=0;d<_.length;d++)x+=String.fromCharCode(_[d]);return x},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,c.allocBuffer(1)).length===1}catch{return!1}})()}};function I(_){var x=65536,d=u.getTypeOf(_),m=!0;if(d==="uint8array"?m=k.applyCanBeUsed.uint8array:d==="nodebuffer"&&(m=k.applyCanBeUsed.nodebuffer),m)for(;1<x;)try{return k.stringifyByChunk(_,d,x)}catch{x=Math.floor(x/2)}return k.stringifyByChar(_)}function w(_,x){for(var d=0;d<_.length;d++)x[d]=_[d];return x}u.applyFromCharCode=I;var P={};P.string={string:S,array:function(_){return C(_,new Array(_.length))},arraybuffer:function(_){return P.string.uint8array(_).buffer},uint8array:function(_){return C(_,new Uint8Array(_.length))},nodebuffer:function(_){return C(_,c.allocBuffer(_.length))}},P.array={string:I,array:S,arraybuffer:function(_){return new Uint8Array(_).buffer},uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return c.newBufferFrom(_)}},P.arraybuffer={string:function(_){return I(new Uint8Array(_))},array:function(_){return w(new Uint8Array(_),new Array(_.byteLength))},arraybuffer:S,uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return c.newBufferFrom(new Uint8Array(_))}},P.uint8array={string:I,array:function(_){return w(_,new Array(_.length))},arraybuffer:function(_){return _.buffer},uint8array:S,nodebuffer:function(_){return c.newBufferFrom(_)}},P.nodebuffer={string:I,array:function(_){return w(_,new Array(_.length))},arraybuffer:function(_){return P.nodebuffer.uint8array(_).buffer},uint8array:function(_){return w(_,new Uint8Array(_.length))},nodebuffer:S},u.transformTo=function(_,x){if(x=x||"",!_)return x;u.checkSupport(_);var d=u.getTypeOf(x);return P[d][_](x)},u.resolve=function(_){for(var x=_.split("/"),d=[],m=0;m<x.length;m++){var A=x[m];A==="."||A===""&&m!==0&&m!==x.length-1||(A===".."?d.pop():d.push(A))}return d.join("/")},u.getTypeOf=function(_){return typeof _=="string"?"string":Object.prototype.toString.call(_)==="[object Array]"?"array":a.nodebuffer&&c.isBuffer(_)?"nodebuffer":a.uint8array&&_ instanceof Uint8Array?"uint8array":a.arraybuffer&&_ instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(_){if(!a[_.toLowerCase()])throw new Error(_+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(_){var x,d,m="";for(d=0;d<(_||"").length;d++)m+="\\x"+((x=_.charCodeAt(d))<16?"0":"")+x.toString(16).toUpperCase();return m},u.delay=function(_,x,d){setImmediate(function(){_.apply(d||null,x||[])})},u.inherits=function(_,x){function d(){}d.prototype=x.prototype,_.prototype=new d},u.extend=function(){var _,x,d={};for(_=0;_<arguments.length;_++)for(x in arguments[_])Object.prototype.hasOwnProperty.call(arguments[_],x)&&d[x]===void 0&&(d[x]=arguments[_][x]);return d},u.prepareContent=function(_,x,d,m,A){return g.Promise.resolve(x).then(function(R){return a.blob&&(R instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(R))!==-1)&&typeof FileReader<"u"?new g.Promise(function(T,U){var Z=new FileReader;Z.onload=function(J){T(J.target.result)},Z.onerror=function(J){U(J.target.error)},Z.readAsArrayBuffer(R)}):R}).then(function(R){var T=u.getTypeOf(R);return T?(T==="arraybuffer"?R=u.transformTo("uint8array",R):T==="string"&&(A?R=l.decode(R):d&&m!==!0&&(R=(function(U){return C(U,a.uint8array?new Uint8Array(U.length):new Array(U.length))})(R))),R):g.Promise.reject(new Error("Can't read the data of '"+_+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,s,u){var a=n("./reader/readerFor"),l=n("./utils"),c=n("./signature"),g=n("./zipEntry"),S=n("./support");function C(k){this.files=[],this.loadOptions=k}C.prototype={checkSignature:function(k){if(!this.reader.readAndCheckSignature(k)){this.reader.index-=4;var I=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(I)+", expected "+l.pretty(k)+")")}},isSignature:function(k,I){var w=this.reader.index;this.reader.setIndex(k);var P=this.reader.readString(4)===I;return this.reader.setIndex(w),P},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 k=this.reader.readData(this.zipCommentLength),I=S.uint8array?"uint8array":"array",w=l.transformTo(I,k);this.zipComment=this.loadOptions.decodeFileName(w)},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 k,I,w,P=this.zip64EndOfCentralSize-44;0<P;)k=this.reader.readInt(2),I=this.reader.readInt(4),w=this.reader.readData(I),this.zip64ExtensibleData[k]={id:k,length:I,value:w}},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 k,I;for(k=0;k<this.files.length;k++)I=this.files[k],this.reader.setIndex(I.localHeaderOffset),this.checkSignature(c.LOCAL_FILE_HEADER),I.readLocalPart(this.reader),I.handleUTF8(),I.processAttributes()},readCentralDir:function(){var k;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(c.CENTRAL_FILE_HEADER);)(k=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(k);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var k=this.reader.lastIndexOfSignature(c.CENTRAL_DIRECTORY_END);if(k<0)throw this.isSignature(0,c.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(k);var I=k;if(this.checkSignature(c.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(k=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(k),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,c.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(c.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(c.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var P=I-w;if(0<P)this.isSignature(I,c.CENTRAL_FILE_HEADER)||(this.reader.zero=P);else if(P<0)throw new Error("Corrupted zip: missing "+Math.abs(P)+" bytes.")},prepareReader:function(k){this.reader=a(k)},load:function(k){this.prepareReader(k),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=C},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,s,u){var a=n("./reader/readerFor"),l=n("./utils"),c=n("./compressedObject"),g=n("./crc32"),S=n("./utf8"),C=n("./compressions"),k=n("./support");function I(w,P){this.options=w,this.loadOptions=P}I.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(w){var P,_;if(w.skip(22),this.fileNameLength=w.readInt(2),_=w.readInt(2),this.fileName=w.readData(this.fileNameLength),w.skip(_),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((P=(function(x){for(var d in C)if(Object.prototype.hasOwnProperty.call(C,d)&&C[d].magic===x)return C[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,P,w.readData(this.compressedSize))},readCentralPart:function(w){this.versionMadeBy=w.readInt(2),w.skip(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4);var P=w.readInt(2);if(this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");w.skip(P),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),w==0&&(this.dosPermissions=63&this.externalFileAttributes),w==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=a(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var P,_,x,d=w.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});w.index+4<d;)P=w.readInt(2),_=w.readInt(2),x=w.readData(_),this.extraFields[P]={id:P,length:_,value:x};w.setIndex(d)},handleUTF8:function(){var w=k.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var P=this.findExtraFieldUnicodePath();if(P!==null)this.fileNameStr=P;else{var _=l.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(_)}var x=this.findExtraFieldUnicodeComment();if(x!==null)this.fileCommentStr=x;else{var d=l.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var P=a(w.value);return P.readInt(1)!==1||g(this.fileName)!==P.readInt(4)?null:S.utf8decode(P.readData(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var P=a(w.value);return P.readInt(1)!==1||g(this.fileComment)!==P.readInt(4)?null:S.utf8decode(P.readData(w.length-5))}return null}},s.exports=I},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,s,u){function a(P,_,x){this.name=P,this.dir=x.dir,this.date=x.date,this.comment=x.comment,this.unixPermissions=x.unixPermissions,this.dosPermissions=x.dosPermissions,this._data=_,this._dataBinary=x.binary,this.options={compression:x.compression,compressionOptions:x.compressionOptions}}var l=n("./stream/StreamHelper"),c=n("./stream/DataWorker"),g=n("./utf8"),S=n("./compressedObject"),C=n("./stream/GenericWorker");a.prototype={internalStream:function(P){var _=null,x="string";try{if(!P)throw new Error("No output type specified.");var d=(x=P.toLowerCase())==="string"||x==="text";x!=="binarystring"&&x!=="text"||(x="string"),_=this._decompressWorker();var m=!this._dataBinary;m&&!d&&(_=_.pipe(new g.Utf8EncodeWorker)),!m&&d&&(_=_.pipe(new g.Utf8DecodeWorker))}catch(A){(_=new C("error")).error(A)}return new l(_,x,"")},async:function(P,_){return this.internalStream(P).accumulate(_)},nodeStream:function(P,_){return this.internalStream(P||"nodebuffer").toNodejsStream(_)},_compressWorker:function(P,_){if(this._data instanceof S&&this._data.compression.magic===P.magic)return this._data.getCompressedWorker();var x=this._decompressWorker();return this._dataBinary||(x=x.pipe(new g.Utf8EncodeWorker)),S.createWorkerFrom(x,P,_)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof C?this._data:new c(this._data)}};for(var k=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],I=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},w=0;w<k.length;w++)a.prototype[k[w]]=I;s.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,s,u){(function(a){var l,c,g=a.MutationObserver||a.WebKitMutationObserver;if(g){var S=0,C=new g(P),k=a.document.createTextNode("");C.observe(k,{characterData:!0}),l=function(){k.data=S=++S%2}}else if(a.setImmediate||a.MessageChannel===void 0)l="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var _=a.document.createElement("script");_.onreadystatechange=function(){P(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},a.document.documentElement.appendChild(_)}:function(){setTimeout(P,0)};else{var I=new a.MessageChannel;I.port1.onmessage=P,l=function(){I.port2.postMessage(0)}}var w=[];function P(){var _,x;c=!0;for(var d=w.length;d;){for(x=w,w=[],_=-1;++_<d;)x[_]();d=w.length}c=!1}s.exports=function(_){w.push(_)!==1||c||l()}}).call(this,typeof yr<"u"?yr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,s,u){var a=n("immediate");function l(){}var c={},g=["REJECTED"],S=["FULFILLED"],C=["PENDING"];function k(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=C,this.queue=[],this.outcome=void 0,d!==l&&_(this,d)}function I(d,m,A){this.promise=d,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}function w(d,m,A){a(function(){var R;try{R=m(A)}catch(T){return c.reject(d,T)}R===d?c.reject(d,new TypeError("Cannot resolve promise with itself")):c.resolve(d,R)})}function P(d){var m=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof m=="function")return function(){m.apply(d,arguments)}}function _(d,m){var A=!1;function R(Z){A||(A=!0,c.reject(d,Z))}function T(Z){A||(A=!0,c.resolve(d,Z))}var U=x(function(){m(T,R)});U.status==="error"&&R(U.value)}function x(d,m){var A={};try{A.value=d(m),A.status="success"}catch(R){A.status="error",A.value=R}return A}(s.exports=k).prototype.finally=function(d){if(typeof d!="function")return this;var m=this.constructor;return this.then(function(A){return m.resolve(d()).then(function(){return A})},function(A){return m.resolve(d()).then(function(){throw A})})},k.prototype.catch=function(d){return this.then(null,d)},k.prototype.then=function(d,m){if(typeof d!="function"&&this.state===S||typeof m!="function"&&this.state===g)return this;var A=new this.constructor(l);return this.state!==C?w(A,this.state===S?d:m,this.outcome):this.queue.push(new I(A,d,m)),A},I.prototype.callFulfilled=function(d){c.resolve(this.promise,d)},I.prototype.otherCallFulfilled=function(d){w(this.promise,this.onFulfilled,d)},I.prototype.callRejected=function(d){c.reject(this.promise,d)},I.prototype.otherCallRejected=function(d){w(this.promise,this.onRejected,d)},c.resolve=function(d,m){var A=x(P,m);if(A.status==="error")return c.reject(d,A.value);var R=A.value;if(R)_(d,R);else{d.state=S,d.outcome=m;for(var T=-1,U=d.queue.length;++T<U;)d.queue[T].callFulfilled(m)}return d},c.reject=function(d,m){d.state=g,d.outcome=m;for(var A=-1,R=d.queue.length;++A<R;)d.queue[A].callRejected(m);return d},k.resolve=function(d){return d instanceof this?d:c.resolve(new this(l),d)},k.reject=function(d){var m=new this(l);return c.reject(m,d)},k.all=function(d){var m=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=d.length,R=!1;if(!A)return this.resolve([]);for(var T=new Array(A),U=0,Z=-1,J=new this(l);++Z<A;)H(d[Z],Z);return J;function H(ot,gt){m.resolve(ot).then(function(B){T[gt]=B,++U!==A||R||(R=!0,c.resolve(J,T))},function(B){R||(R=!0,c.reject(J,B))})}},k.race=function(d){var m=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=d.length,R=!1;if(!A)return this.resolve([]);for(var T=-1,U=new this(l);++T<A;)Z=d[T],m.resolve(Z).then(function(J){R||(R=!0,c.resolve(U,J))},function(J){R||(R=!0,c.reject(U,J))});var Z;return U}},{immediate:36}],38:[function(n,s,u){var a={};(0,n("./lib/utils/common").assign)(a,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),s.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,s,u){var a=n("./zlib/deflate"),l=n("./utils/common"),c=n("./utils/strings"),g=n("./zlib/messages"),S=n("./zlib/zstream"),C=Object.prototype.toString,k=0,I=-1,w=0,P=8;function _(d){if(!(this instanceof _))return new _(d);this.options=l.assign({level:I,method:P,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},d||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var A=a.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(A!==k)throw new Error(g[A]);if(m.header&&a.deflateSetHeader(this.strm,m.header),m.dictionary){var R;if(R=typeof m.dictionary=="string"?c.string2buf(m.dictionary):C.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(A=a.deflateSetDictionary(this.strm,R))!==k)throw new Error(g[A]);this._dict_set=!0}}function x(d,m){var A=new _(m);if(A.push(d,!0),A.err)throw A.msg||g[A.err];return A.result}_.prototype.push=function(d,m){var A,R,T=this.strm,U=this.options.chunkSize;if(this.ended)return!1;R=m===~~m?m:m===!0?4:0,typeof d=="string"?T.input=c.string2buf(d):C.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new l.Buf8(U),T.next_out=0,T.avail_out=U),(A=a.deflate(T,R))!==1&&A!==k)return this.onEnd(A),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||R!==4&&R!==2)||(this.options.to==="string"?this.onData(c.buf2binstring(l.shrinkBuf(T.output,T.next_out))):this.onData(l.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&A!==1);return R===4?(A=a.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===k):R!==2||(this.onEnd(k),!(T.avail_out=0))},_.prototype.onData=function(d){this.chunks.push(d)},_.prototype.onEnd=function(d){d===k&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},u.Deflate=_,u.deflate=x,u.deflateRaw=function(d,m){return(m=m||{}).raw=!0,x(d,m)},u.gzip=function(d,m){return(m=m||{}).gzip=!0,x(d,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,s,u){var a=n("./zlib/inflate"),l=n("./utils/common"),c=n("./utils/strings"),g=n("./zlib/constants"),S=n("./zlib/messages"),C=n("./zlib/zstream"),k=n("./zlib/gzheader"),I=Object.prototype.toString;function w(_){if(!(this instanceof w))return new w(_);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},_||{});var x=this.options;x.raw&&0<=x.windowBits&&x.windowBits<16&&(x.windowBits=-x.windowBits,x.windowBits===0&&(x.windowBits=-15)),!(0<=x.windowBits&&x.windowBits<16)||_&&_.windowBits||(x.windowBits+=32),15<x.windowBits&&x.windowBits<48&&(15&x.windowBits)==0&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var d=a.inflateInit2(this.strm,x.windowBits);if(d!==g.Z_OK)throw new Error(S[d]);this.header=new k,a.inflateGetHeader(this.strm,this.header)}function P(_,x){var d=new w(x);if(d.push(_,!0),d.err)throw d.msg||S[d.err];return d.result}w.prototype.push=function(_,x){var d,m,A,R,T,U,Z=this.strm,J=this.options.chunkSize,H=this.options.dictionary,ot=!1;if(this.ended)return!1;m=x===~~x?x:x===!0?g.Z_FINISH:g.Z_NO_FLUSH,typeof _=="string"?Z.input=c.binstring2buf(_):I.call(_)==="[object ArrayBuffer]"?Z.input=new Uint8Array(_):Z.input=_,Z.next_in=0,Z.avail_in=Z.input.length;do{if(Z.avail_out===0&&(Z.output=new l.Buf8(J),Z.next_out=0,Z.avail_out=J),(d=a.inflate(Z,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&H&&(U=typeof H=="string"?c.string2buf(H):I.call(H)==="[object ArrayBuffer]"?new Uint8Array(H):H,d=a.inflateSetDictionary(this.strm,U)),d===g.Z_BUF_ERROR&&ot===!0&&(d=g.Z_OK,ot=!1),d!==g.Z_STREAM_END&&d!==g.Z_OK)return this.onEnd(d),!(this.ended=!0);Z.next_out&&(Z.avail_out!==0&&d!==g.Z_STREAM_END&&(Z.avail_in!==0||m!==g.Z_FINISH&&m!==g.Z_SYNC_FLUSH)||(this.options.to==="string"?(A=c.utf8border(Z.output,Z.next_out),R=Z.next_out-A,T=c.buf2string(Z.output,A),Z.next_out=R,Z.avail_out=J-R,R&&l.arraySet(Z.output,Z.output,A,R,0),this.onData(T)):this.onData(l.shrinkBuf(Z.output,Z.next_out)))),Z.avail_in===0&&Z.avail_out===0&&(ot=!0)}while((0<Z.avail_in||Z.avail_out===0)&&d!==g.Z_STREAM_END);return d===g.Z_STREAM_END&&(m=g.Z_FINISH),m===g.Z_FINISH?(d=a.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===g.Z_OK):m!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),!(Z.avail_out=0))},w.prototype.onData=function(_){this.chunks.push(_)},w.prototype.onEnd=function(_){_===g.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},u.Inflate=w,u.inflate=P,u.inflateRaw=function(_,x){return(x=x||{}).raw=!0,P(_,x)},u.ungzip=P},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,s,u){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";u.assign=function(g){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var C=S.shift();if(C){if(typeof C!="object")throw new TypeError(C+"must be non-object");for(var k in C)C.hasOwnProperty(k)&&(g[k]=C[k])}}return g},u.shrinkBuf=function(g,S){return g.length===S?g:g.subarray?g.subarray(0,S):(g.length=S,g)};var l={arraySet:function(g,S,C,k,I){if(S.subarray&&g.subarray)g.set(S.subarray(C,C+k),I);else for(var w=0;w<k;w++)g[I+w]=S[C+w]},flattenChunks:function(g){var S,C,k,I,w,P;for(S=k=0,C=g.length;S<C;S++)k+=g[S].length;for(P=new Uint8Array(k),S=I=0,C=g.length;S<C;S++)w=g[S],P.set(w,I),I+=w.length;return P}},c={arraySet:function(g,S,C,k,I){for(var w=0;w<k;w++)g[I+w]=S[C+w]},flattenChunks:function(g){return[].concat.apply([],g)}};u.setTyped=function(g){g?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,l)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,c))},u.setTyped(a)},{}],42:[function(n,s,u){var a=n("./common"),l=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c=!1}for(var g=new a.Buf8(256),S=0;S<256;S++)g[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function C(k,I){if(I<65537&&(k.subarray&&c||!k.subarray&&l))return String.fromCharCode.apply(null,a.shrinkBuf(k,I));for(var w="",P=0;P<I;P++)w+=String.fromCharCode(k[P]);return w}g[254]=g[254]=1,u.string2buf=function(k){var I,w,P,_,x,d=k.length,m=0;for(_=0;_<d;_++)(64512&(w=k.charCodeAt(_)))==55296&&_+1<d&&(64512&(P=k.charCodeAt(_+1)))==56320&&(w=65536+(w-55296<<10)+(P-56320),_++),m+=w<128?1:w<2048?2:w<65536?3:4;for(I=new a.Buf8(m),_=x=0;x<m;_++)(64512&(w=k.charCodeAt(_)))==55296&&_+1<d&&(64512&(P=k.charCodeAt(_+1)))==56320&&(w=65536+(w-55296<<10)+(P-56320),_++),w<128?I[x++]=w:(w<2048?I[x++]=192|w>>>6:(w<65536?I[x++]=224|w>>>12:(I[x++]=240|w>>>18,I[x++]=128|w>>>12&63),I[x++]=128|w>>>6&63),I[x++]=128|63&w);return I},u.buf2binstring=function(k){return C(k,k.length)},u.binstring2buf=function(k){for(var I=new a.Buf8(k.length),w=0,P=I.length;w<P;w++)I[w]=k.charCodeAt(w);return I},u.buf2string=function(k,I){var w,P,_,x,d=I||k.length,m=new Array(2*d);for(w=P=0;w<d;)if((_=k[w++])<128)m[P++]=_;else if(4<(x=g[_]))m[P++]=65533,w+=x-1;else{for(_&=x===2?31:x===3?15:7;1<x&&w<d;)_=_<<6|63&k[w++],x--;1<x?m[P++]=65533:_<65536?m[P++]=_:(_-=65536,m[P++]=55296|_>>10&1023,m[P++]=56320|1023&_)}return C(m,P)},u.utf8border=function(k,I){var w;for((I=I||k.length)>k.length&&(I=k.length),w=I-1;0<=w&&(192&k[w])==128;)w--;return w<0||w===0?I:w+g[k[w]]>I?w:I}},{"./common":41}],43:[function(n,s,u){s.exports=function(a,l,c,g){for(var S=65535&a|0,C=a>>>16&65535|0,k=0;c!==0;){for(c-=k=2e3<c?2e3:c;C=C+(S=S+l[g++]|0)|0,--k;);S%=65521,C%=65521}return S|C<<16|0}},{}],44:[function(n,s,u){s.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(n,s,u){var a=(function(){for(var l,c=[],g=0;g<256;g++){l=g;for(var S=0;S<8;S++)l=1&l?3988292384^l>>>1:l>>>1;c[g]=l}return c})();s.exports=function(l,c,g,S){var C=a,k=S+g;l^=-1;for(var I=S;I<k;I++)l=l>>>8^C[255&(l^c[I])];return-1^l}},{}],46:[function(n,s,u){var a,l=n("../utils/common"),c=n("./trees"),g=n("./adler32"),S=n("./crc32"),C=n("./messages"),k=0,I=4,w=0,P=-2,_=-1,x=4,d=2,m=8,A=9,R=286,T=30,U=19,Z=2*R+1,J=15,H=3,ot=258,gt=ot+H+1,B=42,$=113,p=1,V=2,yt=3,st=4;function xt(f,X){return f.msg=C[X],X}function nt(f){return(f<<1)-(4<f?9:0)}function bt(f){for(var X=f.length;0<=--X;)f[X]=0}function G(f){var X=f.state,q=X.pending;q>f.avail_out&&(q=f.avail_out),q!==0&&(l.arraySet(f.output,X.pending_buf,X.pending_out,q,f.next_out),f.next_out+=q,X.pending_out+=q,f.total_out+=q,f.avail_out-=q,X.pending-=q,X.pending===0&&(X.pending_out=0))}function W(f,X){c._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,X),f.block_start=f.strstart,G(f.strm)}function mt(f,X){f.pending_buf[f.pending++]=X}function ht(f,X){f.pending_buf[f.pending++]=X>>>8&255,f.pending_buf[f.pending++]=255&X}function lt(f,X){var q,O,E=f.max_chain_length,D=f.strstart,et=f.prev_length,rt=f.nice_match,F=f.strstart>f.w_size-gt?f.strstart-(f.w_size-gt):0,at=f.window,ct=f.w_mask,ut=f.prev,_t=f.strstart+ot,Ft=at[D+et-1],Et=at[D+et];f.prev_length>=f.good_match&&(E>>=2),rt>f.lookahead&&(rt=f.lookahead);do if(at[(q=X)+et]===Et&&at[q+et-1]===Ft&&at[q]===at[D]&&at[++q]===at[D+1]){D+=2,q++;do;while(at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&at[++D]===at[++q]&&D<_t);if(O=ot-(_t-D),D=_t-ot,et<O){if(f.match_start=X,rt<=(et=O))break;Ft=at[D+et-1],Et=at[D+et]}}while((X=ut[X&ct])>F&&--E!=0);return et<=f.lookahead?et:f.lookahead}function Mt(f){var X,q,O,E,D,et,rt,F,at,ct,ut=f.w_size;do{if(E=f.window_size-f.lookahead-f.strstart,f.strstart>=ut+(ut-gt)){for(l.arraySet(f.window,f.window,ut,ut,0),f.match_start-=ut,f.strstart-=ut,f.block_start-=ut,X=q=f.hash_size;O=f.head[--X],f.head[X]=ut<=O?O-ut:0,--q;);for(X=q=ut;O=f.prev[--X],f.prev[X]=ut<=O?O-ut:0,--q;);E+=ut}if(f.strm.avail_in===0)break;if(et=f.strm,rt=f.window,F=f.strstart+f.lookahead,at=E,ct=void 0,ct=et.avail_in,at<ct&&(ct=at),q=ct===0?0:(et.avail_in-=ct,l.arraySet(rt,et.input,et.next_in,ct,F),et.state.wrap===1?et.adler=g(et.adler,rt,ct,F):et.state.wrap===2&&(et.adler=S(et.adler,rt,ct,F)),et.next_in+=ct,et.total_in+=ct,ct),f.lookahead+=q,f.lookahead+f.insert>=H)for(D=f.strstart-f.insert,f.ins_h=f.window[D],f.ins_h=(f.ins_h<<f.hash_shift^f.window[D+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[D+H-1])&f.hash_mask,f.prev[D&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=D,D++,f.insert--,!(f.lookahead+f.insert<H)););}while(f.lookahead<gt&&f.strm.avail_in!==0)}function $t(f,X){for(var q,O;;){if(f.lookahead<gt){if(Mt(f),f.lookahead<gt&&X===k)return p;if(f.lookahead===0)break}if(q=0,f.lookahead>=H&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),q!==0&&f.strstart-q<=f.w_size-gt&&(f.match_length=lt(f,q)),f.match_length>=H)if(O=c._tr_tally(f,f.strstart-f.match_start,f.match_length-H),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=H){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else O=c._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(O&&(W(f,!1),f.strm.avail_out===0))return p}return f.insert=f.strstart<H-1?f.strstart:H-1,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):f.last_lit&&(W(f,!1),f.strm.avail_out===0)?p:V}function Ot(f,X){for(var q,O,E;;){if(f.lookahead<gt){if(Mt(f),f.lookahead<gt&&X===k)return p;if(f.lookahead===0)break}if(q=0,f.lookahead>=H&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=H-1,q!==0&&f.prev_length<f.max_lazy_match&&f.strstart-q<=f.w_size-gt&&(f.match_length=lt(f,q),f.match_length<=5&&(f.strategy===1||f.match_length===H&&4096<f.strstart-f.match_start)&&(f.match_length=H-1)),f.prev_length>=H&&f.match_length<=f.prev_length){for(E=f.strstart+f.lookahead-H,O=c._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-H),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=E&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+H-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=H-1,f.strstart++,O&&(W(f,!1),f.strm.avail_out===0))return p}else if(f.match_available){if((O=c._tr_tally(f,0,f.window[f.strstart-1]))&&W(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return p}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(O=c._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<H-1?f.strstart:H-1,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):f.last_lit&&(W(f,!1),f.strm.avail_out===0)?p:V}function Rt(f,X,q,O,E){this.good_length=f,this.max_lazy=X,this.nice_length=q,this.max_chain=O,this.func=E}function jt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*Z),this.dyn_dtree=new l.Buf16(2*(2*T+1)),this.bl_tree=new l.Buf16(2*(2*U+1)),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(J+1),this.heap=new l.Buf16(2*R+1),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*R+1),bt(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 Kt(f){var X;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(X=f.state).pending=0,X.pending_out=0,X.wrap<0&&(X.wrap=-X.wrap),X.status=X.wrap?B:$,f.adler=X.wrap===2?0:1,X.last_flush=k,c._tr_init(X),w):xt(f,P)}function he(f){var X=Kt(f);return X===w&&(function(q){q.window_size=2*q.w_size,bt(q.head),q.max_lazy_match=a[q.level].max_lazy,q.good_match=a[q.level].good_length,q.nice_match=a[q.level].nice_length,q.max_chain_length=a[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=H-1,q.match_available=0,q.ins_h=0})(f.state),X}function ae(f,X,q,O,E,D){if(!f)return P;var et=1;if(X===_&&(X=6),O<0?(et=0,O=-O):15<O&&(et=2,O-=16),E<1||A<E||q!==m||O<8||15<O||X<0||9<X||D<0||x<D)return xt(f,P);O===8&&(O=9);var rt=new jt;return(f.state=rt).strm=f,rt.wrap=et,rt.gzhead=null,rt.w_bits=O,rt.w_size=1<<rt.w_bits,rt.w_mask=rt.w_size-1,rt.hash_bits=E+7,rt.hash_size=1<<rt.hash_bits,rt.hash_mask=rt.hash_size-1,rt.hash_shift=~~((rt.hash_bits+H-1)/H),rt.window=new l.Buf8(2*rt.w_size),rt.head=new l.Buf16(rt.hash_size),rt.prev=new l.Buf16(rt.w_size),rt.lit_bufsize=1<<E+6,rt.pending_buf_size=4*rt.lit_bufsize,rt.pending_buf=new l.Buf8(rt.pending_buf_size),rt.d_buf=1*rt.lit_bufsize,rt.l_buf=3*rt.lit_bufsize,rt.level=X,rt.strategy=D,rt.method=q,he(f)}a=[new Rt(0,0,0,0,function(f,X){var q=65535;for(q>f.pending_buf_size-5&&(q=f.pending_buf_size-5);;){if(f.lookahead<=1){if(Mt(f),f.lookahead===0&&X===k)return p;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var O=f.block_start+q;if((f.strstart===0||f.strstart>=O)&&(f.lookahead=f.strstart-O,f.strstart=O,W(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-gt&&(W(f,!1),f.strm.avail_out===0))return p}return f.insert=0,X===I?(W(f,!0),f.strm.avail_out===0?yt:st):(f.strstart>f.block_start&&(W(f,!1),f.strm.avail_out),p)}),new Rt(4,4,8,4,$t),new Rt(4,5,16,8,$t),new Rt(4,6,32,32,$t),new Rt(4,4,16,16,Ot),new Rt(8,16,32,32,Ot),new Rt(8,16,128,128,Ot),new Rt(8,32,128,256,Ot),new Rt(32,128,258,1024,Ot),new Rt(32,258,258,4096,Ot)],u.deflateInit=function(f,X){return ae(f,X,m,15,8,0)},u.deflateInit2=ae,u.deflateReset=he,u.deflateResetKeep=Kt,u.deflateSetHeader=function(f,X){return f&&f.state?f.state.wrap!==2?P:(f.state.gzhead=X,w):P},u.deflate=function(f,X){var q,O,E,D;if(!f||!f.state||5<X||X<0)return f?xt(f,P):P;if(O=f.state,!f.output||!f.input&&f.avail_in!==0||O.status===666&&X!==I)return xt(f,f.avail_out===0?-5:P);if(O.strm=f,q=O.last_flush,O.last_flush=X,O.status===B)if(O.wrap===2)f.adler=0,mt(O,31),mt(O,139),mt(O,8),O.gzhead?(mt(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)),mt(O,255&O.gzhead.time),mt(O,O.gzhead.time>>8&255),mt(O,O.gzhead.time>>16&255),mt(O,O.gzhead.time>>24&255),mt(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),mt(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(mt(O,255&O.gzhead.extra.length),mt(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(f.adler=S(f.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(mt(O,0),mt(O,0),mt(O,0),mt(O,0),mt(O,0),mt(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),mt(O,3),O.status=$);else{var et=m+(O.w_bits-8<<4)<<8;et|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(et|=32),et+=31-et%31,O.status=$,ht(O,et),O.strstart!==0&&(ht(O,f.adler>>>16),ht(O,65535&f.adler)),f.adler=1}if(O.status===69)if(O.gzhead.extra){for(E=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending!==O.pending_buf_size));)mt(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){E=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending===O.pending_buf_size)){D=1;break}D=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,mt(O,D)}while(D!==0);O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),D===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){E=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),G(f),E=O.pending,O.pending===O.pending_buf_size)){D=1;break}D=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,mt(O,D)}while(D!==0);O.gzhead.hcrc&&O.pending>E&&(f.adler=S(f.adler,O.pending_buf,O.pending-E,E)),D===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&G(f),O.pending+2<=O.pending_buf_size&&(mt(O,255&f.adler),mt(O,f.adler>>8&255),f.adler=0,O.status=$)):O.status=$),O.pending!==0){if(G(f),f.avail_out===0)return O.last_flush=-1,w}else if(f.avail_in===0&&nt(X)<=nt(q)&&X!==I)return xt(f,-5);if(O.status===666&&f.avail_in!==0)return xt(f,-5);if(f.avail_in!==0||O.lookahead!==0||X!==k&&O.status!==666){var rt=O.strategy===2?(function(F,at){for(var ct;;){if(F.lookahead===0&&(Mt(F),F.lookahead===0)){if(at===k)return p;break}if(F.match_length=0,ct=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,ct&&(W(F,!1),F.strm.avail_out===0))return p}return F.insert=0,at===I?(W(F,!0),F.strm.avail_out===0?yt:st):F.last_lit&&(W(F,!1),F.strm.avail_out===0)?p:V})(O,X):O.strategy===3?(function(F,at){for(var ct,ut,_t,Ft,Et=F.window;;){if(F.lookahead<=ot){if(Mt(F),F.lookahead<=ot&&at===k)return p;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=H&&0<F.strstart&&(ut=Et[_t=F.strstart-1])===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]){Ft=F.strstart+ot;do;while(ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&ut===Et[++_t]&&_t<Ft);F.match_length=ot-(Ft-_t),F.match_length>F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=H?(ct=c._tr_tally(F,1,F.match_length-H),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(ct=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),ct&&(W(F,!1),F.strm.avail_out===0))return p}return F.insert=0,at===I?(W(F,!0),F.strm.avail_out===0?yt:st):F.last_lit&&(W(F,!1),F.strm.avail_out===0)?p:V})(O,X):a[O.level].func(O,X);if(rt!==yt&&rt!==st||(O.status=666),rt===p||rt===yt)return f.avail_out===0&&(O.last_flush=-1),w;if(rt===V&&(X===1?c._tr_align(O):X!==5&&(c._tr_stored_block(O,0,0,!1),X===3&&(bt(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),G(f),f.avail_out===0))return O.last_flush=-1,w}return X!==I?w:O.wrap<=0?1:(O.wrap===2?(mt(O,255&f.adler),mt(O,f.adler>>8&255),mt(O,f.adler>>16&255),mt(O,f.adler>>24&255),mt(O,255&f.total_in),mt(O,f.total_in>>8&255),mt(O,f.total_in>>16&255),mt(O,f.total_in>>24&255)):(ht(O,f.adler>>>16),ht(O,65535&f.adler)),G(f),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?w:1)},u.deflateEnd=function(f){var X;return f&&f.state?(X=f.state.status)!==B&&X!==69&&X!==73&&X!==91&&X!==103&&X!==$&&X!==666?xt(f,P):(f.state=null,X===$?xt(f,-3):w):P},u.deflateSetDictionary=function(f,X){var q,O,E,D,et,rt,F,at,ct=X.length;if(!f||!f.state||(D=(q=f.state).wrap)===2||D===1&&q.status!==B||q.lookahead)return P;for(D===1&&(f.adler=g(f.adler,X,ct,0)),q.wrap=0,ct>=q.w_size&&(D===0&&(bt(q.head),q.strstart=0,q.block_start=0,q.insert=0),at=new l.Buf8(q.w_size),l.arraySet(at,X,ct-q.w_size,q.w_size,0),X=at,ct=q.w_size),et=f.avail_in,rt=f.next_in,F=f.input,f.avail_in=ct,f.next_in=0,f.input=X,Mt(q);q.lookahead>=H;){for(O=q.strstart,E=q.lookahead-(H-1);q.ins_h=(q.ins_h<<q.hash_shift^q.window[O+H-1])&q.hash_mask,q.prev[O&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=O,O++,--E;);q.strstart=O,q.lookahead=H-1,Mt(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=H-1,q.match_available=0,f.next_in=rt,f.input=F,f.avail_in=et,q.wrap=D,w},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,s,u){s.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(n,s,u){s.exports=function(a,l){var c,g,S,C,k,I,w,P,_,x,d,m,A,R,T,U,Z,J,H,ot,gt,B,$,p,V;c=a.state,g=a.next_in,p=a.input,S=g+(a.avail_in-5),C=a.next_out,V=a.output,k=C-(l-a.avail_out),I=C+(a.avail_out-257),w=c.dmax,P=c.wsize,_=c.whave,x=c.wnext,d=c.window,m=c.hold,A=c.bits,R=c.lencode,T=c.distcode,U=(1<<c.lenbits)-1,Z=(1<<c.distbits)-1;t:do{A<15&&(m+=p[g++]<<A,A+=8,m+=p[g++]<<A,A+=8),J=R[m&U];e:for(;;){if(m>>>=H=J>>>24,A-=H,(H=J>>>16&255)===0)V[C++]=65535&J;else{if(!(16&H)){if((64&H)==0){J=R[(65535&J)+(m&(1<<H)-1)];continue e}if(32&H){c.mode=12;break t}a.msg="invalid literal/length code",c.mode=30;break t}ot=65535&J,(H&=15)&&(A<H&&(m+=p[g++]<<A,A+=8),ot+=m&(1<<H)-1,m>>>=H,A-=H),A<15&&(m+=p[g++]<<A,A+=8,m+=p[g++]<<A,A+=8),J=T[m&Z];r:for(;;){if(m>>>=H=J>>>24,A-=H,!(16&(H=J>>>16&255))){if((64&H)==0){J=T[(65535&J)+(m&(1<<H)-1)];continue r}a.msg="invalid distance code",c.mode=30;break t}if(gt=65535&J,A<(H&=15)&&(m+=p[g++]<<A,(A+=8)<H&&(m+=p[g++]<<A,A+=8)),w<(gt+=m&(1<<H)-1)){a.msg="invalid distance too far back",c.mode=30;break t}if(m>>>=H,A-=H,(H=C-k)<gt){if(_<(H=gt-H)&&c.sane){a.msg="invalid distance too far back",c.mode=30;break t}if($=d,(B=0)===x){if(B+=P-H,H<ot){for(ot-=H;V[C++]=d[B++],--H;);B=C-gt,$=V}}else if(x<H){if(B+=P+x-H,(H-=x)<ot){for(ot-=H;V[C++]=d[B++],--H;);if(B=0,x<ot){for(ot-=H=x;V[C++]=d[B++],--H;);B=C-gt,$=V}}}else if(B+=x-H,H<ot){for(ot-=H;V[C++]=d[B++],--H;);B=C-gt,$=V}for(;2<ot;)V[C++]=$[B++],V[C++]=$[B++],V[C++]=$[B++],ot-=3;ot&&(V[C++]=$[B++],1<ot&&(V[C++]=$[B++]))}else{for(B=C-gt;V[C++]=V[B++],V[C++]=V[B++],V[C++]=V[B++],2<(ot-=3););ot&&(V[C++]=V[B++],1<ot&&(V[C++]=V[B++]))}break}}break}}while(g<S&&C<I);g-=ot=A>>3,m&=(1<<(A-=ot<<3))-1,a.next_in=g,a.next_out=C,a.avail_in=g<S?S-g+5:5-(g-S),a.avail_out=C<I?I-C+257:257-(C-I),c.hold=m,c.bits=A}},{}],49:[function(n,s,u){var a=n("../utils/common"),l=n("./adler32"),c=n("./crc32"),g=n("./inffast"),S=n("./inftrees"),C=1,k=2,I=0,w=-2,P=1,_=852,x=592;function d(B){return(B>>>24&255)+(B>>>8&65280)+((65280&B)<<8)+((255&B)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(B){var $;return B&&B.state?($=B.state,B.total_in=B.total_out=$.total=0,B.msg="",$.wrap&&(B.adler=1&$.wrap),$.mode=P,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new a.Buf32(_),$.distcode=$.distdyn=new a.Buf32(x),$.sane=1,$.back=-1,I):w}function R(B){var $;return B&&B.state?(($=B.state).wsize=0,$.whave=0,$.wnext=0,A(B)):w}function T(B,$){var p,V;return B&&B.state?(V=B.state,$<0?(p=0,$=-$):(p=1+($>>4),$<48&&($&=15)),$&&($<8||15<$)?w:(V.window!==null&&V.wbits!==$&&(V.window=null),V.wrap=p,V.wbits=$,R(B))):w}function U(B,$){var p,V;return B?(V=new m,(B.state=V).window=null,(p=T(B,$))!==I&&(B.state=null),p):w}var Z,J,H=!0;function ot(B){if(H){var $;for(Z=new a.Buf32(512),J=new a.Buf32(32),$=0;$<144;)B.lens[$++]=8;for(;$<256;)B.lens[$++]=9;for(;$<280;)B.lens[$++]=7;for(;$<288;)B.lens[$++]=8;for(S(C,B.lens,0,288,Z,0,B.work,{bits:9}),$=0;$<32;)B.lens[$++]=5;S(k,B.lens,0,32,J,0,B.work,{bits:5}),H=!1}B.lencode=Z,B.lenbits=9,B.distcode=J,B.distbits=5}function gt(B,$,p,V){var yt,st=B.state;return st.window===null&&(st.wsize=1<<st.wbits,st.wnext=0,st.whave=0,st.window=new a.Buf8(st.wsize)),V>=st.wsize?(a.arraySet(st.window,$,p-st.wsize,st.wsize,0),st.wnext=0,st.whave=st.wsize):(V<(yt=st.wsize-st.wnext)&&(yt=V),a.arraySet(st.window,$,p-V,yt,st.wnext),(V-=yt)?(a.arraySet(st.window,$,p-V,V,0),st.wnext=V,st.whave=st.wsize):(st.wnext+=yt,st.wnext===st.wsize&&(st.wnext=0),st.whave<st.wsize&&(st.whave+=yt))),0}u.inflateReset=R,u.inflateReset2=T,u.inflateResetKeep=A,u.inflateInit=function(B){return U(B,15)},u.inflateInit2=U,u.inflate=function(B,$){var p,V,yt,st,xt,nt,bt,G,W,mt,ht,lt,Mt,$t,Ot,Rt,jt,Kt,he,ae,f,X,q,O,E=0,D=new a.Buf8(4),et=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!B||!B.state||!B.output||!B.input&&B.avail_in!==0)return w;(p=B.state).mode===12&&(p.mode=13),xt=B.next_out,yt=B.output,bt=B.avail_out,st=B.next_in,V=B.input,nt=B.avail_in,G=p.hold,W=p.bits,mt=nt,ht=bt,X=I;t:for(;;)switch(p.mode){case P:if(p.wrap===0){p.mode=13;break}for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(2&p.wrap&&G===35615){D[p.check=0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0),W=G=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&G)<<8)+(G>>8))%31){B.msg="incorrect header check",p.mode=30;break}if((15&G)!=8){B.msg="unknown compression method",p.mode=30;break}if(W-=4,f=8+(15&(G>>>=4)),p.wbits===0)p.wbits=f;else if(f>p.wbits){B.msg="invalid window size",p.mode=30;break}p.dmax=1<<f,B.adler=p.check=1,p.mode=512&G?10:12,W=G=0;break;case 2:for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(p.flags=G,(255&p.flags)!=8){B.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){B.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=G>>8&1),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0,p.mode=3;case 3:for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.head&&(p.head.time=G),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,D[2]=G>>>16&255,D[3]=G>>>24&255,p.check=c(p.check,D,4,0)),W=G=0,p.mode=4;case 4:for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.head&&(p.head.xflags=255&G,p.head.os=G>>8),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0,p.mode=5;case 5:if(1024&p.flags){for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.length=G,p.head&&(p.head.extra_len=G),512&p.flags&&(D[0]=255&G,D[1]=G>>>8&255,p.check=c(p.check,D,2,0)),W=G=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(nt<(lt=p.length)&&(lt=nt),lt&&(p.head&&(f=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),a.arraySet(p.head.extra,V,st,lt,f)),512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,p.length-=lt),p.length))break t;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(nt===0)break t;for(lt=0;f=V[st+lt++],p.head&&f&&p.length<65536&&(p.head.name+=String.fromCharCode(f)),f&<<nt;);if(512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,f)break t}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(nt===0)break t;for(lt=0;f=V[st+lt++],p.head&&f&&p.length<65536&&(p.head.comment+=String.fromCharCode(f)),f&<<nt;);if(512&p.flags&&(p.check=c(p.check,V,lt,st)),nt-=lt,st+=lt,f)break t}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;W<16;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G!==(65535&p.check)){B.msg="header crc mismatch",p.mode=30;break}W=G=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),B.adler=p.check=0,p.mode=12;break;case 10:for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}B.adler=p.check=d(G),W=G=0,p.mode=11;case 11:if(p.havedict===0)return B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,2;B.adler=p.check=1,p.mode=12;case 12:if($===5||$===6)break t;case 13:if(p.last){G>>>=7&W,W-=7&W,p.mode=27;break}for(;W<3;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}switch(p.last=1&G,W-=1,3&(G>>>=1)){case 0:p.mode=14;break;case 1:if(ot(p),p.mode=20,$!==6)break;G>>>=2,W-=2;break t;case 2:p.mode=17;break;case 3:B.msg="invalid block type",p.mode=30}G>>>=2,W-=2;break;case 14:for(G>>>=7&W,W-=7&W;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if((65535&G)!=(G>>>16^65535)){B.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&G,W=G=0,p.mode=15,$===6)break t;case 15:p.mode=16;case 16:if(lt=p.length){if(nt<lt&&(lt=nt),bt<lt&&(lt=bt),lt===0)break t;a.arraySet(yt,V,st,lt,xt),nt-=lt,st+=lt,bt-=lt,xt+=lt,p.length-=lt;break}p.mode=12;break;case 17:for(;W<14;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(p.nlen=257+(31&G),G>>>=5,W-=5,p.ndist=1+(31&G),G>>>=5,W-=5,p.ncode=4+(15&G),G>>>=4,W-=4,286<p.nlen||30<p.ndist){B.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;W<3;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.lens[et[p.have++]]=7&G,G>>>=3,W-=3}for(;p.have<19;)p.lens[et[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,q={bits:p.lenbits},X=S(0,p.lens,0,19,p.lencode,0,p.work,q),p.lenbits=q.bits,X){B.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;Rt=(E=p.lencode[G&(1<<p.lenbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(jt<16)G>>>=Ot,W-=Ot,p.lens[p.have++]=jt;else{if(jt===16){for(O=Ot+2;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G>>>=Ot,W-=Ot,p.have===0){B.msg="invalid bit length repeat",p.mode=30;break}f=p.lens[p.have-1],lt=3+(3&G),G>>>=2,W-=2}else if(jt===17){for(O=Ot+3;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}W-=Ot,f=0,lt=3+(7&(G>>>=Ot)),G>>>=3,W-=3}else{for(O=Ot+7;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}W-=Ot,f=0,lt=11+(127&(G>>>=Ot)),G>>>=7,W-=7}if(p.have+lt>p.nlen+p.ndist){B.msg="invalid bit length repeat",p.mode=30;break}for(;lt--;)p.lens[p.have++]=f}}if(p.mode===30)break;if(p.lens[256]===0){B.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,q={bits:p.lenbits},X=S(C,p.lens,0,p.nlen,p.lencode,0,p.work,q),p.lenbits=q.bits,X){B.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,q={bits:p.distbits},X=S(k,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,q),p.distbits=q.bits,X){B.msg="invalid distances set",p.mode=30;break}if(p.mode=20,$===6)break t;case 20:p.mode=21;case 21:if(6<=nt&&258<=bt){B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,g(B,ht),xt=B.next_out,yt=B.output,bt=B.avail_out,st=B.next_in,V=B.input,nt=B.avail_in,G=p.hold,W=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;Rt=(E=p.lencode[G&(1<<p.lenbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(Rt&&(240&Rt)==0){for(Kt=Ot,he=Rt,ae=jt;Rt=(E=p.lencode[ae+((G&(1<<Kt+he)-1)>>Kt)])>>>16&255,jt=65535&E,!(Kt+(Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}G>>>=Kt,W-=Kt,p.back+=Kt}if(G>>>=Ot,W-=Ot,p.back+=Ot,p.length=jt,Rt===0){p.mode=26;break}if(32&Rt){p.back=-1,p.mode=12;break}if(64&Rt){B.msg="invalid literal/length code",p.mode=30;break}p.extra=15&Rt,p.mode=22;case 22:if(p.extra){for(O=p.extra;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.length+=G&(1<<p.extra)-1,G>>>=p.extra,W-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;Rt=(E=p.distcode[G&(1<<p.distbits)-1])>>>16&255,jt=65535&E,!((Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if((240&Rt)==0){for(Kt=Ot,he=Rt,ae=jt;Rt=(E=p.distcode[ae+((G&(1<<Kt+he)-1)>>Kt)])>>>16&255,jt=65535&E,!(Kt+(Ot=E>>>24)<=W);){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}G>>>=Kt,W-=Kt,p.back+=Kt}if(G>>>=Ot,W-=Ot,p.back+=Ot,64&Rt){B.msg="invalid distance code",p.mode=30;break}p.offset=jt,p.extra=15&Rt,p.mode=24;case 24:if(p.extra){for(O=p.extra;W<O;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}p.offset+=G&(1<<p.extra)-1,G>>>=p.extra,W-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){B.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(bt===0)break t;if(lt=ht-bt,p.offset>lt){if((lt=p.offset-lt)>p.whave&&p.sane){B.msg="invalid distance too far back",p.mode=30;break}Mt=lt>p.wnext?(lt-=p.wnext,p.wsize-lt):p.wnext-lt,lt>p.length&&(lt=p.length),$t=p.window}else $t=yt,Mt=xt-p.offset,lt=p.length;for(bt<lt&&(lt=bt),bt-=lt,p.length-=lt;yt[xt++]=$t[Mt++],--lt;);p.length===0&&(p.mode=21);break;case 26:if(bt===0)break t;yt[xt++]=p.length,bt--,p.mode=21;break;case 27:if(p.wrap){for(;W<32;){if(nt===0)break t;nt--,G|=V[st++]<<W,W+=8}if(ht-=bt,B.total_out+=ht,p.total+=ht,ht&&(B.adler=p.check=p.flags?c(p.check,yt,ht,xt-ht):l(p.check,yt,ht,xt-ht)),ht=bt,(p.flags?G:d(G))!==p.check){B.msg="incorrect data check",p.mode=30;break}W=G=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;W<32;){if(nt===0)break t;nt--,G+=V[st++]<<W,W+=8}if(G!==(4294967295&p.total)){B.msg="incorrect length check",p.mode=30;break}W=G=0}p.mode=29;case 29:X=1;break t;case 30:X=-3;break t;case 31:return-4;case 32:default:return w}return B.next_out=xt,B.avail_out=bt,B.next_in=st,B.avail_in=nt,p.hold=G,p.bits=W,(p.wsize||ht!==B.avail_out&&p.mode<30&&(p.mode<27||$!==4))&>(B,B.output,B.next_out,ht-B.avail_out)?(p.mode=31,-4):(mt-=B.avail_in,ht-=B.avail_out,B.total_in+=mt,B.total_out+=ht,p.total+=ht,p.wrap&&ht&&(B.adler=p.check=p.flags?c(p.check,yt,ht,B.next_out-ht):l(p.check,yt,ht,B.next_out-ht)),B.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(mt==0&&ht===0||$===4)&&X===I&&(X=-5),X)},u.inflateEnd=function(B){if(!B||!B.state)return w;var $=B.state;return $.window&&($.window=null),B.state=null,I},u.inflateGetHeader=function(B,$){var p;return B&&B.state?(2&(p=B.state).wrap)==0?w:((p.head=$).done=!1,I):w},u.inflateSetDictionary=function(B,$){var p,V=$.length;return B&&B.state?(p=B.state).wrap!==0&&p.mode!==11?w:p.mode===11&&l(1,$,V,0)!==p.check?-3:gt(B,$,V,V)?(p.mode=31,-4):(p.havedict=1,I):w},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,s,u){var a=n("../utils/common"),l=[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],c=[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],g=[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];s.exports=function(C,k,I,w,P,_,x,d){var m,A,R,T,U,Z,J,H,ot,gt=d.bits,B=0,$=0,p=0,V=0,yt=0,st=0,xt=0,nt=0,bt=0,G=0,W=null,mt=0,ht=new a.Buf16(16),lt=new a.Buf16(16),Mt=null,$t=0;for(B=0;B<=15;B++)ht[B]=0;for($=0;$<w;$++)ht[k[I+$]]++;for(yt=gt,V=15;1<=V&&ht[V]===0;V--);if(V<yt&&(yt=V),V===0)return P[_++]=20971520,P[_++]=20971520,d.bits=1,0;for(p=1;p<V&&ht[p]===0;p++);for(yt<p&&(yt=p),B=nt=1;B<=15;B++)if(nt<<=1,(nt-=ht[B])<0)return-1;if(0<nt&&(C===0||V!==1))return-1;for(lt[1]=0,B=1;B<15;B++)lt[B+1]=lt[B]+ht[B];for($=0;$<w;$++)k[I+$]!==0&&(x[lt[k[I+$]]++]=$);if(Z=C===0?(W=Mt=x,19):C===1?(W=l,mt-=257,Mt=c,$t-=257,256):(W=g,Mt=S,-1),B=p,U=_,xt=$=G=0,R=-1,T=(bt=1<<(st=yt))-1,C===1&&852<bt||C===2&&592<bt)return 1;for(;;){for(J=B-xt,ot=x[$]<Z?(H=0,x[$]):x[$]>Z?(H=Mt[$t+x[$]],W[mt+x[$]]):(H=96,0),m=1<<B-xt,p=A=1<<st;P[U+(G>>xt)+(A-=m)]=J<<24|H<<16|ot|0,A!==0;);for(m=1<<B-1;G&m;)m>>=1;if(m!==0?(G&=m-1,G+=m):G=0,$++,--ht[B]==0){if(B===V)break;B=k[I+x[$]]}if(yt<B&&(G&T)!==R){for(xt===0&&(xt=yt),U+=p,nt=1<<(st=B-xt);st+xt<V&&!((nt-=ht[st+xt])<=0);)st++,nt<<=1;if(bt+=1<<st,C===1&&852<bt||C===2&&592<bt)return 1;P[R=G&T]=yt<<24|st<<16|U-_|0}}return G!==0&&(P[U+G]=B-xt<<24|64<<16|0),d.bits=yt,0}},{"../utils/common":41}],51:[function(n,s,u){s.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(n,s,u){var a=n("../utils/common"),l=0,c=1;function g(E){for(var D=E.length;0<=--D;)E[D]=0}var S=0,C=29,k=256,I=k+1+C,w=30,P=19,_=2*I+1,x=15,d=16,m=7,A=256,R=16,T=17,U=18,Z=[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],J=[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],H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ot=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gt=new Array(2*(I+2));g(gt);var B=new Array(2*w);g(B);var $=new Array(512);g($);var p=new Array(256);g(p);var V=new Array(C);g(V);var yt,st,xt,nt=new Array(w);function bt(E,D,et,rt,F){this.static_tree=E,this.extra_bits=D,this.extra_base=et,this.elems=rt,this.max_length=F,this.has_stree=E&&E.length}function G(E,D){this.dyn_tree=E,this.max_code=0,this.stat_desc=D}function W(E){return E<256?$[E]:$[256+(E>>>7)]}function mt(E,D){E.pending_buf[E.pending++]=255&D,E.pending_buf[E.pending++]=D>>>8&255}function ht(E,D,et){E.bi_valid>d-et?(E.bi_buf|=D<<E.bi_valid&65535,mt(E,E.bi_buf),E.bi_buf=D>>d-E.bi_valid,E.bi_valid+=et-d):(E.bi_buf|=D<<E.bi_valid&65535,E.bi_valid+=et)}function lt(E,D,et){ht(E,et[2*D],et[2*D+1])}function Mt(E,D){for(var et=0;et|=1&E,E>>>=1,et<<=1,0<--D;);return et>>>1}function $t(E,D,et){var rt,F,at=new Array(x+1),ct=0;for(rt=1;rt<=x;rt++)at[rt]=ct=ct+et[rt-1]<<1;for(F=0;F<=D;F++){var ut=E[2*F+1];ut!==0&&(E[2*F]=Mt(at[ut]++,ut))}}function Ot(E){var D;for(D=0;D<I;D++)E.dyn_ltree[2*D]=0;for(D=0;D<w;D++)E.dyn_dtree[2*D]=0;for(D=0;D<P;D++)E.bl_tree[2*D]=0;E.dyn_ltree[2*A]=1,E.opt_len=E.static_len=0,E.last_lit=E.matches=0}function Rt(E){8<E.bi_valid?mt(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 jt(E,D,et,rt){var F=2*D,at=2*et;return E[F]<E[at]||E[F]===E[at]&&rt[D]<=rt[et]}function Kt(E,D,et){for(var rt=E.heap[et],F=et<<1;F<=E.heap_len&&(F<E.heap_len&&jt(D,E.heap[F+1],E.heap[F],E.depth)&&F++,!jt(D,rt,E.heap[F],E.depth));)E.heap[et]=E.heap[F],et=F,F<<=1;E.heap[et]=rt}function he(E,D,et){var rt,F,at,ct,ut=0;if(E.last_lit!==0)for(;rt=E.pending_buf[E.d_buf+2*ut]<<8|E.pending_buf[E.d_buf+2*ut+1],F=E.pending_buf[E.l_buf+ut],ut++,rt===0?lt(E,F,D):(lt(E,(at=p[F])+k+1,D),(ct=Z[at])!==0&&ht(E,F-=V[at],ct),lt(E,at=W(--rt),et),(ct=J[at])!==0&&ht(E,rt-=nt[at],ct)),ut<E.last_lit;);lt(E,A,D)}function ae(E,D){var et,rt,F,at=D.dyn_tree,ct=D.stat_desc.static_tree,ut=D.stat_desc.has_stree,_t=D.stat_desc.elems,Ft=-1;for(E.heap_len=0,E.heap_max=_,et=0;et<_t;et++)at[2*et]!==0?(E.heap[++E.heap_len]=Ft=et,E.depth[et]=0):at[2*et+1]=0;for(;E.heap_len<2;)at[2*(F=E.heap[++E.heap_len]=Ft<2?++Ft:0)]=1,E.depth[F]=0,E.opt_len--,ut&&(E.static_len-=ct[2*F+1]);for(D.max_code=Ft,et=E.heap_len>>1;1<=et;et--)Kt(E,at,et);for(F=_t;et=E.heap[1],E.heap[1]=E.heap[E.heap_len--],Kt(E,at,1),rt=E.heap[1],E.heap[--E.heap_max]=et,E.heap[--E.heap_max]=rt,at[2*F]=at[2*et]+at[2*rt],E.depth[F]=(E.depth[et]>=E.depth[rt]?E.depth[et]:E.depth[rt])+1,at[2*et+1]=at[2*rt+1]=F,E.heap[1]=F++,Kt(E,at,1),2<=E.heap_len;);E.heap[--E.heap_max]=E.heap[1],(function(Et,Vt){var $e,me,Je,Zt,ur,wr,xe=Vt.dyn_tree,Rr=Vt.max_code,Xr=Vt.stat_desc.static_tree,ni=Vt.stat_desc.has_stree,ii=Vt.stat_desc.extra_bits,hn=Vt.stat_desc.extra_base,lr=Vt.stat_desc.max_length,xr=0;for(Zt=0;Zt<=x;Zt++)Et.bl_count[Zt]=0;for(xe[2*Et.heap[Et.heap_max]+1]=0,$e=Et.heap_max+1;$e<_;$e++)lr<(Zt=xe[2*xe[2*(me=Et.heap[$e])+1]+1]+1)&&(Zt=lr,xr++),xe[2*me+1]=Zt,Rr<me||(Et.bl_count[Zt]++,ur=0,hn<=me&&(ur=ii[me-hn]),wr=xe[2*me],Et.opt_len+=wr*(Zt+ur),ni&&(Et.static_len+=wr*(Xr[2*me+1]+ur)));if(xr!==0){do{for(Zt=lr-1;Et.bl_count[Zt]===0;)Zt--;Et.bl_count[Zt]--,Et.bl_count[Zt+1]+=2,Et.bl_count[lr]--,xr-=2}while(0<xr);for(Zt=lr;Zt!==0;Zt--)for(me=Et.bl_count[Zt];me!==0;)Rr<(Je=Et.heap[--$e])||(xe[2*Je+1]!==Zt&&(Et.opt_len+=(Zt-xe[2*Je+1])*xe[2*Je],xe[2*Je+1]=Zt),me--)}})(E,D),$t(at,Ft,E.bl_count)}function f(E,D,et){var rt,F,at=-1,ct=D[1],ut=0,_t=7,Ft=4;for(ct===0&&(_t=138,Ft=3),D[2*(et+1)+1]=65535,rt=0;rt<=et;rt++)F=ct,ct=D[2*(rt+1)+1],++ut<_t&&F===ct||(ut<Ft?E.bl_tree[2*F]+=ut:F!==0?(F!==at&&E.bl_tree[2*F]++,E.bl_tree[2*R]++):ut<=10?E.bl_tree[2*T]++:E.bl_tree[2*U]++,at=F,Ft=(ut=0)===ct?(_t=138,3):F===ct?(_t=6,3):(_t=7,4))}function X(E,D,et){var rt,F,at=-1,ct=D[1],ut=0,_t=7,Ft=4;for(ct===0&&(_t=138,Ft=3),rt=0;rt<=et;rt++)if(F=ct,ct=D[2*(rt+1)+1],!(++ut<_t&&F===ct)){if(ut<Ft)for(;lt(E,F,E.bl_tree),--ut!=0;);else F!==0?(F!==at&&(lt(E,F,E.bl_tree),ut--),lt(E,R,E.bl_tree),ht(E,ut-3,2)):ut<=10?(lt(E,T,E.bl_tree),ht(E,ut-3,3)):(lt(E,U,E.bl_tree),ht(E,ut-11,7));at=F,Ft=(ut=0)===ct?(_t=138,3):F===ct?(_t=6,3):(_t=7,4)}}g(nt);var q=!1;function O(E,D,et,rt){ht(E,(S<<1)+(rt?1:0),3),(function(F,at,ct,ut){Rt(F),mt(F,ct),mt(F,~ct),a.arraySet(F.pending_buf,F.window,at,ct,F.pending),F.pending+=ct})(E,D,et)}u._tr_init=function(E){q||((function(){var D,et,rt,F,at,ct=new Array(x+1);for(F=rt=0;F<C-1;F++)for(V[F]=rt,D=0;D<1<<Z[F];D++)p[rt++]=F;for(p[rt-1]=F,F=at=0;F<16;F++)for(nt[F]=at,D=0;D<1<<J[F];D++)$[at++]=F;for(at>>=7;F<w;F++)for(nt[F]=at<<7,D=0;D<1<<J[F]-7;D++)$[256+at++]=F;for(et=0;et<=x;et++)ct[et]=0;for(D=0;D<=143;)gt[2*D+1]=8,D++,ct[8]++;for(;D<=255;)gt[2*D+1]=9,D++,ct[9]++;for(;D<=279;)gt[2*D+1]=7,D++,ct[7]++;for(;D<=287;)gt[2*D+1]=8,D++,ct[8]++;for($t(gt,I+1,ct),D=0;D<w;D++)B[2*D+1]=5,B[2*D]=Mt(D,5);yt=new bt(gt,Z,k+1,I,x),st=new bt(B,J,0,w,x),xt=new bt(new Array(0),H,0,P,m)})(),q=!0),E.l_desc=new G(E.dyn_ltree,yt),E.d_desc=new G(E.dyn_dtree,st),E.bl_desc=new G(E.bl_tree,xt),E.bi_buf=0,E.bi_valid=0,Ot(E)},u._tr_stored_block=O,u._tr_flush_block=function(E,D,et,rt){var F,at,ct=0;0<E.level?(E.strm.data_type===2&&(E.strm.data_type=(function(ut){var _t,Ft=4093624447;for(_t=0;_t<=31;_t++,Ft>>>=1)if(1&Ft&&ut.dyn_ltree[2*_t]!==0)return l;if(ut.dyn_ltree[18]!==0||ut.dyn_ltree[20]!==0||ut.dyn_ltree[26]!==0)return c;for(_t=32;_t<k;_t++)if(ut.dyn_ltree[2*_t]!==0)return c;return l})(E)),ae(E,E.l_desc),ae(E,E.d_desc),ct=(function(ut){var _t;for(f(ut,ut.dyn_ltree,ut.l_desc.max_code),f(ut,ut.dyn_dtree,ut.d_desc.max_code),ae(ut,ut.bl_desc),_t=P-1;3<=_t&&ut.bl_tree[2*ot[_t]+1]===0;_t--);return ut.opt_len+=3*(_t+1)+5+5+4,_t})(E),F=E.opt_len+3+7>>>3,(at=E.static_len+3+7>>>3)<=F&&(F=at)):F=at=et+5,et+4<=F&&D!==-1?O(E,D,et,rt):E.strategy===4||at===F?(ht(E,2+(rt?1:0),3),he(E,gt,B)):(ht(E,4+(rt?1:0),3),(function(ut,_t,Ft,Et){var Vt;for(ht(ut,_t-257,5),ht(ut,Ft-1,5),ht(ut,Et-4,4),Vt=0;Vt<Et;Vt++)ht(ut,ut.bl_tree[2*ot[Vt]+1],3);X(ut,ut.dyn_ltree,_t-1),X(ut,ut.dyn_dtree,Ft-1)})(E,E.l_desc.max_code+1,E.d_desc.max_code+1,ct+1),he(E,E.dyn_ltree,E.dyn_dtree)),Ot(E),rt&&Rt(E)},u._tr_tally=function(E,D,et){return E.pending_buf[E.d_buf+2*E.last_lit]=D>>>8&255,E.pending_buf[E.d_buf+2*E.last_lit+1]=255&D,E.pending_buf[E.l_buf+E.last_lit]=255&et,E.last_lit++,D===0?E.dyn_ltree[2*et]++:(E.matches++,D--,E.dyn_ltree[2*(p[et]+k+1)]++,E.dyn_dtree[2*W(D)]++),E.last_lit===E.lit_bufsize-1},u._tr_align=function(E){ht(E,2,3),lt(E,A,gt),(function(D){D.bi_valid===16?(mt(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)})(E)}},{"../utils/common":41}],53:[function(n,s,u){s.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(n,s,u){(function(a){(function(l,c){if(!l.setImmediate){var g,S,C,k,I=1,w={},P=!1,_=l.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(l);x=x&&x.setTimeout?x:l,g={}.toString.call(l.process)==="[object process]"?function(R){process.nextTick(function(){m(R)})}:(function(){if(l.postMessage&&!l.importScripts){var R=!0,T=l.onmessage;return l.onmessage=function(){R=!1},l.postMessage("","*"),l.onmessage=T,R}})()?(k="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",A,!1):l.attachEvent("onmessage",A),function(R){l.postMessage(k+R,"*")}):l.MessageChannel?((C=new MessageChannel).port1.onmessage=function(R){m(R.data)},function(R){C.port2.postMessage(R)}):_&&"onreadystatechange"in _.createElement("script")?(S=_.documentElement,function(R){var T=_.createElement("script");T.onreadystatechange=function(){m(R),T.onreadystatechange=null,S.removeChild(T),T=null},S.appendChild(T)}):function(R){setTimeout(m,0,R)},x.setImmediate=function(R){typeof R!="function"&&(R=new Function(""+R));for(var T=new Array(arguments.length-1),U=0;U<T.length;U++)T[U]=arguments[U+1];var Z={callback:R,args:T};return w[I]=Z,g(I),I++},x.clearImmediate=d}function d(R){delete w[R]}function m(R){if(P)setTimeout(m,0,R);else{var T=w[R];if(T){P=!0;try{(function(U){var Z=U.callback,J=U.args;switch(J.length){case 0:Z();break;case 1:Z(J[0]);break;case 2:Z(J[0],J[1]);break;case 3:Z(J[0],J[1],J[2]);break;default:Z.apply(c,J)}})(T)}finally{d(R),P=!1}}}}function A(R){R.source===l&&typeof R.data=="string"&&R.data.indexOf(k)===0&&m(+R.data.slice(k.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof yr<"u"?yr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ys)),ys.exports}var og=ag();const ug=tg(og);var ks=function(v,o){return ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])},ks(v,o)};function vu(v,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");ks(v,o);function n(){this.constructor=v}v.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}var Oe=function(){return Oe=Object.assign||function(o){for(var n,s=1,u=arguments.length;s<u;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}return o},Oe.apply(this,arguments)};function fe(v,o,n,s){function u(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function c(C){try{S(s.next(C))}catch(k){l(k)}}function g(C){try{S(s.throw(C))}catch(k){l(k)}}function S(C){C.done?a(C.value):u(C.value).then(c,g)}S((s=s.apply(v,o||[])).next())})}function ce(v,o){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,u,a,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(S){return function(C){return g([S,C])}}function g(S){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,S[0]&&(n=0)),n;)try{if(s=1,u&&(a=S[0]&2?u.return:S[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,S[1])).done)return a;switch(u=0,a&&(S=[S[0]&2,a.value]),S[0]){case 0:case 1:a=S;break;case 4:return n.label++,{value:S[1],done:!1};case 5:n.label++,u=S[1],S=[0];continue;case 7:S=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(S[0]===6||S[0]===2)){n=0;continue}if(S[0]===3&&(!a||S[1]>a[0]&&S[1]<a[3])){n.label=S[1];break}if(S[0]===6&&n.label<a[1]){n.label=a[1],a=S;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(S);break}a[2]&&n.ops.pop(),n.trys.pop();continue}S=o.call(v,n)}catch(C){S=[6,C],u=0}finally{s=a=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function bs(v,o,n){if(n||arguments.length===2)for(var s=0,u=o.length,a;s<u;s++)(a||!(s in o))&&(a||(a=Array.prototype.slice.call(o,0,s)),a[s]=o[s]);return v.concat(a||Array.prototype.slice.call(o))}var cn={exports:{}};/**
|
|
13
13
|
* @license
|
|
14
14
|
* Lodash <https://lodash.com/>
|
|
15
15
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -35,5 +35,5 @@ __p += '`),Bt&&(it+=`' +
|
|
|
35
35
|
function print() { __p += __j.call(arguments, '') }
|
|
36
36
|
`:`;
|
|
37
37
|
`)+it+`return __p
|
|
38
|
-
}`;var It=tu(function(){return zt(b,pt+"return "+it).apply(n,L)});if(It.source=it,as(It))throw It;return It}function o0(t){return Dt(t).toLowerCase()}function u0(t){return Dt(t).toUpperCase()}function l0(t,e,r){if(t=Dt(t),t&&(r||e===n))return oa(t);if(!t||!(e=Ce(e)))return t;var i=We(t),h=We(e),b=ua(i,h),L=la(i,h)+1;return mr(i,b,L).join("")}function f0(t,e,r){if(t=Dt(t),t&&(r||e===n))return t.slice(0,ca(t)+1);if(!t||!(e=Ce(e)))return t;var i=We(t),h=la(i,We(e))+1;return mr(i,0,h).join("")}function c0(t,e,r){if(t=Dt(t),t&&(r||e===n))return t.replace(ai,"");if(!t||!(e=Ce(e)))return t;var i=We(t),h=ua(i,We(e));return mr(i,h).join("")}function h0(t,e){var r=gt,i=B;if(qt(e)){var h="separator"in e?e.separator:h;r="length"in e?Ct(e.length):r,i="omission"in e?Ce(e.omission):i}t=Dt(t);var b=t.length;if(zr(t)){var L=We(t);b=L.length}if(r>=b)return t;var z=r-Nr(i);if(z<1)return i;var M=L?mr(L,0,z).join(""):t.slice(0,z);if(h===n)return M+i;if(L&&(z+=M.length-z),os(h)){if(t.slice(z).search(h)){var Q,tt=M;for(h.global||(h=Ai(h.source,Dt(Ps.exec(h))+"g")),h.lastIndex=0;Q=h.exec(tt);)var it=Q.index;M=M.slice(0,it===n?z:it)}}else if(t.indexOf(Ce(h),z)!=z){var ft=M.lastIndexOf(h);ft>-1&&(M=M.slice(0,ft))}return M+i}function d0(t){return t=Dt(t),t&&Su.test(t)?t.replace(lr,Zl):t}var p0=Hr(function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}),cs=Va("toUpperCase");function Vo(t,e,r){return t=Dt(t),e=r?n:e,e===n?Dl(t)?Gl(t):Il(t):t.match(e)||[]}var tu=Pt(function(t,e){try{return Ae(t,n,e)}catch(r){return as(r)?r:new kt(r)}}),g0=er(function(t,e){return ke(e,function(r){r=He(r),Ke(t,r,is(t[r],t))}),t});function _0(t){var e=t==null?0:t.length,r=wt();return t=e?Gt(t,function(i){if(typeof i[1]!="function")throw new Be(l);return[r(i[0]),i[1]]}):[],Pt(function(i){for(var h=-1;++h<e;){var b=t[h];if(Ae(b[0],this,i))return Ae(b[1],this,i)}})}function m0(t){return Hf(Ne(t,I))}function hs(t){return function(){return t}}function v0(t,e){return t==null||t!==t?e:t}var y0=eo(),b0=eo(!0);function we(t){return t}function ds(t){return Oa(typeof t=="function"?t:Ne(t,I))}function w0(t){return La(Ne(t,I))}function x0(t,e){return Ba(t,Ne(e,I))}var A0=Pt(function(t,e){return function(r){return nn(r,t,e)}}),k0=Pt(function(t,e){return function(r){return nn(t,r,e)}});function ps(t,e,r){var i=re(e),h=zn(e,i);r==null&&!(qt(e)&&(h.length||!i.length))&&(r=e,e=t,t=this,h=zn(e,re(e)));var b=!(qt(r)&&"chain"in r)||!!r.chain,L=nr(t);return ke(h,function(z){var M=e[z];t[z]=M,L&&(t.prototype[z]=function(){var Q=this.__chain__;if(b||Q){var tt=t(this.__wrapped__),it=tt.__actions__=ve(this.__actions__);return it.push({func:M,args:arguments,thisArg:t}),tt.__chain__=Q,tt}return M.apply(t,cr([this.value()],arguments))})}),t}function S0(){return ne._===this&&(ne._=Jl),this}function gs(){}function C0(t){return t=Ct(t),Pt(function(e){return za(e,t)})}var E0=Gi(Gt),I0=Gi(ra),P0=Gi(_i);function eu(t){return Qi(t)?mi(He(t)):ac(t)}function T0(t){return function(e){return t==null?n:Ir(t,e)}}var O0=no(),R0=no(!0);function _s(){return[]}function ms(){return!1}function L0(){return{}}function B0(){return""}function z0(){return!0}function N0(t,e){if(t=Ct(t),t<1||t>nt)return[];var r=W,i=oe(t,W);e=wt(e),t-=W;for(var h=bi(i,e);++r<t;)e(r);return h}function D0(t){return St(t)?Gt(t,He):Ee(t)?[t]:ve(bo(Dt(t)))}function M0(t){var e=++Yl;return Dt(t)+e}var F0=Wn(function(t,e){return t+e},0),U0=Ki("ceil"),W0=Wn(function(t,e){return t/e},1),Z0=Ki("floor");function H0(t){return t&&t.length?Bn(t,we,Oi):n}function j0(t,e){return t&&t.length?Bn(t,wt(e,2),Oi):n}function G0(t){return sa(t,we)}function K0(t,e){return sa(t,wt(e,2))}function q0(t){return t&&t.length?Bn(t,we,zi):n}function X0(t,e){return t&&t.length?Bn(t,wt(e,2),zi):n}var Y0=Wn(function(t,e){return t*e},1),$0=Ki("round"),J0=Wn(function(t,e){return t-e},0);function Q0(t){return t&&t.length?yi(t,we):0}function V0(t,e){return t&&t.length?yi(t,wt(e,2)):0}return y.after=xd,y.ary=Oo,y.assign=lp,y.assignIn=Go,y.assignInWith=Ko,y.assignWith=us,y.at=fp,y.before=Ro,y.bind=is,y.bindAll=g0,y.bindKey=Lo,y.castArray=Bd,y.chain=Io,y.chunk=Hc,y.compact=jc,y.concat=Gc,y.cond=_0,y.conforms=m0,y.constant=hs,y.countBy=Vh,y.create=cp,y.curry=Bo,y.curryRight=zo,y.debounce=No,y.defaults=hp,y.defaultsDeep=dp,y.defer=Ad,y.delay=kd,y.difference=Kc,y.differenceBy=qc,y.differenceWith=Xc,y.drop=Yc,y.dropRight=$c,y.dropRightWhile=Jc,y.dropWhile=Qc,y.fill=Vc,y.filter=ed,y.flatMap=id,y.flatMapDeep=sd,y.flatMapDepth=ad,y.flatten=ko,y.flattenDeep=th,y.flattenDepth=eh,y.flip=Sd,y.flow=y0,y.flowRight=b0,y.fromPairs=rh,y.functions=bp,y.functionsIn=wp,y.groupBy=od,y.initial=ih,y.intersection=sh,y.intersectionBy=ah,y.intersectionWith=oh,y.invert=Ap,y.invertBy=kp,y.invokeMap=ld,y.iteratee=ds,y.keyBy=fd,y.keys=re,y.keysIn=be,y.map=Xn,y.mapKeys=Cp,y.mapValues=Ep,y.matches=w0,y.matchesProperty=x0,y.memoize=$n,y.merge=Ip,y.mergeWith=qo,y.method=A0,y.methodOf=k0,y.mixin=ps,y.negate=Jn,y.nthArg=C0,y.omit=Pp,y.omitBy=Tp,y.once=Cd,y.orderBy=cd,y.over=E0,y.overArgs=Ed,y.overEvery=I0,y.overSome=P0,y.partial=ss,y.partialRight=Do,y.partition=hd,y.pick=Op,y.pickBy=Xo,y.property=eu,y.propertyOf=T0,y.pull=ch,y.pullAll=Co,y.pullAllBy=hh,y.pullAllWith=dh,y.pullAt=ph,y.range=O0,y.rangeRight=R0,y.rearg=Id,y.reject=gd,y.remove=gh,y.rest=Pd,y.reverse=rs,y.sampleSize=md,y.set=Lp,y.setWith=Bp,y.shuffle=vd,y.slice=_h,y.sortBy=wd,y.sortedUniq=Ah,y.sortedUniqBy=kh,y.split=n0,y.spread=Td,y.tail=Sh,y.take=Ch,y.takeRight=Eh,y.takeRightWhile=Ih,y.takeWhile=Ph,y.tap=jh,y.throttle=Od,y.thru=qn,y.toArray=Zo,y.toPairs=Yo,y.toPairsIn=$o,y.toPath=D0,y.toPlainObject=jo,y.transform=zp,y.unary=Rd,y.union=Th,y.unionBy=Oh,y.unionWith=Rh,y.uniq=Lh,y.uniqBy=Bh,y.uniqWith=zh,y.unset=Np,y.unzip=ns,y.unzipWith=Eo,y.update=Dp,y.updateWith=Mp,y.values=Kr,y.valuesIn=Fp,y.without=Nh,y.words=Vo,y.wrap=Ld,y.xor=Dh,y.xorBy=Mh,y.xorWith=Fh,y.zip=Uh,y.zipObject=Wh,y.zipObjectDeep=Zh,y.zipWith=Hh,y.entries=Yo,y.entriesIn=$o,y.extend=Go,y.extendWith=Ko,ps(y,y),y.add=F0,y.attempt=tu,y.camelCase=Hp,y.capitalize=Jo,y.ceil=U0,y.clamp=Up,y.clone=zd,y.cloneDeep=Dd,y.cloneDeepWith=Md,y.cloneWith=Nd,y.conformsTo=Fd,y.deburr=Qo,y.defaultTo=v0,y.divide=W0,y.endsWith=jp,y.eq=je,y.escape=Gp,y.escapeRegExp=Kp,y.every=td,y.find=rd,y.findIndex=xo,y.findKey=pp,y.findLast=nd,y.findLastIndex=Ao,y.findLastKey=gp,y.floor=Z0,y.forEach=Po,y.forEachRight=To,y.forIn=_p,y.forInRight=mp,y.forOwn=vp,y.forOwnRight=yp,y.get=ls,y.gt=Ud,y.gte=Wd,y.has=xp,y.hasIn=fs,y.head=So,y.identity=we,y.includes=ud,y.indexOf=nh,y.inRange=Wp,y.invoke=Sp,y.isArguments=Or,y.isArray=St,y.isArrayBuffer=Zd,y.isArrayLike=ye,y.isArrayLikeObject=Jt,y.isBoolean=Hd,y.isBuffer=vr,y.isDate=jd,y.isElement=Gd,y.isEmpty=Kd,y.isEqual=qd,y.isEqualWith=Xd,y.isError=as,y.isFinite=Yd,y.isFunction=nr,y.isInteger=Mo,y.isLength=Qn,y.isMap=Fo,y.isMatch=$d,y.isMatchWith=Jd,y.isNaN=Qd,y.isNative=Vd,y.isNil=ep,y.isNull=tp,y.isNumber=Uo,y.isObject=qt,y.isObjectLike=Yt,y.isPlainObject=fn,y.isRegExp=os,y.isSafeInteger=rp,y.isSet=Wo,y.isString=Vn,y.isSymbol=Ee,y.isTypedArray=Gr,y.isUndefined=np,y.isWeakMap=ip,y.isWeakSet=sp,y.join=uh,y.kebabCase=qp,y.last=Me,y.lastIndexOf=lh,y.lowerCase=Xp,y.lowerFirst=Yp,y.lt=ap,y.lte=op,y.max=H0,y.maxBy=j0,y.mean=G0,y.meanBy=K0,y.min=q0,y.minBy=X0,y.stubArray=_s,y.stubFalse=ms,y.stubObject=L0,y.stubString=B0,y.stubTrue=z0,y.multiply=Y0,y.nth=fh,y.noConflict=S0,y.noop=gs,y.now=Yn,y.pad=$p,y.padEnd=Jp,y.padStart=Qp,y.parseInt=Vp,y.random=Zp,y.reduce=dd,y.reduceRight=pd,y.repeat=t0,y.replace=e0,y.result=Rp,y.round=$0,y.runInContext=N,y.sample=_d,y.size=yd,y.snakeCase=r0,y.some=bd,y.sortedIndex=mh,y.sortedIndexBy=vh,y.sortedIndexOf=yh,y.sortedLastIndex=bh,y.sortedLastIndexBy=wh,y.sortedLastIndexOf=xh,y.startCase=i0,y.startsWith=s0,y.subtract=J0,y.sum=Q0,y.sumBy=V0,y.template=a0,y.times=N0,y.toFinite=ir,y.toInteger=Ct,y.toLength=Ho,y.toLower=o0,y.toNumber=Fe,y.toSafeInteger=up,y.toString=Dt,y.toUpper=u0,y.trim=l0,y.trimEnd=f0,y.trimStart=c0,y.truncate=h0,y.unescape=d0,y.uniqueId=M0,y.upperCase=p0,y.upperFirst=cs,y.each=Po,y.eachRight=To,y.first=So,ps(y,(function(){var t={};return qe(y,function(e,r){Nt.call(y.prototype,r)||(t[r]=e)}),t})(),{chain:!1}),y.VERSION=s,ke(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){y[t].placeholder=y}),ke(["drop","take"],function(t,e){Lt.prototype[t]=function(r){r=r===n?1:ee(Ct(r),0);var i=this.__filtered__&&!e?new Lt(this):this.clone();return i.__filtered__?i.__takeCount__=oe(r,i.__takeCount__):i.__views__.push({size:oe(r,W),type:t+(i.__dir__<0?"Right":"")}),i},Lt.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}}),ke(["filter","map","takeWhile"],function(t,e){var r=e+1,i=r==V||r==st;Lt.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:wt(h,3),type:r}),b.__filtered__=b.__filtered__||i,b}}),ke(["head","last"],function(t,e){var r="take"+(e?"Right":"");Lt.prototype[t]=function(){return this[r](1).value()[0]}}),ke(["initial","tail"],function(t,e){var r="drop"+(e?"":"Right");Lt.prototype[t]=function(){return this.__filtered__?new Lt(this):this[r](1)}}),Lt.prototype.compact=function(){return this.filter(we)},Lt.prototype.find=function(t){return this.filter(t).head()},Lt.prototype.findLast=function(t){return this.reverse().find(t)},Lt.prototype.invokeMap=Pt(function(t,e){return typeof t=="function"?new Lt(this):this.map(function(r){return nn(r,t,e)})}),Lt.prototype.reject=function(t){return this.filter(Jn(wt(t)))},Lt.prototype.slice=function(t,e){t=Ct(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Lt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(e=Ct(e),r=e<0?r.dropRight(-e):r.take(e-t)),r)},Lt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Lt.prototype.toArray=function(){return this.take(W)},qe(Lt.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),h=y[i?"take"+(e=="last"?"Right":""):e],b=i||/^find/.test(e);h&&(y.prototype[e]=function(){var L=this.__wrapped__,z=i?[1]:arguments,M=L instanceof Lt,Q=z[0],tt=M||St(L),it=function(Tt){var Bt=h.apply(y,cr([Tt],z));return i&&ft?Bt[0]:Bt};tt&&r&&typeof Q=="function"&&Q.length!=1&&(M=tt=!1);var ft=this.__chain__,pt=!!this.__actions__.length,At=b&&!ft,It=M&&!pt;if(!b&&tt){L=It?L:new Lt(this);var vt=t.apply(L,z);return vt.__actions__.push({func:qn,args:[it],thisArg:n}),new ze(vt,ft)}return At&&It?t.apply(this,z):(vt=this.thru(it),At?i?vt.value()[0]:vt.value():vt)})}),ke(["pop","push","shift","sort","splice","unshift"],function(t){var e=yn[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);y.prototype[t]=function(){var h=arguments;if(i&&!this.__chain__){var b=this.value();return e.apply(St(b)?b:[],h)}return this[r](function(L){return e.apply(St(L)?L:[],h)})}}),qe(Lt.prototype,function(t,e){var r=y[e];if(r){var i=r.name+"";Nt.call(Ur,i)||(Ur[i]=[]),Ur[i].push({name:e,func:r})}}),Ur[Un(n,m).name]=[{name:"wrapper",func:n}],Lt.prototype.clone=pf,Lt.prototype.reverse=gf,Lt.prototype.value=_f,y.prototype.at=Gh,y.prototype.chain=Kh,y.prototype.commit=qh,y.prototype.next=Xh,y.prototype.plant=$h,y.prototype.reverse=Jh,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Qh,y.prototype.first=y.prototype.head,$r&&(y.prototype[$r]=Yh),y}),Dr=Kl();Ar?((Ar.exports=Dr)._=Dr,hi._=Dr):ne._=Dr}).call(lg)})(cn,cn.exports)),cn.exports}var K=fg();function Xt(v){return v/12700}function su(v){return v/100}function yu(v){return v/6e4}function Ss(v){return v/1e5}function ws(v){var o=Math.ceil(v/26),n=(v%26||26)-1+65;return String.fromCharCode(n).repeat(o)}var bu=(function(){function v(o,n){this.uuid=sg(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=o,this.ctx=n;var s=K.get(o,["p:nvSpPr","p:nvPr"]);if(s){var u=K.get(s,"p:ph");u&&u.attrs&&(this.idx=u.attrs.idx,this.type=u.attrs.type),K.get(s,["attrs","userDrawn"])&&(this.userDrawn=K.get(s,["attrs","userDrawn"])==="1")}if(this.order=K.get(o,"attrs.order",0),this.source["p:spPr"]){var a=this.getXfrm();a&&(this.offset={x:Math.round(Xt(parseInt(a["a:off"].attrs.x))),y:Math.round(Xt(parseInt(a["a:off"].attrs.y)))},this.extend={w:Math.round(Xt(parseInt(a["a:ext"].attrs.cx))),h:Math.round(Xt(parseInt(a["a:ext"].attrs.cy)))},this.rotate=yu(parseInt(K.get(a,"attrs.rot",0))),this.flipV=K.get(a,"attrs.flipV")==="1",this.flipH=K.get(a,"attrs.flipH")==="1")}}return Object.defineProperty(v.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),v.prototype.getColorThemeName=function(o){return this.ctx.getColorThemeName(o)},v.prototype.getXfrm=function(){var o=this.source["p:spPr"]["a:xfrm"];return o||(this.idx?o=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(o=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),o},v})(),qr=(function(v){function o(n,s,u,a){var l=v.call(this,s,a)||this;l.userDrawn=!0,l.pptx=u,l.path=n;var c=K.get(l.source,["p:blipFill","a:srcRect"]);return c&&(l.clip={},c.attrs.b&&(l.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(l.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(l.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(l.clip.r=parseInt(c.attrs.r)/1e5)),l}return vu(o,v),Object.defineProperty(o.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),o})(bu);function Re(v,o,n){var s={type:"solidFill"};if(v["a:srgbClr"])s.color="#"+v["a:srgbClr"].attrs.val;else if(v["a:schemeClr"]){var u=v["a:schemeClr"].attrs.val;n&&(u=n.getColorThemeName(u)),s.color=o.getColor(u)}else v["a:sysClr"]&&(s.color="#"+v["a:sysClr"].attrs.lastClr);var a=v["a:srgbClr"]||v["a:schemeClr"]||v["a:sysClr"],l=K.get(a,["a:alpha","attrs","val"],1e5);s.alpha=l/1e5;var c=K.get(a,["a:shade","attrs","val"]);c&&(s.shade=c/1e5);var g=K.get(a,["a:lumMod","attrs","val"]);g&&(s.lumMod=g/1e5);var S=K.get(a,["a:lumOff","attrs","val"]);return S&&(s.lumOff=S/1e5),s}function xs(v){return v<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function As(v){return v<.0031308?12.92*v:1.055*Math.pow(v,1/2.4)-.055}function Ue(v){if(!v||v.type==="none")return"";if(v.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(v.color)){var o=parseInt(v.color.substr(1,2),16),n=parseInt(v.color.substr(3,2),16),s=parseInt(v.color.substr(5,2),16);if(v.shade){var u=(function(l,c){var g=l[0],S=l[1],C=l[2],k=xs(g/255)*c,I=xs(S/255)*c,w=xs(C/255)*c;return[Math.round(255*As(k)),Math.round(255*As(I)),Math.round(255*As(w))]})([o,n,s],v.shade);o=u[0],n=u[1],s=u[2]}var a=v.alpha;return"rgba(".concat(o,",").concat(n,",").concat(s,",").concat(a,")")}}var cg=(function(){function v(o,n){this.props={},this.inheritProps={},this.source=o,this.node=n,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return v.prototype._getInheritBodyProps=function(){var o,n=this.node.ctx,s=this.node.type,u=this.node.idx;if(s||u)switch(n.slideType){case"slideMaster":break;case"slideLayout":(o=s?n.slideMaster.getNodeByType(s):n.slideMaster.getNodeByIdx(u))&&(this.inheritProps=K.get(o,["textBody","props"])||{});break;case"slide":(o=s?n.slideLayout.slideMaster.getNodeByType(s):n.slideLayout.slideMaster.getNodeByIdx(u))&&Object.assign(this.inheritProps,K.get(o,["textBody","props"])||{}),(o=s?n.slideLayout.getNodeByType(s):n.slideLayout.getNodeByIdx(u))&&Object.assign(this.inheritProps,K.get(o,["textBody","props"])||{})}},v.prototype._parseBodyProps=function(){var o=this,n=K.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(n).forEach((function(l){switch(l){case"anchor":o.props.anchor=n[l];break;case"rtlCol":o.props.rtlCol=n[l]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":o.props[l]=Xt(parseInt(n[l]));break;case"order":break;default:o.props[l]=n[l]}}));var s=K.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(s){this.props.normAutofit={};var u=s.fontScale;u&&(this.props.normAutofit.fontScale=Ss(parseInt(u)));var a=s.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=Ss(parseInt(a)))}},v.prototype._parseLstStyle=function(){var o=this,n={},s=K.get(this.source,"a:lstStyle")||{};Object.keys(s).forEach((function(u){if(u.startsWith("a:")&&u.endsWith("pPr")){var a=u.substr(2,u.length-5);n[a]={props:o._formatPPr(s[u])};var l=K.get(s[u],["a:defRPr"]);n[a].defRPr=o._formatRPr(l)}})),this.lstStyle=n},v.prototype._parseText=function(){var o=this,n=K.get(this.source,["a:p"])||[];Array.isArray(n)||(n=[n]),this.paragraphs=n.map((function(s){return o._parseParagraph(s)}))},v.prototype._parseParagraph=function(o){var n=this,s={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},u=K.get(o,["a:pPr"])||{};s.props=this._formatPPr(u);var a=K.get(o,["a:endParaRPr"]);s.endParaRProps=this._formatRPr(a);var l=K.get(o,["a:r"])||[];Array.isArray(l)||(l=[l]);var c=K.get(o,["a:br"])||[];return Array.isArray(c)||(c=[c]),(l=l.concat(c.map((function(g){return Oe({isBr:!0},g)})))).sort((function(g,S){return K.get(g,["attrs","order"])-K.get(S,["attrs","order"])})),s.rows=l.map((function(g){return n._parseRow(g)})),s.inheritProps=this._getInheritPProps(s.props.level),s.inheritRProps=this._getInheritRProps(s.props.level),s},v.prototype._getInheritPProps=function(o){o===void 0&&(o="0");var n,s={},u=this.node.ctx,a=this.node.type,l=this.node.idx;switch(u.slideType){case"slideMaster":this.node.isTextBox?Object.assign(s,K.get(u.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(s,K.get(u.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{}),(a||l)&&(n=a?u.slideMaster.getNodeByType(a):u.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(s,K.get(u.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{}),(a||l)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(o?+o+1:1),"props"])||{}),(n=a?u.slideLayout.slideMaster.getNodeByType(a):u.slideLayout.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{}),(n=a?u.slideLayout.getNodeByType(a):u.slideLayout.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{}))}return s},v.prototype._getInheritRProps=function(o){o===void 0&&(o="0");var n,s={},u=this.node.ctx,a=this.node.type,l=this.node.idx;switch(u.slideType){case"slideMaster":this.node.isTextBox?Object.assign(s,K.get(u.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(s,K.get(u.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(a||l)&&(n=a?u.slideMaster.getNodeByType(a):u.slideMaster.getNodeByIdx(l))&&(s=K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(s,K.get(u.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(a||l)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(n=a?u.slideLayout.slideMaster.getNodeByType(a):u.slideLayout.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(n=a?u.slideLayout.getNodeByType(a):u.slideLayout.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}))}var c=K.get(this.node.source,["p:style","a:fontRef"]);return K.get(c,"a:schemeClr")&&(s.color=Re(c,this.node.theme,this.node)),K.get(this.lstStyle,["lvl".concat(o?+o+1:1),"defRPr"])&&Object.assign(s,K.get(this.lstStyle,["lvl".concat(o?+o+1:1),"defRPr"])),s},v.prototype._formatPPr=function(o){var n={},s=K.get(o,"attrs")||{};return Object.keys(s).forEach((function(u){switch(u){case"algn":n.align=s[u];break;case"marL":n.marginLeft=Xt(parseInt(s[u]));break;case"indent":n.indent=Xt(parseInt(s[u]));break;case"lvl":n.level=s[u]}})),K.get(o,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(o["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),K.get(o,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=o["a:buAutoNum"].attrs.type),K.get(o,["a:buChar","attrs","char"])&&(n.buChar=o["a:buChar"].attrs.char),K.get(o,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=su(parseInt(o["a:spcBef"]["a:spcPts"].attrs.val))),K.get(o,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=su(parseInt(o["a:spcAft"]["a:spcPts"].attrs.val))),n},v.prototype._parseRow=function(o){if(o.isBr)return{isBr:!0};var n={props:{},text:""},s=K.get(o,["a:rPr"])||{};return n.props=this._formatRPr(s),n.text=K.get(o,"a:t")||"",n},v.prototype._formatRPr=function(o){var n={},s=K.get(o,"attrs")||{};Object.keys(s).forEach((function(l){switch(l){case"sz":n.size=parseInt(s[l])/100;break;case"b":n.bold=s[l]==="1";break;case"i":n.italic=s[l]==="1";break;case"u":n.underline=s[l];break;case"strike":n.strike=s[l];break;case"order":case"dirty":break;default:n[l]=s[l]}}));var u=K.get(o,"a:solidFill");u&&(n.color=Re(u,this.node.theme,this.node));var a=K.get(o,"a:highlight");return a&&(n.background=Re(a,this.node.theme,this.node)),n},v})(),br=(function(v){function o(n,s,u){var a=v.call(this,n,u)||this;return a.border={},a.prstGeom={},a.isTextBox=!1,a.pptx=s,a.shape=K.get(n,["p:spPr","a:prstGeom","attrs","prst"]),a._parIsTextBox(),a._parsePrstGeom(),a._parseBackground(),a._parseBorder(),a._parseTxt(),a}return vu(o,v),o.prototype._parIsTextBox=function(){this.isTextBox=K.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},o.prototype._parsePrstGeom=function(){var n=K.get(this.source,["p:spPr","a:prstGeom"]),s=K.get(n,["a:avLst","a:gd"]);s&&(Array.isArray(s)||(s=[s]),this.prstGeom.gd=s.map((function(u){return{name:u.attrs.name,fmla:Ss(parseInt(u.attrs.fmla.split(" ")[1]))}})))},o.prototype._parseBackground=function(){if(!K.get(this.source,["p:spPr","a:noFill"])){var n=K.get(this.source,["p:spPr","a:solidFill"]);if(n)this.background=Re(n,this.theme,this);else if(!K.get(this.source,["p:spPr","a:gradFill"])){var s=K.get(this.source,["p:style","a:fillRef"]);s&&(this.background=Re(s,this.theme,this))}}},o.prototype._parseBorder=function(){var n=K.get(this.source,["p:style","a:lnRef"]);if(n){var s=parseInt(n.attrs.idx),u=this.theme.getLineStyle(s);this.border=Oe(Oe({},u),this.border),this.border.color&&this.border.color.color||(this.border.color=Re(n,this.theme,this))}var a=K.get(this.source,["p:spPr","a:ln"]);if(a){if(K.get(a,"a:noFill"))return;K.get(a,"attrs.w")&&(this.border.width=Xt(parseInt(K.get(a,"attrs.w"))));var l=K.get(a,"a:solidFill");l&&(this.border.color=Re(l,this.theme,this));var c=K.get(a,"a:prstDash");if(c&&(this.border.type=c.attrs.val),K.get(a,["a:miter"])&&(this.border.lineJoin="miter"),K.get(a,["a:bevel"])&&(this.border.lineJoin="bevel"),K.get(a,["a:round"])&&(this.border.lineJoin="round"),K.get(a,["a:miter","attrs","lim"])&&(this.border.miterLim=Xt(parseInt(K.get(a,["a:miter","attrs","lim"])))),K.get(a,["a:headEnd"])){var g=K.get(a,["a:headEnd","attrs"]);this.border.headEnd={type:g.type,len:g.len,w:g.w}}if(K.get(a,["a:tailEnd"])){var S=K.get(a,["a:tailEnd","attrs"]);this.border.tailEnd={type:S.type,len:S.len,w:S.w}}Object.assign(this.border,K.omit(K.get(a,"attrs")||{},["w","order"]))}this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=o.defaultBorderWidth)},o.prototype._parseTxt=function(){this.textBody=new cg(K.get(this.source,["p:txBody"]),this)},o.defaultBorderWidth=.75,o})(bu),Cs=(function(){function v(o,n,s){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.order=K.get(o,["attrs","order"]),this.pptx=n,this.ctx=s,this.source=o,this.source["p:grpSpPr"]){var u=K.get(this.source,["p:grpSpPr","a:xfrm"]);u&&(this.offset={x:Math.round(Xt(parseInt(u["a:off"].attrs.x))),y:Math.round(Xt(parseInt(u["a:off"].attrs.y)))},this.chOffset={x:Math.round(Xt(parseInt(u["a:chOff"].attrs.x))),y:Math.round(Xt(parseInt(u["a:chOff"].attrs.y)))},this.extend={w:Math.round(Xt(parseInt(u["a:ext"].attrs.cx))),h:Math.round(Xt(parseInt(u["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(Xt(parseInt(u["a:chExt"].attrs.cx))),h:Math.round(Xt(parseInt(u["a:chExt"].attrs.cy)))},this.rotate=yu(parseInt(K.get(u,"attrs.rot",0))),this.flipV=K.get(u,"attrs.flipV")==="1",this.flipH=K.get(u,"attrs.flipH")==="1")}this._parseNodes()}return v.prototype._parseNodes=function(){var o=this.source;for(var n in o)switch(n){case"p:sp":for(var s=Array.isArray(o[n])?o[n]:[o[n]],u=0;u<s.length;u++){var a=s[u];this.nodes.push(new br(a,this.pptx,this.ctx))}break;case"p:pic":var l=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<l.length;u++){var c=l[u],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.ctx.rels[g].target,C=new qr(S,c,this.pptx,this.ctx);this.nodes.push(C)}break;case"p:cxnSp":var k=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<k.length;u++)a=k[u],this.nodes.push(new br(a,this.pptx,this.ctx));break;case"p:grpSp":var I=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<I.length;u++){var w=I[u];this.nodes.push(new v(w,this.pptx,this.ctx))}}},v})(),ri=1;function or(v){var o=60,n=62,s=45,u=47,a=33,l=39,c=34,g=63,S=`\r
|
|
39
|
-
>/= `,C=0;return ri=1,wu((function k(){for(var I=[];v[C];){if(v.charCodeAt(C)==o){if(v.charCodeAt(C+1)===u)return C=v.indexOf(">",C),I;if(v.charCodeAt(C+1)===a){if(v.charCodeAt(C+2)==s){for(;v.charCodeAt(C)!==n||v.charCodeAt(C-1)!=s||v.charCodeAt(C-2)!=s||C==-1;)C=v.indexOf(">",C+1);C===-1&&(C=v.length)}else for(C+=2;v.charCodeAt(C)!==n;C++);C++;continue}if(v.charCodeAt(C+1)===g){C=v.indexOf(">",C),C++;continue}for(var w=++C;S.indexOf(v[C])===-1;C++);for(var P=v.slice(w,C),_=!1,x={};v.charCodeAt(C)!==n;C++){var d=v.charCodeAt(C);if(d>64&&d<91||d>96&&d<123){for(w=C;S.indexOf(v[C])===-1;C++);for(var m=v.slice(w,C),A=v.charCodeAt(C);A!==l&&A!==c;)C++,A=v.charCodeAt(C);var R=v[C],T=++C;C=v.indexOf(R,T);var U=v.slice(T,C);_||(x={},_=!0),x[m]=U}}var Z=[];v.charCodeAt(C-1)!==u&&(C++,Z=k()),I.push({children:Z,tagName:P,attrs:x})}else{var J=C;(C=v.indexOf("<",C)-1)===-2&&(C=v.length);var H=v.slice(J,C+1);H.length>0&&I.push(H)}C++}return I})())}function wu(v){var o={};if(v===void 0)return{};if(v.length===1&&typeof v[0]=="string")return v[0];for(var n in v.forEach((function(s){if(o[s.tagName]||(o[s.tagName]=[]),typeof s=="object"){var u=wu(s.children);typeof u=="object"&&(s.attrs&&(u.attrs=s.attrs),u.attrs===void 0?u.attrs={order:ri}:u.attrs.order=ri),ri++,o[s.tagName].push(u)}})),o)o[n].length==1&&(o[n]=o[n][0]);return o}var hg=(function(){function v(o,n,s){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=o,this.source=n,this.pptx=s}return Object.defineProperty(v.prototype,"index",{get:function(){if(!this.name)return 0;var o=this.name.match(/(\d+)/);return o?parseInt(o[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._loadRels()];case 1:return o.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return o.sent(),[2]}}))}))},v.prototype._loadRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var c=l.attrs.Target.replace("../","ppt/");u.slideLayout=u.pptx.getSlideLayout(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._loadBackground=function(){var o=K.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);o&&o["a:solidFill"]&&(this.background=Re(o["a:solidFill"],this.theme,this))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C,k,I,w;return ce(this,(function(P){for(n in o=K.get(this.source,["p:sld","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<s.length;I++)C=s[I],this.nodes.push(new br(C,this.pptx,this));break;case"p:pic":for(u=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<u.length;I++)a=u[I],l=a["p:blipFill"]["a:blip"].attrs["r:embed"],c=this.rels[l].target,g=new qr(c,a,this.pptx,this),this.nodes.push(g);break;case"p:cxnSp":for(S=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<S.length;I++)C=S[I],this.nodes.push(new br(C,this.pptx,this));break;case"p:graphicFrame":break;case"p:grpSp":for(k=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<k.length;I++)w=k[I],this.nodes.push(new Cs(w,this.pptx,this))}return[2]}))}))},v.prototype.getColorThemeName=function(o){return this.slideLayout.getColorThemeName(o)},v.prototype.getNodeInheritAttrsByType=function(o,n){var s=this.slideLayout.getNodeByType(o),u=K.get(s.source,n);return u||this.slideLayout.getNodeInheritAttrsByType(o,n)},v.prototype.getNodeInheritAttrsByIdx=function(o,n){var s=this.slideLayout.getNodeByIdx(o),u=K.get(s.source,n);return u||this.slideLayout.getNodeInheritAttrsByIdx(o,n)},v})(),dg=(function(){function v(o,n,s){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=o,this.source=n,this.pptx=s}return Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._loadRels()];case 1:return o.sent(),[4,this._loadBackground()];case 2:return o.sent(),[4,this._loadNodes()];case 3:return o.sent(),[2]}}))}))},v.prototype._loadRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var c=l.attrs.Target.replace("../","ppt/");u.slideMaster=u.pptx.getSlideMaster(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._loadBackground=function(){return fe(this,void 0,void 0,(function(){var o;return ce(this,(function(n){return(o=K.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&o["a:solidFill"]&&(this.background=Re(o["a:solidFill"],this.theme)),[2]}))}))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C;return ce(this,(function(k){for(n in o=K.get(this.source,["p:sldLayout","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<s.length;l++)u=s[l],this.nodes.push(new br(u,this.pptx,this));break;case"p:pic":for(a=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<a.length;l++)c=a[l],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.rels[g].target,C=new qr(S,c,this.pptx,this),this.nodes.push(C)}return[2]}))}))},v.prototype.getColorThemeName=function(o){return this.slideMaster.getColorThemeName(o)},v.prototype.getNodeByType=function(o){return this.nodes.find((function(n){return n.type===o}))},v.prototype.getNodeByIdx=function(o){return this.nodes.find((function(n){return n.idx===o}))},v.prototype.getNodeInheritAttrsByType=function(o,n){var s=this.slideMaster.getNodeByType(o);return s&&K.get(s.source,n)},v.prototype.getNodeInheritAttrsByIdx=function(o,n){var s=this.slideMaster.getNodeByIdx(o);return s&&K.get(s.source,n)},v})();function au(v){var o={},n=K.get(v,"attrs")||{};return Object.keys(n).forEach((function(s){switch(s){case"algn":o.align=n[s];break;case"marL":o.marginLeft=Xt(parseInt(n[s]));break;case"indent":o.indent=Xt(parseInt(n[s]));break;case"lvl":o.level=n[s]}})),K.get(v,["a:lnSpc","a:spcPct","attrs","val"])&&(o.lineHeight=parseInt(v["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),o}function ou(v,o,n){var s={},u=K.get(v,"attrs")||{};Object.keys(u).forEach((function(l){switch(l){case"sz":s.size=parseInt(u[l])/100;break;case"b":s.bold=u[l]==="1";break;case"i":s.italic=u[l]==="1";break;case"u":s.underline=u[l];break;case"strike":s.strike=u[l];break;case"order":case"dirty":break;default:s[l]=u[l]}}));var a=K.get(v,"a:solidFill");return a&&(s.color=Re(a,o,n)),s}var pg=(function(){function v(o,n,s){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.name=o,this.source=n,this.pptx=s,this.load()}return Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._parseRels()];case 1:return o.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},v.prototype._parseRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var c=l.attrs.Target.replace("../","ppt/");u.theme=u.pptx.getTheme(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._parseColorMap=function(){this.colorMap=K.omit(K.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},v.prototype.getColorThemeName=function(o){return this.colorMap[o]||o},v.prototype._parseBackground=function(){var o=K.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),n=K.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);o&&o["a:solidFill"]?this.background=Re(o["a:solidFill"],this.theme,this):n&&(this.background=Re(n,this.theme,this))},v.prototype._parseDefaultTextStyle=function(){var o=this,n=this.pptx.defaultTextStyleSource;Object.keys(n).forEach((function(s){if(s.startsWith("a:")&&s.endsWith("pPr")){var u=s.substr(2,s.length-5),a=K.get(n[s],["a:defRPr"]);o.defaultTextStyle[u]={props:au(n[s]),defRPr:ou(a,o.theme,o)}}}))},v.prototype._parseTextStyles=function(){var o=this,n=K.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(s){var u=o.textStyles[s],a=K.get(n,"p:".concat(s))||{};Object.keys(a).forEach((function(l){if(l.startsWith("a:")&&l.endsWith("pPr")){var c=l.substr(2,l.length-5);u[c]={},u[c].props=au(a[l]);var g=K.get(a[l],["a:defRPr"]);u[c].defRPr=ou(g,o.theme,o)}}))}))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C;return ce(this,(function(k){for(n in o=K.get(this.source,["p:sldMaster","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<s.length;l++)u=s[l],this.nodes.push(new br(u,this.pptx,this));break;case"p:pic":for(a=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<a.length;l++)c=a[l],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.rels[g].target,C=new qr(S,c,this.pptx,this),this.nodes.push(C)}return[2]}))}))},v.prototype.getNodeByType=function(o){return this.nodes.find((function(n){return n.type===o}))},v.prototype.getNodeByIdx=function(o){return this.nodes.find((function(n){return n.idx===o}))},v.prototype.getNodeInheritAttrsByType=function(o,n){},v.prototype.getNodeInheritAttrsByIdx=function(o,n){},v})(),gg=(function(){function v(o,n,s){this.clrScheme={},this.borderScheme=[],this.name=o,this.source=n,this.pptx=s,this._parseClrScheme(),this._parseLineStyleLst()}return v.prototype._parseClrScheme=function(){var o=K.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var n in o)if(n.startsWith("a:")){var s=n.substring(2),u=K.get(o[n],["a:sysClr","attrs","lastClr"])||K.get(o[n],["a:srgbClr","attrs","val"]);this.clrScheme[s]="#"+u}},v.prototype._parseLineStyleLst=function(){var o=this,n=K.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"]);this.borderScheme=n.map((function(s){var u={color:{}};return K.get(s,["attrs","w"])&&(u.width=Xt(parseInt(K.get(s,["attrs","w"])))),K.get(s,["attrs","algn"])&&(u.algn=K.get(s,["attrs","algn"])),K.get(s,["attrs","cap"])&&(u.cap=K.get(s,["attrs","cap"])),K.get(s,["attrs","cmpd"])&&(u.cmpd=K.get(s,["attrs","cmpd"])),K.get(s,["a:miter","attrs","lim"])&&(u.miterLim=Xt(parseInt(K.get(s,["a:miter","attrs","lim"])))),K.get(s,["a:prstDash","attrs","val"])&&(u.type=K.get(s,["a:prstDash","attrs","val"])),K.get(s,["a:solidFill"])&&(u.color=Re(K.get(s,["a:solidFill"]),o)),u}))},v.prototype.getColor=function(o){if(o!=="phClr")return this.clrScheme[o]||this.defaultColor},v.prototype.getLineStyle=function(o){return this.borderScheme[o-1]},v})(),_g=(function(){function v(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return v.prototype.load=function(o){return fe(this,void 0,void 0,(function(){var n,s;return ce(this,(function(u){switch(u.label){case 0:return n=new ng,s=this,[4,n.loadAsync(o)];case 1:return s._zipContents=u.sent(),[4,this._loadThumbnail()];case 2:return u.sent(),[4,this._loadMedia()];case 3:return u.sent(),[4,this._loadPresentation()];case 4:return u.sent(),[4,this._loadContentTypes()];case 5:return u.sent(),[2]}}))}))},v.prototype._loadThumbnail=function(){return fe(this,void 0,void 0,(function(){var o,n;return ce(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:o=s.sent(),this.thumbnail="data:image/jpeg;base64,"+o,s.label=2;case 2:return[3,4];case 3:return n=s.sent(),console.log("获取PPTX缩略图失败",n),[3,4];case 4:return[2]}}))}))},v.prototype._loadPresentation=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u;return ce(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return o=a.sent(),n=or(o),s=n["p:presentation"]["p:sldSz"].attrs,this.width=Xt(parseInt(s.cx)),this.height=Xt(parseInt(s.cy)),this.defaultTextStyleSource=K.get(n,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return u=a.sent(),console.log("获取PPTX尺寸失败",u),[3,3];case 3:return[2]}}))}))},v.prototype._loadContentTypes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C,k,I,w,P,_,x,d,m,A,R;return ce(this,(function(T){switch(T.label){case 0:return T.trys.push([0,20,,21]),n=or,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(o=n.apply(void 0,[T.sent()]),s=o.Types.Override,!(u=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"}))))return[3,5];a=0,l=u,T.label=2;case 2:return a<l.length?(c=l[a],x=c.attrs.PartName.substr(1),g=or,[4,this._zipContents.files[x].async("text")]):[3,5];case 3:d=g.apply(void 0,[T.sent()]),this.themes.push(new gg(x,d,this)),T.label=4;case 4:return a++,[3,2];case 5:S=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"})),_=0,T.label=6;case 6:return _<S.length?(x=S[_].attrs.PartName.substr(1),C=or,[4,this._zipContents.files[x].async("text")]):[3,9];case 7:d=C.apply(void 0,[T.sent()]),this.slideMaster.push(new pg(x,d,this)),T.label=8;case 8:return _++,[3,6];case 9:k=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"})),_=0,T.label=10;case 10:return _<k.length?(x=k[_].attrs.PartName.substr(1),I=or,[4,this._zipContents.files[x].async("text")]):[3,14];case 11:return d=I.apply(void 0,[T.sent()]),[4,(w=new dg(x,d,this)).load()];case 12:T.sent(),this.slideLayouts.push(w),T.label=13;case 13:return _++,[3,10];case 14:P=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"})),_=0,T.label=15;case 15:return _<P.length?(x=P[_].attrs.PartName.substr(1),m=or,[4,this._zipContents.files[x].async("text")]):[3,19];case 16:return d=m.apply(void 0,[T.sent()]),[4,(A=new hg(x,d,this)).load()];case 17:T.sent(),this.slides.push(A),T.label=18;case 18:return _++,[3,15];case 19:return[3,21];case 20:return R=T.sent(),console.log("Content Type获取失败",R),[3,21];case 21:return[2]}}))}))},v.prototype._loadMedia=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c=this;return ce(this,(function(g){switch(g.label){case 0:o=Object.keys(this._zipContents.files).filter((function(C){return C.startsWith("ppt/media/image")})).map((function(C){return c._zipContents.files[C]})),n=0,s=o,g.label=1;case 1:return n<s.length?(u=s[n],a=(function(C){var k;switch(C){case"jpg":case"jpeg":k="image/jpeg";break;case"png":k="image/png";break;case"gif":k="image/gif";break;case"emf":k="image/x-emf";break;case"wmf":k="image/x-wmf";break;default:k="image/*"}return k})((S=u.name).substr(2+(~-S.lastIndexOf(".")>>>0))),[4,u.async("base64")]):[3,4];case 2:l=g.sent(),this.medias[u.name]="data:".concat(a,";base64,").concat(l),g.label=3;case 3:return n++,[3,1];case 4:return[2]}var S}))}))},v.prototype.getXmlByPath=function(o){return fe(this,void 0,void 0,(function(){return ce(this,(function(n){switch(n.label){case 0:if(!this._zipContents.files[o])throw new Error("文件不存在");return[4,this._zipContents.files[o].async("text")];case 1:return[2,n.sent()]}}))}))},v.prototype.getSlideLayout=function(o){return this.slideLayouts.find((function(n){return n.name===o}))},v.prototype.getSlideMaster=function(o){return this.slideMaster.find((function(n){return n.name===o}))},v.prototype.getTheme=function(o){return this.themes.find((function(n){return n.name===o}))},v.prototype.getMedia=function(o){return this.medias[o]},v})();function xu(v){var o,n,s,u,a=v.extend,l=v.offset,c=v.clip,g=v.base64,S=document.createElement("div");S.style.setProperty("position","absolute"),S.style.setProperty("left",l.x+"px"),S.style.setProperty("top",l.y+"px"),S.style.setProperty("width",a.w+"px"),S.style.setProperty("height",a.h+"px"),S.style.setProperty("overflow","hidden"),c?(o=a.w/(1-(c.l===void 0?0:c.l)-(c.r===void 0?0:c.r)),n=a.h/(1-(c.t===void 0?0:c.t)-(c.b===void 0?0:c.b)),s=-1*o*(c.l===void 0?0:c.l),u=-1*n*(c.t===void 0?0:c.t)):(o=a.w,n=a.h,s=0);var C=document.createElement("img");return C.src=g,C.width=o,C.height=n,C.style.setProperty("position","absolute"),C.style.setProperty("left",s+"px"),C.style.setProperty("top",u+"px"),S.append(C),S}function mg(v,o,n){var s,u=v.props,a=v.text,l=Oe(Oe({},o),u),c=document.createElement("span");c.textContent=a,l.size&&(!((s=n?.normAutofit)===null||s===void 0)&&s.fontScale?c.style.fontSize=l.size*n.normAutofit.fontScale+"px":c.style.fontSize=l.size+"px");var g=Ue(l.color);return g&&(c.style.color=g),l.bold&&(c.style.fontWeight="bold"),l.italic&&(c.style.fontStyle="italic"),l.underline&&(c.style.textDecoration="underline"),l.background&&(c.style.backgroundColor=Ue(l.background)),c}function vg(v,o,n){var s=document.createElement("span"),u=v.firstElementChild;switch(s.style.fontSize=u.style.fontSize,s.style.color=u.style.color,s.style.fontWeight=u.style.fontWeight,s.style.fontStyle=u.style.fontStyle,s.style.marginRight="10px",o.buAutoNum){case"arabicPeriod":default:s.textContent=n+".";break;case"circleNumDbPlain":s.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][n-1]||n+"";break;case"romanUcPeriod":s.textContent=(function(a){var l=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw new Error("Input must be a number between 1 and 3999.");for(var c="",g=0;g<l.length;g++)for(;a>=l[g].value;)c+=l[g].numeral,a-=l[g].value;return c})(n)+".";break;case"alphaUcPeriod":s.textContent=ws(n)+".";break;case"alphaLcPeriod":s.textContent=ws(n).toLowerCase()+".";break;case"alphaLcParenR":s.textContent=ws(n).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":s.textContent=(function(a){var l=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var c="",g=a.toString(),S=0;S<g.length;S++)c+=l[parseInt(g[S],10)];return c})(n)+"."}v.prepend(s)}function uu(v,o,n){var s,u,a,l;o===void 0&&(o=0),n===void 0&&(n={});var c=v.inheritProps,g=v.inheritRProps,S=v.props,C=v.rows,k=Oe(Oe({},c),S),I=document.createElement("div"),w=n.isFirst?0:k.spaceBefore||0,P=n.isLast?0:k.spaceAfter||0;I.style.margin="0px",I.style.padding="".concat(w,"px 0px ").concat(P,"px 0px");var _=document.createElement("p");_.style.margin="0px",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=k.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[k.align]||"center",k.align==="dist"&&(_.style.textAlignLast="justify");var x=k.hasOwnProperty("lineHeight")?1.2*k.lineHeight:1.2;if(!((u=(s=n.bodyProps)===null||s===void 0?void 0:s.normAutofit)===null||u===void 0)&&u.lnSpcReduction&&(x*=1-((l=(a=n.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||l===void 0?void 0:l.lnSpcReduction)),_.style.lineHeight=x+"",C.length){for(var d=0,m=C;d<m.length;d++){var A=m[d];_.appendChild(mg(A,g,n.bodyProps))}k.buAutoNum?vg(_,k,o):k.buChar&&(function(T,U){var Z=document.createElement("span"),J=T.firstElementChild;Z.style.color=J.style.color,Z.style.fontSize=J.style.fontSize,Z.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[U.buChar]||"■",Z.style.marginRight="10px",T.prepend(Z)})(_,k),_.style.paddingLeft=(k.marginLeft||0)+(k.indent||0)+"px"}else{var R=document.createElement("span");R.innerHTML=" ",R.style.fontSize=g.size+"px",_.appendChild(R)}return I.appendChild(_),I}var _e="http://www.w3.org/2000/svg";function Ye(v,o){var n=0;switch(v){case"sm":n=1*o;break;case"med":n=1.5*o;break;case"lg":n=2.5*o}return Math.max(n,2)}function lu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",x+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"ellipse");T.setAttribute("cx",x+"px"),T.setAttribute("cy",d+"px"),T.setAttribute("rx",x+"px"),T.setAttribute("ry",d+"px"),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function fu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",(s?.9*x:1.1*x)+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"path"),U=s?["M ".concat(2*x,",0"),"L 0,".concat(d),"L ".concat(2*x,",").concat(2*d),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(d),"L 0,".concat(2*d),"Z"].join(" ");T.setAttribute("d",U),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function cu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",x+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"path"),U=["M 0,".concat(d),"L ".concat(x,",0"),"L ".concat(2*x,",").concat(d),"L ".concat(x,",").concat(2*d),"Z"].join(" ");T.setAttribute("d",U),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function hu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x+2*g," ").concat(2*d+2*g));var T=s?_==="lg"?2*g:3*g:_==="lg"?2*x:2*x-g;A.setAttribute("refX",T+"px"),A.setAttribute("refY",d+g+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var U=document.createElementNS(_e,"path"),Z=s?["M ".concat(2*x+g,", ").concat(g),"L ".concat(g,",").concat(d+g),"L ".concat(2*x+g,",").concat(2*d+g)].join(" "):["M ".concat(g,", ").concat(g),"L ".concat(2*x+g,",").concat(d+g),"L ".concat(g,",").concat(2*d+g)].join(" ");U.setAttribute("d",Z),U.setAttribute("stroke-width",g+"px"),U.setAttribute("stroke",Ue(S)||"transparent"),U.setAttribute("fill","transparent"),U.setAttribute("stroke-linecap","round"),U.setAttribute("stroke-linejoin","miter"),U.style.overflow="visible",A.appendChild(U),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function du(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d));var T=s?_==="sm"?1.5*g:2*g:_==="sm"?2*x-1.5*g:2*x-2*g;A.setAttribute("refX",T+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var U=document.createElementNS(_e,"path"),Z=s?["M 0, ".concat(d),"L ".concat(2*x,",0"),"L ".concat(x,",").concat(d),"L ".concat(2*x,",").concat(2*d),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(d),"L 0,".concat(2*d),"L ".concat(x,",").concat(d),"Z"].join(" ");U.setAttribute("d",Z),U.setAttribute("fill",Ue(S)||"transparent"),U.style.overflow="visible",A.appendChild(U),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function ei(v,o,n){var s=v.border,u=s===void 0?{}:s;v.extend;var a=u.headEnd,l=u.tailEnd;if(a&&a.type!=="none")switch(a.type){case"triangle":fu(v,o,n,!0);break;case"oval":lu(v,o,n,!0);break;case"diamond":cu(v,o,n,!0);break;case"arrow":hu(v,o,n,!0);break;case"stealth":du(v,o,n,!0)}if(l&&l.type!=="none")switch(l.type){case"triangle":fu(v,o,n,!1);break;case"oval":lu(v,o,n,!1);break;case"diamond":cu(v,o,n,!1);break;case"arrow":hu(v,o,n,!1);break;case"stealth":du(v,o,n,!1)}}var le="http://www.w3.org/2000/svg";function ar(v){var o=v.extend;return .16667*Math.min(o.w,o.h)}function Te(v,o,n){n===void 0&&(n=0);var s=o.extend,u=o.prstGeom,a=(u?.gd||[]).find((function(l){return l.name===v}));return a?Math.min(s.w,s.h)*a.fmla:n}function pu(v,o,n){n===void 0&&(n=0);var s=o.extend,u=o.prstGeom,a=(u?.gd||[]).find((function(l){return l.name===v}));return a?Math.max(s.w,s.h)*a.fmla:n}function gu(v){var o=v.extend,n=document.createElementNS(le,"rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width",o.w+"px"),n.setAttribute("height",o.h+"px"),n}function Au(v){var o=v.extend,n=v.offset,s=v.border,u=v.background,a=v.rotate,l=v.flipH,c=v.flipV,g=document.createElement("div"),S=n.x,C=n.y;g.className="shape-wrapper shape-".concat(v.shape),g.style.setProperty("position","absolute"),g.style.setProperty("width",(o.w||1)+"px"),g.style.setProperty("height",(o.h||1)+"px"),g.style.setProperty("left",S+"px"),g.style.setProperty("top",C+"px");var k,I=document.createElementNS(le,"svg");I.style.setProperty("position","absolute"),I.setAttribute("width","100%"),I.setAttribute("height","100%"),I.style.setProperty("left","0"),I.style.setProperty("top","0"),I.style.overflow="visible";var w={left:0,top:0,bottom:0,w:o.w,h:o.h},P=!0;switch(v.shape){case"flowChartProcess":case"rect":k=gu(v);break;case"snip1Rect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj",d,ar(d)),T=["0,0","".concat(m.w-R,",0"),"".concat(m.w,",").concat(R),"".concat(m.w,",").concat(m.h),"0,".concat(m.h)].join(" ");return A.setAttribute("points",T),A})(v);break;case"snip2SameRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=[[R,0],[m.w-R,0],[m.w,R],[m.w,m.h-T],[m.w-T,m.h],[T,m.h],[0,m.h-T],[0,R]].map((function(Z){return"".concat(Z[0],",").concat(Z[1])})).join(" ");return A.setAttribute("points",U),A})(v);break;case"snip2DiagRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj1",d,0),T=Te("adj2",d,ar(d)),U=[[R,0],[m.w-T,0],[m.w,T],[m.w,m.h-R],[m.w-R,m.h],[T,m.h],[0,m.h-T],[0,R]].map((function(Z){return"".concat(Z[0],",").concat(Z[1])})).join(" ");return A.setAttribute("points",U),A})(v);break;case"snipRoundRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,ar(d)),U=["M ".concat(R,",0"),"L ".concat(m.w-T,",0"),"L ".concat(m.w,",").concat(T),"L ".concat(m.w,",").concat(m.h),"L 0,".concat(m.h),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"roundRect":k=(function(d){var m=gu(d),A=Te("adj",d,ar(d));return m.setAttribute("rx",A+"px"),m.setAttribute("ry",A+"px"),m})(v);break;case"round1Rect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj",d,ar(d)),T=["M 0,0","L ".concat(m.w-R,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(R),"L ".concat(m.w,",").concat(m.h),"L 0,".concat(m.h),"Z"].join(" ");return A.setAttribute("d",T),A})(v);break;case"round2SameRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=["M ".concat(R,",0"),"L ".concat(m.w-R,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(R),"L ".concat(m.w,",").concat(m.h-T),"Q ".concat(m.w,",").concat(m.h," ").concat(m.w-T,",").concat(m.h),"L ".concat(T,",").concat(m.h),"Q 0,".concat(m.h," 0,").concat(m.h-T),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"round2DiagRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=["M ".concat(R,",0"),"L ".concat(m.w-T,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(T),"L ".concat(m.w,",").concat(m.h-R),"Q ".concat(m.w,",").concat(m.h," ").concat(m.w-R,",").concat(m.h),"L ".concat(T,",").concat(m.h),"Q 0,".concat(m.h," 0,").concat(m.h-T),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"triangle":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=["".concat(m.w/2,",0"),"0,".concat(m.h),"".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("points",R),A})(v);break;case"rtTriangle":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=["0,".concat(m.h),"0,0","".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("points",R),A})(v);break;case"ellipse":k=(function(d){var m=d.extend,A=document.createElementNS(le,"ellipse"),R=m.w/2,T=m.h/2,U=R,Z=T;return A.setAttribute("cx",R+"px"),A.setAttribute("cy",T+"px"),A.setAttribute("rx",U+"px"),A.setAttribute("ry",Z+"px"),A})(v);break;case"line":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=["M 0,0","L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",R),A})(v),ei(v,I,k),P=!1;break;case"straightConnector1":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=["M 0,0","L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",R),A})(v),ei(v,I,k),P=!1;break;case"bentConnector3":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=pu("adj1",d,.5*Math.max(m.w,m.h)),T=["M 0,0","L ".concat(R,",0"),"L ".concat(R,",").concat(m.h),"L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",T),A})(v),ei(v,I,k),P=!1;break;case"curvedConnector3":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=pu("adj1",d,.5*Math.max(m.w,m.h)),T=["M0,0","Q".concat(R,",0 ").concat(R,",").concat(m.h/2),"T".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",T),A})(v),ei(v,I,k),P=!1}k&&(P?k.setAttribute("fill",Ue(u)||"transparent"):k.setAttribute("fill","transparent"),s.width?(k.setAttribute("stroke-width",s.width+"px"),k.setAttribute("stroke",Ue(s.color)||"transparent")):k.setAttribute("stroke-width","0"),k.setAttribute("stroke-dasharray",(function(d){return d&&d.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[d.type]||[]).map((function(m){return m*d.width})).join(","):""})(s)),k.setAttribute("stroke-linecap",s.cap&&{sq:"square",rnd:"round",flat:"butt"}[s.cap]||"square"),k.setAttribute("stroke-linejoin",s.lineJoin||"round"),s.lineJoin==="miter"&&k.setAttribute("stroke-miterlimit",s.miterLim+""),I.appendChild(k));var _=[];l&&_.push("scaleX(-1)"),c&&_.push("scaleY(-1)"),I.style.setProperty("transform",_.join(" ")),g.appendChild(I);var x=(function(d,m,A){var R;A===void 0&&(A=!1);var T=d.inheritProps,U=d.props,Z=d.paragraphs;if(!Z||Z.length===0)return null;var J=Oe(Oe({},T),U),H=document.createElement("div");switch(H.className="text-wrapper",H.style.boxSizing="border-box",H.style.position="absolute",H.style.left=m.left+"px",J.vert==="eaVert"?(H.style.writingMode="vertical-rl",H.style.height=m.h+"px"):H.style.width=m.w+"px",J.anchor){case"b":H.style.bottom=m.bottom+"px";break;case"t":H.style.top=m.top+"px";break;case"ctr":H.style.top=m.top+m.h/2+"px",H.style.transform="translateY(-50%)";break;default:A?H.style.top=m.top+"px":(H.style.top=m.top+m.h/2+"px",H.style.transform="translateY(-50%)")}var ot=[J.hasOwnProperty("tIns")?J.tIns+"px":"4px",J.hasOwnProperty("rIns")?J.rIns+"px":"7px",J.hasOwnProperty("bIns")?J.bIns+"px":"4px",J.hasOwnProperty("lIns")?J.lIns+"px":"7px"];H.style.padding=ot.join(" ");for(var gt={},B=0,$=function(yt){var st=Oe(Oe({},yt.inheritProps),yt.props),xt=void 0;if(st.buAutoNum){var nt=st.level?+st.level:0;gt[nt]||(gt[nt]=0),!((R=yt.rows)===null||R===void 0)&&R.length&>[nt]++,Object.keys(gt).forEach((function(bt){+bt>nt&&(gt[bt]=0)})),xt=uu(yt,gt[nt],{isFirst:B===0,isLast:Z.length-1===B,bodyProps:J})}else xt=uu(yt,0,{isFirst:B===0,isLast:Z.length-1===B,bodyProps:J});H.appendChild(xt),B++},p=0,V=Z;p<V.length;p++)$(V[p]);return H})(v.textBody,w,v.isTextBox);return x&&g.appendChild(x),a&&g.style.setProperty("transform","rotate(".concat(a,"deg)")),g}function ku(v){var o=document.createElement("div"),n=v.extend;v.chExtend;var s=v.offset,u=v.chOffset,a=v.flipV,l=v.flipH,c=v.rotate,g=s.x,S=s.y,C=n.w,k=n.h;o.className="group",o.style.position="absolute",o.style.left=g+"px",o.style.top=S+"px",o.style.width=C+"px",o.style.height=k+"px";var I=[];l&&I.push("scaleX(-1)"),a&&I.push("scaleY(-1)"),c&&I.push("rotate(".concat(c,"deg)")),o.style.transformOrigin="center center",o.style.transform=I.join(" ");for(var w=0;w<v.nodes.length;w++){var P=v.nodes[w],_=void 0;P instanceof qr?_=xu(P):P instanceof br?_=Au(P):P instanceof Cs&&(_=ku(P)),_.style.left=parseInt(_.style.left)-u.x+"px",_.style.top=parseInt(_.style.top)-u.y+"px",o.appendChild(_)}return o}var yg=(function(){function v(o,n,s){this.scale=1,this.wrapper=o,this.pptx=n,this.options=s,this._calcScaleAndRenderPort()}return v.prototype._calcScaleAndRenderPort=function(){var o=this.options.viewPort.width/this.pptx.width,n=this.options.viewPort.height/this.pptx.height;if(this.scale=Math.min(o,n),o<n){var s=this.options.viewPort.width,u=this.pptx.height*this.scale;this.renderPort={width:s,height:u,left:0,top:(this.options.viewPort.height-u)/2}}else s=this.pptx.width*this.scale,u=this.options.viewPort.height,this.renderPort={width:s,height:u,left:(this.options.viewPort.width-s)/2,top:0}},v.prototype.renderSlide=function(o){var n=this.pptx.slides[o],s=document.createElement("div");s.classList.add("pptx-preview-slide-wrapper"),s.style.setProperty("width",this.renderPort.width+"px"),s.style.setProperty("height",this.renderPort.height+"px"),s.style.setProperty("position","relative"),s.style.margin="0 auto 10px",s.style.setProperty("background","#fff"),s.style.setProperty("overflow","hidden"),this._renderBackground(n,s),this._renderSlideMaster(n.slideMaster,s),this._renderSlideLayout(n.slideLayout,s),this._renderSlide(n,s),this.wrapper.append(s)},v.prototype._renderSlideMaster=function(o,n){var s=document.createElement("div");s.classList.add("slide-master-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=bs([],o.nodes,!0).filter((function(c){return c.userDrawn}));u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderSlideLayout=function(o,n){var s=document.createElement("div");s.classList.add("slide-layout-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=bs([],o.nodes,!0).filter((function(c){return c.userDrawn}));u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderSlide=function(o,n){var s=document.createElement("div");s.classList.add("slide-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width",this.pptx.width+"px"),s.style.setProperty("height",this.pptx.height+"px"),s.style.setProperty("transform","scale(".concat(this.scale,")")),s.style.setProperty("transform-origin","0 0");var u=bs([],o.nodes,!0);u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderNode=function(o){return o instanceof qr?xu(o):o instanceof br?Au(o):o instanceof Cs?ku(o):void 0},v.prototype._renderBackground=function(o,n){var s=document.createElement("div");s.classList.add("slide-background"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=Ue(o.background)||Ue(o.slideLayout.background)||Ue(o.slideMaster.background);u?s.style.setProperty("background",u):s.style.setProperty("background","#fff"),n.append(s)},v})(),bg=(function(){function v(o,n){this.dom=o,this.options=n,this._renderWrapper()}return v.prototype._renderWrapper=function(){var o=document.createElement("div");o.classList.add("pptx-preview-wrapper"),o.style.setProperty("background","#000"),o.style.setProperty("width",this.options.width+"px"),this.options.height&&o.style.setProperty("height",this.options.height+"px"),o.style.setProperty("position","relative"),this.options.height&&o.style.setProperty("overflow-y","auto"),this.dom.append(o),this.wrapper=o},v.prototype.preview=function(o){var n=this;return new Promise((function(s,u){n.wrapper.innerHTML="";var a=new _g;a.load(o).then((function(){console.log("pptx 实例",a),console.log("slide1",a.slides[0]);var l=new yg(n.wrapper,a,{viewPort:{width:n.options.width,height:n.options.height}});console.log("htmlRender",l);for(var c=0;c<a.slides.length;c++)l.renderSlide(c)}))}))},v})();function Ag(v,o){return new bg(v,o)}export{ng as n,Ag as t,xg as v};
|
|
38
|
+
}`;var It=tu(function(){return zt(b,pt+"return "+it).apply(n,L)});if(It.source=it,as(It))throw It;return It}function o0(t){return Dt(t).toLowerCase()}function u0(t){return Dt(t).toUpperCase()}function l0(t,e,r){if(t=Dt(t),t&&(r||e===n))return oa(t);if(!t||!(e=Ce(e)))return t;var i=We(t),h=We(e),b=ua(i,h),L=la(i,h)+1;return mr(i,b,L).join("")}function f0(t,e,r){if(t=Dt(t),t&&(r||e===n))return t.slice(0,ca(t)+1);if(!t||!(e=Ce(e)))return t;var i=We(t),h=la(i,We(e))+1;return mr(i,0,h).join("")}function c0(t,e,r){if(t=Dt(t),t&&(r||e===n))return t.replace(ai,"");if(!t||!(e=Ce(e)))return t;var i=We(t),h=ua(i,We(e));return mr(i,h).join("")}function h0(t,e){var r=gt,i=B;if(qt(e)){var h="separator"in e?e.separator:h;r="length"in e?Ct(e.length):r,i="omission"in e?Ce(e.omission):i}t=Dt(t);var b=t.length;if(zr(t)){var L=We(t);b=L.length}if(r>=b)return t;var z=r-Nr(i);if(z<1)return i;var M=L?mr(L,0,z).join(""):t.slice(0,z);if(h===n)return M+i;if(L&&(z+=M.length-z),os(h)){if(t.slice(z).search(h)){var Q,tt=M;for(h.global||(h=Ai(h.source,Dt(Ps.exec(h))+"g")),h.lastIndex=0;Q=h.exec(tt);)var it=Q.index;M=M.slice(0,it===n?z:it)}}else if(t.indexOf(Ce(h),z)!=z){var ft=M.lastIndexOf(h);ft>-1&&(M=M.slice(0,ft))}return M+i}function d0(t){return t=Dt(t),t&&Su.test(t)?t.replace(lr,Zl):t}var p0=Hr(function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}),cs=Va("toUpperCase");function Vo(t,e,r){return t=Dt(t),e=r?n:e,e===n?Dl(t)?Gl(t):Il(t):t.match(e)||[]}var tu=Pt(function(t,e){try{return Ae(t,n,e)}catch(r){return as(r)?r:new kt(r)}}),g0=er(function(t,e){return ke(e,function(r){r=He(r),Ke(t,r,is(t[r],t))}),t});function _0(t){var e=t==null?0:t.length,r=wt();return t=e?Gt(t,function(i){if(typeof i[1]!="function")throw new Be(l);return[r(i[0]),i[1]]}):[],Pt(function(i){for(var h=-1;++h<e;){var b=t[h];if(Ae(b[0],this,i))return Ae(b[1],this,i)}})}function m0(t){return Hf(Ne(t,I))}function hs(t){return function(){return t}}function v0(t,e){return t==null||t!==t?e:t}var y0=eo(),b0=eo(!0);function we(t){return t}function ds(t){return Oa(typeof t=="function"?t:Ne(t,I))}function w0(t){return La(Ne(t,I))}function x0(t,e){return Ba(t,Ne(e,I))}var A0=Pt(function(t,e){return function(r){return nn(r,t,e)}}),k0=Pt(function(t,e){return function(r){return nn(t,r,e)}});function ps(t,e,r){var i=re(e),h=zn(e,i);r==null&&!(qt(e)&&(h.length||!i.length))&&(r=e,e=t,t=this,h=zn(e,re(e)));var b=!(qt(r)&&"chain"in r)||!!r.chain,L=nr(t);return ke(h,function(z){var M=e[z];t[z]=M,L&&(t.prototype[z]=function(){var Q=this.__chain__;if(b||Q){var tt=t(this.__wrapped__),it=tt.__actions__=ve(this.__actions__);return it.push({func:M,args:arguments,thisArg:t}),tt.__chain__=Q,tt}return M.apply(t,cr([this.value()],arguments))})}),t}function S0(){return ne._===this&&(ne._=Jl),this}function gs(){}function C0(t){return t=Ct(t),Pt(function(e){return za(e,t)})}var E0=Gi(Gt),I0=Gi(ra),P0=Gi(_i);function eu(t){return Qi(t)?mi(He(t)):ac(t)}function T0(t){return function(e){return t==null?n:Ir(t,e)}}var O0=no(),R0=no(!0);function _s(){return[]}function ms(){return!1}function L0(){return{}}function B0(){return""}function z0(){return!0}function N0(t,e){if(t=Ct(t),t<1||t>nt)return[];var r=W,i=oe(t,W);e=wt(e),t-=W;for(var h=bi(i,e);++r<t;)e(r);return h}function D0(t){return St(t)?Gt(t,He):Ee(t)?[t]:ve(bo(Dt(t)))}function M0(t){var e=++Yl;return Dt(t)+e}var F0=Wn(function(t,e){return t+e},0),U0=Ki("ceil"),W0=Wn(function(t,e){return t/e},1),Z0=Ki("floor");function H0(t){return t&&t.length?Bn(t,we,Oi):n}function j0(t,e){return t&&t.length?Bn(t,wt(e,2),Oi):n}function G0(t){return sa(t,we)}function K0(t,e){return sa(t,wt(e,2))}function q0(t){return t&&t.length?Bn(t,we,zi):n}function X0(t,e){return t&&t.length?Bn(t,wt(e,2),zi):n}var Y0=Wn(function(t,e){return t*e},1),$0=Ki("round"),J0=Wn(function(t,e){return t-e},0);function Q0(t){return t&&t.length?yi(t,we):0}function V0(t,e){return t&&t.length?yi(t,wt(e,2)):0}return y.after=xd,y.ary=Oo,y.assign=lp,y.assignIn=Go,y.assignInWith=Ko,y.assignWith=us,y.at=fp,y.before=Ro,y.bind=is,y.bindAll=g0,y.bindKey=Lo,y.castArray=Bd,y.chain=Io,y.chunk=Hc,y.compact=jc,y.concat=Gc,y.cond=_0,y.conforms=m0,y.constant=hs,y.countBy=Vh,y.create=cp,y.curry=Bo,y.curryRight=zo,y.debounce=No,y.defaults=hp,y.defaultsDeep=dp,y.defer=Ad,y.delay=kd,y.difference=Kc,y.differenceBy=qc,y.differenceWith=Xc,y.drop=Yc,y.dropRight=$c,y.dropRightWhile=Jc,y.dropWhile=Qc,y.fill=Vc,y.filter=ed,y.flatMap=id,y.flatMapDeep=sd,y.flatMapDepth=ad,y.flatten=ko,y.flattenDeep=th,y.flattenDepth=eh,y.flip=Sd,y.flow=y0,y.flowRight=b0,y.fromPairs=rh,y.functions=bp,y.functionsIn=wp,y.groupBy=od,y.initial=ih,y.intersection=sh,y.intersectionBy=ah,y.intersectionWith=oh,y.invert=Ap,y.invertBy=kp,y.invokeMap=ld,y.iteratee=ds,y.keyBy=fd,y.keys=re,y.keysIn=be,y.map=Xn,y.mapKeys=Cp,y.mapValues=Ep,y.matches=w0,y.matchesProperty=x0,y.memoize=$n,y.merge=Ip,y.mergeWith=qo,y.method=A0,y.methodOf=k0,y.mixin=ps,y.negate=Jn,y.nthArg=C0,y.omit=Pp,y.omitBy=Tp,y.once=Cd,y.orderBy=cd,y.over=E0,y.overArgs=Ed,y.overEvery=I0,y.overSome=P0,y.partial=ss,y.partialRight=Do,y.partition=hd,y.pick=Op,y.pickBy=Xo,y.property=eu,y.propertyOf=T0,y.pull=ch,y.pullAll=Co,y.pullAllBy=hh,y.pullAllWith=dh,y.pullAt=ph,y.range=O0,y.rangeRight=R0,y.rearg=Id,y.reject=gd,y.remove=gh,y.rest=Pd,y.reverse=rs,y.sampleSize=md,y.set=Lp,y.setWith=Bp,y.shuffle=vd,y.slice=_h,y.sortBy=wd,y.sortedUniq=Ah,y.sortedUniqBy=kh,y.split=n0,y.spread=Td,y.tail=Sh,y.take=Ch,y.takeRight=Eh,y.takeRightWhile=Ih,y.takeWhile=Ph,y.tap=jh,y.throttle=Od,y.thru=qn,y.toArray=Zo,y.toPairs=Yo,y.toPairsIn=$o,y.toPath=D0,y.toPlainObject=jo,y.transform=zp,y.unary=Rd,y.union=Th,y.unionBy=Oh,y.unionWith=Rh,y.uniq=Lh,y.uniqBy=Bh,y.uniqWith=zh,y.unset=Np,y.unzip=ns,y.unzipWith=Eo,y.update=Dp,y.updateWith=Mp,y.values=Kr,y.valuesIn=Fp,y.without=Nh,y.words=Vo,y.wrap=Ld,y.xor=Dh,y.xorBy=Mh,y.xorWith=Fh,y.zip=Uh,y.zipObject=Wh,y.zipObjectDeep=Zh,y.zipWith=Hh,y.entries=Yo,y.entriesIn=$o,y.extend=Go,y.extendWith=Ko,ps(y,y),y.add=F0,y.attempt=tu,y.camelCase=Hp,y.capitalize=Jo,y.ceil=U0,y.clamp=Up,y.clone=zd,y.cloneDeep=Dd,y.cloneDeepWith=Md,y.cloneWith=Nd,y.conformsTo=Fd,y.deburr=Qo,y.defaultTo=v0,y.divide=W0,y.endsWith=jp,y.eq=je,y.escape=Gp,y.escapeRegExp=Kp,y.every=td,y.find=rd,y.findIndex=xo,y.findKey=pp,y.findLast=nd,y.findLastIndex=Ao,y.findLastKey=gp,y.floor=Z0,y.forEach=Po,y.forEachRight=To,y.forIn=_p,y.forInRight=mp,y.forOwn=vp,y.forOwnRight=yp,y.get=ls,y.gt=Ud,y.gte=Wd,y.has=xp,y.hasIn=fs,y.head=So,y.identity=we,y.includes=ud,y.indexOf=nh,y.inRange=Wp,y.invoke=Sp,y.isArguments=Or,y.isArray=St,y.isArrayBuffer=Zd,y.isArrayLike=ye,y.isArrayLikeObject=Jt,y.isBoolean=Hd,y.isBuffer=vr,y.isDate=jd,y.isElement=Gd,y.isEmpty=Kd,y.isEqual=qd,y.isEqualWith=Xd,y.isError=as,y.isFinite=Yd,y.isFunction=nr,y.isInteger=Mo,y.isLength=Qn,y.isMap=Fo,y.isMatch=$d,y.isMatchWith=Jd,y.isNaN=Qd,y.isNative=Vd,y.isNil=ep,y.isNull=tp,y.isNumber=Uo,y.isObject=qt,y.isObjectLike=Yt,y.isPlainObject=fn,y.isRegExp=os,y.isSafeInteger=rp,y.isSet=Wo,y.isString=Vn,y.isSymbol=Ee,y.isTypedArray=Gr,y.isUndefined=np,y.isWeakMap=ip,y.isWeakSet=sp,y.join=uh,y.kebabCase=qp,y.last=Me,y.lastIndexOf=lh,y.lowerCase=Xp,y.lowerFirst=Yp,y.lt=ap,y.lte=op,y.max=H0,y.maxBy=j0,y.mean=G0,y.meanBy=K0,y.min=q0,y.minBy=X0,y.stubArray=_s,y.stubFalse=ms,y.stubObject=L0,y.stubString=B0,y.stubTrue=z0,y.multiply=Y0,y.nth=fh,y.noConflict=S0,y.noop=gs,y.now=Yn,y.pad=$p,y.padEnd=Jp,y.padStart=Qp,y.parseInt=Vp,y.random=Zp,y.reduce=dd,y.reduceRight=pd,y.repeat=t0,y.replace=e0,y.result=Rp,y.round=$0,y.runInContext=N,y.sample=_d,y.size=yd,y.snakeCase=r0,y.some=bd,y.sortedIndex=mh,y.sortedIndexBy=vh,y.sortedIndexOf=yh,y.sortedLastIndex=bh,y.sortedLastIndexBy=wh,y.sortedLastIndexOf=xh,y.startCase=i0,y.startsWith=s0,y.subtract=J0,y.sum=Q0,y.sumBy=V0,y.template=a0,y.times=N0,y.toFinite=ir,y.toInteger=Ct,y.toLength=Ho,y.toLower=o0,y.toNumber=Fe,y.toSafeInteger=up,y.toString=Dt,y.toUpper=u0,y.trim=l0,y.trimEnd=f0,y.trimStart=c0,y.truncate=h0,y.unescape=d0,y.uniqueId=M0,y.upperCase=p0,y.upperFirst=cs,y.each=Po,y.eachRight=To,y.first=So,ps(y,(function(){var t={};return qe(y,function(e,r){Nt.call(y.prototype,r)||(t[r]=e)}),t})(),{chain:!1}),y.VERSION=s,ke(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){y[t].placeholder=y}),ke(["drop","take"],function(t,e){Lt.prototype[t]=function(r){r=r===n?1:ee(Ct(r),0);var i=this.__filtered__&&!e?new Lt(this):this.clone();return i.__filtered__?i.__takeCount__=oe(r,i.__takeCount__):i.__views__.push({size:oe(r,W),type:t+(i.__dir__<0?"Right":"")}),i},Lt.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}}),ke(["filter","map","takeWhile"],function(t,e){var r=e+1,i=r==V||r==st;Lt.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:wt(h,3),type:r}),b.__filtered__=b.__filtered__||i,b}}),ke(["head","last"],function(t,e){var r="take"+(e?"Right":"");Lt.prototype[t]=function(){return this[r](1).value()[0]}}),ke(["initial","tail"],function(t,e){var r="drop"+(e?"":"Right");Lt.prototype[t]=function(){return this.__filtered__?new Lt(this):this[r](1)}}),Lt.prototype.compact=function(){return this.filter(we)},Lt.prototype.find=function(t){return this.filter(t).head()},Lt.prototype.findLast=function(t){return this.reverse().find(t)},Lt.prototype.invokeMap=Pt(function(t,e){return typeof t=="function"?new Lt(this):this.map(function(r){return nn(r,t,e)})}),Lt.prototype.reject=function(t){return this.filter(Jn(wt(t)))},Lt.prototype.slice=function(t,e){t=Ct(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Lt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(e=Ct(e),r=e<0?r.dropRight(-e):r.take(e-t)),r)},Lt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Lt.prototype.toArray=function(){return this.take(W)},qe(Lt.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),h=y[i?"take"+(e=="last"?"Right":""):e],b=i||/^find/.test(e);h&&(y.prototype[e]=function(){var L=this.__wrapped__,z=i?[1]:arguments,M=L instanceof Lt,Q=z[0],tt=M||St(L),it=function(Tt){var Bt=h.apply(y,cr([Tt],z));return i&&ft?Bt[0]:Bt};tt&&r&&typeof Q=="function"&&Q.length!=1&&(M=tt=!1);var ft=this.__chain__,pt=!!this.__actions__.length,At=b&&!ft,It=M&&!pt;if(!b&&tt){L=It?L:new Lt(this);var vt=t.apply(L,z);return vt.__actions__.push({func:qn,args:[it],thisArg:n}),new ze(vt,ft)}return At&&It?t.apply(this,z):(vt=this.thru(it),At?i?vt.value()[0]:vt.value():vt)})}),ke(["pop","push","shift","sort","splice","unshift"],function(t){var e=yn[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);y.prototype[t]=function(){var h=arguments;if(i&&!this.__chain__){var b=this.value();return e.apply(St(b)?b:[],h)}return this[r](function(L){return e.apply(St(L)?L:[],h)})}}),qe(Lt.prototype,function(t,e){var r=y[e];if(r){var i=r.name+"";Nt.call(Ur,i)||(Ur[i]=[]),Ur[i].push({name:e,func:r})}}),Ur[Un(n,m).name]=[{name:"wrapper",func:n}],Lt.prototype.clone=pf,Lt.prototype.reverse=gf,Lt.prototype.value=_f,y.prototype.at=Gh,y.prototype.chain=Kh,y.prototype.commit=qh,y.prototype.next=Xh,y.prototype.plant=$h,y.prototype.reverse=Jh,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Qh,y.prototype.first=y.prototype.head,$r&&(y.prototype[$r]=Yh),y}),Dr=Kl();Ar?((Ar.exports=Dr)._=Dr,hi._=Dr):ne._=Dr}).call(lg)})(cn,cn.exports)),cn.exports}var K=fg();function Xt(v){return v/12700}function su(v){return v/100}function yu(v){return v/6e4}function Ss(v){return v/1e5}function ws(v){var o=Math.ceil(v/26),n=(v%26||26)-1+65;return String.fromCharCode(n).repeat(o)}var bu=(function(){function v(o,n){this.uuid=rg(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=o,this.ctx=n;var s=K.get(o,["p:nvSpPr","p:nvPr"]);if(s){var u=K.get(s,"p:ph");u&&u.attrs&&(this.idx=u.attrs.idx,this.type=u.attrs.type),K.get(s,["attrs","userDrawn"])&&(this.userDrawn=K.get(s,["attrs","userDrawn"])==="1")}if(this.order=K.get(o,"attrs.order",0),this.source["p:spPr"]){var a=this.getXfrm();a&&(this.offset={x:Math.round(Xt(parseInt(a["a:off"].attrs.x))),y:Math.round(Xt(parseInt(a["a:off"].attrs.y)))},this.extend={w:Math.round(Xt(parseInt(a["a:ext"].attrs.cx))),h:Math.round(Xt(parseInt(a["a:ext"].attrs.cy)))},this.rotate=yu(parseInt(K.get(a,"attrs.rot",0))),this.flipV=K.get(a,"attrs.flipV")==="1",this.flipH=K.get(a,"attrs.flipH")==="1")}}return Object.defineProperty(v.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),v.prototype.getColorThemeName=function(o){return this.ctx.getColorThemeName(o)},v.prototype.getXfrm=function(){var o=this.source["p:spPr"]["a:xfrm"];return o||(this.idx?o=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(o=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),o},v})(),qr=(function(v){function o(n,s,u,a){var l=v.call(this,s,a)||this;l.userDrawn=!0,l.pptx=u,l.path=n;var c=K.get(l.source,["p:blipFill","a:srcRect"]);return c&&(l.clip={},c.attrs.b&&(l.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(l.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(l.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(l.clip.r=parseInt(c.attrs.r)/1e5)),l}return vu(o,v),Object.defineProperty(o.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),o})(bu);function Re(v,o,n){var s={type:"solidFill"};if(v["a:srgbClr"])s.color="#"+v["a:srgbClr"].attrs.val;else if(v["a:schemeClr"]){var u=v["a:schemeClr"].attrs.val;n&&(u=n.getColorThemeName(u)),s.color=o.getColor(u)}else v["a:sysClr"]&&(s.color="#"+v["a:sysClr"].attrs.lastClr);var a=v["a:srgbClr"]||v["a:schemeClr"]||v["a:sysClr"],l=K.get(a,["a:alpha","attrs","val"],1e5);s.alpha=l/1e5;var c=K.get(a,["a:shade","attrs","val"]);c&&(s.shade=c/1e5);var g=K.get(a,["a:lumMod","attrs","val"]);g&&(s.lumMod=g/1e5);var S=K.get(a,["a:lumOff","attrs","val"]);return S&&(s.lumOff=S/1e5),s}function xs(v){return v<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function As(v){return v<.0031308?12.92*v:1.055*Math.pow(v,1/2.4)-.055}function Ue(v){if(!v||v.type==="none")return"";if(v.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(v.color)){var o=parseInt(v.color.substr(1,2),16),n=parseInt(v.color.substr(3,2),16),s=parseInt(v.color.substr(5,2),16);if(v.shade){var u=(function(l,c){var g=l[0],S=l[1],C=l[2],k=xs(g/255)*c,I=xs(S/255)*c,w=xs(C/255)*c;return[Math.round(255*As(k)),Math.round(255*As(I)),Math.round(255*As(w))]})([o,n,s],v.shade);o=u[0],n=u[1],s=u[2]}var a=v.alpha;return"rgba(".concat(o,",").concat(n,",").concat(s,",").concat(a,")")}}var cg=(function(){function v(o,n){this.props={},this.inheritProps={},this.source=o,this.node=n,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return v.prototype._getInheritBodyProps=function(){var o,n=this.node.ctx,s=this.node.type,u=this.node.idx;if(s||u)switch(n.slideType){case"slideMaster":break;case"slideLayout":(o=s?n.slideMaster.getNodeByType(s):n.slideMaster.getNodeByIdx(u))&&(this.inheritProps=K.get(o,["textBody","props"])||{});break;case"slide":(o=s?n.slideLayout.slideMaster.getNodeByType(s):n.slideLayout.slideMaster.getNodeByIdx(u))&&Object.assign(this.inheritProps,K.get(o,["textBody","props"])||{}),(o=s?n.slideLayout.getNodeByType(s):n.slideLayout.getNodeByIdx(u))&&Object.assign(this.inheritProps,K.get(o,["textBody","props"])||{})}},v.prototype._parseBodyProps=function(){var o=this,n=K.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(n).forEach((function(l){switch(l){case"anchor":o.props.anchor=n[l];break;case"rtlCol":o.props.rtlCol=n[l]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":o.props[l]=Xt(parseInt(n[l]));break;case"order":break;default:o.props[l]=n[l]}}));var s=K.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(s){this.props.normAutofit={};var u=s.fontScale;u&&(this.props.normAutofit.fontScale=Ss(parseInt(u)));var a=s.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=Ss(parseInt(a)))}},v.prototype._parseLstStyle=function(){var o=this,n={},s=K.get(this.source,"a:lstStyle")||{};Object.keys(s).forEach((function(u){if(u.startsWith("a:")&&u.endsWith("pPr")){var a=u.substr(2,u.length-5);n[a]={props:o._formatPPr(s[u])};var l=K.get(s[u],["a:defRPr"]);n[a].defRPr=o._formatRPr(l)}})),this.lstStyle=n},v.prototype._parseText=function(){var o=this,n=K.get(this.source,["a:p"])||[];Array.isArray(n)||(n=[n]),this.paragraphs=n.map((function(s){return o._parseParagraph(s)}))},v.prototype._parseParagraph=function(o){var n=this,s={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},u=K.get(o,["a:pPr"])||{};s.props=this._formatPPr(u);var a=K.get(o,["a:endParaRPr"]);s.endParaRProps=this._formatRPr(a);var l=K.get(o,["a:r"])||[];Array.isArray(l)||(l=[l]);var c=K.get(o,["a:br"])||[];return Array.isArray(c)||(c=[c]),(l=l.concat(c.map((function(g){return Oe({isBr:!0},g)})))).sort((function(g,S){return K.get(g,["attrs","order"])-K.get(S,["attrs","order"])})),s.rows=l.map((function(g){return n._parseRow(g)})),s.inheritProps=this._getInheritPProps(s.props.level),s.inheritRProps=this._getInheritRProps(s.props.level),s},v.prototype._getInheritPProps=function(o){o===void 0&&(o="0");var n,s={},u=this.node.ctx,a=this.node.type,l=this.node.idx;switch(u.slideType){case"slideMaster":this.node.isTextBox?Object.assign(s,K.get(u.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(s,K.get(u.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{}),(a||l)&&(n=a?u.slideMaster.getNodeByType(a):u.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(s,K.get(u.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"props"])||{}):Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"props"])||{}),(a||l)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(o?+o+1:1),"props"])||{}),(n=a?u.slideLayout.slideMaster.getNodeByType(a):u.slideLayout.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{}),(n=a?u.slideLayout.getNodeByType(a):u.slideLayout.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"props"])||{}))}return s},v.prototype._getInheritRProps=function(o){o===void 0&&(o="0");var n,s={},u=this.node.ctx,a=this.node.type,l=this.node.idx;switch(u.slideType){case"slideMaster":this.node.isTextBox?Object.assign(s,K.get(u.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(s,K.get(u.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(a||l)&&(n=a?u.slideMaster.getNodeByType(a):u.slideMaster.getNodeByIdx(l))&&(s=K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(s,K.get(u.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(o?+o+1:1),"defRPr"])||{}):Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(a||l)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(s,K.get(u.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(n=a?u.slideLayout.slideMaster.getNodeByType(a):u.slideLayout.slideMaster.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}),(n=a?u.slideLayout.getNodeByType(a):u.slideLayout.getNodeByIdx(l))&&Object.assign(s,K.get(n,["textBody","lstStyle","lvl".concat(o?+o+1:1),"defRPr"])||{}))}var c=K.get(this.node.source,["p:style","a:fontRef"]);return K.get(c,"a:schemeClr")&&(s.color=Re(c,this.node.theme,this.node)),K.get(this.lstStyle,["lvl".concat(o?+o+1:1),"defRPr"])&&Object.assign(s,K.get(this.lstStyle,["lvl".concat(o?+o+1:1),"defRPr"])),s},v.prototype._formatPPr=function(o){var n={},s=K.get(o,"attrs")||{};return Object.keys(s).forEach((function(u){switch(u){case"algn":n.align=s[u];break;case"marL":n.marginLeft=Xt(parseInt(s[u]));break;case"indent":n.indent=Xt(parseInt(s[u]));break;case"lvl":n.level=s[u]}})),K.get(o,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(o["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),K.get(o,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=o["a:buAutoNum"].attrs.type),K.get(o,["a:buChar","attrs","char"])&&(n.buChar=o["a:buChar"].attrs.char),K.get(o,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=su(parseInt(o["a:spcBef"]["a:spcPts"].attrs.val))),K.get(o,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=su(parseInt(o["a:spcAft"]["a:spcPts"].attrs.val))),n},v.prototype._parseRow=function(o){if(o.isBr)return{isBr:!0};var n={props:{},text:""},s=K.get(o,["a:rPr"])||{};return n.props=this._formatRPr(s),n.text=K.get(o,"a:t")||"",n},v.prototype._formatRPr=function(o){var n={},s=K.get(o,"attrs")||{};Object.keys(s).forEach((function(l){switch(l){case"sz":n.size=parseInt(s[l])/100;break;case"b":n.bold=s[l]==="1";break;case"i":n.italic=s[l]==="1";break;case"u":n.underline=s[l];break;case"strike":n.strike=s[l];break;case"order":case"dirty":break;default:n[l]=s[l]}}));var u=K.get(o,"a:solidFill");u&&(n.color=Re(u,this.node.theme,this.node));var a=K.get(o,"a:highlight");return a&&(n.background=Re(a,this.node.theme,this.node)),n},v})(),br=(function(v){function o(n,s,u){var a=v.call(this,n,u)||this;return a.border={},a.prstGeom={},a.isTextBox=!1,a.pptx=s,a.shape=K.get(n,["p:spPr","a:prstGeom","attrs","prst"]),a._parIsTextBox(),a._parsePrstGeom(),a._parseBackground(),a._parseBorder(),a._parseTxt(),a}return vu(o,v),o.prototype._parIsTextBox=function(){this.isTextBox=K.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},o.prototype._parsePrstGeom=function(){var n=K.get(this.source,["p:spPr","a:prstGeom"]),s=K.get(n,["a:avLst","a:gd"]);s&&(Array.isArray(s)||(s=[s]),this.prstGeom.gd=s.map((function(u){return{name:u.attrs.name,fmla:Ss(parseInt(u.attrs.fmla.split(" ")[1]))}})))},o.prototype._parseBackground=function(){if(!K.get(this.source,["p:spPr","a:noFill"])){var n=K.get(this.source,["p:spPr","a:solidFill"]);if(n)this.background=Re(n,this.theme,this);else if(!K.get(this.source,["p:spPr","a:gradFill"])){var s=K.get(this.source,["p:style","a:fillRef"]);s&&(this.background=Re(s,this.theme,this))}}},o.prototype._parseBorder=function(){var n=K.get(this.source,["p:style","a:lnRef"]);if(n){var s=parseInt(n.attrs.idx),u=this.theme.getLineStyle(s);this.border=Oe(Oe({},u),this.border),this.border.color&&this.border.color.color||(this.border.color=Re(n,this.theme,this))}var a=K.get(this.source,["p:spPr","a:ln"]);if(a){if(K.get(a,"a:noFill"))return;K.get(a,"attrs.w")&&(this.border.width=Xt(parseInt(K.get(a,"attrs.w"))));var l=K.get(a,"a:solidFill");l&&(this.border.color=Re(l,this.theme,this));var c=K.get(a,"a:prstDash");if(c&&(this.border.type=c.attrs.val),K.get(a,["a:miter"])&&(this.border.lineJoin="miter"),K.get(a,["a:bevel"])&&(this.border.lineJoin="bevel"),K.get(a,["a:round"])&&(this.border.lineJoin="round"),K.get(a,["a:miter","attrs","lim"])&&(this.border.miterLim=Xt(parseInt(K.get(a,["a:miter","attrs","lim"])))),K.get(a,["a:headEnd"])){var g=K.get(a,["a:headEnd","attrs"]);this.border.headEnd={type:g.type,len:g.len,w:g.w}}if(K.get(a,["a:tailEnd"])){var S=K.get(a,["a:tailEnd","attrs"]);this.border.tailEnd={type:S.type,len:S.len,w:S.w}}Object.assign(this.border,K.omit(K.get(a,"attrs")||{},["w","order"]))}this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=o.defaultBorderWidth)},o.prototype._parseTxt=function(){this.textBody=new cg(K.get(this.source,["p:txBody"]),this)},o.defaultBorderWidth=.75,o})(bu),Cs=(function(){function v(o,n,s){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.order=K.get(o,["attrs","order"]),this.pptx=n,this.ctx=s,this.source=o,this.source["p:grpSpPr"]){var u=K.get(this.source,["p:grpSpPr","a:xfrm"]);u&&(this.offset={x:Math.round(Xt(parseInt(u["a:off"].attrs.x))),y:Math.round(Xt(parseInt(u["a:off"].attrs.y)))},this.chOffset={x:Math.round(Xt(parseInt(u["a:chOff"].attrs.x))),y:Math.round(Xt(parseInt(u["a:chOff"].attrs.y)))},this.extend={w:Math.round(Xt(parseInt(u["a:ext"].attrs.cx))),h:Math.round(Xt(parseInt(u["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(Xt(parseInt(u["a:chExt"].attrs.cx))),h:Math.round(Xt(parseInt(u["a:chExt"].attrs.cy)))},this.rotate=yu(parseInt(K.get(u,"attrs.rot",0))),this.flipV=K.get(u,"attrs.flipV")==="1",this.flipH=K.get(u,"attrs.flipH")==="1")}this._parseNodes()}return v.prototype._parseNodes=function(){var o=this.source;for(var n in o)switch(n){case"p:sp":for(var s=Array.isArray(o[n])?o[n]:[o[n]],u=0;u<s.length;u++){var a=s[u];this.nodes.push(new br(a,this.pptx,this.ctx))}break;case"p:pic":var l=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<l.length;u++){var c=l[u],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.ctx.rels[g].target,C=new qr(S,c,this.pptx,this.ctx);this.nodes.push(C)}break;case"p:cxnSp":var k=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<k.length;u++)a=k[u],this.nodes.push(new br(a,this.pptx,this.ctx));break;case"p:grpSp":var I=Array.isArray(o[n])?o[n]:[o[n]];for(u=0;u<I.length;u++){var w=I[u];this.nodes.push(new v(w,this.pptx,this.ctx))}}},v})(),ri=1;function or(v){var o=60,n=62,s=45,u=47,a=33,l=39,c=34,g=63,S=`\r
|
|
39
|
+
>/= `,C=0;return ri=1,wu((function k(){for(var I=[];v[C];){if(v.charCodeAt(C)==o){if(v.charCodeAt(C+1)===u)return C=v.indexOf(">",C),I;if(v.charCodeAt(C+1)===a){if(v.charCodeAt(C+2)==s){for(;v.charCodeAt(C)!==n||v.charCodeAt(C-1)!=s||v.charCodeAt(C-2)!=s||C==-1;)C=v.indexOf(">",C+1);C===-1&&(C=v.length)}else for(C+=2;v.charCodeAt(C)!==n;C++);C++;continue}if(v.charCodeAt(C+1)===g){C=v.indexOf(">",C),C++;continue}for(var w=++C;S.indexOf(v[C])===-1;C++);for(var P=v.slice(w,C),_=!1,x={};v.charCodeAt(C)!==n;C++){var d=v.charCodeAt(C);if(d>64&&d<91||d>96&&d<123){for(w=C;S.indexOf(v[C])===-1;C++);for(var m=v.slice(w,C),A=v.charCodeAt(C);A!==l&&A!==c;)C++,A=v.charCodeAt(C);var R=v[C],T=++C;C=v.indexOf(R,T);var U=v.slice(T,C);_||(x={},_=!0),x[m]=U}}var Z=[];v.charCodeAt(C-1)!==u&&(C++,Z=k()),I.push({children:Z,tagName:P,attrs:x})}else{var J=C;(C=v.indexOf("<",C)-1)===-2&&(C=v.length);var H=v.slice(J,C+1);H.length>0&&I.push(H)}C++}return I})())}function wu(v){var o={};if(v===void 0)return{};if(v.length===1&&typeof v[0]=="string")return v[0];for(var n in v.forEach((function(s){if(o[s.tagName]||(o[s.tagName]=[]),typeof s=="object"){var u=wu(s.children);typeof u=="object"&&(s.attrs&&(u.attrs=s.attrs),u.attrs===void 0?u.attrs={order:ri}:u.attrs.order=ri),ri++,o[s.tagName].push(u)}})),o)o[n].length==1&&(o[n]=o[n][0]);return o}var hg=(function(){function v(o,n,s){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=o,this.source=n,this.pptx=s}return Object.defineProperty(v.prototype,"index",{get:function(){if(!this.name)return 0;var o=this.name.match(/(\d+)/);return o?parseInt(o[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._loadRels()];case 1:return o.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return o.sent(),[2]}}))}))},v.prototype._loadRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var c=l.attrs.Target.replace("../","ppt/");u.slideLayout=u.pptx.getSlideLayout(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._loadBackground=function(){var o=K.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);o&&o["a:solidFill"]&&(this.background=Re(o["a:solidFill"],this.theme,this))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C,k,I,w;return ce(this,(function(P){for(n in o=K.get(this.source,["p:sld","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<s.length;I++)C=s[I],this.nodes.push(new br(C,this.pptx,this));break;case"p:pic":for(u=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<u.length;I++)a=u[I],l=a["p:blipFill"]["a:blip"].attrs["r:embed"],c=this.rels[l].target,g=new qr(c,a,this.pptx,this),this.nodes.push(g);break;case"p:cxnSp":for(S=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<S.length;I++)C=S[I],this.nodes.push(new br(C,this.pptx,this));break;case"p:graphicFrame":break;case"p:grpSp":for(k=Array.isArray(o[n])?o[n]:[o[n]],I=0;I<k.length;I++)w=k[I],this.nodes.push(new Cs(w,this.pptx,this))}return[2]}))}))},v.prototype.getColorThemeName=function(o){return this.slideLayout.getColorThemeName(o)},v.prototype.getNodeInheritAttrsByType=function(o,n){var s=this.slideLayout.getNodeByType(o),u=K.get(s.source,n);return u||this.slideLayout.getNodeInheritAttrsByType(o,n)},v.prototype.getNodeInheritAttrsByIdx=function(o,n){var s=this.slideLayout.getNodeByIdx(o),u=K.get(s.source,n);return u||this.slideLayout.getNodeInheritAttrsByIdx(o,n)},v})(),dg=(function(){function v(o,n,s){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=o,this.source=n,this.pptx=s}return Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._loadRels()];case 1:return o.sent(),[4,this._loadBackground()];case 2:return o.sent(),[4,this._loadNodes()];case 3:return o.sent(),[2]}}))}))},v.prototype._loadRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var c=l.attrs.Target.replace("../","ppt/");u.slideMaster=u.pptx.getSlideMaster(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._loadBackground=function(){return fe(this,void 0,void 0,(function(){var o;return ce(this,(function(n){return(o=K.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&o["a:solidFill"]&&(this.background=Re(o["a:solidFill"],this.theme)),[2]}))}))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C;return ce(this,(function(k){for(n in o=K.get(this.source,["p:sldLayout","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<s.length;l++)u=s[l],this.nodes.push(new br(u,this.pptx,this));break;case"p:pic":for(a=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<a.length;l++)c=a[l],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.rels[g].target,C=new qr(S,c,this.pptx,this),this.nodes.push(C)}return[2]}))}))},v.prototype.getColorThemeName=function(o){return this.slideMaster.getColorThemeName(o)},v.prototype.getNodeByType=function(o){return this.nodes.find((function(n){return n.type===o}))},v.prototype.getNodeByIdx=function(o){return this.nodes.find((function(n){return n.idx===o}))},v.prototype.getNodeInheritAttrsByType=function(o,n){var s=this.slideMaster.getNodeByType(o);return s&&K.get(s.source,n)},v.prototype.getNodeInheritAttrsByIdx=function(o,n){var s=this.slideMaster.getNodeByIdx(o);return s&&K.get(s.source,n)},v})();function au(v){var o={},n=K.get(v,"attrs")||{};return Object.keys(n).forEach((function(s){switch(s){case"algn":o.align=n[s];break;case"marL":o.marginLeft=Xt(parseInt(n[s]));break;case"indent":o.indent=Xt(parseInt(n[s]));break;case"lvl":o.level=n[s]}})),K.get(v,["a:lnSpc","a:spcPct","attrs","val"])&&(o.lineHeight=parseInt(v["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),o}function ou(v,o,n){var s={},u=K.get(v,"attrs")||{};Object.keys(u).forEach((function(l){switch(l){case"sz":s.size=parseInt(u[l])/100;break;case"b":s.bold=u[l]==="1";break;case"i":s.italic=u[l]==="1";break;case"u":s.underline=u[l];break;case"strike":s.strike=u[l];break;case"order":case"dirty":break;default:s[l]=u[l]}}));var a=K.get(v,"a:solidFill");return a&&(s.color=Re(a,o,n)),s}var pg=(function(){function v(o,n,s){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.name=o,this.source=n,this.pptx=s,this.load()}return Object.defineProperty(v.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),v.prototype.load=function(){return fe(this,void 0,void 0,(function(){return ce(this,(function(o){switch(o.label){case 0:return[4,this._parseRels()];case 1:return o.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},v.prototype._parseRels=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u=this;return ce(this,(function(a){switch(a.label){case 0:return n=or,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return o=n.apply(void 0,[a.sent()]),s=K.get(o,["Relationships","Relationship"])||[],Array.isArray(s)||(s=[s]),s.forEach((function(l){switch(K.get(l,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var c=l.attrs.Target.replace("../","ppt/");u.theme=u.pptx.getTheme(c);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":u.rels[l.attrs.Id]={type:l.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:l.attrs.Target.replace("../","ppt/")}}})),[2]}}))}))},v.prototype._parseColorMap=function(){this.colorMap=K.omit(K.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},v.prototype.getColorThemeName=function(o){return this.colorMap[o]||o},v.prototype._parseBackground=function(){var o=K.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),n=K.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);o&&o["a:solidFill"]?this.background=Re(o["a:solidFill"],this.theme,this):n&&(this.background=Re(n,this.theme,this))},v.prototype._parseDefaultTextStyle=function(){var o=this,n=this.pptx.defaultTextStyleSource;Object.keys(n).forEach((function(s){if(s.startsWith("a:")&&s.endsWith("pPr")){var u=s.substr(2,s.length-5),a=K.get(n[s],["a:defRPr"]);o.defaultTextStyle[u]={props:au(n[s]),defRPr:ou(a,o.theme,o)}}}))},v.prototype._parseTextStyles=function(){var o=this,n=K.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(s){var u=o.textStyles[s],a=K.get(n,"p:".concat(s))||{};Object.keys(a).forEach((function(l){if(l.startsWith("a:")&&l.endsWith("pPr")){var c=l.substr(2,l.length-5);u[c]={},u[c].props=au(a[l]);var g=K.get(a[l],["a:defRPr"]);u[c].defRPr=ou(g,o.theme,o)}}))}))},v.prototype._loadNodes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C;return ce(this,(function(k){for(n in o=K.get(this.source,["p:sldMaster","p:cSld","p:spTree"]))switch(n){case"p:sp":for(s=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<s.length;l++)u=s[l],this.nodes.push(new br(u,this.pptx,this));break;case"p:pic":for(a=Array.isArray(o[n])?o[n]:[o[n]],l=0;l<a.length;l++)c=a[l],g=c["p:blipFill"]["a:blip"].attrs["r:embed"],S=this.rels[g].target,C=new qr(S,c,this.pptx,this),this.nodes.push(C)}return[2]}))}))},v.prototype.getNodeByType=function(o){return this.nodes.find((function(n){return n.type===o}))},v.prototype.getNodeByIdx=function(o){return this.nodes.find((function(n){return n.idx===o}))},v.prototype.getNodeInheritAttrsByType=function(o,n){},v.prototype.getNodeInheritAttrsByIdx=function(o,n){},v})(),gg=(function(){function v(o,n,s){this.clrScheme={},this.borderScheme=[],this.name=o,this.source=n,this.pptx=s,this._parseClrScheme(),this._parseLineStyleLst()}return v.prototype._parseClrScheme=function(){var o=K.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var n in o)if(n.startsWith("a:")){var s=n.substring(2),u=K.get(o[n],["a:sysClr","attrs","lastClr"])||K.get(o[n],["a:srgbClr","attrs","val"]);this.clrScheme[s]="#"+u}},v.prototype._parseLineStyleLst=function(){var o=this,n=K.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"]);this.borderScheme=n.map((function(s){var u={color:{}};return K.get(s,["attrs","w"])&&(u.width=Xt(parseInt(K.get(s,["attrs","w"])))),K.get(s,["attrs","algn"])&&(u.algn=K.get(s,["attrs","algn"])),K.get(s,["attrs","cap"])&&(u.cap=K.get(s,["attrs","cap"])),K.get(s,["attrs","cmpd"])&&(u.cmpd=K.get(s,["attrs","cmpd"])),K.get(s,["a:miter","attrs","lim"])&&(u.miterLim=Xt(parseInt(K.get(s,["a:miter","attrs","lim"])))),K.get(s,["a:prstDash","attrs","val"])&&(u.type=K.get(s,["a:prstDash","attrs","val"])),K.get(s,["a:solidFill"])&&(u.color=Re(K.get(s,["a:solidFill"]),o)),u}))},v.prototype.getColor=function(o){if(o!=="phClr")return this.clrScheme[o]||this.defaultColor},v.prototype.getLineStyle=function(o){return this.borderScheme[o-1]},v})(),_g=(function(){function v(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return v.prototype.load=function(o){return fe(this,void 0,void 0,(function(){var n,s;return ce(this,(function(u){switch(u.label){case 0:return n=new ug,s=this,[4,n.loadAsync(o)];case 1:return s._zipContents=u.sent(),[4,this._loadThumbnail()];case 2:return u.sent(),[4,this._loadMedia()];case 3:return u.sent(),[4,this._loadPresentation()];case 4:return u.sent(),[4,this._loadContentTypes()];case 5:return u.sent(),[2]}}))}))},v.prototype._loadThumbnail=function(){return fe(this,void 0,void 0,(function(){var o,n;return ce(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:o=s.sent(),this.thumbnail="data:image/jpeg;base64,"+o,s.label=2;case 2:return[3,4];case 3:return n=s.sent(),console.log("获取PPTX缩略图失败",n),[3,4];case 4:return[2]}}))}))},v.prototype._loadPresentation=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u;return ce(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return o=a.sent(),n=or(o),s=n["p:presentation"]["p:sldSz"].attrs,this.width=Xt(parseInt(s.cx)),this.height=Xt(parseInt(s.cy)),this.defaultTextStyleSource=K.get(n,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return u=a.sent(),console.log("获取PPTX尺寸失败",u),[3,3];case 3:return[2]}}))}))},v.prototype._loadContentTypes=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c,g,S,C,k,I,w,P,_,x,d,m,A,R;return ce(this,(function(T){switch(T.label){case 0:return T.trys.push([0,20,,21]),n=or,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(o=n.apply(void 0,[T.sent()]),s=o.Types.Override,!(u=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"}))))return[3,5];a=0,l=u,T.label=2;case 2:return a<l.length?(c=l[a],x=c.attrs.PartName.substr(1),g=or,[4,this._zipContents.files[x].async("text")]):[3,5];case 3:d=g.apply(void 0,[T.sent()]),this.themes.push(new gg(x,d,this)),T.label=4;case 4:return a++,[3,2];case 5:S=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"})),_=0,T.label=6;case 6:return _<S.length?(x=S[_].attrs.PartName.substr(1),C=or,[4,this._zipContents.files[x].async("text")]):[3,9];case 7:d=C.apply(void 0,[T.sent()]),this.slideMaster.push(new pg(x,d,this)),T.label=8;case 8:return _++,[3,6];case 9:k=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"})),_=0,T.label=10;case 10:return _<k.length?(x=k[_].attrs.PartName.substr(1),I=or,[4,this._zipContents.files[x].async("text")]):[3,14];case 11:return d=I.apply(void 0,[T.sent()]),[4,(w=new dg(x,d,this)).load()];case 12:T.sent(),this.slideLayouts.push(w),T.label=13;case 13:return _++,[3,10];case 14:P=s.filter((function(U){return U.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"})),_=0,T.label=15;case 15:return _<P.length?(x=P[_].attrs.PartName.substr(1),m=or,[4,this._zipContents.files[x].async("text")]):[3,19];case 16:return d=m.apply(void 0,[T.sent()]),[4,(A=new hg(x,d,this)).load()];case 17:T.sent(),this.slides.push(A),T.label=18;case 18:return _++,[3,15];case 19:return[3,21];case 20:return R=T.sent(),console.log("Content Type获取失败",R),[3,21];case 21:return[2]}}))}))},v.prototype._loadMedia=function(){return fe(this,void 0,void 0,(function(){var o,n,s,u,a,l,c=this;return ce(this,(function(g){switch(g.label){case 0:o=Object.keys(this._zipContents.files).filter((function(C){return C.startsWith("ppt/media/image")})).map((function(C){return c._zipContents.files[C]})),n=0,s=o,g.label=1;case 1:return n<s.length?(u=s[n],a=(function(C){var k;switch(C){case"jpg":case"jpeg":k="image/jpeg";break;case"png":k="image/png";break;case"gif":k="image/gif";break;case"emf":k="image/x-emf";break;case"wmf":k="image/x-wmf";break;default:k="image/*"}return k})((S=u.name).substr(2+(~-S.lastIndexOf(".")>>>0))),[4,u.async("base64")]):[3,4];case 2:l=g.sent(),this.medias[u.name]="data:".concat(a,";base64,").concat(l),g.label=3;case 3:return n++,[3,1];case 4:return[2]}var S}))}))},v.prototype.getXmlByPath=function(o){return fe(this,void 0,void 0,(function(){return ce(this,(function(n){switch(n.label){case 0:if(!this._zipContents.files[o])throw new Error("文件不存在");return[4,this._zipContents.files[o].async("text")];case 1:return[2,n.sent()]}}))}))},v.prototype.getSlideLayout=function(o){return this.slideLayouts.find((function(n){return n.name===o}))},v.prototype.getSlideMaster=function(o){return this.slideMaster.find((function(n){return n.name===o}))},v.prototype.getTheme=function(o){return this.themes.find((function(n){return n.name===o}))},v.prototype.getMedia=function(o){return this.medias[o]},v})();function xu(v){var o,n,s,u,a=v.extend,l=v.offset,c=v.clip,g=v.base64,S=document.createElement("div");S.style.setProperty("position","absolute"),S.style.setProperty("left",l.x+"px"),S.style.setProperty("top",l.y+"px"),S.style.setProperty("width",a.w+"px"),S.style.setProperty("height",a.h+"px"),S.style.setProperty("overflow","hidden"),c?(o=a.w/(1-(c.l===void 0?0:c.l)-(c.r===void 0?0:c.r)),n=a.h/(1-(c.t===void 0?0:c.t)-(c.b===void 0?0:c.b)),s=-1*o*(c.l===void 0?0:c.l),u=-1*n*(c.t===void 0?0:c.t)):(o=a.w,n=a.h,s=0);var C=document.createElement("img");return C.src=g,C.width=o,C.height=n,C.style.setProperty("position","absolute"),C.style.setProperty("left",s+"px"),C.style.setProperty("top",u+"px"),S.append(C),S}function mg(v,o,n){var s,u=v.props,a=v.text,l=Oe(Oe({},o),u),c=document.createElement("span");c.textContent=a,l.size&&(!((s=n?.normAutofit)===null||s===void 0)&&s.fontScale?c.style.fontSize=l.size*n.normAutofit.fontScale+"px":c.style.fontSize=l.size+"px");var g=Ue(l.color);return g&&(c.style.color=g),l.bold&&(c.style.fontWeight="bold"),l.italic&&(c.style.fontStyle="italic"),l.underline&&(c.style.textDecoration="underline"),l.background&&(c.style.backgroundColor=Ue(l.background)),c}function vg(v,o,n){var s=document.createElement("span"),u=v.firstElementChild;switch(s.style.fontSize=u.style.fontSize,s.style.color=u.style.color,s.style.fontWeight=u.style.fontWeight,s.style.fontStyle=u.style.fontStyle,s.style.marginRight="10px",o.buAutoNum){case"arabicPeriod":default:s.textContent=n+".";break;case"circleNumDbPlain":s.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][n-1]||n+"";break;case"romanUcPeriod":s.textContent=(function(a){var l=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw new Error("Input must be a number between 1 and 3999.");for(var c="",g=0;g<l.length;g++)for(;a>=l[g].value;)c+=l[g].numeral,a-=l[g].value;return c})(n)+".";break;case"alphaUcPeriod":s.textContent=ws(n)+".";break;case"alphaLcPeriod":s.textContent=ws(n).toLowerCase()+".";break;case"alphaLcParenR":s.textContent=ws(n).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":s.textContent=(function(a){var l=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var c="",g=a.toString(),S=0;S<g.length;S++)c+=l[parseInt(g[S],10)];return c})(n)+"."}v.prepend(s)}function uu(v,o,n){var s,u,a,l;o===void 0&&(o=0),n===void 0&&(n={});var c=v.inheritProps,g=v.inheritRProps,S=v.props,C=v.rows,k=Oe(Oe({},c),S),I=document.createElement("div"),w=n.isFirst?0:k.spaceBefore||0,P=n.isLast?0:k.spaceAfter||0;I.style.margin="0px",I.style.padding="".concat(w,"px 0px ").concat(P,"px 0px");var _=document.createElement("p");_.style.margin="0px",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=k.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[k.align]||"center",k.align==="dist"&&(_.style.textAlignLast="justify");var x=k.hasOwnProperty("lineHeight")?1.2*k.lineHeight:1.2;if(!((u=(s=n.bodyProps)===null||s===void 0?void 0:s.normAutofit)===null||u===void 0)&&u.lnSpcReduction&&(x*=1-((l=(a=n.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||l===void 0?void 0:l.lnSpcReduction)),_.style.lineHeight=x+"",C.length){for(var d=0,m=C;d<m.length;d++){var A=m[d];_.appendChild(mg(A,g,n.bodyProps))}k.buAutoNum?vg(_,k,o):k.buChar&&(function(T,U){var Z=document.createElement("span"),J=T.firstElementChild;Z.style.color=J.style.color,Z.style.fontSize=J.style.fontSize,Z.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[U.buChar]||"■",Z.style.marginRight="10px",T.prepend(Z)})(_,k),_.style.paddingLeft=(k.marginLeft||0)+(k.indent||0)+"px"}else{var R=document.createElement("span");R.innerHTML=" ",R.style.fontSize=g.size+"px",_.appendChild(R)}return I.appendChild(_),I}var _e="http://www.w3.org/2000/svg";function Ye(v,o){var n=0;switch(v){case"sm":n=1*o;break;case"med":n=1.5*o;break;case"lg":n=2.5*o}return Math.max(n,2)}function lu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",x+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"ellipse");T.setAttribute("cx",x+"px"),T.setAttribute("cy",d+"px"),T.setAttribute("rx",x+"px"),T.setAttribute("ry",d+"px"),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function fu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",(s?.9*x:1.1*x)+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"path"),U=s?["M ".concat(2*x,",0"),"L 0,".concat(d),"L ".concat(2*x,",").concat(2*d),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(d),"L 0,".concat(2*d),"Z"].join(" ");T.setAttribute("d",U),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function cu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d)),A.setAttribute("refX",x+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var T=document.createElementNS(_e,"path"),U=["M 0,".concat(d),"L ".concat(x,",0"),"L ".concat(2*x,",").concat(d),"L ".concat(x,",").concat(2*d),"Z"].join(" ");T.setAttribute("d",U),T.setAttribute("fill",Ue(S)||"transparent"),A.appendChild(T),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function hu(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x+2*g," ").concat(2*d+2*g));var T=s?_==="lg"?2*g:3*g:_==="lg"?2*x:2*x-g;A.setAttribute("refX",T+"px"),A.setAttribute("refY",d+g+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var U=document.createElementNS(_e,"path"),Z=s?["M ".concat(2*x+g,", ").concat(g),"L ".concat(g,",").concat(d+g),"L ".concat(2*x+g,",").concat(2*d+g)].join(" "):["M ".concat(g,", ").concat(g),"L ".concat(2*x+g,",").concat(d+g),"L ".concat(g,",").concat(2*d+g)].join(" ");U.setAttribute("d",Z),U.setAttribute("stroke-width",g+"px"),U.setAttribute("stroke",Ue(S)||"transparent"),U.setAttribute("fill","transparent"),U.setAttribute("stroke-linecap","round"),U.setAttribute("stroke-linejoin","miter"),U.style.overflow="visible",A.appendChild(U),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function du(v,o,n,s){s===void 0&&(s=!1);var u=v.border,a=u===void 0?{}:u,l=v.uuid,c=a.headEnd,g=a.width,S=a.color,C=a.tailEnd,k=s?c:C,I=k.len,w=I===void 0?"med":I,P=k.w,_=P===void 0?"med":P,x=Ye(w,g),d=Ye(_,g),m=document.createElementNS(_e,"defs"),A=document.createElementNS(_e,"marker"),R="marker-".concat(l,"-").concat(s?"start":"end");A.setAttribute("id",R),A.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*d));var T=s?_==="sm"?1.5*g:2*g:_==="sm"?2*x-1.5*g:2*x-2*g;A.setAttribute("refX",T+"px"),A.setAttribute("refY",d+"px"),A.setAttribute("markerWidth",2*x+"px"),A.setAttribute("markerHeight",2*d+"px"),A.setAttribute("orient","auto"),A.setAttribute("markerUnits","userSpaceOnUse");var U=document.createElementNS(_e,"path"),Z=s?["M 0, ".concat(d),"L ".concat(2*x,",0"),"L ".concat(x,",").concat(d),"L ".concat(2*x,",").concat(2*d),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(d),"L 0,".concat(2*d),"L ".concat(x,",").concat(d),"Z"].join(" ");U.setAttribute("d",Z),U.setAttribute("fill",Ue(S)||"transparent"),U.style.overflow="visible",A.appendChild(U),m.appendChild(A),o.appendChild(m),n.setAttribute(s?"marker-start":"marker-end","url(#".concat(R,")"))}function ei(v,o,n){var s=v.border,u=s===void 0?{}:s;v.extend;var a=u.headEnd,l=u.tailEnd;if(a&&a.type!=="none")switch(a.type){case"triangle":fu(v,o,n,!0);break;case"oval":lu(v,o,n,!0);break;case"diamond":cu(v,o,n,!0);break;case"arrow":hu(v,o,n,!0);break;case"stealth":du(v,o,n,!0)}if(l&&l.type!=="none")switch(l.type){case"triangle":fu(v,o,n,!1);break;case"oval":lu(v,o,n,!1);break;case"diamond":cu(v,o,n,!1);break;case"arrow":hu(v,o,n,!1);break;case"stealth":du(v,o,n,!1)}}var le="http://www.w3.org/2000/svg";function ar(v){var o=v.extend;return .16667*Math.min(o.w,o.h)}function Te(v,o,n){n===void 0&&(n=0);var s=o.extend,u=o.prstGeom,a=(u?.gd||[]).find((function(l){return l.name===v}));return a?Math.min(s.w,s.h)*a.fmla:n}function pu(v,o,n){n===void 0&&(n=0);var s=o.extend,u=o.prstGeom,a=(u?.gd||[]).find((function(l){return l.name===v}));return a?Math.max(s.w,s.h)*a.fmla:n}function gu(v){var o=v.extend,n=document.createElementNS(le,"rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width",o.w+"px"),n.setAttribute("height",o.h+"px"),n}function Au(v){var o=v.extend,n=v.offset,s=v.border,u=v.background,a=v.rotate,l=v.flipH,c=v.flipV,g=document.createElement("div"),S=n.x,C=n.y;g.className="shape-wrapper shape-".concat(v.shape),g.style.setProperty("position","absolute"),g.style.setProperty("width",(o.w||1)+"px"),g.style.setProperty("height",(o.h||1)+"px"),g.style.setProperty("left",S+"px"),g.style.setProperty("top",C+"px");var k,I=document.createElementNS(le,"svg");I.style.setProperty("position","absolute"),I.setAttribute("width","100%"),I.setAttribute("height","100%"),I.style.setProperty("left","0"),I.style.setProperty("top","0"),I.style.overflow="visible";var w={left:0,top:0,bottom:0,w:o.w,h:o.h},P=!0;switch(v.shape){case"flowChartProcess":case"rect":k=gu(v);break;case"snip1Rect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj",d,ar(d)),T=["0,0","".concat(m.w-R,",0"),"".concat(m.w,",").concat(R),"".concat(m.w,",").concat(m.h),"0,".concat(m.h)].join(" ");return A.setAttribute("points",T),A})(v);break;case"snip2SameRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=[[R,0],[m.w-R,0],[m.w,R],[m.w,m.h-T],[m.w-T,m.h],[T,m.h],[0,m.h-T],[0,R]].map((function(Z){return"".concat(Z[0],",").concat(Z[1])})).join(" ");return A.setAttribute("points",U),A})(v);break;case"snip2DiagRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=Te("adj1",d,0),T=Te("adj2",d,ar(d)),U=[[R,0],[m.w-T,0],[m.w,T],[m.w,m.h-R],[m.w-R,m.h],[T,m.h],[0,m.h-T],[0,R]].map((function(Z){return"".concat(Z[0],",").concat(Z[1])})).join(" ");return A.setAttribute("points",U),A})(v);break;case"snipRoundRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,ar(d)),U=["M ".concat(R,",0"),"L ".concat(m.w-T,",0"),"L ".concat(m.w,",").concat(T),"L ".concat(m.w,",").concat(m.h),"L 0,".concat(m.h),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"roundRect":k=(function(d){var m=gu(d),A=Te("adj",d,ar(d));return m.setAttribute("rx",A+"px"),m.setAttribute("ry",A+"px"),m})(v);break;case"round1Rect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj",d,ar(d)),T=["M 0,0","L ".concat(m.w-R,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(R),"L ".concat(m.w,",").concat(m.h),"L 0,".concat(m.h),"Z"].join(" ");return A.setAttribute("d",T),A})(v);break;case"round2SameRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=["M ".concat(R,",0"),"L ".concat(m.w-R,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(R),"L ".concat(m.w,",").concat(m.h-T),"Q ".concat(m.w,",").concat(m.h," ").concat(m.w-T,",").concat(m.h),"L ".concat(T,",").concat(m.h),"Q 0,".concat(m.h," 0,").concat(m.h-T),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"round2DiagRect":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=Te("adj1",d,ar(d)),T=Te("adj2",d,0),U=["M ".concat(R,",0"),"L ".concat(m.w-T,",0"),"Q ".concat(m.w,",0 ").concat(m.w,",").concat(T),"L ".concat(m.w,",").concat(m.h-R),"Q ".concat(m.w,",").concat(m.h," ").concat(m.w-R,",").concat(m.h),"L ".concat(T,",").concat(m.h),"Q 0,".concat(m.h," 0,").concat(m.h-T),"L 0,".concat(R),"Q 0,0 ".concat(R,",0"),"Z"].join(" ");return A.setAttribute("d",U),A})(v);break;case"triangle":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=["".concat(m.w/2,",0"),"0,".concat(m.h),"".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("points",R),A})(v);break;case"rtTriangle":k=(function(d){var m=d.extend,A=document.createElementNS(le,"polygon"),R=["0,".concat(m.h),"0,0","".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("points",R),A})(v);break;case"ellipse":k=(function(d){var m=d.extend,A=document.createElementNS(le,"ellipse"),R=m.w/2,T=m.h/2,U=R,Z=T;return A.setAttribute("cx",R+"px"),A.setAttribute("cy",T+"px"),A.setAttribute("rx",U+"px"),A.setAttribute("ry",Z+"px"),A})(v);break;case"line":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=["M 0,0","L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",R),A})(v),ei(v,I,k),P=!1;break;case"straightConnector1":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=["M 0,0","L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",R),A})(v),ei(v,I,k),P=!1;break;case"bentConnector3":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=pu("adj1",d,.5*Math.max(m.w,m.h)),T=["M 0,0","L ".concat(R,",0"),"L ".concat(R,",").concat(m.h),"L ".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",T),A})(v),ei(v,I,k),P=!1;break;case"curvedConnector3":k=(function(d){var m=d.extend,A=document.createElementNS(le,"path"),R=pu("adj1",d,.5*Math.max(m.w,m.h)),T=["M0,0","Q".concat(R,",0 ").concat(R,",").concat(m.h/2),"T".concat(m.w,",").concat(m.h)].join(" ");return A.setAttribute("d",T),A})(v),ei(v,I,k),P=!1}k&&(P?k.setAttribute("fill",Ue(u)||"transparent"):k.setAttribute("fill","transparent"),s.width?(k.setAttribute("stroke-width",s.width+"px"),k.setAttribute("stroke",Ue(s.color)||"transparent")):k.setAttribute("stroke-width","0"),k.setAttribute("stroke-dasharray",(function(d){return d&&d.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[d.type]||[]).map((function(m){return m*d.width})).join(","):""})(s)),k.setAttribute("stroke-linecap",s.cap&&{sq:"square",rnd:"round",flat:"butt"}[s.cap]||"square"),k.setAttribute("stroke-linejoin",s.lineJoin||"round"),s.lineJoin==="miter"&&k.setAttribute("stroke-miterlimit",s.miterLim+""),I.appendChild(k));var _=[];l&&_.push("scaleX(-1)"),c&&_.push("scaleY(-1)"),I.style.setProperty("transform",_.join(" ")),g.appendChild(I);var x=(function(d,m,A){var R;A===void 0&&(A=!1);var T=d.inheritProps,U=d.props,Z=d.paragraphs;if(!Z||Z.length===0)return null;var J=Oe(Oe({},T),U),H=document.createElement("div");switch(H.className="text-wrapper",H.style.boxSizing="border-box",H.style.position="absolute",H.style.left=m.left+"px",J.vert==="eaVert"?(H.style.writingMode="vertical-rl",H.style.height=m.h+"px"):H.style.width=m.w+"px",J.anchor){case"b":H.style.bottom=m.bottom+"px";break;case"t":H.style.top=m.top+"px";break;case"ctr":H.style.top=m.top+m.h/2+"px",H.style.transform="translateY(-50%)";break;default:A?H.style.top=m.top+"px":(H.style.top=m.top+m.h/2+"px",H.style.transform="translateY(-50%)")}var ot=[J.hasOwnProperty("tIns")?J.tIns+"px":"4px",J.hasOwnProperty("rIns")?J.rIns+"px":"7px",J.hasOwnProperty("bIns")?J.bIns+"px":"4px",J.hasOwnProperty("lIns")?J.lIns+"px":"7px"];H.style.padding=ot.join(" ");for(var gt={},B=0,$=function(yt){var st=Oe(Oe({},yt.inheritProps),yt.props),xt=void 0;if(st.buAutoNum){var nt=st.level?+st.level:0;gt[nt]||(gt[nt]=0),!((R=yt.rows)===null||R===void 0)&&R.length&>[nt]++,Object.keys(gt).forEach((function(bt){+bt>nt&&(gt[bt]=0)})),xt=uu(yt,gt[nt],{isFirst:B===0,isLast:Z.length-1===B,bodyProps:J})}else xt=uu(yt,0,{isFirst:B===0,isLast:Z.length-1===B,bodyProps:J});H.appendChild(xt),B++},p=0,V=Z;p<V.length;p++)$(V[p]);return H})(v.textBody,w,v.isTextBox);return x&&g.appendChild(x),a&&g.style.setProperty("transform","rotate(".concat(a,"deg)")),g}function ku(v){var o=document.createElement("div"),n=v.extend;v.chExtend;var s=v.offset,u=v.chOffset,a=v.flipV,l=v.flipH,c=v.rotate,g=s.x,S=s.y,C=n.w,k=n.h;o.className="group",o.style.position="absolute",o.style.left=g+"px",o.style.top=S+"px",o.style.width=C+"px",o.style.height=k+"px";var I=[];l&&I.push("scaleX(-1)"),a&&I.push("scaleY(-1)"),c&&I.push("rotate(".concat(c,"deg)")),o.style.transformOrigin="center center",o.style.transform=I.join(" ");for(var w=0;w<v.nodes.length;w++){var P=v.nodes[w],_=void 0;P instanceof qr?_=xu(P):P instanceof br?_=Au(P):P instanceof Cs&&(_=ku(P)),_.style.left=parseInt(_.style.left)-u.x+"px",_.style.top=parseInt(_.style.top)-u.y+"px",o.appendChild(_)}return o}var yg=(function(){function v(o,n,s){this.scale=1,this.wrapper=o,this.pptx=n,this.options=s,this._calcScaleAndRenderPort()}return v.prototype._calcScaleAndRenderPort=function(){var o=this.options.viewPort.width/this.pptx.width,n=this.options.viewPort.height/this.pptx.height;if(this.scale=Math.min(o,n),o<n){var s=this.options.viewPort.width,u=this.pptx.height*this.scale;this.renderPort={width:s,height:u,left:0,top:(this.options.viewPort.height-u)/2}}else s=this.pptx.width*this.scale,u=this.options.viewPort.height,this.renderPort={width:s,height:u,left:(this.options.viewPort.width-s)/2,top:0}},v.prototype.renderSlide=function(o){var n=this.pptx.slides[o],s=document.createElement("div");s.classList.add("pptx-preview-slide-wrapper"),s.style.setProperty("width",this.renderPort.width+"px"),s.style.setProperty("height",this.renderPort.height+"px"),s.style.setProperty("position","relative"),s.style.margin="0 auto 10px",s.style.setProperty("background","#fff"),s.style.setProperty("overflow","hidden"),this._renderBackground(n,s),this._renderSlideMaster(n.slideMaster,s),this._renderSlideLayout(n.slideLayout,s),this._renderSlide(n,s),this.wrapper.append(s)},v.prototype._renderSlideMaster=function(o,n){var s=document.createElement("div");s.classList.add("slide-master-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=bs([],o.nodes,!0).filter((function(c){return c.userDrawn}));u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderSlideLayout=function(o,n){var s=document.createElement("div");s.classList.add("slide-layout-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=bs([],o.nodes,!0).filter((function(c){return c.userDrawn}));u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderSlide=function(o,n){var s=document.createElement("div");s.classList.add("slide-wrapper"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width",this.pptx.width+"px"),s.style.setProperty("height",this.pptx.height+"px"),s.style.setProperty("transform","scale(".concat(this.scale,")")),s.style.setProperty("transform-origin","0 0");var u=bs([],o.nodes,!0);u.sort((function(c,g){return c.order>g.order?1:-1}));for(var a=0;a<u.length;a++){var l=this._renderNode(u[a]);l&&s.append(l)}n.append(s)},v.prototype._renderNode=function(o){return o instanceof qr?xu(o):o instanceof br?Au(o):o instanceof Cs?ku(o):void 0},v.prototype._renderBackground=function(o,n){var s=document.createElement("div");s.classList.add("slide-background"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var u=Ue(o.background)||Ue(o.slideLayout.background)||Ue(o.slideMaster.background);u?s.style.setProperty("background",u):s.style.setProperty("background","#fff"),n.append(s)},v})(),bg=(function(){function v(o,n){this.dom=o,this.options=n,this._renderWrapper()}return v.prototype._renderWrapper=function(){var o=document.createElement("div");o.classList.add("pptx-preview-wrapper"),o.style.setProperty("background","#000"),o.style.setProperty("width",this.options.width+"px"),this.options.height&&o.style.setProperty("height",this.options.height+"px"),o.style.setProperty("position","relative"),this.options.height&&o.style.setProperty("overflow-y","auto"),this.dom.append(o),this.wrapper=o},v.prototype.preview=function(o){var n=this;return new Promise((function(s,u){n.wrapper.innerHTML="";var a=new _g;a.load(o).then((function(){console.log("pptx 实例",a),console.log("slide1",a.slides[0]);var l=new yg(n.wrapper,a,{viewPort:{width:n.options.width,height:n.options.height}});console.log("htmlRender",l);for(var c=0;c<a.slides.length;c++)l.renderSlide(c)}))}))},v})();function Ag(v,o){return new bg(v,o)}export{ug as n,Ag as t,xg as v};
|