function createZipFromFilesPath(n,t,i){var r=new JSZip;(navigator.userAgent.indexOf("MSIE")!=-1||navigator.userAgent.indexOf("rv:11")!=-1||navigator.userAgent.indexOf("Edge")!=-1)&&(i=i+".zip");t.forEach(function(t){r.file(t.FileName,fileDownloadSync(n+"/"+t.FileName),{binary:!0})});r.generateAsync({type:"blob"}).then(function(n){saveAs(n,i)})}function fileDownloadSync(n){return new Promise(function(t,i){JSZipUtils.getBinaryContent(n,function(n,r){n?i(n):t(r)})})}!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self);t.Promise=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof _dereq_&&_dereq_,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof _dereq_&&_dereq_,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";t.exports=function(n){function t(n){var t=new i(n),r=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),r}var i=n._SomePromiseArray;n.any=function(n){return t(n)};n.prototype.any=function(){return t(this)}}},{}],2:[function(n,t){"use strict";function i(){this._customScheduler=!1;this._isTickUsed=!1;this._lateQueue=new o(16);this._normalQueue=new o(16);this._haveDrainedQueues=!1;this._trampolineEnabled=!0;var n=this;this.drainQueues=function(){n._drainQueues()};this._schedule=c}function r(n,t,i){this._lateQueue.push(n,t,i);this._queueTick()}function u(n,t,i){this._normalQueue.push(n,t,i);this._queueTick()}function f(n){this._normalQueue._pushOne(n);this._queueTick()}var e;try{throw new Error;}catch(h){e=h}var c=n("./schedule"),o=n("./queue"),s=n("./util");i.prototype.setScheduler=function(n){var t=this._schedule;return this._schedule=n,this._customScheduler=!0,t};i.prototype.hasCustomScheduler=function(){return this._customScheduler};i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};i.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this._trampolineEnabled=!1)};i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};i.prototype.fatalError=function(n,t){t?(process.stderr.write("Fatal "+(n instanceof Error?n.stack:n)+"\n"),process.exit(2)):this.throwLater(n)};i.prototype.throwLater=function(n,t){if(1===arguments.length&&(t=n,n=function(){throw t;}),"undefined"!=typeof setTimeout)setTimeout(function(){n(t)},0);else try{this._schedule(function(){n(t)})}catch(i){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n");}};s.hasDevTools?(i.prototype.invokeLater=function(n,t,i){this._trampolineEnabled?r.call(this,n,t,i):this._schedule(function(){setTimeout(function(){n.call(t,i)},100)})},i.prototype.invoke=function(n,t,i){this._trampolineEnabled?u.call(this,n,t,i):this._schedule(function(){n.call(t,i)})},i.prototype.settlePromises=function(n){this._trampolineEnabled?f.call(this,n):this._schedule(function(){n._settlePromises()})}):(i.prototype.invokeLater=r,i.prototype.invoke=u,i.prototype.settlePromises=f);i.prototype.invokeFirst=function(n,t,i){this._normalQueue.unshift(n,t,i);this._queueTick()};i.prototype._drainQueue=function(n){for(var t,i,r;n.length()>0;)t=n.shift(),"function"==typeof t?(i=n.shift(),r=n.shift(),t.call(i,r)):t._settlePromises()};i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=!0;this._drainQueue(this._lateQueue)};i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};i.prototype._reset=function(){this._isTickUsed=!1};t.exports=i;t.exports.firstLineError=e},{"./queue":26,"./schedule":29,"./util":36}],3:[function(n,t){"use strict";t.exports=function(n,t,i,r){var u=!1,f=function(n,t){this._reject(t)},e=function(n,t){t.promiseRejectionQueued=!0;t.bindingPromise._then(f,f,null,this,n)},o=function(n,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},s=function(n,t){t.promiseRejectionQueued||this._reject(n)};n.prototype.bind=function(f){var c,h,l,a;return u||(u=!0,n.prototype._propagateFrom=r.propagateFromFunction(),n.prototype._boundValue=r.boundValueFunction()),c=i(f),h=new n(t),h._propagateFrom(this,1),l=this._target(),(h._setBoundTo(c),c instanceof n)?(a={promiseRejectionQueued:!1,promise:h,target:l,bindingPromise:c},l._then(t,e,void 0,h,a),c._then(o,s,void 0,h,a),h._setOnCancel(c)):h._resolveCallback(l),h};n.prototype._setBoundTo=function(n){void 0!==n?(this._bitField=2097152|this._bitField,this._boundTo=n):this._bitField=-2097153&this._bitField};n.prototype._isBound=function(){return 2097152==(2097152&this._bitField)};n.bind=function(t,i){return n.resolve(i).bind(t)}}},{}],4:[function(n,t){"use strict";function u(){try{Promise===i&&(Promise=r)}catch(n){}return i}var r,i;"undefined"!=typeof Promise&&(r=Promise);i=n("./promise")();i.noConflict=u;t.exports=i},{"./promise":22}],5:[function(n,t){"use strict";var i=Object.create,r,u;i&&(r=i(null),u=i(null),r[" size"]=u[" size"]=0);t.exports=function(t){function u(n,r){var u,f;if(null!=n&&(u=n[r]),"function"!=typeof u){f="Object "+i.classString(n)+" has no method '"+i.toString(r)+"'";throw new t.TypeError(f);}return u}function f(n){var t=this.pop(),i=u(n,t);return i.apply(n,this)}function r(n){return n[this]}function e(n){var t=+this;return 0>t&&(t=Math.max(0,t+n.length)),n[t]}var o,i=n("./util"),s=i.canEvaluate;i.isIdentifier;t.prototype.call=function(n){var t=[].slice.call(arguments,1);return t.push(n),this._then(f,void 0,void 0,t,void 0)};t.prototype.get=function(n){var t,u="number"==typeof n,i;return u?t=e:s?(i=o(n),t=null!==i?i:r):t=r,this._then(t,void 0,void 0,n,void 0)}}},{"./util":36}],6:[function(n,t){"use strict";t.exports=function(t,i,r,u){var f=n("./util"),o=f.tryCatch,s=f.errorObj,e=t._async;t.prototype["break"]=t.prototype.cancel=function(){var n,t,i;if(!u.cancellation())return this._warn("cancellation is disabled");for(n=this,t=n;n.isCancellable();){if(!n._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}if(i=n._cancellationParent,null==i||!i.isCancellable()){n._isFollowing()?n._followee().cancel():n._cancelBranched();break}n._isFollowing()&&n._followee().cancel();t=n;n=i}};t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0};t.prototype._cancelBy=function(n){return n===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)};t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()};t.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),e.invoke(this._cancelPromises,this,void 0))};t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()};t.prototype._unsetOnCancel=function(){this._onCancelField=void 0};t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};t.prototype._doInvokeOnCancel=function(n,t){var i,r;if(f.isArray(n))for(i=0;i<n.length;++i)this._doInvokeOnCancel(n[i],t);else void 0!==n&&("function"==typeof n?t||(r=o(n).call(this._boundValue()),r===s&&(this._attachExtraTrace(r.e),e.throwLater(r.e))):n._resultCancelled(this))};t.prototype._invokeOnCancel=function(){var n=this._onCancel();this._unsetOnCancel();e.invoke(this._doInvokeOnCancel,this,n)};t.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())};t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(n,t){"use strict";t.exports=function(t){function u(n,u,o){return function(s){var c=o._boundValue(),l,h,a,y,v,p;n:for(l=0;l<n.length;++l)if(h=n[l],h===Error||null!=h&&h.prototype instanceof Error){if(s instanceof h)return i(u).call(c,s)}else if("function"==typeof h){if(a=i(h).call(c,s),a===e)return a;if(a)return i(u).call(c,s)}else if(r.isObject(s)){for(y=f(h),v=0;v<y.length;++v)if(p=y[v],h[p]!=s[p])continue n;return i(u).call(c,s)}return t}}var r=n("./util"),f=n("./es5").keys,i=r.tryCatch,e=r.errorObj;return u}},{"./es5":13,"./util":36}],8:[function(n,t){"use strict";t.exports=function(n){function t(){this._trace=new t.CapturedTrace(u())}function f(){if(r)return new t}function u(){var n=i.length-1;if(n>=0)return i[n]}var r=!1,i=[];return n.prototype._promiseCreated=function(){},n.prototype._pushContext=function(){},n.prototype._popContext=function(){return null},n._peekContext=n.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var n=i.pop(),t=n._promiseCreated;return n._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=f,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var i=n.prototype._pushContext,f=n.prototype._popContext,e=n._peekContext,o=n.prototype._peekContext,s=n.prototype._promiseCreated;t.deactivateLongStackTraces=function(){n.prototype._pushContext=i;n.prototype._popContext=f;n._peekContext=e;n.prototype._peekContext=o;n.prototype._promiseCreated=s;r=!1};r=!0;n.prototype._pushContext=t.prototype._pushContext;n.prototype._popContext=t.prototype._popContext;n._peekContext=n.prototype._peekContext=u;n.prototype._promiseCreated=function(){var n=this._peekContext();n&&null==n._promiseCreated&&(n._promiseCreated=this)}},t}},{}],9:[function(n,t){"use strict";t.exports=function(t,i){function o(n,t){return{promise:t}}function g(){return!1}function pt(n,t,i){var u=this;try{n(t,i,function(n){if("function"!=typeof n)throw new TypeError("onCancel must be a function, got: "+r.toString(n));u._attachCancellationCallback(n)})}catch(f){return f}}function wt(n){if(!this.isCancellable())return this;var t=this._onCancel();void 0!==t?r.isArray(t)?t.push(n):this._setOnCancel([t,n]):this._setOnCancel(n)}function bt(){return this._onCancelField}function kt(n){this._onCancelField=n}function dt(){this._cancellationParent=void 0;this._onCancelField=void 0}function nt(n,t){if(0!=(1&t)){this._cancellationParent=n;var i=n._branchesRemainingToCancel;void 0===i&&(i=0);n._branchesRemainingToCancel=i+1}0!=(2&t)&&n._isBound()&&this._setBoundTo(n._boundTo)}function gt(n,t){0!=(2&t)&&n._isBound()&&this._setBoundTo(n._boundTo)}function ni(){var n=this._boundTo;return void 0!==n&&n instanceof t?n.isFulfilled()?n.value():void 0:n}function ti(){this._trace=new e(this._peekContext())}function ii(n,t){var i,u;ai(n)&&(i=this._trace,(void 0!==i&&t&&(i=i._parent),void 0!==i)?i.attachExtraTrace(n):n.__stackCleaned__||(u=v(n),r.notEnumerableProp(n,"stack",u.message+"\n"+u.stack.join("\n")),r.notEnumerableProp(n,"__stackCleaned__",!0)))}function ri(n,t,i,r,u){if(void 0===n&&null!==t&&w){if(void 0!==u&&u._returnedNonUndefined())return;if(0==(65535&r._bitField))return;i&&(i+=" ");var f="a promise was created in a "+i+"handler but was not returned from it";r._warn(f,!0,t)}}function ui(n,t){var i=n+" is deprecated and will be removed in a future version.";return t&&(i+=" Use "+t+" instead."),a(i)}function a(n,i,r){var o,f,e;u.warnings&&(f=new li(n),i?r._attachExtraTrace(f):u.longStackTraces&&(o=t._peekContext())?o.attachExtraTrace(f):(e=v(f),f.stack=e.message+"\n"+e.stack.join("\n")),l("warning",f)||it(f,"",!0))}function fi(n,t){for(var i=0;i<t.length-1;++i)t[i].push("From previous event:"),t[i]=t[i].join("\n");return i<t.length&&(t[i]=t[i].join("\n")),n+"\n"+t.join("\n")}function ei(n){for(var t=0;t<n.length;++t)(0===n[t].length||t+1<n.length&&n[t][0]===n[t+1][0])&&(n.splice(t,1),t--)}function oi(n){for(var t,o,i=n[0],r=1;r<n.length;++r){for(var u=n[r],f=i.length-1,s=i[f],e=-1,t=u.length-1;t>=0;--t)if(u[t]===s){e=t;break}for(t=e;t>=0;--t){if(o=u[t],i[f]!==o)break;i.pop();f--}i=u}}function tt(n){for(var r=[],i=0;i<n.length;++i){var t=n[i],u="    (No stack trace)"===t||h.test(t),f=u&&k(t);u&&!f&&(ht&&" "!==t.charAt(0)&&(t="    "+t),r.push(t))}return r}function si(n){for(var r,t=n.stack.replace(/\s+$/g,"").split("\n"),i=0;i<t.length;++i)if(r=t[i],"    (No stack trace)"===r||h.test(r))break;return i>0&&(t=t.slice(i)),t}function v(n){var t=n.stack,i=n.toString();return t="string"==typeof t&&t.length>0?si(n):["    (No stack trace)"],{message:i,stack:tt(t)}}function it(n,t,i){var u,f;"undefined"!=typeof console&&(r.isObject(n)?(f=n.stack,u=t+c(f,n)):u=t+String(n),"function"==typeof s?s(u,i):("function"==typeof console.log||"object"==typeof console.log)&&console.log(u))}function rt(n,t,i,r){var u=!1;try{"function"==typeof t&&(u=!0,"rejectionHandled"===n?t(r):t(i,r))}catch(e){f.throwLater(e)}"unhandledRejection"===n?l(n,i,r)||u||it(i,"Unhandled rejection "):l(n,r)}function ut(n){var t,i,u;if("function"==typeof n)t="[function "+(n.name||"anonymous")+"]";else{if(t=n&&"function"==typeof n.toString?n.toString():r.toString(n),i=/\[object [a-zA-Z0-9$_]+\]/,i.test(t))try{u=JSON.stringify(n);t=u}catch(f){}0===t.length&&(t="(empty array)")}return"(<"+hi(t)+">, no stack trace)"}function hi(n){var t=41;return n.length<t?n:n.substr(0,t-3)+"..."}function y(){return"function"==typeof d}function p(n){var t=n.match(pi);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function ci(n,t){var r,i;if(y()){for(var u,o,s=n.stack.split("\n"),h=t.stack.split("\n"),f=-1,e=-1,r=0;r<s.length;++r)if(i=p(s[r]),i){u=i.fileName;f=i.line;break}for(r=0;r<h.length;++r)if(i=p(h[r]),i){o=i.fileName;e=i.line;break}0>f||0>e||!u||!o||u!==o||f>=e||(k=function(n){if(st.test(n))return!0;var t=p(n);return t&&t.fileName===u&&f<=t.line&&t.line<=e?!0:!1})}}function e(n){this._parent=n;this._promisesCreated=0;var t=this._length=1+(void 0===n?0:n._length);d(this,e);t>32&&this.uncycle()}var ft,et,s,ot=t._getDomain,f=t._async,li=n("./errors").Warning,r=n("./util"),ai=r.canAttachTrace,st=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=null,c=null,ht=!1,ct=!(0==r.env("BLUEBIRD_DEBUG")||!r.env("BLUEBIRD_DEBUG")&&"development"!==r.env("NODE_ENV")),lt=!(0==r.env("BLUEBIRD_WARNINGS")||!ct&&!r.env("BLUEBIRD_WARNINGS")),vi=!(0==r.env("BLUEBIRD_LONG_STACK_TRACES")||!ct&&!r.env("BLUEBIRD_LONG_STACK_TRACES")),w=0!=r.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(lt||!!r.env("BLUEBIRD_W_FORGOTTEN_RETURN")),b,d,u;t.prototype.suppressUnhandledRejections=function(){var n=this._target();n._bitField=-1048577&n._bitField|524288};t.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),f.invokeLater(this._notifyUnhandledRejection,this,void 0))};t.prototype._notifyUnhandledRejectionIsHandled=function(){rt("rejectionHandled",ft,void 0,this)};t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField};t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)};t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var n=this._settledValue();this._setUnhandledRejectionIsNotified();rt("unhandledRejection",et,n,this)}};t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField};t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField};t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0};t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField};t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField;this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())};t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0};t.prototype._warn=function(n,t,i){return a(n,t,i||this)};t.onPossiblyUnhandledRejection=function(n){var t=ot();et="function"==typeof n?null===t?n:t.bind(n):void 0};t.onUnhandledRejectionHandled=function(n){var t=ot();ft="function"==typeof n?null===t?n:t.bind(n):void 0};b=function(){};t.longStackTraces=function(){if(f.haveItemsQueued()&&!u.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!u.longStackTraces&&y()){var n=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace;u.longStackTraces=!0;b=function(){if(f.haveItemsQueued()&&!u.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=n;t.prototype._attachExtraTrace=r;i.deactivateLongStackTraces();f.enableTrampoline();u.longStackTraces=!1};t.prototype._captureStackTrace=ti;t.prototype._attachExtraTrace=ii;i.activateLongStackTraces();f.disableTrampolineIfNecessary()}};t.hasLongStackTraces=function(){return u.longStackTraces&&y()};var at=function(){try{var n=document.createEvent("CustomEvent");return n.initCustomEvent("testingtheevent",!1,!0,{}),r.global.dispatchEvent(n),function(n,t){var i=document.createEvent("CustomEvent");return i.initCustomEvent(n.toLowerCase(),!1,!0,t),!r.global.dispatchEvent(i)}}catch(t){}return function(){return!1}}(),vt=function(){return r.isNode?function(){return process.emit.apply(process,arguments)}:r.global?function(n){var i="on"+n.toLowerCase(),t=r.global[i];return t?(t.apply(r.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}(),yi={promiseCreated:o,promiseFulfilled:o,promiseRejected:o,promiseResolved:o,promiseCancelled:o,promiseChained:function(n,t,i){return{promise:t,child:i}},warning:function(n,t){return{warning:t}},unhandledRejection:function(n,t,i){return{reason:t,promise:i}},rejectionHandled:o},l=function(n){var i=!1,t;try{i=vt.apply(null,arguments)}catch(r){f.throwLater(r);i=!0}t=!1;try{t=at(n,yi[n].apply(null,arguments))}catch(r){f.throwLater(r);t=!0}return t||i};t.config=function(n){if(n=Object(n),"longStackTraces"in n&&(n.longStackTraces?t.longStackTraces():!n.longStackTraces&&t.hasLongStackTraces()&&b()),"warnings"in n){var i=n.warnings;u.warnings=!!i;w=u.warnings;r.isObject(i)&&"wForgottenReturn"in i&&(w=!!i.wForgottenReturn)}if("cancellation"in n&&n.cancellation&&!u.cancellation){if(f.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=dt;t.prototype._propagateFrom=nt;t.prototype._onCancel=bt;t.prototype._setOnCancel=kt;t.prototype._attachCancellationCallback=wt;t.prototype._execute=pt;yt=nt;u.cancellation=!0}"monitoring"in n&&(n.monitoring&&!u.monitoring?(u.monitoring=!0,t.prototype._fireEvent=l):!n.monitoring&&u.monitoring&&(u.monitoring=!1,t.prototype._fireEvent=g))};t.prototype._fireEvent=g;t.prototype._execute=function(n,t,i){try{n(t,i)}catch(r){return r}};t.prototype._onCancel=function(){};t.prototype._setOnCancel=function(){};t.prototype._attachCancellationCallback=function(){};t.prototype._captureStackTrace=function(){};t.prototype._attachExtraTrace=function(){};t.prototype._clearCancellationData=function(){};t.prototype._propagateFrom=function(){};var yt=gt,k=function(){return!1},pi=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;return r.inherits(e,Error),i.CapturedTrace=e,e.prototype.uncycle=function(){var u=this._length,s,n,c,i,r,h,e;if(!(2>u)){for(var t=[],o={},n=0,f=this;void 0!==f;++n)t.push(f),f=f._parent;for(u=this._length=n,n=u-1;n>=0;--n)s=t[n].stack,void 0===o[s]&&(o[s]=n);for(n=0;u>n;++n)if(c=t[n].stack,i=o[c],void 0!==i&&i!==n){for(i>0&&(t[i-1]._parent=void 0,t[i-1]._length=1),t[n]._parent=void 0,t[n]._length=1,r=n>0?t[n-1]:this,u-1>i?(r._parent=t[i+1],r._parent.uncycle(),r._length=r._parent._length+1):(r._parent=void 0,r._length=1),h=r._length+1,e=n-2;e>=0;--e)t[e]._length=h,h++;return}}},e.prototype.attachExtraTrace=function(n){if(!n.__stackCleaned__){this.uncycle();for(var u=v(n),f=u.message,t=[u.stack],i=this;void 0!==i;)t.push(tt(i.stack.split("\n"))),i=i._parent;oi(t);ei(t);r.notEnumerableProp(n,"stack",fi(f,t));r.notEnumerableProp(n,"__stackCleaned__",!0)}},d=function(){var i=/^\s*at\s*/,t=function(n,t){return"string"==typeof n?n:void 0!==t.name&&void 0!==t.message?t.toString():ut(t)},r,n,u;if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace)return Error.stackTraceLimit+=6,h=i,c=t,r=Error.captureStackTrace,k=function(n){return st.test(n)},function(n,t){Error.stackTraceLimit+=6;r(n,t);Error.stackTraceLimit-=6};if(n=new Error,"string"==typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return h=/@/,c=t,ht=!0,function(n){n.stack=(new Error).stack};try{throw new Error;}catch(f){u="stack"in f}return"stack"in n||!u||"number"!=typeof Error.stackTraceLimit?(c=function(n,t){return"string"==typeof n?n:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?ut(t):t.toString()},null):(h=i,c=t,function(n){Error.stackTraceLimit+=6;try{throw new Error;}catch(t){n.stack=t.stack}Error.stackTraceLimit-=6})}([]),"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(s=function(n){console.warn(n)},r.isNode&&process.stderr.isTTY?s=function(n,t){var i=t?"\x1b[33m":"\x1b[31m";console.warn(i+n+"\x1b[0m\n")}:r.isNode||"string"!=typeof(new Error).stack||(s=function(n,t){console.warn("%c"+n,t?"color: darkorange":"color: red")})),u={warnings:lt,longStackTraces:!1,cancellation:!1,monitoring:!1},vi&&t.longStackTraces(),{longStackTraces:function(){return u.longStackTraces},warnings:function(){return u.warnings},cancellation:function(){return u.cancellation},monitoring:function(){return u.monitoring},propagateFromFunction:function(){return yt},boundValueFunction:function(){return ni},checkForgottenReturns:ri,setBounds:ci,warn:a,deprecated:ui,CapturedTrace:e,fireDomEvent:at,fireGlobalEvent:vt}}},{"./errors":12,"./util":36}],10:[function(n,t){"use strict";t.exports=function(n){function t(){return this.value}function i(){throw this.reason;}n.prototype["return"]=n.prototype.thenReturn=function(i){return i instanceof n&&i.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:i},void 0)};n.prototype["throw"]=n.prototype.thenThrow=function(n){return this._then(i,void 0,void 0,{reason:n},void 0)};n.prototype.catchThrow=function(n){if(arguments.length<=1)return this._then(void 0,i,void 0,{reason:n},void 0);var t=arguments[1],r=function(){throw t;};return this.caught(n,r)};n.prototype.catchReturn=function(i){var r,u;return arguments.length<=1?(i instanceof n&&i.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:i},void 0)):(r=arguments[1],r instanceof n&&r.suppressUnhandledRejections(),u=function(){return r},this.caught(i,u))}}},{}],11:[function(n,t){"use strict";t.exports=function(n,t){function i(){return f(this)}function r(n,i){return u(n,i,t,t)}var u=n.reduce,f=n.all;n.prototype.each=function(n){return this.mapSeries(n)._then(i,void 0,void 0,this,void 0)};n.prototype.mapSeries=function(n){return u(this,n,t,t)};n.each=function(n,t){return r(n,t)._then(i,void 0,void 0,n,void 0)};n.mapSeries=r}},{}],12:[function(n,t){"use strict";function r(n,t){function i(r){return this instanceof i?(u(this,"message","string"==typeof r?r:t),u(this,"name",n),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new i(r)}return y(i,Error),i}function e(n){return this instanceof e?(u(this,"name","OperationalError"),u(this,"message",n),this.cause=n,this.isOperational=!0,void(n instanceof Error?(u(this,"message",n.message),u(this,"stack",n.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new e(n)}var c,l,a=n("./es5"),p=a.freeze,v=n("./util"),y=v.inherits,u=v.notEnumerableProp,w=r("Warning","warning"),b=r("CancellationError","cancellation error"),k=r("TimeoutError","timeout error"),o=r("AggregateError","aggregate error"),s,f,h,i;try{c=TypeError;l=RangeError}catch(d){c=r("TypeError","type error");l=r("RangeError","range error")}for(s="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),f=0;f<s.length;++f)"function"==typeof Array.prototype[s[f]]&&(o.prototype[s[f]]=Array.prototype[s[f]]);a.defineProperty(o.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});o.prototype.isOperational=!0;h=0;o.prototype.toString=function(){var r=Array(4*h+1).join(" "),f="\n"+r+"AggregateError of:\n",n;for(h++,r=Array(4*h+1).join(" "),n=0;n<this.length;++n){for(var u=this[n]===this?"[Circular AggregateError]":this[n]+"",t=u.split("\n"),i=0;i<t.length;++i)t[i]=r+t[i];u=t.join("\n");f+=u+"\n"}return h--,f};y(e,Error);i=Error.__BluebirdErrorTypes__;i||(i=p({CancellationError:b,TimeoutError:k,OperationalError:e,RejectionError:e,AggregateError:o}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:i,writable:!1,enumerable:!1,configurable:!1}));t.exports={Error:Error,TypeError:c,RangeError:l,CancellationError:i.CancellationError,OperationalError:i.OperationalError,TimeoutError:i.TimeoutError,AggregateError:i.AggregateError,Warning:w}},{"./es5":13,"./util":36}],13:[function(n,t){var i=function(){"use strict";return void 0===this}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(n,t){var i=Object.getOwnPropertyDescriptor(n,t);return!(i&&!i.writable&&!i.set)}};else{var u={}.hasOwnProperty,f={}.toString,e={}.constructor.prototype,r=function(n){var i=[],t;for(t in n)u.call(n,t)&&i.push(t);return i},o=function(n,t){return{value:n[t]}},s=function(n,t,i){return n[t]=i.value,n},h=function(n){return n},c=function(n){try{return Object(n).constructor.prototype}catch(t){return e}},l=function(n){try{return"[object Array]"===f.call(n)}catch(t){return!1}};t.exports={isArray:l,keys:r,names:r,defineProperty:s,getDescriptor:o,freeze:h,getPrototypeOf:c,isES5:i,propertyIsWritable:function(){return!0}}}},{}],14:[function(n,t){"use strict";t.exports=function(n,t){var i=n.map;n.prototype.filter=function(n,r){return i(this,n,r,t)};n.filter=function(n,r,u){return i(n,r,u,t)}}},{}],15:[function(n,t){"use strict";t.exports=function(t,i){function e(n,t,i){this.promise=n;this.type=t;this.handler=i;this.called=!1;this.cancelPromise=null}function o(n){this.finallyHandler=n}function u(n,t){return null!=n.cancelPromise?(arguments.length>1?n.cancelPromise._reject(t):n.cancelPromise._cancel(),n.cancelPromise=null,!0):!1}function s(){return f.call(this,this.promise._target()._settledValue())}function h(n){if(!u(this,n))return(r.e=n,r)}function f(n){var f=this.promise,v=this.handler,c,e,a;if(!this.called&&(this.called=!0,c=this.isFinallyHandler()?v.call(f._boundValue()):v.call(f._boundValue(),n),void 0!==c&&(f._setReturnedNonUndefined(),e=i(c,f),e instanceof t))){if(null!=this.cancelPromise){if(e.isCancelled())return a=new l("late cancellation observer"),f._attachExtraTrace(a),r.e=a,r;e.isPending()&&e._attachCancellationCallback(new o(this))}return e._then(s,h,void 0,this,void 0)}return f.isRejected()?(u(this),r.e=n,r):(u(this),n)}var c=n("./util"),l=t.CancellationError,r=c.errorObj;return e.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){u(this.finallyHandler)},t.prototype._passThrough=function(n,t,i,r){return"function"!=typeof n?this.then():this._then(i,r,void 0,new e(this,t,n),void 0)},t.prototype.lastly=t.prototype["finally"]=function(n){return this._passThrough(n,0,f,f)},t.prototype.tap=function(n){return this._passThrough(n,1,f)},e}},{"./util":36}],16:[function(n,t){"use strict";t.exports=function(t,i,r,u,f,e){function v(n,i,r){for(var e,h,o,f=0;f<i.length;++f){if(r._pushContext(),e=s(i[f])(n),r._popContext(),e===l)return r._pushContext(),h=t.reject(l.e),r._popContext(),h;if(o=u(e,r),o instanceof t)return o}return null}function o(n,i,u,f){var o,s,h;e.cancellation()?(o=new t(r),s=this._finallyPromise=new t(r),this._promise=o.lastly(function(){return s}),o._captureStackTrace(),o._setOnCancel(this)):(h=this._promise=new t(r),h._captureStackTrace());this._stack=f;this._generatorFunction=n;this._receiver=i;this._generator=void 0;this._yieldHandlers="function"==typeof u?[u].concat(a):a;this._yieldedPromise=null;this._cancellationPhase=!1}var y=n("./errors"),c=y.TypeError,h=n("./util"),l=h.errorObj,s=h.tryCatch,a=[];h.inherits(o,f);o.prototype._isResolved=function(){return null===this._promise};o.prototype._cleanup=function(){this._promise=this._generator=null;e.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)};o.prototype._promiseCancelled=function(){var i,r,n;this._isResolved()||(r="undefined"!=typeof this._generator["return"],r?(this._promise._pushContext(),i=s(this._generator["return"]).call(this._generator,void 0),this._promise._popContext()):(n=new t.CancellationError("generator .return() sentinel"),t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),i=s(this._generator["throw"]).call(this._generator,n),this._promise._popContext()),this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(i))};o.prototype._promiseFulfilled=function(n){this._yieldedPromise=null;this._promise._pushContext();var t=s(this._generator.next).call(this._generator,n);this._promise._popContext();this._continue(t)};o.prototype._promiseRejected=function(n){this._yieldedPromise=null;this._promise._attachExtraTrace(n);this._promise._pushContext();var t=s(this._generator["throw"]).call(this._generator,n);this._promise._popContext();this._continue(t)};o.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var n=this._yieldedPromise;this._yieldedPromise=null;n.cancel()}};o.prototype.promise=function(){return this._promise};o.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver);this._receiver=this._generatorFunction=void 0;this._promiseFulfilled(void 0)};o.prototype._continue=function(n){var r=this._promise,f,i,e;if(n===l)return this._cleanup(),this._cancellationPhase?r.cancel():r._rejectCallback(n.e,!1);if(f=n.value,n.done===!0)return this._cleanup(),this._cancellationPhase?r.cancel():r._resolveCallback(f);if(i=u(f,this._promise),!(i instanceof t)&&(i=v(i,this._yieldHandlers,this._promise),null===i))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",f)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));i=i._target();e=i._bitField;0==(50397184&e)?(this._yieldedPromise=i,i._proxy(this,null)):0!=(33554432&e)?this._promiseFulfilled(i._value()):0!=(16777216&e)?this._promiseRejected(i._reason()):this._promiseCancelled()};t.coroutine=function(n,t){if("function"!=typeof n)throw new c("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var i=Object(t).yieldHandler,r=o,u=(new Error).stack;return function(){var f=n.apply(this,arguments),t=new r(void 0,void 0,i,u),e=t.promise();return t._generator=f,t._promiseFulfilled(void 0),e}};t.coroutine.addYieldHandler=function(n){if("function"!=typeof n)throw new c("expecting a function but got "+h.classString(n));a.push(n)};t.spawn=function(n){if(e.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof n)return i("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var r=new o(n,this),u=r.promise();return r._run(t.spawn),u}}},{"./errors":12,"./util":36}],17:[function(n,t){"use strict";t.exports=function(t,i){var r=n("./util");r.canEvaluate;r.tryCatch;r.errorObj;t.join=function(){var n,r=arguments.length-1,u,t;return r>0&&"function"==typeof arguments[r]&&(n=arguments[r]),u=[].slice.call(arguments),n&&u.pop(),t=new i(u).promise(),void 0!==n?t.spread(n):t}}},{"./util":36}],18:[function(n,t){"use strict";t.exports=function(t,i,r,u,f,e){function o(n,t,i,r){this.constructor$(n);this._promise._captureStackTrace();var u=c();this._callback=null===u?t:u.bind(t);this._preservedValues=r===f?new Array(this.length()):null;this._limit=i;this._inFlight=0;this._queue=i>=1?[]:v;this._init$(void 0,-2)}function h(n,t,i,u){if("function"!=typeof t)return r("expecting a function but got "+s.classString(t));var f="object"==typeof i&&null!==i?i.concurrency:0;return f="number"==typeof f&&isFinite(f)&&f>=1?f:0,new o(n,t,f,u).promise()}var c=t._getDomain,s=n("./util"),l=s.tryCatch,a=s.errorObj,v=[];s.inherits(o,i);o.prototype._init=function(){};o.prototype._promiseFulfilled=function(n,i){var o=this._values,y=this.length(),s=this._preservedValues,h=this._limit,f,p,r,v,w;if(0>i){if(i=-1*i-1,o[i]=n,h>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(h>=1&&this._inFlight>=h)return o[i]=n,this._queue.push(i),!1;null!==s&&(s[i]=n);var c=this._promise,b=this._callback,k=c._boundValue();if(c._pushContext(),f=l(b).call(k,n,i,y),p=c._popContext(),e.checkForgottenReturns(f,p,null!==s?"Promise.filter":"Promise.map",c),f===a)return this._reject(f.e),!0;if(r=u(f,this._promise),r instanceof t){if(r=r._target(),v=r._bitField,0==(50397184&v))return h>=1&&this._inFlight++,o[i]=r,r._proxy(this,-1*(i+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(r._reason()),!0):(this._cancel(),!0);f=r._value()}o[i]=f}return w=++this._totalResolved,w>=y?(null!==s?this._filter(o,s):this._resolve(o),!0):!1};o.prototype._drainQueue=function(){for(var n,t=this._queue,i=this._limit,r=this._values;t.length>0&&this._inFlight<i;){if(this._isResolved())return;n=t.pop();this._promiseFulfilled(r[n],n)}};o.prototype._filter=function(n,t){for(var u=t.length,r=new Array(u),f=0,i=0;u>i;++i)n[i]&&(r[f++]=t[i]);r.length=f;this._resolve(r)};o.prototype.preservedValues=function(){return this._preservedValues};t.prototype.map=function(n,t){return h(this,n,t,null)};t.map=function(n,t,i,r){return h(n,t,i,r)}}},{"./util":36}],19:[function(n,t){"use strict";t.exports=function(t,i,r,u,f){var e=n("./util"),o=e.tryCatch;t.method=function(n){if("function"!=typeof n)throw new t.TypeError("expecting a function but got "+e.classString(n));return function(){var r=new t(i),u,e;return r._captureStackTrace(),r._pushContext(),u=o(n).apply(this,arguments),e=r._popContext(),f.checkForgottenReturns(u,e,"Promise.method",r),r._resolveFromSyncValue(u),r}};t.attempt=t["try"]=function(n){var r,s,h,c,l;return"function"!=typeof n?u("expecting a function but got "+e.classString(n)):(r=new t(i),r._captureStackTrace(),r._pushContext(),arguments.length>1?(f.deprecated("calling Promise.try with more than 1 argument"),h=arguments[1],c=arguments[2],s=e.isArray(h)?o(n).apply(c,h):o(n).call(c,h)):s=o(n)(),l=r._popContext(),f.checkForgottenReturns(s,l,"Promise.try",r),r._resolveFromSyncValue(s),r)};t.prototype._resolveFromSyncValue=function(n){n===e.errorObj?this._rejectCallback(n.e,!1):this._resolveCallback(n,!0)}}},{"./util":36}],20:[function(n,t){"use strict";function u(n){return n instanceof Error&&r.getPrototypeOf(n)===Error.prototype}function f(n){var t,o,f,e;if(u(n)){for(t=new h(n),t.name=n.name,t.message=n.message,t.stack=n.stack,o=r.keys(n),f=0;f<o.length;++f)e=o[f],c.test(e)||(t[e]=n[e]);return t}return i.markAsOriginatingFromRejection(n),n}function e(n,t){return function(i,r){var u,e;null!==n&&(i?(u=f(o(i)),n._attachExtraTrace(u),n._reject(u)):t?(e=[].slice.call(arguments,1),n._fulfill(e)):n._fulfill(r),n=null)}}var i=n("./util"),o=i.maybeWrapAsError,s=n("./errors"),h=s.OperationalError,r=n("./es5"),c=/^(?:name|message|stack|cause)$/;t.exports=e},{"./errors":12,"./es5":13,"./util":36}],21:[function(n,t){"use strict";t.exports=function(t){function o(n,t){var s=this,o;if(!r.isArray(n))return e.call(s,n,t);o=i(t).apply(s._boundValue(),[null].concat(n));o===f&&u.throwLater(o.e)}function e(n,t){var o=this,r=o._boundValue(),e=void 0===n?i(t).call(r,null):i(t).call(r,null,n);e===f&&u.throwLater(e.e)}function s(n,t){var o=this,r,e;n||(r=new Error(n+""),r.cause=n,n=r);e=i(t).call(o._boundValue(),n);e===f&&u.throwLater(e.e)}var r=n("./util"),u=t._async,i=r.tryCatch,f=r.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(n,t){if("function"==typeof n){var i=e;void 0!==t&&Object(t).spread&&(i=o);this._then(i,s,void 0,this,n)}return this}}},{"./util":36}],22:[function(n,t){"use strict";t.exports=function(){function v(){}function rt(n,i){if("function"!=typeof i)throw new l("expecting a function but got "+r.classString(i));if(n.constructor!==t)throw new l("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");}function t(n){this._bitField=0;this._fulfillmentHandler0=void 0;this._rejectionHandler0=void 0;this._promise0=void 0;this._receiver0=void 0;n!==i&&(rt(this,n),this._resolveFromExecutor(n));this._promiseCreated();this._fireEvent("promiseCreated",this)}function ut(n){this.promise._resolveCallback(n)}function ft(n){this.promise._rejectCallback(n,!1)}function s(n){var r=new t(i);r._fulfillmentHandler0=n;r._rejectionHandler0=n;r._promise0=n;r._receiver0=n}var b,y=function(){return new l("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},p=function(){return new t.PromiseInspection(this._target())},e=function(n){return t.reject(new l(n))},k={},r=n("./util"),h,l,d;b=r.isNode?function(){var n=process.domain;return void 0===n&&(n=null),n}:function(){return null};r.notEnumerableProp(t,"_getDomain",b);var et=n("./es5"),g=n("./async"),c=new g;et.defineProperty(t,"_async",{value:c});h=n("./errors");l=t.TypeError=h.TypeError;t.RangeError=h.RangeError;d=t.CancellationError=h.CancellationError;t.TimeoutError=h.TimeoutError;t.OperationalError=h.OperationalError;t.RejectionError=h.OperationalError;t.AggregateError=h.AggregateError;var i=function(){},nt={},tt={},f=n("./thenables")(t,i),o=n("./promise_array")(t,i,f,e,v),it=n("./context")(t),ot=it.create,u=n("./debuggability")(t,it),st=(u.CapturedTrace,n("./finally")(t,f)),ht=n("./catch_filter")(tt),ct=n("./nodeback"),a=r.errorObj,w=r.tryCatch;return t.prototype.toString=function(){return"[object Promise]"},t.prototype.caught=t.prototype["catch"]=function(n){var f=arguments.length,t,i,o,u;if(f>1){for(i=new Array(f-1),o=0,t=0;f-1>t;++t){if(u=arguments[t],!r.isObject(u))return e("expecting an object but got "+r.classString(u));i[o++]=u}return i.length=o,n=arguments[t],this.then(void 0,ht(i,n,this))}return this.then(void 0,n)},t.prototype.reflect=function(){return this._then(p,p,void 0,this,void 0)},t.prototype.then=function(n,t){if(u.warnings()&&arguments.length>0&&"function"!=typeof n&&"function"!=typeof t){var i=".then() only accepts functions but was passed: "+r.classString(n);arguments.length>1&&(i+=", "+r.classString(t));this._warn(i)}return this._then(n,t,void 0,void 0,void 0)},t.prototype.done=function(n,t){var i=this._then(n,t,void 0,void 0,void 0);i._setIsFinal()},t.prototype.spread=function(n){return"function"!=typeof n?e("expecting a function but got "+r.classString(n)):this.all()._then(n,void 0,void 0,nt,void 0)},t.prototype.toJSON=function(){var n={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(n.fulfillmentValue=this.value(),n.isFulfilled=!0):this.isRejected()&&(n.rejectionReason=this.reason(),n.isRejected=!0),n},t.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new o(this).promise()},t.prototype.error=function(n){return this.caught(r.originatesFromRejection,n)},t.is=function(n){return n instanceof t},t.fromNode=t.fromCallback=function(n){var r=new t(i),f,u;return r._captureStackTrace(),f=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,u=w(n)(ct(r,f)),u===a&&r._rejectCallback(u.e,!0),r._isFateSealed()||r._setAsyncGuaranteed(),r},t.all=function(n){return new o(n).promise()},t.cast=function(n){var r=f(n);return r instanceof t||(r=new t(i),r._captureStackTrace(),r._setFulfilled(),r._rejectionHandler0=n),r},t.resolve=t.fulfilled=t.cast,t.reject=t.rejected=function(n){var r=new t(i);return r._captureStackTrace(),r._rejectCallback(n,!0),r},t.setScheduler=function(n){if("function"!=typeof n)throw new l("expecting a function but got "+r.classString(n));return c.setScheduler(n)},t.prototype._then=function(n,r,u,f,e){var p=void 0!==e,s=p?e:new t(i),o=this._target(),a=o._bitField,v,h,l,y;return p||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===f&&0!=(2097152&this._bitField)&&(f=0!=(50397184&a)?this._boundValue():o===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s)),v=b(),0!=(50397184&a)?(y=o._settlePromiseCtx,0!=(33554432&a)?(l=o._rejectionHandler0,h=n):0!=(16777216&a)?(l=o._fulfillmentHandler0,h=r,o._unsetRejectionIsUnhandled()):(y=o._settlePromiseLateCancellationObserver,l=new d("late cancellation observer"),o._attachExtraTrace(l),h=r),c.invoke(y,o,{handler:null===v?h:"function"==typeof h&&v.bind(h),promise:s,receiver:f,value:l})):o._addCallbacks(n,r,s,f,v),s},t.prototype._length=function(){return 65535&this._bitField},t.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},t.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},t.prototype._setLength=function(n){this._bitField=-65536&this._bitField|65535&n},t.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField;this._fireEvent("promiseFulfilled",this)},t.prototype._setRejected=function(){this._bitField=16777216|this._bitField;this._fireEvent("promiseRejected",this)},t.prototype._setFollowing=function(){this._bitField=67108864|this._bitField;this._fireEvent("promiseResolved",this)},t.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},t.prototype._isFinal=function(){return(4194304&this._bitField)>0},t.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},t.prototype._setCancelled=function(){this._bitField=65536|this._bitField;this._fireEvent("promiseCancelled",this)},t.prototype._setAsyncGuaranteed=function(){c.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},t.prototype._receiverAt=function(n){var t=0===n?this._receiver0:this[4*n-1];if(t!==k)return void 0===t&&this._isBound()?this._boundValue():t},t.prototype._promiseAt=function(n){return this[4*n-2]},t.prototype._fulfillmentHandlerAt=function(n){return this[4*n-4]},t.prototype._rejectionHandlerAt=function(n){return this[4*n-3]},t.prototype._boundValue=function(){},t.prototype._migrateCallback0=function(n){var i=(n._bitField,n._fulfillmentHandler0),r=n._rejectionHandler0,u=n._promise0,t=n._receiverAt(0);void 0===t&&(t=k);this._addCallbacks(i,r,u,t,null)},t.prototype._migrateCallbackAt=function(n,t){var r=n._fulfillmentHandlerAt(t),u=n._rejectionHandlerAt(t),f=n._promiseAt(t),i=n._receiverAt(t);void 0===i&&(i=k);this._addCallbacks(r,u,f,i,null)},t.prototype._addCallbacks=function(n,t,i,r,u){var f=this._length(),e;return(f>=65531&&(f=0,this._setLength(0)),0===f)?(this._promise0=i,this._receiver0=r,"function"==typeof n&&(this._fulfillmentHandler0=null===u?n:u.bind(n)),"function"==typeof t&&(this._rejectionHandler0=null===u?t:u.bind(t))):(e=4*f-4,this[e+2]=i,this[e+3]=r,"function"==typeof n&&(this[e+0]=null===u?n:u.bind(n)),"function"==typeof t&&(this[e+1]=null===u?t:u.bind(t))),this._setLength(f+1),f},t.prototype._proxy=function(n,t){this._addCallbacks(void 0,void 0,t,n,null)},t.prototype._resolveCallback=function(n,i){var u,r,e,s,o,h;if(0==(117506048&this._bitField)){if(n===this)return this._rejectCallback(y(),!1);if(u=f(n,this),!(u instanceof t))return this._fulfill(n);if(i&&this._propagateFrom(u,2),r=u._target(),r===this)return void this._reject(y());if(e=r._bitField,0==(50397184&e)){for(s=this._length(),s>0&&r._migrateCallback0(this),o=1;s>o;++o)r._migrateCallbackAt(this,o);this._setFollowing();this._setLength(0);this._setFollowee(r)}else 0!=(33554432&e)?this._fulfill(r._value()):0!=(16777216&e)?this._reject(r._reason()):(h=new d("late cancellation observer"),r._attachExtraTrace(h),this._reject(h))}},t.prototype._rejectCallback=function(n,t,i){var f=r.ensureErrorObject(n),e=f===n,o;e||i||!u.warnings()||(o="a promise was rejected with a non-error: "+r.classString(n),this._warn(o,!0));this._attachExtraTrace(f,t?e:!1);this._reject(n)},t.prototype._resolveFromExecutor=function(n){var t=this,i,r;this._captureStackTrace();this._pushContext();i=!0;r=this._execute(n,function(n){t._resolveCallback(n)},function(n){t._rejectCallback(n,i)});i=!1;this._popContext();void 0!==r&&t._rejectCallback(r,!0)},t.prototype._settlePromiseFromHandler=function(n,t,i,f){var o=f._bitField,e,s;0==(65536&o)&&(f._pushContext(),t===nt?i&&"number"==typeof i.length?e=w(n).apply(this._boundValue(),i):(e=a,e.e=new l("cannot .spread() a non-array: "+r.classString(i))):e=w(n).call(t,i),s=f._popContext(),o=f._bitField,0==(65536&o)&&(e===tt?f._reject(i):e===a?f._rejectCallback(e.e,!1):(u.checkForgottenReturns(e,s,"",f,this),f._resolveCallback(e))))},t.prototype._target=function(){for(var n=this;n._isFollowing();)n=n._followee();return n},t.prototype._followee=function(){return this._rejectionHandler0},t.prototype._setFollowee=function(n){this._rejectionHandler0=n},t.prototype._settlePromise=function(n,i,r,u){var f=n instanceof t,e=this._bitField,s=0!=(134217728&e);0!=(65536&e)?(f&&n._invokeInternalOnCancel(),r instanceof st&&r.isFinallyHandler()?(r.cancelPromise=n,w(i).call(r,u)===a&&n._reject(a.e)):i===p?n._fulfill(p.call(r)):r instanceof v?r._promiseCancelled(n):f||n instanceof o?n._cancel():r.cancel()):"function"==typeof i?f?(s&&n._setAsyncGuaranteed(),this._settlePromiseFromHandler(i,r,u,n)):i.call(r,u,n):r instanceof v?r._isResolved()||(0!=(33554432&e)?r._promiseFulfilled(u,n):r._promiseRejected(u,n)):f&&(s&&n._setAsyncGuaranteed(),0!=(33554432&e)?n._fulfill(u):n._reject(u))},t.prototype._settlePromiseLateCancellationObserver=function(n){var r=n.handler,i=n.promise,f=n.receiver,u=n.value;"function"==typeof r?i instanceof t?this._settlePromiseFromHandler(r,f,u,i):r.call(f,u,i):i instanceof t&&i._reject(u)},t.prototype._settlePromiseCtx=function(n){this._settlePromise(n.promise,n.handler,n.receiver,n.value)},t.prototype._settlePromise0=function(n,t){var i=this._promise0,r=this._receiverAt(0);this._promise0=void 0;this._receiver0=void 0;this._settlePromise(i,n,r,t)},t.prototype._clearCallbackDataAtIndex=function(n){var t=4*n-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},t.prototype._fulfill=function(n){var t=this._bitField,i;if(!((117506048&t)>>>16)){if(n===this)return i=y(),this._attachExtraTrace(i),this._reject(i);this._setFulfilled();this._rejectionHandler0=n;(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():c.settlePromises(this))}},t.prototype._reject=function(n){var t=this._bitField;if(!((117506048&t)>>>16))return this._setRejected(),this._fulfillmentHandler0=n,this._isFinal()?c.fatalError(n,r.isNode):void((65535&t)>0?c.settlePromises(this):this._ensurePossibleRejectionHandled())},t.prototype._fulfillPromises=function(n,t){for(var i=1;n>i;i++){var r=this._fulfillmentHandlerAt(i),u=this._promiseAt(i),f=this._receiverAt(i);this._clearCallbackDataAtIndex(i);this._settlePromise(u,r,f,t)}},t.prototype._rejectPromises=function(n,t){for(var i=1;n>i;i++){var r=this._rejectionHandlerAt(i),u=this._promiseAt(i),f=this._receiverAt(i);this._clearCallbackDataAtIndex(i);this._settlePromise(u,r,f,t)}},t.prototype._settlePromises=function(){var n=this._bitField,t=65535&n,i,r;t>0&&(0!=(16842752&n)?(i=this._fulfillmentHandler0,this._settlePromise0(this._rejectionHandler0,i,n),this._rejectPromises(t,i)):(r=this._rejectionHandler0,this._settlePromise0(this._fulfillmentHandler0,r,n),this._fulfillPromises(t,r)),this._setLength(0));this._clearCancellationData()},t.prototype._settledValue=function(){var n=this._bitField;return 0!=(33554432&n)?this._rejectionHandler0:0!=(16777216&n)?this._fulfillmentHandler0:void 0},t.defer=t.pending=function(){u.deprecated("Promise.defer","new Promise");var n=new t(i);return{promise:n,resolve:ut,reject:ft}},r.notEnumerableProp(t,"_makeSelfResolutionError",y),n("./method")(t,i,f,e,u),n("./bind")(t,i,f,u),n("./cancel")(t,o,e,u),n("./direct_resolve")(t),n("./synchronous_inspection")(t),n("./join")(t,o,f,i,u),t.Promise=t,n("./map.js")(t,o,e,f,i,u),n("./call_get.js")(t),n("./using.js")(t,e,f,ot,i,u),n("./timers.js")(t,i,u),n("./generators.js")(t,e,i,f,v,u),n("./nodeify.js")(t),n("./promisify.js")(t,i),n("./props.js")(t,o,f,e),n("./race.js")(t,i,f,e),n("./reduce.js")(t,o,e,f,i,u),n("./settle.js")(t,o,u),n("./some.js")(t,o,e),n("./filter.js")(t,i),n("./each.js")(t,i),n("./any.js")(t),r.toFastProperties(t),r.toFastProperties(t.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new t(i)),u.setBounds(g.firstLineError,r.lastLineError),t}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(n,t){"use strict";t.exports=function(t,i,r,u,f){function s(n){switch(n){case-2:return[];case-3:return{}}}function e(n){var r=this._promise=new t(i);n instanceof t&&r._propagateFrom(n,3);r._setOnCancel(this);this._values=n;this._length=0;this._totalResolved=0;this._init(void 0,-2)}var o=n("./util");return o.isArray,o.inherits(e,f),e.prototype.length=function(){return this._length},e.prototype.promise=function(){return this._promise},e.prototype._init=function h(n,i){var f=r(this._values,this._promise),e,c;if(f instanceof t){if(f=f._target(),e=f._bitField,this._values=f,0==(50397184&e))return this._promise._setAsyncGuaranteed(),f._then(h,this._reject,void 0,this,i);if(0==(33554432&e))return 0!=(16777216&e)?this._reject(f._reason()):this._cancel();f=f._value()}return(f=o.asArray(f),null===f)?(c=u("expecting an array or an iterable object but got "+o.classString(f)).reason(),void this._promise._rejectCallback(c,!1)):0===f.length?void(-5===i?this._resolveEmptyArray():this._resolve(s(i))):void this._iterate(f)},e.prototype._iterate=function(n){var o=this.getActualLength(n.length),i;this._length=o;this._values=this.shouldCopyValues()?new Array(o):this._values;for(var s=this._promise,e=!1,f=null,u=0;o>u;++u)i=r(n[u],s),i instanceof t?(i=i._target(),f=i._bitField):f=null,e?null!==f&&i.suppressUnhandledRejections():null!==f?0==(50397184&f)?(i._proxy(this,u),this._values[u]=i):e=0!=(33554432&f)?this._promiseFulfilled(i._value(),u):0!=(16777216&f)?this._promiseRejected(i._reason(),u):this._promiseCancelled(u):e=this._promiseFulfilled(i,u);e||s._setAsyncGuaranteed()},e.prototype._isResolved=function(){return null===this._values},e.prototype._resolve=function(n){this._values=null;this._promise._fulfill(n)},e.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},e.prototype._reject=function(n){this._values=null;this._promise._rejectCallback(n,!1)},e.prototype._promiseFulfilled=function(n,t){this._values[t]=n;var i=++this._totalResolved;return i>=this._length?(this._resolve(this._values),!0):!1},e.prototype._promiseCancelled=function(){return this._cancel(),!0},e.prototype._promiseRejected=function(n){return this._totalResolved++,this._reject(n),!0},e.prototype._resultCancelled=function(){var n,i;if(!this._isResolved())if(n=this._values,this._cancel(),n instanceof t)n.cancel();else for(i=0;i<n.length;++i)n[i]instanceof t&&n[i].cancel()},e.prototype.shouldCopyValues=function(){return!0},e.prototype.getActualLength=function(n){return n},e}},{"./util":36}],24:[function(n,t){"use strict";t.exports=function(t,i){function c(n){return!it.test(n)}function e(n){try{return n.__isPromisified__===!0}catch(t){return!1}}function l(n,t,i){var u=r.getDataPropertyOrDefault(n,t+i,tt);return u?e(u):!1}function a(n,t,i){for(var f,e,u,r=0;r<n.length;r+=2)if(f=n[r],i.test(f))for(e=f.replace(i,""),u=0;u<n.length;u+=2)if(n[u]===e)throw new s("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t));}function v(n,t,i,u){for(var v=r.inheritedDataKeys(n),s=[],c=0;c<v.length;++c){var f=v[c],o=n[f],y=u===h?!0:h(f,o,n);"function"!=typeof o||e(o)||l(n,f,t)||!u(f,o,n,y)||s.push(f,o)}return a(s,t,i),s}function y(n,u,e,o,s,h){function l(){var e=u,r,o,s;u===f&&(e=this);r=new t(i);r._captureStackTrace();o="string"==typeof c&&this!==a?this[c]:n;s=b(r,h);try{o.apply(e,k(arguments,s))}catch(l){r._rejectCallback(d(l),!0,!0)}return r._isFateSealed()||r._setAsyncGuaranteed(),r}var a=function(){return this}(),c=n;return"string"==typeof c&&(n=o),r.notEnumerableProp(l,"__isPromisified__",!0),l}function o(n,t,i,e,o){for(var a,p=new RegExp(rt(t)+"$"),c=v(n,t,p,i),h=0,w=c.length;w>h;h+=2){var s=c[h],l=c[h+1],y=s+t;e===u?n[y]=u(s,f,s,l,t,o):(a=e(l,function(){return u(s,f,s,l,t,o)}),r.notEnumerableProp(a,"__isPromisified__",!0),n[y]=a)}return r.toFastProperties(n),n}function p(n,t,i){return u(n,t,void 0,n,null,i)}var w,f={},r=n("./util"),b=n("./nodeback"),k=r.withAppended,d=r.maybeWrapAsError,g=r.canEvaluate,s=n("./errors").TypeError,nt="Async",tt={__isPromisified__:!0},it=new RegExp("^(?:arity|length|name|arguments|caller|callee|prototype|__isPromisified__)$"),h=function(n){return r.isIdentifier(n)&&"_"!==n.charAt(0)&&"constructor"!==n},rt=function(n){return n.replace(/([$])/,"\\$")},u=g?w:y;t.promisify=function(n,t){if("function"!=typeof n)throw new s("expecting a function but got "+r.classString(n));if(e(n))return n;t=Object(t);var u=void 0===t.context?f:t.context,o=!!t.multiArgs,i=p(n,u,o);return r.copyDescriptors(n,i,c),i};t.promisifyAll=function(n,t){var l,i,f,e,a,c,v;if("function"!=typeof n&&"object"!=typeof n)throw new s("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");if(t=Object(t),l=!!t.multiArgs,i=t.suffix,"string"!=typeof i&&(i=nt),f=t.filter,"function"!=typeof f&&(f=h),e=t.promisifier,"function"!=typeof e&&(e=u),!r.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(a=r.inheritedDataKeys(n),c=0;c<a.length;++c)v=n[a[c]],"constructor"!==a[c]&&r.isClass(v)&&(o(v.prototype,i,f,e,l),o(v,i,f,e,l));return o(n,i,f,e,l)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(n,t){"use strict";t.exports=function(t,i,r,u){function f(n){var i,o=!1,u,r,t,f;if(void 0!==e&&n instanceof e)i=h(n),o=!0;else for(u=a.keys(n),r=u.length,i=new Array(2*r),t=0;r>t;++t)f=u[t],i[t]=n[f],i[t+r]=f;this.constructor$(i);this._isMap=o;this._init$(void 0,-3)}function o(n){var e,i=r(n);return l(i)?(e=i instanceof t?i._then(t.props,void 0,void 0,void 0,void 0):new f(i).promise(),i instanceof t&&e._propagateFrom(i,2),e):u("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}var e,s=n("./util"),l=s.isObject,a=n("./es5"),h,c;"function"==typeof Map&&(e=Map);h=function(){function i(i,r){this[n]=i;this[n+t]=r;n++}var n=0,t=0;return function(r){t=r.size;n=0;var u=new Array(2*r.size);return r.forEach(i,u),u}}();c=function(n){for(var u,f,i=new e,r=n.length/2|0,t=0;r>t;++t)u=n[r+t],f=n[t],i.set(u,f);return i};s.inherits(f,i);f.prototype._init=function(){};f.prototype._promiseFulfilled=function(n,t){var u,i;if(this._values[t]=n,u=++this._totalResolved,u>=this._length){if(this._isMap)i=c(this._values);else{i={};for(var f=this.length(),r=0,e=this.length();e>r;++r)i[this._values[r+f]]=this._values[r]}return this._resolve(i),!0}return!1};f.prototype.shouldCopyValues=function(){return!1};f.prototype.getActualLength=function(n){return n>>1};t.prototype.props=function(){return o(this)};t.props=function(n){return o(n)}}},{"./es5":13,"./util":36}],26:[function(n,t){"use strict";function r(n,t,i,r,u){for(var f=0;u>f;++f)i[f+r]=n[f+t],n[f+t]=void 0}function i(n){this._capacity=n;this._length=0;this._front=0}i.prototype._willBeOverCapacity=function(n){return this._capacity<n};i.prototype._pushOne=function(n){var t=this.length(),i;this._checkCapacity(t+1);i=this._front+t&this._capacity-1;this[i]=n;this._length=t+1};i.prototype._unshiftOne=function(n){var t=this._capacity,r,i;this._checkCapacity(this.length()+1);r=this._front;i=(r-1&t-1^t)-t;this[i]=n;this._front=i;this._length=this.length()+1};i.prototype.unshift=function(n,t,i){this._unshiftOne(i);this._unshiftOne(t);this._unshiftOne(n)};i.prototype.push=function(n,t,i){var r=this.length()+3,u,f;if(this._willBeOverCapacity(r))return this._pushOne(n),this._pushOne(t),void this._pushOne(i);u=this._front+r-3;this._checkCapacity(r);f=this._capacity-1;this[u+0&f]=n;this[u+1&f]=t;this[u+2&f]=i;this._length=r};i.prototype.shift=function(){var n=this._front,t=this[n];return this[n]=void 0,this._front=n+1&this._capacity-1,this._length--,t};i.prototype.length=function(){return this._length};i.prototype._checkCapacity=function(n){this._capacity<n&&this._resizeTo(this._capacity<<1)};i.prototype._resizeTo=function(n){var t=this._capacity;this._capacity=n;var i=this._front,u=this._length,f=i+u&t-1;r(this,0,this,t,f)};t.exports=i},{}],27:[function(n,t){"use strict";t.exports=function(t,i,r,u){function f(n,f){var l=r(n),s,c;if(l instanceof t)return o(l);if(n=e.asArray(n),null===n)return u("expecting an array or an iterable object but got "+e.classString(n));s=new t(i);void 0!==f&&s._propagateFrom(f,3);for(var a=s._fulfill,v=s._reject,h=0,y=n.length;y>h;++h)c=n[h],(void 0!==c||h in n)&&t.cast(c)._then(a,v,void 0,s,null);return s}var e=n("./util"),o=function(n){return n.then(function(t){return f(t,n)})};t.race=function(n){return f(n,void 0)};t.prototype.race=function(){return f(this,void 0)}}},{"./util":36}],28:[function(n,t){"use strict";t.exports=function(t,i,r,u,f,e){function o(n,i,r,u){this.constructor$(n);var e=v();this._fn=null===e?i:e.bind(i);void 0!==r&&(r=t.resolve(r),r._attachCancellationCallback(this));this._initialValue=r;this._currentCancellable=null;this._eachValues=u===f?[]:void 0;this._promise._captureStackTrace();this._init$(void 0,-5)}function h(n,t){this.isFulfilled()?t._resolve(n):t._reject(n)}function c(n,t,i,u){if("function"!=typeof t)return r("expecting a function but got "+s.classString(t));var f=new o(n,t,i,u);return f.promise()}function a(n){this.accum=n;this.array._gotAccum(n);var i=u(this.value,this.array._promise);return i instanceof t?(this.array._currentCancellable=i,i._then(l,void 0,void 0,this,void 0)):l.call(this,i)}function l(n){var i=this.array,r=i._promise,f=y(i._fn),u,o;return r._pushContext(),u=void 0!==i._eachValues?f.call(r._boundValue(),n,this.index,this.length):f.call(r._boundValue(),this.accum,n,this.index,this.length),u instanceof t&&(i._currentCancellable=u),o=r._popContext(),e.checkForgottenReturns(u,o,void 0!==i._eachValues?"Promise.each":"Promise.reduce",r),u}var v=t._getDomain,s=n("./util"),y=s.tryCatch;s.inherits(o,i);o.prototype._gotAccum=function(n){void 0!==this._eachValues&&n!==f&&this._eachValues.push(n)};o.prototype._eachComplete=function(n){return this._eachValues.push(n),this._eachValues};o.prototype._init=function(){};o.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)};o.prototype.shouldCopyValues=function(){return!1};o.prototype._resolve=function(n){this._promise._resolveCallback(n);this._values=null};o.prototype._resultCancelled=function(n){return n===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel()))};o.prototype._iterate=function(n){var i,r,u,f;if(this._values=n,u=n.length,void 0!==this._initialValue?(i=this._initialValue,r=0):(i=t.resolve(n[0]),r=1),this._currentCancellable=i,!i.isRejected())for(;u>r;++r)f={accum:null,value:n[r],index:r,length:u,array:this},i=i._then(a,void 0,void 0,f,void 0);void 0!==this._eachValues&&(i=i._then(this._eachComplete,void 0,void 0,this,void 0));i._then(h,h,void 0,i,this)};t.prototype.reduce=function(n,t){return c(this,n,t,null)};t.reduce=function(n,t,i,r){return c(n,t,i,r)}}},{"./util":36}],29:[function(n,t){"use strict";var i,r=n("./util"),s=function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n");},u=r.getNativePromise(),f,e,o;r.isNode&&"undefined"==typeof MutationObserver?(f=global.setImmediate,e=process.nextTick,i=r.isRecentNode?function(n){f.call(global,n)}:function(n){e.call(process,n)}):"function"==typeof u?(o=u.resolve(),i=function(n){o.then(n)}):i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(n){setImmediate(n)}:"undefined"!=typeof setTimeout?function(n){setTimeout(n,0)}:s:function(){var t=document.createElement("div"),i={attributes:!0},n=!1,r=document.createElement("div"),f=new MutationObserver(function(){t.classList.toggle("foo");n=!1}),u;return f.observe(r,i),u=function(){n||(n=!0,r.classList.toggle("foo"))},function(n){var r=new MutationObserver(function(){r.disconnect();n()});r.observe(t,i);u()}}();t.exports=i},{"./util":36}],30:[function(n,t){"use strict";t.exports=function(t,i,r){function u(n){this.constructor$(n)}var f=t.PromiseInspection,e=n("./util");e.inherits(u,i);u.prototype._promiseResolved=function(n,t){this._values[n]=t;var i=++this._totalResolved;return i>=this._length?(this._resolve(this._values),!0):!1};u.prototype._promiseFulfilled=function(n,t){var i=new f;return i._bitField=33554432,i._settledValueField=n,this._promiseResolved(t,i)};u.prototype._promiseRejected=function(n,t){var i=new f;return i._bitField=16777216,i._settledValueField=n,this._promiseResolved(t,i)};t.settle=function(n){return r.deprecated(".settle()",".reflect()"),new u(n).promise()};t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(n,t){"use strict";t.exports=function(t,i,r){function u(n){this.constructor$(n);this._howMany=0;this._unwrap=!1;this._initialized=!1}function f(n,t){if((0|t)!==t||0>t)return r("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var i=new u(n),f=i.promise();return i.setHowMany(t),i.init(),f}var e=n("./util"),s=n("./errors").RangeError,h=n("./errors").AggregateError,c=e.isArray,o={};e.inherits(u,i);u.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var n=c(this._values);!this._isResolved()&&n&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}};u.prototype.init=function(){this._initialized=!0;this._init()};u.prototype.setUnwrap=function(){this._unwrap=!0};u.prototype.howMany=function(){return this._howMany};u.prototype.setHowMany=function(n){this._howMany=n};u.prototype._promiseFulfilled=function(n){return this._addFulfilled(n),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1};u.prototype._promiseRejected=function(n){return this._addRejected(n),this._checkOutcome()};u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(o),this._checkOutcome())};u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new h,n=this.length();n<this._values.length;++n)this._values[n]!==o&&t.push(this._values[n]);return t.length>0?this._reject(t):this._cancel(),!0}return!1};u.prototype._fulfilled=function(){return this._totalResolved};u.prototype._rejected=function(){return this._values.length-this.length()};u.prototype._addRejected=function(n){this._values.push(n)};u.prototype._addFulfilled=function(n){this._values[this._totalResolved++]=n};u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};u.prototype._getRangeError=function(n){var t="Input array must contain at least "+this._howMany+" items but contains only "+n+" items";return new s(t)};u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};t.some=function(n,t){return f(n,t)};t.prototype.some=function(n){return f(this,n)};t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(n,t){"use strict";t.exports=function(n){function t(n){void 0!==n?(n=n._target(),this._bitField=n._bitField,this._settledValueField=n._isFateSealed()?n._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var i=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},u=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},f=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},e=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},o=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=n.prototype._isCancelled=function(){return 65536==(65536&this._bitField)};n.prototype.isCancelled=function(){return this._target()._isCancelled()};n.prototype.isPending=function(){return e.call(this._target())};n.prototype.isRejected=function(){return f.call(this._target())};n.prototype.isFulfilled=function(){return u.call(this._target())};n.prototype.isResolved=function(){return o.call(this._target())};n.prototype.value=function(){return i.call(this._target())};n.prototype.reason=function(){var n=this._target();return n._unsetRejectionIsUnhandled(),r.call(n)};n.prototype._value=function(){return this._settledValue()};n.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()};n.PromiseInspection=t}},{}],33:[function(n,t){"use strict";t.exports=function(t,i){function f(n,u){var e,f;if(c(n)){if(n instanceof t)return n;if(e=o(n),e===r)return u&&u._pushContext(),f=t.reject(e.e),u&&u._popContext(),f;if("function"==typeof e)return s(n)?(f=new t(i),n._then(f._fulfill,f._reject,void 0,f,null),f):h(n,e,u)}return n}function e(n){return n.then}function o(n){try{return e(n)}catch(t){return r.e=t,r}}function s(n){return l.call(n,"_promise0")}function h(n,f,e){function c(n){o&&(o._resolveCallback(n),o=null)}function l(n){o&&(o._rejectCallback(n,s,!0),o=null)}var o=new t(i),a=o,s,h;return e&&e._pushContext(),o._captureStackTrace(),e&&e._popContext(),s=!0,h=u.tryCatch(f).call(n,c,l),s=!1,o&&h===r&&(o._rejectCallback(h.e,!0,!0),o=null),a}var u=n("./util"),r=u.errorObj,c=u.isObject,l={}.hasOwnProperty;return f}},{"./util":36}],34:[function(n,t){"use strict";t.exports=function(t,i,r){function u(n){this.handle=n}function e(n){return clearTimeout(this.handle),n}function o(n){throw clearTimeout(this.handle),n;}var l=n("./util"),s=t.TimeoutError,h,f,c;u.prototype._resultCancelled=function(){clearTimeout(this.handle)};h=function(n){return f(+this).thenReturn(n)};f=t.delay=function(n,f){var e,o;return void 0!==f?(e=t.resolve(f)._then(h,null,null,n,void 0),r.cancellation()&&f instanceof t&&e._setOnCancel(f)):(e=new t(i),o=setTimeout(function(){e._fulfill()},+n),r.cancellation()&&e._setOnCancel(new u(o))),e._setAsyncGuaranteed(),e};t.prototype.delay=function(n){return f(n,this)};c=function(n,t,i){var r;r="string"!=typeof t?t instanceof Error?t:new s("operation timed out"):new s(t);l.markAsOriginatingFromRejection(r);n._attachExtraTrace(r);n._reject(r);null!=i&&i.cancel()};t.prototype.timeout=function(n,t){n=+n;var i,f,s=new u(setTimeout(function(){i.isPending()&&c(i,t,f)},n));return r.cancellation()?(f=this.then(),i=f._then(e,o,void 0,s,void 0),i._setOnCancel(s)):i=this._then(e,o,void 0,s,void 0),i}}},{"./util":36}],35:[function(n,t){"use strict";t.exports=function(t,i,r,u,f,e){function c(n){setTimeout(function(){throw n;},0)}function v(n){var t=r(n);return t!==n&&"function"==typeof n._isDisposable&&"function"==typeof n._getDisposer&&n._isDisposable()&&t._setDisposable(n._getDisposer()),t}function y(n,i){function u(){if(e>=s)return o._fulfill();var f=v(n[e++]);if(f instanceof t&&f._isDisposable()){try{f=r(f._getDisposer().tryDispose(i),n.promise)}catch(h){return c(h)}if(f instanceof t)return f._then(u,c,null,null,null)}u()}var e=0,s=n.length,o=new t(f);return u(),o}function o(n,t,i){this._data=n;this._promise=t;this._context=i}function s(n,t,i){this.constructor$(n,t,i)}function p(n){return o.isDisposer(n)?(this.resources[this.index]._setDisposable(n),n.promise()):n}function l(n){this.length=n;this.promise=null;this[n-1]=null}var h=n("./util"),w=n("./errors").TypeError,b=n("./util").inherits,a=h.errorObj,k=h.tryCatch;o.prototype.data=function(){return this._data};o.prototype.promise=function(){return this._promise};o.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null};o.prototype.tryDispose=function(n){var i=this.resource(),t=this._context,r;return void 0!==t&&t._pushContext(),r=null!==i?this.doDispose(i,n):null,void 0!==t&&t._popContext(),this._promise._unsetDisposable(),this._data=null,r};o.isDisposer=function(n){return null!=n&&"function"==typeof n.resource&&"function"==typeof n.tryDispose};b(s,o);s.prototype.doDispose=function(n,t){var i=this.data();return i.call(n,n,t)};l.prototype._resultCancelled=function(){for(var i,r=this.length,n=0;r>n;++n)i=this[n],i instanceof t&&i.cancel()};t.using=function(){var s=arguments.length,c,w,g,f,u,tt,nt,b,n,d,v;if(2>s)return i("you must pass at least 2 arguments to Promise.using");if(c=arguments[s-1],"function"!=typeof c)return i("expecting a function but got "+h.classString(c));for(g=!0,2===s&&Array.isArray(arguments[0])?(w=arguments[0],s=w.length,g=!1):(w=arguments,s--),f=new l(s),n=0;s>n;++n)u=w[n],o.isDisposer(u)?(tt=u,u=u.promise(),u._setDisposable(tt)):(nt=r(u),nt instanceof t&&(u=nt._then(p,null,null,{resources:f,index:n},void 0))),f[n]=u;for(b=new Array(f.length),n=0;n<b.length;++n)b[n]=t.resolve(f[n]).reflect();return d=t.all(b).then(function(n){for(var i,r,u,t=0;t<n.length;++t){if(i=n[t],i.isRejected())return a.e=i.error(),a;if(!i.isFulfilled())return void d.cancel();n[t]=i.value()}return v._pushContext(),c=k(c),r=g?c.apply(void 0,n):c(n),u=v._popContext(),e.checkForgottenReturns(r,u,"Promise.using",v),r}),v=d.lastly(function(){var n=new t.PromiseInspection(d);return y(f,n)}),f.promise=v,v._setOnCancel(f),v};t.prototype._setDisposable=function(n){this._bitField=131072|this._bitField;this._disposer=n};t.prototype._isDisposable=function(){return(131072&this._bitField)>0};t.prototype._getDisposer=function(){return this._disposer};t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField;this._disposer=void 0};t.prototype.disposer=function(n){if("function"==typeof n)return new s(n,this,u());throw new w;}}},{"./errors":12,"./util":36}],36:[function(n,t){"use strict";function p(){try{var n=s;return s=null,n.apply(this,arguments)}catch(t){return o.e=t,o}}function w(n){return s=n,p}function f(n){return null==n||n===!0||n===!1||"string"==typeof n||"number"==typeof n}function b(n){return"function"==typeof n||"object"==typeof n&&null!==n}function k(n){return f(n)?new Error(u(n)):n}function d(n,t){for(var u=n.length,r=new Array(u+1),i=0;u>i;++i)r[i]=n[i];return r[i]=t,r}function g(n,t,r){if(!i.isES5)return{}.hasOwnProperty.call(n,t)?n[t]:void 0;var u=Object.getOwnPropertyDescriptor(n,t);if(null!=u)return null==u.get&&null==u.set?u.value:r}function c(n,t,r){if(f(n))return n;var u={value:r,configurable:!0,enumerable:!1,writable:!0};return i.defineProperty(n,t,u),n}function nt(n){throw n;}function tt(n){try{if("function"==typeof n){var t=i.names(n.prototype),r=i.isES5&&t.length>1,u=t.length>0&&!(1===t.length&&"constructor"===t[0]),f=yt.test(n+"")&&i.names(n).length>0;if(r||u||f)return!0}return!1}catch(e){return!1}}function it(n){function t(){}t.prototype=n;for(var i=8;i--;)new t;return n}function rt(n){return pt.test(n)}function ut(n,t,i){for(var u=new Array(n),r=0;n>r;++r)u[r]=t+r+i;return u}function u(n){try{return n+""}catch(t){return"[no string representation]"}}function l(n){return null!==n&&"object"==typeof n&&"string"==typeof n.message&&"string"==typeof n.name}function ft(n){try{c(n,"isOperational",!0)}catch(t){}}function et(n){return null==n?!1:n instanceof Error.__BluebirdErrorTypes__.OperationalError||n.isOperational===!0}function e(n){return l(n)&&i.propertyIsWritable(n,"stack")}function a(n){return{}.toString.call(n)}function ot(n,t,r){for(var f,e=i.names(n),u=0;u<e.length;++u)if(f=e[u],r(f))try{i.defineProperty(t,f,i.getDescriptor(n,f))}catch(o){}}function st(n,t){return h?process.env[n]:t}function ht(){if("function"==typeof Promise)try{var n=new Promise(function(){});if("[object Promise]"==={}.toString.call(n))return Promise}catch(t){}}var i=n("./es5"),ct="undefined"==typeof navigator,o={e:{}},s,lt="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,at=function(n,t){function i(){this.constructor=n;this.constructor$=t;for(var i in t.prototype)r.call(t.prototype,i)&&"$"!==i.charAt(i.length-1)&&(this[i+"$"]=t.prototype[i])}var r={}.hasOwnProperty;return i.prototype=t.prototype,n.prototype=new i,n.prototype},vt=function(){var n=[Array.prototype,Object.prototype,Function.prototype],r=function(t){for(var i=0;i<n.length;++i)if(n[i]===t)return!0;return!1},u,t;return i.isES5?(u=Object.getOwnPropertyNames,function(n){for(var h,e,t,o,f=[],s=Object.create(null);null!=n&&!r(n);){try{h=u(n)}catch(c){return f}for(e=0;e<h.length;++e)t=h[e],s[t]||(s[t]=!0,o=Object.getOwnPropertyDescriptor(n,t),null!=o&&null==o.get&&null==o.set&&f.push(t));n=i.getPrototypeOf(n)}return f}):(t={}.hasOwnProperty,function(i){var f,u,e;if(r(i))return[];f=[];n:for(u in i)if(t.call(i,u))f.push(u);else{for(e=0;e<n.length;++e)if(t.call(n[e],u))continue n;f.push(u)}return f})}(),yt=/this\s*\.\s*\S+\s*=/,pt=/^[a-z$_][a-z$_0-9]*$/i,wt=function(){return"stack"in new Error?function(n){return e(n)?n:new Error(u(n))}:function(n){if(e(n))return n;try{throw new Error(u(n));}catch(t){return t}}}(),v=function(n){return i.isArray(n)?n:null},y,h,r;"undefined"!=typeof Symbol&&Symbol.iterator&&(y="function"==typeof Array.from?function(n){return Array.from(n)}:function(n){for(var t,i=[],r=n[Symbol.iterator]();!(t=r.next()).done;)i.push(t.value);return i},v=function(n){return i.isArray(n)?n:null!=n&&"function"==typeof n[Symbol.iterator]?y(n):null});h="undefined"!=typeof process&&"[object process]"===a(process).toLowerCase();r={isClass:tt,isIdentifier:rt,inheritedDataKeys:vt,getDataPropertyOrDefault:g,thrower:nt,isArray:i.isArray,asArray:v,notEnumerableProp:c,isPrimitive:f,isObject:b,isError:l,canEvaluate:ct,errorObj:o,tryCatch:w,inherits:at,withAppended:d,maybeWrapAsError:k,toFastProperties:it,filledRange:ut,toString:u,canAttachTrace:e,ensureErrorObject:wt,originatesFromRejection:et,markAsOriginatingFromRejection:ft,classString:a,copyDescriptors:ot,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:h,env:st,global:lt,getNativePromise:ht};r.isRecentNode=r.isNode&&function(){var n=process.versions.node.split(".").map(Number);return 0===n[0]&&n[1]>10||n[0]>0}();r.isNode&&r.toFastProperties(process);try{throw new Error;}catch(bt){r.lastLineError=bt}t.exports=r},{"./es5":13}]},{},[4])(4)});"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise);!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.JSZip=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t,i){"use strict";var u=n("./utils"),f=n("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(n){for(var f,e,o,h,c,l,a,v=[],t=0,i=n.length,s=i,y="string"!==u.getTypeOf(n);t<n.length;)s=i-t,y?(f=n[t++],e=t<i?n[t++]:0,o=t<i?n[t++]:0):(f=n.charCodeAt(t++),e=t<i?n.charCodeAt(t++):0,o=t<i?n.charCodeAt(t++):0),h=f>>2,c=(3&f)<<4|e>>4,l=s>1?(15&e)<<2|o>>6:64,a=s>2?63&o:64,v.push(r.charAt(h)+r.charAt(c)+r.charAt(l)+r.charAt(a));return v.join("")};i.decode=function(n){var c,l,a,v,o,e,s,i=0,h=0,y="data:",t,u;if(n.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");if(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=3*n.length/4,n.charAt(n.length-1)===r.charAt(64)&&t--,n.charAt(n.length-2)===r.charAt(64)&&t--,t%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=f.uint8array?new Uint8Array(0|t):new Array(0|t);i<n.length;)v=r.indexOf(n.charAt(i++)),o=r.indexOf(n.charAt(i++)),e=r.indexOf(n.charAt(i++)),s=r.indexOf(n.charAt(i++)),c=v<<2|o>>4,l=(15&o)<<4|e>>2,a=(3&e)<<6|s,u[h++]=c,64!==e&&(u[h++]=l),64!==s&&(u[h++]=a);return u}},{"./support":30,"./utils":32}],2:[function(n,t){"use strict";function r(n,t,i,r,u){this.compressedSize=n;this.uncompressedSize=t;this.crc32=i;this.compression=r;this.compressedContent=u}var u=n("./external"),f=n("./stream/DataWorker"),i=n("./stream/DataLengthProbe"),e=n("./stream/Crc32Probe"),i=n("./stream/DataLengthProbe");r.prototype={getContentWorker:function(){var n=new f(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return n.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch");}),n},getCompressedWorker:function(){return new f(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};r.createWorkerFrom=function(n,t,r){return n.pipe(new e).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)};t.exports=r},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,t,i){"use strict";var r=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}};i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,t){"use strict";function r(){for(var n,r,i=[],t=0;t<256;t++){for(n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;i[t]=n}return i}function u(n,t,r,u){var e=i,o=u+r,f;for(n^=-1,f=u;f<o;f++)n=n>>>8^e[255&(n^t[f])];return n^-1}function f(n,t,r,u){var e=i,o=u+r,f;for(n^=-1,f=u;f<o;f++)n=n>>>8^e[255&(n^t.charCodeAt(f))];return n^-1}var e=n("./utils"),i=r();t.exports=function(n,t){if("undefined"==typeof n||!n.length)return 0;var i="string"!==e.getTypeOf(n);return i?u(0|t,n,n.length,0):f(0|t,n,n.length,0)}},{"./utils":32}],5:[function(n,t,i){"use strict";i.base64=!1;i.binary=!1;i.dir=!1;i.createFolders=!0;i.date=null;i.compression=null;i.compressionOptions=null;i.comment=null;i.unixPermissions=null;i.dosPermissions=null},{}],6:[function(n,t){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:n("lie");t.exports={Promise:i}},{lie:58}],7:[function(n,t,i){"use strict";function r(n,t){u.call(this,"FlateWorker/"+n);this._pako=null;this._pakoAction=n;this._pakoOptions=t;this.meta={}}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=n("pako"),f=n("./utils"),u=n("./stream/GenericWorker"),s=e?"uint8array":"array";i.magic="\b\0";f.inherits(r,u);r.prototype.processChunk=function(n){this.meta=n.meta;null===this._pako&&this._createPako();this._pako.push(f.transformTo(s,n.data),!1)};r.prototype.flush=function(){u.prototype.flush.call(this);null===this._pako&&this._createPako();this._pako.push([],!0)};r.prototype.cleanUp=function(){u.prototype.cleanUp.call(this);this._pako=null};r.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var n=this;this._pako.onData=function(t){n.push({data:t,meta:n.meta})}};i.compressWorker=function(n){return new r("Deflate",n)};i.uncompressWorker=function(){return new r("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:59}],8:[function(n,t){"use strict";function r(n,t,i,r){f.call(this,"ZipFileWorker");this.bytesWritten=0;this.zipComment=t;this.zipPlatform=i;this.encodeFileName=r;this.streamFiles=n;this.accumulate=!1;this.contentBuffer=[];this.dirRecords=[];this.currentSourceOffset=0;this.entriesCount=0;this.currentFile=null;this._sources=[]}var u=n("../utils"),f=n("../stream/GenericWorker"),o=n("../utf8"),s=n("../crc32"),e=n("../signature"),i=function(n,t){for(var r="",i=0;i<t;i++)r+=String.fromCharCode(255&n),n>>>=8;return r},c=function(n,t){var i=n;return n||(i=t?16893:33204),(65535&i)<<16},l=function(n){return 63&(n||0)},h=function(n,t,r,f,h,a){var p,w,y=n.file,yt=n.compression,pt=a!==o.utf8encode,nt=u.transformTo("string",a(y.name)),st=u.transformTo("string",o.utf8encode(y.name)),rt=y.comment,ut=u.transformTo("string",a(rt)),ht=u.transformTo("string",o.utf8encode(rt)),ct=st.length!==y.name.length,lt=ht.length!==rt.length,d="",ft="",et="",ot=y.dir,b=y.date,k={crc32:0,compressedSize:0,uncompressedSize:0},tt,g,it,v,at,vt;return t&&!r||(k.crc32=n.crc32,k.compressedSize=n.compressedSize,k.uncompressedSize=n.uncompressedSize),tt=0,t&&(tt|=8),!pt&&(ct||lt)&&(tt|=2048),g=0,it=0,ot&&(g|=16),"UNIX"===h?(it=798,g|=c(y.unixPermissions,ot)):(it=20,g|=l(y.dosPermissions,ot)),p=b.getUTCHours(),p<<=6,p|=b.getUTCMinutes(),p<<=5,p|=b.getUTCSeconds()/2,w=b.getUTCFullYear()-1980,w<<=4,w|=b.getUTCMonth()+1,w<<=5,w|=b.getUTCDate(),ct&&(ft=i(1,1)+i(s(nt),4)+st,d+="up"+i(ft.length,2)+ft),lt&&(et=i(1,1)+i(s(ut),4)+ht,d+="uc"+i(et.length,2)+et),v="",v+="\n\0",v+=i(tt,2),v+=yt.magic,v+=i(p,2),v+=i(w,2),v+=i(k.crc32,4),v+=i(k.compressedSize,4),v+=i(k.uncompressedSize,4),v+=i(nt.length,2),v+=i(d.length,2),at=e.LOCAL_FILE_HEADER+v+nt+d,vt=e.CENTRAL_FILE_HEADER+i(it,2)+v+i(ut.length,2)+"\0\0\0\0"+i(g,4)+i(f,4)+nt+d+ut,{fileRecord:at,dirRecord:vt}},a=function(n,t,r,f,o){var s=u.transformTo("string",o(f));return e.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(n,2)+i(n,2)+i(t,4)+i(r,4)+i(s.length,2)+s},v=function(n){return e.DATA_DESCRIPTOR+i(n.crc32,4)+i(n.compressedSize,4)+i(n.uncompressedSize,4)};u.inherits(r,f);r.prototype.push=function(n){var i=n.meta.percent||0,t=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(n):(this.bytesWritten+=n.data.length,f.prototype.push.call(this,{data:n.data,meta:{currentFile:this.currentFile,percent:t?(i+100*(t-r-1))/t:100}}))};r.prototype.openedSource=function(n){var t,i;this.currentSourceOffset=this.bytesWritten;this.currentFile=n.file.name;t=this.streamFiles&&!n.file.dir;t?(i=h(n,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:i.fileRecord,meta:{percent:0}})):this.accumulate=!0};r.prototype.closedSource=function(n){this.accumulate=!1;var t=this.streamFiles&&!n.file.dir,i=h(n,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:v(n),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};r.prototype.flush=function(){for(var i,r,t=this.bytesWritten,n=0;n<this.dirRecords.length;n++)this.push({data:this.dirRecords[n],meta:{percent:100}});i=this.bytesWritten-t;r=a(this.dirRecords.length,i,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})};r.prototype.prepareNextSource=function(){this.previous=this._sources.shift();this.openedSource(this.previous.streamInfo);this.isPaused?this.previous.pause():this.previous.resume()};r.prototype.registerPrevious=function(n){this._sources.push(n);var t=this;return n.on("data",function(n){t.processChunk(n)}),n.on("end",function(){t.closedSource(t.previous.streamInfo);t._sources.length?t.prepareNextSource():t.end()}),n.on("error",function(n){t.error(n)}),this};r.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))};r.prototype.error=function(n){var i=this._sources,t;if(!f.prototype.error.call(this,n))return!1;for(t=0;t<i.length;t++)try{i[t].error(n)}catch(n){}return!0};r.prototype.lock=function(){f.prototype.lock.call(this);for(var t=this._sources,n=0;n<t.length;n++)t[n].lock()};t.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,t,i){"use strict";var r=n("../compressions"),u=n("./ZipFileWorker"),f=function(n,t){var i=n||t,u=r[i];if(!u)throw new Error(i+" is not a valid compression method !");return u};i.generateWorker=function(n,t,i){var r=new u(t.streamFiles,i,t.platform,t.encodeFileName),e=0;try{n.forEach(function(n,i){e++;var u=f(i.options.compression,t.compression),o=i.options.compressionOptions||t.compressionOptions||{},s=i.dir,h=i.date;i._compressWorker(u,o).withStreamInfo("file",{name:n,dir:s,date:h,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(r)});r.entriesCount=e}catch(o){r.error(o)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,t){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={};this.comment=null;this.root="";this.clone=function(){var t=new i,n;for(n in this)"function"!=typeof this[n]&&(t[n]=this[n]);return t}}i.prototype=n("./object");i.prototype.loadAsync=n("./load");i.support=n("./support");i.defaults=n("./defaults");i.version="3.1.5";i.loadAsync=function(n,t){return(new i).loadAsync(n,t)};i.external=n("./external");t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,t){"use strict";function f(n){return new i.Promise(function(t,i){var r=n.decompressed.getContentWorker().pipe(new s);r.on("error",function(n){i(n)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}var r=n("./utils"),i=n("./external"),e=n("./utf8"),r=n("./utils"),o=n("./zipEntries"),s=n("./stream/Crc32Probe"),u=n("./nodejsUtils");t.exports=function(n,t){var s=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),u.isNode&&u.isStream(n)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",n,!0,t.optimizedBinaryString,t.base64).then(function(n){var i=new o(t);return i.load(n),i}).then(function(n){var u=[i.Promise.resolve(n)],e=n.files,r;if(t.checkCRC32)for(r=0;r<e.length;r++)u.push(f(e[r]));return i.Promise.all(u)}).then(function(n){for(var i,r=n.shift(),f=r.files,u=0;u<f.length;u++)i=f[u],s.file(i.fileNameStr,i.decompressed,{binary:!0,optimizedBinaryString:!0,date:i.date,dir:i.dir,comment:i.fileCommentStr.length?i.fileCommentStr:null,unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions,createFolders:t.createFolders});return r.zipComment.length&&(s.comment=r.zipComment),s})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,t){"use strict";function i(n,t){r.call(this,"Nodejs stream input adapter for "+n);this._upstreamEnded=!1;this._bindStream(t)}var u=n("../utils"),r=n("../stream/GenericWorker");u.inherits(i,r);i.prototype._bindStream=function(n){var t=this;this._stream=n;n.pause();n.on("data",function(n){t.push({data:n,meta:{percent:0}})}).on("error",function(n){t.isPaused?this.generatedError=n:t.error(n)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};i.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)};i.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,t){"use strict";function i(n,t,i){r.call(this,t);this._helper=n;var u=this;n.on("data",function(n,t){u.push(n)||u._helper.pause();i&&i(t)}).on("error",function(n){u.emit("error",n)}).on("end",function(){u.push(null)})}var r=n("readable-stream").Readable,u=n("../utils");u.inherits(i,r);i.prototype._read=function(){this._helper.resume()};t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(n,t){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(n,t){return new Buffer(n,t)},allocBuffer:function(n){return Buffer.alloc?Buffer.alloc(n):new Buffer(n)},isBuffer:function(n){return Buffer.isBuffer(n)},isStream:function(n){return n&&"function"==typeof n.on&&"function"==typeof n.pause&&"function"==typeof n.resume}}},{}],15:[function(n,t){"use strict";function r(n){return"[object RegExp]"===Object.prototype.toString.call(n)}var l=n("./utf8"),i=n("./utils"),u=n("./stream/GenericWorker"),a=n("./stream/StreamHelper"),f=n("./defaults"),e=n("./compressedObject"),v=n("./zipObject"),y=n("./generate"),o=n("./nodejsUtils"),p=n("./nodejs/NodejsStreamInputAdapter"),s=function(n,t,r){var a,y=i.getTypeOf(t),s=i.extend(r||{},f),b,k,l,d;s.date=s.date||new Date;null!==s.compression&&(s.compression=s.compression.toUpperCase());"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8));s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0);s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0);s.dir&&(n=h(n));s.createFolders&&(a=w(n))&&c.call(this,a,!0);b="string"===y&&s.binary===!1&&s.base64===!1;r&&"undefined"!=typeof r.binary||(s.binary=!b);k=t instanceof e&&0===t.uncompressedSize;(k||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",y="string");l=null;l=t instanceof e||t instanceof u?t:o.isNode&&o.isStream(t)?new p(n,t):i.prepareContent(n,t,s.binary,s.optimizedBinaryString,s.base64);d=new v(n,l,s);this.files[n]=d},w=function(n){"/"===n.slice(-1)&&(n=n.substring(0,n.length-1));var t=n.lastIndexOf("/");return t>0?n.substring(0,t):""},h=function(n){return"/"!==n.slice(-1)&&(n+="/"),n},c=function(n,t){return t="undefined"!=typeof t?t:f.createFolders,n=h(n),this.files[n]||s.call(this,n,null,{dir:!0,createFolders:t}),this.files[n]},b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");},forEach:function(n){var t,i,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=t.slice(this.root.length,t.length),i&&t.slice(0,this.root.length)===this.root&&n(i,r))},filter:function(n){var t=[];return this.forEach(function(i,r){n(i,r)&&t.push(r)}),t},file:function(n,t,i){var f,u;return 1===arguments.length?r(n)?(f=n,this.filter(function(n,t){return!t.dir&&f.test(n)})):(u=this.files[this.root+n],u&&!u.dir?u:null):(n=this.root+n,s.call(this,n,t,i),this)},folder:function(n){if(!n)return this;if(r(n))return this.filter(function(t,i){return i.dir&&n.test(t)});var i=this.root+n,u=c.call(this,i),t=this.clone();return t.root=u.name,t},remove:function(n){var t,r,i;if(n=this.root+n,t=this.files[n],t||("/"!==n.slice(-1)&&(n+="/"),t=this.files[n]),t&&!t.dir)delete this.files[n];else for(r=this.filter(function(t,i){return i.name.slice(0,n.length)===n}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");},generateInternalStream:function(n){var r,t={},f;try{if(t=i.extend(n||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode}),t.type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");i.checkSupport(t.type);"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX");"win32"===t.platform&&(t.platform="DOS");f=t.comment||this.comment||"";r=y.generateWorker(this,t,f)}catch(e){r=new u("error");r.error(e)}return new a(r,t.type||"string",t.mimeType)},generateAsync:function(n,t){return this.generateInternalStream(n).accumulate(t)},generateNodeStream:function(n,t){return n=n||{},n.type||(n.type="nodebuffer"),this.generateInternalStream(n).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,t){t.exports=n("stream")},{stream:void 0}],17:[function(n,t){"use strict";function i(n){r.call(this,n);for(var t=0;t<this.data.length;t++)n[t]=255&n[t]}var r=n("./DataReader"),u=n("../utils");u.inherits(i,r);i.prototype.byteAt=function(n){return this.data[this.zero+n]};i.prototype.lastIndexOfSignature=function(n){for(var i=n.charCodeAt(0),r=n.charCodeAt(1),u=n.charCodeAt(2),f=n.charCodeAt(3),t=this.length-4;t>=0;--t)if(this.data[t]===i&&this.data[t+1]===r&&this.data[t+2]===u&&this.data[t+3]===f)return t-this.zero;return-1};i.prototype.readAndCheckSignature=function(n){var i=n.charCodeAt(0),r=n.charCodeAt(1),u=n.charCodeAt(2),f=n.charCodeAt(3),t=this.readData(4);return i===t[0]&&r===t[1]&&u===t[2]&&f===t[3]};i.prototype.readData=function(n){if(this.checkOffset(n),0===n)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t};t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(n,t){"use strict";function i(n){this.data=n;this.length=n.length;this.index=0;this.zero=0}var r=n("../utils");i.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?");},setIndex:function(n){this.checkIndex(n);this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var t,i=0;for(this.checkOffset(n),t=this.index+n-1;t>=this.index;t--)i=(i<<8)+this.byteAt(t);return this.index+=n,i},readString:function(n){return r.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC((n>>25&127)+1980,(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}};t.exports=i},{"../utils":32}],19:[function(n,t){"use strict";function i(n){r.call(this,n)}var r=n("./Uint8ArrayReader"),u=n("../utils");u.inherits(i,r);i.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t};t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,t){"use strict";function i(n){r.call(this,n)}var r=n("./DataReader"),u=n("../utils");u.inherits(i,r);i.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)};i.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero};i.prototype.readAndCheckSignature=function(n){var t=this.readData(4);return n===t};i.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t};t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(n,t){"use strict";function i(n){r.call(this,n)}var r=n("./ArrayReader"),u=n("../utils");u.inherits(i,r);i.prototype.readData=function(n){if(this.checkOffset(n),0===n)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t};t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(n,t){"use strict";var i=n("../utils"),r=n("../support"),u=n("./ArrayReader"),f=n("./StringReader"),e=n("./NodeBufferReader"),o=n("./Uint8ArrayReader");t.exports=function(n){var t=i.getTypeOf(n);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new e(n):r.uint8array?new o(i.transformTo("uint8array",n)):new u(i.transformTo("array",n)):new f(n)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,t,i){"use strict";i.LOCAL_FILE_HEADER="PK\x03\x04";i.CENTRAL_FILE_HEADER="PK\x01\x02";i.CENTRAL_DIRECTORY_END="PK\x05\x06";i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";i.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,t){"use strict";function i(n){r.call(this,"ConvertWorker to "+n);this.destType=n}var r=n("./GenericWorker"),u=n("../utils");u.inherits(i,r);i.prototype.processChunk=function(n){this.push({data:u.transformTo(this.destType,n.data),meta:n.meta})};t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(n,t){"use strict";function i(){r.call(this,"Crc32Probe");this.withStreamInfo("crc32",0)}var r=n("./GenericWorker"),u=n("../crc32"),f=n("../utils");f.inherits(i,r);i.prototype.processChunk=function(n){this.streamInfo.crc32=u(n.data,this.streamInfo.crc32||0);this.push(n)};t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,t){"use strict";function i(n){r.call(this,"DataLengthProbe for "+n);this.propName=n;this.withStreamInfo(n,0)}var u=n("../utils"),r=n("./GenericWorker");u.inherits(i,r);i.prototype.processChunk=function(n){if(n){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+n.data.length}r.prototype.processChunk.call(this,n)};t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(n,t){"use strict";function i(n){u.call(this,"DataWorker");var t=this;this.dataIsReady=!1;this.index=0;this.max=0;this.data=null;this.type="";this._tickScheduled=!1;n.then(function(n){t.dataIsReady=!0;t.data=n;t.max=n&&n.length||0;t.type=r.getTypeOf(n);t.isPaused||t._tickAndRepeat()},function(n){t.error(n)})}var r=n("../utils"),u=n("./GenericWorker"),f=16384;r.inherits(i,u);i.prototype.cleanUp=function(){u.prototype.cleanUp.call(this);this.data=null};i.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)};i.prototype._tickAndRepeat=function(){this._tickScheduled=!1;this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var i=f,n=null,t=Math.min(this.max,this.index+i);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,t);break;case"uint8array":n=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":n=this.data.slice(this.index,t)}return this.index=t,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})};t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(n,t){"use strict";function i(n){this.name=n||"default";this.streamInfo={};this.generatedError=null;this.extraStreamInfo={};this.isPaused=!0;this.isFinished=!1;this.isLocked=!1;this._listeners={data:[],end:[],error:[]};this.previous=null}i.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end");this.cleanUp();this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,t){return this._listeners[n].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null;this._listeners=[]},emit:function(n,t){if(this._listeners[n])for(var i=0;i<this._listeners[n].length;i++)this._listeners[n][i].call(this,t)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo;this.mergeStreamInfo();this.previous=n;var t=this;return n.on("data",function(n){t.processChunk(n)}),n.on("end",function(){t.end()}),n.on("error",function(n){t.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var n=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,t){return this.extraStreamInfo[n]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0;this.previous&&this.previous.lock()},toString:function(){var n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}};t.exports=i},{}],29:[function(n,t){"use strict";function f(n,t,r){switch(n){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return c.encode(t);default:return i.transformTo(n,t)}}function e(n,t){for(var u=0,r=null,f=0,i=0;i<t.length;i++)f+=t[i].length;switch(n){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(f),i=0;i<t.length;i++)r.set(t[i],u),u+=t[i].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+n+"'");}}function o(n,t){return new a.Promise(function(i,r){var u=[],o=n._internalType,s=n._outputType,h=n._mimeType;n.on("data",function(n,i){u.push(n);t&&t(i)}).on("error",function(n){u=[];r(n)}).on("end",function(){try{var n=f(s,e(o,u),h);i(n)}catch(t){r(t)}u=[]}).resume()})}function r(n,t,r){var u=t;switch(t){case"blob":case"arraybuffer":u="uint8array";break;case"base64":u="string"}try{this._internalType=u;this._outputType=t;this._mimeType=r;i.checkSupport(u);this._worker=n.pipe(new s(u));n.lock()}catch(f){this._worker=new h("error");this._worker.error(f)}}var i=n("../utils"),s=n("./ConvertWorker"),h=n("./GenericWorker"),c=n("../base64"),l=n("../support"),a=n("../external"),u=null;if(l.nodestream)try{u=n("../nodejs/NodejsStreamOutputAdapter")}catch(v){}r.prototype={accumulate:function(n){return o(this,n)},on:function(n,t){var r=this;return"data"===n?this._worker.on(n,function(n){t.call(r,n.data,n.meta)}):this._worker.on(n,function(){i.delay(t,arguments,r)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(n){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},n)}};t.exports=r},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,t,i){"use strict";var r,f,u;if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{f=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;u=new f;u.append(r);i.blob=0===u.getBlob("application/zip").size}catch(e){i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch(e){i.nodestream=!1}},{"readable-stream":16}],31:[function(n,t,i){"use strict";function o(){s.call(this,"utf-8 decode");this.leftOver=null}function h(){s.call(this,"utf-8 encode")}for(var f=n("./utils"),u=n("./support"),c=n("./nodejsUtils"),s=n("./stream/GenericWorker"),e=new Array(256),r=0;r<256;r++)e[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;e[254]=e[254]=1;var l=function(n){for(var r,t,e,f,s=n.length,o=0,i=0;i<s;i++)t=n.charCodeAt(i),55296==(64512&t)&&i+1<s&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(r=u.uint8array?new Uint8Array(o):new Array(o),f=0,i=0;f<o;i++)t=n.charCodeAt(i),55296==(64512&t)&&i+1<s&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),t<128?r[f++]=t:t<2048?(r[f++]=192|t>>>6,r[f++]=128|63&t):t<65536?(r[f++]=224|t>>>12,r[f++]=128|t>>>6&63,r[f++]=128|63&t):(r[f++]=240|t>>>18,r[f++]=128|t>>>12&63,r[f++]=128|t>>>6&63,r[f++]=128|63&t);return r},a=function(n,t){var i;for(t=t||n.length,t>n.length&&(t=n.length),i=t-1;i>=0&&128==(192&n[i]);)i--;return i<0?t:0===i?t:i+e[n[i]]>t?i:t},v=function(n){for(var t,u,s=n.length,i=new Array(2*s),r=0,o=0;o<s;)if(t=n[o++],t<128)i[r++]=t;else if(u=e[t],u>4)i[r++]=65533,o+=u-1;else{for(t&=2===u?31:3===u?15:7;u>1&&o<s;)t=t<<6|63&n[o++],u--;u>1?i[r++]=65533:t<65536?i[r++]=t:(t-=65536,i[r++]=55296|t>>10&1023,i[r++]=56320|1023&t)}return i.length!==r&&(i.subarray?i=i.subarray(0,r):i.length=r),f.applyFromCharCode(i)};i.utf8encode=function(n){return u.nodebuffer?c.newBufferFrom(n,"utf-8"):l(n)};i.utf8decode=function(n){return u.nodebuffer?f.transformTo("nodebuffer",n).toString("utf-8"):(n=f.transformTo(u.uint8array?"uint8array":"array",n),v(n))};f.inherits(o,s);o.prototype.processChunk=function(n){var t=f.transformTo(u.uint8array?"uint8array":"array",n.data),o,r,e;this.leftOver&&this.leftOver.length&&(u.uint8array?(o=t,t=new Uint8Array(o.length+this.leftOver.length),t.set(this.leftOver,0),t.set(o,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null);r=a(t);e=t;r!==t.length&&(u.uint8array?(e=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(e=t.slice(0,r),this.leftOver=t.slice(r,t.length)));this.push({data:i.utf8decode(e),meta:n.meta})};o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};i.Utf8DecodeWorker=o;f.inherits(h,s);h.prototype.processChunk=function(n){this.push({data:i.utf8encode(n.data),meta:n.meta})};i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,t,i){"use strict";function a(n){var t=null;return t=u.uint8array?new Uint8Array(n.length):new Array(n.length),h(n,t)}function e(n){return n}function h(n,t){for(var i=0;i<n.length;++i)t[i]=255&n.charCodeAt(i);return t}function o(n){var t=65536,r=i.getTypeOf(n),u=!0;if("uint8array"===r?u=s.applyCanBeUsed.uint8array:"nodebuffer"===r&&(u=s.applyCanBeUsed.nodebuffer),u)for(;t>1;)try{return s.stringifyByChunk(n,r,t)}catch(f){t=Math.floor(t/2)}return s.stringifyByChar(n)}function c(n,t){for(var i=0;i<n.length;i++)t[i]=n[i];return t}var u=n("./support"),v=n("./base64"),f=n("./nodejsUtils"),y=n("core-js/library/fn/set-immediate"),l=n("./external"),s,r;i.newBlob=function(n,t){i.checkSupport("blob");try{return new Blob([n],{type:t})}catch(f){try{var u=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,r=new u;return r.append(n),r.getBlob(t)}catch(f){throw new Error("Bug : can't construct the Blob.");}}};s={stringifyByChunk:function(n,t,i){var f=[],r=0,u=n.length;if(u<=i)return String.fromCharCode.apply(null,n);for(;r<u;)"array"===t||"nodebuffer"===t?f.push(String.fromCharCode.apply(null,n.slice(r,Math.min(r+i,u)))):f.push(String.fromCharCode.apply(null,n.subarray(r,Math.min(r+i,u)))),r+=i;return f.join("")},stringifyByChar:function(n){for(var i="",t=0;t<n.length;t++)i+=String.fromCharCode(n[t]);return i},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(n){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&1===String.fromCharCode.apply(null,f.allocBuffer(1)).length}catch(n){return!1}}()}};i.applyFromCharCode=o;r={};r.string={string:e,array:function(n){return h(n,new Array(n.length))},arraybuffer:function(n){return r.string.uint8array(n).buffer},uint8array:function(n){return h(n,new Uint8Array(n.length))},nodebuffer:function(n){return h(n,f.allocBuffer(n.length))}};r.array={string:o,array:e,arraybuffer:function(n){return new Uint8Array(n).buffer},uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return f.newBufferFrom(n)}};r.arraybuffer={string:function(n){return o(new Uint8Array(n))},array:function(n){return c(new Uint8Array(n),new Array(n.byteLength))},arraybuffer:e,uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return f.newBufferFrom(new Uint8Array(n))}};r.uint8array={string:o,array:function(n){return c(n,new Array(n.length))},arraybuffer:function(n){return n.buffer},uint8array:e,nodebuffer:function(n){return f.newBufferFrom(n)}};r.nodebuffer={string:o,array:function(n){return c(n,new Array(n.length))},arraybuffer:function(n){return r.nodebuffer.uint8array(n).buffer},uint8array:function(n){return c(n,new Uint8Array(n.length))},nodebuffer:e};i.transformTo=function(n,t){if(t||(t=""),!n)return t;i.checkSupport(n);var u=i.getTypeOf(t);return r[u][n](t)};i.getTypeOf=function(n){return"string"==typeof n?"string":"[object Array]"===Object.prototype.toString.call(n)?"array":u.nodebuffer&&f.isBuffer(n)?"nodebuffer":u.uint8array&&n instanceof Uint8Array?"uint8array":u.arraybuffer&&n instanceof ArrayBuffer?"arraybuffer":void 0};i.checkSupport=function(n){var t=u[n.toLowerCase()];if(!t)throw new Error(n+" is not supported by this platform");};i.MAX_VALUE_16BITS=65535;i.MAX_VALUE_32BITS=-1;i.pretty=function(n){for(var i,r="",t=0;t<(n||"").length;t++)i=n.charCodeAt(t),r+="\\x"+(i<16?"0":"")+i.toString(16).toUpperCase();return r};i.delay=function(n,t,i){y(function(){n.apply(i||null,t||[])})};i.inherits=function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i};i.extend=function(){for(var t,i={},n=0;n<arguments.length;n++)for(t in arguments[n])arguments[n].hasOwnProperty(t)&&"undefined"==typeof i[t]&&(i[t]=arguments[n][t]);return i};i.prepareContent=function(n,t,r,f,e){var o=l.Promise.resolve(t).then(function(n){var t=u.blob&&(n instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n))!==-1);return t&&"undefined"!=typeof FileReader?new l.Promise(function(t,i){var r=new FileReader;r.onload=function(n){t(n.target.result)};r.onerror=function(n){i(n.target.error)};r.readAsArrayBuffer(n)}):n});return o.then(function(t){var u=i.getTypeOf(t);return u?("arraybuffer"===u?t=i.transformTo("uint8array",t):"string"===u&&(e?t=v.decode(t):r&&f!==!0&&(t=a(t))),t):l.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"core-js/library/fn/set-immediate":36}],33:[function(n,t){"use strict";function u(n){this.files=[];this.loadOptions=n}var f=n("./reader/readerFor"),r=n("./utils"),i=n("./signature"),e=n("./zipEntry"),o=(n("./utf8"),n("./support"));u.prototype={checkSignature:function(n){if(!this.reader.readAndCheckSignature(n)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(n)+")");}},isSignature:function(n,t){var u=this.reader.index,i,r;return this.reader.setIndex(n),i=this.reader.readString(4),r=i===t,this.reader.setIndex(u),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);var n=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",i=r.transformTo(t,n);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.reader.skip(4);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};for(var n,t,i,r=this.zip64EndOfCentralSize-44;0<r;)n=this.reader.readInt(2),t=this.reader.readInt(4),i=this.reader.readData(t),this.zip64ExtensibleData[n]={id:n,length:t,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported");},readLocalFiles:function(){for(var n,t=0;t<this.files.length;t++)n=this.files[t],this.reader.setIndex(n.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),n.readLocalPart(this.reader),n.handleUTF8(),n.processAttributes()},readCentralDir:function(){var n;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)n=new e({zip64:this.zip64},this.loadOptions),n.readCentralPart(this.reader),this.files.push(n);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length);},readEndOfCentral:function(){var n=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END),e,f,u,t;if(n<0){e=!this.isSignature(0,i.LOCAL_FILE_HEADER);throw e?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");}if(this.reader.setIndex(n),f=n,this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,n=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),n<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(n),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END);this.readBlockZip64EndOfCentral()}if(u=this.centralDirOffset+this.centralDirSize,this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize),t=f-u,t>0)this.isSignature(f,i.CENTRAL_FILE_HEADER)||(this.reader.zero=t);else if(t<0)throw new Error("Corrupted zip: missing "+Math.abs(t)+" bytes.");},prepareReader:function(n){this.reader=f(n)},load:function(n){this.prepareReader(n);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles()}};t.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(n,t){"use strict";function e(n,t){this.options=n;this.loadOptions=t}var f=n("./reader/readerFor"),i=n("./utils"),s=n("./compressedObject"),o=n("./crc32"),r=n("./utf8"),u=n("./compressions"),h=n("./support"),c=0,l=3,a=function(n){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===n)return u[t];return null};e.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(n){var t,r;if(n.skip(22),this.fileNameLength=n.readInt(2),r=n.readInt(2),this.fileName=n.readData(this.fileNameLength),n.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=a(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,n.readData(this.compressedSize))},readCentralPart:function(n){this.versionMadeBy=n.readInt(2);n.skip(2);this.bitFlag=n.readInt(2);this.compressionMethod=n.readString(2);this.date=n.readDate();this.crc32=n.readInt(4);this.compressedSize=n.readInt(4);this.uncompressedSize=n.readInt(4);var t=n.readInt(2);if(this.extraFieldsLength=n.readInt(2),this.fileCommentLength=n.readInt(2),this.diskNumberStart=n.readInt(2),this.internalFileAttributes=n.readInt(2),this.externalFileAttributes=n.readInt(4),this.localHeaderOffset=n.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");n.skip(t);this.readExtraFields(n);this.parseZIP64ExtraField(n);this.fileComment=n.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null;this.dosPermissions=null;var n=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes);n===c&&(this.dosPermissions=63&this.externalFileAttributes);n===l&&(this.unixPermissions=this.externalFileAttributes>>16&65535);this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var n=f(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=n.readInt(8));this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=n.readInt(8));this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=n.readInt(8));this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=n.readInt(4))}},readExtraFields:function(n){var t,i,r,u=n.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});n.index<u;)t=n.readInt(2),i=n.readInt(2),r=n.readData(i),this.extraFields[t]={id:t,length:i,value:r}},handleUTF8:function(){var u=h.uint8array?"uint8array":"array",n,f,t,e;this.useUTF8()?(this.fileNameStr=r.utf8decode(this.fileName),this.fileCommentStr=r.utf8decode(this.fileComment)):(n=this.findExtraFieldUnicodePath(),null!==n?this.fileNameStr=n:(f=i.transformTo(u,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(f)),t=this.findExtraFieldUnicodeComment(),null!==t?this.fileCommentStr=t:(e=i.transformTo(u,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789],n;return t?(n=f(t.value),1!==n.readInt(1)?null:o(this.fileName)!==n.readInt(4)?null:r.utf8decode(n.readData(t.length-5))):null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461],n;return t?(n=f(t.value),1!==n.readInt(1)?null:o(this.fileComment)!==n.readInt(4)?null:r.utf8decode(n.readData(t.length-5))):null}};t.exports=e},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,t){"use strict";var s=n("./stream/StreamHelper"),h=n("./stream/DataWorker"),i=n("./utf8"),r=n("./compressedObject"),e=n("./stream/GenericWorker"),u=function(n,t,i){this.name=n;this.dir=i.dir;this.date=i.date;this.comment=i.comment;this.unixPermissions=i.unixPermissions;this.dosPermissions=i.dosPermissions;this._data=t;this._dataBinary=i.binary;this.options={compression:i.compression,compressionOptions:i.compressionOptions}};u.prototype={internalStream:function(n){var t=null,r="string",u,f;try{if(!n)throw new Error("No output type specified.");r=n.toLowerCase();u="string"===r||"text"===r;"binarystring"!==r&&"text"!==r||(r="string");t=this._decompressWorker();f=!this._dataBinary;f&&!u&&(t=t.pipe(new i.Utf8EncodeWorker));!f&&u&&(t=t.pipe(new i.Utf8DecodeWorker))}catch(o){t=new e("error");t.error(o)}return new s(t,r,"")},async:function(n,t){return this.internalStream(n).accumulate(t)},nodeStream:function(n,t){return this.internalStream(n||"nodebuffer").toNodejsStream(t)},_compressWorker:function(n,t){if(this._data instanceof r&&this._data.compression.magic===n.magic)return this._data.getCompressedWorker();var u=this._decompressWorker();return this._dataBinary||(u=u.pipe(new i.Utf8EncodeWorker)),r.createWorkerFrom(u,n,t)},_decompressWorker:function(){return this._data instanceof r?this._data.getContentWorker():this._data instanceof e?this._data:new h(this._data)}};for(var o=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");},f=0;f<o.length;f++)u.prototype[o[f]]=c;t.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,t){n("../modules/web.immediate");t.exports=n("../modules/_core").setImmediate},{"../modules/_core":40,"../modules/web.immediate":56}],37:[function(n,t){t.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},{}],38:[function(n,t){var i=n("./_is-object");t.exports=function(n){if(!i(n))throw TypeError(n+" is not an object!");return n}},{"./_is-object":51}],39:[function(n,t){var i={}.toString;t.exports=function(n){return i.call(n).slice(8,-1)}},{}],40:[function(n,t){var i=t.exports={version:"2.3.0"};"number"==typeof __e&&(__e=i)},{}],41:[function(n,t){var i=n("./_a-function");t.exports=function(n,t,r){if(i(n),void 0===t)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},{"./_a-function":37}],42:[function(n,t){t.exports=!n("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":45}],43:[function(n,t){var r=n("./_is-object"),i=n("./_global").document,u=r(i)&&r(i.createElement);t.exports=function(n){return u?i.createElement(n):{}}},{"./_global":46,"./_is-object":51}],44:[function(n,t){var r=n("./_global"),f=n("./_core"),e=n("./_ctx"),o=n("./_hide"),u="prototype",i=function(n,t,s){var h,v,c,b=n&i.F,y=n&i.G,k=n&i.S,w=n&i.P,d=n&i.B,g=n&i.W,l=y?f:f[t]||(f[t]={}),p=l[u],a=y?r:k?r[t]:(r[t]||{})[u];y&&(s=t);for(h in s)v=!b&&a&&void 0!==a[h],v&&h in l||(c=v?a[h]:s[h],l[h]=y&&"function"!=typeof a[h]?s[h]:d&&v?e(c,r):g&&a[h]==c?function(n){var t=function(t,i,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,i)}return new n(t,i,r)}return n.apply(this,arguments)};return t[u]=n[u],t}(c):w&&"function"==typeof c?e(Function.call,c):c,w&&((l.virtual||(l.virtual={}))[h]=c,n&i.R&&p&&!p[h]&&o(p,h,c)))};i.F=1;i.G=2;i.S=4;i.P=8;i.B=16;i.W=32;i.U=64;i.R=128;t.exports=i},{"./_core":40,"./_ctx":41,"./_global":46,"./_hide":47}],45:[function(n,t){t.exports=function(n){try{return!!n()}catch(t){return!0}}},{}],46:[function(n,t){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],47:[function(n,t){var i=n("./_object-dp"),r=n("./_property-desc");t.exports=n("./_descriptors")?function(n,t,u){return i.f(n,t,r(1,u))}:function(n,t,i){return n[t]=i,n}},{"./_descriptors":42,"./_object-dp":52,"./_property-desc":53}],48:[function(n,t){t.exports=n("./_global").document&&document.documentElement},{"./_global":46}],49:[function(n,t){t.exports=!n("./_descriptors")&&!n("./_fails")(function(){return 7!=Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":42,"./_dom-create":43,"./_fails":45}],50:[function(n,t){t.exports=function(n,t,i){var r=void 0===i;switch(t.length){case 0:return r?n():n.call(i);case 1:return r?n(t[0]):n.call(i,t[0]);case 2:return r?n(t[0],t[1]):n.call(i,t[0],t[1]);case 3:return r?n(t[0],t[1],t[2]):n.call(i,t[0],t[1],t[2]);case 4:return r?n(t[0],t[1],t[2],t[3]):n.call(i,t[0],t[1],t[2],t[3])}return n.apply(i,t)}},{}],51:[function(n,t){t.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},{}],52:[function(n,t,i){var r=n("./_an-object"),u=n("./_ie8-dom-define"),f=n("./_to-primitive"),e=Object.defineProperty;i.f=n("./_descriptors")?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(o){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},{"./_an-object":38,"./_descriptors":42,"./_ie8-dom-define":49,"./_to-primitive":55}],53:[function(n,t){t.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},{}],54:[function(n,t){var r,e,o,s=n("./_ctx"),k=n("./_invoke"),a=n("./_html"),v=n("./_dom-create"),i=n("./_global"),y=i.process,h=i.setImmediate,c=i.clearImmediate,p=i.MessageChannel,l=0,u={},w="onreadystatechange",f=function(){var n=+this,t;u.hasOwnProperty(n)&&(t=u[n],delete u[n],t())},b=function(n){f.call(n.data)};h&&c||(h=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return u[++l]=function(){k("function"==typeof n?n:Function(n),t)},r(l),l},c=function(n){delete u[n]},"process"==n("./_cof")(y)?r=function(n){y.nextTick(s(f,n,1))}:p?(e=new p,o=e.port2,e.port1.onmessage=b,r=s(o.postMessage,o,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts?(r=function(n){i.postMessage(n+"","*")},i.addEventListener("message",b,!1)):r=w in v("script")?function(n){a.appendChild(v("script"))[w]=function(){a.removeChild(this);f.call(n)}}:function(n){setTimeout(s(f,n,1),0)});t.exports={set:h,clear:c}},{"./_cof":39,"./_ctx":41,"./_dom-create":43,"./_global":46,"./_html":48,"./_invoke":50}],55:[function(n,t){var i=n("./_is-object");t.exports=function(n,t){if(!i(n))return n;var r,u;if(t&&"function"==typeof(r=n.toString)&&!i(u=r.call(n))||"function"==typeof(r=n.valueOf)&&!i(u=r.call(n))||!t&&"function"==typeof(r=n.toString)&&!i(u=r.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},{"./_is-object":51}],56:[function(n){var t=n("./_export"),i=n("./_task");t(t.G+t.B,{setImmediate:i.set,clearImmediate:i.clear})},{"./_export":44,"./_task":54}],57:[function(n,t){(function(n){"use strict";function r(){e=!0;for(var n,r,t=i.length;t;){for(r=i,i=[],n=-1;++n<t;)r[n]();t=i.length}e=!1}function c(n){1!==i.push(n)||e||u()}var u,o=n.MutationObserver||n.WebKitMutationObserver,f,e,i;if(o){var s=0,l=new o(r),h=n.document.createTextNode("");l.observe(h,{characterData:!0});u=function(){h.data=s=++s%2}}else n.setImmediate||"undefined"==typeof n.MessageChannel?u="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){r();t.onreadystatechange=null;t.parentNode.removeChild(t);t=null};n.document.documentElement.appendChild(t)}:function(){setTimeout(r,0)}:(f=new n.MessageChannel,f.port1.onmessage=r,u=function(){f.port2.postMessage(0)});i=[];t.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(n,t){"use strict";function u(){}function r(n){if("function"!=typeof n)throw new TypeError("resolver must be a function");this.state=l;this.queue=[];this.outcome=void 0;n!==u&&s(this,n)}function f(n,t,i){this.promise=n;"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled);"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function e(n,t,r){b(function(){var u;try{u=t(r)}catch(f){return i.reject(n,f)}u===n?i.reject(n,new TypeError("Cannot resolve promise with itself")):i.resolve(n,u)})}function a(n){var t=n&&n.then;if(n&&("object"==typeof n||"function"==typeof n)&&"function"==typeof t)return function(){t.apply(n,arguments)}}function s(n,t){function u(t){r||(r=!0,i.reject(n,t))}function e(t){r||(r=!0,i.resolve(n,t))}function o(){t(e,u)}var r=!1,f=h(o);"error"===f.status&&u(f.value)}function h(n,t){var i={};try{i.value=n(t);i.status="success"}catch(r){i.status="error";i.value=r}return i}function v(n){return n instanceof this?n:i.resolve(new this(u),n)}function y(n){var t=new this(u);return i.reject(t,n)}function p(n){function s(n,u){function f(n){o[u]=n;++c!==t||r||(r=!0,i.resolve(e,o))}h.resolve(n).then(f,function(n){r||(r=!0,i.reject(e,n))})}var h=this,t,r;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));if(t=n.length,r=!1,!t)return this.resolve([]);for(var o=new Array(t),c=0,f=-1,e=new this(u);++f<t;)s(n[f],f);return e}function w(n){function o(n){s.resolve(n).then(function(n){t||(t=!0,i.resolve(r,n))},function(n){t||(t=!0,i.reject(r,n))})}var s=this,f,t,e,r;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));if(f=n.length,t=!1,!f)return this.resolve([]);for(e=-1,r=new this(u);++e<f;)o(n[e]);return r}var b=n("immediate"),i={},c=["REJECTED"],o=["FULFILLED"],l=["PENDING"];t.exports=r;r.prototype["catch"]=function(n){return this.then(null,n)};r.prototype.then=function(n,t){var i,r;return"function"!=typeof n&&this.state===o||"function"!=typeof t&&this.state===c?this:(i=new this.constructor(u),this.state!==l?(r=this.state===o?n:t,e(i,r,this.outcome)):this.queue.push(new f(i,n,t)),i)};f.prototype.callFulfilled=function(n){i.resolve(this.promise,n)};f.prototype.otherCallFulfilled=function(n){e(this.promise,this.onFulfilled,n)};f.prototype.callRejected=function(n){i.reject(this.promise,n)};f.prototype.otherCallRejected=function(n){e(this.promise,this.onRejected,n)};i.resolve=function(n,t){var r=h(a,t),u,f,e;if("error"===r.status)return i.reject(n,r.value);if(u=r.value,u)s(n,u);else for(n.state=o,n.outcome=t,f=-1,e=n.queue.length;++f<e;)n.queue[f].callFulfilled(t);return n};i.reject=function(n,t){n.state=c;n.outcome=t;for(var i=-1,r=n.queue.length;++i<r;)n.queue[i].callRejected(t);return n};r.resolve=v;r.reject=y;r.all=p;r.race=w},{immediate:57}],59:[function(n,t){"use strict";var r=n("./lib/utils/common").assign,u=n("./lib/deflate"),f=n("./lib/inflate"),e=n("./lib/zlib/constants"),i={};r(i,u,f,e);t.exports=i},{"./lib/deflate":60,"./lib/inflate":61,"./lib/utils/common":62,"./lib/zlib/constants":65}],60:[function(n,t,i){"use strict";function r(n){var t,i,o;if(!(this instanceof r))return new r(n);if(this.options=e.assign({level:k,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},n||{}),t=this.options,t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0,i=f.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy),i!==u)throw new Error(h[i]);if(t.header&&f.deflateSetHeader(this.strm,t.header),t.dictionary){if(o="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,i=f.deflateSetDictionary(this.strm,o),i!==u)throw new Error(h[i]);this._dict_set=!0}}function o(n,t){var i=new r(t);if(i.push(n,!0),i.err)throw i.msg||h[i.err];return i.result}function y(n,t){return t=t||{},t.raw=!0,o(n,t)}function p(n,t){return t=t||{},t.gzip=!0,o(n,t)}var f=n("./zlib/deflate"),e=n("./utils/common"),s=n("./utils/strings"),h=n("./zlib/messages"),w=n("./zlib/zstream"),l=Object.prototype.toString,b=0,c=4,u=0,a=1,v=2,k=-1,d=0,g=8;r.prototype.push=function(n,t){var r,o,i=this.strm,h=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:t===!0?c:b;i.input="string"==typeof n?s.string2buf(n):"[object ArrayBuffer]"===l.call(n)?new Uint8Array(n):n;i.next_in=0;i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new e.Buf8(h),i.next_out=0,i.avail_out=h),r=f.deflate(i,o),r!==a&&r!==u)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||o!==c&&o!==v)||("string"===this.options.to?this.onData(s.buf2binstring(e.shrinkBuf(i.output,i.next_out))):this.onData(e.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&r!==a);return o===c?(r=f.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===u):o!==v||(this.onEnd(u),i.avail_out=0,!0)};r.prototype.onData=function(n){this.chunks.push(n)};r.prototype.onEnd=function(n){n===u&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks));this.chunks=[];this.err=n;this.msg=this.strm.msg};i.Deflate=r;i.deflate=o;i.deflateRaw=y;i.gzip=p},{"./utils/common":62,"./utils/strings":63,"./zlib/deflate":67,"./zlib/messages":72,"./zlib/zstream":74}],61:[function(n,t,i){"use strict";function u(n){var t,i;if(!(this instanceof u))return new u(n);if(this.options=e.assign({chunkSize:16384,windowBits:0,to:""},n||{}),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)||n&&n.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 a,this.strm.avail_out=0,i=f.inflateInit2(this.strm,t.windowBits),i!==r.Z_OK)throw new Error(h[i]);this.header=new v;f.inflateGetHeader(this.strm,this.header)}function s(n,t){var i=new u(t);if(i.push(n,!0),i.err)throw i.msg||h[i.err];return i.result}function l(n,t){return t=t||{},t.raw=!0,s(n,t)}var f=n("./zlib/inflate"),e=n("./utils/common"),o=n("./utils/strings"),r=n("./zlib/constants"),h=n("./zlib/messages"),a=n("./zlib/zstream"),v=n("./zlib/gzheader"),c=Object.prototype.toString;u.prototype.push=function(n,t){var u,s,a,l,p,w,i=this.strm,v=this.options.chunkSize,h=this.options.dictionary,y=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?r.Z_FINISH:r.Z_NO_FLUSH;i.input="string"==typeof n?o.binstring2buf(n):"[object ArrayBuffer]"===c.call(n)?new Uint8Array(n):n;i.next_in=0;i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new e.Buf8(v),i.next_out=0,i.avail_out=v),u=f.inflate(i,r.Z_NO_FLUSH),u===r.Z_NEED_DICT&&h&&(w="string"==typeof h?o.string2buf(h):"[object ArrayBuffer]"===c.call(h)?new Uint8Array(h):h,u=f.inflateSetDictionary(this.strm,w)),u===r.Z_BUF_ERROR&&y===!0&&(u=r.Z_OK,y=!1),u!==r.Z_STREAM_END&&u!==r.Z_OK)return this.onEnd(u),this.ended=!0,!1;i.next_out&&(0!==i.avail_out&&u!==r.Z_STREAM_END&&(0!==i.avail_in||s!==r.Z_FINISH&&s!==r.Z_SYNC_FLUSH)||("string"===this.options.to?(a=o.utf8border(i.output,i.next_out),l=i.next_out-a,p=o.buf2string(i.output,a),i.next_out=l,i.avail_out=v-l,l&&e.arraySet(i.output,i.output,a,l,0),this.onData(p)):this.onData(e.shrinkBuf(i.output,i.next_out))));0===i.avail_in&&0===i.avail_out&&(y=!0)}while((i.avail_in>0||0===i.avail_out)&&u!==r.Z_STREAM_END);return u===r.Z_STREAM_END&&(s=r.Z_FINISH),s===r.Z_FINISH?(u=f.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===r.Z_OK):s!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),i.avail_out=0,!0)};u.prototype.onData=function(n){this.chunks.push(n)};u.prototype.onEnd=function(n){n===r.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks));this.chunks=[];this.err=n;this.msg=this.strm.msg};i.Inflate=u;i.inflate=s;i.inflateRaw=l;i.ungzip=s},{"./utils/common":62,"./utils/strings":63,"./zlib/constants":65,"./zlib/gzheader":68,"./zlib/inflate":70,"./zlib/messages":72,"./zlib/zstream":74}],62:[function(n,t,i){"use strict";var f="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,r,u;i.assign=function(n){for(var t,i,r=Array.prototype.slice.call(arguments,1);r.length;)if(t=r.shift(),t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i])}return n};i.shrinkBuf=function(n,t){return n.length===t?n:n.subarray?n.subarray(0,t):(n.length=t,n)};r={arraySet:function(n,t,i,r,u){if(t.subarray&&n.subarray)return void n.set(t.subarray(i,i+r),u);for(var f=0;f<r;f++)n[u+f]=t[i+f]},flattenChunks:function(n){var t,i,r,u,f,e;for(r=0,t=0,i=n.length;t<i;t++)r+=n[t].length;for(e=new Uint8Array(r),u=0,t=0,i=n.length;t<i;t++)f=n[t],e.set(f,u),u+=f.length;return e}};u={arraySet:function(n,t,i,r,u){for(var f=0;f<r;f++)n[u+f]=t[i+f]},flattenChunks:function(n){return[].concat.apply([],n)}};i.setTyped=function(n){n?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,u))};i.setTyped(f)},{}],63:[function(n,t,i){"use strict";function e(n,t){if(t<65537&&(n.subarray&&s||!n.subarray&&o))return String.fromCharCode.apply(null,f.shrinkBuf(n,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(n[i]);return r}var f=n("./common"),o=!0,s=!0,u,r;try{String.fromCharCode.apply(null,[0])}catch(h){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){s=!1}for(u=new f.Buf8(256),r=0;r<256;r++)u[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;u[254]=u[254]=1;i.string2buf=function(n){for(var r,t,e,u,o=n.length,s=0,i=0;i<o;i++)t=n.charCodeAt(i),55296==(64512&t)&&i+1<o&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(r=new f.Buf8(s),u=0,i=0;u<s;i++)t=n.charCodeAt(i),55296==(64512&t)&&i+1<o&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),t<128?r[u++]=t:t<2048?(r[u++]=192|t>>>6,r[u++]=128|63&t):t<65536?(r[u++]=224|t>>>12,r[u++]=128|t>>>6&63,r[u++]=128|63&t):(r[u++]=240|t>>>18,r[u++]=128|t>>>12&63,r[u++]=128|t>>>6&63,r[u++]=128|63&t);return r};i.buf2binstring=function(n){return e(n,n.length)};i.binstring2buf=function(n){for(var i=new f.Buf8(n.length),t=0,r=i.length;t<r;t++)i[t]=n.charCodeAt(t);return i};i.buf2string=function(n,t){for(var i,f,h=t||n.length,o=new Array(2*h),r=0,s=0;s<h;)if(i=n[s++],i<128)o[r++]=i;else if(f=u[i],f>4)o[r++]=65533,s+=f-1;else{for(i&=2===f?31:3===f?15:7;f>1&&s<h;)i=i<<6|63&n[s++],f--;f>1?o[r++]=65533:i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|1023&i)}return e(o,r)};i.utf8border=function(n,t){var i;for(t=t||n.length,t>n.length&&(t=n.length),i=t-1;i>=0&&128==(192&n[i]);)i--;return i<0?t:0===i?t:i+u[n[i]]>t?i:t}},{"./common":62}],64:[function(n,t){"use strict";function i(n,t,i,r){for(var u=65535&n|0,f=n>>>16&65535|0,e=0;0!==i;){e=i>2e3?2e3:i;i-=e;do u=u+t[r++]|0,f=f+u|0;while(--e);u%=65521;f%=65521}return u|f<<16|0}t.exports=i},{}],65:[function(n,t){"use strict";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}},{}],66:[function(n,t){"use strict";function i(){for(var n,r,i=[],t=0;t<256;t++){for(n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;i[t]=n}return i}function r(n,t,i,r){var e=u,o=r+i,f;for(n^=-1,f=r;f<o;f++)n=n>>>8^e[255&(n^t[f])];return n^-1}var u=i();t.exports=r},{}],67:[function(n,t,i){"use strict";function v(n,t){return n.msg=wi[t],t}function kt(n){return(n<<1)-(n>4?9:0)}function y(n){for(var t=n.length;--t>=0;)n[t]=0}function p(n){var i=n.state,t=i.pending;t>n.avail_out&&(t=n.avail_out);0!==t&&(o.arraySet(n.output,i.pending_buf,i.pending_out,t,n.next_out),n.next_out+=t,i.pending_out+=t,n.total_out+=t,n.avail_out-=t,i.pending-=t,0===i.pending&&(i.pending_out=0))}function e(n,t){s._tr_flush_block(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,t);n.block_start=n.strstart;p(n.strm)}function u(n,t){n.pending_buf[n.pending++]=t}function ft(n,t){n.pending_buf[n.pending++]=t>>>8&255;n.pending_buf[n.pending++]=255&t}function fi(n,t,i,r){var u=n.avail_in;return u>r&&(u=r),0===u?0:(n.avail_in-=u,o.arraySet(t,n.input,n.next_in,u,i),1===n.state.wrap?n.adler=ii(n.adler,t,u,i):2===n.state.wrap&&(n.adler=w(n.adler,t,u,i)),n.next_in+=u,n.total_in+=u,u)}function dt(n,t){var u,e,h=n.max_chain_length,r=n.strstart,f=n.prev_length,o=n.nice_match,v=n.strstart>n.w_size-c?n.strstart-(n.w_size-c):0,i=n.window,y=n.w_mask,p=n.prev,s=n.strstart+k,l=i[r+f-1],a=i[r+f];n.prev_length>=n.good_match&&(h>>=2);o>n.lookahead&&(o=n.lookahead);do if(u=t,i[u+f]===a&&i[u+f-1]===l&&i[u]===i[r]&&i[++u]===i[r+1]){r+=2;u++;do;while(i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&r<s);if(e=k-(s-r),r=s-k,e>f){if(n.match_start=t,f=e,e>=o)break;l=i[r+f-1];a=i[r+f]}}while((t=p[t&y])>v&&0!=--h);return f<=n.lookahead?f:n.lookahead}function d(n){var f,i,e,s,u,t=n.w_size;do{if(s=n.window_size-n.lookahead-n.strstart,n.strstart>=t+(t-c)){o.arraySet(n.window,n.window,t,t,0);n.match_start-=t;n.strstart-=t;n.block_start-=t;i=n.hash_size;f=i;do e=n.head[--f],n.head[f]=e>=t?e-t:0;while(--i);i=t;f=i;do e=n.prev[--f],n.prev[f]=e>=t?e-t:0;while(--i);s+=t}if(0===n.strm.avail_in)break;if(i=fi(n.strm,n.window,n.strstart+n.lookahead,s),n.lookahead+=i,n.lookahead+n.insert>=r)for(u=n.strstart-n.insert,n.ins_h=n.window[u],n.ins_h=(n.ins_h<<n.hash_shift^n.window[u+1])&n.hash_mask;n.insert&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[u+r-1])&n.hash_mask,n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++,n.insert--,!(n.lookahead+n.insert<r)););}while(n.lookahead<c&&0!==n.strm.avail_in)}function ei(n,t){var r=65535,i;for(r>n.pending_buf_size-5&&(r=n.pending_buf_size-5);;){if(n.lookahead<=1){if(d(n),0===n.lookahead&&t===g)return f;if(0===n.lookahead)break}if((n.strstart+=n.lookahead,n.lookahead=0,i=n.block_start+r,(0===n.strstart||n.strstart>=i)&&(n.lookahead=n.strstart-i,n.strstart=i,e(n,!1),0===n.strm.avail_out))||n.strstart-n.block_start>=n.w_size-c&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===b?(e(n,!0),0===n.strm.avail_out?tt:ut):n.strstart>n.block_start&&(e(n,!1),0===n.strm.avail_out)?f:f}function yt(n,t){for(var i,u;;){if(n.lookahead<c){if(d(n),n.lookahead<c&&t===g)return f;if(0===n.lookahead)break}if(i=0,n.lookahead>=r&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+r-1])&n.hash_mask,i=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),0!==i&&n.strstart-i<=n.w_size-c&&(n.match_length=dt(n,i)),n.match_length>=r)if(u=s._tr_tally(n,n.strstart-n.match_start,n.match_length-r),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=r){n.match_length--;do n.strstart++,n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+r-1])&n.hash_mask,i=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart;while(0!=--n.match_length);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+1])&n.hash_mask;else u=s._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(u&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=n.strstart<r-1?n.strstart:r-1,t===b?(e(n,!0),0===n.strm.avail_out?tt:ut):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function it(n,t){for(var i,u,o;;){if(n.lookahead<c){if(d(n),n.lookahead<c&&t===g)return f;if(0===n.lookahead)break}if(i=0,n.lookahead>=r&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+r-1])&n.hash_mask,i=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=r-1,0!==i&&n.prev_length<n.max_lazy_match&&n.strstart-i<=n.w_size-c&&(n.match_length=dt(n,i),n.match_length<=5&&(n.strategy===nr||n.match_length===r&&n.strstart-n.match_start>4096)&&(n.match_length=r-1)),n.prev_length>=r&&n.match_length<=n.prev_length){o=n.strstart+n.lookahead-r;u=s._tr_tally(n,n.strstart-1-n.prev_match,n.prev_length-r);n.lookahead-=n.prev_length-1;n.prev_length-=2;do++n.strstart<=o&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+r-1])&n.hash_mask,i=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart);while(0!=--n.prev_length);if(n.match_available=0,n.match_length=r-1,n.strstart++,u&&(e(n,!1),0===n.strm.avail_out))return f}else if(n.match_available){if(u=s._tr_tally(n,0,n.window[n.strstart-1]),u&&e(n,!1),n.strstart++,n.lookahead--,0===n.strm.avail_out)return f}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(u=s._tr_tally(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<r-1?n.strstart:r-1,t===b?(e(n,!0),0===n.strm.avail_out?tt:ut):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function oi(n,t){for(var h,u,i,c,o=n.window;;){if(n.lookahead<=k){if(d(n),n.lookahead<=k&&t===g)return f;if(0===n.lookahead)break}if(n.match_length=0,n.lookahead>=r&&n.strstart>0&&(i=n.strstart-1,u=o[i],u===o[++i]&&u===o[++i]&&u===o[++i])){c=n.strstart+k;do;while(u===o[++i]&&u===o[++i]&&u===o[++i]&&u===o[++i]&&u===o[++i]&&u===o[++i]&&u===o[++i]&&u===o[++i]&&i<c);n.match_length=k-(c-i);n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=r?(h=s._tr_tally(n,1,n.match_length-r),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(h=s._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),h&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===b?(e(n,!0),0===n.strm.avail_out?tt:ut):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function si(n,t){for(var i;;){if(0===n.lookahead&&(d(n),0===n.lookahead)){if(t===g)return f;break}if(n.match_length=0,i=s._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,i&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===b?(e(n,!0),0===n.strm.avail_out?tt:ut):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function l(n,t,i,r,u){this.good_length=n;this.max_lazy=t;this.nice_length=i;this.max_chain=r;this.func=u}function hi(n){n.window_size=2*n.w_size;y(n.head);n.max_lazy_match=rt[n.level].max_lazy;n.good_match=rt[n.level].good_length;n.nice_match=rt[n.level].nice_length;n.max_chain_length=rt[n.level].max_chain;n.strstart=0;n.block_start=0;n.lookahead=0;n.insert=0;n.match_length=n.prev_length=r-1;n.match_available=0;n.ins_h=0}function ci(){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=ht;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new o.Buf16(2*cr);this.dyn_dtree=new o.Buf16(2*(2*sr+1));this.bl_tree=new o.Buf16(2*(2*hr+1));y(this.dyn_ltree);y(this.dyn_dtree);y(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new o.Buf16(lr+1);this.heap=new o.Buf16(2*wt+1);y(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new o.Buf16(2*wt+1);y(this.depth);this.l_buf=0;this.lit_bufsize=0;this.last_lit=0;this.d_buf=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}function gt(n){var t;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=ur,t=n.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ct:nt,n.adler=2===t.wrap?0:1,t.last_flush=g,s._tr_init(t),a):v(n,h)}function ni(n){var t=gt(n);return t===a&&hi(n.state),t}function li(n,t){return n&&n.state?2!==n.state.wrap?h:(n.state.gzhead=t,a):h}function ti(n,t,i,u,f,e){var c,s;return n?(c=1,t===gi&&(t=6),u<0?(c=0,u=-u):u>15&&(c=2,u-=16),f<1||f>fr||i!==ht||u<8||u>15||t<0||t>9||e<0||e>ir)?v(n,h):(8===u&&(u=9),s=new ci,n.state=s,s.strm=n,s.wrap=c,s.gzhead=null,s.w_bits=u,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=f+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+r-1)/r),s.window=new o.Buf8(2*s.w_size),s.head=new o.Buf16(s.hash_size),s.prev=new o.Buf16(s.w_size),s.lit_bufsize=1<<f+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new o.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=e,s.method=i,ni(n)):h}function ai(n,t){return ti(n,t,ht,er,or,rr)}function vi(n,t){var k,i,r,e,o,l,c;if(!n||!n.state||t>ri||t<0)return n?v(n,h):h;if(i=n.state,!n.output||!n.input&&0!==n.avail_in||i.status===et&&t!==b)return v(n,0===n.avail_out?pt:h);if((i.strm=n,k=i.last_flush,i.last_flush=t,i.status===ct)&&(2===i.wrap?(n.adler=0,u(i,31),u(i,139),u(i,8),i.gzhead?(u(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),u(i,255&i.gzhead.time),u(i,i.gzhead.time>>8&255),u(i,i.gzhead.time>>16&255),u(i,i.gzhead.time>>24&255),u(i,9===i.level?2:i.strategy>=st||i.level<2?4:0),u(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(u(i,255&i.gzhead.extra.length),u(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(n.adler=w(n.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=bt):(u(i,0),u(i,0),u(i,0),u(i,0),u(i,0),u(i,9===i.level?2:i.strategy>=st||i.level<2?4:0),u(i,vr),i.status=nt)):(o=ht+(i.w_bits-8<<4)<<8,l=-1,l=i.strategy>=st||i.level<2?0:i.level<6?1:6===i.level?2:3,o|=l<<6,0!==i.strstart&&(o|=ar),o+=31-o%31,i.status=nt,ft(i,o),0!==i.strstart&&(ft(i,n.adler>>>16),ft(i,65535&n.adler)),n.adler=1)),i.status===bt)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r)),p(n),r=i.pending,i.pending!==i.pending_buf_size));)u(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r));i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=lt)}else i.status=lt;if(i.status===lt)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r)),p(n),r=i.pending,i.pending===i.pending_buf_size)){e=1;break}e=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0;u(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r));0===e&&(i.gzindex=0,i.status=at)}else i.status=at;if(i.status===at)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r)),p(n),r=i.pending,i.pending===i.pending_buf_size)){e=1;break}e=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0;u(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>r&&(n.adler=w(n.adler,i.pending_buf,i.pending-r,r));0===e&&(i.status=vt)}else i.status=vt;if(i.status===vt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&p(n),i.pending+2<=i.pending_buf_size&&(u(i,255&n.adler),u(i,n.adler>>8&255),n.adler=0,i.status=nt)):i.status=nt),0!==i.pending){if(p(n),0===n.avail_out)return i.last_flush=-1,a}else if(0===n.avail_in&&kt(t)<=kt(k)&&t!==b)return v(n,pt);if(i.status===et&&0!==n.avail_in)return v(n,pt);if(0!==n.avail_in||0!==i.lookahead||t!==g&&i.status!==et){if(c=i.strategy===st?si(i,t):i.strategy===tr?oi(i,t):rt[i.level].func(i,t),c!==tt&&c!==ut||(i.status=et),c===f||c===tt)return 0===n.avail_out&&(i.last_flush=-1),a;if(c===ot&&(t===bi?s._tr_align(i):t!==ri&&(s._tr_stored_block(i,0,0,!1),t===ki&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),p(n),0===n.avail_out))return i.last_flush=-1,a}return t!==b?a:i.wrap<=0?ui:(2===i.wrap?(u(i,255&n.adler),u(i,n.adler>>8&255),u(i,n.adler>>16&255),u(i,n.adler>>24&255),u(i,255&n.total_in),u(i,n.total_in>>8&255),u(i,n.total_in>>16&255),u(i,n.total_in>>24&255)):(ft(i,n.adler>>>16),ft(i,65535&n.adler)),p(n),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?a:ui)}function yi(n){var t;return n&&n.state?(t=n.state.status,t!==ct&&t!==bt&&t!==lt&&t!==at&&t!==vt&&t!==nt&&t!==et?v(n,h):(n.state=null,t===nt?v(n,di):a)):h}function pi(n,t){var i,u,c,f,l,v,p,s,e=t.length;if(!n||!n.state||(i=n.state,f=i.wrap,2===f||1===f&&i.status!==ct||i.lookahead))return h;for(1===f&&(n.adler=ii(n.adler,t,e,0)),i.wrap=0,e>=i.w_size&&(0===f&&(y(i.head),i.strstart=0,i.block_start=0,i.insert=0),s=new o.Buf8(i.w_size),o.arraySet(s,t,e-i.w_size,i.w_size,0),t=s,e=i.w_size),l=n.avail_in,v=n.next_in,p=n.input,n.avail_in=e,n.next_in=0,n.input=t,d(i);i.lookahead>=r;){u=i.strstart;c=i.lookahead-(r-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[u+r-1])&i.hash_mask,i.prev[u&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=u,u++;while(--c);i.strstart=u;i.lookahead=r-1;d(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=r-1,i.match_available=0,n.next_in=v,n.input=p,n.avail_in=l,i.wrap=f,a}var rt,o=n("../utils/common"),s=n("./trees"),ii=n("./adler32"),w=n("./crc32"),wi=n("./messages"),g=0,bi=1,ki=3,b=4,ri=5,a=0,ui=1,h=-2,di=-3,pt=-5,gi=-1,nr=1,st=2,tr=3,ir=4,rr=0,ur=2,ht=8,fr=9,er=15,or=8,wt=286,sr=30,hr=19,cr=2*wt+1,lr=15,r=3,k=258,c=k+r+1,ar=32,ct=42,bt=69,lt=73,at=91,vt=103,nt=113,et=666,f=1,ot=2,tt=3,ut=4,vr=3;rt=[new l(0,0,0,0,ei),new l(4,4,8,4,yt),new l(4,5,16,8,yt),new l(4,6,32,32,yt),new l(4,4,16,16,it),new l(8,16,32,32,it),new l(8,16,128,128,it),new l(8,32,128,256,it),new l(32,128,258,1024,it),new l(32,258,258,4096,it)];i.deflateInit=ai;i.deflateInit2=ti;i.deflateReset=ni;i.deflateResetKeep=gt;i.deflateSetHeader=li;i.deflate=vi;i.deflateEnd=yi;i.deflateSetDictionary=pi;i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./messages":72,"./trees":73}],68:[function(n,t){"use strict";function i(){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}t.exports=i},{}],69:[function(n,t){"use strict";var i=30,r=12;t.exports=function(n,t){var c,a,d,f,rt,g,ut,nt,ft,w,k,l,e,tt,it,et,ot,v,u,h,y,s,p,b,o;c=n.state;a=n.next_in;b=n.input;d=a+(n.avail_in-5);f=n.next_out;o=n.output;rt=f-(t-n.avail_out);g=f+(n.avail_out-257);ut=c.dmax;nt=c.wsize;ft=c.whave;w=c.wnext;k=c.window;l=c.hold;e=c.bits;tt=c.lencode;it=c.distcode;et=(1<<c.lenbits)-1;ot=(1<<c.distbits)-1;n:do{e<15&&(l+=b[a++]<<e,e+=8,l+=b[a++]<<e,e+=8);v=tt[l&et];t:for(;;){if(u=v>>>24,l>>>=u,e-=u,u=v>>>16&255,0===u)o[f++]=65535&v;else{if(!(16&u)){if(0==(64&u)){v=tt[(65535&v)+(l&(1<<u)-1)];continue t}if(32&u){c.mode=r;break n}n.msg="invalid literal/length code";c.mode=i;break n}h=65535&v;u&=15;u&&(e<u&&(l+=b[a++]<<e,e+=8),h+=l&(1<<u)-1,l>>>=u,e-=u);e<15&&(l+=b[a++]<<e,e+=8,l+=b[a++]<<e,e+=8);v=it[l&ot];i:for(;;){if(u=v>>>24,l>>>=u,e-=u,u=v>>>16&255,!(16&u)){if(0==(64&u)){v=it[(65535&v)+(l&(1<<u)-1)];continue i}n.msg="invalid distance code";c.mode=i;break n}if(y=65535&v,u&=15,e<u&&(l+=b[a++]<<e,e+=8,e<u&&(l+=b[a++]<<e,e+=8)),y+=l&(1<<u)-1,y>ut){n.msg="invalid distance too far back";c.mode=i;break n}if(l>>>=u,e-=u,u=f-rt,y>u){if(u=y-u,u>ft&&c.sane){n.msg="invalid distance too far back";c.mode=i;break n}if(s=0,p=k,0===w){if(s+=nt-u,u<h){h-=u;do o[f++]=k[s++];while(--u);s=f-y;p=o}}else if(w<u){if(s+=nt+w-u,u-=w,u<h){h-=u;do o[f++]=k[s++];while(--u);if(s=0,w<h){u=w;h-=u;do o[f++]=k[s++];while(--u);s=f-y;p=o}}}else if(s+=w-u,u<h){h-=u;do o[f++]=k[s++];while(--u);s=f-y;p=o}for(;h>2;)o[f++]=p[s++],o[f++]=p[s++],o[f++]=p[s++],h-=3;h&&(o[f++]=p[s++],h>1&&(o[f++]=p[s++]))}else{s=f-y;do o[f++]=o[s++],o[f++]=o[s++],o[f++]=o[s++],h-=3;while(h>2);h&&(o[f++]=o[s++],h>1&&(o[f++]=o[s++]))}break}}break}}while(a<d&&f<g);h=e>>3;a-=h;e-=h<<3;l&=(1<<e)-1;n.next_in=a;n.next_out=f;n.avail_in=a<d?5+(d-a):5-(a-d);n.avail_out=f<g?257+(g-f):257-(f-g);c.hold=l;c.bits=e}},{}],70:[function(n,t,i){"use strict";function tt(n){return(n>>>24&255)+(n>>>8&65280)+((65280&n)<<8)+((255&n)<<24)}function yi(){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 u.Buf16(320);this.work=new u.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function it(n){var t;return n&&n.state?(t=n.state,n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=1&t.wrap),t.mode=at,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new u.Buf32(or),t.distcode=t.distdyn=new u.Buf32(sr),t.sane=1,t.back=-1,s):f}function rt(n){var t;return n&&n.state?(t=n.state,t.wsize=0,t.whave=0,t.wnext=0,it(n)):f}function ut(n,t){var r,i;return n&&n.state?(i=n.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?f:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,rt(n))):f}function ft(n,t){var i,r;return n?(r=new yi,n.state=r,r.window=null,i=ut(n,t),i!==s&&(n.state=null),i):f}function pi(n){return ft(n,hr)}function wi(n){if(vi){var t;for(y=new u.Buf32(512),p=new u.Buf32(32),t=0;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(h(ot,n.lens,0,288,y,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;h(st,n.lens,0,32,p,0,n.work,{bits:5});vi=!1}n.lencode=y;n.lenbits=9;n.distcode=p;n.distbits=5}function et(n,t,i,r){var e,f=n.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new u.Buf8(f.wsize)),r>=f.wsize?(u.arraySet(f.window,t,i-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>r&&(e=r),u.arraySet(f.window,t,i-r,e,f.wnext),r-=e,r?(u.arraySet(f.window,t,i-r,r,0),f.wnext=r,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function bi(n,t){var i,ft,lr,ut,hr,it,ki,p,y,yr,yi,rt,pr,kr,vi,gi,sr,or,wr,br,pi,cr,vr,ar,bi=0,di=new u.Buf8(4),dr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&0!==n.avail_in)return f;i=n.state;i.mode===o&&(i.mode=k);hr=n.next_out;lr=n.output;ki=n.avail_out;ut=n.next_in;ft=n.input;it=n.avail_in;p=i.hold;y=i.bits;yr=it;yi=ki;cr=s;n:for(;;)switch(i.mode){case at:if(0===i.wrap){i.mode=k;break}for(;y<16;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(2&i.wrap&&35615===p){i.check=0;di[0]=255&p;di[1]=p>>>8&255;i.check=e(i.check,di,2,0);p=0;y=0;i.mode=vt;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&p)<<8)+(p>>8))%31){n.msg="incorrect header check";i.mode=r;break}if((15&p)!==lt){n.msg="unknown compression method";i.mode=r;break}if(p>>>=4,y-=4,pi=(15&p)+8,0===i.wbits)i.wbits=pi;else if(pi>i.wbits){n.msg="invalid window size";i.mode=r;break}i.dmax=1<<pi;n.adler=i.check=1;i.mode=512&p?ni:o;p=0;y=0;break;case vt:for(;y<16;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(i.flags=p,(255&i.flags)!==lt){n.msg="unknown compression method";i.mode=r;break}if(57344&i.flags){n.msg="unknown header flags set";i.mode=r;break}i.head&&(i.head.text=p>>8&1);512&i.flags&&(di[0]=255&p,di[1]=p>>>8&255,i.check=e(i.check,di,2,0));p=0;y=0;i.mode=yt;case yt:for(;y<32;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.head&&(i.head.time=p);512&i.flags&&(di[0]=255&p,di[1]=p>>>8&255,di[2]=p>>>16&255,di[3]=p>>>24&255,i.check=e(i.check,di,4,0));p=0;y=0;i.mode=pt;case pt:for(;y<16;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.head&&(i.head.xflags=255&p,i.head.os=p>>8);512&i.flags&&(di[0]=255&p,di[1]=p>>>8&255,i.check=e(i.check,di,2,0));p=0;y=0;i.mode=wt;case wt:if(1024&i.flags){for(;y<16;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.length=p;i.head&&(i.head.extra_len=p);512&i.flags&&(di[0]=255&p,di[1]=p>>>8&255,i.check=e(i.check,di,2,0));p=0;y=0}else i.head&&(i.head.extra=null);i.mode=bt;case bt:if(1024&i.flags&&(rt=i.length,rt>it&&(rt=it),rt&&(i.head&&(pi=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),u.arraySet(i.head.extra,ft,ut,rt,pi)),512&i.flags&&(i.check=e(i.check,ft,rt,ut)),it-=rt,ut+=rt,i.length-=rt),i.length))break n;i.length=0;i.mode=kt;case kt:if(2048&i.flags){if(0===it)break n;rt=0;do pi=ft[ut+rt++],i.head&&pi&&i.length<65536&&(i.head.name+=String.fromCharCode(pi));while(pi&&rt<it);if(512&i.flags&&(i.check=e(i.check,ft,rt,ut)),it-=rt,ut+=rt,pi)break n}else i.head&&(i.head.name=null);i.length=0;i.mode=dt;case dt:if(4096&i.flags){if(0===it)break n;rt=0;do pi=ft[ut+rt++],i.head&&pi&&i.length<65536&&(i.head.comment+=String.fromCharCode(pi));while(pi&&rt<it);if(512&i.flags&&(i.check=e(i.check,ft,rt,ut)),it-=rt,ut+=rt,pi)break n}else i.head&&(i.head.comment=null);i.mode=gt;case gt:if(512&i.flags){for(;y<16;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(p!==(65535&i.check)){n.msg="header crc mismatch";i.mode=r;break}p=0;y=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0);n.adler=i.check=0;i.mode=o;break;case ni:for(;y<32;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}n.adler=i.check=tt(p);p=0;y=0;i.mode=l;case l:if(0===i.havedict)return n.next_out=hr,n.avail_out=ki,n.next_in=ut,n.avail_in=it,i.hold=p,i.bits=y,ur;n.adler=i.check=1;i.mode=o;case o:if(t===ir||t===c)break n;case k:if(i.last){p>>>=7&y;y-=7&y;i.mode=g;break}for(;y<3;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}switch(i.last=1&p,p>>>=1,y-=1,3&p){case 0:i.mode=ti;break;case 1:if(wi(i),i.mode=a,t===c){p>>>=2;y-=2;break n}break;case 2:i.mode=ri;break;case 3:n.msg="invalid block type";i.mode=r}p>>>=2;y-=2;break;case ti:for(p>>>=7&y,y-=7&y;y<32;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if((65535&p)!=(p>>>16^65535)){n.msg="invalid stored block lengths";i.mode=r;break}if(i.length=65535&p,p=0,y=0,i.mode=d,t===c)break n;case d:i.mode=ii;case ii:if(rt=i.length){if(rt>it&&(rt=it),rt>ki&&(rt=ki),0===rt)break n;u.arraySet(lr,ft,ut,rt,hr);it-=rt;ut+=rt;ki-=rt;hr+=rt;i.length-=rt;break}i.mode=o;break;case ri:for(;y<14;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(i.nlen=(31&p)+257,p>>>=5,y-=5,i.ndist=(31&p)+1,p>>>=5,y-=5,i.ncode=(15&p)+4,p>>>=4,y-=4,i.nlen>286||i.ndist>30){n.msg="too many length or distance symbols";i.mode=r;break}i.have=0;i.mode=ui;case ui:for(;i.have<i.ncode;){for(;y<3;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.lens[dr[i.have++]]=7&p;p>>>=3;y-=3}for(;i.have<19;)i.lens[dr[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,vr={bits:i.lenbits},cr=h(tr,i.lens,0,19,i.lencode,0,i.work,vr),i.lenbits=vr.bits,cr){n.msg="invalid code lengths set";i.mode=r;break}i.have=0;i.mode=fi;case fi:for(;i.have<i.nlen+i.ndist;){for(;bi=i.lencode[p&(1<<i.lenbits)-1],vi=bi>>>24,gi=bi>>>16&255,sr=65535&bi,!(vi<=y);){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(sr<16)p>>>=vi,y-=vi,i.lens[i.have++]=sr;else{if(16===sr){for(ar=vi+2;y<ar;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(p>>>=vi,y-=vi,0===i.have){n.msg="invalid bit length repeat";i.mode=r;break}pi=i.lens[i.have-1];rt=3+(3&p);p>>>=2;y-=2}else if(17===sr){for(ar=vi+3;y<ar;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}p>>>=vi;y-=vi;pi=0;rt=3+(7&p);p>>>=3;y-=3}else{for(ar=vi+7;y<ar;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}p>>>=vi;y-=vi;pi=0;rt=11+(127&p);p>>>=7;y-=7}if(i.have+rt>i.nlen+i.ndist){n.msg="invalid bit length repeat";i.mode=r;break}for(;rt--;)i.lens[i.have++]=pi}}if(i.mode===r)break;if(0===i.lens[256]){n.msg="invalid code -- missing end-of-block";i.mode=r;break}if(i.lenbits=9,vr={bits:i.lenbits},cr=h(ot,i.lens,0,i.nlen,i.lencode,0,i.work,vr),i.lenbits=vr.bits,cr){n.msg="invalid literal/lengths set";i.mode=r;break}if(i.distbits=6,i.distcode=i.distdyn,vr={bits:i.distbits},cr=h(st,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,vr),i.distbits=vr.bits,cr){n.msg="invalid distances set";i.mode=r;break}if(i.mode=a,t===c)break n;case a:i.mode=v;case v:if(it>=6&&ki>=258){n.next_out=hr;n.avail_out=ki;n.next_in=ut;n.avail_in=it;i.hold=p;i.bits=y;nr(n,yi);hr=n.next_out;lr=n.output;ki=n.avail_out;ut=n.next_in;ft=n.input;it=n.avail_in;p=i.hold;y=i.bits;i.mode===o&&(i.back=-1);break}for(i.back=0;bi=i.lencode[p&(1<<i.lenbits)-1],vi=bi>>>24,gi=bi>>>16&255,sr=65535&bi,!(vi<=y);){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(gi&&0==(240&gi)){for(or=vi,wr=gi,br=sr;bi=i.lencode[br+((p&(1<<or+wr)-1)>>or)],vi=bi>>>24,gi=bi>>>16&255,sr=65535&bi,!(or+vi<=y);){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}p>>>=or;y-=or;i.back+=or}if(p>>>=vi,y-=vi,i.back+=vi,i.length=sr,0===gi){i.mode=ci;break}if(32&gi){i.back=-1;i.mode=o;break}if(64&gi){n.msg="invalid literal/length code";i.mode=r;break}i.extra=15&gi;i.mode=ei;case ei:if(i.extra){for(ar=i.extra;y<ar;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.length+=p&(1<<i.extra)-1;p>>>=i.extra;y-=i.extra;i.back+=i.extra}i.was=i.length;i.mode=oi;case oi:for(;bi=i.distcode[p&(1<<i.distbits)-1],vi=bi>>>24,gi=bi>>>16&255,sr=65535&bi,!(vi<=y);){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(0==(240&gi)){for(or=vi,wr=gi,br=sr;bi=i.distcode[br+((p&(1<<or+wr)-1)>>or)],vi=bi>>>24,gi=bi>>>16&255,sr=65535&bi,!(or+vi<=y);){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}p>>>=or;y-=or;i.back+=or}if(p>>>=vi,y-=vi,i.back+=vi,64&gi){n.msg="invalid distance code";i.mode=r;break}i.offset=sr;i.extra=15&gi;i.mode=si;case si:if(i.extra){for(ar=i.extra;y<ar;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}i.offset+=p&(1<<i.extra)-1;p>>>=i.extra;y-=i.extra;i.back+=i.extra}if(i.offset>i.dmax){n.msg="invalid distance too far back";i.mode=r;break}i.mode=hi;case hi:if(0===ki)break n;if(rt=yi-ki,i.offset>rt){if(rt=i.offset-rt,rt>i.whave&&i.sane){n.msg="invalid distance too far back";i.mode=r;break}rt>i.wnext?(rt-=i.wnext,pr=i.wsize-rt):pr=i.wnext-rt;rt>i.length&&(rt=i.length);kr=i.window}else kr=lr,pr=hr-i.offset,rt=i.length;rt>ki&&(rt=ki);ki-=rt;i.length-=rt;do lr[hr++]=kr[pr++];while(--rt);0===i.length&&(i.mode=v);break;case ci:if(0===ki)break n;lr[hr++]=i.length;ki--;i.mode=v;break;case g:if(i.wrap){for(;y<32;){if(0===it)break n;it--;p|=ft[ut++]<<y;y+=8}if(yi-=ki,n.total_out+=yi,i.total+=yi,yi&&(n.adler=i.check=i.flags?e(i.check,lr,yi,hr-yi):w(i.check,lr,yi,hr-yi)),yi=ki,(i.flags?p:tt(p))!==i.check){n.msg="incorrect data check";i.mode=r;break}p=0;y=0}i.mode=li;case li:if(i.wrap&&i.flags){for(;y<32;){if(0===it)break n;it--;p+=ft[ut++]<<y;y+=8}if(p!==(4294967295&i.total)){n.msg="incorrect length check";i.mode=r;break}p=0;y=0}i.mode=ai;case ai:cr=rr;break n;case r:cr=ct;break n;case nt:return b;case er:default:return f}return n.next_out=hr,n.avail_out=ki,n.next_in=ut,n.avail_in=it,i.hold=p,i.bits=y,(i.wsize||yi!==n.avail_out&&i.mode<r&&(i.mode<g||t!==ht))&&et(n,n.output,n.next_out,yi-n.avail_out)?(i.mode=nt,b):(yr-=n.avail_in,yi-=n.avail_out,n.total_in+=yr,n.total_out+=yi,i.total+=yi,i.wrap&&yi&&(n.adler=i.check=i.flags?e(i.check,lr,yi,n.next_out-yi):w(i.check,lr,yi,n.next_out-yi)),n.data_type=i.bits+(i.last?64:0)+(i.mode===o?128:0)+(i.mode===a||i.mode===d?256:0),(0===yr&&0===yi||t===ht)&&cr===s&&(cr=fr),cr)}function ki(n){if(!n||!n.state)return f;var t=n.state;return t.window&&(t.window=null),n.state=null,s}function di(n,t){var i;return n&&n.state?(i=n.state,0==(2&i.wrap)?f:(i.head=t,t.done=!1,s)):f}function gi(n,t){var i,r,e,u=t.length;return n&&n.state?(i=n.state,0!==i.wrap&&i.mode!==l?f:i.mode===l&&(r=1,r=w(r,t,u,0),r!==i.check)?ct:(e=et(n,t,u,u))?(i.mode=nt,b):(i.havedict=1,s)):f}var y,p,u=n("../utils/common"),w=n("./adler32"),e=n("./crc32"),nr=n("./inffast"),h=n("./inftrees"),tr=0,ot=1,st=2,ht=4,ir=5,c=6,s=0,rr=1,ur=2,f=-2,ct=-3,b=-4,fr=-5,lt=8,at=1,vt=2,yt=3,pt=4,wt=5,bt=6,kt=7,dt=8,gt=9,ni=10,l=11,o=12,k=13,ti=14,d=15,ii=16,ri=17,ui=18,fi=19,a=20,v=21,ei=22,oi=23,si=24,hi=25,ci=26,g=27,li=28,ai=29,r=30,nt=31,er=32,or=852,sr=592,hr=15,vi=!0;i.inflateReset=rt;i.inflateReset2=ut;i.inflateResetKeep=it;i.inflateInit=pi;i.inflateInit2=ft;i.inflate=bi;i.inflateEnd=ki;i.inflateGetHeader=di;i.inflateSetDictionary=gi;i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./inffast":69,"./inftrees":71}],71:[function(n,t){"use strict";var u=n("../utils/common"),i=15,f=852,e=592,o=0,r=1,s=2,h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(n,t,v,y,p,w,b,k){for(var ot,ct,vt,dt,lt,at,gt,yt,pt,ii=k.bits,d=0,g=0,ut=0,nt=0,tt=0,ft=0,it=0,et=0,ht=0,rt=0,wt=null,ni=0,st=new u.Buf16(i+1),bt=new u.Buf16(i+1),kt=null,ti=0,d=0;d<=i;d++)st[d]=0;for(g=0;g<y;g++)st[t[v+g]]++;for(tt=ii,nt=i;nt>=1&&0===st[nt];nt--);if(tt>nt&&(tt=nt),0===nt)return p[w++]=20971520,p[w++]=20971520,k.bits=1,0;for(ut=1;ut<nt&&0===st[ut];ut++);for(tt<ut&&(tt=ut),et=1,d=1;d<=i;d++)if(et<<=1,et-=st[d],et<0)return-1;if(et>0&&(n===o||1!==nt))return-1;for(bt[1]=0,d=1;d<i;d++)bt[d+1]=bt[d]+st[d];for(g=0;g<y;g++)0!==t[v+g]&&(b[bt[t[v+g]]++]=g);if(n===o?(wt=kt=b,at=19):n===r?(wt=h,ni-=257,kt=c,ti-=257,at=256):(wt=l,kt=a,at=-1),rt=0,g=0,d=ut,lt=w,ft=tt,it=0,vt=-1,ht=1<<tt,dt=ht-1,n===r&&ht>f||n===s&&ht>e)return 1;for(;;){gt=d-it;b[g]<at?(yt=0,pt=b[g]):b[g]>at?(yt=kt[ti+b[g]],pt=wt[ni+b[g]]):(yt=96,pt=0);ot=1<<d-it;ct=1<<ft;ut=ct;do ct-=ot,p[lt+(rt>>it)+ct]=gt<<24|yt<<16|pt|0;while(0!==ct);for(ot=1<<d-1;rt&ot;)ot>>=1;if(0!==ot?(rt&=ot-1,rt+=ot):rt=0,g++,0==--st[d]){if(d===nt)break;d=t[v+b[g]]}if(d>tt&&(rt&dt)!==vt){for(0===it&&(it=tt),lt+=ut,ft=d-it,et=1<<ft;ft+it<nt&&(et-=st[ft+it],!(et<=0));)ft++,et<<=1;if(ht+=1<<ft,n===r&&ht>f||n===s&&ht>e)return 1;vt=rt&dt;p[vt]=tt<<24|ft<<16|lt-w|0}}return 0!==rt&&(p[lt+rt]=d-it<<24|4194304),k.bits=tt,0}},{"../utils/common":62}],72:[function(n,t){"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"}},{}],73:[function(n,t,i){"use strict";function o(n){for(var t=n.length;--t>=0;)n[t]=0}function k(n,t,i,r,u){this.static_tree=n;this.extra_bits=t;this.extra_base=i;this.elems=r;this.max_length=u;this.has_stree=n&&n.length}function d(n,t){this.dyn_tree=n;this.max_code=0;this.stat_desc=t}function ot(n){return n<256?c[n]:c[256+(n>>>7)]}function a(n,t){n.pending_buf[n.pending++]=255&t;n.pending_buf[n.pending++]=t>>>8&255}function r(n,t,i){n.bi_valid>rt-i?(n.bi_buf|=t<<n.bi_valid&65535,a(n,n.bi_buf),n.bi_buf=t>>rt-n.bi_valid,n.bi_valid+=i-rt):(n.bi_buf|=t<<n.bi_valid&65535,n.bi_valid+=i)}function u(n,t,i){r(n,i[2*t],i[2*t+1])}function st(n,t){var i=0;do i|=1&n,n>>>=1,i<<=1;while(--t>0);return i>>>1}function oi(n){16===n.bi_valid?(a(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}function si(n,t){for(var o,r,f,h,l,u=t.dyn_tree,a=t.max_code,y=t.stat_desc.static_tree,p=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,s=t.stat_desc.max_length,c=0,i=0;i<=e;i++)n.bl_count[i]=0;for(u[2*n.heap[n.heap_max]+1]=0,o=n.heap_max+1;o<gt;o++)r=n.heap[o],i=u[2*u[2*r+1]+1]+1,i>s&&(i=s,c++),u[2*r+1]=i,r>a||(n.bl_count[i]++,h=0,r>=v&&(h=w[r-v]),l=u[2*r],n.opt_len+=l*(i+h),p&&(n.static_len+=l*(y[2*r+1]+h)));if(0!==c){do{for(i=s-1;0===n.bl_count[i];)i--;n.bl_count[i]--;n.bl_count[i+1]+=2;n.bl_count[s]--;c-=2}while(c>0);for(i=s;0!==i;i--)for(r=n.bl_count[i];0!==r;)f=n.heap[--o],f>a||(u[2*f+1]!==i&&(n.opt_len+=(i-u[2*f+1])*u[2*f],u[2*f+1]=i),r--)}}function ht(n,t,i){for(var u,o=new Array(e+1),s=0,f,r=1;r<=e;r++)o[r]=s=s+i[r-1]<<1;for(u=0;u<=t;u++)f=n[2*u+1],0!==f&&(n[2*u]=st(o[f]++,f))}function hi(){for(var n,u,i,r=new Array(e+1),o=0,t=0;t<tt-1;t++)for(b[t]=o,n=0;n<1<<ft[t];n++)l[o++]=t;for(l[o-1]=t,i=0,t=0;t<16;t++)for(p[t]=i,n=0;n<1<<w[t];n++)c[i++]=t;for(i>>=7;t<s;t++)for(p[t]=i<<7,n=0;n<1<<w[t]-7;n++)c[256+i++]=t;for(u=0;u<=e;u++)r[u]=0;for(n=0;n<=143;)f[2*n+1]=8,n++,r[8]++;for(;n<=255;)f[2*n+1]=9,n++,r[9]++;for(;n<=279;)f[2*n+1]=7,n++,r[7]++;for(;n<=287;)f[2*n+1]=8,n++,r[8]++;for(ht(f,y+1,r),n=0;n<s;n++)h[2*n+1]=5,h[2*n]=st(n,5);ui=new k(f,ft,v+1,y,e);fi=new k(h,w,0,s,e);ei=new k(new Array(0),rr,0,it,ir)}function ct(n){for(var t=0;t<y;t++)n.dyn_ltree[2*t]=0;for(t=0;t<s;t++)n.dyn_dtree[2*t]=0;for(t=0;t<it;t++)n.bl_tree[2*t]=0;n.dyn_ltree[2*ut]=1;n.opt_len=n.static_len=0;n.last_lit=n.matches=0}function lt(n){n.bi_valid>8?a(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf);n.bi_buf=0;n.bi_valid=0}function ci(n,t,i,r){lt(n);r&&(a(n,i),a(n,~i));ki.arraySet(n.pending_buf,n.window,t,i,n.pending);n.pending+=i}function at(n,t,i,r){var u=2*t,f=2*i;return n[u]<n[f]||n[u]===n[f]&&r[t]<=r[i]}function g(n,t,i){for(var u=n.heap[i],r=i<<1;r<=n.heap_len&&(r<n.heap_len&&at(t,n.heap[r+1],n.heap[r],n.depth)&&r++,!at(t,u,n.heap[r],n.depth));)n.heap[i]=n.heap[r],i=r,r<<=1;n.heap[i]=u}function vt(n,t,i){var e,s,f,o,h=0;if(0!==n.last_lit)do e=n.pending_buf[n.d_buf+2*h]<<8|n.pending_buf[n.d_buf+2*h+1],s=n.pending_buf[n.l_buf+h],h++,0===e?u(n,s,t):(f=l[s],u(n,f+v+1,t),o=ft[f],0!==o&&(s-=b[f],r(n,s,o)),e--,f=ot(e),u(n,f,i),o=w[f],0!==o&&(e-=p[f],r(n,e,o)));while(h<n.last_lit);u(n,ut,t)}function nt(n,t){var i,f,u,r=t.dyn_tree,s=t.stat_desc.static_tree,h=t.stat_desc.has_stree,o=t.stat_desc.elems,e=-1;for(n.heap_len=0,n.heap_max=gt,i=0;i<o;i++)0!==r[2*i]?(n.heap[++n.heap_len]=e=i,n.depth[i]=0):r[2*i+1]=0;for(;n.heap_len<2;)u=n.heap[++n.heap_len]=e<2?++e:0,r[2*u]=1,n.depth[u]=0,n.opt_len--,h&&(n.static_len-=s[2*u+1]);for(t.max_code=e,i=n.heap_len>>1;i>=1;i--)g(n,r,i);u=o;do i=n.heap[1],n.heap[1]=n.heap[n.heap_len--],g(n,r,1),f=n.heap[1],n.heap[--n.heap_max]=i,n.heap[--n.heap_max]=f,r[2*u]=r[2*i]+r[2*f],n.depth[u]=(n.depth[i]>=n.depth[f]?n.depth[i]:n.depth[f])+1,r[2*i+1]=r[2*f+1]=u,n.heap[1]=u++,g(n,r,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1];si(n,t);ht(r,e,n.bl_count)}function yt(n,t,i){var s,r,h=-1,u=t[1],f=0,e=7,o=4;for(0===u&&(e=138,o=3),t[2*(i+1)+1]=65535,s=0;s<=i;s++)r=u,u=t[2*(s+1)+1],++f<e&&r===u||(f<o?n.bl_tree[2*r]+=f:0!==r?(r!==h&&n.bl_tree[2*r]++,n.bl_tree[2*ni]++):f<=10?n.bl_tree[2*ti]++:n.bl_tree[2*ii]++,f=0,h=r,0===u?(e=138,o=3):r===u?(e=6,o=3):(e=7,o=4))}function pt(n,t,i){var c,e,l=-1,o=t[1],f=0,s=7,h=4;for(0===o&&(s=138,h=3),c=0;c<=i;c++)if(e=o,o=t[2*(c+1)+1],!(++f<s&&e===o)){if(f<h){do u(n,e,n.bl_tree);while(0!=--f)}else 0!==e?(e!==l&&(u(n,e,n.bl_tree),f--),u(n,ni,n.bl_tree),r(n,f-3,2)):f<=10?(u(n,ti,n.bl_tree),r(n,f-3,3)):(u(n,ii,n.bl_tree),r(n,f-11,7));f=0;l=e;0===o?(s=138,h=3):e===o?(s=6,h=3):(s=7,h=4)}}function li(n){var t;for(yt(n,n.dyn_ltree,n.l_desc.max_code),yt(n,n.dyn_dtree,n.d_desc.max_code),nt(n,n.bl_desc),t=it-1;t>=3&&0===n.bl_tree[2*ri[t]+1];t--);return n.opt_len+=3*(t+1)+5+5+4,t}function ai(n,t,i,u){var f;for(r(n,t-257,5),r(n,i-1,5),r(n,u-4,4),f=0;f<u;f++)r(n,n.bl_tree[2*ri[f]+1],3);pt(n,n.dyn_ltree,t-1);pt(n,n.dyn_dtree,i-1)}function vi(n){for(var i=4093624447,t=0;t<=31;t++,i>>>=1)if(1&i&&0!==n.dyn_ltree[2*t])return bt;if(0!==n.dyn_ltree[18]||0!==n.dyn_ltree[20]||0!==n.dyn_ltree[26])return kt;for(t=32;t<v;t++)if(0!==n.dyn_ltree[2*t])return kt;return bt}function yi(n){et||(hi(),et=!0);n.l_desc=new d(n.dyn_ltree,ui);n.d_desc=new d(n.dyn_dtree,fi);n.bl_desc=new d(n.bl_tree,ei);n.bi_buf=0;n.bi_valid=0;ct(n)}function wt(n,t,i,u){r(n,(nr<<1)+(u?1:0),3);ci(n,t,i,!0)}function pi(n){r(n,dt<<1,3);u(n,ut,f);oi(n)}function wi(n,t,i,u){var e,o,s=0;n.level>0?(n.strm.data_type===gi&&(n.strm.data_type=vi(n)),nt(n,n.l_desc),nt(n,n.d_desc),s=li(n),e=n.opt_len+3+7>>>3,o=n.static_len+3+7>>>3,o<=e&&(e=o)):e=o=i+5;i+4<=e&&t!==-1?wt(n,t,i,u):n.strategy===di||o===e?(r(n,(dt<<1)+(u?1:0),3),vt(n,f,h)):(r(n,(tr<<1)+(u?1:0),3),ai(n,n.l_desc.max_code+1,n.d_desc.max_code+1,s+1),vt(n,n.dyn_ltree,n.dyn_dtree));ct(n);u&&lt(n)}function bi(n,t,i){return n.pending_buf[n.d_buf+2*n.last_lit]=t>>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&t,n.pending_buf[n.l_buf+n.last_lit]=255&i,n.last_lit++,0===t?n.dyn_ltree[2*i]++:(n.matches++,t--,n.dyn_ltree[2*(l[i]+v+1)]++,n.dyn_dtree[2*ot(t)]++),n.last_lit===n.lit_bufsize-1}var ki=n("../utils/common"),di=4,bt=0,kt=1,gi=2,nr=0,dt=1,tr=2,tt=29,v=256,y=v+1+tt,s=30,it=19,gt=2*y+1,e=15,rt=16,ir=7,ut=256,ni=16,ti=17,ii=18,ft=[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],w=[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],rr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ri=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(2*(y+2)),h,c,l,b,p,ui,fi,ei,et;o(f);h=new Array(2*s);o(h);c=new Array(512);o(c);l=new Array(256);o(l);b=new Array(tt);o(b);p=new Array(s);o(p);et=!1;i._tr_init=yi;i._tr_stored_block=wt;i._tr_flush_block=wi;i._tr_tally=bi;i._tr_align=pi},{"../utils/common":62}],74:[function(n,t){"use strict";function i(){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}t.exports=i},{}]},{},[10])(10)});var saveAs=saveAs||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(n){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=n.document,i=e.createElementNS("http://www.w3.org/1999/xhtml","a"),c="download"in i,l=function(t){var i=e.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,n,0,0,0,0,0,!1,!1,!1,!1,0,null);t.dispatchEvent(i)},r=n.webkitRequestFileSystem,o=n.requestFileSystem||r||n.mozRequestFileSystem,a=function(t){(n.setImmediate||n.setTimeout)(function(){throw t;},0)},s=0,u=function(t){var i=function(){"string"==typeof t?(n.URL||n.webkitURL||n).revokeObjectURL(t):t.remove()};n.chrome?i():setTimeout(i,500)},f=function(n,t,i){var r,u;for(t=[].concat(t),r=t.length;r--;)if(u=n["on"+t[r]],"function"==typeof u)try{u.call(n,i||n)}catch(f){a(f)}},h=function(t,e){var h=this,w=t.type,b=!1,a,p,k=function(){f(h,["writestart","progress","write","writeend"])},v=function(){(b||!a)&&(a=(n.URL||n.webkitURL||n).createObjectURL(t));p?p.location.href=a:void 0==n.open(a,"_blank")&&"undefined"!=typeof safari&&(n.location.href=a);h.readyState=h.DONE;k();u(a)},y=function(n){return function(){if(h.readyState!==h.DONE)return n.apply(this,arguments)}},d={create:!0,exclusive:!1},g;h.readyState=h.INIT;e||(e="download");c?(a=(n.URL||n.webkitURL||n).createObjectURL(t),i.href=a,i.download=e,l(i),h.readyState=h.DONE,k(),u(a)):(n.chrome&&w&&"application/octet-stream"!==w&&(g=t.slice||t.webkitSlice,t=g.call(t,0,t.size,"application/octet-stream"),b=!0),r&&"download"!==e&&(e+=".download"),("application/octet-stream"===w||r)&&(p=n),o?(s+=t.size,o(n.TEMPORARY,s,y(function(n){n.root.getDirectory("saved",d,y(function(n){var i=function(){n.getFile(e,d,y(function(n){n.createWriter(y(function(i){i.onwriteend=function(t){p.location.href=n.toURL();h.readyState=h.DONE;f(h,"writeend",t);u(n)};i.onerror=function(){var n=i.error;n.code!==n.ABORT_ERR&&v()};["writestart","progress","write","abort"].forEach(function(n){i["on"+n]=h["on"+n]});i.write(t);h.abort=function(){i.abort();h.readyState=h.DONE};h.readyState=h.WRITING}),v)}),v)};n.getFile(e,{create:!1},y(function(n){n.remove();i()}),y(function(n){n.code===n.NOT_FOUND_ERR?i():v()}))}),v)}),v)):v())},t=h.prototype;return t.abort=function(){this.readyState=this.DONE;f(this,"abort")},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(n,t){return new h(n,t)}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&null!==module?module.exports=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs});!function(n){"object"==typeof exports?module.exports=n():"function"==typeof define&&define.amd?define(n):"undefined"!=typeof window?window.JSZipUtils=n():"undefined"!=typeof global?global.JSZipUtils=n():"undefined"!=typeof self&&(self.JSZipUtils=n())}(function(){return function n(t,i,r){function u(f,o){var h,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);throw new Error("Cannot find module '"+f+"'");}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";function r(){try{return new window.XMLHttpRequest}catch(n){}}function f(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(n){}}var i={},u;i._getBinaryFromXHR=function(n){return n.response||n.responseText};u=window.ActiveXObject?function(){return r()||f()}:r;i.getBinaryContent=function(n,t){try{var r=u();r.open("GET",n,!0);"responseType"in r&&(r.responseType="arraybuffer");r.overrideMimeType&&r.overrideMimeType("text/plain; charset=x-user-defined");r.onreadystatechange=function(){var u,f;if(4===r.readyState)if(200===r.status||0===r.status){u=null;f=null;try{u=i._getBinaryFromXHR(r)}catch(e){f=new Error(e)}t(f,u)}else t(new Error("Ajax error for "+n+" : "+this.status+" "+this.statusText),null)};r.send()}catch(f){t(new Error(f),null)}};t.exports=i},{}]},{},[1])(1)})