diff --git a/app.7aae236f.js b/app.b9a31e1c.js similarity index 66% rename from app.7aae236f.js rename to app.b9a31e1c.js index 80eb2a7..d61dee2 100644 --- a/app.7aae236f.js +++ b/app.b9a31e1c.js @@ -10,5 +10,5 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */ -!function(n){"object"==s(t)&&void 0!==e&&"undefined"==typeof DO_NOT_EXPORT_JSZIP?e.exports=n():(JSZip=n(),i=[],void 0===(a="function"==typeof(r=n)?r.apply(t,i):r)||(e.exports=a))}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){if(!l&&("function"==typeof o&&o))return o(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s>2,s=(3&n)<<4|(i=e.charCodeAt(d++))>>4,l=(15&i)<<2|(a=e.charCodeAt(d++))>>6,c=63&a,isNaN(i)?l=c=64:isNaN(a)&&(c=64),h=h+r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c);return h},n.decode=function(e,t){var n,i,a,o,s,l,c="",h=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");h>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(h++)))>>2,a=(3&s)<<6|(l=r.indexOf(e.charAt(h++))),c+=String.fromCharCode(n),64!=s&&(c+=String.fromCharCode(i)),64!=l&&(c+=String.fromCharCode(a));return c}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var a=0;t^=-1;for(var o=0,s=e.length;o>>8^i[255&(t^a)];return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";var r=e("./utils");function i(e){this.data=null,this.length=0,this.index=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=i},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e){return i.deflateRaw(e)},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";var r=e("./base64");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=e("./object"),i.prototype.load=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.utils=e("./deprecatedPublicUtils"),i.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},i.compressions=e("./compressions"),t.exports=i},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,a,o,s;for((t=t||{}).base64&&(e=r.decode(e)),n=(a=new i(e,t)).files,o=0;o>>=8;return r},w=function(){var e,t,n={};for(e=0;e0?e.substring(0,t):""},x=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||v.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},k=function(e,t){var n,r=new h;return e._data instanceof h?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=c.STORE,r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n)))):((n=b(e))&&0!==n.length&&!e.dir||(t=c.STORE,n=""),r.uncompressedSize=n.length,r.crc32=a(n),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},C=function(e,t,n,r){n.compressedContent;var s,l,c,h,d=i.transformTo("string",f.utf8encode(t.name)),u=t.comment||"",p=i.transformTo("string",f.utf8encode(u)),m=d.length!==t.name.length,b=p.length!==u.length,g=t.options,_="",w="",v="";c=t._initialMetadata.dir!==t.dir?t.dir:g.dir,s=(h=t._initialMetadata.date!==t.date?t.date:g.date).getHours(),s<<=6,s|=h.getMinutes(),s<<=5,s|=h.getSeconds()/2,l=h.getFullYear()-1980,l<<=4,l|=h.getMonth()+1,l<<=5,l|=h.getDate(),m&&(w=y(1,1)+y(a(d),4)+d,_+="up"+y(w.length,2)+w),b&&(v=y(1,1)+y(this.crc32(p),4)+p,_+="uc"+y(v.length,2)+v);var E="";return E+="\n\0",E+=m||b?"\0\b":"\0\0",E+=n.compressionMethod,E+=y(s,2),E+=y(l,2),E+=y(n.crc32,4),E+=y(n.compressedSize,4),E+=y(n.uncompressedSize,4),E+=y(d.length,2),E+=y(_.length,2),{fileRecord:o.LOCAL_FILE_HEADER+E+d+_,dirRecord:o.CENTRAL_FILE_HEADER+"\0"+E+y(p.length,2)+"\0\0\0\0"+(!0===c?"\0\0\0":"\0\0\0\0")+y(r,4)+d+_+p,compressedObject:n}},z={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new _(r.name,r._data,w(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&a.push(i));return a},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,v.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=x.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodeBuffer"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1;var l=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t},c=function(e){var t,n,i,a,s=e.length,l=new Array(2*s);for(n=0,t=0;t4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,a=(e=r.transformTo(i.uint8array?"uint8array":"array",e)).length;n1;)try{"array"===o||"nodebuffer"===o?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function c(e,t){for(var n=0;n1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0?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 s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);t.header&&r.deflateSetHeader(this.strm,t.header)};function c(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}l.prototype.push=function(e,t){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,s.input="string"==typeof e?a.string2buf(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===s.avail_out||0===s.avail_in&&4===o)&&("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4!==o||(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=l,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";var r=e("./zlib/inflate.js"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),h=function(e){this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;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&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)};function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}h.prototype.push=function(e,t){var n,s,l,c,h,d=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,d.input="string"==typeof e?a.binstring2buf(e):e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,o.Z_NO_FLUSH))!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0===d.avail_out||n===o.Z_STREAM_END||0===d.avail_in&&s===o.Z_FINISH)&&("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),c=d.next_out-l,h=a.buf2string(d.output,l),d.next_out=c,d.avail_out=f-c,c&&i.arraySet(d.output,d.output,l,c,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))}while(d.avail_in>0&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s!==o.Z_FINISH||(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==(void 0===n?"undefined":s(n)))throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},{}],30:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],32:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./trees"),a=e("./adler32"),o=e("./crc32"),s=e("./messages"),l=0,c=1,h=3,d=4,f=5,u=0,p=1,m=-2,b=-3,g=-5,_=-1,y=1,w=2,v=3,E=4,x=0,k=2,C=8,z=9,S=15,B=8,F=286,A=30,I=19,O=2*F+1,T=15,N=3,R=258,D=R+N+1,j=32,L=42,P=69,U=73,Z=91,M=103,W=113,H=666,V=1,Y=2,X=3,K=4,J=3;function q(e,t){return e.msg=s[t],t}function G(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function $(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function ee(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,$(e.strm)}function te(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function re(e,t,n,i){var s=e.avail_in;return s>i&&(s=i),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=a(e.adler,t,s,n):2===e.state.wrap&&(e.adler=o(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function ie(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-D?e.strstart-(e.w_size-D):0,c=e.window,h=e.w_mask,d=e.prev,f=e.strstart+R,u=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===u&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&ao){if(e.match_start=t,o=r,r>=s)break;u=c[a+o-1],p=c[a+o]}}}while((t=d[t&h])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ae(e){var t,n,i,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-D)){r.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=s?i-s:0}while(--n);t=n=s;do{i=e.prev[--t],e.prev[t]=i>=s?i-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=re(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=N)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<=N&&(e.ins_h=(e.ins_h<=N)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=N&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-N,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<15&&(s=2,i-=16),a<1||a>z||n!==C||i<8||i>15||t<0||t>9||o<0||o>E)return q(e,m);8===i&&(i=9);var l=new function(){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=C,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 r.Buf16(2*O),this.dyn_dtree=new r.Buf16(2*(2*A+1)),this.bl_tree=new r.Buf16(2*(2*I+1)),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(T+1),this.heap=new r.Buf16(2*F+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*F+1),Q(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};return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,de(e)}le=[new ce(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===l)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ee(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-D&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):(e.strstart>e.block_start&&(ee(e,!1),e.strm.avail_out),V)}),new ce(4,4,8,4,oe),new ce(4,5,16,8,oe),new ce(4,6,32,32,oe),new ce(4,4,16,16,se),new ce(8,16,32,32,se),new ce(8,16,128,128,se),new ce(8,32,128,256,se),new ce(32,128,258,1024,se),new ce(32,258,258,4096,se)],n.deflateInit=function(e,t){return fe(e,t,C,S,B,x)},n.deflateInit2=fe,n.deflateReset=de,n.deflateResetKeep=he,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,u):m},n.deflate=function(e,t){var n,r,a,s;if(!e||!e.state||t>f||t<0)return e?q(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===H&&t!==d)return q(e,0===e.avail_out?g:m);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===L)if(2===r.wrap)e.adler=0,te(r,31),te(r,139),te(r,8),r.gzhead?(te(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),te(r,255&r.gzhead.time),te(r,r.gzhead.time>>8&255),te(r,r.gzhead.time>>16&255),te(r,r.gzhead.time>>24&255),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(te(r,255&r.gzhead.extra.length),te(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=o(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=P):(te(r,0),te(r,0),te(r,0),te(r,0),te(r,0),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,J),r.status=W);else{var b=C+(r.w_bits-8<<4)<<8;b|=(r.strategy>=w||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(b|=j),b+=31-b%31,r.status=W,ne(r,b),0!==r.strstart&&(ne(r,e.adler>>>16),ne(r,65535&e.adler)),e.adler=1}if(r.status===P)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending!==r.pending_buf_size));)te(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=U)}else r.status=U;if(r.status===U)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindexa&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.gzindex=0,r.status=Z)}else r.status=Z;if(r.status===Z)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindexa&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.status=M)}else r.status=M;if(r.status===M&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&$(e),r.pending+2<=r.pending_buf_size&&(te(r,255&e.adler),te(r,e.adler>>8&255),e.adler=0,r.status=W)):r.status=W),0!==r.pending){if($(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&G(t)<=G(n)&&t!==d)return q(e,g);if(r.status===H&&0!==e.avail_in)return q(e,g);if(0!==e.avail_in||0!==r.lookahead||t!==l&&r.status!==H){var _=r.strategy===w?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===l)return V;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):r.strategy===v?function(e,t){for(var n,r,a,o,s=e.window;;){if(e.lookahead<=R){if(ae(e),e.lookahead<=R&&t===l)return V;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&e.strstart>0&&(r=s[a=e.strstart-1])===s[++a]&&r===s[++a]&&r===s[++a]){o=e.strstart+R;do{}while(r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(n=i._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):le[r.level].func(r,t);if(_!==X&&_!==K||(r.status=H),_===V||_===X)return 0===e.avail_out&&(r.last_flush=-1),u;if(_===Y&&(t===c?i._tr_align(r):t!==f&&(i._tr_stored_block(r,0,0,!1),t===h&&(Q(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),$(e),0===e.avail_out))return r.last_flush=-1,u}return t!==d?u:r.wrap<=0?p:(2===r.wrap?(te(r,255&e.adler),te(r,e.adler>>8&255),te(r,e.adler>>16&255),te(r,e.adler>>24&255),te(r,255&e.total_in),te(r,e.total_in>>8&255),te(r,e.total_in>>16&255),te(r,e.total_in>>24&255)):(ne(r,e.adler>>>16),ne(r,65535&e.adler)),$(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?u:p)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==L&&t!==P&&t!==U&&t!==Z&&t!==M&&t!==W&&t!==H?q(e,m):(e.state=null,t===W?q(e,b):u):m},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,h,d,f,u,p,m,b,g,_,y,w,v,E,x,k,C,z;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),a=e.next_out,z=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,h=n.whave,d=n.wnext,f=n.window,u=n.hold,p=n.bits,m=n.lencode,b=n.distcode,g=(1<>>=w=y>>>24,p-=w,0===(w=y>>>16&255))z[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(u&(1<>>=w,p-=w),p<15&&(u+=C[r++]<>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(u&(1<l){e.msg="invalid distance too far back",n.mode=30;break e}if(u>>>=w,p-=w,E>(w=a-o)){if((w=E-w)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,k=f,0===d){if(x+=c-w,w2;)z[a++]=k[x++],z[a++]=k[x++],z[a++]=k[x++],v-=3;v&&(z[a++]=k[x++],v>1&&(z[a++]=k[x++]))}else{x=a-E;do{z[a++]=z[x++],z[a++]=z[x++],z[a++]=z[x++],v-=3}while(v>2);v&&(z[a++]=z[x++],v>1&&(z[a++]=z[x++]))}break}}break}}while(r>3,u&=(1<<(p-=v<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=E,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):g}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):g}function oe(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?g:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):g}function se(e,t){var n,i;return e?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},e.state=i,i.window=null,(n=oe(e,t))!==p&&(e.state=null),n):g}var le,ce,he=!0;function de(e){if(he){var t;for(le=new r.Buf32(512),ce=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,le,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(h,e.lens,0,32,ce,0,e.work,{bits:5}),he=!1}e.lencode=le,e.lenbits=9,e.distcode=ce,e.distbits=5}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=function(e){return se(e,ne)},n.inflateInit2=se,n.inflate=function(e,t){var n,ee,te,ne,ie,ae,oe,se,le,ce,he,fe,ue,pe,me,be,ge,_e,ye,we,ve,Ee,xe,ke,Ce=0,ze=new r.Buf8(4),Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return g;(n=e.state).mode===T&&(n.mode=N),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,ce=ae,he=oe,Ee=p;e:for(;;)switch(n.mode){case E:if(0===n.wrap){n.mode=N;break}for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,n.check=a(n.check,ze,2,0),se=0,le=0,n.mode=x;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=G;break}if((15&se)!==v){e.msg="unknown compression method",n.mode=G;break}if(le-=4,ve=8+(15&(se>>>=4)),0===n.wbits)n.wbits=ve;else if(ve>n.wbits){e.msg="invalid window size",n.mode=G;break}n.dmax=1<>8&1),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=k;case k:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,ze[2]=se>>>16&255,ze[3]=se>>>24&255,n.check=a(n.check,ze,4,0)),se=0,le=0,n.mode=C;case C:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>8),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=z;case z:if(1024&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=S;case S:if(1024&n.flags&&((fe=n.length)>ae&&(fe=ae),fe&&(n.head&&(ve=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,ve)),512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=B;case B:if(2048&n.flags){if(0===ae)break e;fe=0;do{ve=ee[ne+fe++],n.head&&ve&&n.length<65536&&(n.head.name+=String.fromCharCode(ve))}while(ve&&fe>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=T;break;case I:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=7&le,le-=7&le,n.mode=K;break}for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=1)){case 0:n.mode=R;break;case 1:if(de(n),n.mode=Z,t===u){se>>>=2,le-=2;break e}break;case 2:n.mode=L;break;case 3:e.msg="invalid block type",n.mode=G}se>>>=2,le-=2;break;case R:for(se>>>=7&le,le-=7≤le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=G;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===u)break e;case D:n.mode=j;case j:if(fe=n.length){if(fe>ae&&(fe=ae),fe>oe&&(fe=oe),0===fe)break e;r.arraySet(te,ee,ne,fe,ie),ae-=fe,ne+=fe,oe-=fe,ie+=fe,n.length-=fe;break}n.mode=T;break;case L:for(;le<14;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=G;break}n.have=0,n.mode=P;case P:for(;n.have>>=3,le-=3}for(;n.have<19;)n.lens[Se[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xe={bits:n.lenbits},Ee=s(l,n.lens,0,19,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid code lengths set",n.mode=G;break}n.have=0,n.mode=U;case U:for(;n.have>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=me,le-=me,n.lens[n.have++]=ge;else{if(16===ge){for(ke=me+2;le>>=me,le-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=G;break}ve=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ge){for(ke=me+3;le>>=me)),se>>>=3,le-=3}else{for(ke=me+7;le>>=me)),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=G;break}for(;fe--;)n.lens[n.have++]=ve}}if(n.mode===G)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=G;break}if(n.lenbits=9,xe={bits:n.lenbits},Ee=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid literal/lengths set",n.mode=G;break}if(n.distbits=6,n.distcode=n.distdyn,xe={bits:n.distbits},Ee=s(h,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xe),n.distbits=xe.bits,Ee){e.msg="invalid distances set",n.mode=G;break}if(n.mode=Z,t===u)break e;case Z:n.mode=M;case M:if(ae>=6&&oe>=258){e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,o(e,he),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,n.mode===T&&(n.back=-1);break}for(n.back=0;be=(Ce=n.lencode[se&(1<>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,n.length=ge,0===be){n.mode=X;break}if(32&be){n.back=-1,n.mode=T;break}if(64&be){e.msg="invalid literal/length code",n.mode=G;break}n.extra=15&be,n.mode=W;case W:if(n.extra){for(ke=n.extra;le>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;be=(Ce=n.distcode[se&(1<>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,64&be){e.msg="invalid distance code",n.mode=G;break}n.offset=ge,n.extra=15&be,n.mode=V;case V:if(n.extra){for(ke=n.extra;le>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=G;break}n.mode=Y;case Y:if(0===oe)break e;if(fe=he-oe,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=G;break}fe>n.wnext?(fe-=n.wnext,ue=n.wsize-fe):ue=n.wnext-fe,fe>n.length&&(fe=n.length),pe=n.window}else pe=te,ue=ie-n.offset,fe=n.length;fe>oe&&(fe=oe),oe-=fe,n.length-=fe;do{te[ie++]=pe[ue++]}while(--fe);0===n.length&&(n.mode=M);break;case X:if(0===oe)break e;te[ie++]=n.length,oe--,n.mode=M;break;case K:if(n.wrap){for(;le<32;){if(0===ae)break e;ae--,se|=ee[ne++]<=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave=1&&0===R[z];z--);if(S>z&&(S=z),0===z)return c[h++]=20971520,c[h++]=20971520,f.bits=1,0;for(C=1;C0&&(0===e||1!==z))return-1;for(D[1]=0,x=1;x<15;x++)D[x+1]=D[x]+R[x];for(k=0;k852||2===e&&I>592)return 1;for(;;){0,y=x-F,d[k]<_?(w=0,v=d[k]):d[k]>_?(w=j[L+d[k]],v=T[N+d[k]]):(w=96,v=0),u=1<>F)+(p-=u)]=y<<24|w<<16|v|0}while(0!==p);for(u=1<>=1;if(0!==u?(O&=u-1,O+=u):O=0,k++,0==--R[x]){if(x===z)break;x=t[n+d[k]]}if(x>S&&(O&b)!==m){for(0===F&&(F=S),g+=C,A=1<<(B=x-F);B+F852||2===e&&I>592)return 1;c[m=O&b]=S<<24|B<<16|g-h|0}}return 0!==O&&(c[g+O]=x-F<<24|64<<16|0),f.bits=S,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,h=1,d=2,f=29,u=256,p=u+1+f,m=30,b=19,g=2*p+1,_=15,y=16,w=7,v=256,E=16,x=17,k=18,C=[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],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(p+2));l(F);var A=new Array(2*m);l(A);var I=new Array(512);l(I);var O=new Array(256);l(O);var T=new Array(f);l(T);var N=new Array(m);l(N);var R,D,j,L=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},P=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t};function U(e){return e<256?I[e]:I[256+(e>>>7)]}function Z(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,n){var r,i,a=new Array(_+1),o=0;for(r=1;r<=_;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(a[s]++,s))}}function Y(e){var t;for(t=0;t8?Z(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 K(e,t,n,r){var i=2*t,a=2*n;return e[i]>1;n>=1;n--)J(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],J(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,J(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=_;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(a=p,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=u&&(o=f[r-u]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(h[2*r+1]+o)));if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),V(a,c,e.bl_count)}function Q(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s>=7;r0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t=3&&0===e.bl_tree[2*B[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),l=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==t?te(e,t,n,r):e.strategy===i||c===l?(M(e,(h<<1)+(r?1:0),3),q(e,F,A)):(M(e,(d<<1)+(r?1:0),3),function(e,t,n,r){var i;for(M(e,t-257,5),M(e,n-1,5),M(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+u+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){M(e,h<<1,3),W(e,v,F),function(e){16===e.bi_valid?(Z(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)}},{"../utils/common":27}],39:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[9])(9)})}).call(this,n(31).Buffer)},39:function(e,t,n){},408:function(e,t,n){},430:function(e,t,n){},432:function(e,t,n){"use strict";n.r(t);n(56);var r=n(0),i=n.n(r),a=n(26),o=n(437),s=n(436),l=n(438),c=n(435),h=n(3),d=n(5),f=n.n(d),u=n(49),p=(n(66),n(7)),m=n(27),b=n(28),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e[r];return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},y=n(8),w="%02hhx",v=w+w+" ",E=[].concat(Array.from({length:16}).map(function(e,t){return v.repeat(t>>1)+(t%2?w:" ")+" "+" ".repeat(7-(t>>1))+"|"+"%c".repeat(t)+" ".repeat(16-t)+"|\n"}),[v.repeat(8)+"|"+"%c".repeat(16)+"|\n"]),x=function(e){return e.replace(/[\u0000-\u001f]/,function(e){return Object(y.a)("\\u%04X",e.charCodeAt(0))})},k=function(e){for(var t=[],n=new Uint8Array(e),r=0;r=14336&&t<18496&&(t>=18432?t=z(t-18432):(t-=14336,r.push(String.fromCharCode(z(63&t))),t=z(t>>6&63))),r.push(String.fromCharCode(t));return r.join("")},B=Object(h.b)({fname:"",file:null,dirty:!1,loading:!1,isDirty:function(){return this.file&&this.dirty},setLoading:function(e){return this.loading=e},getLoading:function(){return this.loading},isEmpty:function(){return!this.file},isCFB:function(){return this.file&&this.file.FullPaths},isZIP:function(){return this.file&&!this.isCFB()},getType:function(){return this.isCFB()?"CFB":this.isZIP()?"ZIP":"???"},getFileList:function(){var e=this;return this.keys().map(function(t,n){return[t,e.getFileEntryById(n),n]}).filter(function(t){return e.isCFB()?2==t[1].type:!t[1].dir})},getNextName:function(e){return e?this.find("SheetJS"+e)?this.getNextName(e+1):"SheetJS"+e:this.getNextName(1)},getRootName:function(){return this.isCFB()?this.getFileNameById(0):""},getCLSID:function(){return this.isCFB()?this.getFileEntryById(0).clsid:""},setName:function(e){this.fname=e},setBStr:function(e,t){var n=this;this.loading=!0,setTimeout(function(){try{switch(e.slice(0,4)){case"MIME":case"ÐÏà":n.type="CFB",n.file=p.read(e,{type:"binary"});break;case"PK":case"PK":n.type="ZIP",n.file=new m(e,{base64:!1});break;default:throw new Error("Invalid file (magic "+e.slice(0,4).split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})+")")}n.loading=!1}catch(e){n.loading=!1,t&&t(e)}},100)},addNewFile:function(e){var t=e||this.getNextName(1);this.isCFB()?p.utils.cfb_add(this.file,t,[55,50,54,50]):this.isZIP()&&this.file.file(t,"7262");var n=this.find(t);return this.dirty=!0,this.isCFB()?this.getFileNameById(this.entries().indexOf(n)):t},getFileNameById:function(e){return this.keys()[e]||""},getFileEntryById:function(e){return this.entries()[e]||null},getFixedName:function(e){return this.isEmpty()?"":x(this.getFileNameById(e))},getFixedPath:function(e){return this.isEmpty()?"":this.isCFB()?x(this.getFileNameById(e)).replace(/^[^/]*/,""):x(this.getFileNameById(e))},getFileTime:function(e){return this.isEmpty()||!this.getFileEntryById(e)?new Date(NaN):this.getFileTimeEntry(e)||this.getFileTimeEntry(0)||new Date(1980,0,1)},setContentAB:function(e,t){var n=k(t),r=this.getFileNameById(e);this.isCFB()?(p.utils.prep_blob(n),p.utils.cfb_add(this.file,r,k(n))):this.isZIP()&&this.file.file(r,n.map(function(e){return String.fromCharCode(e)}).join(""),{binary:"true"}),this.dirty=!0},renFileById:function(e,t){var n=this.getFileNameById(e),r=function(e){return e.replace(/\\u(\d{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}(t).replace(/^\//,"");this.isCFB()?(p.utils.cfb_mov(this.file,n,this.getFileNameById(0)+r),p.utils.cfb_gc(this.file)):this.isZIP()&&(this.file.file(r,C(this.getContentById(e)),{binary:!0}),this.file.remove(n)),this.dirty=!0},delFileById:function(e){var t=this.getFileNameById(e);this.isCFB()&&p.utils.cfb_del(this.file,t),this.isZIP()&&this.file.remove(t),this.dirty=!0},exportBStrById:function(e){var t=this;this.loading=!0,setTimeout(function(){try{var n=t.getFileEntryById(e);_(t.getContentByEntry(n),n.name),t.loading=!1}catch(e){throw t.loading=!1,e}},100)},exportBStr:function(){var e=this;this.loading=!0,setTimeout(function(){try{e.dirty=!1;var t=void 0;return e.isCFB()&&(t=g(p.write(e.file,{type:"binary"}),e.fname||"SheetJS.cfb")),e.isZIP()&&(t=g(e.file.generate({type:"string",compression:"DEFLATE"}),e.fname||"SheetJS.zip")),e.loading=!1,t}catch(t){throw e.loading=!1,t}},100)},newFile:function(e){if(this.fname=e||"sheetjs.cfb",this.fname.match(/\.zip$/)){var t=new m;t.file("Sh33tJ5","7262"),this.file=t}else this.file=p.utils.cfb_new();this.dirty=!0},reset:function(){this.file=null,this.fname="",this.dirty=!1},getContentById:function(e){return this.getContentByEntry(this.getFileEntryById(e))},getContentByEntry:function(e){return e?e._data?"string"==typeof e._data?function(e){return e.split("").map(function(e){return e.charCodeAt(0)})}(e._data):k(e._data.getContent()):e.content||[]:[]},getContentSliceByEntry:function(e,t,n){return e?e.content?e.content.slice(t,n):this.getContentByEntry(e).slice(t,n):[]},getSizeByEntry:function(e){return(!this.isCFB()||e.content&&e.content.length)&&e&&(e.size||e._data&&e._data.uncompressedSize||e._data.length)||0},getTextByEntry:function(e){return e&&(e._data||e.content)?e._data?"string"==typeof e._data?e._data:C(e._data.getContent()):C(e.content):""},getFileTimeEntry:function(e){var t=this.getFileEntryById(e);return t?t.ct||t.mt||t.date||0!=e&&this.getFileTime(0)||new Date(1980,0,1):new Date(NaN)},find:function(e){return this.isEmpty()?null:this.isCFB()?p.find(this.file,e):this.file.filter(function(t,n){return e==t||e==n.name})[0]},keys:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FullPaths:Object.keys(this.file.files).filter(function(t){return!e.file.files[t].dir})},entries:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FileIndex:this.keys().map(function(t){return e.file.files[t]})},getIdByName:function(e){var t=this;return this.isEmpty()?-1:this.isZIP()?Object.keys(this.file.files).filter(function(e){return!t.file.files[e].dir}).indexOf(e):this.entries().indexOf(this.find(e))},Sheet:"JS"}),F=n(434),A=n(2),I=n(16),O=(n(110),n(112),n(43).Tooltip);var T=i.a.createElement(O,{title:"File has unsaved changes",position:"bottom"},"**"),N=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.isDirty?T:""},t}(r.Component);var R=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),D=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),j=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),L=i.a.createElement(A.Icon,{name:"question",fixedWidth:!0}),P=i.a.createElement(O,{title:"About Us",position:"bottom"},i.a.createElement("a",{href:"http://sheetjs.com"},i.a.createElement("img",{className:"Logo",src:"logo.png",height:"24px",width:"24px"}))),U=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.flipViz=r.flipViz.bind(r),r.force=r.force.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.flipViz=function(){this.props.flipViz(),this.forceUpdate()},t.prototype.force=function(){this.forceUpdate()},t.prototype.render=function(){return i.a.createElement("div",{className:"ToolBar"},i.a.createElement("div",{className:"AlignLeft"},i.a.createElement("div",{className:"TitleName"},"CFB Editor",i.a.createElement(O,{title:(this.props.viz?"Hide":"Show")+" Sidebar",position:"bottom"},i.a.createElement("a",{onClick:this.flipViz},i.a.createElement(A.Icon,{name:"caret-"+(this.props.viz?"left":"right"),fixedWidth:!0}))),B.getLoading()&&R)),i.a.createElement("div",{className:"AlignCenter"},i.a.createElement("div",{className:"TitleFile"},B.fname?this.props.idx?i.a.createElement(F.a,{to:"/"},"<"+B.fname+">"):"<"+B.fname+">":null,i.a.createElement(N,{isDirty:B.isDirty()}))),i.a.createElement("div",{className:"AlignRight"},i.a.createElement("div",{className:"TitleIcons"},!B.isEmpty()&&i.a.createElement(O,{title:"Download archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.exportFile},D)),!B.isEmpty()&&i.a.createElement(O,{title:"Close archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.erase},j)),i.a.createElement(O,{title:"Show Help",position:"bottom"},i.a.createElement(F.a,{to:"/help"},L)),P)))},t}(r.Component),Z=Object(h.a)(U);n(115);var M=i.a.createElement("div",{className:"tree"}," "),W=i.a.createElement("br",null),H=i.a.createElement(A.Icon,{name:"list",fixedWidth:!0}),V=i.a.createElement("b",null,"Show Manifest"),Y=i.a.createElement("b",null,"Archive Operations"),X=i.a.createElement("br",null),K=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),J=i.a.createElement("b",null,"Download Archive"),q=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),G=i.a.createElement("b",null,"Rename Archive"),Q=i.a.createElement(A.Icon,{name:"plus",fixedWidth:!0}),$=i.a.createElement("b",null,"Add file to Archive"),ee=i.a.createElement("li",null,i.a.createElement("b",null,"(or drag and drop a file here)")),te=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),ne=i.a.createElement("b",null,"Close Archive"),re=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.exportFile=r.exportFile.bind(r),r.renameFile=r.renameFile.bind(r),r.erase=r.erase.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.exportFile=function(){this.props.exportFile()},t.prototype.renameFile=function(){this.props.renameFile()},t.prototype.erase=function(){this.props.erase()},t.prototype.render=function(){var e=this;return B.isEmpty()?M:i.a.createElement("div",{className:"tree"},i.a.createElement("b",null,"Files in "+B.fname),W,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement(F.a,{to:"/"},H,"  ",V)),B.getFileList().map(function(t){var n=t[0],r=t[2];return i.a.createElement("li",{key:r.toString()},i.a.createElement(F.a,{to:"/view/"+r},i.a.createElement(A.Icon,{name:r==e.props.idx?"file":"file-text-o",fixedWidth:!0}),"  ",n.replace(/[^/]*\//,"").charCodeAt(0)<14336||n.replace(/[^/]*\//,"").charCodeAt(0)>18496?x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")):i.a.createElement(O,{title:"MSI: "+S(n.replace(/[^/]*\//,"")),position:"bottom"},x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")))))})),Y,X,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.exportFile},K,"  ",J)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.renameFile},q,"  ",G)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.props.addFile},Q,"  ",$)),ee,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.erase},te,"  ",ne))))},t}(r.Component),ie=Object(h.a)(re),ae=n(44),oe=n.n(ae),se=n(45),le=(n(39),n(46));var ce=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.handleChange=r.handleChange.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleChange=function(e){var t=e.target.files;t&&t[0]&&this.props.handleFile(t[0])},t.prototype.render=function(){return i.a.createElement("form",{className:"form-inline"},i.a.createElement("div",{className:"form-group"},this.props.title&&this.props.title+": ",i.a.createElement("input",{type:"file",className:"form-control",id:"file",onChange:this.handleChange})))},t}(r.Component),he=["application/zip","application/octet-stream"].join(",")+["mht","mhtml","zip","xlsx","xlsb","xlsm","ods","cfb","xls","qpw","wb3","ppt","doc"].map(function(e){return"."+e}).join(","),de=/<(\/?)([^\s?>!/:]*:|)([^\s?>:/]+)[^>]*>/gm;var fe=i.a.createElement("b",null,"File Name:"),ue=i.a.createElement("div",{className:"minor"}," "),pe=i.a.createElement(A.Icon,{name:"download",fixedWidth:!0}),me=i.a.createElement(A.Icon,{name:"chain-broken",fixedWidth:!0}),be=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),ge=i.a.createElement("br",null),_e=i.a.createElement("div",{className:"minor"},"You can also drag and drop a file."),ye=i.a.createElement("br",null),we=i.a.createElement("summary",null,i.a.createElement("b",null,"Entry Metadata")," (click to show)"),ve=i.a.createElement("b",null,"Full Path:"),Ee=i.a.createElement("br",null),xe=i.a.createElement("b",null,"Size:"),ke=i.a.createElement("br",null),Ce=i.a.createElement("b",null,"CRC32:"),ze=i.a.createElement("br",null),Se=i.a.createElement("br",null),Be=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),Fe=i.a.createElement("pre",null,"(file is empty)"),Ae=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={loading:!0,FN:"",_size:0,_crc32:"",show_text:!1,indexData:[]},["export","delete","rename","handle","stload","common"].forEach(function(e){r[e]=r[e].bind(r)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.common(this.props,!0)},t.prototype.componentWillReceiveProps=function(e){return this.common(e,!1),!0},t.prototype.export=function(){B.exportBStrById(this.props.idx)},t.prototype.delete=function(){this.props.deleteEntry(this.props.idx)},t.prototype.rename=function(){this.props.renameEntry(this.props.idx)},t.prototype.handle=function(e){this.props.handleFile(this.props.idx,e)},t.prototype.stload=function(){},t.prototype.common=function(e){var t=this;this.state.loading||this.setState({loading:!0}),setTimeout(function(){var n=B.getFileNameById(e.idx),r=B.getFileEntryById(e.idx);if(!n||!r||B.isCFB()&&2!=r.type)return t.setState({loading:!1});var i=x(r.name),a=B.getContentByEntry(r),o=B.getSizeByEntry(r),s=Object(y.a)("%0.8X",Object(le.buf)(a)),l="text"==e.mode,c=l?B.getTextByEntry(r):"",h=c&&("]/)),d=e.mode||"text";if("full"==d&&(d="text"),!e.mode||"full"==e.mode){var f=B.getContentSliceByEntry(r,0,16);255==f[0]&&216==f[1]&&255==f[2]&&(d="imag")}var u="imag"==t.props.mode,p=u?"data:image/jpeg;base64,"+btoa(B.getTextByEntry(r)):"",m=t.props&&t.props.mode?B.getSizeByEntry(r):Math.min(B.getSizeByEntry(r),384),b=Array.from({length:m+15>>4}).map(function(e,t){return 16*t}),g=c||p?[]:b.map(function(e){return function(e){var t=e[0],n=e[1];return n&&n.length?E[n.length]?Object(y.b)("%04x: "+E[n.length],[t].concat(n,n.map(function(e){return String.fromCharCode(e).replace(/[^\x20-\x7E]/g,".")}))):"wtf":""}([e,B.getContentSliceByEntry(r,e,e+16)])});t.setState({loading:!1,FN:i,_size:o,_crc32:s,show_text:l,T:c,doxml:h,show_link:d,show_imag:u,I:p,indices:b,indexData:g}),t.forceUpdate()},0)},t.prototype.render=function(){var e=B.getFileNameById(this.props.idx),t=B.getFileEntryById(this.props.idx);if(!e||!t||B.isCFB()&&2!=t.type)return i.a.createElement(c.a,{to:"/"});var n=x(e),r=this.state,a=r.FN,o=r._size,s=r._crc32,l=r.show_text,h=r.T,d=r.doxml,f=r.show_link,u=r.show_imag,p=r.I,m=r.indices,b=r.indexData,g=o>384&&!this.props.mode,_={text:"Text",imag:"Image"}[f];return i.a.createElement("div",{className:"conpainer"},i.a.createElement("div",null,fe," ",a," ",a.charCodeAt(0)>=14336&&a.charCodeAt(0)<=18496&&"MSI Name: "+S(a)),i.a.createElement("div",{className:"minor"},a!=t.name?'File name has non-display characters, which are rendered as "\\u" followed by character code':" "),ue,i.a.createElement("div",{className:"flexrow"},i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.export},pe," Export Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.delete},me," Delete Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.rename},be," Rename Entry"))),ge,i.a.createElement(ce,{handleFile:this.handle,title:"Replace file contents"}),_e,ye,i.a.createElement("details",null,we,ve," ",n,Ee,xe," ",o," bytes",ke,Ce," ",s,ze),Se,i.a.createElement("b",null,g?"Showing First 384 Bytes":"Showing File Contents",g&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/full"}," (Full Contents) "),f&&f!=this.props.mode&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/"+f,onClick:this.stload}," (View as ",_,") ")),this.state.loading?Be:l?i.a.createElement(oe.a,{style:se.arduinoLight,customStyle:{width:"calc(100vw - "+(this.props.viz?300:50)+"px)"}},d?function(e){var t=0,n="";return e.replace(de,function(e,r,i,a){var o=t;"/"==r?(--t,--o):"/"==e.charAt(e.length-2)||++t;var s=a==n&&"/"==r?"":"\n"+" ".repeat(o);return n=a,s+e}).replace(/\n+\n=14336&&t.replace(/.*\//g,"").charCodeAt(0)<=18496?i.a.createElement(F.a,{to:"/view/"+r},x(t)+" ("+S(t.replace(/.*\//g,""))+")"):i.a.createElement(F.a,{to:"/view/"+r},x(t)),"\n")})))},t}(r.Component),Ge=Object(h.a)(qe);n(408);var Qe=i.a.createElement("br",null),$e=i.a.createElement("div",{className:"Title"},"Welcome to CFB Editor"),et=i.a.createElement("div",{className:"Subtitle"},"View and Edit archives with ease"),tt=i.a.createElement("br",null),nt=i.a.createElement("br",null),rt=i.a.createElement("div",{className:"minor"},"Your data never leaves your device"),it=i.a.createElement("div",null,"You can also drag and drop a file into the window"),at=i.a.createElement("br",null),ot=i.a.createElement("br",null),st=i.a.createElement("br",null),lt=i.a.createElement("br",null),ct=i.a.createElement("br",null),ht=i.a.createElement("details",null,i.a.createElement("summary",null,i.a.createElement("b",null,"Download Sample Files")," (click to show)"),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xls"},"CFB: pivot_table_test.xls"),i.a.createElement("br",null),i.a.createElement("br",null),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xlsb"},"ZIP: pivot_table_test.xlsb"),i.a.createElement("br",null)),dt=i.a.createElement("br",null),ft=i.a.createElement("br",null),ut=i.a.createElement("br",null),pt=i.a.createElement("div",{className:"minor"},"(some items may not fit, consider using a wider screen)"),mt=i.a.createElement("br",null),bt=i.a.createElement("br",null),gt=i.a.createElement("br",null),_t=i.a.createElement("div",{className:"minor"},i.a.createElement("a",{className:"minor",href:"http://sheetjs.com"},"Copyright (C) 2017-present SheetJS LLC")),yt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.newCFB=function(){B.newFile("SheetJS.cfb")},t.prototype.newZIP=function(){B.newFile("SheetJS.zip")},t.prototype.render=function(){return B.isEmpty()?i.a.createElement("div",{className:"conpainer"},Qe,$e,et,tt,nt,i.a.createElement(ce,{handleFile:this.props.handleFile,title:"Read a file on your device",fmts:he}),rt,it,at,i.a.createElement("a",{onClick:this.newZIP},"Click here to make a new ZIP archive"),ot,st,i.a.createElement("a",{onClick:this.newCFB},"Click here to make a new CFB archive"),lt,ct,ht,dt,i.a.createElement(F.a,{to:"/help"},"Show Help"),ft,ut,window.matchMedia&&!window.matchMedia("(min-width: 800px)").matches?pt:mt,bt,gt,_t):i.a.createElement(c.a,{to:"/"})},t}(r.Component),wt=Object(h.a)(yt);var vt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.onDrop=r.onDrop.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.suppress=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.onDrop=function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;t&&0!=t.length&&this.props.handleFile(1==t.length?t[0]:t)},t.prototype.render=function(){return i.a.createElement("div",{className:"DDD",onDrop:this.onDrop,onDragEnter:this.suppress,onDragOver:this.suppress},this.props.children)},t}(r.Component);var Et=function(e){return f()("Enter the new file name",{content:{element:"input",attributes:{placeholder:e}}})},xt=function(e){if(B.isDirty()){var t="Recent changes have not been saved";return f()(t,{timer:1e3}),e.returnValue=t}},kt=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),Ct=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),zt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.hfoe=r.handleFileOrEntry.bind(r),r.flipViz=r.flip_viz.bind(r),r.force=r.force.bind(r),r.state={viz:!0},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){window.removeEventListener("beforeunload",xt),window.addEventListener("beforeunload",xt,!0)},t.prototype.flip_viz=function(){this.setState({viz:!this.state.viz}),this.forceUpdate()},t.prototype.force=function(){this.toolbar&&this.toolbar.force()},t.prototype.erase=function(){if(!B.isDirty())return B.reset();f()("Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(e){e&&B.reset()})},t.prototype.renameFile=function(){Et(B.fname).then(function(e){e&&B.setName(e)})},t.prototype.handleFile=function(e){return e instanceof File?this.handleOneFile(e):f()("Please drop only one file")},t.prototype.handleOneFile=function(e){var t=function(){var t=new FileReader;t.onload=function(t){var n=t.target.result;try{B.setBStr(n,function(e){f()("Error:"+(e.message||e))}),B.setName(e.name)}catch(t){f()("Error:"+(t.message||t))}},t.readAsBinaryString(e)},n=[];if(e.size>5<<20&&n.push("File size "+e.size+" exceeds limit."),n.length>0){n.push("Operations may be slow. Shall we proceed?");var r=document.createElement("div");r.innerHTML=n.join("
\n"),f()({content:r,buttons:["No","Yes"]}).then(function(e){e&&t()})}else t()},t.prototype.handleEntry=function(e,t){!function(e,t,n){var r=new FileReader;if(r.onload=function(e){var n=e.target.result;t(null,n)},n&&n.size>0&&e.size>n.size)return t(new Error("File size "+e.size+" exceeds limit"),null);r.readAsArrayBuffer(e)}(t,function(t,n){if(t)return f()("Error: "+t.message);B.setContentAB(e,n)},{size:5<<20})},t.prototype.handleFileOrEntry=function(e){var t=this;if(B.isEmpty())return this.handleFile(e);if(!(e instanceof File))return f()("Please drop only one file");var n=this.props.match&&null!=this.props.match.params.idx?this.props.match.params.idx:-1,r={buttons:{open:"Open",add:"Add File"}},i=B.getFixedName(n);n>-1&&(r.buttons.update="Update contents"),f()(B.fname+" "+(i&&"("+i+")")+" is open. What do you want to do with "+e.name+"?",r).then(function(r){switch(r){case"open":if(!B.isDirty())return B.reset(),t.handleFile(e);f()("There are unsaved changes. Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(n){n&&(B.reset(),t.handleFile(e))});break;case"add":var i="";B.find(e.name)?(i=B.addNewFile(),f()("File "+e.name+" exists! New file: "+i)):i=B.addNewFile(e.name);var a=B.getIdByName(i);t.handleEntry(a,e);break;case"update":t.handleEntry(n,e)}})},t.prototype.newEntry=function(){var e=B.addNewFile();f()("New File: "+e)},t.prototype.exportFile=function(){B.exportBStr(B.fname||"SheetJS.cfb")},t.prototype.deleteEntry=function(e){f()("Are you sure you want to delete "+B.getFixedName(e),{buttons:["No","Yes"]}).then(function(t){switch(t){case!0:B.delFileById(e);break;default:return}})},t.prototype.renameEntry=function(e){Et(B.getFixedPath(e)).then(function(t){t&&B.renFileById(e,t)})},t.prototype.render=function(){var e=this;return i.a.createElement("div",{className:"Outer"},i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(Z,{idx:this.props.match.params.idx,erase:this.erase,exportFile:this.exportFile,handleFile:this.hfoe,viz:this.state.viz,flipViz:this.flipViz,ref:function(t){e.toolbar=t}})),i.a.createElement("div",{className:"Bottom"},i.a.createElement(u.a,{split:"vertical",minSize:50,maxSize:250,defaultSize:window.matchMedia&&!window.matchMedia("(min-width: 650px)").matches?50:250,style:{height:"calc(100% - 55px)"},pane1Style:{display:this.state.viz?"block":"none"}},this.state.viz&&i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(ie,{idx:this.props.match.params.idx,fname:B.fname,exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement("div",{className:"RightPane"},B.isEmpty()?i.a.createElement(l.a,null,i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(wt,{handleFile:this.handleFile})),Ct):i.a.createElement(l.a,null,i.a.createElement(o.a,{path:"/view"},i.a.createElement(Ie,{idx:this.props.match.params.idx||0,mode:this.props.match.params.mode,deleteEntry:this.deleteEntry,renameEntry:this.renameEntry,handleFile:this.handleEntry,viz:this.state.viz,force:this.force})),i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(Ge,{exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),kt))))))},t}(r.Component),St=Object(h.a)(zt),Bt=n(47),Ft=n.n(Bt),At=n(48),It=n.n(At);n(430);function Ot(e){return e.href.match(/^\//)?i.a.createElement(F.a,{to:e.href},e.children):i.a.createElement("a",{href:e.href},e.children)}var Tt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(It.a,{className:"helpview",source:Ft.a,renderers:{Link:Ot}})},t}(r.Component),Nt=Object(h.a)(Tt);var Rt=i.a.createElement(o.a,{path:"/view/:idx/:mode",component:St}),Dt=i.a.createElement(o.a,{path:"/view/:idx",component:St}),jt=i.a.createElement(o.a,{exact:!0,path:"/",component:St}),Lt=i.a.createElement(o.a,{exact:!0,path:"/help",component:Nt}),Pt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(s.a,{basename:"/cfb-editor"},i.a.createElement(l.a,null,Rt,Dt,jt,Lt,i.a.createElement(o.a,{render:function(){return i.a.createElement(c.a,{to:"/"})}})))},t}(r.Component);Object(a.render)(i.a.createElement(Pt,null),document.querySelector("#app"))},47:function(e,t){e.exports='## CFB Editor\n\n[(click here to go back to the main screen)](/)\n\nThe CFB Editor can edit CFB and ZIP archives in your web browser! No data is\nsent to any remote server. All operations are performed locally, so your data\nis safe. It is powered by web browser magic.\n\n### Loading data\n\nThe editor can read an existing file or generate a new file:\n\n**Reading an Existing File**\n\nFrom the main screen, click "Choose File" and select a file. Alternatively,\nyou can click and drag a file from your device into the box.\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Creating a new file**\n\nClick on the relevant links from the main screen.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Closing a file to start from scratch**\n\nIf a file is open, click on the Close archive\nlinks to close the file and go back to the initial view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Saving data\n\nThe editor can download updated archives or individual files to your device:\n\n**Download an updated archive**\n\nClick on the Download Archive links\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Download a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Export Entry\nlink to download the viewed file.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Modifying files in the archive\n\nThe editor can add, delete, and rename files:\n\n**Rename the archive**\n\nClick on the Rename archive link in the\nsidebar or the archive view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Rename a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link in\nthe file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Delete a file from the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link\nin the file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Updating data for a file**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the "Choose file" button to upload a new file that will\nreplace the existing data.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Add a file to the archive**\n\nClick on the Add file link in the sidebar or\nthe archive view. By default, the file will have a generated name and dummy\ncontent. Follow the instructions to rename the file and update the content.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n[(C) 2017-present SheetJS LLC](http://sheetjs.com)\n'},50:function(e,t,n){n(51),e.exports=n(432)},56:function(e,t,n){},66:function(e,t,n){},71:function(e,t){}},[[50,2,1]]]); -//# sourceMappingURL=app.7aae236f.js.map \ No newline at end of file +!function(n){"object"==s(t)&&void 0!==e&&"undefined"==typeof DO_NOT_EXPORT_JSZIP?e.exports=n():(JSZip=n(),i=[],void 0===(a="function"==typeof(r=n)?r.apply(t,i):r)||(e.exports=a))}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){if(!l&&("function"==typeof o&&o))return o(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s>2,s=(3&n)<<4|(i=e.charCodeAt(d++))>>4,l=(15&i)<<2|(a=e.charCodeAt(d++))>>6,c=63&a,isNaN(i)?l=c=64:isNaN(a)&&(c=64),h=h+r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c);return h},n.decode=function(e,t){var n,i,a,o,s,l,c="",h=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");h>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(h++)))>>2,a=(3&s)<<6|(l=r.indexOf(e.charAt(h++))),c+=String.fromCharCode(n),64!=s&&(c+=String.fromCharCode(i)),64!=l&&(c+=String.fromCharCode(a));return c}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var a=0;t^=-1;for(var o=0,s=e.length;o>>8^i[255&(t^a)];return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";var r=e("./utils");function i(e){this.data=null,this.length=0,this.index=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=i},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e){return i.deflateRaw(e)},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";var r=e("./base64");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=e("./object"),i.prototype.load=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.utils=e("./deprecatedPublicUtils"),i.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},i.compressions=e("./compressions"),t.exports=i},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,a,o,s;for((t=t||{}).base64&&(e=r.decode(e)),n=(a=new i(e,t)).files,o=0;o>>=8;return r},w=function(){var e,t,n={};for(e=0;e0?e.substring(0,t):""},x=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||v.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},k=function(e,t){var n,r=new h;return e._data instanceof h?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=c.STORE,r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n)))):((n=b(e))&&0!==n.length&&!e.dir||(t=c.STORE,n=""),r.uncompressedSize=n.length,r.crc32=a(n),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},C=function(e,t,n,r){n.compressedContent;var s,l,c,h,d=i.transformTo("string",f.utf8encode(t.name)),u=t.comment||"",p=i.transformTo("string",f.utf8encode(u)),m=d.length!==t.name.length,b=p.length!==u.length,g=t.options,_="",w="",v="";c=t._initialMetadata.dir!==t.dir?t.dir:g.dir,s=(h=t._initialMetadata.date!==t.date?t.date:g.date).getHours(),s<<=6,s|=h.getMinutes(),s<<=5,s|=h.getSeconds()/2,l=h.getFullYear()-1980,l<<=4,l|=h.getMonth()+1,l<<=5,l|=h.getDate(),m&&(w=y(1,1)+y(a(d),4)+d,_+="up"+y(w.length,2)+w),b&&(v=y(1,1)+y(this.crc32(p),4)+p,_+="uc"+y(v.length,2)+v);var E="";return E+="\n\0",E+=m||b?"\0\b":"\0\0",E+=n.compressionMethod,E+=y(s,2),E+=y(l,2),E+=y(n.crc32,4),E+=y(n.compressedSize,4),E+=y(n.uncompressedSize,4),E+=y(d.length,2),E+=y(_.length,2),{fileRecord:o.LOCAL_FILE_HEADER+E+d+_,dirRecord:o.CENTRAL_FILE_HEADER+"\0"+E+y(p.length,2)+"\0\0\0\0"+(!0===c?"\0\0\0":"\0\0\0\0")+y(r,4)+d+_+p,compressedObject:n}},z={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new _(r.name,r._data,w(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&a.push(i));return a},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,v.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=x.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodeBuffer"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1;var l=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t},c=function(e){var t,n,i,a,s=e.length,l=new Array(2*s);for(n=0,t=0;t4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,a=(e=r.transformTo(i.uint8array?"uint8array":"array",e)).length;n1;)try{"array"===o||"nodebuffer"===o?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function c(e,t){for(var n=0;n1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0?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 s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);t.header&&r.deflateSetHeader(this.strm,t.header)};function c(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}l.prototype.push=function(e,t){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,s.input="string"==typeof e?a.string2buf(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===s.avail_out||0===s.avail_in&&4===o)&&("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4!==o||(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=l,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";var r=e("./zlib/inflate.js"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),h=function(e){this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;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&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)};function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}h.prototype.push=function(e,t){var n,s,l,c,h,d=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,d.input="string"==typeof e?a.binstring2buf(e):e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,o.Z_NO_FLUSH))!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0===d.avail_out||n===o.Z_STREAM_END||0===d.avail_in&&s===o.Z_FINISH)&&("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),c=d.next_out-l,h=a.buf2string(d.output,l),d.next_out=c,d.avail_out=f-c,c&&i.arraySet(d.output,d.output,l,c,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))}while(d.avail_in>0&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s!==o.Z_FINISH||(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==(void 0===n?"undefined":s(n)))throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},{}],30:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],32:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./trees"),a=e("./adler32"),o=e("./crc32"),s=e("./messages"),l=0,c=1,h=3,d=4,f=5,u=0,p=1,m=-2,b=-3,g=-5,_=-1,y=1,w=2,v=3,E=4,x=0,k=2,C=8,z=9,S=15,B=8,F=286,A=30,I=19,O=2*F+1,T=15,N=3,R=258,D=R+N+1,j=32,L=42,P=69,U=73,Z=91,M=103,W=113,H=666,V=1,Y=2,X=3,K=4,J=3;function q(e,t){return e.msg=s[t],t}function G(e){return(e<<1)-(e>4?9:0)}function $(e){for(var t=e.length;--t>=0;)e[t]=0}function Q(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function ee(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Q(e.strm)}function te(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function re(e,t,n,i){var s=e.avail_in;return s>i&&(s=i),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=a(e.adler,t,s,n):2===e.state.wrap&&(e.adler=o(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function ie(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-D?e.strstart-(e.w_size-D):0,c=e.window,h=e.w_mask,d=e.prev,f=e.strstart+R,u=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===u&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&ao){if(e.match_start=t,o=r,r>=s)break;u=c[a+o-1],p=c[a+o]}}}while((t=d[t&h])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ae(e){var t,n,i,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-D)){r.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=s?i-s:0}while(--n);t=n=s;do{i=e.prev[--t],e.prev[t]=i>=s?i-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=re(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=N)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<=N&&(e.ins_h=(e.ins_h<=N)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=N&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-N,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<15&&(s=2,i-=16),a<1||a>z||n!==C||i<8||i>15||t<0||t>9||o<0||o>E)return q(e,m);8===i&&(i=9);var l=new function(){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=C,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 r.Buf16(2*O),this.dyn_dtree=new r.Buf16(2*(2*A+1)),this.bl_tree=new r.Buf16(2*(2*I+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(T+1),this.heap=new r.Buf16(2*F+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*F+1),$(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};return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,de(e)}le=[new ce(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===l)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ee(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-D&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):(e.strstart>e.block_start&&(ee(e,!1),e.strm.avail_out),V)}),new ce(4,4,8,4,oe),new ce(4,5,16,8,oe),new ce(4,6,32,32,oe),new ce(4,4,16,16,se),new ce(8,16,32,32,se),new ce(8,16,128,128,se),new ce(8,32,128,256,se),new ce(32,128,258,1024,se),new ce(32,258,258,4096,se)],n.deflateInit=function(e,t){return fe(e,t,C,S,B,x)},n.deflateInit2=fe,n.deflateReset=de,n.deflateResetKeep=he,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,u):m},n.deflate=function(e,t){var n,r,a,s;if(!e||!e.state||t>f||t<0)return e?q(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===H&&t!==d)return q(e,0===e.avail_out?g:m);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===L)if(2===r.wrap)e.adler=0,te(r,31),te(r,139),te(r,8),r.gzhead?(te(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),te(r,255&r.gzhead.time),te(r,r.gzhead.time>>8&255),te(r,r.gzhead.time>>16&255),te(r,r.gzhead.time>>24&255),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(te(r,255&r.gzhead.extra.length),te(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=o(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=P):(te(r,0),te(r,0),te(r,0),te(r,0),te(r,0),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,J),r.status=W);else{var b=C+(r.w_bits-8<<4)<<8;b|=(r.strategy>=w||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(b|=j),b+=31-b%31,r.status=W,ne(r,b),0!==r.strstart&&(ne(r,e.adler>>>16),ne(r,65535&e.adler)),e.adler=1}if(r.status===P)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),Q(e),a=r.pending,r.pending!==r.pending_buf_size));)te(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=U)}else r.status=U;if(r.status===U)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),Q(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindexa&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.gzindex=0,r.status=Z)}else r.status=Z;if(r.status===Z)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),Q(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindexa&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.status=M)}else r.status=M;if(r.status===M&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Q(e),r.pending+2<=r.pending_buf_size&&(te(r,255&e.adler),te(r,e.adler>>8&255),e.adler=0,r.status=W)):r.status=W),0!==r.pending){if(Q(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&G(t)<=G(n)&&t!==d)return q(e,g);if(r.status===H&&0!==e.avail_in)return q(e,g);if(0!==e.avail_in||0!==r.lookahead||t!==l&&r.status!==H){var _=r.strategy===w?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===l)return V;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):r.strategy===v?function(e,t){for(var n,r,a,o,s=e.window;;){if(e.lookahead<=R){if(ae(e),e.lookahead<=R&&t===l)return V;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&e.strstart>0&&(r=s[a=e.strstart-1])===s[++a]&&r===s[++a]&&r===s[++a]){o=e.strstart+R;do{}while(r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(n=i._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):le[r.level].func(r,t);if(_!==X&&_!==K||(r.status=H),_===V||_===X)return 0===e.avail_out&&(r.last_flush=-1),u;if(_===Y&&(t===c?i._tr_align(r):t!==f&&(i._tr_stored_block(r,0,0,!1),t===h&&($(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Q(e),0===e.avail_out))return r.last_flush=-1,u}return t!==d?u:r.wrap<=0?p:(2===r.wrap?(te(r,255&e.adler),te(r,e.adler>>8&255),te(r,e.adler>>16&255),te(r,e.adler>>24&255),te(r,255&e.total_in),te(r,e.total_in>>8&255),te(r,e.total_in>>16&255),te(r,e.total_in>>24&255)):(ne(r,e.adler>>>16),ne(r,65535&e.adler)),Q(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?u:p)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==L&&t!==P&&t!==U&&t!==Z&&t!==M&&t!==W&&t!==H?q(e,m):(e.state=null,t===W?q(e,b):u):m},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,h,d,f,u,p,m,b,g,_,y,w,v,E,x,k,C,z;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),a=e.next_out,z=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,h=n.whave,d=n.wnext,f=n.window,u=n.hold,p=n.bits,m=n.lencode,b=n.distcode,g=(1<>>=w=y>>>24,p-=w,0===(w=y>>>16&255))z[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(u&(1<>>=w,p-=w),p<15&&(u+=C[r++]<>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(u&(1<l){e.msg="invalid distance too far back",n.mode=30;break e}if(u>>>=w,p-=w,E>(w=a-o)){if((w=E-w)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,k=f,0===d){if(x+=c-w,w2;)z[a++]=k[x++],z[a++]=k[x++],z[a++]=k[x++],v-=3;v&&(z[a++]=k[x++],v>1&&(z[a++]=k[x++]))}else{x=a-E;do{z[a++]=z[x++],z[a++]=z[x++],z[a++]=z[x++],v-=3}while(v>2);v&&(z[a++]=z[x++],v>1&&(z[a++]=z[x++]))}break}}break}}while(r>3,u&=(1<<(p-=v<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=E,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):g}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):g}function oe(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?g:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):g}function se(e,t){var n,i;return e?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},e.state=i,i.window=null,(n=oe(e,t))!==p&&(e.state=null),n):g}var le,ce,he=!0;function de(e){if(he){var t;for(le=new r.Buf32(512),ce=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,le,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(h,e.lens,0,32,ce,0,e.work,{bits:5}),he=!1}e.lencode=le,e.lenbits=9,e.distcode=ce,e.distbits=5}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=function(e){return se(e,ne)},n.inflateInit2=se,n.inflate=function(e,t){var n,ee,te,ne,ie,ae,oe,se,le,ce,he,fe,ue,pe,me,be,ge,_e,ye,we,ve,Ee,xe,ke,Ce=0,ze=new r.Buf8(4),Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return g;(n=e.state).mode===T&&(n.mode=N),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,ce=ae,he=oe,Ee=p;e:for(;;)switch(n.mode){case E:if(0===n.wrap){n.mode=N;break}for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,n.check=a(n.check,ze,2,0),se=0,le=0,n.mode=x;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=G;break}if((15&se)!==v){e.msg="unknown compression method",n.mode=G;break}if(le-=4,ve=8+(15&(se>>>=4)),0===n.wbits)n.wbits=ve;else if(ve>n.wbits){e.msg="invalid window size",n.mode=G;break}n.dmax=1<>8&1),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=k;case k:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,ze[2]=se>>>16&255,ze[3]=se>>>24&255,n.check=a(n.check,ze,4,0)),se=0,le=0,n.mode=C;case C:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>8),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=z;case z:if(1024&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=S;case S:if(1024&n.flags&&((fe=n.length)>ae&&(fe=ae),fe&&(n.head&&(ve=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,ve)),512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=B;case B:if(2048&n.flags){if(0===ae)break e;fe=0;do{ve=ee[ne+fe++],n.head&&ve&&n.length<65536&&(n.head.name+=String.fromCharCode(ve))}while(ve&&fe>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=T;break;case I:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=7&le,le-=7&le,n.mode=K;break}for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=1)){case 0:n.mode=R;break;case 1:if(de(n),n.mode=Z,t===u){se>>>=2,le-=2;break e}break;case 2:n.mode=L;break;case 3:e.msg="invalid block type",n.mode=G}se>>>=2,le-=2;break;case R:for(se>>>=7&le,le-=7≤le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=G;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===u)break e;case D:n.mode=j;case j:if(fe=n.length){if(fe>ae&&(fe=ae),fe>oe&&(fe=oe),0===fe)break e;r.arraySet(te,ee,ne,fe,ie),ae-=fe,ne+=fe,oe-=fe,ie+=fe,n.length-=fe;break}n.mode=T;break;case L:for(;le<14;){if(0===ae)break e;ae--,se+=ee[ne++]<>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=G;break}n.have=0,n.mode=P;case P:for(;n.have>>=3,le-=3}for(;n.have<19;)n.lens[Se[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xe={bits:n.lenbits},Ee=s(l,n.lens,0,19,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid code lengths set",n.mode=G;break}n.have=0,n.mode=U;case U:for(;n.have>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=me,le-=me,n.lens[n.have++]=ge;else{if(16===ge){for(ke=me+2;le>>=me,le-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=G;break}ve=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ge){for(ke=me+3;le>>=me)),se>>>=3,le-=3}else{for(ke=me+7;le>>=me)),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=G;break}for(;fe--;)n.lens[n.have++]=ve}}if(n.mode===G)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=G;break}if(n.lenbits=9,xe={bits:n.lenbits},Ee=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid literal/lengths set",n.mode=G;break}if(n.distbits=6,n.distcode=n.distdyn,xe={bits:n.distbits},Ee=s(h,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xe),n.distbits=xe.bits,Ee){e.msg="invalid distances set",n.mode=G;break}if(n.mode=Z,t===u)break e;case Z:n.mode=M;case M:if(ae>=6&&oe>=258){e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,o(e,he),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,n.mode===T&&(n.back=-1);break}for(n.back=0;be=(Ce=n.lencode[se&(1<>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,n.length=ge,0===be){n.mode=X;break}if(32&be){n.back=-1,n.mode=T;break}if(64&be){e.msg="invalid literal/length code",n.mode=G;break}n.extra=15&be,n.mode=W;case W:if(n.extra){for(ke=n.extra;le>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;be=(Ce=n.distcode[se&(1<>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,64&be){e.msg="invalid distance code",n.mode=G;break}n.offset=ge,n.extra=15&be,n.mode=V;case V:if(n.extra){for(ke=n.extra;le>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=G;break}n.mode=Y;case Y:if(0===oe)break e;if(fe=he-oe,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=G;break}fe>n.wnext?(fe-=n.wnext,ue=n.wsize-fe):ue=n.wnext-fe,fe>n.length&&(fe=n.length),pe=n.window}else pe=te,ue=ie-n.offset,fe=n.length;fe>oe&&(fe=oe),oe-=fe,n.length-=fe;do{te[ie++]=pe[ue++]}while(--fe);0===n.length&&(n.mode=M);break;case X:if(0===oe)break e;te[ie++]=n.length,oe--,n.mode=M;break;case K:if(n.wrap){for(;le<32;){if(0===ae)break e;ae--,se|=ee[ne++]<=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave=1&&0===R[z];z--);if(S>z&&(S=z),0===z)return c[h++]=20971520,c[h++]=20971520,f.bits=1,0;for(C=1;C0&&(0===e||1!==z))return-1;for(D[1]=0,x=1;x<15;x++)D[x+1]=D[x]+R[x];for(k=0;k852||2===e&&I>592)return 1;for(;;){0,y=x-F,d[k]<_?(w=0,v=d[k]):d[k]>_?(w=j[L+d[k]],v=T[N+d[k]]):(w=96,v=0),u=1<>F)+(p-=u)]=y<<24|w<<16|v|0}while(0!==p);for(u=1<>=1;if(0!==u?(O&=u-1,O+=u):O=0,k++,0==--R[x]){if(x===z)break;x=t[n+d[k]]}if(x>S&&(O&b)!==m){for(0===F&&(F=S),g+=C,A=1<<(B=x-F);B+F852||2===e&&I>592)return 1;c[m=O&b]=S<<24|B<<16|g-h|0}}return 0!==O&&(c[g+O]=x-F<<24|64<<16|0),f.bits=S,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,h=1,d=2,f=29,u=256,p=u+1+f,m=30,b=19,g=2*p+1,_=15,y=16,w=7,v=256,E=16,x=17,k=18,C=[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],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(p+2));l(F);var A=new Array(2*m);l(A);var I=new Array(512);l(I);var O=new Array(256);l(O);var T=new Array(f);l(T);var N=new Array(m);l(N);var R,D,j,L=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},P=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t};function U(e){return e<256?I[e]:I[256+(e>>>7)]}function Z(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,n){var r,i,a=new Array(_+1),o=0;for(r=1;r<=_;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(a[s]++,s))}}function Y(e){var t;for(t=0;t8?Z(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 K(e,t,n,r){var i=2*t,a=2*n;return e[i]>1;n>=1;n--)J(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],J(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,J(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=_;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(a=p,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=u&&(o=f[r-u]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(h[2*r+1]+o)));if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),V(a,c,e.bl_count)}function $(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s>=7;r0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t=3&&0===e.bl_tree[2*B[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),l=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==t?te(e,t,n,r):e.strategy===i||c===l?(M(e,(h<<1)+(r?1:0),3),q(e,F,A)):(M(e,(d<<1)+(r?1:0),3),function(e,t,n,r){var i;for(M(e,t-257,5),M(e,n-1,5),M(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+u+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){M(e,h<<1,3),W(e,v,F),function(e){16===e.bi_valid?(Z(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)}},{"../utils/common":27}],39:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[9])(9)})}).call(this,n(31).Buffer)},39:function(e,t,n){},408:function(e,t,n){},430:function(e,t,n){},432:function(e,t,n){"use strict";n.r(t);n(56);var r=n(0),i=n.n(r),a=n(26),o=n(437),s=n(436),l=n(438),c=n(435),h=n(3),d=n(5),f=n.n(d),u=n(49),p=(n(66),n(7)),m=n(27),b=n(28),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e[r];return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},y=n(8),w="%02hhx",v=w+w+" ",E=[].concat(Array.from({length:16}).map(function(e,t){return v.repeat(t>>1)+(t%2?w:" ")+" "+" ".repeat(7-(t>>1))+"|"+"%c".repeat(t)+" ".repeat(16-t)+"|\n"}),[v.repeat(8)+"|"+"%c".repeat(16)+"|\n"]),x=function(e){return e.replace(/[\u0000-\u001f]/g,function(e){return Object(y.a)("\\u%04X",e.charCodeAt(0))})},k=function(e){for(var t=[],n=new Uint8Array(e),r=0;r=14336&&t<18496&&(t>=18432?t=z(t-18432):(t-=14336,r.push(String.fromCharCode(z(63&t))),t=z(t>>6&63))),r.push(String.fromCharCode(t));return r.join("")},B=Object(h.b)({fname:"",file:null,dirty:!1,loading:!1,isDirty:function(){return this.file&&this.dirty},setLoading:function(e){return this.loading=e},getLoading:function(){return this.loading},isEmpty:function(){return!this.file},isCFB:function(){return this.file&&this.file.FullPaths},isZIP:function(){return this.file&&!this.isCFB()},getType:function(){return this.isCFB()?"CFB":this.isZIP()?"ZIP":"???"},getFileList:function(){var e=this;return this.keys().map(function(t,n){return[t,e.getFileEntryById(n),n]}).filter(function(t){return e.isCFB()?2==t[1].type:!t[1].dir})},getNextName:function(e){return e?this.find("SheetJS"+e)?this.getNextName(e+1):"SheetJS"+e:this.getNextName(1)},getRootName:function(){return this.isCFB()?this.getFileNameById(0):""},getCLSID:function(){return this.isCFB()?this.getFileEntryById(0).clsid:""},setName:function(e){this.fname=e},setBStr:function(e,t){var n=this;this.loading=!0,setTimeout(function(){try{switch(e.slice(0,4)){case"MIME":case"ÐÏà":n.type="CFB",n.file=p.read(e,{type:"binary"});break;case"PK":case"PK":n.type="ZIP",n.file=new m(e,{base64:!1});break;default:throw new Error("Invalid file (magic "+e.slice(0,4).split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})+")")}n.loading=!1}catch(e){n.loading=!1,t&&t(e)}},100)},addNewFile:function(e){var t=e||this.getNextName(1);this.isCFB()?p.utils.cfb_add(this.file,t,[55,50,54,50]):this.isZIP()&&this.file.file(t,"7262");var n=this.find(t);return this.dirty=!0,this.isCFB()?this.getFileNameById(this.entries().indexOf(n)):t},getFileNameById:function(e){return this.keys()[e]||""},getFileEntryById:function(e){return this.entries()[e]||null},getFixedName:function(e){return this.isEmpty()?"":x(this.getFileNameById(e))},getFixedPath:function(e){return this.isEmpty()?"":this.isCFB()?x(this.getFileNameById(e)).replace(/^[^/]*/,""):x(this.getFileNameById(e))},getFileTime:function(e){return this.isEmpty()||!this.getFileEntryById(e)?new Date(NaN):this.getFileTimeEntry(e)||this.getFileTimeEntry(0)||new Date(1980,0,1)},setContentAB:function(e,t){var n=k(t),r=this.getFileNameById(e);this.isCFB()?(p.utils.prep_blob(n),p.utils.cfb_add(this.file,r,k(n))):this.isZIP()&&this.file.file(r,n.map(function(e){return String.fromCharCode(e)}).join(""),{binary:"true"}),this.dirty=!0},renFileById:function(e,t){var n=this.getFileNameById(e),r=function(e){return e.replace(/\\u(\d{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}(t).replace(/^\//,"");this.isCFB()?(p.utils.cfb_mov(this.file,n,this.getFileNameById(0)+r),p.utils.cfb_gc(this.file)):this.isZIP()&&(this.file.file(r,C(this.getContentById(e)),{binary:!0}),this.file.remove(n)),this.dirty=!0},delFileById:function(e){var t=this.getFileNameById(e);this.isCFB()&&p.utils.cfb_del(this.file,t),this.isZIP()&&this.file.remove(t),this.dirty=!0},exportBStrById:function(e){var t=this;this.loading=!0,setTimeout(function(){try{var n=t.getFileEntryById(e);_(t.getContentByEntry(n),n.name),t.loading=!1}catch(e){throw t.loading=!1,e}},100)},exportBStr:function(){var e=this;this.loading=!0,setTimeout(function(){try{e.dirty=!1;var t=void 0,n=/\.mht(?:ml)?$/.test(e.fname||"")?"mad":"";return e.isCFB()&&(t=g(p.write(e.file,{type:"binary",fileType:n}),e.fname||"SheetJS.cfb")),e.isZIP()&&(t=g(e.file.generate({type:"string",compression:"DEFLATE"}),e.fname||"SheetJS.zip")),e.loading=!1,t}catch(t){throw e.loading=!1,t}},100)},newFile:function(e){if(this.fname=e||"sheetjs.cfb",this.fname.match(/\.zip$/)){var t=new m;t.file("Sh33tJ5","7262"),this.file=t}else this.file=p.utils.cfb_new();this.dirty=!0},reset:function(){this.file=null,this.fname="",this.dirty=!1},getContentById:function(e){return this.getContentByEntry(this.getFileEntryById(e))},getContentByEntry:function(e){return e?e._data?"string"==typeof e._data?function(e){return e.split("").map(function(e){return e.charCodeAt(0)})}(e._data):k(e._data.getContent()):e.content||[]:[]},getContentSliceByEntry:function(e,t,n){return e?e.content?e.content.slice(t,n):this.getContentByEntry(e).slice(t,n):[]},getSizeByEntry:function(e){return(!this.isCFB()||e.content&&e.content.length)&&e&&(e.size||e._data&&e._data.uncompressedSize||e._data.length)||0},getTextByEntry:function(e){return e&&(e._data||e.content)?e._data?"string"==typeof e._data?e._data:C(e._data.getContent()):C(e.content):""},getFileTimeEntry:function(e){var t=this.getFileEntryById(e);return t?t.ct||t.mt||t.date||0!=e&&this.getFileTime(0)||new Date(1980,0,1):new Date(NaN)},find:function(e){return this.isEmpty()?null:this.isCFB()?p.find(this.file,e):this.file.filter(function(t,n){return e==t||e==n.name})[0]},keys:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FullPaths:Object.keys(this.file.files).filter(function(t){return!e.file.files[t].dir})},entries:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FileIndex:this.keys().map(function(t){return e.file.files[t]})},getIdByName:function(e){var t=this;return this.isEmpty()?-1:this.isZIP()?Object.keys(this.file.files).filter(function(e){return!t.file.files[e].dir}).indexOf(e):this.entries().indexOf(this.find(e))},Sheet:"JS"}),F=n(434),A=n(2),I=n(16),O=(n(110),n(112),n(43).Tooltip);var T=i.a.createElement(O,{title:"File has unsaved changes",position:"bottom"},"**"),N=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.isDirty?T:""},t}(r.Component);var R=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),D=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),j=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),L=i.a.createElement(A.Icon,{name:"question",fixedWidth:!0}),P=i.a.createElement(O,{title:"About Us",position:"bottom"},i.a.createElement("a",{href:"http://sheetjs.com"},i.a.createElement("img",{className:"Logo",src:"logo.png",height:"24px",width:"24px"}))),U=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.flipViz=r.flipViz.bind(r),r.force=r.force.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.flipViz=function(){this.props.flipViz(),this.forceUpdate()},t.prototype.force=function(){this.forceUpdate()},t.prototype.render=function(){return i.a.createElement("div",{className:"ToolBar"},i.a.createElement("div",{className:"AlignLeft"},i.a.createElement("div",{className:"TitleName"},"CFB Editor",i.a.createElement(O,{title:(this.props.viz?"Hide":"Show")+" Sidebar",position:"bottom"},i.a.createElement("a",{onClick:this.flipViz},i.a.createElement(A.Icon,{name:"caret-"+(this.props.viz?"left":"right"),fixedWidth:!0}))),B.getLoading()&&R)),i.a.createElement("div",{className:"AlignCenter"},i.a.createElement("div",{className:"TitleFile"},B.fname?this.props.idx?i.a.createElement(F.a,{to:"/"},"<"+B.fname+">"):"<"+B.fname+">":null,i.a.createElement(N,{isDirty:B.isDirty()}))),i.a.createElement("div",{className:"AlignRight"},i.a.createElement("div",{className:"TitleIcons"},!B.isEmpty()&&i.a.createElement(O,{title:"Download archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.exportFile},D)),!B.isEmpty()&&i.a.createElement(O,{title:"Close archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.erase},j)),i.a.createElement(O,{title:"Show Help",position:"bottom"},i.a.createElement(F.a,{to:"/help"},L)),P)))},t}(r.Component),Z=Object(h.a)(U);n(115);var M=i.a.createElement("div",{className:"tree"}," "),W=i.a.createElement("br",null),H=i.a.createElement(A.Icon,{name:"list",fixedWidth:!0}),V=i.a.createElement("b",null,"Show Manifest"),Y=i.a.createElement("b",null,"Archive Operations"),X=i.a.createElement("br",null),K=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),J=i.a.createElement("b",null,"Download Archive"),q=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),G=i.a.createElement("b",null,"Rename Archive"),$=i.a.createElement(A.Icon,{name:"plus",fixedWidth:!0}),Q=i.a.createElement("b",null,"Add file to Archive"),ee=i.a.createElement("li",null,i.a.createElement("b",null,"(or drag and drop a file here)")),te=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),ne=i.a.createElement("b",null,"Close Archive"),re=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.exportFile=r.exportFile.bind(r),r.renameFile=r.renameFile.bind(r),r.erase=r.erase.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.exportFile=function(){this.props.exportFile()},t.prototype.renameFile=function(){this.props.renameFile()},t.prototype.erase=function(){this.props.erase()},t.prototype.render=function(){var e=this;return B.isEmpty()?M:i.a.createElement("div",{className:"tree"},i.a.createElement("b",null,"Files in "+B.fname),W,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement(F.a,{to:"/"},H,"  ",V)),B.getFileList().map(function(t){var n=t[0],r=t[2];return i.a.createElement("li",{key:r.toString()},i.a.createElement(F.a,{to:"/view/"+r},i.a.createElement(A.Icon,{name:r==e.props.idx?"file":"file-text-o",fixedWidth:!0}),"  ",n.replace(/[^/]*\//,"").charCodeAt(0)<14336||n.replace(/[^/]*\//,"").charCodeAt(0)>18496?x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")):i.a.createElement(O,{title:"MSI: "+S(n.replace(/[^/]*\//,"")),position:"bottom"},x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")))))})),Y,X,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.exportFile},K,"  ",J)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.renameFile},q,"  ",G)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.props.addFile},$,"  ",Q)),ee,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.erase},te,"  ",ne))))},t}(r.Component),ie=Object(h.a)(re),ae=n(44),oe=n.n(ae),se=n(45),le=(n(39),n(46));var ce=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.handleChange=r.handleChange.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleChange=function(e){var t=e.target.files;t&&t[0]&&this.props.handleFile(t[0])},t.prototype.render=function(){return i.a.createElement("form",{className:"form-inline"},i.a.createElement("div",{className:"form-group"},this.props.title&&this.props.title+": ",i.a.createElement("input",{type:"file",className:"form-control",id:"file",onChange:this.handleChange})))},t}(r.Component),he=["application/zip","application/octet-stream"].join(",")+["mht","mhtml","zip","xlsx","xlsb","xlsm","ods","cfb","xls","qpw","wb3","ppt","doc"].map(function(e){return"."+e}).join(","),de=/<(\/?)([^\s?>!/:]*:|)([^\s?>:/]+)[^>]*>/gm;var fe=i.a.createElement("b",null,"File Name:"),ue=i.a.createElement("div",{className:"minor"}," "),pe=i.a.createElement(A.Icon,{name:"download",fixedWidth:!0}),me=i.a.createElement(A.Icon,{name:"chain-broken",fixedWidth:!0}),be=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),ge=i.a.createElement("br",null),_e=i.a.createElement("div",{className:"minor"},"You can also drag and drop a file."),ye=i.a.createElement("br",null),we=i.a.createElement("summary",null,i.a.createElement("b",null,"Entry Metadata")," (click to show)"),ve=i.a.createElement("b",null,"Full Path:"),Ee=i.a.createElement("br",null),xe=i.a.createElement("b",null,"Size:"),ke=i.a.createElement("br",null),Ce=i.a.createElement("b",null,"CRC32:"),ze=i.a.createElement("br",null),Se=i.a.createElement("br",null),Be=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),Fe=i.a.createElement("pre",null,"(file is empty)"),Ae=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={loading:!0,FN:"",_size:0,_crc32:"",show_text:!1,indexData:[]},["export","delete","rename","handle","stload","common"].forEach(function(e){r[e]=r[e].bind(r)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.common(this.props,!0)},t.prototype.componentWillReceiveProps=function(e){return this.common(e,!1),!0},t.prototype.export=function(){B.exportBStrById(this.props.idx)},t.prototype.delete=function(){this.props.deleteEntry(this.props.idx)},t.prototype.rename=function(){this.props.renameEntry(this.props.idx)},t.prototype.handle=function(e){this.props.handleFile(this.props.idx,e)},t.prototype.stload=function(){},t.prototype.common=function(e){var t=this;this.state.loading||this.setState({loading:!0}),setTimeout(function(){var n=B.getFileNameById(e.idx),r=B.getFileEntryById(e.idx);if(!n||!r||B.isCFB()&&2!=r.type)return t.setState({loading:!1});var i=x(r.name),a=B.getContentByEntry(r),o=B.getSizeByEntry(r),s=Object(y.a)("%0.8X",Object(le.buf)(a)),l="text"==e.mode,c=l?B.getTextByEntry(r):"",h=c&&("]/)),d=e.mode||"text";if("full"==d&&(d="text"),!e.mode||"full"==e.mode){var f=B.getContentSliceByEntry(r,0,16);255==f[0]&&216==f[1]&&255==f[2]&&(d="imag"),137==f[0]&&80==f[1]&&78==f[2]&&(d="imag"),71==f[0]&&73==f[1]&&70==f[2]&&56==f[3]&&(d="imag")}var u="imag"==t.props.mode,p=u?"data:image/jpeg;base64,"+btoa(B.getTextByEntry(r)):"",m=t.props&&t.props.mode?B.getSizeByEntry(r):Math.min(B.getSizeByEntry(r),384),b=Array.from({length:m+15>>4}).map(function(e,t){return 16*t}),g=c||p?[]:b.map(function(e){return function(e){var t=e[0],n=e[1];return n&&n.length?E[n.length]?Object(y.b)("%04x: "+E[n.length],[t].concat(n,n.map(function(e){return String.fromCharCode(e).replace(/[^\x20-\x7E]/g,".")}))):"wtf":""}([e,B.getContentSliceByEntry(r,e,e+16)])});t.setState({loading:!1,FN:i,_size:o,_crc32:s,show_text:l,T:c,doxml:h,show_link:d,show_imag:u,I:p,indices:b,indexData:g}),t.forceUpdate()},0)},t.prototype.render=function(){var e=B.getFileNameById(this.props.idx),t=B.getFileEntryById(this.props.idx);if(!e||!t||B.isCFB()&&2!=t.type)return i.a.createElement(c.a,{to:"/"});var n=x(e),r=this.state,a=r.FN,o=r._size,s=r._crc32,l=r.show_text,h=r.T,d=r.doxml,f=r.show_link,u=r.show_imag,p=r.I,m=r.indices,b=r.indexData,g=o>384&&!this.props.mode,_={text:"Text",imag:"Image"}[f];return i.a.createElement("div",{className:"conpainer"},i.a.createElement("div",null,fe," ",a," ",a.charCodeAt(0)>=14336&&a.charCodeAt(0)<=18496&&"MSI Name: "+S(a)),i.a.createElement("div",{className:"minor"},a!=t.name?'File name has non-display characters, which are rendered as "\\u" followed by character code':" "),ue,i.a.createElement("div",{className:"flexrow"},i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.export},pe," Export Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.delete},me," Delete Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.rename},be," Rename Entry"))),ge,i.a.createElement(ce,{handleFile:this.handle,title:"Replace file contents"}),_e,ye,i.a.createElement("details",null,we,ve," ",n,Ee,xe," ",o," bytes",ke,Ce," ",s,ze),Se,i.a.createElement("b",null,g?"Showing First 384 Bytes":"Showing File Contents",g&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/full"}," (Full Contents) "),f&&f!=this.props.mode&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/"+f,onClick:this.stload}," (View as ",_,") ")),this.state.loading?Be:l?i.a.createElement(oe.a,{style:se.arduinoLight,customStyle:{width:"calc(100vw - "+(this.props.viz?300:50)+"px)"}},d?function(e){var t=0,n="";return e.replace(de,function(e,r,i,a){var o=t;"/"==r?(--t,--o):"/"==e.charAt(e.length-2)||++t;var s=a==n&&"/"==r?"":"\n"+" ".repeat(o);return n=a,s+e}).replace(/\n+\n=14336&&t.replace(/.*\//g,"").charCodeAt(0)<=18496?i.a.createElement(F.a,{to:"/view/"+r},x(t)+" ("+S(t.replace(/.*\//g,""))+")"):i.a.createElement(F.a,{to:"/view/"+r},x(t)),"\n")})))},t}(r.Component),Ge=Object(h.a)(qe);n(408);var $e=i.a.createElement("br",null),Qe=i.a.createElement("div",{className:"Title"},"Welcome to CFB Editor"),et=i.a.createElement("div",{className:"Subtitle"},"View and Edit archives with ease"),tt=i.a.createElement("br",null),nt=i.a.createElement("br",null),rt=i.a.createElement("div",{className:"minor"},"Your data never leaves your device"),it=i.a.createElement("div",null,"You can also drag and drop a file into the window"),at=i.a.createElement("br",null),ot=i.a.createElement("br",null),st=i.a.createElement("br",null),lt=i.a.createElement("br",null),ct=i.a.createElement("br",null),ht=i.a.createElement("details",null,i.a.createElement("summary",null,i.a.createElement("b",null,"Download Sample Files")," (click to show)"),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xls"},"CFB: pivot_table_test.xls"),i.a.createElement("br",null),i.a.createElement("br",null),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xlsb"},"ZIP: pivot_table_test.xlsb"),i.a.createElement("br",null)),dt=i.a.createElement("br",null),ft=i.a.createElement("br",null),ut=i.a.createElement("br",null),pt=i.a.createElement("div",{className:"minor"},"(some items may not fit, consider using a wider screen)"),mt=i.a.createElement("br",null),bt=i.a.createElement("br",null),gt=i.a.createElement("br",null),_t=i.a.createElement("div",{className:"minor"},i.a.createElement("a",{className:"minor",href:"http://sheetjs.com"},"Copyright (C) 2017-present SheetJS LLC")),yt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.newCFB=function(){B.newFile("SheetJS.cfb")},t.prototype.newZIP=function(){B.newFile("SheetJS.zip")},t.prototype.render=function(){return B.isEmpty()?i.a.createElement("div",{className:"conpainer"},$e,Qe,et,tt,nt,i.a.createElement(ce,{handleFile:this.props.handleFile,title:"Read a file on your device",fmts:he}),rt,it,at,i.a.createElement("a",{onClick:this.newZIP},"Click here to make a new ZIP archive"),ot,st,i.a.createElement("a",{onClick:this.newCFB},"Click here to make a new CFB archive"),lt,ct,ht,dt,i.a.createElement(F.a,{to:"/help"},"Show Help"),ft,ut,window.matchMedia&&!window.matchMedia("(min-width: 800px)").matches?pt:mt,bt,gt,_t):i.a.createElement(c.a,{to:"/"})},t}(r.Component),wt=Object(h.a)(yt);var vt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.onDrop=r.onDrop.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.suppress=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.onDrop=function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;t&&0!=t.length&&this.props.handleFile(1==t.length?t[0]:t)},t.prototype.render=function(){return i.a.createElement("div",{className:"DDD",onDrop:this.onDrop,onDragEnter:this.suppress,onDragOver:this.suppress},this.props.children)},t}(r.Component);var Et=function(e){return f()("Enter the new file name",{content:{element:"input",attributes:{placeholder:e}}})},xt=function(e){if(B.isDirty()){var t="Recent changes have not been saved";return f()(t,{timer:1e3}),e.returnValue=t}},kt=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),Ct=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),zt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.hfoe=r.handleFileOrEntry.bind(r),r.flipViz=r.flip_viz.bind(r),r.force=r.force.bind(r),r.state={viz:!0},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){window.removeEventListener("beforeunload",xt),window.addEventListener("beforeunload",xt,!0)},t.prototype.flip_viz=function(){this.setState({viz:!this.state.viz}),this.forceUpdate()},t.prototype.force=function(){this.toolbar&&this.toolbar.force()},t.prototype.erase=function(){if(!B.isDirty())return B.reset();f()("Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(e){e&&B.reset()})},t.prototype.renameFile=function(){Et(B.fname).then(function(e){e&&B.setName(e)})},t.prototype.handleFile=function(e){return e instanceof File?this.handleOneFile(e):f()("Please drop only one file")},t.prototype.handleOneFile=function(e){var t=function(){var t=new FileReader;t.onload=function(t){var n=t.target.result;try{B.setBStr(n,function(e){f()("Error:"+(e.message||e))}),B.setName(e.name)}catch(t){f()("Error:"+(t.message||t))}},t.readAsBinaryString(e)},n=[];if(e.size>5<<20&&n.push("File size "+e.size+" exceeds limit."),n.length>0){n.push("Operations may be slow. Shall we proceed?");var r=document.createElement("div");r.innerHTML=n.join("
\n"),f()({content:r,buttons:["No","Yes"]}).then(function(e){e&&t()})}else t()},t.prototype.handleEntry=function(e,t){!function(e,t,n){var r=new FileReader;if(r.onload=function(e){var n=e.target.result;t(null,n)},n&&n.size>0&&e.size>n.size)return t(new Error("File size "+e.size+" exceeds limit"),null);r.readAsArrayBuffer(e)}(t,function(t,n){if(t)return f()("Error: "+t.message);B.setContentAB(e,n)},{size:5<<20})},t.prototype.handleFileOrEntry=function(e){var t=this;if(B.isEmpty())return this.handleFile(e);if(!(e instanceof File))return f()("Please drop only one file");var n=this.props.match&&null!=this.props.match.params.idx?this.props.match.params.idx:-1,r={buttons:{open:"Open",add:"Add File"}},i=B.getFixedName(n);n>-1&&(r.buttons.update="Update contents"),f()(B.fname+" "+(i&&"("+i+")")+" is open. What do you want to do with "+e.name+"?",r).then(function(r){switch(r){case"open":if(!B.isDirty())return B.reset(),t.handleFile(e);f()("There are unsaved changes. Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(n){n&&(B.reset(),t.handleFile(e))});break;case"add":var i="";B.find(e.name)?(i=B.addNewFile(),f()("File "+e.name+" exists! New file: "+i)):i=B.addNewFile(e.name);var a=B.getIdByName(i);t.handleEntry(a,e);break;case"update":t.handleEntry(n,e)}})},t.prototype.newEntry=function(){var e=B.addNewFile();f()("New File: "+e)},t.prototype.exportFile=function(){B.exportBStr(B.fname||"SheetJS.cfb")},t.prototype.deleteEntry=function(e){f()("Are you sure you want to delete "+B.getFixedName(e),{buttons:["No","Yes"]}).then(function(t){switch(t){case!0:B.delFileById(e);break;default:return}})},t.prototype.renameEntry=function(e){Et(B.getFixedPath(e)).then(function(t){t&&B.renFileById(e,t)})},t.prototype.render=function(){var e=this;return i.a.createElement("div",{className:"Outer"},i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(Z,{idx:this.props.match.params.idx,erase:this.erase,exportFile:this.exportFile,handleFile:this.hfoe,viz:this.state.viz,flipViz:this.flipViz,ref:function(t){e.toolbar=t}})),i.a.createElement("div",{className:"Bottom"},i.a.createElement(u.a,{split:"vertical",minSize:50,maxSize:250,defaultSize:window.matchMedia&&!window.matchMedia("(min-width: 650px)").matches?50:250,style:{height:"calc(100% - 55px)"},pane1Style:{display:this.state.viz?"block":"none"}},this.state.viz&&i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(ie,{idx:this.props.match.params.idx,fname:B.fname,exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement("div",{className:"RightPane"},B.isEmpty()?i.a.createElement(l.a,null,i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(wt,{handleFile:this.handleFile})),Ct):i.a.createElement(l.a,null,i.a.createElement(o.a,{path:"/view"},i.a.createElement(Ie,{idx:this.props.match.params.idx||0,mode:this.props.match.params.mode,deleteEntry:this.deleteEntry,renameEntry:this.renameEntry,handleFile:this.handleEntry,viz:this.state.viz,force:this.force})),i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(Ge,{exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),kt))))))},t}(r.Component),St=Object(h.a)(zt),Bt=n(47),Ft=n.n(Bt),At=n(48),It=n.n(At);n(430);function Ot(e){return e.href.match(/^\//)?i.a.createElement(F.a,{to:e.href},e.children):i.a.createElement("a",{href:e.href},e.children)}var Tt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(It.a,{className:"helpview",source:Ft.a,renderers:{Link:Ot}})},t}(r.Component),Nt=Object(h.a)(Tt);var Rt=i.a.createElement(o.a,{path:"/view/:idx/:mode",component:St}),Dt=i.a.createElement(o.a,{path:"/view/:idx",component:St}),jt=i.a.createElement(o.a,{exact:!0,path:"/",component:St}),Lt=i.a.createElement(o.a,{exact:!0,path:"/help",component:Nt}),Pt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(s.a,{basename:"/cfb-editor"},i.a.createElement(l.a,null,Rt,Dt,jt,Lt,i.a.createElement(o.a,{render:function(){return i.a.createElement(c.a,{to:"/"})}})))},t}(r.Component);Object(a.render)(i.a.createElement(Pt,null),document.querySelector("#app"))},47:function(e,t){e.exports='## CFB Editor\n\n[(click here to go back to the main screen)](/)\n\nThe CFB Editor can edit CFB and ZIP archives in your web browser! No data is\nsent to any remote server. All operations are performed locally, so your data\nis safe. It is powered by web browser magic.\n\n### Loading data\n\nThe editor can read an existing file or generate a new file:\n\n**Reading an Existing File**\n\nFrom the main screen, click "Choose File" and select a file. Alternatively,\nyou can click and drag a file from your device into the box.\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Creating a new file**\n\nClick on the relevant links from the main screen.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Closing a file to start from scratch**\n\nIf a file is open, click on the Close archive\nlinks to close the file and go back to the initial view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Saving data\n\nThe editor can download updated archives or individual files to your device:\n\n**Download an updated archive**\n\nClick on the Download Archive links\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Download a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Export Entry\nlink to download the viewed file.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Modifying files in the archive\n\nThe editor can add, delete, and rename files:\n\n**Rename the archive**\n\nClick on the Rename archive link in the\nsidebar or the archive view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Rename a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link in\nthe file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Delete a file from the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link\nin the file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Updating data for a file**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the "Choose file" button to upload a new file that will\nreplace the existing data.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Add a file to the archive**\n\nClick on the Add file link in the sidebar or\nthe archive view. By default, the file will have a generated name and dummy\ncontent. Follow the instructions to rename the file and update the content.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n[(C) 2017-present SheetJS LLC](http://sheetjs.com)\n'},50:function(e,t,n){n(51),e.exports=n(432)},56:function(e,t,n){},66:function(e,t,n){},71:function(e,t){}},[[50,2,1]]]); +//# sourceMappingURL=app.b9a31e1c.js.map \ No newline at end of file diff --git a/index.html b/index.html index 7b6405b..0024c40 100644 --- a/index.html +++ b/index.html @@ -30,5 +30,5 @@ })(); - +