alchemylab 3.0.7 → 3.0.9
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/214.js +940 -0
- package/dist/414.js +3095 -42
- package/dist/478.js +2 -2
- package/dist/772.js +2209 -0
- package/dist/776.js +12 -12
- package/dist/833.js +944 -0
- package/dist/994.js +350 -129
- package/dist/cli.js +18057 -7834
- package/dist/document-textconv.js +183 -183
- package/dist/http-server.js +18964 -5998
- package/dist/index.js +19303 -6324
- package/dist/mcp-direct.js +17227 -5787
- package/package.json +19 -19
package/dist/833.js
ADDED
|
@@ -0,0 +1,944 @@
|
|
|
1
|
+
exports.ids=[214,833],exports.modules={15622(e,exports,t){function r(e){return Object.prototype.toString.call(e)}exports.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},exports.isBoolean=function(e){return"boolean"==typeof e},exports.isNull=function(e){return null===e},exports.isNullOrUndefined=function(e){return null==e},exports.isNumber=function(e){return"number"==typeof e},exports.isString=function(e){return"string"==typeof e},exports.isSymbol=function(e){return"symbol"==typeof e},exports.isUndefined=function(e){return void 0===e},exports.isRegExp=function(e){return"[object RegExp]"===r(e)},exports.isObject=function(e){return"object"==typeof e&&null!==e},exports.isDate=function(e){return"[object Date]"===r(e)},exports.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},exports.isFunction=function(e){return"function"==typeof e},exports.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},exports.isBuffer=t(20181).Buffer.isBuffer},90874(module){"use strict"
|
|
2
|
+
function e(){var e,t
|
|
3
|
+
r=!0
|
|
4
|
+
for(var n=h.length;n;){for(t=h,h=[],e=-1;++e<n;)t[e]()
|
|
5
|
+
n=h.length}r=!1}var t,r,n=global.MutationObserver||global.WebKitMutationObserver
|
|
6
|
+
if(process.browser)if(n){var i=0,a=new n(e),s=global.document.createTextNode("")
|
|
7
|
+
a.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}else if(global.setImmediate||void 0===global.MessageChannel)t="document"in global&&"onreadystatechange"in global.document.createElement("script")?function(){var t=global.document.createElement("script")
|
|
8
|
+
t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},global.document.documentElement.appendChild(t)}:function(){setTimeout(e,0)}
|
|
9
|
+
else{var o=new global.MessageChannel
|
|
10
|
+
o.port1.onmessage=e,t=function(){o.port2.postMessage(0)}}else t=function(){process.nextTick(e)}
|
|
11
|
+
var h=[]
|
|
12
|
+
module.exports=function(e){1!==h.push(e)||r||t()}},72017(module,e,t){try{var r=t(39023)
|
|
13
|
+
if("function"!=typeof r.inherits)throw""
|
|
14
|
+
module.exports=r.inherits}catch(e){module.exports=t(56698)}},56698(module){"function"==typeof Object.create?module.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(e,t){if(t){e.super_=t
|
|
15
|
+
var r=function(){}
|
|
16
|
+
r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},64634(module){var e={}.toString
|
|
17
|
+
module.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},32678(e,exports,t){"use strict"
|
|
18
|
+
var r=t(11132),n=t(76954),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
19
|
+
exports.encode=function(e){for(var t,n,a,s,o,h,l,u=[],d=0,f=e.length,c=f,p="string"!==r.getTypeOf(e);d<e.length;)c=f-d,p?(t=e[d++],n=d<f?e[d++]:0,a=d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,a=d<f?e.charCodeAt(d++):0),s=t>>2,o=(3&t)<<4|n>>4,h=c>1?(15&n)<<2|a>>6:64,l=c>2?63&a:64,u.push(i.charAt(s)+i.charAt(o)+i.charAt(h)+i.charAt(l))
|
|
20
|
+
return u.join("")},exports.decode=function(e){var t,r,a,s,o,h,l=0,u=0
|
|
21
|
+
if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.")
|
|
22
|
+
var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4
|
|
23
|
+
if(e.charAt(e.length-1)===i.charAt(64)&&f--,e.charAt(e.length-2)===i.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.")
|
|
24
|
+
for(d=n.uint8array?new Uint8Array(0|f):new Array(0|f);l<e.length;)t=i.indexOf(e.charAt(l++))<<2|(s=i.indexOf(e.charAt(l++)))>>4,r=(15&s)<<4|(o=i.indexOf(e.charAt(l++)))>>2,a=(3&o)<<6|(h=i.indexOf(e.charAt(l++))),d[u++]=t,64!==o&&(d[u++]=r),64!==h&&(d[u++]=a)
|
|
25
|
+
return d}},18807(module,e,t){"use strict"
|
|
26
|
+
function r(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}var n=t(37882),i=t(4982),a=t(71919),s=t(88432)
|
|
27
|
+
r.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this
|
|
28
|
+
return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},r.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},module.exports=r},63078(e,exports,t){"use strict"
|
|
29
|
+
var r=t(80193)
|
|
30
|
+
exports.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},exports.DEFLATE=t(32039)},88786(module,e,t){"use strict"
|
|
31
|
+
var r=t(11132),n=function(){for(var e,t=[],r=0;r<256;r++){e=r
|
|
32
|
+
for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1
|
|
33
|
+
t[r]=e}return t}()
|
|
34
|
+
module.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,r){var i=n,a=0+r
|
|
35
|
+
e^=-1
|
|
36
|
+
for(var s=0;s<a;s++)e=e>>>8^i[255&(e^t[s])]
|
|
37
|
+
return-1^e}(0|t,e,e.length):function(e,t,r){var i=n,a=0+r
|
|
38
|
+
e^=-1
|
|
39
|
+
for(var s=0;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))]
|
|
40
|
+
return-1^e}(0|t,e,e.length):0}},75051(e,exports){"use strict"
|
|
41
|
+
exports.base64=!1,exports.binary=!1,exports.dir=!1,exports.createFolders=!0,exports.date=null,exports.compression=null,exports.compressionOptions=null,exports.comment=null,exports.unixPermissions=null,exports.dosPermissions=null},37882(module,e,t){"use strict"
|
|
42
|
+
var r
|
|
43
|
+
r="undefined"!=typeof Promise?Promise:t(39977),module.exports={Promise:r}},32039(e,exports,t){"use strict"
|
|
44
|
+
function r(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t(51668),a=t(11132),s=t(80193),o=n?"uint8array":"array"
|
|
45
|
+
exports.magic="\b\0",a.inherits(r,s),r.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(o,e.data),!1)},r.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},r.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},r.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1})
|
|
46
|
+
var e=this
|
|
47
|
+
this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},exports.compressWorker=function(e){return new r("Deflate",e)},exports.uncompressWorker=function(){return new r("Inflate",{})}},33890(module,e,t){"use strict"
|
|
48
|
+
function r(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var n=t(11132),i=t(80193),a=t(8222),s=t(88786),o=t(6407),h=function(e,t){var r,n=""
|
|
49
|
+
for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8
|
|
50
|
+
return n},l=function(e,t,r,i,l,u){var d,f,c=e.file,p=e.compression,m=u!==a.utf8encode,g=n.transformTo("string",u(c.name)),_=n.transformTo("string",a.utf8encode(c.name)),b=c.comment,w=n.transformTo("string",u(b)),y=n.transformTo("string",a.utf8encode(b)),v=_.length!==c.name.length,k=y.length!==b.length,x="",S="",E="",C=c.dir,A=c.date,z={crc32:0,compressedSize:0,uncompressedSize:0}
|
|
51
|
+
t&&!r||(z.crc32=e.crc32,z.compressedSize=e.compressedSize,z.uncompressedSize=e.uncompressedSize)
|
|
52
|
+
var T=0
|
|
53
|
+
t&&(T|=8),m||!v&&!k||(T|=2048)
|
|
54
|
+
var O,I,B=0,R=0
|
|
55
|
+
C&&(B|=16),"UNIX"===l?(R=798,B|=(I=O=c.unixPermissions,O||(I=C?16893:33204),(65535&I)<<16)):(R=20,B|=63&(c.dosPermissions||0)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),v&&(S=h(1,1)+h(s(g),4)+_,x+="up"+h(S.length,2)+S),k&&(E=h(1,1)+h(s(w),4)+y,x+="uc"+h(E.length,2)+E)
|
|
56
|
+
var D=""
|
|
57
|
+
return D+="\n\0",D+=h(T,2),D+=p.magic,D+=h(d,2),D+=h(f,2),D+=h(z.crc32,4),D+=h(z.compressedSize,4),D+=h(z.uncompressedSize,4),D+=h(g.length,2),D+=h(x.length,2),{fileRecord:o.LOCAL_FILE_HEADER+D+g+x,dirRecord:o.CENTRAL_FILE_HEADER+h(R,2)+D+h(w.length,2)+"\0\0\0\0"+h(B,4)+h(i,4)+g+x+w}},u=function(e){return o.DATA_DESCRIPTOR+h(e.crc32,4)+h(e.compressedSize,4)+h(e.uncompressedSize,4)}
|
|
58
|
+
n.inherits(r,i),r.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length
|
|
59
|
+
this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},r.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name
|
|
60
|
+
var t=this.streamFiles&&!e.file.dir
|
|
61
|
+
if(t){var r=l(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName)
|
|
62
|
+
this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(e){this.accumulate=!1
|
|
63
|
+
var t=this.streamFiles&&!e.file.dir,r=l(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName)
|
|
64
|
+
if(this.dirRecords.push(r.dirRecord),t)this.push({data:u(e),meta:{percent:100}})
|
|
65
|
+
else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift())
|
|
66
|
+
this.currentFile=null},r.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}})
|
|
67
|
+
var r=this.bytesWritten-e,i=function(e,t,r,i,a){var s=n.transformTo("string",a(i))
|
|
68
|
+
return o.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(e,2)+h(e,2)+h(t,4)+h(r,4)+h(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName)
|
|
69
|
+
this.push({data:i,meta:{percent:100}})},r.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},r.prototype.registerPrevious=function(e){this._sources.push(e)
|
|
70
|
+
var t=this
|
|
71
|
+
return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},r.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},r.prototype.error=function(e){var t=this._sources
|
|
72
|
+
if(!i.prototype.error.call(this,e))return!1
|
|
73
|
+
for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},r.prototype.lock=function(){i.prototype.lock.call(this)
|
|
74
|
+
for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},module.exports=r},41269(e,exports,t){"use strict"
|
|
75
|
+
var r=t(63078),n=t(33890)
|
|
76
|
+
exports.generateWorker=function(e,t,i){var a=new n(t.streamFiles,i,t.platform,t.encodeFileName),s=0
|
|
77
|
+
try{e.forEach(function(e,n){s++
|
|
78
|
+
var i=function(e,t){var n=e||t,i=r[n]
|
|
79
|
+
if(!i)throw new Error(n+" is not a valid compression method !")
|
|
80
|
+
return i}(n.options.compression,t.compression),o=n.options.compressionOptions||t.compressionOptions||{},h=n.dir,l=n.date
|
|
81
|
+
n._compressWorker(i,o).withStreamInfo("file",{name:e,dir:h,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=s}catch(e){a.error(e)}return a}},58833(module,e,t){"use strict"
|
|
82
|
+
function r(){if(!(this instanceof r))return new r
|
|
83
|
+
if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.")
|
|
84
|
+
this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r
|
|
85
|
+
for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t])
|
|
86
|
+
return e}}r.prototype=t(98442),r.prototype.loadAsync=t(80629),r.support=t(76954),r.defaults=t(75051),r.version="3.10.2",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=t(37882),module.exports=r},80629(module,e,t){"use strict"
|
|
87
|
+
function r(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new o)
|
|
88
|
+
n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}var n=t(11132),i=t(37882),a=t(8222),s=t(47548),o=t(71919),h=t(50417)
|
|
89
|
+
module.exports=function(e,t){var o=this
|
|
90
|
+
return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),h.isNode&&h.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new s(t)
|
|
91
|
+
return r.load(e),r}).then(function(e){var n=[i.Promise.resolve(e)],a=e.files
|
|
92
|
+
if(t.checkCRC32)for(var s=0;s<a.length;s++)n.push(r(a[s]))
|
|
93
|
+
return i.Promise.all(n)}).then(function(e){for(var r=e.shift(),i=r.files,a=0;a<i.length;a++){var s=i[a],h=s.fileNameStr,l=n.resolve(s.fileNameStr)
|
|
94
|
+
o.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(o.file(l).unsafeOriginalName=h)}return r.zipComment.length&&(o.comment=r.zipComment),o})}},60905(module,e,t){"use strict"
|
|
95
|
+
function r(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}var n=t(11132),i=t(80193)
|
|
96
|
+
n.inherits(r,i),r.prototype._bindStream=function(e){var t=this
|
|
97
|
+
this._stream=e,e.pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},r.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},module.exports=r},54644(module,e,t){"use strict"
|
|
98
|
+
function r(e,t,r){n.call(this,t),this._helper=e
|
|
99
|
+
var i=this
|
|
100
|
+
e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}var n=t(30186).Readable
|
|
101
|
+
t(11132).inherits(r,n),r.prototype._read=function(){this._helper.resume()},module.exports=r},50417(module){"use strict"
|
|
102
|
+
module.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t)
|
|
103
|
+
if("number"==typeof e)throw new Error('The "data" argument must not be a number')
|
|
104
|
+
return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e)
|
|
105
|
+
var t=new Buffer(e)
|
|
106
|
+
return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},98442(module,e,t){"use strict"
|
|
107
|
+
function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var n=t(8222),i=t(11132),a=t(80193),s=t(88648),o=t(75051),h=t(18807),l=t(89985),u=t(41269),d=t(50417),f=t(60905),c=function(e,t,r){var n,s=i.getTypeOf(t),u=i.extend(r||{},o)
|
|
108
|
+
u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(e=m(e)),u.createFolders&&(n=p(e))&&g.call(this,n,!0)
|
|
109
|
+
var c,_="string"===s&&!1===u.binary&&!1===u.base64
|
|
110
|
+
r&&void 0!==r.binary||(u.binary=!_),(t instanceof h&&0===t.uncompressedSize||u.dir||!t||0===t.length)&&(u.base64=!1,u.binary=!0,t="",u.compression="STORE",s="string"),c=t instanceof h||t instanceof a?t:d.isNode&&d.isStream(t)?new f(e,t):i.prepareContent(e,t,u.binary,u.optimizedBinaryString,u.base64)
|
|
111
|
+
var b=new l(e,c,u)
|
|
112
|
+
this.files[e]=b},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1))
|
|
113
|
+
var t=e.lastIndexOf("/")
|
|
114
|
+
return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:o.createFolders,e=m(e),this.files[e]||c.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},_={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n
|
|
115
|
+
for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[]
|
|
116
|
+
return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,n){if(1===arguments.length){if(r(e)){var i=e
|
|
117
|
+
return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e]
|
|
118
|
+
return a&&!a.dir?a:null}return e=this.root+e,c.call(this,e,t,n),this},folder:function(e){if(!e)return this
|
|
119
|
+
if(r(e))return this.filter(function(t,r){return r.dir&&e.test(t)})
|
|
120
|
+
var t=this.root+e,n=g.call(this,t),i=this.clone()
|
|
121
|
+
return i.root=n.name,i},remove:function(e){e=this.root+e
|
|
122
|
+
var t=this.files[e]
|
|
123
|
+
if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e]
|
|
124
|
+
else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name]
|
|
125
|
+
return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={}
|
|
126
|
+
try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.")
|
|
127
|
+
i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS")
|
|
128
|
+
var o=r.comment||this.comment||""
|
|
129
|
+
t=u.generateWorker(this,r,o)}catch(e){(t=new a("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}
|
|
130
|
+
module.exports=_},41191(module,e,t){"use strict"
|
|
131
|
+
function r(e){n.call(this,e)
|
|
132
|
+
for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}var n=t(15074)
|
|
133
|
+
t(11132).inherits(r,n),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero
|
|
134
|
+
return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4)
|
|
135
|
+
return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[]
|
|
136
|
+
var t=this.data.slice(this.zero+this.index,this.zero+this.index+e)
|
|
137
|
+
return this.index+=e,t},module.exports=r},15074(module,e,t){"use strict"
|
|
138
|
+
function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}var n=t(11132)
|
|
139
|
+
r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0
|
|
140
|
+
for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t)
|
|
141
|
+
return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4)
|
|
142
|
+
return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},module.exports=r},32916(module,e,t){"use strict"
|
|
143
|
+
function r(e){n.call(this,e)}var n=t(77959)
|
|
144
|
+
t(11132).inherits(r,n),r.prototype.readData=function(e){this.checkOffset(e)
|
|
145
|
+
var t=this.data.slice(this.zero+this.index,this.zero+this.index+e)
|
|
146
|
+
return this.index+=e,t},module.exports=r},69663(module,e,t){"use strict"
|
|
147
|
+
function r(e){n.call(this,e)}var n=t(15074)
|
|
148
|
+
t(11132).inherits(r,n),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e)
|
|
149
|
+
var t=this.data.slice(this.zero+this.index,this.zero+this.index+e)
|
|
150
|
+
return this.index+=e,t},module.exports=r},77959(module,e,t){"use strict"
|
|
151
|
+
function r(e){n.call(this,e)}var n=t(41191)
|
|
152
|
+
t(11132).inherits(r,n),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0)
|
|
153
|
+
var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e)
|
|
154
|
+
return this.index+=e,t},module.exports=r},69483(module,e,t){"use strict"
|
|
155
|
+
var r=t(11132),n=t(76954),i=t(41191),a=t(69663),s=t(32916),o=t(77959)
|
|
156
|
+
module.exports=function(e){var t=r.getTypeOf(e)
|
|
157
|
+
return r.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new s(e):n.uint8array?new o(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},6407(e,exports){"use strict"
|
|
158
|
+
exports.LOCAL_FILE_HEADER="PK\x03\x04",exports.CENTRAL_FILE_HEADER="PK\x01\x02",exports.CENTRAL_DIRECTORY_END="PK\x05\x06",exports.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",exports.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",exports.DATA_DESCRIPTOR="PK\x07\b"},81019(module,e,t){"use strict"
|
|
159
|
+
function r(e){n.call(this,"ConvertWorker to "+e),this.destType=e}var n=t(80193),i=t(11132)
|
|
160
|
+
i.inherits(r,n),r.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},module.exports=r},71919(module,e,t){"use strict"
|
|
161
|
+
function r(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var n=t(80193),i=t(88786)
|
|
162
|
+
t(11132).inherits(r,n),r.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},module.exports=r},88432(module,e,t){"use strict"
|
|
163
|
+
function r(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}var n=t(11132),i=t(80193)
|
|
164
|
+
n.inherits(r,i),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0
|
|
165
|
+
this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},module.exports=r},4982(module,e,t){"use strict"
|
|
166
|
+
function r(e){i.call(this,"DataWorker")
|
|
167
|
+
var t=this
|
|
168
|
+
this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}var n=t(11132),i=t(80193)
|
|
169
|
+
n.inherits(r,i),r.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1
|
|
170
|
+
var e=null,t=Math.min(this.max,this.index+16384)
|
|
171
|
+
if(this.index>=this.max)return this.end()
|
|
172
|
+
switch(this.type){case"string":e=this.data.substring(this.index,t)
|
|
173
|
+
break
|
|
174
|
+
case"uint8array":e=this.data.subarray(this.index,t)
|
|
175
|
+
break
|
|
176
|
+
case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},module.exports=r},80193(module){"use strict"
|
|
177
|
+
function e(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}e.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1
|
|
178
|
+
this.flush()
|
|
179
|
+
try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.")
|
|
180
|
+
this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e
|
|
181
|
+
var t=this
|
|
182
|
+
return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1
|
|
183
|
+
this.isPaused=!1
|
|
184
|
+
var e=!1
|
|
185
|
+
return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.")
|
|
186
|
+
this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name
|
|
187
|
+
return this.previous?this.previous+" -> "+e:e}},module.exports=e},88648(module,e,t){"use strict"
|
|
188
|
+
function r(e,t,r){var s=t
|
|
189
|
+
switch(t){case"blob":case"arraybuffer":s="uint8array"
|
|
190
|
+
break
|
|
191
|
+
case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,n.checkSupport(s),this._worker=e.pipe(new i(s)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}var n=t(11132),i=t(81019),a=t(80193),s=t(32678),o=t(76954),h=t(37882),l=null
|
|
192
|
+
if(o.nodestream)try{l=t(54644)}catch(e){}r.prototype={accumulate:function(e){return t=this,r=e,new h.Promise(function(e,i){var a=[],o=t._internalType,h=t._outputType,l=t._mimeType
|
|
193
|
+
t.on("data",function(e,t){a.push(e),r&&r(t)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var t=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r)
|
|
194
|
+
case"base64":return s.encode(t)
|
|
195
|
+
default:return n.transformTo(e,t)}}(h,function(e,t){var r,n=0,i=null,a=0
|
|
196
|
+
for(r=0;r<t.length;r++)a+=t[r].length
|
|
197
|
+
switch(e){case"string":return t.join("")
|
|
198
|
+
case"array":return Array.prototype.concat.apply([],t)
|
|
199
|
+
case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length
|
|
200
|
+
return i
|
|
201
|
+
case"nodebuffer":return Buffer.concat(t)
|
|
202
|
+
default:throw new Error("concat : unsupported type '"+e+"'")}}(o,a),l)
|
|
203
|
+
e(t)}catch(e){i(e)}a=[]}).resume()})
|
|
204
|
+
var t,r},on:function(e,t){var r=this
|
|
205
|
+
return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method")
|
|
206
|
+
return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},module.exports=r},76954(e,exports,t){"use strict"
|
|
207
|
+
if(exports.base64=!0,exports.array=!0,exports.string=!0,exports.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,exports.nodebuffer="undefined"!=typeof Buffer,exports.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)exports.blob=!1
|
|
208
|
+
else{var r=new ArrayBuffer(0)
|
|
209
|
+
try{exports.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder)
|
|
210
|
+
n.append(r),exports.blob=0===n.getBlob("application/zip").size}catch(e){exports.blob=!1}}}try{exports.nodestream=!!t(30186).Readable}catch(e){exports.nodestream=!1}},8222(e,exports,t){"use strict"
|
|
211
|
+
function r(){o.call(this,"utf-8 decode"),this.leftOver=null}function n(){o.call(this,"utf-8 encode")}for(var i=t(11132),a=t(76954),s=t(50417),o=t(80193),h=new Array(256),l=0;l<256;l++)h[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1
|
|
212
|
+
h[254]=h[254]=1,exports.utf8encode=function(e){return a.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,s,o=e.length,h=0
|
|
213
|
+
for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),h+=r<128?1:r<2048?2:r<65536?3:4
|
|
214
|
+
for(t=a.uint8array?new Uint8Array(h):new Array(h),s=0,i=0;s<h;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|63&r):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|63&r):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|63&r)
|
|
215
|
+
return t}(e)},exports.utf8decode=function(e){return a.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,a,s=e.length,o=new Array(2*s)
|
|
216
|
+
for(r=0,t=0;t<s;)if((n=e[t++])<128)o[r++]=n
|
|
217
|
+
else if((a=h[n])>4)o[r++]=65533,t+=a-1
|
|
218
|
+
else{for(n&=2===a?31:3===a?15:7;a>1&&t<s;)n=n<<6|63&e[t++],a--
|
|
219
|
+
a>1?o[r++]=65533:n<65536?o[r++]=n:(n-=65536,o[r++]=55296|n>>10&1023,o[r++]=56320|1023&n)}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),i.applyFromCharCode(o)}(e=i.transformTo(a.uint8array?"uint8array":"array",e))},i.inherits(r,o),r.prototype.processChunk=function(e){var t=i.transformTo(a.uint8array?"uint8array":"array",e.data)
|
|
220
|
+
if(this.leftOver&&this.leftOver.length){if(a.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t)
|
|
221
|
+
this.leftOver=null}var n=function(e,t){var r
|
|
222
|
+
for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--
|
|
223
|
+
return r<0||0===r?t:r+h[e[r]]>t?r:t}(t),s=t
|
|
224
|
+
n!==t.length&&(a.uint8array?(s=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(s=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:exports.utf8decode(s),meta:e.meta})},r.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:exports.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},exports.Utf8DecodeWorker=r,i.inherits(n,o),n.prototype.processChunk=function(e){this.push({data:exports.utf8encode(e.data),meta:e.meta})},exports.Utf8EncodeWorker=n},11132(e,exports,t){"use strict"
|
|
225
|
+
function r(e){return e}function n(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r)
|
|
226
|
+
return t}function i(e){var t=65536,r=exports.getTypeOf(e),n=!0
|
|
227
|
+
if("uint8array"===r?n=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=u.applyCanBeUsed.nodebuffer),n)for(;t>1;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function a(e,t){for(var r=0;r<e.length;r++)t[r]=e[r]
|
|
228
|
+
return t}var s=t(76954),o=t(32678),h=t(50417),l=t(37882)
|
|
229
|
+
t(42791),exports.newBlob=function(e,t){exports.checkSupport("blob")
|
|
230
|
+
try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder)
|
|
231
|
+
return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}}
|
|
232
|
+
var u={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length
|
|
233
|
+
if(a<=r)return String.fromCharCode.apply(null,e)
|
|
234
|
+
for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r
|
|
235
|
+
return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r])
|
|
236
|
+
return t},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&1===String.fromCharCode.apply(null,h.allocBuffer(1)).length}catch(e){return!1}}()}}
|
|
237
|
+
exports.applyFromCharCode=i
|
|
238
|
+
var d={}
|
|
239
|
+
d.string={string:r,array:function(e){return n(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return n(e,new Uint8Array(e.length))},nodebuffer:function(e){return n(e,h.allocBuffer(e.length))}},d.array={string:i,array:r,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return h.newBufferFrom(e)}},d.arraybuffer={string:function(e){return i(new Uint8Array(e))},array:function(e){return a(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:r,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return h.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:i,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:r,nodebuffer:function(e){return h.newBufferFrom(e)}},d.nodebuffer={string:i,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return a(e,new Uint8Array(e.length))},nodebuffer:r},exports.transformTo=function(e,t){if(t||(t=""),!e)return t
|
|
240
|
+
exports.checkSupport(e)
|
|
241
|
+
var r=exports.getTypeOf(t)
|
|
242
|
+
return d[r][e](t)},exports.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n]
|
|
243
|
+
"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},exports.getTypeOf=function(e){if("string"==typeof e)return"string"
|
|
244
|
+
var t=Object.prototype.toString.call(e)
|
|
245
|
+
return"[object Array]"===t?"array":s.nodebuffer&&h.isBuffer(e)?"nodebuffer":s.uint8array&&"[object Uint8Array]"===t?"uint8array":s.arraybuffer&&"[object ArrayBuffer]"===t?"arraybuffer":void 0},exports.checkSupport=function(e){if(!s[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},exports.MAX_VALUE_16BITS=65535,exports.MAX_VALUE_32BITS=-1,exports.pretty=function(e){var t,r,n=""
|
|
246
|
+
for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase()
|
|
247
|
+
return n},exports.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},exports.inherits=function(e,t){var r=function(){}
|
|
248
|
+
r.prototype=t.prototype,e.prototype=new r},exports.extend=function(){var e,t,r={}
|
|
249
|
+
for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t])
|
|
250
|
+
return r},exports.prepareContent=function(e,t,r,i,a){return l.Promise.resolve(t).then(function(t){return s.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))?void 0!==Blob.prototype.arrayBuffer?t.arrayBuffer():"undefined"!=typeof FileReader?new l.Promise(function(e,r){var n=new FileReader
|
|
251
|
+
n.onload=function(t){e(t.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(t)}):l.Promise.reject(new Error(e+" is a Blob, but we have no way of reading it.")):t}).then(function(t){var h,u=exports.getTypeOf(t)
|
|
252
|
+
return u?("arraybuffer"===u?t=exports.transformTo("uint8array",t):"string"===u&&(a?t=o.decode(t):r&&!0!==i&&(t=n(h=t,s.uint8array?new Uint8Array(h.length):new Array(h.length)))),t):l.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},47548(module,e,t){"use strict"
|
|
253
|
+
function r(e){this.files=[],this.loadOptions=e}var n=t(69483),i=t(11132),a=t(6407),s=t(17404),o=t(76954)
|
|
254
|
+
r.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4
|
|
255
|
+
var t=this.reader.readString(4)
|
|
256
|
+
throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index
|
|
257
|
+
this.reader.setIndex(e)
|
|
258
|
+
var n=this.reader.readString(4)===t
|
|
259
|
+
return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2)
|
|
260
|
+
var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=i.transformTo(t,e)
|
|
261
|
+
this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={}
|
|
262
|
+
for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t
|
|
263
|
+
for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e
|
|
264
|
+
for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e)
|
|
265
|
+
if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END)
|
|
266
|
+
if(e<0)throw this.isSignature(0,a.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")
|
|
267
|
+
this.reader.setIndex(e)
|
|
268
|
+
var t=e
|
|
269
|
+
if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator")
|
|
270
|
+
if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")
|
|
271
|
+
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize
|
|
272
|
+
this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize)
|
|
273
|
+
var n=t-r
|
|
274
|
+
if(n>0)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n)
|
|
275
|
+
else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},module.exports=r},17404(module,e,t){"use strict"
|
|
276
|
+
function r(e,t){this.options=e,this.loadOptions=t}var n=t(69483),i=t(11132),a=t(18807),s=t(88786),o=t(8222),h=t(63078),l=t(76954)
|
|
277
|
+
r.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r
|
|
278
|
+
if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)")
|
|
279
|
+
if(null===(t=function(e){for(var t in h)if(Object.prototype.hasOwnProperty.call(h,t)&&h[t].magic===e)return h[t]
|
|
280
|
+
return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")")
|
|
281
|
+
this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4)
|
|
282
|
+
var t=e.readInt(2)
|
|
283
|
+
if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported")
|
|
284
|
+
e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null
|
|
285
|
+
var e=this.versionMadeBy>>8
|
|
286
|
+
this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value)
|
|
287
|
+
this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength
|
|
288
|
+
for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n}
|
|
289
|
+
e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array"
|
|
290
|
+
if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)
|
|
291
|
+
else{var t=this.findExtraFieldUnicodePath()
|
|
292
|
+
if(null!==t)this.fileNameStr=t
|
|
293
|
+
else{var r=i.transformTo(e,this.fileName)
|
|
294
|
+
this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment()
|
|
295
|
+
if(null!==n)this.fileCommentStr=n
|
|
296
|
+
else{var a=i.transformTo(e,this.fileComment)
|
|
297
|
+
this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789]
|
|
298
|
+
if(e){var t=n(e.value)
|
|
299
|
+
return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461]
|
|
300
|
+
if(e){var t=n(e.value)
|
|
301
|
+
return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},module.exports=r},89985(module,e,t){"use strict"
|
|
302
|
+
var r=t(88648),n=t(4982),i=t(8222),a=t(18807),s=t(80193),o=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}
|
|
303
|
+
o.prototype={internalStream:function(e){var t=null,n="string"
|
|
304
|
+
try{if(!e)throw new Error("No output type specified.")
|
|
305
|
+
var a="string"===(n=e.toLowerCase())||"text"===n
|
|
306
|
+
"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker()
|
|
307
|
+
var o=!this._dataBinary
|
|
308
|
+
o&&!a&&(t=t.pipe(new i.Utf8EncodeWorker)),!o&&a&&(t=t.pipe(new i.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker()
|
|
309
|
+
var r=this._decompressWorker()
|
|
310
|
+
return this._dataBinary||(r=r.pipe(new i.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof s?this._data:new n(this._data)}}
|
|
311
|
+
for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<h.length;u++)o.prototype[h[u]]=l
|
|
312
|
+
module.exports=o},61538(module,e,t){"use strict"
|
|
313
|
+
function r(e){if(!(this instanceof r))return new r(e)
|
|
314
|
+
h.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||a.nextTick(i,this)}function i(e){e.end()}var a=t(33225),s=Object.keys||function(e){var t=[]
|
|
315
|
+
for(var r in e)t.push(r)
|
|
316
|
+
return t}
|
|
317
|
+
module.exports=r
|
|
318
|
+
var o=Object.create(t(15622))
|
|
319
|
+
o.inherits=t(72017)
|
|
320
|
+
var h=t(92672),l=t(39744)
|
|
321
|
+
o.inherits(r,h)
|
|
322
|
+
for(var u=s(l.prototype),d=0;d<u.length;d++){var f=u[d]
|
|
323
|
+
r.prototype[f]||(r.prototype[f]=l.prototype[f])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),a.nextTick(t,e)}},82564(module,e,t){"use strict"
|
|
324
|
+
function r(e){if(!(this instanceof r))return new r(e)
|
|
325
|
+
n.call(this,e)}module.exports=r
|
|
326
|
+
var n=t(97294),i=Object.create(t(15622))
|
|
327
|
+
i.inherits=t(72017),i.inherits(r,n),r.prototype._transform=function(e,t,r){r(null,e)}},92672(module,e,t){"use strict"
|
|
328
|
+
function r(e,r){e=e||{}
|
|
329
|
+
var n=r instanceof(w=w||t(61538))
|
|
330
|
+
this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode)
|
|
331
|
+
var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384
|
|
332
|
+
this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new z,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(A||(A=t(22193).I),this.decoder=new A(e.encoding),this.encoding=e.encoding)}function n(e){if(w=w||t(61538),!(this instanceof n))return new n(e)
|
|
333
|
+
this._readableState=new r(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),k.call(this)}function i(e,t,r,n,i){var s,h=e._readableState
|
|
334
|
+
return null===t?(h.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end()
|
|
335
|
+
r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,o(e)}}(e,h)):(i||(s=function(e,t){var r,n
|
|
336
|
+
return n=t,Buffer.isBuffer(n)||n instanceof x||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(h,t)),s?e.emit("error",s):h.objectMode||t&&t.length>0?("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===Buffer.prototype||(t=function(e){return Buffer.from(e)}(t)),n?h.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):a(e,h,t,!0):h.ended?e.emit("error",new Error("stream.push() after EOF")):(h.reading=!1,h.decoder&&!r?(t=h.decoder.write(t),h.objectMode||0!==t.length?a(e,h,t,!1):l(e,h)):a(e,h,t,!1))):n||(h.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(h)}function a(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&o(e)),l(e,t)}function s(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function o(e){var t=e._readableState
|
|
337
|
+
t.needReadable=!1,t.emittedReadable||(C("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b.nextTick(h,e):h(e))}function h(e){C("emit readable"),e.emit("readable"),c(e)}function l(e,t){t.readingMore||(t.readingMore=!0,b.nextTick(u,e,t))}function u(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(C("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length
|
|
338
|
+
t.readingMore=!1}function d(e){C("readable nexttick read 0"),e.read(0)}function f(e,t){t.reading||(C("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),c(e),t.flowing&&!t.reading&&e.read(0)}function c(e){var t=e._readableState
|
|
339
|
+
for(C("flow",t.flowing);t.flowing&&null!==e.read(););}function p(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n
|
|
340
|
+
return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data
|
|
341
|
+
for(e-=i.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e
|
|
342
|
+
if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s))
|
|
343
|
+
break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Buffer.allocUnsafe(e),n=t.head,i=1
|
|
344
|
+
for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,s=e>a.length?a.length:e
|
|
345
|
+
if(a.copy(r,r.length-e,0,s),0===(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s))
|
|
346
|
+
break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r)
|
|
347
|
+
var r}function m(e){var t=e._readableState
|
|
348
|
+
if(t.length>0)throw new Error('"endReadable()" called on non-empty stream')
|
|
349
|
+
t.endEmitted||(t.ended=!0,b.nextTick(g,t,e))}function g(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function _(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r
|
|
350
|
+
return-1}var b=t(33225)
|
|
351
|
+
module.exports=n
|
|
352
|
+
var w,y=t(64634)
|
|
353
|
+
n.ReadableState=r,t(24434).EventEmitter
|
|
354
|
+
var v=function(e,t){return e.listeners(t).length},k=t(7964),Buffer=t(36729).Buffer,x=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},S=Object.create(t(15622))
|
|
355
|
+
S.inherits=t(72017)
|
|
356
|
+
var E=t(39023),C=void 0
|
|
357
|
+
C=E&&E.debuglog?E.debuglog("stream"):function(){}
|
|
358
|
+
var A,z=t(49026),T=t(20332)
|
|
359
|
+
S.inherits(n,k)
|
|
360
|
+
var O=["error","close","destroy","pause","resume"]
|
|
361
|
+
Object.defineProperty(n.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),n.prototype.destroy=T.destroy,n.prototype._undestroy=T.undestroy,n.prototype._destroy=function(e,t){this.push(null),t(e)},n.prototype.push=function(e,t){var r,n=this._readableState
|
|
362
|
+
return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=Buffer.from(e,t),t=""),r=!0),i(this,e,t,!1,r)},n.prototype.unshift=function(e){return i(this,e,null,!0,!1)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return A||(A=t(22193).I),this._readableState.decoder=new A(e),this._readableState.encoding=e,this}
|
|
363
|
+
var I=8388608
|
|
364
|
+
n.prototype.read=function(e){C("read",e),e=parseInt(e,10)
|
|
365
|
+
var t=this._readableState,r=e
|
|
366
|
+
if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return C("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?m(this):o(this),null
|
|
367
|
+
if(0===(e=s(e,t))&&t.ended)return 0===t.length&&m(this),null
|
|
368
|
+
var n,i=t.needReadable
|
|
369
|
+
return C("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&C("length less than watermark",i=!0),t.ended||t.reading?C("reading or ended",i=!1):i&&(C("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=s(r,t))),null===(n=e>0?p(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&m(this)),null!==n&&this.emit("data",n),n},n.prototype._read=function(){this.emit("error",new Error("_read() is not implemented"))},n.prototype.pipe=function(e,t){function r(){C("onend"),e.end()}function n(t){C("ondata"),p=!1,!1!==e.write(t)||p||((1===l.pipesCount&&l.pipes===e||l.pipesCount>1&&-1!==_(l.pipes,e))&&!f&&(C("false write response, pause",l.awaitDrain),l.awaitDrain++,p=!0),h.pause())}function i(t){C("onerror",t),o(),e.removeListener("error",i),0===v(e,"error")&&e.emit("error",t)}function a(){e.removeListener("finish",s),o()}function s(){C("onfinish"),e.removeListener("close",a),o()}function o(){C("unpipe"),h.unpipe(e)}var h=this,l=this._readableState
|
|
370
|
+
switch(l.pipesCount){case 0:l.pipes=e
|
|
371
|
+
break
|
|
372
|
+
case 1:l.pipes=[l.pipes,e]
|
|
373
|
+
break
|
|
374
|
+
default:l.pipes.push(e)}l.pipesCount+=1,C("pipe count=%d opts=%j",l.pipesCount,t)
|
|
375
|
+
var u=t&&!1===t.end||e===process.stdout||e===process.stderr?o:r
|
|
376
|
+
l.endEmitted?b.nextTick(u):h.once("end",u),e.on("unpipe",function t(u,c){C("onunpipe"),u===h&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,C("cleanup"),e.removeListener("close",a),e.removeListener("finish",s),e.removeListener("drain",d),e.removeListener("error",i),e.removeListener("unpipe",t),h.removeListener("end",r),h.removeListener("end",o),h.removeListener("data",n),f=!0,!l.awaitDrain||e._writableState&&!e._writableState.needDrain||d())})
|
|
377
|
+
var d=function(e){return function(){var t=e._readableState
|
|
378
|
+
C("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&v(e,"data")&&(t.flowing=!0,c(e))}}(h)
|
|
379
|
+
e.on("drain",d)
|
|
380
|
+
var f=!1,p=!1
|
|
381
|
+
return h.on("data",n),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r)
|
|
382
|
+
e._events&&e._events[t]?y(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",i),e.once("close",a),e.once("finish",s),e.emit("pipe",h),l.flowing||(C("pipe resume"),h.resume()),e},n.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1}
|
|
383
|
+
if(0===t.pipesCount)return this
|
|
384
|
+
if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this
|
|
385
|
+
if(!e){var n=t.pipes,i=t.pipesCount
|
|
386
|
+
t.pipes=null,t.pipesCount=0,t.flowing=!1
|
|
387
|
+
for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1})
|
|
388
|
+
return this}var s=_(t.pipes,e)
|
|
389
|
+
return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},n.prototype.on=function(e,t){var r=k.prototype.on.call(this,e,t)
|
|
390
|
+
if("data"===e)!1!==this._readableState.flowing&&this.resume()
|
|
391
|
+
else if("readable"===e){var n=this._readableState
|
|
392
|
+
n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&o(this):b.nextTick(d,this))}return r},n.prototype.addListener=n.prototype.on,n.prototype.resume=function(){var e=this._readableState
|
|
393
|
+
return e.flowing||(C("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,b.nextTick(f,e,t))}(this,e)),this},n.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1
|
|
394
|
+
for(var i in e.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end()
|
|
395
|
+
e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){C("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i))
|
|
396
|
+
for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]))
|
|
397
|
+
return this._read=function(t){C("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),n._fromList=p},97294(module,e,t){"use strict"
|
|
398
|
+
function r(e,t){var r=this._transformState
|
|
399
|
+
r.transforming=!1
|
|
400
|
+
var n=r.writecb
|
|
401
|
+
if(!n)return this.emit("error",new Error("write callback called multiple times"))
|
|
402
|
+
r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e)
|
|
403
|
+
var i=this._readableState
|
|
404
|
+
i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e)
|
|
405
|
+
s.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this
|
|
406
|
+
"function"==typeof this._flush?this._flush(function(t,r){a(e,t,r)}):a(this,null,null)}function a(e,t,r){if(t)return e.emit("error",t)
|
|
407
|
+
if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0")
|
|
408
|
+
if(e._transformState.transforming)throw new Error("Calling transform done when still transforming")
|
|
409
|
+
return e.push(null)}module.exports=n
|
|
410
|
+
var s=t(61538),o=Object.create(t(15622))
|
|
411
|
+
o.inherits=t(72017),o.inherits(n,s),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},n.prototype._transform=function(){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState
|
|
412
|
+
if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(){var e=this._transformState
|
|
413
|
+
null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(e,t){var r=this
|
|
414
|
+
s.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},39744(module,e,t){"use strict"
|
|
415
|
+
function r(e){var t=this
|
|
416
|
+
this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry
|
|
417
|
+
for(e.entry=null;r;){var n=r.callback
|
|
418
|
+
t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}function n(){}function i(e,n){c=c||t(61538),e=e||{}
|
|
419
|
+
var i=n instanceof c
|
|
420
|
+
this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode)
|
|
421
|
+
var a=e.highWaterMark,s=e.writableHighWaterMark,u=this.objectMode?16:16384
|
|
422
|
+
this.highWaterMark=a||0===a?a:i&&(s||0===s)?s:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1
|
|
423
|
+
var m=!1===e.decodeStrings
|
|
424
|
+
this.decodeStrings=!m,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb
|
|
425
|
+
if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(f.nextTick(i,n),f.nextTick(d,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),d(e,t))}(e,r,n,t,i)
|
|
426
|
+
else{var a=l(r)
|
|
427
|
+
a||r.corked||r.bufferProcessing||!r.bufferedRequest||h(e,r),n?p(o,e,r,a,i):o(e,r,a,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function a(e){if(c=c||t(61538),!(g.call(a,this)||this instanceof c))return new a(e)
|
|
428
|
+
this._writableState=new i(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),b.call(this)}function s(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function o(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),d(e,t)}function h(e,t){t.bufferProcessing=!0
|
|
429
|
+
var n=t.bufferedRequest
|
|
430
|
+
if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=new Array(i),o=t.corkedRequestsFree
|
|
431
|
+
o.entry=n
|
|
432
|
+
for(var h=0,l=!0;n;)a[h]=n,n.isBuf||(l=!1),n=n.next,h+=1
|
|
433
|
+
a.allBuffers=l,s(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,d=n.encoding,f=n.callback
|
|
434
|
+
if(s(e,t,!1,t.objectMode?1:u.length,u,d,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function l(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function u(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),d(e,t)})}function d(e,t){var r=l(t)
|
|
435
|
+
return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,f.nextTick(u,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}var f=t(33225)
|
|
436
|
+
module.exports=a
|
|
437
|
+
var c,p=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:f.nextTick
|
|
438
|
+
a.WritableState=i
|
|
439
|
+
var m=Object.create(t(15622))
|
|
440
|
+
m.inherits=t(72017)
|
|
441
|
+
var g,_={deprecate:t(27983)},b=t(7964),Buffer=t(36729).Buffer,w=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},y=t(20332)
|
|
442
|
+
m.inherits(a,b),i.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next
|
|
443
|
+
return t},function(){try{Object.defineProperty(i.prototype,"buffer",{get:_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(e){return!!g.call(this,e)||this===a&&e&&e._writableState instanceof i}})):g=function(e){return e instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(e,t,r){var i,a=this._writableState,o=!1,h=!a.objectMode&&(i=e,Buffer.isBuffer(i)||i instanceof w)
|
|
444
|
+
return h&&!Buffer.isBuffer(e)&&(e=function(e){return Buffer.from(e)}(e)),"function"==typeof t&&(r=t,t=null),h?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=n),a.ended?function(e,t){var r=new Error("write after end")
|
|
445
|
+
e.emit("error",r),f.nextTick(t,r)}(this,r):(h||function(e,t,r,n){var i=!0,a=!1
|
|
446
|
+
return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),f.nextTick(n,a),i=!1),i}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Buffer.from(t,r)),t}(t,n,i)
|
|
447
|
+
n!==o&&(r=!0,i="buffer",n=o)}var h=t.objectMode?1:n.length
|
|
448
|
+
t.length+=h
|
|
449
|
+
var l=t.length<t.highWaterMark
|
|
450
|
+
if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest
|
|
451
|
+
t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else s(e,t,!1,h,n,i,a)
|
|
452
|
+
return l}(this,a,h,e,t,r)),o},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var e=this._writableState
|
|
453
|
+
e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||h(this,e))},a.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e)
|
|
454
|
+
return this._writableState.defaultEncoding=e,this},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,r){var n=this._writableState
|
|
455
|
+
"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,d(e,t),r&&(t.finished?f.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),a.prototype.destroy=y.destroy,a.prototype._undestroy=y.undestroy,a.prototype._destroy=function(e,t){this.end(),t(e)}},49026(module,e,t){"use strict"
|
|
456
|
+
function r(e,t,r){e.copy(t,r)}var Buffer=t(36729).Buffer,n=t(39023)
|
|
457
|
+
module.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null}
|
|
458
|
+
this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head}
|
|
459
|
+
0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data
|
|
460
|
+
return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return""
|
|
461
|
+
for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data
|
|
462
|
+
return r},e.prototype.concat=function(e){if(0===this.length)return Buffer.alloc(0)
|
|
463
|
+
for(var t=Buffer.allocUnsafe(e>>>0),n=this.head,i=0;n;)r(n.data,t,i),i+=n.data.length,n=n.next
|
|
464
|
+
return t},e}(),n&&n.inspect&&n.inspect.custom&&(module.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length})
|
|
465
|
+
return this.constructor.name+" "+e})},20332(module,e,t){"use strict"
|
|
466
|
+
function r(e,t){e.emit("error",t)}var n=t(33225)
|
|
467
|
+
module.exports={destroy:function(e,t){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed
|
|
468
|
+
return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(r,this,e)):n.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,n.nextTick(r,i,e)):n.nextTick(r,i,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},7964(module,e,t){module.exports=t(2203)},30186(module,exports,e){var t=e(2203)
|
|
469
|
+
"disable"===process.env.READABLE_STREAM&&t?(module.exports=t,(exports=module.exports=t.Readable).Readable=t.Readable,exports.Writable=t.Writable,exports.Duplex=t.Duplex,exports.Transform=t.Transform,exports.PassThrough=t.PassThrough,exports.Stream=t):((exports=module.exports=e(92672)).Stream=t||exports,exports.Readable=exports,exports.Writable=e(39744),exports.Duplex=e(61538),exports.Transform=e(97294),exports.PassThrough=e(82564))},36729(module,exports,e){function t(e,t){for(var r in e)t[r]=e[r]}function r(e,t,r){return Buffer(e,t,r)}var n=e(20181),Buffer=n.Buffer
|
|
470
|
+
Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=n:(t(n,exports),exports.Buffer=r),t(Buffer,r),r.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number")
|
|
471
|
+
return Buffer(e,t,r)},r.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number")
|
|
472
|
+
var n=Buffer(e)
|
|
473
|
+
return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number")
|
|
474
|
+
return Buffer(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number")
|
|
475
|
+
return n.SlowBuffer(e)}},22193(e,exports,t){"use strict"
|
|
476
|
+
function r(e){var t
|
|
477
|
+
switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8"
|
|
478
|
+
for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8"
|
|
479
|
+
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le"
|
|
480
|
+
case"latin1":case"binary":return"latin1"
|
|
481
|
+
case"base64":case"ascii":case"hex":return e
|
|
482
|
+
default:if(t)return
|
|
483
|
+
e=(""+e).toLowerCase(),t=!0}}(e)
|
|
484
|
+
if("string"!=typeof t&&(Buffer.isEncoding===d||!d(e)))throw new Error("Unknown encoding: "+e)
|
|
485
|
+
return t||e}(e),this.encoding){case"utf16le":this.text=a,this.end=s,t=4
|
|
486
|
+
break
|
|
487
|
+
case"utf8":this.fillLast=i,t=4
|
|
488
|
+
break
|
|
489
|
+
case"base64":this.text=o,this.end=h,t=3
|
|
490
|
+
break
|
|
491
|
+
default:return this.write=l,void(this.end=u)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer.allocUnsafe(t)}function n(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd"
|
|
492
|
+
if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd"
|
|
493
|
+
if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e)
|
|
494
|
+
return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function a(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t)
|
|
495
|
+
if(r){var n=r.charCodeAt(r.length-1)
|
|
496
|
+
if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):""
|
|
497
|
+
if(this.lastNeed){var r=this.lastTotal-this.lastNeed
|
|
498
|
+
return t+this.lastChar.toString("utf16le",0,r)}return t}function o(e,t){var r=(e.length-t)%3
|
|
499
|
+
return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):""
|
|
500
|
+
return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function u(e){return e&&e.length?this.write(e):""}var Buffer=t(36729).Buffer,d=Buffer.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0
|
|
501
|
+
default:return!1}}
|
|
502
|
+
exports.I=r,r.prototype.write=function(e){if(0===e.length)return""
|
|
503
|
+
var t,r
|
|
504
|
+
if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return""
|
|
505
|
+
r=this.lastNeed,this.lastNeed=0}else r=0
|
|
506
|
+
return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):""
|
|
507
|
+
return this.lastNeed?t+"\ufffd":t},r.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1
|
|
508
|
+
if(i<r)return 0
|
|
509
|
+
var a=n(t[i])
|
|
510
|
+
return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||-2===a?0:(a=n(t[i]))>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||-2===a?0:(a=n(t[i]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t)
|
|
511
|
+
if(!this.lastNeed)return e.toString("utf8",t)
|
|
512
|
+
this.lastTotal=r
|
|
513
|
+
var i=e.length-(r-this.lastNeed)
|
|
514
|
+
return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)
|
|
515
|
+
e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},39977(module,e,t){"use strict"
|
|
516
|
+
function r(){}function n(e){if("function"!=typeof e)throw new TypeError("resolver must be a function")
|
|
517
|
+
this.state=c,this.queue=[],this.outcome=void 0,process.browser||(this.handled=p),e!==r&&o(this,e)}function i(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function a(e,t,r){l(function(){var n
|
|
518
|
+
try{n=t(r)}catch(t){return u.reject(e,t)}n===e?u.reject(e,new TypeError("Cannot resolve promise with itself")):u.resolve(e,n)})}function s(e){var t=e&&e.then
|
|
519
|
+
if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function o(e,t){function r(t){i||(i=!0,u.reject(e,t))}function n(t){i||(i=!0,u.resolve(e,t))}var i=!1,a=h(function(){t(n,r)})
|
|
520
|
+
"error"===a.status&&r(a.value)}function h(e,t){var r={}
|
|
521
|
+
try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}var l=t(90874),u={},d=["REJECTED"],f=["FULFILLED"],c=["PENDING"]
|
|
522
|
+
if(!process.browser)var p=["UNHANDLED"]
|
|
523
|
+
module.exports=n,n.prototype.finally=function(e){if("function"!=typeof e)return this
|
|
524
|
+
var t=this.constructor
|
|
525
|
+
return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){if("function"!=typeof e&&this.state===f||"function"!=typeof t&&this.state===d)return this
|
|
526
|
+
var n=new this.constructor(r)
|
|
527
|
+
return process.browser||this.handled===p&&(this.handled=null),this.state!==c?a(n,this.state===f?e:t,this.outcome):this.queue.push(new i(n,e,t)),n},i.prototype.callFulfilled=function(e){u.resolve(this.promise,e)},i.prototype.otherCallFulfilled=function(e){a(this.promise,this.onFulfilled,e)},i.prototype.callRejected=function(e){u.reject(this.promise,e)},i.prototype.otherCallRejected=function(e){a(this.promise,this.onRejected,e)},u.resolve=function(e,t){var r=h(s,t)
|
|
528
|
+
if("error"===r.status)return u.reject(e,r.value)
|
|
529
|
+
var n=r.value
|
|
530
|
+
if(n)o(e,n)
|
|
531
|
+
else{e.state=f,e.outcome=t
|
|
532
|
+
for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},u.reject=function(e,t){e.state=d,e.outcome=t,process.browser||e.handled===p&&l(function(){e.handled===p&&process.emit("unhandledRejection",t,e)})
|
|
533
|
+
for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t)
|
|
534
|
+
return e},n.resolve=function(e){return e instanceof this?e:u.resolve(new this(r),e)},n.reject=function(e){var t=new this(r)
|
|
535
|
+
return u.reject(t,e)},n.all=function(e){function t(e,t){n.resolve(e).then(function(e){s[t]=e,++o!==i||a||(a=!0,u.resolve(l,s))},function(e){a||(a=!0,u.reject(l,e))})}var n=this
|
|
536
|
+
if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"))
|
|
537
|
+
var i=e.length,a=!1
|
|
538
|
+
if(!i)return this.resolve([])
|
|
539
|
+
for(var s=new Array(i),o=0,h=-1,l=new this(r);++h<i;)t(e[h],h)
|
|
540
|
+
return l},n.race=function(e){function t(e){n.resolve(e).then(function(e){a||(a=!0,u.resolve(o,e))},function(e){a||(a=!0,u.reject(o,e))})}var n=this
|
|
541
|
+
if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"))
|
|
542
|
+
var i=e.length,a=!1
|
|
543
|
+
if(!i)return this.resolve([])
|
|
544
|
+
for(var s=-1,o=new this(r);++s<i;)t(e[s])
|
|
545
|
+
return o}},51668(module,e,t){"use strict"
|
|
546
|
+
var r={};(0,t(9805).assign)(r,t(63303),t(87083),t(19681)),module.exports=r},63303(e,exports,t){"use strict"
|
|
547
|
+
function r(e){if(!(this instanceof r))return new r(e)
|
|
548
|
+
this.options=a.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{})
|
|
549
|
+
var t=this.options
|
|
550
|
+
t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0
|
|
551
|
+
var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy)
|
|
552
|
+
if(0!==n)throw new Error(o[n])
|
|
553
|
+
if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var u
|
|
554
|
+
if(u="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(o[n])
|
|
555
|
+
this._dict_set=!0}}function n(e,t){var n=new r(t)
|
|
556
|
+
if(n.push(e,!0),n.err)throw n.msg||o[n.err]
|
|
557
|
+
return n.result}var i=t(58411),a=t(9805),s=t(41996),o=t(54674),h=t(44442),l=Object.prototype.toString
|
|
558
|
+
r.prototype.push=function(e,t){var r,n,o=this.strm,h=this.options.chunkSize
|
|
559
|
+
if(this.ended)return!1
|
|
560
|
+
n=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length
|
|
561
|
+
do{if(0===o.avail_out&&(o.output=new a.Buf8(h),o.next_out=0,o.avail_out=h),1!==(r=i.deflate(o,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1
|
|
562
|
+
0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(s.buf2binstring(a.shrinkBuf(o.output,o.next_out))):this.onData(a.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r)
|
|
563
|
+
return 4===n?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},r.prototype.onData=function(e){this.chunks.push(e)},r.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},exports.Deflate=r,exports.deflate=n,exports.deflateRaw=function(e,t){return(t=t||{}).raw=!0,n(e,t)},exports.gzip=function(e,t){return(t=t||{}).gzip=!0,n(e,t)}},87083(e,exports,t){"use strict"
|
|
564
|
+
function r(e){if(!(this instanceof r))return new r(e)
|
|
565
|
+
this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{})
|
|
566
|
+
var t=this.options
|
|
567
|
+
t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0
|
|
568
|
+
var n=i.inflateInit2(this.strm,t.windowBits)
|
|
569
|
+
if(n!==o.Z_OK)throw new Error(h[n])
|
|
570
|
+
if(this.header=new u,i.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=i.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(h[n])}function n(e,t){var n=new r(t)
|
|
571
|
+
if(n.push(e,!0),n.err)throw n.msg||h[n.err]
|
|
572
|
+
return n.result}var i=t(71447),a=t(9805),s=t(41996),o=t(19681),h=t(54674),l=t(44442),u=t(37414),d=Object.prototype.toString
|
|
573
|
+
r.prototype.push=function(e,t){var r,n,h,l,u,f=this.strm,c=this.options.chunkSize,p=this.options.dictionary,m=!1
|
|
574
|
+
if(this.ended)return!1
|
|
575
|
+
n=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length
|
|
576
|
+
do{if(0===f.avail_out&&(f.output=new a.Buf8(c),f.next_out=0,f.avail_out=c),(r=i.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(r=i.inflateSetDictionary(this.strm,p)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1
|
|
577
|
+
f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||n!==o.Z_FINISH&&n!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(h=s.utf8border(f.output,f.next_out),l=f.next_out-h,u=s.buf2string(f.output,h),f.next_out=l,f.avail_out=c-l,l&&a.arraySet(f.output,f.output,h,l,0),this.onData(u)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==o.Z_STREAM_END)
|
|
578
|
+
return r===o.Z_STREAM_END&&(n=o.Z_FINISH),n===o.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):n!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},r.prototype.onData=function(e){this.chunks.push(e)},r.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},exports.Inflate=r,exports.inflate=n,exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,n(e,t)},exports.ungzip=n},9805(e,exports){"use strict"
|
|
579
|
+
function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array
|
|
580
|
+
exports.assign=function(e){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var n=r.shift()
|
|
581
|
+
if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object")
|
|
582
|
+
for(var i in n)t(n,i)&&(e[i]=n[i])}}return e},exports.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}
|
|
583
|
+
var n={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i)
|
|
584
|
+
else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,s
|
|
585
|
+
for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length
|
|
586
|
+
for(s=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,i),i+=a.length
|
|
587
|
+
return s}},i={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}}
|
|
588
|
+
exports.setTyped=function(e){e?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,n)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,i))},exports.setTyped(r)},41996(e,exports,t){"use strict"
|
|
589
|
+
function r(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t))
|
|
590
|
+
for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s])
|
|
591
|
+
return r}var n=t(9805),i=!0,a=!0
|
|
592
|
+
try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1
|
|
593
|
+
s[254]=s[254]=1,exports.string2buf=function(e){var t,r,i,a,s,o=e.length,h=0
|
|
594
|
+
for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),h+=r<128?1:r<2048?2:r<65536?3:4
|
|
595
|
+
for(t=new n.Buf8(h),s=0,a=0;s<h;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|63&r):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|63&r):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|63&r)
|
|
596
|
+
return t},exports.buf2binstring=function(e){return r(e,e.length)},exports.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r)
|
|
597
|
+
return t},exports.buf2string=function(e,t){var n,i,a,o,h=t||e.length,l=new Array(2*h)
|
|
598
|
+
for(i=0,n=0;n<h;)if((a=e[n++])<128)l[i++]=a
|
|
599
|
+
else if((o=s[a])>4)l[i++]=65533,n+=o-1
|
|
600
|
+
else{for(a&=2===o?31:3===o?15:7;o>1&&n<h;)a=a<<6|63&e[n++],o--
|
|
601
|
+
o>1?l[i++]=65533:a<65536?l[i++]=a:(a-=65536,l[i++]=55296|a>>10&1023,l[i++]=56320|1023&a)}return r(l,i)},exports.utf8border=function(e,t){var r
|
|
602
|
+
for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--
|
|
603
|
+
return r<0||0===r?t:r+s[e[r]]>t?r:t}},53269(module){"use strict"
|
|
604
|
+
module.exports=function(e,t,r,n){for(var i=65535&e,a=e>>>16&65535,s=0;0!==r;){r-=s=r>2e3?2e3:r
|
|
605
|
+
do{a=a+(i=i+t[n++]|0)|0}while(--s)
|
|
606
|
+
i%=65521,a%=65521}return i|a<<16}},19681(module){"use strict"
|
|
607
|
+
module.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}},14823(module){"use strict"
|
|
608
|
+
var e=function(){for(var e,t=[],r=0;r<256;r++){e=r
|
|
609
|
+
for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1
|
|
610
|
+
t[r]=e}return t}()
|
|
611
|
+
module.exports=function(t,r,n,i){var a=e,s=i+n
|
|
612
|
+
t^=-1
|
|
613
|
+
for(var o=i;o<s;o++)t=t>>>8^a[255&(t^r[o])]
|
|
614
|
+
return-1^t}},58411(e,exports,t){"use strict"
|
|
615
|
+
function r(e,t){return e.msg=S[t],t}function n(e){return(e<<1)-(e>4?9:0)}function i(e){for(var t=e.length;--t>=0;)e[t]=0}function a(e){var t=e.state,r=t.pending
|
|
616
|
+
r>e.avail_out&&(r=e.avail_out),0!==r&&(y.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function s(e,t){v._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,a(e.strm)}function o(e,t){e.pending_buf[e.pending++]=t}function h(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function l(e,t,r,n){var i=e.avail_in
|
|
617
|
+
return i>n&&(i=n),0===i?0:(e.avail_in-=i,y.arraySet(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=k(e.adler,t,i,r):2===e.state.wrap&&(e.adler=x(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function u(e,t){var r,n,i=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-A?e.strstart-(e.w_size-A):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+C,c=l[a+s-1],p=l[a+s]
|
|
618
|
+
e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead)
|
|
619
|
+
do{if(l[(r=t)+s]===p&&l[r+s-1]===c&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++
|
|
620
|
+
do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<f)
|
|
621
|
+
if(n=C-(f-a),a=f-C,n>s){if(e.match_start=t,s=n,n>=o)break
|
|
622
|
+
c=l[a+s-1],p=l[a+s]}}}while((t=d[t&u])>h&&0!==--i)
|
|
623
|
+
return s<=e.lookahead?s:e.lookahead}function d(e){var t,r,n,i,a,s=e.w_size
|
|
624
|
+
do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-A)){y.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=r=e.hash_size
|
|
625
|
+
do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--r)
|
|
626
|
+
t=r=s
|
|
627
|
+
do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--r)
|
|
628
|
+
i+=s}if(0===e.strm.avail_in)break
|
|
629
|
+
if(r=l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<A&&0!==e.strm.avail_in)}function f(e,t){for(var r,n;;){if(e.lookahead<A){if(d(e),e.lookahead<A&&0===t)return 1
|
|
630
|
+
if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-A&&(e.match_length=u(e,r)),e.match_length>=3)if(n=v._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--
|
|
631
|
+
do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length)
|
|
632
|
+
e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask
|
|
633
|
+
else n=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++
|
|
634
|
+
if(n&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function c(e,t){for(var r,n,i;;){if(e.lookahead<A){if(d(e),e.lookahead<A&&0===t)return 1
|
|
635
|
+
if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-A&&(e.match_length=u(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=v._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2
|
|
636
|
+
do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length)
|
|
637
|
+
if(e.match_available=0,e.match_length=2,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=v._tr_tally(e,0,e.window[e.strstart-1]))&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=v._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function p(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function m(){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=8,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 y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),i(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function g(e){var t
|
|
638
|
+
return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:T,e.adler=2===t.wrap?0:1,t.last_flush=0,v._tr_init(t),0):r(e,E)}function _(e){var t,r=g(e)
|
|
639
|
+
return 0===r&&((t=e.state).window_size=2*t.w_size,i(t.head),t.max_lazy_match=w[t.level].max_lazy,t.good_match=w[t.level].good_length,t.nice_match=w[t.level].nice_length,t.max_chain_length=w[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function b(e,t,n,i,a,s){if(!e)return E
|
|
640
|
+
var o=1
|
|
641
|
+
if(-1===t&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>9||8!==n||i<8||i>15||t<0||t>9||s<0||s>4)return r(e,E)
|
|
642
|
+
8===i&&(i=9)
|
|
643
|
+
var h=new m
|
|
644
|
+
return e.state=h,h.strm=e,h.wrap=o,h.gzhead=null,h.w_bits=i,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=a+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new y.Buf8(2*h.w_size),h.head=new y.Buf16(h.hash_size),h.prev=new y.Buf16(h.w_size),h.lit_bufsize=1<<a+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new y.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=t,h.strategy=s,h.method=n,_(e)}var w,y=t(9805),v=t(23665),k=t(53269),x=t(14823),S=t(54674),E=-2,C=258,A=262,z=103,T=113,O=666
|
|
645
|
+
w=[new p(0,0,0,0,function(e,t){var r=65535
|
|
646
|
+
for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(d(e),0===e.lookahead&&0===t)return 1
|
|
647
|
+
if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0
|
|
648
|
+
var n=e.block_start+r
|
|
649
|
+
if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,s(e,!1),0===e.strm.avail_out))return 1
|
|
650
|
+
if(e.strstart-e.block_start>=e.w_size-A&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(s(e,!1),e.strm.avail_out),1)}),new p(4,4,8,4,f),new p(4,5,16,8,f),new p(4,6,32,32,f),new p(4,4,16,16,c),new p(8,16,32,32,c),new p(8,16,128,128,c),new p(8,32,128,256,c),new p(32,128,258,1024,c),new p(32,258,258,4096,c)],exports.deflateInit=function(e,t){return b(e,t,8,15,8,0)},exports.deflateInit2=b,exports.deflateReset=_,exports.deflateResetKeep=g,exports.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?E:(e.state.gzhead=t,0):E},exports.deflate=function(e,t){var l,u,f,c
|
|
651
|
+
if(!e||!e.state||t>5||t<0)return e?r(e,E):E
|
|
652
|
+
if(u=e.state,!e.output||!e.input&&0!==e.avail_in||u.status===O&&4!==t)return r(e,0===e.avail_out?-5:E)
|
|
653
|
+
if(u.strm=e,l=u.last_flush,u.last_flush=t,42===u.status)if(2===u.wrap)e.adler=0,o(u,31),o(u,139),o(u,8),u.gzhead?(o(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),o(u,255&u.gzhead.time),o(u,u.gzhead.time>>8&255),o(u,u.gzhead.time>>16&255),o(u,u.gzhead.time>>24&255),o(u,9===u.level?2:u.strategy>=2||u.level<2?4:0),o(u,255&u.gzhead.os),u.gzhead.extra&&u.gzhead.extra.length&&(o(u,255&u.gzhead.extra.length),o(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(e.adler=x(e.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(o(u,0),o(u,0),o(u,0),o(u,0),o(u,0),o(u,9===u.level?2:u.strategy>=2||u.level<2?4:0),o(u,3),u.status=T)
|
|
654
|
+
else{var p=8+(u.w_bits-8<<4)<<8
|
|
655
|
+
p|=(u.strategy>=2||u.level<2?0:u.level<6?1:6===u.level?2:3)<<6,0!==u.strstart&&(p|=32),p+=31-p%31,u.status=T,h(u,p),0!==u.strstart&&(h(u,e.adler>>>16),h(u,65535&e.adler)),e.adler=1}if(69===u.status)if(u.gzhead.extra){for(f=u.pending;u.gzindex<(65535&u.gzhead.extra.length)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),a(e),f=u.pending,u.pending!==u.pending_buf_size));)o(u,255&u.gzhead.extra[u.gzindex]),u.gzindex++
|
|
656
|
+
u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=73)}else u.status=73
|
|
657
|
+
if(73===u.status)if(u.gzhead.name){f=u.pending
|
|
658
|
+
do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),a(e),f=u.pending,u.pending===u.pending_buf_size)){c=1
|
|
659
|
+
break}c=u.gzindex<u.gzhead.name.length?255&u.gzhead.name.charCodeAt(u.gzindex++):0,o(u,c)}while(0!==c)
|
|
660
|
+
u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),0===c&&(u.gzindex=0,u.status=91)}else u.status=91
|
|
661
|
+
if(91===u.status)if(u.gzhead.comment){f=u.pending
|
|
662
|
+
do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),a(e),f=u.pending,u.pending===u.pending_buf_size)){c=1
|
|
663
|
+
break}c=u.gzindex<u.gzhead.comment.length?255&u.gzhead.comment.charCodeAt(u.gzindex++):0,o(u,c)}while(0!==c)
|
|
664
|
+
u.gzhead.hcrc&&u.pending>f&&(e.adler=x(e.adler,u.pending_buf,u.pending-f,f)),0===c&&(u.status=z)}else u.status=z
|
|
665
|
+
if(u.status===z&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&a(e),u.pending+2<=u.pending_buf_size&&(o(u,255&e.adler),o(u,e.adler>>8&255),e.adler=0,u.status=T)):u.status=T),0!==u.pending){if(a(e),0===e.avail_out)return u.last_flush=-1,0}else if(0===e.avail_in&&n(t)<=n(l)&&4!==t)return r(e,-5)
|
|
666
|
+
if(u.status===O&&0!==e.avail_in)return r(e,-5)
|
|
667
|
+
if(0!==e.avail_in||0!==u.lookahead||0!==t&&u.status!==O){var m=2===u.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(d(e),0===e.lookahead)){if(0===t)return 1
|
|
668
|
+
break}if(e.match_length=0,r=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}(u,t):3===u.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=C){if(d(e),e.lookahead<=C&&0===t)return 1
|
|
669
|
+
if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=e.strstart+C
|
|
670
|
+
do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a)
|
|
671
|
+
e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=v._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}(u,t):w[u.level].func(u,t)
|
|
672
|
+
if(3!==m&&4!==m||(u.status=O),1===m||3===m)return 0===e.avail_out&&(u.last_flush=-1),0
|
|
673
|
+
if(2===m&&(1===t?v._tr_align(u):5!==t&&(v._tr_stored_block(u,0,0,!1),3===t&&(i(u.head),0===u.lookahead&&(u.strstart=0,u.block_start=0,u.insert=0))),a(e),0===e.avail_out))return u.last_flush=-1,0}return 4!==t?0:u.wrap<=0?1:(2===u.wrap?(o(u,255&e.adler),o(u,e.adler>>8&255),o(u,e.adler>>16&255),o(u,e.adler>>24&255),o(u,255&e.total_in),o(u,e.total_in>>8&255),o(u,e.total_in>>16&255),o(u,e.total_in>>24&255)):(h(u,e.adler>>>16),h(u,65535&e.adler)),a(e),u.wrap>0&&(u.wrap=-u.wrap),0!==u.pending?0:1)},exports.deflateEnd=function(e){var t
|
|
674
|
+
return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==z&&t!==T&&t!==O?r(e,E):(e.state=null,t===T?r(e,-3):0):E},exports.deflateSetDictionary=function(e,t){var r,n,a,s,o,h,l,u,f=t.length
|
|
675
|
+
if(!e||!e.state)return E
|
|
676
|
+
if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return E
|
|
677
|
+
for(1===s&&(e.adler=k(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(i(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new y.Buf8(r.w_size),y.arraySet(u,t,f-r.w_size,r.w_size,0),t=u,f=r.w_size),o=e.avail_in,h=e.next_in,l=e.input,e.avail_in=f,e.next_in=0,e.input=t,d(r);r.lookahead>=3;){n=r.strstart,a=r.lookahead-2
|
|
678
|
+
do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a)
|
|
679
|
+
r.strstart=n,r.lookahead=2,d(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=h,e.input=l,e.avail_in=o,r.wrap=s,0},exports.deflateInfo="pako deflate (from Nodeca project)"},37414(module){"use strict"
|
|
680
|
+
module.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}},47293(module){"use strict"
|
|
681
|
+
module.exports=function(e,t){var r,n,i,a,s,o,h,l,u,d,f,c,p,m,g,_,b,w,y,v,k,x,S,E,C
|
|
682
|
+
r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),a=e.next_out,C=e.output,s=a-(t-e.avail_out),o=a+(e.avail_out-257),h=r.dmax,l=r.wsize,u=r.whave,d=r.wnext,f=r.window,c=r.hold,p=r.bits,m=r.lencode,g=r.distcode,_=(1<<r.lenbits)-1,b=(1<<r.distbits)-1
|
|
683
|
+
e:do{p<15&&(c+=E[n++]<<p,p+=8,c+=E[n++]<<p,p+=8),w=m[c&_]
|
|
684
|
+
t:for(;;){if(c>>>=y=w>>>24,p-=y,0==(y=w>>>16&255))C[a++]=65535&w
|
|
685
|
+
else{if(!(16&y)){if(64&y){if(32&y){r.mode=12
|
|
686
|
+
break e}e.msg="invalid literal/length code",r.mode=30
|
|
687
|
+
break e}w=m[(65535&w)+(c&(1<<y)-1)]
|
|
688
|
+
continue t}for(v=65535&w,(y&=15)&&(p<y&&(c+=E[n++]<<p,p+=8),v+=c&(1<<y)-1,c>>>=y,p-=y),p<15&&(c+=E[n++]<<p,p+=8,c+=E[n++]<<p,p+=8),w=g[c&b];;){if(c>>>=y=w>>>24,p-=y,16&(y=w>>>16&255)){if(k=65535&w,p<(y&=15)&&(c+=E[n++]<<p,(p+=8)<y&&(c+=E[n++]<<p,p+=8)),(k+=c&(1<<y)-1)>h){e.msg="invalid distance too far back",r.mode=30
|
|
689
|
+
break e}if(c>>>=y,p-=y,k>(y=a-s)){if((y=k-y)>u&&r.sane){e.msg="invalid distance too far back",r.mode=30
|
|
690
|
+
break e}if(x=0,S=f,0===d){if(x+=l-y,y<v){v-=y
|
|
691
|
+
do{C[a++]=f[x++]}while(--y)
|
|
692
|
+
x=a-k,S=C}}else if(d<y){if(x+=l+d-y,(y-=d)<v){v-=y
|
|
693
|
+
do{C[a++]=f[x++]}while(--y)
|
|
694
|
+
if(x=0,d<v){v-=y=d
|
|
695
|
+
do{C[a++]=f[x++]}while(--y)
|
|
696
|
+
x=a-k,S=C}}}else if(x+=d-y,y<v){v-=y
|
|
697
|
+
do{C[a++]=f[x++]}while(--y)
|
|
698
|
+
x=a-k,S=C}for(;v>2;)C[a++]=S[x++],C[a++]=S[x++],C[a++]=S[x++],v-=3
|
|
699
|
+
v&&(C[a++]=S[x++],v>1&&(C[a++]=S[x++]))}else{x=a-k
|
|
700
|
+
do{C[a++]=C[x++],C[a++]=C[x++],C[a++]=C[x++],v-=3}while(v>2)
|
|
701
|
+
v&&(C[a++]=C[x++],v>1&&(C[a++]=C[x++]))}break}if(64&y){e.msg="invalid distance code",r.mode=30
|
|
702
|
+
break e}w=g[(65535&w)+(c&(1<<y)-1)]}}break}}while(n<i&&a<o)
|
|
703
|
+
n-=v=p>>3,c&=(1<<(p-=v<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<o?o-a+257:257-(a-o),r.hold=c,r.bits=p}},71447(e,exports,t){"use strict"
|
|
704
|
+
function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function n(){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 f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(e){var t
|
|
705
|
+
return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new f.Buf32(852),t.distcode=t.distdyn=new f.Buf32(592),t.sane=1,t.back=-1,0):_}function a(e){var t
|
|
706
|
+
return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,i(e)):_}function s(e,t){var r,n
|
|
707
|
+
return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?_:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,a(e))):_}function o(e,t){var r,i
|
|
708
|
+
return e?(i=new n,e.state=i,i.window=null,0!==(r=s(e,t))&&(e.state=null),r):_}function h(e){if(y){var t
|
|
709
|
+
for(u=new f.Buf32(512),d=new f.Buf32(32),t=0;t<144;)e.lens[t++]=8
|
|
710
|
+
for(;t<256;)e.lens[t++]=9
|
|
711
|
+
for(;t<280;)e.lens[t++]=7
|
|
712
|
+
for(;t<288;)e.lens[t++]=8
|
|
713
|
+
for(g(1,e.lens,0,288,u,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5
|
|
714
|
+
g(2,e.lens,0,32,d,0,e.work,{bits:5}),y=!1}e.lencode=u,e.lenbits=9,e.distcode=d,e.distbits=5}function l(e,t,r,n){var i,a=e.state
|
|
715
|
+
return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new f.Buf8(a.wsize)),n>=a.wsize?(f.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),f.arraySet(a.window,t,r-n,i,a.wnext),(n-=i)?(f.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}var u,d,f=t(9805),c=t(53269),p=t(14823),m=t(47293),g=t(21998),_=-2,b=12,w=30,y=!0
|
|
716
|
+
exports.inflateReset=a,exports.inflateReset2=s,exports.inflateResetKeep=i,exports.inflateInit=function(e){return o(e,15)},exports.inflateInit2=o,exports.inflate=function(e,t){var n,i,a,s,o,u,d,y,v,k,x,S,E,C,A,z,T,O,I,B,R,D,N,F,j=0,L=new f.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]
|
|
717
|
+
if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return _;(n=e.state).mode===b&&(n.mode=13),o=e.next_out,a=e.output,d=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,y=n.hold,v=n.bits,k=u,x=d,D=0
|
|
718
|
+
e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13
|
|
719
|
+
break}for(;v<16;){if(0===u)break e
|
|
720
|
+
u--,y+=i[s++]<<v,v+=8}if(2&n.wrap&&35615===y){n.check=0,L[0]=255&y,L[1]=y>>>8&255,n.check=p(n.check,L,2,0),y=0,v=0,n.mode=2
|
|
721
|
+
break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=w
|
|
722
|
+
break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=w
|
|
723
|
+
break}if(v-=4,R=8+(15&(y>>>=4)),0===n.wbits)n.wbits=R
|
|
724
|
+
else if(R>n.wbits){e.msg="invalid window size",n.mode=w
|
|
725
|
+
break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&y?10:b,y=0,v=0
|
|
726
|
+
break
|
|
727
|
+
case 2:for(;v<16;){if(0===u)break e
|
|
728
|
+
u--,y+=i[s++]<<v,v+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=w
|
|
729
|
+
break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=w
|
|
730
|
+
break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(L[0]=255&y,L[1]=y>>>8&255,n.check=p(n.check,L,2,0)),y=0,v=0,n.mode=3
|
|
731
|
+
case 3:for(;v<32;){if(0===u)break e
|
|
732
|
+
u--,y+=i[s++]<<v,v+=8}n.head&&(n.head.time=y),512&n.flags&&(L[0]=255&y,L[1]=y>>>8&255,L[2]=y>>>16&255,L[3]=y>>>24&255,n.check=p(n.check,L,4,0)),y=0,v=0,n.mode=4
|
|
733
|
+
case 4:for(;v<16;){if(0===u)break e
|
|
734
|
+
u--,y+=i[s++]<<v,v+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(L[0]=255&y,L[1]=y>>>8&255,n.check=p(n.check,L,2,0)),y=0,v=0,n.mode=5
|
|
735
|
+
case 5:if(1024&n.flags){for(;v<16;){if(0===u)break e
|
|
736
|
+
u--,y+=i[s++]<<v,v+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(L[0]=255&y,L[1]=y>>>8&255,n.check=p(n.check,L,2,0)),y=0,v=0}else n.head&&(n.head.extra=null)
|
|
737
|
+
n.mode=6
|
|
738
|
+
case 6:if(1024&n.flags&&((S=n.length)>u&&(S=u),S&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),f.arraySet(n.head.extra,i,s,S,R)),512&n.flags&&(n.check=p(n.check,i,S,s)),u-=S,s+=S,n.length-=S),n.length))break e
|
|
739
|
+
n.length=0,n.mode=7
|
|
740
|
+
case 7:if(2048&n.flags){if(0===u)break e
|
|
741
|
+
S=0
|
|
742
|
+
do{R=i[s+S++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&S<u)
|
|
743
|
+
if(512&n.flags&&(n.check=p(n.check,i,S,s)),u-=S,s+=S,R)break e}else n.head&&(n.head.name=null)
|
|
744
|
+
n.length=0,n.mode=8
|
|
745
|
+
case 8:if(4096&n.flags){if(0===u)break e
|
|
746
|
+
S=0
|
|
747
|
+
do{R=i[s+S++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&S<u)
|
|
748
|
+
if(512&n.flags&&(n.check=p(n.check,i,S,s)),u-=S,s+=S,R)break e}else n.head&&(n.head.comment=null)
|
|
749
|
+
n.mode=9
|
|
750
|
+
case 9:if(512&n.flags){for(;v<16;){if(0===u)break e
|
|
751
|
+
u--,y+=i[s++]<<v,v+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=w
|
|
752
|
+
break}y=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=b
|
|
753
|
+
break
|
|
754
|
+
case 10:for(;v<32;){if(0===u)break e
|
|
755
|
+
u--,y+=i[s++]<<v,v+=8}e.adler=n.check=r(y),y=0,v=0,n.mode=11
|
|
756
|
+
case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=d,e.next_in=s,e.avail_in=u,n.hold=y,n.bits=v,2
|
|
757
|
+
e.adler=n.check=1,n.mode=b
|
|
758
|
+
case b:if(5===t||6===t)break e
|
|
759
|
+
case 13:if(n.last){y>>>=7&v,v-=7&v,n.mode=27
|
|
760
|
+
break}for(;v<3;){if(0===u)break e
|
|
761
|
+
u--,y+=i[s++]<<v,v+=8}switch(n.last=1&y,v-=1,3&(y>>>=1)){case 0:n.mode=14
|
|
762
|
+
break
|
|
763
|
+
case 1:if(h(n),n.mode=20,6===t){y>>>=2,v-=2
|
|
764
|
+
break e}break
|
|
765
|
+
case 2:n.mode=17
|
|
766
|
+
break
|
|
767
|
+
case 3:e.msg="invalid block type",n.mode=w}y>>>=2,v-=2
|
|
768
|
+
break
|
|
769
|
+
case 14:for(y>>>=7&v,v-=7&v;v<32;){if(0===u)break e
|
|
770
|
+
u--,y+=i[s++]<<v,v+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=w
|
|
771
|
+
break}if(n.length=65535&y,y=0,v=0,n.mode=15,6===t)break e
|
|
772
|
+
case 15:n.mode=16
|
|
773
|
+
case 16:if(S=n.length){if(S>u&&(S=u),S>d&&(S=d),0===S)break e
|
|
774
|
+
f.arraySet(a,i,s,S,o),u-=S,s+=S,d-=S,o+=S,n.length-=S
|
|
775
|
+
break}n.mode=b
|
|
776
|
+
break
|
|
777
|
+
case 17:for(;v<14;){if(0===u)break e
|
|
778
|
+
u--,y+=i[s++]<<v,v+=8}if(n.nlen=257+(31&y),y>>>=5,v-=5,n.ndist=1+(31&y),y>>>=5,v-=5,n.ncode=4+(15&y),y>>>=4,v-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=w
|
|
779
|
+
break}n.have=0,n.mode=18
|
|
780
|
+
case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===u)break e
|
|
781
|
+
u--,y+=i[s++]<<v,v+=8}n.lens[P[n.have++]]=7&y,y>>>=3,v-=3}for(;n.have<19;)n.lens[P[n.have++]]=0
|
|
782
|
+
if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},D=g(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,D){e.msg="invalid code lengths set",n.mode=w
|
|
783
|
+
break}n.have=0,n.mode=19
|
|
784
|
+
case 19:for(;n.have<n.nlen+n.ndist;){for(;z=(j=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,T=65535&j,!((A=j>>>24)<=v);){if(0===u)break e
|
|
785
|
+
u--,y+=i[s++]<<v,v+=8}if(T<16)y>>>=A,v-=A,n.lens[n.have++]=T
|
|
786
|
+
else{if(16===T){for(F=A+2;v<F;){if(0===u)break e
|
|
787
|
+
u--,y+=i[s++]<<v,v+=8}if(y>>>=A,v-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=w
|
|
788
|
+
break}R=n.lens[n.have-1],S=3+(3&y),y>>>=2,v-=2}else if(17===T){for(F=A+3;v<F;){if(0===u)break e
|
|
789
|
+
u--,y+=i[s++]<<v,v+=8}v-=A,R=0,S=3+(7&(y>>>=A)),y>>>=3,v-=3}else{for(F=A+7;v<F;){if(0===u)break e
|
|
790
|
+
u--,y+=i[s++]<<v,v+=8}v-=A,R=0,S=11+(127&(y>>>=A)),y>>>=7,v-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=w
|
|
791
|
+
break}for(;S--;)n.lens[n.have++]=R}}if(n.mode===w)break
|
|
792
|
+
if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=w
|
|
793
|
+
break}if(n.lenbits=9,N={bits:n.lenbits},D=g(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,D){e.msg="invalid literal/lengths set",n.mode=w
|
|
794
|
+
break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},D=g(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,D){e.msg="invalid distances set",n.mode=w
|
|
795
|
+
break}if(n.mode=20,6===t)break e
|
|
796
|
+
case 20:n.mode=21
|
|
797
|
+
case 21:if(u>=6&&d>=258){e.next_out=o,e.avail_out=d,e.next_in=s,e.avail_in=u,n.hold=y,n.bits=v,m(e,x),o=e.next_out,a=e.output,d=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,y=n.hold,v=n.bits,n.mode===b&&(n.back=-1)
|
|
798
|
+
break}for(n.back=0;z=(j=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,T=65535&j,!((A=j>>>24)<=v);){if(0===u)break e
|
|
799
|
+
u--,y+=i[s++]<<v,v+=8}if(z&&!(240&z)){for(O=A,I=z,B=T;z=(j=n.lencode[B+((y&(1<<O+I)-1)>>O)])>>>16&255,T=65535&j,!(O+(A=j>>>24)<=v);){if(0===u)break e
|
|
800
|
+
u--,y+=i[s++]<<v,v+=8}y>>>=O,v-=O,n.back+=O}if(y>>>=A,v-=A,n.back+=A,n.length=T,0===z){n.mode=26
|
|
801
|
+
break}if(32&z){n.back=-1,n.mode=b
|
|
802
|
+
break}if(64&z){e.msg="invalid literal/length code",n.mode=w
|
|
803
|
+
break}n.extra=15&z,n.mode=22
|
|
804
|
+
case 22:if(n.extra){for(F=n.extra;v<F;){if(0===u)break e
|
|
805
|
+
u--,y+=i[s++]<<v,v+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23
|
|
806
|
+
case 23:for(;z=(j=n.distcode[y&(1<<n.distbits)-1])>>>16&255,T=65535&j,!((A=j>>>24)<=v);){if(0===u)break e
|
|
807
|
+
u--,y+=i[s++]<<v,v+=8}if(!(240&z)){for(O=A,I=z,B=T;z=(j=n.distcode[B+((y&(1<<O+I)-1)>>O)])>>>16&255,T=65535&j,!(O+(A=j>>>24)<=v);){if(0===u)break e
|
|
808
|
+
u--,y+=i[s++]<<v,v+=8}y>>>=O,v-=O,n.back+=O}if(y>>>=A,v-=A,n.back+=A,64&z){e.msg="invalid distance code",n.mode=w
|
|
809
|
+
break}n.offset=T,n.extra=15&z,n.mode=24
|
|
810
|
+
case 24:if(n.extra){for(F=n.extra;v<F;){if(0===u)break e
|
|
811
|
+
u--,y+=i[s++]<<v,v+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=w
|
|
812
|
+
break}n.mode=25
|
|
813
|
+
case 25:if(0===d)break e
|
|
814
|
+
if(S=x-d,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=w
|
|
815
|
+
break}S>n.wnext?(S-=n.wnext,E=n.wsize-S):E=n.wnext-S,S>n.length&&(S=n.length),C=n.window}else C=a,E=o-n.offset,S=n.length
|
|
816
|
+
S>d&&(S=d),d-=S,n.length-=S
|
|
817
|
+
do{a[o++]=C[E++]}while(--S)
|
|
818
|
+
0===n.length&&(n.mode=21)
|
|
819
|
+
break
|
|
820
|
+
case 26:if(0===d)break e
|
|
821
|
+
a[o++]=n.length,d--,n.mode=21
|
|
822
|
+
break
|
|
823
|
+
case 27:if(n.wrap){for(;v<32;){if(0===u)break e
|
|
824
|
+
u--,y|=i[s++]<<v,v+=8}if(x-=d,e.total_out+=x,n.total+=x,x&&(e.adler=n.check=n.flags?p(n.check,a,x,o-x):c(n.check,a,x,o-x)),x=d,(n.flags?y:r(y))!==n.check){e.msg="incorrect data check",n.mode=w
|
|
825
|
+
break}y=0,v=0}n.mode=28
|
|
826
|
+
case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===u)break e
|
|
827
|
+
u--,y+=i[s++]<<v,v+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=w
|
|
828
|
+
break}y=0,v=0}n.mode=29
|
|
829
|
+
case 29:D=1
|
|
830
|
+
break e
|
|
831
|
+
case w:D=-3
|
|
832
|
+
break e
|
|
833
|
+
case 31:return-4
|
|
834
|
+
default:return _}return e.next_out=o,e.avail_out=d,e.next_in=s,e.avail_in=u,n.hold=y,n.bits=v,(n.wsize||x!==e.avail_out&&n.mode<w&&(n.mode<27||4!==t))&&l(e,e.output,e.next_out,x-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,x-=e.avail_out,e.total_in+=k,e.total_out+=x,n.total+=x,n.wrap&&x&&(e.adler=n.check=n.flags?p(n.check,a,x,e.next_out-x):c(n.check,a,x,e.next_out-x)),e.data_type=n.bits+(n.last?64:0)+(n.mode===b?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===x||4===t)&&0===D&&(D=-5),D)},exports.inflateEnd=function(e){if(!e||!e.state)return _
|
|
835
|
+
var t=e.state
|
|
836
|
+
return t.window&&(t.window=null),e.state=null,0},exports.inflateGetHeader=function(e,t){var r
|
|
837
|
+
return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,0):_},exports.inflateSetDictionary=function(e,t){var r,n=t.length
|
|
838
|
+
return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?_:11===r.mode&&c(1,t,n,0)!==r.check?-3:l(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):_},exports.inflateInfo="pako inflate (from Nodeca project)"},21998(module,e,t){"use strict"
|
|
839
|
+
var r=t(9805),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]
|
|
840
|
+
module.exports=function(e,t,o,h,l,u,d,f){var c,p,m,g,_,b,w,y,v,k=f.bits,x=0,S=0,E=0,C=0,A=0,z=0,T=0,O=0,I=0,B=0,R=null,D=0,N=new r.Buf16(16),F=new r.Buf16(16),j=null,L=0
|
|
841
|
+
for(x=0;x<=15;x++)N[x]=0
|
|
842
|
+
for(S=0;S<h;S++)N[t[o+S]]++
|
|
843
|
+
for(A=k,C=15;C>=1&&0===N[C];C--);if(A>C&&(A=C),0===C)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0
|
|
844
|
+
for(E=1;E<C&&0===N[E];E++);for(A<E&&(A=E),O=1,x=1;x<=15;x++)if(O<<=1,(O-=N[x])<0)return-1
|
|
845
|
+
if(O>0&&(0===e||1!==C))return-1
|
|
846
|
+
for(F[1]=0,x=1;x<15;x++)F[x+1]=F[x]+N[x]
|
|
847
|
+
for(S=0;S<h;S++)0!==t[o+S]&&(d[F[t[o+S]]++]=S)
|
|
848
|
+
if(0===e?(R=j=d,b=19):1===e?(R=n,D-=257,j=i,L-=257,b=256):(R=a,j=s,b=-1),B=0,S=0,x=E,_=u,z=A,T=0,m=-1,g=(I=1<<A)-1,1===e&&I>852||2===e&&I>592)return 1
|
|
849
|
+
for(;;){w=x-T,d[S]<b?(y=0,v=d[S]):d[S]>b?(y=j[L+d[S]],v=R[D+d[S]]):(y=96,v=0),c=1<<x-T,E=p=1<<z
|
|
850
|
+
do{l[_+(B>>T)+(p-=c)]=w<<24|y<<16|v}while(0!==p)
|
|
851
|
+
for(c=1<<x-1;B&c;)c>>=1
|
|
852
|
+
if(0!==c?(B&=c-1,B+=c):B=0,S++,0===--N[x]){if(x===C)break
|
|
853
|
+
x=t[o+d[S]]}if(x>A&&(B&g)!==m){for(0===T&&(T=A),_+=E,O=1<<(z=x-T);z+T<C&&!((O-=N[z+T])<=0);)z++,O<<=1
|
|
854
|
+
if(I+=1<<z,1===e&&I>852||2===e&&I>592)return 1
|
|
855
|
+
l[m=B&g]=A<<24|z<<16|_-u}}return 0!==B&&(l[_+B]=x-T<<24|64<<16),f.bits=A,0}},54674(module){"use strict"
|
|
856
|
+
module.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"}},23665(e,exports,t){"use strict"
|
|
857
|
+
function r(e){for(var t=e.length;--t>=0;)e[t]=0}function n(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function i(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function a(e){return e<256?I[e]:I[256+(e>>>7)]}function s(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function o(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,s(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function h(e,t,r){o(e,r[2*t],r[2*t+1])}function l(e,t){var r=0
|
|
858
|
+
do{r|=1&e,e>>>=1,r<<=1}while(--t>0)
|
|
859
|
+
return r>>>1}function u(e,t,r){var n,i,a=new Array(16),s=0
|
|
860
|
+
for(n=1;n<=S;n++)a[n]=s=s+r[n-1]<<1
|
|
861
|
+
for(i=0;i<=t;i++){var o=e[2*i+1]
|
|
862
|
+
0!==o&&(e[2*i]=l(a[o]++,o))}}function d(e){var t
|
|
863
|
+
for(t=0;t<k;t++)e.dyn_ltree[2*t]=0
|
|
864
|
+
for(t=0;t<x;t++)e.dyn_dtree[2*t]=0
|
|
865
|
+
for(t=0;t<19;t++)e.bl_tree[2*t]=0
|
|
866
|
+
e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function f(e){e.bi_valid>8?s(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function c(e,t,r,n){var i=2*t,a=2*r
|
|
867
|
+
return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function p(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&c(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!c(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1
|
|
868
|
+
e.heap[r]=n}function m(e,t,r){var n,i,s,l,u=0
|
|
869
|
+
if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===n?h(e,i,t):(h(e,(s=B[i])+v+1,t),0!==(l=E[s])&&o(e,i-=R[s],l),h(e,s=a(--n),r),0!==(l=C[s])&&o(e,n-=j[s],l))}while(u<e.last_lit)
|
|
870
|
+
h(e,256,t)}function g(e,t){var r,n,i,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,h=t.stat_desc.elems,l=-1
|
|
871
|
+
for(e.heap_len=0,e.heap_max=573,r=0;r<h;r++)0!==a[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):a[2*r+1]=0
|
|
872
|
+
for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=s[2*i+1])
|
|
873
|
+
for(t.max_code=l,r=e.heap_len>>1;r>=1;r--)p(e,a,r)
|
|
874
|
+
i=h
|
|
875
|
+
do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],p(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,p(e,a,1)}while(e.heap_len>=2)
|
|
876
|
+
e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,s,o,h=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,c=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0
|
|
877
|
+
for(a=0;a<=S;a++)e.bl_count[a]=0
|
|
878
|
+
for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(a=h[2*h[2*(n=e.heap[r])+1]+1]+1)>p&&(a=p,m++),h[2*n+1]=a,n>l||(e.bl_count[a]++,s=0,n>=c&&(s=f[n-c]),o=h[2*n],e.opt_len+=o*(a+s),d&&(e.static_len+=o*(u[2*n+1]+s)))
|
|
879
|
+
if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--
|
|
880
|
+
e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0)
|
|
881
|
+
for(a=p;0!==a;a--)for(n=e.bl_count[a];0!==n;)(i=e.heap[--r])>l||(h[2*i+1]!==a&&(e.opt_len+=(a-h[2*i+1])*h[2*i],h[2*i+1]=a),n--)}}(e,t),u(a,l,e.bl_count)}function _(e,t,r){var n,i,a=-1,s=t[1],o=0,h=7,l=4
|
|
882
|
+
for(0===s&&(h=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++o<h&&i===s||(o<l?e.bl_tree[2*i]+=o:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=0,a=i,0===s?(h=138,l=3):i===s?(h=6,l=3):(h=7,l=4))}function b(e,t,r){var n,i,a=-1,s=t[1],l=0,u=7,d=4
|
|
883
|
+
for(0===s&&(u=138,d=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++l<u&&i===s)){if(l<d)do{h(e,i,e.bl_tree)}while(0!==--l)
|
|
884
|
+
else 0!==i?(i!==a&&(h(e,i,e.bl_tree),l--),h(e,16,e.bl_tree),o(e,l-3,2)):l<=10?(h(e,17,e.bl_tree),o(e,l-3,3)):(h(e,18,e.bl_tree),o(e,l-11,7))
|
|
885
|
+
l=0,a=i,0===s?(u=138,d=3):i===s?(u=6,d=3):(u=7,d=4)}}function w(e,t,r,n){o(e,0+(n?1:0),3),function(e,t,r){f(e),s(e,r),s(e,~r),y.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}var y=t(9805),v=256,k=286,x=30,S=15,E=[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],C=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(576)
|
|
886
|
+
r(T)
|
|
887
|
+
var O=new Array(60)
|
|
888
|
+
r(O)
|
|
889
|
+
var I=new Array(512)
|
|
890
|
+
r(I)
|
|
891
|
+
var B=new Array(256)
|
|
892
|
+
r(B)
|
|
893
|
+
var R=new Array(29)
|
|
894
|
+
r(R)
|
|
895
|
+
var D,N,F,j=new Array(x)
|
|
896
|
+
r(j)
|
|
897
|
+
var L=!1
|
|
898
|
+
exports._tr_init=function(e){L||(function(){var e,t,r,i,a,s=new Array(16)
|
|
899
|
+
for(r=0,i=0;i<28;i++)for(R[i]=r,e=0;e<1<<E[i];e++)B[r++]=i
|
|
900
|
+
for(B[r-1]=i,a=0,i=0;i<16;i++)for(j[i]=a,e=0;e<1<<C[i];e++)I[a++]=i
|
|
901
|
+
for(a>>=7;i<x;i++)for(j[i]=a<<7,e=0;e<1<<C[i]-7;e++)I[256+a++]=i
|
|
902
|
+
for(t=0;t<=S;t++)s[t]=0
|
|
903
|
+
for(e=0;e<=143;)T[2*e+1]=8,e++,s[8]++
|
|
904
|
+
for(;e<=255;)T[2*e+1]=9,e++,s[9]++
|
|
905
|
+
for(;e<=279;)T[2*e+1]=7,e++,s[7]++
|
|
906
|
+
for(;e<=287;)T[2*e+1]=8,e++,s[8]++
|
|
907
|
+
for(u(T,287,s),e=0;e<x;e++)O[2*e+1]=5,O[2*e]=l(e,5)
|
|
908
|
+
D=new n(T,E,257,k,S),N=new n(O,C,0,x,S),F=new n(new Array(0),A,0,19,7)}(),L=!0),e.l_desc=new i(e.dyn_ltree,D),e.d_desc=new i(e.dyn_dtree,N),e.bl_desc=new i(e.bl_tree,F),e.bi_buf=0,e.bi_valid=0,d(e)},exports._tr_stored_block=w,exports._tr_flush_block=function(e,t,r,n){var i,a,s=0
|
|
909
|
+
e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447
|
|
910
|
+
for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0
|
|
911
|
+
if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1
|
|
912
|
+
for(t=32;t<v;t++)if(0!==e.dyn_ltree[2*t])return 1
|
|
913
|
+
return 0}(e)),g(e,e.l_desc),g(e,e.d_desc),s=function(e){var t
|
|
914
|
+
for(_(e,e.dyn_ltree,e.l_desc.max_code),_(e,e.dyn_dtree,e.d_desc.max_code),g(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*z[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?w(e,t,r,n):4===e.strategy||a===i?(o(e,2+(n?1:0),3),m(e,T,O)):(o(e,4+(n?1:0),3),function(e,t,r,n){var i
|
|
915
|
+
for(o(e,t-257,5),o(e,r-1,5),o(e,n-4,4),i=0;i<n;i++)o(e,e.bl_tree[2*z[i]+1],3)
|
|
916
|
+
b(e,e.dyn_ltree,t-1),b(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),m(e,e.dyn_ltree,e.dyn_dtree)),d(e),n&&f(e)},exports._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(B[r]+v+1)]++,e.dyn_dtree[2*a(t)]++),e.last_lit===e.lit_bufsize-1},exports._tr_align=function(e){o(e,2,3),h(e,256,T),function(e){16===e.bi_valid?(s(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},44442(module){"use strict"
|
|
917
|
+
module.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}},33225(module){"use strict"
|
|
918
|
+
"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?module.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function')
|
|
919
|
+
var i,a,s=arguments.length
|
|
920
|
+
switch(s){case 0:case 1:return process.nextTick(e)
|
|
921
|
+
case 2:return process.nextTick(function(){e.call(null,t)})
|
|
922
|
+
case 3:return process.nextTick(function(){e.call(null,t,r)})
|
|
923
|
+
case 4:return process.nextTick(function(){e.call(null,t,r,n)})
|
|
924
|
+
default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a]
|
|
925
|
+
return process.nextTick(function(){e.apply(null,i)})}}}:module.exports=process},42791(){!function(e){"use strict"
|
|
926
|
+
function t(e){delete l[e]}function r(e){if(u)setTimeout(r,0,e)
|
|
927
|
+
else{var n=l[e]
|
|
928
|
+
if(n){u=!0
|
|
929
|
+
try{!function(e){var t=e.callback,r=e.args
|
|
930
|
+
switch(r.length){case 0:t()
|
|
931
|
+
break
|
|
932
|
+
case 1:t(r[0])
|
|
933
|
+
break
|
|
934
|
+
case 2:t(r[0],r[1])
|
|
935
|
+
break
|
|
936
|
+
case 3:t(r[0],r[1],r[2])
|
|
937
|
+
break
|
|
938
|
+
default:t.apply(void 0,r)}}(n)}finally{t(e),u=!1}}}}if(!e.setImmediate){var n,i,a,s,o,h=1,l={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e)
|
|
939
|
+
f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick(function(){r(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage
|
|
940
|
+
return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&r(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){r(e.data)},n=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(e){var t=d.createElement("script")
|
|
941
|
+
t.onreadystatechange=function(){r(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(r,0,e)},f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e))
|
|
942
|
+
for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1]
|
|
943
|
+
var i={callback:e,args:t}
|
|
944
|
+
return l[h]=i,n(h),h++},f.clearImmediate=t}}("undefined"==typeof self?"undefined"==typeof global?this:global:self)},27983(module,e,t){module.exports=t(39023).deprecate}}
|