feffery_utils_components 0.2.0-rc17 → 0.2.0-rc19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/README.md +1 -1
  5. package/feffery_utils_components/FefferyEventSource.py +82 -0
  6. package/feffery_utils_components/_imports_.py +2 -0
  7. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  8. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +1 -1
  9. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  10. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  11. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  12. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  13. package/feffery_utils_components/async-feffery_burger.js +1 -1
  14. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  15. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  16. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  17. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  18. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  19. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  20. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  21. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  22. package/feffery_utils_components/async-feffery_grid.js +1 -1
  23. package/feffery_utils_components/async-feffery_http_requests.js +1 -1
  24. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  25. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  26. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  27. package/feffery_utils_components/async-feffery_markdown_editor.js +1 -1
  28. package/feffery_utils_components/async-feffery_motion.js +1 -1
  29. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  30. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  31. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  32. package/feffery_utils_components/async-feffery_rich_text_editor.js +1 -1
  33. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  34. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  35. package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
  36. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -1
  37. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  38. package/feffery_utils_components/async-feffery_vditor.js +1 -1
  39. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  40. package/feffery_utils_components/feffery_utils_components.min.js +2 -2
  41. package/feffery_utils_components/metadata.json +153 -0
  42. package/feffery_utils_components/package-info.json +1 -1
  43. package/package.json +1 -1
  44. package/src/lib/components/FefferyCountUp.react.js +28 -5
  45. package/src/lib/components/FefferyEventSource.react.js +150 -0
  46. package/src/lib/index.js +3 -1
  47. package/usage.py +33 -28
@@ -1 +1 @@
1
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[33],{502:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.style,n=e.className,i=e.src,e=(e.setProps,e.loading_state),a=Object(s.useRef)(null);return Object(s.useEffect)(function(){var e;if(a.current)return(e=o.a.init(a.current,{})).preview(i).then(function(e){}).catch(function(e){}),function(){e.destroy()}},[i]),React.createElement("div",{id:t,className:Object(u.isString)(n)?n:n?Object(l.a)(n):void 0,style:r,ref:a,"data-dash-is-loading":e&&e.is_loading||void 0})}var o=r(853),s=r(1),l=(r(868),r(60)),u=r(23),r=r(210);(t.default=n).defaultProps=r.b,n.propTypes=r.c},553:function(e,t,r){"use strict";var n=r(572),i=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},e=(e.exports=c,Object.create(r(565))),a=(e.inherits=r(559),r(645)),o=r(592);e.inherits(c,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},559:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},565:function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(550).Buffer.isBuffer},571:function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,l=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(i,a){return new Promise(function(e,t){function r(e){i.removeListener(a,n),t(e)}function n(){"function"==typeof i.removeListener&&i.removeListener("error",r),e([].slice.call(arguments))}g(i,a,n,{once:!0}),"error"!==a&&"function"==typeof i.on&&g(i,"error",r,{once:!0})})},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,a;return u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener||r),i=e._events),a=i[t]),void 0===a?(a=i[t]=r,++e._eventsCount):("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),0<(i=c(e))&&a.length>i&&!a.warned&&(a.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=a.length,console)&&console.warn&&console.warn(n)),e}function f(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];{if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,i=new Array(n.length),a=0;a<i.length;++a)i[a]=n[a].listener||n[a];return i}return m(e,e.length)}}function p(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(r,n,i,a){if("function"==typeof r.on)a.once?r.once(n,i):r.on(n,i);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){a.once&&r.removeEventListener(n,e),i(t)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if((a=0<t.length?t[0]:a)instanceof Error)throw a;n=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw n.context=a,n}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)l(a,this,t);else for(var o=a.length,s=m(a,o),r=0;r<o;++r)l(s[r],this,t);return!0},o.prototype.on=o.prototype.addListener=function(e,t){return h(this,e,t,!1)},o.prototype.prependListener=function(e,t){return h(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var r,n,i,a,o;if(u(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;0<=a;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;if(0===i)r.shift();else{var s=r;var l=i;for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.removeAllListeners=function(e){var t,r;if(void 0!==(r=this._events))if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,i=Object.keys(r),a=0;a<i.length;++a)"removeListener"!==(n=i[a])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(a=t.length-1;0<=a;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return 0<this._eventsCount?i(this._events):[]}},572:function(e,t,r){"use strict";!function(s){void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){e.apply(null,i)})}}}:e.exports=s}.call(this,r(313))},590:function(e,t,r){(((t=e.exports=r(645)).Stream=t).Readable=t).Writable=r(592),t.Duplex=r(553),t.Transform=r(649),t.PassThrough=r(861)},591:function(e,t,r){var n=r(550),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},592:function(u,e,_){"use strict";!function(e,t,r){var m=_(572);function c(i){var a=this;this.next=null,this.entry=null,this.finish=function(){var e=a,t=i,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}u.exports=s;var a,n,h=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:m.nextTick,e=(s.WritableState=o,Object.create(_(565))),t=(e.inherits=_(559),{deprecate:_(859)}),i=_(646),g=_(591).Buffer,y=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},r=_(647);function b(){}function o(e,u){a=a||_(553),e=e||{};var t=u instanceof a,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,i=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,i,a,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(a=o).writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e?(a=t,n=s,e=e,i=l,--(r=o).pendingcb,n?(m.nextTick(i,e),m.nextTick(w,a,r),a._writableState.errorEmitted=!0,a.emit("error",e)):(i(e),a._writableState.errorEmitted=!0,a.emit("error",e),w(a,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?h(f,t,o,n,l):f(t,o,n,l))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function s(e){if(a=a||_(553),!(n.call(s,this)||this instanceof a))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),i.call(this)}function v(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function f(e,t,r,n){var i;r||(r=e,0===(i=t).length&&i.needDrain&&(i.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)(i[a]=r).isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,v(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,i=p(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),i}e.inherits(s,i),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===s&&e&&e._writableState instanceof o}})):n=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,i,a,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,g.isBuffer(p)||p instanceof y);return p&&!g.isBuffer(e)&&(h=e,e=g.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(a=e)?l=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,a=this,o=f,l=e,s=t,f=r,(e=p)||(i=l,n=s,i=o.objectMode||!1===o.decodeStrings||"string"!=typeof i?i:g.from(i,n),l!==i&&(e=!0,s="buffer",l=i)),n=o.objectMode?1:l.length,o.length+=n,(i=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(a,o,!1,n,l,s,f),d=i),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=r.destroy,s.prototype._undestroy=r.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}.call(this,_(313),_(564).setImmediate,_(30))},645:function(O,e,N){"use strict";!function(e,g){var y=N(572);O.exports=i;function b(e,t){return e.listeners(t).length}var a,o,v=N(855),r=(i.ReadableState=n,N(571).EventEmitter,N(646)),h=N(591).Buffer,f=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},e=Object.create(N(565)),t=(e.inherits=N(559),N(856)),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},s=N(857),t=N(647),l=(e.inherits(i,r),["error","close","destroy","pause","resume"]);function n(e,t){e=e||{};var t=t instanceof(a=a||N(553)),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||N(648).StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function i(e){if(a=a||N(553),!(this instanceof i))return new i(e);this._readableState=new n(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function u(e,t,r,n,i){var a,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,p(s))):(i||(u=c,s=l=t,a=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),a?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(i=t,t=h.from(i)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?d(e,c,t,!1):_(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function d(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&p(e)),_(e,t)}function c(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(m,e):m(e))}function m(e){w("emit readable"),e.emit("readable"),E(e)}function _(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){w("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++n}return t.length-=n,i}:function(e,t){var r=h.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0==(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++i}return t.length-=i,r})(e,r),i=n),i);var r,n,i}function P(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,y.nextTick(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function T(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(i.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),i.prototype.destroy=t.destroy,i.prototype._undestroy=t.undestroy,i.prototype._destroy=function(e,t){this.push(null),t(e)},i.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),u(this,e,t,!1,r)},i.prototype.unshift=function(e){return u(this,e,null,!0,!1)},i.prototype.isPaused=function(){return!1===this._readableState.flowing},i.prototype.setEncoding=function(e){return o=o||N(648).StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},i.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(w("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?P:p)(this),null):0===(e=c(e,r))&&r.ended?(0===r.length&&P(this),null):(t=r.needReadable,w("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&w("length less than watermark",t=!0),r.ended||r.reading?w("reading or ended",t=!1):t&&(w("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=c(n,r))),null===(t=0<e?C(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&P(this),null!==t&&this.emit("data",t),t)},i.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(n,e){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,w("pipe count=%d opts=%j",a.pipesCount,e);e=e&&!1===e.end||n===g.stdout||n===g.stderr?m:o;function o(){w("onend"),n.end()}a.endEmitted?y.nextTick(e):i.once("end",e),n.on("unpipe",function e(t,r){w("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",h),u=!0,!a.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=i;var t,r,s,l=function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,E(t))},u=(n.on("drain",l),!1),c=!1;function h(e){w("ondata"),(c=!1)!==n.write(e)||c||((1===a.pipesCount&&a.pipes===n||1<a.pipesCount&&-1!==T(a.pipes,n))&&!u&&(w("false write response, pause",a.awaitDrain),a.awaitDrain++,c=!0),i.pause())}function f(e){w("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){w("onfinish"),n.removeListener("close",d),m()}function m(){w("unpipe"),i.unpipe(n)}return i.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?v(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",i),a.flowing||(w("pipe resume"),i.resume()),n},i.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=T(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1})}return this},i.prototype.addListener=i.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&p(this):y.nextTick(S,this)),t},i.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,y.nextTick(x,e,t))),this},i.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var e,r=this,n=this._readableState,i=!1;for(e in t.on("end",function(){var e;w("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){w("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(i=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<l.length;a++)t.on(l[a],this.emit.bind(this,l[a]));return this._read=function(e){w("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(i.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),i._fromList=C}.call(this,N(30),N(313))},646:function(e,t,r){e.exports=r(571).EventEmitter},647:function(e,t,r){"use strict";var a=r(572);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,e)):a.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,a.nextTick(o,r,e)):a.nextTick(o,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},648:function(e,t,r){"use strict";var n=r(860).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==i&&i(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function c(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(t.StringDecoder=a).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},a.prototype.text=function(e,t){r=this,a=t;var r,n,i,a=(i=(o=e).length-1)<a?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-1),n):--i<a||-2===n?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-2),n):!(--i<a||-2===n)&&0<=(n=s(o[i]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var o=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},649:function(e,t,r){"use strict";e.exports=i;var n=r(553),e=Object.create(r(565));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}e.inherits=r(559),e.inherits(i,n),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},i.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},650:function(e,A,T){!function(o){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;A.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(i<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<i;o=n[++r])b(o)||!u(o)?a+=" "+o:a+=" "+l(o);return a},A.deprecate=function(e,t){var r;return void 0!==o&&!0===o.noDeprecation?e:void 0===o?function(){return A.deprecate(e,t).apply(this,arguments)}:(r=!1,function(){if(!r){if(o.throwDeprecation)throw new Error(t);o.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)})};var e,n={};function l(e,t){var r={seen:[],stylize:a};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&A._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),d(r,e,r.depth)}function i(e,t){t=l.styles[t];return t?"["+l.colors[t][0]+"m"+e+"["+l.colors[t][1]+"m":e}function a(e,t){return e}function d(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==A.inspect&&(!r.constructor||r.constructor.prototype!==r))return w(e=r.inspect(n,t))?e:d(t,e,n);e=t;var e,i=_(o=r)?e.stylize("undefined","undefined"):w(o)?(i="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(i,"string")):v(o)?e.stylize(""+o,"number"):y(o)?e.stylize(""+o,"boolean"):b(o)?e.stylize("null","null"):void 0;if(i)return i;var a,o=Object.keys(r),s=(a={},o.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return p(r);if(0===o.length){if(E(r))return c=r.name?": "+r.name:"",t.stylize("[Function"+c+"]","special");if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var l,u,c="",h=!1,f=["{","}"];return g(r)&&(h=!0,f=["[","]"]),E(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),o=h?function(t,r,n,i,e){for(var a=[],o=0,s=r.length;o<s;++o)C(r,String(o))?a.push(m(t,r,n,i,String(o),!0)):a.push("");return e.forEach(function(e){e.match(/^\d+$/)||a.push(m(t,r,n,i,e,!0))}),a}(t,r,n,s,o):o.map(function(e){return m(t,r,n,s,e,h)}),t.seen.pop(),l=c,u=f,60<(o=o).reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)?u[0]+(""===l?"":l+"\n ")+" "+o.join(",\n ")+" "+u[1]:u[0]+l+" "+o.join(", ")+" "+u[1]):f[0]+c+f[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i,a){var o,s;if((t=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(t.value)<0?-1<(s=b(r)?d(e,t.value,null):d(e,t.value,r-1)).indexOf("\n")&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(o)){if(a&&i.match(/^\d+$/))return s;o=(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function _(e){return void 0===e}function k(e){return u(e)&&"[object RegExp]"===r(e)}function u(e){return"object"==typeof e&&null!==e}function S(e){return u(e)&&"[object Date]"===r(e)}function x(e){return u(e)&&("[object Error]"===r(e)||e instanceof Error)}function E(e){return"function"==typeof e}function r(e){return Object.prototype.toString.call(e)}function c(e){return e<10?"0"+e.toString(10):e.toString(10)}A.debuglog=function(t){var r;return _(e)&&(e=o.env.NODE_DEBUG||""),t=t.toUpperCase(),n[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=o.pid,n[t]=function(){var e=A.format.apply(A,arguments);console.error("%s %d: %s",t,r,e)}):n[t]=function(){}),n[t]},(A.inspect=l).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},A.isArray=g,A.isBoolean=y,A.isNull=b,A.isNullOrUndefined=function(e){return null==e},A.isNumber=v,A.isString=w,A.isSymbol=function(e){return"symbol"==typeof e},A.isUndefined=_,A.isRegExp=k,A.isObject=u,A.isDate=S,A.isError=x,A.isFunction=E,A.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},A.isBuffer=T(866);var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}A.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[c(e.getHours()),c(e.getMinutes()),c(e.getSeconds())].join(":"),[e.getDate(),h[e.getMonth()],t].join(" ")),A.format.apply(A,arguments))},A.inherits=T(867),A._extend=function(e,t){if(t&&u(t))for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var f="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){var r;return e||((r=new Error("Promise was rejected with a falsy value")).reason=e,e=r),t(e)}A.promisify=function(a){if("function"!=typeof a)throw new TypeError('The "original" argument must be of type Function');if(f&&a[f]){var e;if("function"!=typeof(e=a[f]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var r,n,e=new Promise(function(e,t){r=e,n=t}),t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);t.push(function(e,t){e?n(e):r(t)});try{a.apply(this,t)}catch(e){n(e)}return e}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),f&&Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,t(a))},A.promisify.custom=f,A.callbackify=function(a){if("function"!=typeof a)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");function n(){return r.apply(i,arguments)}var i=this;a.apply(this,e).then(function(e){o.nextTick(n,null,e)},function(e){o.nextTick(P,e,n)})}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Object.defineProperties(e,t(a)),e}}.call(this,T(313))},853:function(e,rl,nl){"use strict";!function(e,M,j,L){nl.d(rl,"a",function(){return el});var I=nl(854),z=nl.n(I),I=nl(571),F=nl.n(I),I=nl(550),U=nl.n(I),I=nl(650),W=nl.n(I);function H(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach(function(e){Z(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Z(e,t,r){(t=ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function q(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function r(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=G(r),t=(e=n?(e=G(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==te(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){var r,n,i,a,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return i=!(n=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return n=e.done,e},e:function(e){i=!0,r=e},f:function(){try{n||null==o.return||o.return()}finally{if(i)throw r}}};if(Array.isArray(e)||(o=K(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){var r;if(e)return"string"==typeof e?J(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(e,t):void 0}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(){P=function(){return o};var l,o={},e=Object.prototype,u=e.hasOwnProperty,c=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(l){a=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i,a,o,s,t=t&&t.prototype instanceof g?t:g,t=Object.create(t.prototype),n=new E(n||[]);return c(t,"_invoke",{value:(i=e,a=r,o=n,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return{value:l,done:!0}}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){r=function e(t,r){var n=r.method,i=t.iterator[n];if(i===l)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=h(i,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,o);if(r){if(r===m)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===f)throw s=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=d;r=h(i,a,o);if("normal"===r.type){if(s=o.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(s=p,o.method="throw",o.arg=r.arg)}})}),t}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var f="suspendedStart",d="executing",p="completed",m={};function g(){}function y(){}function b(){}var t={},v=(a(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(C([]))),w=(v&&v!==e&&u.call(v,n)&&(t=v),b.prototype=g.prototype=Object.create(t));function _(e){["next","throw","return"].forEach(function(t){a(e,t,function(e){return this._invoke(t,e)})})}function k(o,s){var t;c(this,"_invoke",{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,i){var a,e=h(o[e],o,r);if("throw"!==e.type)return(r=(a=e.arg).value)&&"object"==te(r)&&u.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,n,i)},function(e){t("throw",e,n,i)}):s.resolve(r).then(function(e){a.value=e,n(a)},function(e){return t("throw",e,n,i)});i(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(te(t)+" is not iterable")}return c(w,"constructor",{value:y.prototype=b,configurable:!0}),c(b,"constructor",{value:y,configurable:!0}),y.displayName=a(b,i,"GeneratorFunction"),o.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a(e,i,"GeneratorFunction")),e.prototype=Object.create(w),e},o.awrap=function(e){return{__await:e}},_(k.prototype),a(k.prototype,r,function(){return this}),o.AsyncIterator=k,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new k(s(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(w),a(w,i,"Generator"),a(w,n,function(){return this}),a(w,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return a.type="throw",a.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=u.call(i,"catchLoc"),s=u.call(i,"finallyLoc");if(o&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var a=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(r=i.completion).type&&(n=r.arg,x(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),m}},o}function Y(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function $(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=s.apply(e,o);function i(e){Y(n,t,r,i,a,"next",e)}function a(e){Y(n,t,r,i,a,"throw",e)}i(void 0)})}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ee(n.key),n)}}function i(e,t,r){return t&&Q(e.prototype,t),r&&Q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e){e=function(e){if("object"!==te(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!==te(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"===te(e)?e:String(e)}function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}void 0===window.setImmediate&&(window.setImmediate=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout(function(){return e(r)})});var re,ne,ie,ae,oe,R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},I={},se={},d={},le={exports:{}},ue={exports:{}};function ce(){return re||(re=1,void 0===M||!M.version||0===M.version.indexOf("v0.")||0===M.version.indexOf("v1.")&&0!==M.version.indexOf("v1.8.")?ue.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return M.nextTick(e);case 2:return M.nextTick(function(){e.call(null,t)});case 3:return M.nextTick(function(){e.call(null,t,r)});case 4:return M.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return M.nextTick(function(){e.apply(null,i)})}}}:ue.exports=M),ue.exports}function he(){return oe?ae:(oe=1,ae=z.a)}var fe,de={exports:{}};function pe(){return fe||(fe=1,n=(r=de).exports,i=U.a,(a=i.Buffer).from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(e(i,n),n.Buffer=t),e(a,t),t.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},t.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},t.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},t.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}),de.exports;function e(e,t){for(var r in e)t[r]=e[r]}function t(e,t,r){return a(e,t,r)}var r,n,i,a}var me,a={};function ge(){return me||(me=1,a.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},a.isBoolean=function(e){return"boolean"==typeof e},a.isNull=function(e){return null===e},a.isNullOrUndefined=function(e){return null==e},a.isNumber=function(e){return"number"==typeof e},a.isString=function(e){return"string"==typeof e},a.isSymbol=function(e){return"symbol"==te(e)},a.isUndefined=function(e){return void 0===e},a.isRegExp=function(e){return"[object RegExp]"===t(e)},a.isObject=function(e){return"object"==te(e)&&null!==e},a.isDate=function(e){return"[object Date]"===t(e)},a.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},a.isFunction=function(e){return"function"==typeof e},a.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==te(e)||void 0===e},a.isBuffer=U.a.Buffer.isBuffer),a;function t(e){return Object.prototype.toString.call(e)}}var ye,be,ve={exports:{}},we={exports:{}};function _e(){if(!be){be=1;try{var e=nl(650);if("function"!=typeof e.inherits)throw"";ve.exports=e.inherits}catch(e){ve.exports=(ye||(ye=1,"function"==typeof Object.create?we.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:we.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}),we.exports)}}return ve.exports}var ke,Se,xe,Ee,Ce,Pe,Ae,Te,Oe,Ne={exports:{}};function Me(){if(xe)return Se;xe=1;var a=ce();function o(e,t){e.emit("error",t)}return Se={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,e)):a.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,a.nextTick(o,r,e)):a.nextTick(o,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Re(){if(!Ae){Ae=1;var m=ce();Pe=s;var a,c=!M.browser&&-1<["v0.10","v0.9."].indexOf(M.version.slice(0,5))?j:m.nextTick,e=(s.WritableState=o,Object.create(ge()));e.inherits=_e();var t,r={deprecate:Ce?Ee:(Ce=1,Ee=W.a.deprecate)},n=he(),g=pe().Buffer,y=(void 0!==R?R:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},i=Me();e.inherits(s,n),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(t=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!t.call(this,e)||this===s&&e&&e._writableState instanceof o}})):t=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,i,a,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,g.isBuffer(p)||p instanceof y);return p&&!g.isBuffer(e)&&(h=e,e=g.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(a=e)?l=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,a=this,o=f,l=e,s=t,f=r,(e=p)||(i=l,n=s,i=o.objectMode||!1===o.decodeStrings||"string"!=typeof i?i:g.from(i,n),l!==i&&(e=!0,s="buffer",l=i)),n=o.objectMode?1:l.length,o.length+=n,(i=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(a,o,!1,n,l,s,f),d=i),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=i.destroy,s.prototype._undestroy=i.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}return Pe;function h(i){var a=this;this.next=null,this.entry=null,this.finish=function(){var e=a,t=i,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}function b(){}function o(e,u){a=a||Be(),e=e||{};var t=u instanceof a,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,i=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,i,a,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(a=o).writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e?(a=t,n=s,e=e,i=l,--(r=o).pendingcb,n?(m.nextTick(i,e),m.nextTick(w,a,r),a._writableState.errorEmitted=!0,a.emit("error",e)):(i(e),a._writableState.errorEmitted=!0,a.emit("error",e),w(a,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?c(f,t,o,n,l):f(t,o,n,l))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}function s(e){if(a=a||Be(),!(t.call(s,this)||this instanceof a))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),n.call(this)}function v(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function f(e,t,r,n){var i;r||(r=e,0===(i=t).length&&i.needDrain&&(i.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)(i[a]=r).isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,v(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,i=p(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),i}}function Be(){if(!Oe){Oe=1;var r=ce(),e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(Te=l,Object.create(ge())),n=(t.inherits=_e(),qe()),i=Re();t.inherits(l,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];l.prototype[s]||(l.prototype[s]=i.prototype[s])}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}}return Te;function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(c,this)}function c(e){e.end()}}var De,je,Le,Ie,ze,Fe,Ue,We,He={};function Ze(){var r,n;return De||(De=1,r=pe().Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},(He.StringDecoder=e).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},e.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},e.prototype.text=function(e,t){r=this,a=t;var r,n,i,a=(i=(o=e).length-1)<a?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-1),n):--i<a||-2===n?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-2),n):!(--i<a||-2===n)&&0<=(n=s(o[i]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var o=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},e.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}),He;function e(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||r.isEncoding!==n&&n(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=a,this.end=o,t=4;break;case"utf8":this.fillLast=i,t=4;break;case"base64":this.text=l,this.end=u,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function a(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function o(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function l(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}}function qe(){var g,a,y,b,r,h,f,e,v,o,s,t,l,n,u;return Le||(Le=1,g=ce(),je=d,y=function(){if(ie)return ne;ie=1;var t={}.toString;return ne=Array.isArray||function(e){return"[object Array]"==t.call(e)}}(),d.ReadableState=c,F.a.EventEmitter,b=function(e,t){return e.listeners(t).length},r=he(),h=pe().Buffer,f=(void 0!==R?R:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},(e=Object.create(ge())).inherits=_e(),t=W.a,v=void 0,v=t&&t.debuglog?t.debuglog("stream"):function(){},ke||(ke=1,t=Ne,l=pe().Buffer,n=W.a,t.exports=(i.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return l.alloc(0);for(var t,r=l.allocUnsafe(e>>>0),n=this.head,i=0;n;)t=i,n.data.copy(r,t),i+=n.data.length,n=n.next;return r},i),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})),s=Ne.exports,t=Me(),e.inherits(d,r),u=["error","close","destroy","pause","resume"],Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),d.prototype.destroy=t.destroy,d.prototype._undestroy=t.undestroy,d.prototype._destroy=function(e,t){this.push(null),t(e)},d.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),p(this,e,t,!1,r)},d.prototype.unshift=function(e){return p(this,e,null,!0,!1)},d.prototype.isPaused=function(){return!1===this._readableState.flowing},d.prototype.setEncoding=function(e){return o=o||Ze().StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},d.prototype.read=function(e){v("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(v("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?T:_)(this),null):0===(e=w(e,r))&&r.ended?(0===r.length&&T(this),null):(t=r.needReadable,v("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&v("length less than watermark",t=!0),r.ended||r.reading?v("reading or ended",t=!1):t&&(v("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=w(n,r))),null===(t=0<e?A(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&T(this),null!==t&&this.emit("data",t),t)},d.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},d.prototype.pipe=function(n,e){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,v("pipe count=%d opts=%j",a.pipesCount,e);e=e&&!1===e.end||n===M.stdout||n===M.stderr?m:o;function o(){v("onend"),n.end()}a.endEmitted?g.nextTick(e):i.once("end",e),n.on("unpipe",function e(t,r){v("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,v("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",h),u=!0,!a.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=i;var t,r,s,l=function(){var e=t._readableState;v("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,P(t))},u=(n.on("drain",l),!1),c=!1;function h(e){v("ondata"),(c=!1)!==n.write(e)||c||((1===a.pipesCount&&a.pipes===n||1<a.pipesCount&&-1!==N(a.pipes,n))&&!u&&(v("false write response, pause",a.awaitDrain),a.awaitDrain++,c=!0),i.pause())}function f(e){v("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){v("onfinish"),n.removeListener("close",d),m()}function m(){v("unpipe"),i.unpipe(n)}return i.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?y(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",i),a.flowing||(v("pipe resume"),i.resume()),n},d.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=N(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1})}return this},d.prototype.addListener=d.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&_(this):g.nextTick(E,this)),t},d.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(v("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,g.nextTick(C,e,t))),this},d.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},d.prototype.wrap=function(t){var e,r=this,n=this._readableState,i=!1;for(e in t.on("end",function(){var e;v("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){v("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(i=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<u.length;a++)t.on(u[a],this.emit.bind(this,u[a]));return this._read=function(e){v("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),d._fromList=A),je;function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}function c(e,t){e=e||{};var t=t instanceof(a=a||Be()),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||Ze().StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function d(e){if(a=a||Be(),!(this instanceof d))return new d(e);this._readableState=new c(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function p(e,t,r,n,i){var a,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,_(s))):(i||(u=c,s=l=t,a=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),a?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(i=t,t=h.from(i)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?m(e,c,t,!1):S(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function m(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),S(e,t)}function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g.nextTick(k,e):k(e))}function k(e){v("emit readable"),e.emit("readable"),P(e)}function S(e,t){t.readingMore||(t.readingMore=!0,g.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(v("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function E(e){v("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(v("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++n}return t.length-=n,i}:function(e,t){var r=h.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0==(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++i}return t.length-=i,r})(e,r),i=n),i);var r,n,i}function T(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,g.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}}function Ve(){var n,e;return ze||(ze=1,Ie=t,n=Be(),(e=Object.create(ge())).inherits=_e(),e.inherits(t,n),t.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},t.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},t.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},t.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},t.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}),Ie;function t(e){if(!(this instanceof t))return new t(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",r)}function r(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){i(r,e,t)}):i(this,null,null)}function i(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}}function Xe(){return We||(We=1,n=(e=le).exports,i=z.a,"disable"===M.env.READABLE_STREAM&&i?(e.exports=i,(n=e.exports=i.Readable).Readable=i.Readable,n.Writable=i.Writable,n.Duplex=i.Duplex,n.Transform=i.Transform,n.PassThrough=i.PassThrough,n.Stream=i):((n=e.exports=qe()).Stream=i||n,(n.Readable=n).Writable=Re(),n.Duplex=Be(),n.Transform=Ve(),n.PassThrough=(Ue||(Ue=1,Fe=t,r=Ve(),(e=Object.create(ge())).inherits=_e(),e.inherits(t,r),t.prototype._transform=function(e,t,r){r(null,e)}),Fe))),le.exports;function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}var r,e,n,i}if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,d.nodebuffer=void 0!==L,d.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)d.blob=!1;else{e=new ArrayBuffer(0);try{d.blob=0===new Blob([e],{type:"application/zip"}).size}catch(La){try{var Ge=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Ge.append(e),d.blob=0===Ge.getBlob("application/zip").size}catch(La){d.blob=!1}}}try{d.nodestream=!!Xe().Readable}catch(La){d.nodestream=!1}var Ke,Je={};function Ye(){var h,c,f;return Ke||(Ke=1,h=s(),c=d,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Je.encode=function(e){for(var t,r,n,i,a,o,s=[],l=0,u=e.length,c="string"!==h.getTypeOf(e);l<e.length;)o=u-l,n=c?(t=e[l++],r=l<u?e[l++]:0,l<u?e[l++]:0):(t=e.charCodeAt(l++),r=l<u?e.charCodeAt(l++):0,l<u?e.charCodeAt(l++):0),i=(3&t)<<4|r>>4,a=1<o?(15&r)<<2|n>>6:64,o=2<o?63&n:64,s.push(f.charAt(t>>2)+f.charAt(i)+f.charAt(a)+f.charAt(o));return s.join("")},Je.decode=function(e){var t,r,n,i,a,o=0,s=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var l,u=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===f.charAt(64)&&u--,e.charAt(e.length-2)===f.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=new(c.uint8array?Uint8Array:Array)(0|u);o<e.length;)t=f.indexOf(e.charAt(o++))<<2|(i=f.indexOf(e.charAt(o++)))>>4,r=(15&i)<<4|(i=f.indexOf(e.charAt(o++)))>>2,n=(3&i)<<6|(a=f.indexOf(e.charAt(o++))),l[s++]=t,64!==i&&(l[s++]=r),64!==a&&(l[s++]=n);return l}),Je}var $e,Qe,et,tt,rt,l,nt,it,at,ot,o,st,lt,ut,ct,ht,ft,dt,pt,mt={isNode:void 0!==L,newBufferFrom:function(e,t){if(L.from&&L.from!==Uint8Array.from)return L.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new L(e,t)},allocBuffer:function(e){return L.alloc?L.alloc(e):((e=new L(e)).fill(0),e)},isBuffer:function(e){return L.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}},gt={Promise:"undefined"!=typeof Promise?Promise:(u||(u=1,rt=function(){if(Qe)return $e;Qe=1;var n,e,t,r,i=R.MutationObserver||R.WebKitMutationObserver,a=M.browser?i?(e=0,i=new i(s),t=R.document.createTextNode(""),i.observe(t,{characterData:!0}),function(){t.data=e=++e%2}):R.setImmediate||void 0===R.MessageChannel?"document"in R&&"onreadystatechange"in R.document.createElement("script")?function(){var e=R.document.createElement("script");e.onreadystatechange=function(){s(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},R.document.documentElement.appendChild(e)}:function(){setTimeout(s,0)}:((r=new R.MessageChannel).port1.onmessage=s,function(){r.port2.postMessage(0)}):function(){M.nextTick(s)},o=[];function s(){var e,t;n=!0;for(var r=o.length;r;){for(t=o,o=[],e=-1;++e<r;)t[e]();r=o.length}n=!1}return $e=function(e){1!==o.push(e)||n||a()}}(),l={},nt=["REJECTED"],it=["FULFILLED"],at=["PENDING"],M.browser||(ot=["UNHANDLED"]),(et=bt).prototype.finally=function(t){var r;return"function"!=typeof t?this:(r=this.constructor,this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}))},bt.prototype.catch=function(e){return this.then(null,e)},bt.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===it||"function"!=typeof t&&this.state===nt?this:(r=new this.constructor(yt),M.browser||this.handled===ot&&(this.handled=null),this.state!==at?wt(r,this.state===it?e:t,this.outcome):this.queue.push(new vt(r,e,t)),r)},vt.prototype.callFulfilled=function(e){l.resolve(this.promise,e)},vt.prototype.otherCallFulfilled=function(e){wt(this.promise,this.onFulfilled,e)},vt.prototype.callRejected=function(e){l.reject(this.promise,e)},vt.prototype.otherCallRejected=function(e){wt(this.promise,this.onRejected,e)},l.resolve=function(e,t){var r=St(_t,t);if("error"===r.status)return l.reject(e,r.value);r=r.value;if(r)kt(e,r);else{e.state=it,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callFulfilled(t)}return e},l.reject=function(e,t){e.state=nt,e.outcome=t,M.browser||e.handled===ot&&rt(function(){e.handled===ot&&M.emit("unhandledRejection",t,e)});for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},bt.resolve=function(e){return e instanceof this?e:l.resolve(new this(yt),e)},bt.reject=function(e){var t=new this(yt);return l.reject(t,e)},bt.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),o=0,t=-1,s=new this(yt);++t<n;)!function(e,t){r.resolve(e).then(function(e){a[t]=e,++o!==n||i||(i=!0,l.resolve(s,a))},function(e){i||(i=!0,l.reject(s,e))})}(e[t],t);return s},bt.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,i=-1,a=new this(yt);++i<t;)n=e[i],this.resolve(n).then(function(e){r||(r=!0,l.resolve(a,e))},function(e){r||(r=!0,l.reject(a,e))});return a}),et)};function yt(){}function bt(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=at,this.queue=[],this.outcome=void 0,M.browser||(this.handled=ot),e!==yt&&kt(this,e)}function vt(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function wt(t,r,n){rt(function(){var e;try{e=r(n)}catch(e){return l.reject(t,e)}e===t?l.reject(t,new TypeError("Cannot resolve promise with itself")):l.resolve(t,e)})}function _t(e){var t=e&&e.then;if(e&&("object"==te(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function kt(t,e){var r=!1;function n(e){r||(r=!0,l.reject(t,e))}function i(e){r||(r=!0,l.resolve(t,e))}var a=St(function(){e(i,n)});"error"===a.status&&n(a.value)}function St(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}function s(){return tt||(tt=1,s=se,l=d,u=Ye(),n=mt,c=gt,s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},i={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)n.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a))):String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(e){return!1}}()}},s.applyFromCharCode=t,(a={}).string={string:e,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return a.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,n.allocBuffer(e.length))}},a.array={string:t,array:e,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},a.arraybuffer={string:function(e){return t(new Uint8Array(e))},array:function(e){return r(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},a.uint8array={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:e,nodebuffer:function(e){return n.newBufferFrom(e)}},a.nodebuffer={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return a.nodebuffer.uint8array(e).buffer},uint8array:function(e){return r(e,new Uint8Array(e.length))},nodebuffer:e},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return a[r][e](t)},s.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){for(var t,r="",n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},s.delay=function(e,t,r){j(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},s.prepareContent=function(r,e,n,i,a){return c.Promise.resolve(e).then(function(n){return l.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t=s.getTypeOf(e);return t?("arraybuffer"===t?e=s.transformTo("uint8array",e):"string"===t&&(a?e=u.decode(e):n&&!0!==i&&(e=o(t=e,new(l.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}),se;function e(e){return e}function o(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function t(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=i.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=i.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return i.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return i.stringifyByChar(e)}function r(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var s,l,u,n,c,i,a}function xt(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}function Et(e){delete ht[e]}function Ct(e){if(ft)setTimeout(Ct,0,e);else{var t=ht[e];if(t){ft=!0;try{var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(void 0,n)}}finally{Et(e),ft=!1}}}}(o="undefined"==typeof self?R:self).setImmediate||(ct=1,ft=!(ht={}),dt=o.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(o))&&e.setTimeout?e:o,pt="[object process]"==={}.toString.call(o.process)?function(e){M.nextTick(function(){Ct(e)})}:function(){var e,t;if(o.postMessage&&!o.importScripts)return e=!0,t=o.onmessage,o.onmessage=function(){e=!1},o.postMessage("","*"),o.onmessage=t,e}()?(ut="setImmediate$"+Math.random()+"$",Ge=function(e){e.source===o&&"string"==typeof e.data&&0===e.data.indexOf(ut)&&Ct(+e.data.slice(ut.length))},o.addEventListener?o.addEventListener("message",Ge,!1):o.attachEvent("onmessage",Ge),function(e){o.postMessage(ut+e,"*")}):o.MessageChannel?((lt=new MessageChannel).port1.onmessage=function(e){Ct(e.data)},function(e){lt.port2.postMessage(e)}):dt&&"onreadystatechange"in dt.createElement("script")?(st=dt.documentElement,function(e){var t=dt.createElement("script");t.onreadystatechange=function(){Ct(e),t.onreadystatechange=null,st.removeChild(t),t=null},st.appendChild(t)}):function(e){setTimeout(Ct,0,e)},e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return ht[ct]={callback:e,args:t},pt(ct),ct++},e.clearImmediate=Et),xt.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};for(var u=xt,Pt=I,At=s(),Tt=d,Ot=mt,Nt=u,Mt=new Array(256),Rt=0;Rt<256;Rt++)Mt[Rt]=252<=Rt?6:248<=Rt?5:240<=Rt?4:224<=Rt?3:192<=Rt?2:1;function Bt(){Nt.call(this,"utf-8 decode"),this.leftOver=null}function Dt(){Nt.call(this,"utf-8 encode")}Mt[254]=Mt[254]=1,Pt.utf8encode=function(e){if(Tt.nodebuffer)return Ot.newBufferFrom(e,"utf-8");for(var t,r,n,i,a=e,o=a.length,s=0,l=0;l<o;l++)55296==(64512&(r=a.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=a.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(Tt.uint8array?Uint8Array:Array)(s),l=i=0;i<s;l++)55296==(64512&(r=a.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=a.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},Pt.utf8decode=function(e){if(Tt.nodebuffer)return At.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,n=e=At.transformTo(Tt.uint8array?"uint8array":"array",e),i=n.length,a=new Array(2*i),o=0,s=0;s<i;)if((t=n[s++])<128)a[o++]=t;else if(4<(r=Mt[t]))a[o++]=65533,s+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&s<i;)t=t<<6|63&n[s++],r--;1<r?a[o++]=65533:t<65536?a[o++]=t:(t-=65536,a[o++]=55296|t>>10&1023,a[o++]=56320|1023&t)}return a.length!==o&&(a.subarray?a=a.subarray(0,o):a.length=o),At.applyFromCharCode(a)},At.inherits(Bt,Nt),Bt.prototype.processChunk=function(e){var t=At.transformTo(Tt.uint8array?"uint8array":"array",e.data),r=(this.leftOver&&this.leftOver.length&&(Tt.uint8array?(r=t,(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+Mt[e[r]]>t?r:t}(t)),n=t;r!==t.length&&(Tt.uint8array?(n=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(n=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:Pt.utf8decode(n),meta:e.meta})},Bt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Pt.Utf8DecodeWorker=Bt,At.inherits(Dt,Nt),Dt.prototype.processChunk=function(e){this.push({data:Pt.utf8encode(e.data),meta:e.meta})},Pt.Utf8EncodeWorker=Dt;var jt=u,Lt=s();function It(e){jt.call(this,"ConvertWorker to "+e),this.destType=e}Lt.inherits(It,jt),It.prototype.processChunk=function(e){this.push({data:Lt.transformTo(this.destType,e.data),meta:e.meta})};var zt,Ft,e=It,Ut=s(),Wt=e,Ht=u,Zt=Ye(),qt=gt,Vt=null;if(d.nodestream)try{Vt=function(){if(Ft)return zt;Ft=1;var i=Xe().Readable;function e(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}return s().inherits(e,i),e.prototype._read=function(){this._helper.resume()},zt=e}()}catch(La){}function Xt(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,Ut.checkSupport(n),this._worker=e.pipe(new Wt(n)),e.lock()}catch(e){this._worker=new Ht("error"),this._worker.error(e)}}Xt.prototype={accumulate:function(e){return s=this,l=e,new qt.Promise(function(t,r){var n=[],i=s._internalType,a=s._outputType,o=s._mimeType;s.on("data",function(e,t){n.push(e),l&&l(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return Ut.newBlob(Ut.transformTo("arraybuffer",t),r);case"base64":return Zt.encode(t);default:return Ut.transformTo(e,t)}}(a,function(e,t){for(var r=0,n=null,i=0,a=0;a<t.length;a++)i+=t[a].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(i),a=0;a<t.length;a++)n.set(t[a],r),r+=t[a].length;return n;case"nodebuffer":return L.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(i,n),o);t(e)}catch(e){r(e)}n=[]}).resume()});var s,l},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){Ut.delay(t,arguments,r)}),this},resume:function(){return Ut.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ut.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Vt(this,{objectMode:"nodebuffer"!==this._outputType},e)}};var e=Xt,Gt={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Kt=s(),Jt=u;function Yt(e){Jt.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=Kt.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}Kt.inherits(Yt,Jt),Yt.prototype.cleanUp=function(){Jt.prototype.cleanUp.call(this),this.data=null},Yt.prototype.resume=function(){return!!Jt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Kt.delay(this._tickAndRepeat,[],this)),!0)},Yt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(Kt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},Yt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})};function $t(e,t){return void 0!==e&&e.length?("string"!==Qt.getTypeOf(e)?function(e,t,r){var n=er,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}:function(e,t,r){var n=er,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e})(0|t,e,e.length):0}var c=Yt,Qt=s(),er=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}(),tr=u,rr=$t;function nr(){tr.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s().inherits(nr,tr),nr.prototype.processChunk=function(e){this.streamInfo.crc32=rr(e.data,this.streamInfo.crc32||0),this.push(e)};var ir=nr,ar=s(),or=u;function sr(e){or.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}ar.inherits(sr,or),sr.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),or.prototype.processChunk.call(this,e)};var lr=gt,ur=c,cr=ir,hr=sr;function fr(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}fr.prototype={getContentWorker:function(){var e=new ur(lr.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new hr("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new ur(lr.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},fr.createWorkerFrom=function(e,t,r){return e.pipe(new cr).pipe(new hr("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new hr("compressedSize")).withStreamInfo("compression",t)};function dr(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var ar=fr,pr=e,mr=c,gr=I,yr=ar,br=u;dr.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r,i=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);i&&!n&&(t=t.pipe(new gr.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new gr.Utf8DecodeWorker))}catch(e){(t=new br("error")).error(e)}return new pr(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof yr&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new gr.Utf8EncodeWorker)),yr.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof yr?this._data.getContentWorker():this._data instanceof br?this._data:new mr(this._data)}};for(var vr=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],wr=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},_r=0;_r<vr.length;_r++)dr.prototype[vr[_r]]=wr;var h,kr,Sr,c=dr,xr={},Er={},Cr={},Pr={},f=(h=Pr,f="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,h.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=te(i))throw new TypeError(i+"must be non-object");for(var a in i)t=i,r=a,Object.prototype.hasOwnProperty.call(t,r)&&(e[a]=i[a])}}return e},h.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},kr={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){for(var t,r,n,i=0,a=0,o=e.length;a<o;a++)i+=e[a].length;for(n=new Uint8Array(i),a=t=0,o=e.length;a<o;a++)r=e[a],n.set(r,t),t+=r.length;return n}},Sr={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}},h.setTyped=function(e){e?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,kr)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,Sr))},h.setTyped(f),{}),p={},m={},Ar=Pr;function Tr(e){for(var t=e.length;0<=--t;)e[t]=0}var Or=[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],Nr=[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],Mr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Br=new Array(576),Dr=(Tr(Br),new Array(60)),jr=(Tr(Dr),new Array(512)),Lr=(Tr(jr),new Array(256)),Ir=(Tr(Lr),new Array(29));Tr(Ir);var zr,Fr,Ur,Wr=new Array(30);function Hr(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function Zr(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function qr(e){return e<256?jr[e]:jr[256+(e>>>7)]}function Vr(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function g(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,Vr(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Xr(e,t,r){g(e,r[2*t],r[2*t+1])}function Gr(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function Kr(e,t,r){for(var n,i=new Array(16),a=0,o=1;o<=15;o++)i[o]=a=a+r[o-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=Gr(i[s]++,s))}}function Jr(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Yr(e){8<e.bi_valid?Vr(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $r(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function Qr(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&$r(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!$r(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function en(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0==n?Xr(e,i,t):(Xr(e,(a=Lr[i])+256+1,t),0!==(o=Or[a])&&g(e,i-=Ir[a],o),Xr(e,a=qr(--n),r),0!==(o=Nr[a])&&g(e,n-=Wr[a],o)),s<e.last_lit;);Xr(e,256,t)}function tn(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)Qr(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qr(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Qr(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,h,f,d,p,m=e,g=t.dyn_tree,y=t.max_code,b=t.stat_desc.static_tree,v=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,k=t.stat_desc.max_length,S=0,x=0;x<=15;x++)m.bl_count[x]=0;for(g[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(x=g[2*g[2*(h=m.heap[c])+1]+1]+1)>k&&(x=k,S++),g[2*h+1]=x,y<h||(m.bl_count[x]++,d=0,_<=h&&(d=w[h-_]),p=g[2*h],m.opt_len+=p*(x+d),v&&(m.static_len+=p*(b[2*h+1]+d)));if(0!==S){do{for(x=k-1;0===m.bl_count[x];)x--}while(m.bl_count[x]--,m.bl_count[x+1]+=2,m.bl_count[k]--,0<(S-=2));for(x=k;0!==x;x--)for(h=m.bl_count[x];0!==h;)(f=m.heap[--c])>y||(g[2*f+1]!==x&&(m.opt_len+=(x-g[2*f+1])*g[2*f],g[2*f+1]=x),h--)}Kr(a,u,e.bl_count)}function rn(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function nn(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)for(;Xr(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(Xr(e,i,e.bl_tree),s--),Xr(e,16,e.bl_tree),g(e,s-3,2)):s<=10?(Xr(e,17,e.bl_tree),g(e,s-3,3)):(Xr(e,18,e.bl_tree),g(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}Tr(Wr);var an=!1;function on(e,t,r,n){g(e,0+(n?1:0),3),n=t,t=r,Yr(r=e),Vr(r,t),Vr(r,~t),Ar.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}m._tr_init=function(e){if(!an){for(var t,r,n,i=new Array(16),a=0,o=0;o<28;o++)for(Ir[o]=a,t=0;t<1<<Or[o];t++)Lr[a++]=o;for(Lr[a-1]=o,o=n=0;o<16;o++)for(Wr[o]=n,t=0;t<1<<Nr[o];t++)jr[n++]=o;for(n>>=7;o<30;o++)for(Wr[o]=n<<7,t=0;t<1<<Nr[o]-7;t++)jr[256+n++]=o;for(r=0;r<=15;r++)i[r]=0;for(t=0;t<=143;)Br[2*t+1]=8,t++,i[8]++;for(;t<=255;)Br[2*t+1]=9,t++,i[9]++;for(;t<=279;)Br[2*t+1]=7,t++,i[7]++;for(;t<=287;)Br[2*t+1]=8,t++,i[8]++;for(Kr(Br,287,i),t=0;t<30;t++)Dr[2*t+1]=5,Dr[2*t]=Gr(t,5);zr=new Hr(Br,Or,257,286,15),Fr=new Hr(Dr,Nr,0,30,15),Ur=new Hr(new Array(0),Mr,0,19,7),an=!0}e.l_desc=new Zr(e.dyn_ltree,zr),e.d_desc=new Zr(e.dyn_dtree,Fr),e.bl_desc=new Zr(e.bl_tree,Ur),e.bi_buf=0,e.bi_valid=0,Jr(e)},m._tr_stored_block=on,m._tr_flush_block=function(e,t,r,n){var i,a,o,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),tn(e,e.l_desc),tn(e,e.d_desc),s=function(e){var t;for(rn(e,e.dyn_ltree,e.l_desc.max_code),rn(e,e.dyn_dtree,e.d_desc.max_code),tn(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*Rr[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t)on(e,t,r,n);else if(4===e.strategy||a===i)g(e,2+(n?1:0),3),en(e,Br,Dr);else{g(e,4+(n?1:0),3);var l=e,u=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,s+1);for(g(l,t-257,5),g(l,r-1,5),g(l,u-4,4),o=0;o<u;o++)g(l,l.bl_tree[2*Rr[o]+1],3);nn(l,l.dyn_ltree,t-1),nn(l,l.dyn_dtree,r-1),en(e,e.dyn_ltree,e.dyn_dtree)}Jr(e),n&&Yr(e)},m._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Lr[r]+256+1)]++,e.dyn_dtree[2*qr(t)]++),e.last_lit===e.lit_bufsize-1},m._tr_align=function(e){g(e,2,3),Xr(e,256,Br),16===(e=e).bi_valid?(Vr(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)};function sn(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}function ln(e,t,r,n){var i=cn,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}var un,cn=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}(),hn={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"},y=Pr,fn=m,dn=sn,pn=ln,mn=hn,gn=258,yn=262;function bn(e,t){return e.msg=mn[t],t}function vn(e){return(e<<1)-(4<e?9:0)}function wn(e){for(var t=e.length;0<=--t;)e[t]=0}function _n(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(y.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function b(e,t){fn._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_n(e.strm)}function v(e,t){e.pending_buf[e.pending++]=t}function kn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Sn(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-yn?e.strstart-(e.w_size-yn):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+gn,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){for(a+=2,r++;u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<f;);if(n=gn-(f-a),a=f-gn,o<n){if(e.match_start=t,s<=(o=n))break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function xn(e){var t,r,n,i,a,o,s,l,u,c=e.w_size;do{if(l=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-yn)){for(y.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;n=e.head[--t],e.head[t]=c<=n?n-c:0,--r;);for(t=r=c;n=e.prev[--t],e.prev[t]=c<=n?n-c:0,--r;);l+=c}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,s=e.strstart+e.lookahead,l=l,u=void 0,r=0===(u=(u=a.avail_in)>l?l:u)?0:(a.avail_in-=u,y.arraySet(o,a.input,a.next_in,u,s),1===a.state.wrap?a.adler=dn(a.adler,o,u,s):2===a.state.wrap&&(a.adler=pn(a.adler,o,u,s)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=r,3<=e.lookahead+e.insert)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+3-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<yn&&0!==e.strm.avail_in)}function En(e,t){for(var r,n;;){if(e.lookahead<yn){if(xn(e),e.lookahead<yn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-yn&&(e.match_length=Sn(e,r)),3<=e.match_length)if(n=fn._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function Cn(e,t){for(var r,n,i;;){if(e.lookahead<yn){if(xn(e),e.lookahead<yn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-yn&&(e.match_length=Sn(e,r),e.match_length<=5)&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=fn._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=fn._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=fn._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function Pn(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function An(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),wn(this.dyn_ltree),wn(this.dyn_dtree),wn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),wn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),wn(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 Tn(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,fn._tr_init(t),0):bn(e,-2)}function On(e){var t=Tn(e);return 0===t&&((e=e.state).window_size=2*e.w_size,wn(e.head),e.max_lazy_match=un[e.level].max_lazy,e.good_match=un[e.level].good_length,e.nice_match=un[e.level].nice_length,e.max_chain_length=un[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t}function Nn(e,t,r,n,i,a){if(!e)return-2;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||9<i||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return bn(e,-2);8===n&&(n=9);var s=new An;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new y.Buf8(2*s.w_size),s.head=new y.Buf16(s.hash_size),s.prev=new y.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new y.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,On(e)}un=[new Pn(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(xn(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-yn&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)}),new Pn(4,4,8,4,En),new Pn(4,5,16,8,En),new Pn(4,6,32,32,En),new Pn(4,4,16,16,Cn),new Pn(8,16,32,32,Cn),new Pn(8,16,128,128,Cn),new Pn(8,32,128,256,Cn),new Pn(32,128,258,1024,Cn),new Pn(32,258,258,4096,Cn)],p.deflateInit=function(e,t){return Nn(e,t,8,15,8,0)},p.deflateInit2=Nn,p.deflateReset=On,p.deflateResetKeep=Tn,p.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?-2:(e.state.gzhead=t,0)},p.deflate=function(e,t){var r,n,i,a;if(!e||!e.state||5<t||t<0)return e?bn(e,-2):-2;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return bn(e,0===e.avail_out?-5:-2);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status&&(2===n.wrap?(e.adler=0,v(n,31),v(n,139),v(n,8),n.gzhead?(v(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),v(n,255&n.gzhead.time),v(n,n.gzhead.time>>8&255),v(n,n.gzhead.time>>16&255),v(n,n.gzhead.time>>24&255),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(v(n,255&n.gzhead.extra.length),v(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=pn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(v(n,0),v(n,0),v(n,0),v(n,0),v(n,0),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,3),n.status=113)):(o=8+(n.w_bits-8<<4)<<8,o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,kn(n,o),0!==n.strstart&&(kn(n,e.adler>>>16),kn(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending!==n.pending_buf_size));)v(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,v(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,v(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&_n(e),n.pending+2<=n.pending_buf_size&&(v(n,255&e.adler),v(n,e.adler>>8&255),e.adler=0,n.status=113)):n.status=113),0!==n.pending){if(_n(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&vn(t)<=vn(r)&&4!==t)return bn(e,-5);if(666===n.status&&0!==e.avail_in)return bn(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(xn(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=gn){if(xn(e),e.lookahead<=gn&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){for(a=e.strstart+gn;n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a;);e.match_length=gn-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=fn._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(n,t):un[n.level].func(n,t);if(3!==o&&4!==o||(n.status=666),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===o&&(1===t?fn._tr_align(n):5!==t&&(fn._tr_stored_block(n,0,0,!1),3===t)&&(wn(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),_n(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t||!(n.wrap<=0)&&(2===n.wrap?(v(n,255&e.adler),v(n,e.adler>>8&255),v(n,e.adler>>16&255),v(n,e.adler>>24&255),v(n,255&e.total_in),v(n,e.total_in>>8&255),v(n,e.total_in>>16&255),v(n,e.total_in>>24&255)):(kn(n,e.adler>>>16),kn(n,65535&e.adler)),_n(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?0:1},p.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?bn(e,-2):(e.state=null,113===t?bn(e,-3):0):-2},p.deflateSetDictionary=function(e,t){var r,n,i,a,o,s,l,u=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=dn(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===a&&(wn(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new y.Buf8(r.w_size),y.arraySet(l,t,u-r.w_size,r.w_size,0),t=l,u=r.w_size),l=e.avail_in,o=e.next_in,s=e.input,e.avail_in=u,e.next_in=0,e.input=t,xn(r);3<=r.lookahead;){for(n=r.strstart,i=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=2,xn(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=l,r.wrap=a,0},p.deflateInfo="pako deflate (from Nodeca project)";var m={},Mn=Pr,Rn=!0,Bn=!0;try{String.fromCharCode.apply(null,[0])}catch(La){Rn=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(La){Bn=!1}for(var Dn=new Mn.Buf8(256),jn=0;jn<256;jn++)Dn[jn]=252<=jn?6:248<=jn?5:240<=jn?4:224<=jn?3:192<=jn?2:1;function Ln(e,t){if(t<65534&&(e.subarray&&Bn||!e.subarray&&Rn))return String.fromCharCode.apply(null,Mn.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}Dn[254]=Dn[254]=1,m.string2buf=function(e){for(var t,r,n,i,a=e.length,o=0,s=0;s<a;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Mn.Buf8(o),s=i=0;i<o;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},m.buf2binstring=function(e){return Ln(e,e.length)},m.binstring2buf=function(e){for(var t=new Mn.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},m.buf2string=function(e,t){for(var r,n,i=t||e.length,a=new Array(2*i),o=0,s=0;s<i;)if((r=e[s++])<128)a[o++]=r;else if(4<(n=Dn[r]))a[o++]=65533,s+=n-1;else{for(r&=2===n?31:3===n?15:7;1<n&&s<i;)r=r<<6|63&e[s++],n--;1<n?a[o++]=65533:r<65536?a[o++]=r:(r-=65536,a[o++]=55296|r>>10&1023,a[o++]=56320|1023&r)}return Ln(a,o)},m.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+Dn[e[r]]>t?r:t};function In(){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}var zn=p,Fn=Pr,Un=m,Wn=hn,Hn=In,Zn=Object.prototype.toString;function qn(e){if(!(this instanceof qn))return new qn(e);this.options=Fn.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hn,this.strm.avail_out=0,zn.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(Wn[t]);if(e.header&&zn.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?Un.string2buf(e.dictionary):"[object ArrayBuffer]"===Zn.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=zn.deflateSetDictionary(this.strm,e)))throw new Error(Wn[t]);this._dict_set=!0}}function Vn(e,t){t=new qn(t);if(t.push(e,!0),t.err)throw t.msg||Wn[t.err];return t.result}qn.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=Un.string2buf(e):"[object ArrayBuffer]"===Zn.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Fn.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=zn.deflate(i,n))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(Un.buf2binstring(Fn.shrinkBuf(i.output,i.next_out))):this.onData(Fn.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==r);return 4===n?(r=zn.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(i.avail_out=0))},qn.prototype.onData=function(e){this.chunks.push(e)},qn.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Fn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},f.Deflate=qn,f.deflate=Vn,f.deflateRaw=function(e,t){return(t=t||{}).raw=!0,Vn(e,t)},f.gzip=function(e,t){return(t=t||{}).gzip=!0,Vn(e,t)};function Xn(e,t,r,n,i,a,o,s){for(var l,u,c,h,f,d,p,m,g,y=s.bits,b=0,v=0,w=0,_=0,k=0,S=0,x=0,E=0,C=0,P=0,A=null,T=0,O=new Gn.Buf16(16),N=new Gn.Buf16(16),M=null,R=0,b=0;b<=15;b++)O[b]=0;for(v=0;v<n;v++)O[t[r+v]]++;for(k=y,_=15;1<=_&&0===O[_];_--);if(_<k&&(k=_),0===_)i[a++]=20971520,i[a++]=20971520,s.bits=1;else{for(w=1;w<_&&0===O[w];w++);for(k<w&&(k=w),b=E=1;b<=15;b++)if((E=(E<<1)-O[b])<0)return-1;if(0<E&&(0===e||1!==_))return-1;for(N[1]=0,b=1;b<15;b++)N[b+1]=N[b]+O[b];for(v=0;v<n;v++)0!==t[r+v]&&(o[N[t[r+v]]++]=v);if(d=0===e?(A=M=o,19):1===e?(A=Kn,T-=257,M=Jn,R-=257,256):(A=Yn,M=$n,-1),b=w,f=a,x=v=P=0,c=-1,h=(C=1<<(S=k))-1,1===e&&852<C||2===e&&592<C)return 1;for(;;){for(g=o[v]<d?(m=0,o[v]):o[v]>d?(m=M[R+o[v]],A[T+o[v]]):(m=96,0),l=1<<(p=b-x),w=u=1<<S;i[f+(P>>x)+(u-=l)]=p<<24|m<<16|g|0,0!==u;);for(l=1<<b-1;P&l;)l>>=1;if(0!==l?P=(P&l-1)+l:P=0,v++,0==--O[b]){if(b===_)break;b=t[r+o[v]]}if(k<b&&(P&h)!==c){for(f+=w,E=1<<(S=b-(x=0===x?k:x));S+x<_&&!((E-=O[S+x])<=0);)S++,E<<=1;if(C+=1<<S,1===e&&852<C||2===e&&592<C)return 1;i[c=P&h]=k<<24|S<<16|f-a|0}}0!==P&&(i[f+P]=b-x<<24|64<<16|0),s.bits=k}return 0}var p={},w={},Gn=Pr,Kn=[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],Jn=[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],Yn=[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],$n=[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],Qn=Pr,ei=sn,ti=ln;function ri(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ni(){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 Qn.Buf16(320),this.work=new Qn.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ii(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Qn.Buf32(852),t.distcode=t.distdyn=new Qn.Buf32(592),t.sane=1,t.back=-1,0):-2}function ai(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ii(e)):-2}function oi(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ai(e))}function si(e,t){var r;return e?(r=new ni,(e.state=r).window=null,0!==(r=oi(e,t))&&(e.state=null),r):-2}var li,ui,ci=!0;function hi(e,t,r,n){var i,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new Qn.Buf8(e.wsize)),n>=e.wsize?(Qn.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>n&&(i=n),Qn.arraySet(e.window,t,r-n,i,e.wnext),(n-=i)?(Qn.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0}w.inflateReset=ai,w.inflateReset2=oi,w.inflateResetKeep=ii,w.inflateInit=function(e){return si(e,15)},w.inflateInit2=si,w.inflate=function(e,j){var t,r,L,n,i,a,o,s,l,I,u,c,z,F,h,f,d,p,U,W,m,g,y,b,v=0,w=new Qn.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(t=e.state).mode&&(t.mode=13),i=e.next_out,L=e.output,o=e.avail_out,n=e.next_in,r=e.input,a=e.avail_in,s=t.hold,l=t.bits,I=a,u=o,g=0;e:for(;;)switch(t.mode){case 1:if(0===t.wrap)t.mode=13;else{for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(2&t.wrap&&35615===s)w[t.check=0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0),l=s=0,t.mode=2;else if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&s)<<8)+(s>>8))%31)e.msg="incorrect header check",t.mode=30;else if(8!=(15&s))e.msg="unknown compression method",t.mode=30;else{if(l-=4,m=8+(15&(s>>>=4)),0===t.wbits)t.wbits=m;else if(m>t.wbits){e.msg="invalid window size",t.mode=30;break}t.dmax=1<<m,e.adler=t.check=1,t.mode=512&s?10:12,l=s=0}}break;case 2:for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(t.flags=s,8!=(255&t.flags)){e.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){e.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=s>>8&1),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0,t.mode=3;case 3:for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.head&&(t.head.time=s),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,w[2]=s>>>16&255,w[3]=s>>>24&255,t.check=ti(t.check,w,4,0)),l=s=0,t.mode=4;case 4:for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.head&&(t.head.xflags=255&s,t.head.os=s>>8),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0,t.mode=5;case 5:if(1024&t.flags){for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.length=s,t.head&&(t.head.extra_len=s),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((c=(c=t.length)>a?a:c)&&(t.head&&(m=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),Qn.arraySet(t.head.extra,r,n,c,m)),512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,t.length-=c),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===a)break e;for(c=0;m=r[n+c++],t.head&&m&&t.length<65536&&(t.head.name+=String.fromCharCode(m)),m&&c<a;);if(512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,m)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(0===a)break e;for(c=0;m=r[n+c++],t.head&&m&&t.length<65536&&(t.head.comment+=String.fromCharCode(m)),m&&c<a;);if(512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,m)break e}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s!==(65535&t.check)){e.msg="header crc mismatch",t.mode=30;break}l=s=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=12;break;case 10:for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}e.adler=t.check=ri(s),l=s=0,t.mode=11;case 11:if(0===t.havedict)return e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,2;e.adler=t.check=1,t.mode=12;case 12:if(5===j||6===j)break e;case 13:if(t.last)s>>>=7&l,l-=7&l,t.mode=27;else{for(;l<3;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}switch(t.last=1&s,--l,3&(s>>>=1)){case 0:t.mode=14;break;case 1:_=k=void 0;var _,k=t;if(ci){for(li=new Qn.Buf32(512),ui=new Qn.Buf32(32),_=0;_<144;)k.lens[_++]=8;for(;_<256;)k.lens[_++]=9;for(;_<280;)k.lens[_++]=7;for(;_<288;)k.lens[_++]=8;for(Xn(1,k.lens,0,288,li,0,k.work,{bits:9}),_=0;_<32;)k.lens[_++]=5;Xn(2,k.lens,0,32,ui,0,k.work,{bits:5}),ci=!1}if(k.lencode=li,k.lenbits=9,k.distcode=ui,k.distbits=5,t.mode=20,6!==j)break;s>>>=2,l-=2;break e;case 2:t.mode=17;break;case 3:e.msg="invalid block type",t.mode=30}s>>>=2,l-=2}break;case 14:for(s>>>=7&l,l-=7&l;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if((65535&s)!=(s>>>16^65535)){e.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&s,l=s=0,t.mode=15,6===j)break e;case 15:t.mode=16;case 16:if(c=t.length){if(0===(c=o<(c=a<c?a:c)?o:c))break e;Qn.arraySet(L,r,n,c,i),a-=c,n+=c,o-=c,i+=c,t.length-=c}else t.mode=12;break;case 17:for(;l<14;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(t.nlen=257+(31&s),s>>>=5,l-=5,t.ndist=1+(31&s),s>>>=5,l-=5,t.ncode=4+(15&s),s>>>=4,l-=4,286<t.nlen||30<t.ndist){e.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;l<3;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.lens[H[t.have++]]=7&s,s>>>=3,l-=3}for(;t.have<19;)t.lens[H[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,y={bits:t.lenbits},g=Xn(0,t.lens,0,19,t.lencode,0,t.work,y),t.lenbits=y.bits,g){e.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;f=(v=t.lencode[s&(1<<t.lenbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(d<16)s>>>=h,l-=h,t.lens[t.have++]=d;else{if(16===d){for(b=h+2;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s>>>=h,l-=h,0===t.have){e.msg="invalid bit length repeat",t.mode=30;break}m=t.lens[t.have-1],c=3+(3&s),s>>>=2,l-=2}else if(17===d){for(b=h+3;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}m=0,c=3+(7&(s>>>=h)),s>>>=3,l=l-h-3}else{for(b=h+7;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}m=0,c=11+(127&(s>>>=h)),s>>>=7,l=l-h-7}if(t.have+c>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=30;break}for(;c--;)t.lens[t.have++]=m}}if(30===t.mode)break;if(0===t.lens[256]){e.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,y={bits:t.lenbits},g=Xn(1,t.lens,0,t.nlen,t.lencode,0,t.work,y),t.lenbits=y.bits,g){e.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,y={bits:t.distbits},g=Xn(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,y),t.distbits=y.bits,g){e.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===j)break e;case 20:t.mode=21;case 21:if(6<=a&&258<=o){e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,R=q=A=P=C=E=x=S=ne=re=te=ee=D=B=Q=$=Y=J=K=G=X=M=V=N=O=void 0;var S,x,E,C,P,A,T=e,Z=u,O=T.state,N=T.next_in,q=T.input,V=N+(T.avail_in-5),M=T.next_out,R=T.output,X=M-(Z-T.avail_out),G=M+(T.avail_out-257),K=O.dmax,J=O.wsize,Y=O.whave,$=O.wnext,Q=O.window,B=O.hold,D=O.bits,ee=O.lencode,te=O.distcode,re=(1<<O.lenbits)-1,ne=(1<<O.distbits)-1;t:do{for(D<15&&(B+=q[N++]<<D,D+=8,B+=q[N++]<<D,D+=8),S=ee[B&re];;){if(B>>>=x=S>>>24,D-=x,0==(x=S>>>16&255))R[M++]=65535&S;else{if(!(16&x)){if(0==(64&x)){S=ee[(65535&S)+(B&(1<<x)-1)];continue}if(32&x){O.mode=12;break t}T.msg="invalid literal/length code",O.mode=30;break t}for(E=65535&S,(x&=15)&&(D<x&&(B+=q[N++]<<D,D+=8),E+=B&(1<<x)-1,B>>>=x,D-=x),D<15&&(B+=q[N++]<<D,D+=8,B+=q[N++]<<D,D+=8),S=te[B&ne];;){if(B>>>=x=S>>>24,D-=x,!(16&(x=S>>>16&255))){if(0==(64&x)){S=te[(65535&S)+(B&(1<<x)-1)];continue}T.msg="invalid distance code",O.mode=30;break t}if(C=65535&S,D<(x&=15)&&(B+=q[N++]<<D,(D+=8)<x)&&(B+=q[N++]<<D,D+=8),(C+=B&(1<<x)-1)>K){T.msg="invalid distance too far back",O.mode=30;break t}if(B>>>=x,D-=x,C>(x=M-X)){if((x=C-x)>Y&&O.sane){T.msg="invalid distance too far back",O.mode=30;break t}if(A=Q,(P=0)===$){if(P+=J-x,x<E){for(E-=x;R[M++]=Q[P++],--x;);P=M-C,A=R}}else if($<x){if(P+=J+$-x,(x-=$)<E){for(E-=x;R[M++]=Q[P++],--x;);if(P=0,$<E){for(E-=x=$;R[M++]=Q[P++],--x;);P=M-C,A=R}}}else if(P+=$-x,x<E){for(E-=x;R[M++]=Q[P++],--x;);P=M-C,A=R}for(;2<E;)R[M++]=A[P++],R[M++]=A[P++],R[M++]=A[P++],E-=3;E&&(R[M++]=A[P++],1<E)&&(R[M++]=A[P++])}else{for(P=M-C;R[M++]=R[P++],R[M++]=R[P++],R[M++]=R[P++],2<(E-=3););E&&(R[M++]=R[P++],1<E)&&(R[M++]=R[P++])}break}}break}}while(N<V&&M<G);N-=E=D>>3,B&=(1<<(D-=E<<3))-1,T.next_in=N,T.next_out=M,T.avail_in=N<V?V-N+5:5-(N-V),T.avail_out=M<G?G-M+257:257-(M-G),O.hold=B,O.bits=D,i=e.next_out,L=e.output,o=e.avail_out,n=e.next_in,r=e.input,a=e.avail_in,s=t.hold,l=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;f=(v=t.lencode[s&(1<<t.lenbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(f&&0==(240&f)){for(p=h,U=f,W=d;f=(v=t.lencode[W+((s&(1<<p+U)-1)>>p)])>>>16&255,d=65535&v,!(p+(h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}s>>>=p,l-=p,t.back+=p}if(s>>>=h,l-=h,t.back+=h,t.length=d,0===f){t.mode=26;break}if(32&f){t.back=-1,t.mode=12;break}if(64&f){e.msg="invalid literal/length code",t.mode=30;break}t.extra=15&f,t.mode=22;case 22:if(t.extra){for(b=t.extra;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.length+=s&(1<<t.extra)-1,s>>>=t.extra,l-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;f=(v=t.distcode[s&(1<<t.distbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(0==(240&f)){for(p=h,U=f,W=d;f=(v=t.distcode[W+((s&(1<<p+U)-1)>>p)])>>>16&255,d=65535&v,!(p+(h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}s>>>=p,l-=p,t.back+=p}if(s>>>=h,l-=h,t.back+=h,64&f){e.msg="invalid distance code",t.mode=30;break}t.offset=d,t.extra=15&f,t.mode=24;case 24:if(t.extra){for(b=t.extra;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.offset+=s&(1<<t.extra)-1,s>>>=t.extra,l-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===o)break e;if(t.offset>(c=u-o)){if((c=t.offset-c)>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=30;break}z=c>t.wnext?(c-=t.wnext,t.wsize-c):t.wnext-c,c>t.length&&(c=t.length),F=t.window}else F=L,z=i-t.offset,c=t.length;for(o-=c=o<c?o:c,t.length-=c;L[i++]=F[z++],--c;);0===t.length&&(t.mode=21);break;case 26:if(0===o)break e;L[i++]=t.length,o--,t.mode=21;break;case 27:if(t.wrap){for(;l<32;){if(0===a)break e;a--,s|=r[n++]<<l,l+=8}if(u-=o,e.total_out+=u,t.total+=u,u&&(e.adler=t.check=(t.flags?ti:ei)(t.check,L,u,i-u)),u=o,(t.flags?s:ri(s))!==t.check){e.msg="incorrect data check",t.mode=30;break}l=s=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s!==(4294967295&t.total)){e.msg="incorrect length check",t.mode=30;break}l=s=0}t.mode=29;case 29:g=1;break e;case 30:g=-3;break e;case 31:return-4;default:return-2}return e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,(t.wsize||u!==e.avail_out&&t.mode<30&&(t.mode<27||4!==j))&&hi(e,e.output,e.next_out,u-e.avail_out),I-=e.avail_in,u-=e.avail_out,e.total_in+=I,e.total_out+=u,t.total+=u,t.wrap&&u&&(e.adler=t.check=(t.flags?ti:ei)(t.check,L,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(12===t.mode?128:0)+(20===t.mode||15===t.mode?256:0),g=(0==I&&0===u||4===j)&&0===g?-5:g},w.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):-2},w.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?-2:((e.head=t).done=!1,0)},w.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&ei(1,t,n,0)!==r.check?-3:hi(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0)},w.inflateInfo="pako inflate (from Nodeca project)";function fi(){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}var di={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},pi=w,mi=Pr,gi=m,S=di,yi=hn,bi=In,vi=Object.prototype.toString;function wi(e){if(!(this instanceof wi))return new wi(e);this.options=mi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bi,this.strm.avail_out=0,pi.inflateInit2(this.strm,t.windowBits));if(e!==S.Z_OK)throw new Error(yi[e]);if(this.header=new fi,pi.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=gi.string2buf(t.dictionary):"[object ArrayBuffer]"===vi.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=pi.inflateSetDictionary(this.strm,t.dictionary))!==S.Z_OK)throw new Error(yi[e])}function _i(e,t){t=new wi(t);if(t.push(e,!0),t.err)throw t.msg||yi[t.err];return t.result}wi.prototype.push=function(e,t){var r,n,i,a,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?S.Z_FINISH:S.Z_NO_FLUSH,"string"==typeof e?s.input=gi.binstring2buf(e):"[object ArrayBuffer]"===vi.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new mi.Buf8(l),s.next_out=0,s.avail_out=l),(r=(r=pi.inflate(s,S.Z_NO_FLUSH))===S.Z_NEED_DICT&&u?pi.inflateSetDictionary(this.strm,u):r)===S.Z_BUF_ERROR&&!0===c&&(r=S.Z_OK,c=!1),r!==S.Z_STREAM_END&&r!==S.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!s.next_out||0!==s.avail_out&&r!==S.Z_STREAM_END&&(0!==s.avail_in||n!==S.Z_FINISH&&n!==S.Z_SYNC_FLUSH)||("string"===this.options.to?(i=gi.utf8border(s.output,s.next_out),a=s.next_out-i,o=gi.buf2string(s.output,i),s.next_out=a,s.avail_out=l-a,a&&mi.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(mi.shrinkBuf(s.output,s.next_out))),0===s.avail_in&&0===s.avail_out&&(c=!0),(0<s.avail_in||0===s.avail_out)&&r!==S.Z_STREAM_END);return(n=r===S.Z_STREAM_END?S.Z_FINISH:n)===S.Z_FINISH?(r=pi.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===S.Z_OK):n!==S.Z_SYNC_FLUSH||(this.onEnd(S.Z_OK),!(s.avail_out=0))},wi.prototype.onData=function(e){this.chunks.push(e)},wi.prototype.onEnd=function(e){e===S.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=mi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},p.Inflate=wi,p.inflate=_i,p.inflateRaw=function(e,t){return(t=t||{}).raw=!0,_i(e,t)},p.ungzip=_i;var w={},m=((0,Pr.assign)(w,f,p,di),"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array),ki=w,Si=s(),xi=u,Ei=m?"uint8array":"array";function Ci(e,t){xi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}Cr.magic="\b\0",Si.inherits(Ci,xi),Ci.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(Si.transformTo(Ei,e.data),!1)},Ci.prototype.flush=function(){xi.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Ci.prototype.cleanUp=function(){xi.prototype.cleanUp.call(this),this._pako=null},Ci.prototype._createPako=function(){this._pako=new ki[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Cr.compressWorker=function(e){return new Ci("Deflate",e)},Cr.uncompressWorker=function(){return new Ci("Inflate",{})};function x(e,t){for(var r="",n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function Pi(e,t,r,n,i,a){var o=e.file,s=e.compression,l=a!==Ni.utf8encode,u=Ti.transformTo("string",a(o.name)),c=Ti.transformTo("string",Ni.utf8encode(o.name)),h=o.comment,a=Ti.transformTo("string",a(h)),f=Ti.transformTo("string",Ni.utf8encode(h)),d=c.length!==o.name.length,h=f.length!==h.length,p="",m=o.dir,g=o.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(t&&!r||(y.crc32=e.crc32,y.compressedSize=e.compressedSize,y.uncompressedSize=e.uncompressedSize),0);return t&&(r|=8),l||!d&&!h||(r|=2048),t=e=0,m&&(e|=16),"UNIX"===i?(t=798,e|=(65535&((l=o.unixPermissions)?l:m?16893:33204))<<16):(t=20,e|=63&(o.dosPermissions||0)),i=g.getUTCHours(),i=(i=((i<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,l=g.getUTCFullYear()-1980,l=(l=((l<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(m=x(1,1)+x(Mi(u),4)+c,p+="up"+x(m.length,2)+m),h&&(o=x(1,1)+x(Mi(a),4)+f,p+="uc"+x(o.length,2)+o),g="",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+="\n\0")+x(r,2))+s.magic)+x(i,2))+x(l,2))+x(y.crc32,4))+x(y.compressedSize,4))+x(y.uncompressedSize,4))+x(u.length,2))+x(p.length,2),{fileRecord:Ri.LOCAL_FILE_HEADER+g+u+p,dirRecord:Ri.CENTRAL_FILE_HEADER+x(t,2)+g+x(a.length,2)+"\0\0\0\0"+x(e,4)+x(n,4)+u+p+a}}var Ai=u,hn=(Er.STORE={magic:"\0\0",compressWorker:function(){return new Ai("STORE compression")},uncompressWorker:function(){return new Ai("STORE decompression")}},Er.DEFLATE=Cr,{LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"}),Ti=s(),Oi=u,Ni=I,Mi=$t,Ri=hn;function Bi(e,t,r,n){Oi.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Ti.inherits(Bi,Oi),Bi.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Oi.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},Bi.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=Pi(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},Bi.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=Pi(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Ri.DATA_DESCRIPTOR+x((t=e).crc32,4)+x(t.compressedSize,4)+x(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Bi.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,r=function(e,t,r,n,i){i=Ti.transformTo("string",i(n));return Ri.CENTRAL_DIRECTORY_END+"\0\0\0\0"+x(e,2)+x(e,2)+x(t,4)+x(r,4)+x(i.length,2)+i}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},Bi.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Bi.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},Bi.prototype.resume=function(){return!!Oi.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Bi.prototype.error=function(e){var t=this._sources;if(!Oi.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},Bi.prototype.lock=function(){Oi.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};var Di=Er,ji=Bi,Pr=(xr.generateWorker=function(e,o,t){var s=new ji(o.streamFiles,t,o.platform,o.encodeFileName),l=0;try{e.forEach(function(e,t){l++;var r=function(e,t){e=e||t,t=Di[e];if(t)return t;throw new Error(e+" is not a valid compression method !")}(t.options.compression,o.compression),n=t.options.compressionOptions||o.compressionOptions||{},i=t.dir,a=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:i,date:a,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=l}catch(e){s.error(e)}return s},s()),Li=u;function Ii(e,t){Li.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Pr.inherits(Ii,Li),Ii.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},Ii.prototype.pause=function(){return!!Li.prototype.pause.call(this)&&(this._stream.pause(),!0)},Ii.prototype.resume=function(){return!!Li.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};function zi(e,t){return t=void 0!==t?t:Zi.createFolders,e=Yi(e),this.files[e]||Ji.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var f=Ii,Fi=I,Ui=s(),Wi=u,Hi=e,Zi=Gt,qi=ar,Vi=c,Xi=xr,Gi=mt,Ki=f,Ji=function(e,t,r){var n,i=Ui.getTypeOf(t),a=Ui.extend(r||{},Zi),o=(a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=Yi(e)),a.createFolders&&(n=0<(o=(n="/"===(n=e).slice(-1)?n.substring(0,n.length-1):n).lastIndexOf("/"))?n.substring(0,o):"")&&zi.call(this,n,!0),"string"===i&&!1===a.binary&&!1===a.base64),i=(r&&void 0!==r.binary||(a.binary=!o),(t instanceof qi&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE"),n=t instanceof qi||t instanceof Wi?t:Gi.isNode&&Gi.isStream(t)?new Ki(e,t):Ui.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64),new Vi(e,n,a));this.files[e]=i},Yi=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function $i(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var p={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){var n,i;return 1===arguments.length?$i(e)?(n=e,this.filter(function(e,t){return!t.dir&&n.test(e)})):(i=this.files[this.root+e])&&!i.dir?i:null:(e=this.root+e,Ji.call(this,e,t,r),this)},folder:function(r){var e,t;return r?$i(r)?this.filter(function(e,t){return t.dir&&r.test(e)}):(e=this.root+r,e=zi.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={};try{if((t=Ui.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Fi.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");Ui.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",n=Xi.generateWorker(this,t,r)}catch(e){(n=new Wi("error")).error(e)}return new Hi(n,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}},Qi=s();function ea(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}ea.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return Qi.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}};var di=ea,ta=di;function ra(e){ta.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}s().inherits(ra,ta),ra.prototype.byteAt=function(e){return this.data[this.zero+e]},ra.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},ra.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),e=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&e===i[3]},ra.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)};var w=ra,na=di;function ia(e){na.call(this,e)}s().inherits(ia,na),ia.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},ia.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},ia.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},ia.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var m=ia,aa=w;function oa(e){aa.call(this,e)}s().inherits(oa,aa),oa.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)};var Cr=oa,sa=Cr;function la(e){sa.call(this,e)}s().inherits(la,sa),la.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};function ua(e){var t=ca.getTypeOf(e);return ca.checkSupport(t),"string"!==t||ha.uint8array?"nodebuffer"===t?new pa(e):ha.uint8array?new ma(ca.transformTo("uint8array",e)):new fa(ca.transformTo("array",e)):new da(e)}var Pr=la,ca=s(),ha=d,fa=w,da=m,pa=Pr,ma=Cr,ga=ua,ya=s(),ba=ar,va=$t,wa=I,_a=Er,ka=d;function Sa(e,t){this.options=e,this.loadOptions=t}Sa.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in _a)if(Object.prototype.hasOwnProperty.call(_a,t)&&_a[t].magic===e)return _a[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+ya.pretty(this.compressionMethod)+" unknown (inner file : "+ya.transformTo("string",this.fileName)+")");this.decompressed=new ba(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=ga(this.extraFields[1].value),this.uncompressedSize===ya.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===ya.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===ya.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===ya.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e,t=ka.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=wa.utf8decode(this.fileName),this.fileCommentStr=wa.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=ya.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=ya.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=ga(t.value)).readInt(1)||va(this.fileName)!==e.readInt(4)?null:wa.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=ga(t.value)).readInt(1)||va(this.fileComment)!==e.readInt(4)?null:wa.utf8decode(e.readData(t.length-5))}};var u=Sa,xa=ua,Ea=s(),Ca=hn,Pa=u,Aa=d;function Ta(e){this.files=[],this.loadOptions=e}Ta.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+Ea.pretty(t)+", expected "+Ea.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index,e=(this.reader.setIndex(e),this.reader.readString(4)===t);return this.reader.setIndex(r),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Aa.uint8array?"uint8array":"array",t=Ea.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(Ca.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ca.CENTRAL_FILE_HEADER);)(e=new Pa({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(Ca.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,Ca.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(Ca.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ea.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ea.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ea.MAX_VALUE_16BITS||this.centralDirRecords===Ea.MAX_VALUE_16BITS||this.centralDirSize===Ea.MAX_VALUE_32BITS||this.centralDirOffset===Ea.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(Ca.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Ca.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ca.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ca.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(Ca.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,Ca.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=xa(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var e=Ta,Oa=s(),Na=gt,Ma=I,Ra=e,Ba=ir,Da=mt;function ja(){if(!(this instanceof ja))return new ja;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new ja;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(ja.prototype=p).loadAsync=function(e,o){var s=this;return o=Oa.extend(o||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Ma.utf8decode}),Da.isNode&&Da.isStream(e)?Na.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Oa.prepareContent("the loaded zip file",e,!0,o.optimizedBinaryString,o.base64).then(function(e){var t=new Ra(o);return t.load(e),t}).then(function(e){var t=[Na.Promise.resolve(e)],r=e.files;if(o.checkCRC32)for(var n=0;n<r.length;n++)t.push(function(n){return new Na.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new Ba);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[n]));return Na.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,r=0;r<t.length;r++){var n=t[r],i=n.fileNameStr,a=Oa.resolve(n.fileNameStr);s.file(a,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:o.createFolders}),n.dir||(s.file(a).unsafeOriginalName=i)}return e.zipComment.length&&(s.comment=e.zipComment),s})},ja.support=d,ja.defaults=Gt,ja.version="3.10.1",ja.loadAsync=function(e,t){return(new ja).loadAsync(e,t)},ja.external=gt;var E,La,Ia=(La=ja).__esModule&&Object.prototype.hasOwnProperty.call(La,"default")?La.default:La,za=((c=E=E||{}).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",c.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",c.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",c.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",c.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",c.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",c.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",c.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",c.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",c.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",c.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",c.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",c.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",c.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",c.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",c.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",c.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),C={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function Fa(e,t){t=1<arguments.length&&void 0!==t?t:C.Dxa;return null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(t.unit)}function Ua(e,t,r){if(e.namespaceURI==za){switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",C.FontSize);break;default:return}return 1}}i(Va,[{key:"elements",value:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=[],n=0,i=e.childNodes.length;n<i;n++){var a=e.childNodes.item(n);1!=a.nodeType||null!=t&&a.localName!=t||r.push(a)}return r}},{key:"element",value:function(e,t){for(var r=0,n=e.childNodes.length;r<n;r++){var i=e.childNodes.item(r);if(1==i.nodeType&&i.localName==t)return i}return null}},{key:"elementAttr",value:function(e,t,r){e=this.element(e,t);return e?this.attr(e,r):void 0}},{key:"attrs",value:function(e){return Array.from(e.attributes)}},{key:"attr",value:function(e,t){for(var r=0,n=e.attributes.length;r<n;r++){var i=e.attributes.item(r);if(i.localName==t)return i.value}return null}},{key:"intAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e):r}},{key:"hexAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e,16):r}},{key:"floatAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseFloat(e):r}},{key:"boolAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){var r=1<arguments.length&&void 0!==t&&t;switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return r}}(this.attr(e,t),r)}},{key:"lengthAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:C.Dxa;return Fa(this.attr(e,t),r)}}]);var Wa,Ha=Va,A=new Ha,xr=(i(qa,[{key:"load",value:(Wa=$(P().mark(function e(){var t;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._package.loadRelationships(this.path);case 2:return this.rels=e.sent,e.next=5,this._package.load(this.path);case 5:t=e.sent,t=this._package.parseXmlDocument(t),this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild);case 8:case"end":return e.stop()}},e,this)})),function(){return Wa.apply(this,arguments)})},{key:"save",value:function(){var e;this._package.update(this.path,(e=this._xmlDocument,(new XMLSerializer).serializeToString(e)))}},{key:"parseXml",value:function(e){}}]),qa),Za={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function qa(e,t){n(this,qa),this._package=e,this.path=t}function Va(){n(this,Va)}t(Ka,xr),Xa=r(Ka),i(Ka,[{key:"parseXml",value:function(e){var u;this.fonts=(u=this._package.xmlParser).elements(e).map(function(e){var t,r,n,i=e,a=u,o={name:a.attr(i,"name"),embedFontRefs:[]},s=k(a.elements(i));try{for(s.s();!(t=s.n()).done;){var l=t.value;switch(l.localName){case"family":o.family=a.attr(l,"val");break;case"altName":o.altName=a.attr(l,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":o.embedFontRefs.push((r=l,{id:(n=a).attr(r,"id"),key:n.attr(r,"fontKey"),type:Za[r.localName]}))}}}catch(i){s.e(i)}finally{s.f()}return o})}}]);var Xa,Ga=Ka;function Ka(){return n(this,Ka),Xa.apply(this,arguments)}function Ja(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]}function Ya(e,t){try{var r="http://docx/";return new URL(e,r+t).toString().substring(r.length)}catch(r){return"".concat(t).concat(e)}}function $a(e,r){return e.reduce(function(e,t){return e[r(t)]=t,e},{})}function Qa(e){return e&&"object"==te(e)&&!Array.isArray(e)}function eo(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;var i,a=r.shift();if(Qa(e)&&Qa(a))for(var o in a)Qa(a[o])?eo(null!=(i=e[o])?i:e[o]={},a[o]):e[o]=a[o];return eo.apply(void 0,[e].concat(r))}function to(e){return Array.isArray(e)?e:[e]}i(lo,[{key:"get",value:function(e){return this._zip.files[(e=e).startsWith("/")?e.substr(1):e]}},{key:"update",value:function(e,t){this._zip.file(e,t)}},{key:"save",value:function(){return this._zip.generateAsync({type:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob"})}},{key:"load",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"string";return null!=(e=null==(e=this.get(e))?void 0:e.async(t))?e:Promise.resolve(null)}},{key:"loadRelationships",value:(io=$(P().mark(function e(){var t,r,n,i,a=arguments;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="_rels/.rels",null!=(n=0<a.length&&void 0!==a[0]?a[0]:null)&&(n=Ja(n),n=V(n,2),r=n[0],n=n[1],t="".concat(r,"_rels/").concat(n,".rels")),e.next=5,this.load(t);case 5:return r=e.sent,e.abrupt("return",r?(n=this.parseXmlDocument(r).firstElementChild,(i=this.xmlParser).elements(n).map(function(e){return{id:i.attr(e,"Id"),type:i.attr(e,"Type"),target:i.attr(e,"Target"),targetMode:i.attr(e,"TargetMode")}})):null);case 7:case"end":return e.stop()}},e,this)})),function(){return io.apply(this,arguments)})},{key:"parseXmlDocument",value:function(e){return function(e,t){e=65279===(t=e=1<arguments.length&&void 0!==t&&t?e.replace(/<[?].*[?]>/,""):e).charCodeAt(0)?t.substring(1):t;t=(new DOMParser).parseFromString(e,"application/xml"),e=null==(e=t.getElementsByTagName("parsererror")[0])?void 0:e.textContent;if(e)throw new Error(e);return t}(e,this.options.trimXmlDeclaration)}}],[{key:"load",value:(no=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ia.loadAsync(t);case 2:return n=e.sent,e.abrupt("return",new lo(n,r));case 4:case"end":return e.stop()}},e)})),function(e,t){return no.apply(this,arguments)})}]);var T,ro,no,io,ao=lo,oo=(t(so,xr),ro=r(so),i(so,[{key:"parseXml",value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}]),so);function so(e,t,r){return n(this,so),(e=ro.call(this,e,t))._documentParser=r,e}function lo(e,t){n(this,lo),this._zip=e,this.options=t,this.xmlParser=new Ha}function uo(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",C.Border),offset:t.lengthAttr(e,"space",C.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}function co(e,t){var r,n,i,a,o,s=1<arguments.length&&void 0!==t?t:A,l={},u=k(s.elements(e));try{for(u.s();!(i=u.n()).done;){var c=i.value;switch(c.localName){case"pgSz":l.pageSize={width:s.lengthAttr(c,"w"),height:s.lengthAttr(c,"h"),orientation:s.attr(c,"orient")};break;case"type":l.type=s.attr(c,"val");break;case"pgMar":l.pageMargins={left:s.lengthAttr(c,"left"),right:s.lengthAttr(c,"right"),top:s.lengthAttr(c,"top"),bottom:s.lengthAttr(c,"bottom"),header:s.lengthAttr(c,"header"),footer:s.lengthAttr(c,"footer"),gutter:s.lengthAttr(c,"gutter")};break;case"cols":l.columns=function(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}})}}(c,s);break;case"headerReference":(null!=(r=l.headerRefs)?r:l.headerRefs=[]).push(ho(c,s));break;case"footerReference":(null!=(n=l.footerRefs)?n:l.footerRefs=[]).push(ho(c,s));break;case"titlePg":l.titlePage=s.boolAttr(c,"val",!0);break;case"pgBorders":l.pageBorders=function(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"left":n.left=uo(a,t);break;case"top":n.top=uo(a,t);break;case"right":n.right=uo(a,t);break;case"bottom":n.bottom=uo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(c,s);break;case"pgNumType":l.pageNumber=(a=c,{chapSep:(o=s).attr(a,"chapSep"),chapStyle:o.attr(a,"chapStyle"),format:o.attr(a,"fmt"),start:o.intAttr(a,"start")})}}}catch(e){u.e(e)}finally{u.f()}return l}function ho(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}function fo(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;)Ua(r.value,n,t)}catch(e){i.e(e)}finally{i.f()}return n}function po(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;)mo(r.value,n,t)}catch(e){i.e(e)}finally{i.f()}return n}function mo(a,e,t){if(a.namespaceURI==za){var r,n,i;if(!Ua(a,e,t))switch(a.localName){case"tabs":e.tabs=(i=t).elements(a,"tab").map(function(e){return{position:i.lengthAttr(e,"pos"),leader:i.attr(e,"leader"),style:i.attr(e,"val")}});break;case"sectPr":e.sectionProps=co(a,t);break;case"numPr":e.numbering=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"numId":r.id=e.attr(i,"val");break;case"ilvl":r.level=e.intAttr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}(t);break;case"spacing":return e.lineSpacing=(r=a,{before:(n=t).lengthAttr(r,"before"),after:n.lengthAttr(r,"after"),line:n.intAttr(r,"line"),lineRule:n.attr(r,"lineRule")}),0;case"textAlignment":return e.textAlignment=t.attr(a,"val"),0;case"keepLines":e.keepLines=t.boolAttr(a,"val",!0);break;case"keepNext":e.keepNext=t.boolAttr(a,"val",!0);break;case"pageBreakBefore":e.pageBreakBefore=t.boolAttr(a,"val",!0);break;case"outlineLvl":e.outlineLevel=t.intAttr(a,"val");break;case"pStyle":e.styleName=t.attr(a,"val");break;case"rPr":e.runProps=fo(a,t);break;default:return}return 1}}function go(e,t){var r,n={id:t.attr(e,"numId"),overrides:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"abstractNumId":n.abstractId=t.attr(a,"val");break;case"lvlOverride":n.overrides.push(function(e,t){var r,n={level:t.intAttr(e,"ilvl")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"startOverride":n.start=t.intAttr(a,"val");break;case"lvl":n.numberingLevel=yo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(a,t))}}}catch(e){i.e(e)}finally{i.f()}return n}function yo(e,t){var r,n={level:t.intAttr(e,"ilvl")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"start":n.start=t.attr(a,"val");break;case"lvlRestart":n.restart=t.intAttr(a,"val");break;case"numFmt":n.format=t.attr(a,"val");break;case"lvlText":n.text=t.attr(a,"val");break;case"lvlJc":n.justification=t.attr(a,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(a,"val");break;case"pStyle":n.paragraphStyle=t.attr(a,"val");break;case"pPr":n.paragraphProps=po(a,t);break;case"rPr":n.runProps=fo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}t(So,xr),vo=r(So),i(So,[{key:"parseXml",value:function(u){Object.assign(this,function(e){var t,r,n,i,a,o={numberings:[],abstractNumberings:[],bulletPictures:[]},s=k(e.elements(u));try{for(s.s();!(t=s.n()).done;){var l=t.value;switch(l.localName){case"num":o.numberings.push(go(l,e));break;case"abstractNum":o.abstractNumberings.push(function(e,t){var r,n={id:t.attr(e,"abstractNumId"),levels:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"name":n.name=t.attr(a,"val");break;case"multiLevelType":n.multiLevelType=t.attr(a,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(a,"val");break;case"styleLink":n.styleLink=t.attr(a,"val");break;case"lvl":n.levels.push(yo(a,t))}}}catch(e){i.e(e)}finally{i.f()}return n}(l,e));break;case"numPicBullet":o.bulletPictures.push((r=l,a=i=void 0,i=(n=e).element(r,"pict"),(a=(i=i&&n.element(i,"shape"))&&n.element(i,"imagedata"))?{id:n.attr(r,"numPicBulletId"),referenceId:n.attr(a,"id"),style:n.attr(i,"style")}:null))}}}catch(e){s.e(e)}finally{s.f()}return o}(this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(u)}}]);var bo,vo,wo=So,_o=(t(ko,xr),bo=r(ko),i(ko,[{key:"parseXml",value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}]),ko);function ko(e,t,r){return n(this,ko),(e=bo.call(this,e,t))._documentParser=r,e}function So(e,t,r){return n(this,So),(e=vo.call(this,e,t))._documentParser=r,e}(f=T=T||{}).Document="document",f.Paragraph="paragraph",f.Run="run",f.Break="break",f.NoBreakHyphen="noBreakHyphen",f.Table="table",f.Row="row",f.Cell="cell",f.Hyperlink="hyperlink",f.Drawing="drawing",f.Image="image",f.Text="text",f.Tab="tab",f.Symbol="symbol",f.BookmarkStart="bookmarkStart",f.BookmarkEnd="bookmarkEnd",f.Footer="footer",f.Header="header",f.FootnoteReference="footnoteReference",f.EndnoteReference="endnoteReference",f.Footnote="footnote",f.Endnote="endnote",f.SimpleField="simpleField",f.ComplexField="complexField",f.Instruction="instruction",f.VmlPicture="vmlPicture",f.MmlMath="mmlMath",f.MmlMathParagraph="mmlMathParagraph",f.MmlFraction="mmlFraction",f.MmlFunction="mmlFunction",f.MmlFunctionName="mmlFunctionName",f.MmlNumerator="mmlNumerator",f.MmlDenominator="mmlDenominator",f.MmlRadical="mmlRadical",f.MmlBase="mmlBase",f.MmlDegree="mmlDegree",f.MmlSuperscript="mmlSuperscript",f.MmlSubscript="mmlSubscript",f.MmlPreSubSuper="mmlPreSubSuper",f.MmlSubArgument="mmlSubArgument",f.MmlSuperArgument="mmlSuperArgument",f.MmlNary="mmlNary",f.MmlDelimiter="mmlDelimiter",f.MmlRun="mmlRun",f.MmlEquationArray="mmlEquationArray",f.MmlLimit="mmlLimit",f.MmlLimitLower="mmlLimitLower",f.MmlMatrix="mmlMatrix",f.MmlMatrixRow="mmlMatrixRow",f.MmlBox="mmlBox",f.MmlBar="mmlBar",f.MmlGroupChar="mmlGroupChar",f.VmlElement="vmlElement",f.Inserted="inserted",f.Deleted="deleted",f.DeletedText="deletedText";var xo,Eo,Co,Po,Ao,di=i(function e(){n(this,e),this.children=[],this.cssStyle={}}),To=(t(Lo,di),Ao=r(Lo),i(Lo)),Oo=(t(jo,di),Po=r(jo),i(jo)),w=(t(Do,xr),Co=r(Do),i(Do,[{key:"parseXml",value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}]),Do),No=(t(Bo,w),Eo=r(Bo),i(Bo,[{key:"createRootElement",value:function(){return new To}}]),Bo),Mo=(t(Ro,w),xo=r(Ro),i(Ro,[{key:"createRootElement",value:function(){return new Oo}}]),Ro);function Ro(){return n(this,Ro),xo.apply(this,arguments)}function Bo(){return n(this,Bo),Eo.apply(this,arguments)}function Do(e,t,r){return n(this,Do),(e=Co.call(this,e,t))._documentParser=r,e}function jo(){var e;return n(this,jo),(e=Po.apply(this,arguments)).type=T.Footer,e}function Lo(){var e;return n(this,Lo),(e=Ao.apply(this,arguments)).type=T.Header,e}function Io(e){if(void 0!==e)return parseInt(e)}t(qo,xr),Fo=r(qo),i(qo,[{key:"parseXml",value:function(a){this.props=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"Template":r.template=i.textContent;break;case"Pages":r.pages=Io(i.textContent);break;case"Words":r.words=Io(i.textContent);break;case"Characters":r.characters=Io(i.textContent);break;case"Application":r.application=i.textContent;break;case"Lines":r.lines=Io(i.textContent);break;case"Paragraphs":r.paragraphs=Io(i.textContent);break;case"Company":r.company=i.textContent;break;case"AppVersion":r.appVersion=i.textContent}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]);var zo,Fo,Uo=qo,Wo=(t(Zo,xr),zo=r(Zo),i(Zo,[{key:"parseXml",value:function(a){this.props=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"title":r.title=i.textContent;break;case"description":r.description=i.textContent;break;case"subject":r.subject=i.textContent;break;case"creator":r.creator=i.textContent;break;case"keywords":r.keywords=i.textContent;break;case"language":r.language=i.textContent;break;case"lastModifiedBy":r.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(r.revision=parseInt(i.textContent))}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]),Zo),Ho=i(function e(){n(this,e)});function Zo(){return n(this,Zo),zo.apply(this,arguments)}function qo(){return n(this,qo),Fo.apply(this,arguments)}function Vo(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t(us,xr),$o=r(us),i(us,[{key:"parseXml",value:function(e){this.theme=function(e,t){var r,n=new Ho,i=t.element(e,"themeElements"),a=k(t.elements(i));try{for(a.s();!(r=a.n()).done;){var o=r.value;switch(o.localName){case"clrScheme":n.colorScheme=function(e,t){var r,n={name:t.attr(e,"name"),colors:{}},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,o=t.element(a,"srgbClr"),s=t.element(a,"sysClr");o?n.colors[a.localName]=t.attr(o,"val"):s&&(n.colors[a.localName]=t.attr(s,"lastClr"))}}catch(e){i.e(e)}finally{i.f()}return n}(o,t);break;case"fontScheme":n.fontScheme=function(e,t){var r,n={name:t.attr(e,"name")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"majorFont":n.majorFont=Vo(a,t);break;case"minorFont":n.minorFont=Vo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(o,t)}}}catch(e){a.e(e)}finally{a.f()}return n}(e,this._package.xmlParser)}}]);var Xo,Go,Ko,Jo,Yo,$o,Qo=us,m=i(function e(){n(this,e)}),es=(t(ls,m),Yo=r(ls),i(ls)),ts=(t(ss,m),Jo=r(ss),i(ss)),Pr=(t(os,xr),Ko=r(os),i(os)),rs=(t(as,Pr),Go=r(as),i(as,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",es)}}]),as),ns=(t(is,Pr),Xo=r(is),i(is,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",ts)}}]),is);function is(e,t,r){return n(this,is),Xo.call(this,e,t,r)}function as(e,t,r){return n(this,as),Go.call(this,e,t,r)}function os(e,t,r){return n(this,os),(e=Ko.call(this,e,t))._documentParser=r,e}function ss(){var e;return n(this,ss),(e=Jo.apply(this,arguments)).type=T.Endnote,e}function ls(){var e;return n(this,ls),(e=Yo.apply(this,arguments)).type=T.Footnote,e}function us(e,t){return n(this,us),$o.call(this,e,t)}function cs(e,t){var r,n={defaultNoteIds:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"numFmt":n.nummeringFormat=t.attr(a,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(a,"id"))}}}catch(e){i.e(e)}finally{i.f()}return n}t(xs,xr),ys=r(xs),i(xs,[{key:"parseXml",value:function(a){this.settings=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"defaultTabStop":r.defaultTabStop=e.lengthAttr(i,"val");break;case"footnotePr":r.footnoteProps=cs(i,e);break;case"endnotePr":r.endnoteProps=cs(i,e);break;case"autoHyphenation":r.autoHyphenation=e.boolAttr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]);var hs,fs,ds,ps,ms,gs,ys,bs=xs,vs=(t(Ss,xr),gs=r(Ss),i(Ss,[{key:"parseXml",value:function(e){var r;this.props=(r=this._package.xmlParser).elements(e,"property").map(function(e){var t=e.firstChild;return{formatId:r.attr(e,"fmtid"),name:r.attr(e,"name"),type:t.nodeName,value:t.textContent}})}}]),Ss),ws=[{type:E.OfficeDocument,target:"word/document.xml"},{type:E.ExtendedProperties,target:"docProps/app.xml"},{type:E.CoreProperties,target:"docProps/core.xml"},{type:E.CustomProperties,target:"docProps/custom.xml"}],_s=(i(ks,[{key:"save",value:function(){return this._package.save(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob")}},{key:"loadRelationshipPart",value:(ms=$(P().mark(function e(t,r){var n,i,a,o=this;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.partsMap[t])return e.abrupt("return",this.partsMap[t]);e.next=2;break;case 2:if(this._package.get(t)){e.next=4;break}return e.abrupt("return",null);case 4:n=null,e.t0=r,e.next=e.t0===E.OfficeDocument?8:e.t0===E.FontTable?10:e.t0===E.Numbering?12:e.t0===E.Styles?14:e.t0===E.Theme?16:e.t0===E.Footnotes?18:e.t0===E.Endnotes?20:e.t0===E.Footer?22:e.t0===E.Header?24:e.t0===E.CoreProperties?26:e.t0===E.ExtendedProperties?28:e.t0===E.CustomProperties?30:e.t0===E.Settings?32:33;break;case 8:return this.documentPart=n=new oo(this._package,t,this._parser),e.abrupt("break",33);case 10:return this.fontTablePart=n=new Ga(this._package,t),e.abrupt("break",33);case 12:return this.numberingPart=n=new wo(this._package,t,this._parser),e.abrupt("break",33);case 14:return this.stylesPart=n=new _o(this._package,t,this._parser),e.abrupt("break",33);case 16:return this.themePart=n=new Qo(this._package,t),e.abrupt("break",33);case 18:return this.footnotesPart=n=new rs(this._package,t,this._parser),e.abrupt("break",33);case 20:return this.endnotesPart=n=new ns(this._package,t,this._parser),e.abrupt("break",33);case 22:return n=new Mo(this._package,t,this._parser),e.abrupt("break",33);case 24:return n=new No(this._package,t,this._parser),e.abrupt("break",33);case 26:return this.corePropsPart=n=new Wo(this._package,t),e.abrupt("break",33);case 28:return this.extendedPropsPart=n=new Uo(this._package,t),e.abrupt("break",33);case 30:return n=new vs(this._package,t),e.abrupt("break",33);case 32:this.settingsPart=n=new bs(this._package,t);case 33:if(null==n)return e.abrupt("return",Promise.resolve(null));e.next=35;break;case 35:return this.partsMap[t]=n,this.parts.push(n),e.next=39,n.load();case 39:if(0<(null==(i=n.rels)?void 0:i.length))return i=Ja(n.path),i=V(i,1),a=i[0],e.next=43,Promise.all(n.rels.map(function(e){return o.loadRelationshipPart(Ya(e.target,a),e.type)}));e.next=43;break;case 43:return e.abrupt("return",n);case 44:case"end":return e.stop()}},e,this)})),function(e,t){return ms.apply(this,arguments)})},{key:"loadDocumentImage",value:(ps=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(null!=r?r:this.documentPart,t,"blob");case 2:return n=e.sent,e.abrupt("return",this.blobToURL(n));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return ps.apply(this,arguments)})},{key:"loadNumberingImage",value:(ds=$(P().mark(function e(t){var r;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.numberingPart,t,"blob");case 2:return r=e.sent,e.abrupt("return",this.blobToURL(r));case 4:case"end":return e.stop()}},e,this)})),function(e){return ds.apply(this,arguments)})},{key:"loadFont",value:(fs=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.fontTablePart,t,"uint8array");case 2:return n=e.sent,e.abrupt("return",n&&this.blobToURL(new Blob([function(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),i=0;i<16;i++)n[16-i-1]=parseInt(r.substr(2*i,2),16);for(var a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}(n,r)])));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return fs.apply(this,arguments)})},{key:"blobToURL",value:function(e){return e?this._options.useBase64URL?(n=e,new Promise(function(e,t){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.onerror=function(){return t()},r.readAsDataURL(n)})):URL.createObjectURL(e):null;var n}},{key:"findPartByRelId",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=(null!=(r=e.rels)?r:this.rels).find(function(e){return e.id==t}),e=e?Ja(e.path)[0]:"";return r?this.partsMap[Ya(r.target,e)]:null}},{key:"getPathById",value:function(e,t){var r=e.rels.find(function(e){return e.id==t}),e=V(Ja(e.path),1)[0];return r?Ya(r.target,e):null}},{key:"loadResource",value:function(e,t,r){e=this.getPathById(e,t);return e?this._package.load(e,r):Promise.resolve(null)}}],[{key:"load",value:(hs=$(P().mark(function e(t,r,n){var i;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=new ks)._options=n,i._parser=r,e.next=5,ao.load(t,n);case 5:return i._package=e.sent,e.next=8,i._package.loadRelationships();case 8:return i.rels=e.sent,e.next=11,Promise.all(ws.map(function(t){var e=null!=(e=i.rels.find(function(e){return e.type===t.type}))?e:t;return i.loadRelationshipPart(e.target,e.type)}));case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),function(e,t,r){return hs.apply(this,arguments)})}]),ks);function ks(){n(this,ks),this.parts=[],this.partsMap={}}function Ss(){return n(this,Ss),gs.apply(this,arguments)}function xs(e,t){return n(this,xs),ys.call(this,e,t)}t(Ps,di),Es=r(Ps);var Es,Cs=i(Ps);function Ps(){var e;return n(this,Ps),(e=Es.apply(this,arguments)).type=T.VmlElement,e.attrs={},e}function As(e,t){var r,n=new Cs;switch(e.localName){case"rect":n.tagName="rect",Object.assign(n.attrs,{width:"100%",height:"100%"});break;case"oval":n.tagName="ellipse",Object.assign(n.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":n.tagName="line";break;case"shape":n.tagName="g";break;case"textbox":n.tagName="foreignObject",Object.assign(n.attrs,{width:"100%",height:"100%"});break;default:return null}var i,a=k(A.attrs(e));try{for(a.s();!(i=a.n()).done;){var o=i.value;switch(o.localName){case"style":n.cssStyleText=o.value;break;case"fillcolor":n.attrs.fill=o.value;break;case"from":var s=V(Ts(o.value),2),l=s[0],u=s[1];Object.assign(n.attrs,{x1:l,y1:u});break;case"to":var c=V(Ts(o.value),2),h=c[0],f=c[1];Object.assign(n.attrs,{x2:h,y2:f})}}}catch(e){a.e(e)}finally{a.f()}var d,p,m=k(A.elements(e));try{for(m.s();!(d=m.n()).done;){var g=d.value;switch(g.localName){case"stroke":Object.assign(n.attrs,(p=g,{stroke:A.attr(p,"color"),"stroke-width":null!=(p=A.lengthAttr(p,"weight",C.Emu))?p:"1px"}));break;case"fill":Object.assign(n.attrs,{});break;case"imagedata":n.tagName="image",Object.assign(n.attrs,{width:"100%",height:"100%"}),n.imageHref={id:A.attr(g,"id"),title:A.attr(g,"title")};break;case"txbxContent":(r=n.children).push.apply(r,q(t.parseBodyElements(g)));break;default:var y=As(g,t);y&&n.children.push(y)}}}catch(e){m.e(e)}finally{m.f()}return n}function Ts(e){return e.split(",")}var Os=[],Ns={oMath:T.MmlMath,oMathPara:T.MmlMathParagraph,f:T.MmlFraction,func:T.MmlFunction,fName:T.MmlFunctionName,num:T.MmlNumerator,den:T.MmlDenominator,rad:T.MmlRadical,deg:T.MmlDegree,e:T.MmlBase,sSup:T.MmlSuperscript,sSub:T.MmlSubscript,sPre:T.MmlPreSubSuper,sup:T.MmlSuperArgument,sub:T.MmlSubArgument,d:T.MmlDelimiter,nary:T.MmlNary,eqArr:T.MmlEquationArray,lim:T.MmlLimit,limLow:T.MmlLimitLower,m:T.MmlMatrix,mr:T.MmlMatrixRow,box:T.MmlBox,bar:T.MmlBar,groupChr:T.MmlGroupChar},Ms=(i(Ls,[{key:"parseNotes",value:function(e,t,r){var n,i=[],a=k(A.elements(e,t));try{for(a.s();!(n=a.n()).done;){var o=n.value,s=new r;s.id=A.attr(o,"id"),s.noteType=A.attr(o,"type"),s.children=this.parseBodyElements(o),i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"parseDocumentFile",value:function(e){var t=A.element(e,"body"),e=A.element(e,"background"),r=A.element(t,"sectPr");return{type:T.Document,children:this.parseBodyElements(t),props:r?co(r,A):{},cssStyle:e?this.parseBackground(e):{}}}},{key:"parseBackground",value:function(e){var t={},e=O.colorAttr(e,"color");return e&&(t["background-color"]=e),t}},{key:"parseBodyElements",value:function(e){var t,r=this,n=[],i=k(A.elements(e));try{for(i.s();!(t=i.n()).done;){var a=t.value;switch(a.localName){case"p":n.push(this.parseParagraph(a));break;case"tbl":n.push(this.parseTable(a));break;case"sdt":n.push.apply(n,q(this.parseSdt(a,function(e){return r.parseBodyElements(e)})))}}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"parseStylesFile",value:function(e){var t=this,r=[];return O.foreach(e,function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}}),r}},{key:"parseDefaultStyles",value:function(e){var r=this,n={id:null,name:null,target:null,basedOn:null,styles:[]};return O.foreach(e,function(e){switch(e.localName){case"rPrDefault":var t=A.element(e,"rPr");t&&n.styles.push({target:"span",values:r.parseDefaultProperties(t,{})});break;case"pPrDefault":t=A.element(e,"pPr");t&&n.styles.push({target:"p",values:r.parseDefaultProperties(t,{})})}}),n}},{key:"parseStyle",value:function(e){var i=this,a={id:A.attr(e,"styleId"),isDefault:A.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(A.attr(e,"type")){case"paragraph":a.target="p";break;case"table":a.target="table";break;case"character":a.target="span"}return O.foreach(e,function(e){switch(e.localName){case"basedOn":a.basedOn=A.attr(e,"val");break;case"name":a.name=A.attr(e,"val");break;case"link":a.linked=A.attr(e,"val");break;case"next":a.next=A.attr(e,"val");break;case"aliases":a.aliases=A.attr(e,"val").split(",");break;case"pPr":a.styles.push({target:"p",values:i.parseDefaultProperties(e,{})}),a.paragraphProps=po(e,A);break;case"rPr":a.styles.push({target:"span",values:i.parseDefaultProperties(e,{})}),a.runProps=fo(e,A);break;case"tblPr":case"tcPr":a.styles.push({target:"td",values:i.parseDefaultProperties(e,{})});break;case"tblStylePr":var t,r=k(i.parseTableStyle(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;a.styles.push(n)}}catch(e){r.e(e)}finally{r.f()}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:i.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}}),a}},{key:"parseTableStyle",value:function(e){var t=this,r=[],n=A.attr(e,"type"),i="",a="";switch(n){case"firstRow":a=".first-row",i="tr.first-row td";break;case"lastRow":a=".last-row",i="tr.last-row td";break;case"firstCol":a=".first-col",i="td.first-col";break;case"lastCol":a=".last-col",i="td.last-col";break;case"band1Vert":a=":not(.no-vband)",i="td.odd-col";break;case"band2Vert":a=":not(.no-vband)",i="td.even-col";break;case"band1Horz":a=":not(.no-hband)",i="tr.odd-row";break;case"band2Horz":a=":not(.no-hband)",i="tr.even-row";break;default:return[]}return O.foreach(e,function(e){switch(e.localName){case"pPr":r.push({target:"".concat(i," p"),mod:a,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(i," span"),mod:a,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:i,mod:a,values:t.parseDefaultProperties(e,{})})}}),r}},{key:"parseNumberingFile",value:function(e){var n=this,i=[],a={},o=[];return O.foreach(e,function(e){switch(e.localName){case"abstractNum":n.parseAbstractNumbering(e,o).forEach(function(e){return i.push(e)});break;case"numPicBullet":o.push(n.parseNumberingPicBullet(e));break;case"num":var t=A.attr(e,"numId"),r=A.elementAttr(e,"abstractNumId","val");a[r]=t}}),i.forEach(function(e){return e.id=a[e.id]}),i}},{key:"parseNumberingPicBullet",value:function(e){var t=A.element(e,"pict"),t=t&&A.element(t,"shape"),r=t&&A.element(t,"imagedata");return r?{id:A.intAttr(e,"numPicBulletId"),src:A.attr(r,"id"),style:A.attr(t,"style")}:null}},{key:"parseAbstractNumbering",value:function(e,t){var r=this,n=[],i=A.attr(e,"abstractNumId");return O.foreach(e,function(e){"lvl"===e.localName&&n.push(r.parseNumberingLevel(i,e,t))}),n}},{key:"parseNumberingLevel",value:function(e,t,r){var n=this,i={id:e,level:A.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return O.foreach(t,function(e){switch(e.localName){case"start":i.start=A.intAttr(e,"val");break;case"pPr":n.parseDefaultProperties(e,i.pStyle);break;case"rPr":n.parseDefaultProperties(e,i.rStyle);break;case"lvlPicBulletId":var t=A.intAttr(e,"val");i.bullet=r.find(function(e){return e.id==t});break;case"lvlText":i.levelText=A.attr(e,"val");break;case"pStyle":i.pStyleName=A.attr(e,"val");break;case"numFmt":i.format=A.attr(e,"val");break;case"suff":i.suff=A.attr(e,"val")}}),i}},{key:"parseSdt",value:function(e,t){e=A.element(e,"sdtContent");return e?t(e):[]}},{key:"parseInserted",value:function(e,t){return{type:T.Inserted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseDeleted",value:function(e,t){return{type:T.Deleted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseParagraph",value:function(e){var t,r,n,i,a=this,o={type:T.Paragraph,children:[]},s=k(A.elements(e));try{for(s.s();!(i=s.n()).done;){var l=i.value;switch(l.localName){case"pPr":this.parseParagraphProperties(l,o);break;case"r":o.children.push(this.parseRun(l,o));break;case"hyperlink":o.children.push(this.parseHyperlink(l,o));break;case"bookmarkStart":o.children.push((r=l,n=A,{type:T.BookmarkStart,id:n.attr(r,"id"),name:n.attr(r,"name"),colFirst:n.intAttr(r,"colFirst"),colLast:n.intAttr(r,"colLast")}));break;case"bookmarkEnd":o.children.push({type:T.BookmarkEnd,id:A.attr(l,"id")});break;case"oMath":case"oMathPara":o.children.push(this.parseMathElement(l));break;case"sdt":(t=o.children).push.apply(t,q(this.parseSdt(l,function(e){return a.parseParagraph(e).children})));break;case"ins":o.children.push(this.parseInserted(l,function(e){return a.parseParagraph(e)}));break;case"del":o.children.push(this.parseDeleted(l,function(e){return a.parseParagraph(e)}))}}}catch(e){s.e(e)}finally{s.f()}return o}},{key:"parseParagraphProperties",value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,function(e){if(!mo(e,t,A))switch(e.localName){case"pStyle":t.styleName=A.attr(e,"val");break;case"cnfStyle":t.className=N.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}},{key:"parseFrame",value:function(e,t){"drop"==A.attr(e,"dropCap")&&(t.cssStyle.float="left")}},{key:"parseHyperlink",value:function(e,t){var r=this,n={type:T.Hyperlink,parent:t,children:[]},t=A.attr(e,"anchor"),i=A.attr(e,"id");return t&&(n.href="#"+t),i&&(n.id=i),O.foreach(e,function(e){"r"===e.localName&&n.children.push(r.parseRun(e,n))}),n}},{key:"parseRun",value:function(e,t){var r=this,n={type:T.Run,parent:t,children:[]};return O.foreach(e,function(e){switch((e=r.checkAlternateContent(e)).localName){case"t":n.children.push({type:T.Text,text:e.textContent});break;case"delText":n.children.push({type:T.DeletedText,text:e.textContent});break;case"fldSimple":n.children.push({type:T.SimpleField,instruction:A.attr(e,"instr"),lock:A.boolAttr(e,"lock",!1),dirty:A.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:T.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:T.ComplexField,charType:A.attr(e,"fldCharType"),lock:A.boolAttr(e,"lock",!1),dirty:A.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:T.NoBreakHyphen});break;case"br":n.children.push({type:T.Break,break:A.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:T.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:T.Symbol,font:A.attr(e,"font"),char:A.attr(e,"char")});break;case"tab":n.children.push({type:T.Tab});break;case"footnoteReference":n.children.push({type:T.FootnoteReference,id:A.attr(e,"id")});break;case"endnoteReference":n.children.push({type:T.EndnoteReference,id:A.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(r.parseVmlPicture(e));break;case"rPr":r.parseRunProperties(e,n)}}),n}},{key:"parseMathElement",value:function(e){var t,r="".concat(e.localName,"Pr"),n={type:Ns[e.localName],children:[]},i=k(A.elements(e));try{for(i.s();!(t=i.n()).done;){var a,o=t.value;Ns[o.localName]?n.children.push(this.parseMathElement(o)):"r"==o.localName?((a=this.parseRun(o)).type=T.MmlRun,n.children.push(a)):o.localName==r&&(n.props=this.parseMathProperies(o))}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"parseMathProperies",value:function(e){var t,r={},n=k(A.elements(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"chr":r.char=A.attr(i,"val");break;case"vertJc":r.verticalJustification=A.attr(i,"val");break;case"pos":r.position=A.attr(i,"val");break;case"degHide":r.hideDegree=A.boolAttr(i,"val");break;case"begChr":r.beginChar=A.attr(i,"val");break;case"endChr":r.endChar=A.attr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"parseRunProperties",value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,function(e){switch(e.localName){case"rStyle":t.styleName=A.attr(e,"val");break;case"vertAlign":t.verticalAlign=N.valueOfVertAlign(e,!0);break;default:return!1}return!0})}},{key:"parseVmlPicture",value:function(e){var t,r={type:T.VmlPicture,children:[]},n=k(A.elements(e));try{for(n.s();!(t=n.n()).done;){var i=As(t.value,this);i&&r.children.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"checkAlternateContent",value:function(e){if("AlternateContent"!=e.localName)return e;var t=A.element(e,"Choice");if(t){var r=A.attr(t,"Requires"),r=e.lookupNamespaceURI(r);if(Os.includes(r))return t.firstElementChild}return null==(r=A.element(e,"Fallback"))?void 0:r.firstElementChild}},{key:"parseDrawing",value:function(e){var t,r=k(A.elements(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"parseDrawingWrapper",value:function(e){var t,r={type:T.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName,i=null,a=A.boolAttr(e,"simplePos"),o={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"},l=k(A.elements(e));try{for(l.s();!(t=l.n()).done;){var u,c,h,f,d=t.value;switch(d.localName){case"simplePos":a&&(o.offset=A.lengthAttr(d,"x",C.Emu),s.offset=A.lengthAttr(d,"y",C.Emu));break;case"extent":r.cssStyle.width=A.lengthAttr(d,"cx",C.Emu),r.cssStyle.height=A.lengthAttr(d,"cy",C.Emu);break;case"positionH":case"positionV":a||(c="positionH"==d.localName?o:s,h=A.element(d,"align"),f=A.element(d,"posOffset"),c.relative=null!=(u=A.attr(d,"relativeFrom"))?u:c.relative,h&&(c.align=h.textContent),f&&(c.offset=O.sizeValue(f,C.Emu)));break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var p=this.parseGraphic(d);p&&r.children.push(p)}}}catch(e){l.e(e)}finally{l.f()}return"wrapTopAndBottom"==i?(r.cssStyle.display="block",o.align&&(r.cssStyle["text-align"]=o.align,r.cssStyle.width="100%")):"wrapNone"==i?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",o.offset&&(r.cssStyle.left=o.offset),s.offset&&(r.cssStyle.top=s.offset)):!n||"left"!=o.align&&"right"!=o.align||(r.cssStyle.float=o.align),r}},{key:"parseGraphic",value:function(e){var t,r=A.element(e,"graphicData"),n=k(A.elements(r));try{for(n.s();!(t=n.n()).done;){var i=t.value;if("pic"===i.localName)return this.parsePicture(i)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"parsePicture",value:function(e){var t={type:T.Image,src:"",cssStyle:{}},r=A.element(e,"blipFill"),r=A.element(r,"blip");t.src=A.attr(r,"embed");var n,r=A.element(e,"spPr"),r=A.element(r,"xfrm"),i=k((t.cssStyle.position="relative",A.elements(r)));try{for(i.s();!(n=i.n()).done;){var a=n.value;switch(a.localName){case"ext":t.cssStyle.width=A.lengthAttr(a,"cx",C.Emu),t.cssStyle.height=A.lengthAttr(a,"cy",C.Emu);break;case"off":t.cssStyle.left=A.lengthAttr(a,"x",C.Emu),t.cssStyle.top=A.lengthAttr(a,"y",C.Emu)}}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"parseTable",value:function(e){var t=this,r={type:T.Table,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}}),r}},{key:"parseTableColumns",value:function(e){var t=[];return O.foreach(e,function(e){"gridCol"===e.localName&&t.push({width:A.lengthAttr(e,"w")})}),t}},{key:"parseTableProperties",value:function(e,t){var r=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,function(e){switch(e.localName){case"tblStyle":t.styleName=A.attr(e,"val");break;case"tblLook":t.className=N.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=A.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=A.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}},{key:"parseTablePosition",value:function(e,t){var r=A.lengthAttr(e,"topFromText"),n=A.lengthAttr(e,"bottomFromText"),i=A.lengthAttr(e,"rightFromText"),e=A.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=N.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=N.addSize(t.cssStyle["margin-left"],e),t.cssStyle["margin-right"]=N.addSize(t.cssStyle["margin-right"],i),t.cssStyle["margin-top"]=N.addSize(t.cssStyle["margin-top"],r)}},{key:"parseTableRow",value:function(e){var t=this,r={type:T.Row,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}}),r}},{key:"parseTableRowProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,function(e){switch(e.localName){case"cnfStyle":t.className=N.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=A.boolAttr(e,"val");break;default:return!1}return!0})}},{key:"parseTableCell",value:function(e){var t=this,r={type:T.Cell,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}}),r}},{key:"parseTableCellProperties",value:function(e,r){r.cssStyle=this.parseDefaultProperties(e,{},null,function(e){var t;switch(e.localName){case"gridSpan":r.span=A.intAttr(e,"val",null);break;case"vMerge":r.verticalMerge=null!=(t=A.attr(e,"val"))?t:"continue";break;case"cnfStyle":r.className=N.classNameOfCnfStyle(e);break;default:return!1}return!0})}},{key:"parseDefaultProperties",value:function(t){var r=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,n=n||{};return O.foreach(t,function(e){if(null==a||!a(e))switch(e.localName){case"jc":n["text-align"]=N.valueOfJc(e);break;case"textAlignment":n["vertical-align"]=N.valueOfTextAlignment(e);break;case"color":n.color=O.colorAttr(e,"val",null,"black");break;case"sz":n["font-size"]=n["min-height"]=A.lengthAttr(e,"val",C.FontSize);break;case"shd":n["background-color"]=O.colorAttr(e,"fill",null,"inherit");break;case"highlight":n["background-color"]=O.colorAttr(e,"val",null,"transparent");break;case"vertAlign":break;case"position":n.verticalAlign=A.lengthAttr(e,"val",C.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":n.width=N.valueOfSize(e,"w");break;case"trHeight":r.parseTrHeight(e,n);break;case"strike":n["text-decoration"]=A.boolAttr(e,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=A.boolAttr(e,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=A.boolAttr(e,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=A.boolAttr(e,"val",!0)?"uppercase":"none";break;case"smallCaps":n["font-variant"]=A.boolAttr(e,"val",!0)?"small-caps":"none";break;case"u":r.parseUnderline(e,n);break;case"ind":case"tblInd":r.parseIndentation(e,n);break;case"rFonts":r.parseFont(e,n);break;case"tblBorders":r.parseBorderProperties(e,i||n);break;case"tblCellSpacing":n["border-spacing"]=N.valueOfMargin(e),n["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(e,n);break;case"bdr":n.border=N.valueOfBorder(e);break;case"tcBorders":r.parseBorderProperties(e,n);break;case"vanish":A.boolAttr(e,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(e,i||n);break;case"tblLayout":n["table-layout"]=N.valueOfTblLayout(e);break;case"vAlign":n["vertical-align"]=N.valueOfTextAlignment(e);break;case"spacing":"pPr"==t.localName&&r.parseSpacing(e,n);break;case"wordWrap":A.boolAttr(e,"val")&&(n["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":n.hyphens=A.boolAttr(e,"val",!0)?"none":"auto";break;case"lang":n.$lang=A.attr(e,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(t.localName,".").concat(e.localName))}}),n}},{key:"parseUnderline",value:function(e,t){var r=A.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"none":t["text-decoration"]="none"}r=O.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}},{key:"parseFont",value:function(e,t){e=[A.attr(e,"ascii"),N.themeValue(e,"asciiTheme")].filter(function(e){return e}).join(", ");0<e.length&&(t["font-family"]=e)}},{key:"parseIndentation",value:function(e,t){var r=A.lengthAttr(e,"firstLine"),n=A.lengthAttr(e,"hanging"),i=A.lengthAttr(e,"left"),a=A.lengthAttr(e,"start"),o=A.lengthAttr(e,"right"),e=A.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(i||a)&&(t["margin-left"]=i||a),(o||e)&&(t["margin-right"]=o||e)}},{key:"parseSpacing",value:function(e,t){var r=A.lengthAttr(e,"before"),n=A.lengthAttr(e,"after"),i=A.intAttr(e,"line",null),e=A.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==i)switch(e){case"auto":t["line-height"]="".concat((i/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(i/20,"pt)");break;default:t["line-height"]=t["min-height"]=i/20+"pt"}}},{key:"parseMarginProperties",value:function(e,t){O.foreach(e,function(e){switch(e.localName){case"left":t["padding-left"]=N.valueOfMargin(e);break;case"right":t["padding-right"]=N.valueOfMargin(e);break;case"top":t["padding-top"]=N.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=N.valueOfMargin(e)}})}},{key:"parseTrHeight",value:function(e,t){A.attr(e,"hRule"),t.height=A.lengthAttr(e,"val")}},{key:"parseBorderProperties",value:function(e,t){O.foreach(e,function(e){switch(e.localName){case"start":case"left":t["border-left"]=N.valueOfBorder(e);break;case"end":case"right":t["border-right"]=N.valueOfBorder(e);break;case"top":t["border-top"]=N.valueOfBorder(e);break;case"bottom":t["border-bottom"]=N.valueOfBorder(e)}})}}]),Ls),Rs=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],O=(i(js,null,[{key:"foreach",value:function(e,t){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}},{key:"colorAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"black",t=A.attr(e,t);return t?"auto"==t?n:Rs.includes(t)?t:"#".concat(t):(n=A.attr(e,"themeColor"))?"var(--docx-".concat(n,"-color)"):r}},{key:"sizeValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C.Dxa;return Fa(e.textContent,t)}}]),js),N=(i(Ds,null,[{key:"themeValue",value:function(e,t){e=A.attr(e,t);return e?"var(--docx-".concat(e,"-font)"):null}},{key:"valueOfSize",value:function(e,t){var r=C.Dxa;switch(A.attr(e,"type")){case"dxa":break;case"pct":r=C.Percent;break;case"auto":return"auto"}return A.lengthAttr(e,t,r)}},{key:"valueOfMargin",value:function(e){return A.lengthAttr(e,"w")}},{key:"valueOfBorder",value:function(e){var t;return"nil"==A.attr(e,"val")?"none":(t=O.colorAttr(e,"color"),"".concat(A.lengthAttr(e,"sz",C.Border)," solid ").concat("auto"==t?"black":t))}},{key:"valueOfTblLayout",value:function(e){return"fixed"==A.attr(e,"val")?"fixed":"auto"}},{key:"classNameOfCnfStyle",value:function(e){var r=A.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter(function(e,t){return"1"==r[t]}).join(" ")}},{key:"valueOfJc",value:function(e){e=A.attr(e,"val");switch(e){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return e}},{key:"valueOfVertAlign",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=A.attr(e,"val");switch(e){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:e}},{key:"valueOfTextAlignment",value:function(e){e=A.attr(e,"val");switch(e){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return e}},{key:"addSize",value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}},{key:"classNameOftblLook",value:function(e){var t=A.hexAttr(e,"val",0),r="";return(A.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(A.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(A.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(A.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(A.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(A.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}]),Ds),Bs={pos:0,leader:"none",style:"left"};function Ds(){n(this,Ds)}function js(){n(this,js)}function Ls(e){n(this,Ls),this.options=_({ignoreWidth:!1,debug:!1},e)}function Is(e){return parseFloat(e)}var B="http://www.w3.org/1998/Math/MathML",zs=(i(Fs,[{key:"render",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length?arguments[3]:void 0,i=(this.document=e,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?".".concat(this.className,"-wrapper"):":root",this.styleMap=null,this.tasks=[],Hs(r=r||t),Hs(t),Vs(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),e.themePart&&(Vs(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),Vs(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),Vs(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=$a(e.footnotesPart.notes,function(e){return e.id})),e.endnotesPart&&(this.endnoteMap=$a(e.endnotesPart.notes,function(e){return e.id})),e.settingsPart&&(this.defaultTabSize=null==(i=e.settingsPart.settings)?void 0:i.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r),this.renderSections(e.documentPart.body));this.options.inWrapper?t.appendChild(this.renderWrapper(i)):Zs(t,i),this.refreshTabStops()}},{key:"renderTheme",value:function(e,t){var r={},n=null==(n=e.theme)?void 0:n.fontScheme,e=(n&&(n.majorFont&&(r["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont)&&(r["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface),null==(n=e.theme)?void 0:n.colorScheme);if(e)for(var i=0,a=Object.entries(e.colors);i<a.length;i++){var o=V(a[i],2),s=o[0],o=o[1];r["--docx-".concat(s,"-color")]="#".concat(o)}n=this.styleToString(".".concat(this.className),r);t.appendChild(qs(n))}},{key:"renderFontTable",value:function(e,n){var i,a=this,t=k(e.fonts);try{var r=function(){var e,r=i.value,t=k(r.embedFontRefs);try{for(t.s();!(e=t.n()).done;)!function(){var t=e.value;a.tasks.push(a.document.loadFont(t.id,t.key).then(function(e){e={"font-family":r.name,src:"url(".concat(e,")")},"bold"!=t.type&&"boldItalic"!=t.type||(e["font-weight"]="bold"),"italic"!=t.type&&"boldItalic"!=t.type||(e["font-style"]="italic"),Vs(n,"docxjs ".concat(r.name," font")),e=a.styleToString("@font-face",e);n.appendChild(qs(e)),a.refreshTabStops()}))}()}catch(e){t.e(e)}finally{t.f()}};for(t.s();!(i=t.n()).done;)r()}catch(e){t.e(e)}finally{t.f()}}},{key:"processStyleName",value:function(e){return e?"".concat(this.className,"_").concat(null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()):this.className}},{key:"processStyles",value:function(e){var t,r=this,n=$a(e.filter(function(e){return null!=e.id}),function(e){return e.id}),i=k(e.filter(function(e){return e.basedOn}));try{for(i.s();!(t=i.n()).done;){var a=t.value,o=n[a.basedOn];if(o){a.paragraphProps=eo(a.paragraphProps,o.paragraphProps),a.runProps=eo(a.runProps,o.runProps);var s,l=k(o.styles);try{for(l.s();!(s=l.n()).done;)!function(){var t=s.value,e=a.styles.find(function(e){return e.target==t.target});e?r.copyStyleProperties(t.values,e.values):a.styles.push(_(_({},t),{},{values:_({},t.values)}))}()}catch(e){l.e(e)}finally{l.f()}}else this.options.debug&&console.warn("Can't find base style ".concat(a.basedOn))}}catch(e){i.e(e)}finally{i.f()}var u,c=k(e);try{for(c.s();!(u=c.n()).done;){var h=u.value;h.cssName=this.processStyleName(h.id)}}catch(e){c.e(e)}finally{c.f()}return n}},{key:"prodessNumberings",value:function(e){var t,r=k(e.filter(function(e){return e.pStyleName}));try{for(r.s();!(t=r.n()).done;){var n,i=t.value,a=this.findStyle(i.pStyleName);null!=a&&null!=(n=a.paragraphProps)&&n.numbering&&(a.paragraphProps.numbering.level=i.level)}}catch(e){r.e(e)}finally{r.f()}}},{key:"processElement",value:function(e){if(e.children){var t,r=k(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.parent=e,n.type==T.Table?this.processTable(n):this.processElement(n)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"processTable",value:function(e){var t,r=k(e.children);try{for(r.s();!(t=r.n()).done;){var n,i=k(t.value.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.cssStyle=this.copyStyleProperties(e.cellStyle,a.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(a)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"copyStyleProperties",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(e){var n,i=k((null==t&&(t={}),r=null==r?Object.getOwnPropertyNames(e):r));try{for(i.s();!(n=i.n()).done;){var a=n.value;e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(t[a]=e[a])}}catch(e){i.e(e)}finally{i.f()}}return t}},{key:"createSection",value:function(e,t){e=this.createElement("section",{className:e});return t&&(t.pageMargins&&(e.style.paddingLeft=t.pageMargins.left,e.style.paddingRight=t.pageMargins.right,e.style.paddingTop=t.pageMargins.top,e.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(e.style.width=t.pageSize.width),this.options.ignoreHeight||(e.style.minHeight=t.pageSize.height)),t.columns)&&t.columns.numberOfColumns&&(e.style.columnCount="".concat(t.columns.numberOfColumns),e.style.columnGap=t.columns.space,t.columns.separator)&&(e.style.columnRule="1px solid black"),e}},{key:"renderSections",value:function(e){var t=[];this.processElement(e);for(var r=this.splitBySection(e.children),n=null,i=0,a=r.length;i<a;i++){this.currentFootnoteIds=[];var o=r[i],s=o.sectProps||e.props,l=this.createSection(this.className,s),u=(this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l),this.createElement("article"));this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&i==a-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}return t}},{key:"renderHeaderFooter",value:function(e,t,r,n,i){e&&(n=(r=null!=(n=null!=(n=t.titlePage&&n?e.find(function(e){return"first"==e.type}):null)?n:r%2==1?e.find(function(e){return"even"==e.type}):null)?n:e.find(function(e){return"default"==e.type}))&&this.document.findPartByRelId(r.id,this.document.documentPart))&&(this.currentPart=n,this.usedHederFooterParts.includes(n.path)||(this.processElement(n.rootElement),this.usedHederFooterParts.push(n.path)),e=V(this.renderElements([n.rootElement],i),1)[0],null!=t&&t.pageMargins&&(n.rootElement.type===T.Header?(e.style.marginTop="calc(".concat(t.pageMargins.header," - ").concat(t.pageMargins.top,")"),e.style.minHeight="calc(".concat(t.pageMargins.top," - ").concat(t.pageMargins.header,")")):n.rootElement.type===T.Footer&&(e.style.marginBottom="calc(".concat(t.pageMargins.footer," - ").concat(t.pageMargins.bottom,")"),e.style.minHeight="calc(".concat(t.pageMargins.bottom," - ").concat(t.pageMargins.footer,")"))),this.currentPart=null)}},{key:"isPageBreakElement",value:function(e){return e.type==T.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}},{key:"splitBySection",value:function(e){var t,r=this,n={sectProps:null,elements:[]},i=[n],a=k(e);try{for(a.s();!(t=a.n()).done;){var o,s,l,u,c,h,f,d,p,m,g,y,b=t.value;b.type==T.Paragraph&&null!=(s=this.findStyle(b.styleName))&&null!=(o=s.paragraphProps)&&o.pageBreakBefore&&(n.sectProps=u,i.push(n={sectProps:null,elements:[]})),n.elements.push(b),b.type==T.Paragraph&&(u=(l=b).sectionProps,h=c=-1,this.options.breakPages&&l.children&&(c=l.children.findIndex(function(e){return-1!=(h=null!=(e=null==(e=e.children)?void 0:e.findIndex(r.isPageBreakElement.bind(r)))?e:-1)})),!u&&-1==c||(n.sectProps=u,i.push(n={sectProps:null,elements:[]})),-1!=c)&&(f=l.children[c],d=h<f.children.length-1,c<l.children.length-1||d)&&(p=b.children,m=_(_({},b),{},{children:p.slice(c)}),b.children=p.slice(0,c),n.elements.push(m),d)&&(g=f.children,y=_(_({},f),{},{children:g.slice(0,h)}),b.children.push(y),f.children=g.slice(h))}}catch(e){a.e(e)}finally{a.f()}for(var v=null,w=i.length-1;0<=w;w--)null==i[w].sectProps?i[w].sectProps=v:v=i[w].sectProps;return i}},{key:"renderWrapper",value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}},{key:"renderDefaultStyle",value:function(){var e=this.className;return qs("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; hyphens: auto; text-underline-position: from-font; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; z-index: 1; }\nsection.").concat(e,">footer { z-index: 1; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}},{key:"renderNumbering",value:function(e,n){var i,a=this,o="",s=[],t=k(e);try{var l,u,c;for(t.s();!(i=t.n()).done;)!function(){var t,e,r;l=i.value,u="p.".concat(a.numberingClass(l.id,l.level)),c="none",l.bullet?(t="--".concat(a.className,"-").concat(l.bullet.src).toLowerCase(),o+=a.styleToString("".concat(u,":before"),{content:"' '",display:"inline-block",background:"var(".concat(t,")")},l.bullet.style),a.tasks.push(a.document.loadNumberingImage(l.bullet.src).then(function(e){e="".concat(a.rootSelector," { ").concat(t,": url(").concat(e,") }");n.appendChild(qs(e))}))):l.levelText?(r=(e=a.numberingCounter(l.id,l.level))+" "+(l.start-1),0<l.level&&(o+=a.styleToString("p.".concat(a.numberingClass(l.id,l.level-1)),{"counter-reset":r})),s.push(r),o+=a.styleToString("".concat(u,":before"),_({content:a.levelTextToContent(l.levelText,l.suff,l.id,a.numFormatToCssValue(l.format)),"counter-increment":e},l.rStyle))):c=a.numFormatToCssValue(l.format),o+=a.styleToString(u,_({display:"list-item","list-style-position":"inside","list-style-type":c},l.pStyle))}()}catch(e){t.e(e)}finally{t.f()}return 0<s.length&&(o+=this.styleToString(this.rootSelector,{"counter-reset":s.join(" ")})),qs(o)}},{key:"renderStyles",value:function(e){var t,r="",n=this.styleMap,i=$a(e.filter(function(e){return e.isDefault}),function(e){return e.target}),a=k(e);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=s.styles;s.linked&&((o=s.linked&&n[s.linked])?l=l.concat(o.styles):this.options.debug&&console.warn("Can't find linked style ".concat(s.linked)));var u,c=k(l);try{for(c.s();!(u=c.n()).done;){var h,f=u.value,d="".concat(null!=(h=s.target)?h:"",".").concat(s.cssName);s.target!=f.target&&(d+=" ".concat(f.target)),i[s.target]==s&&(d=".".concat(this.className," ").concat(s.target,", ")+d),r+=this.styleToString(d,f.values)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){a.e(e)}finally{a.f()}return qs(r)}},{key:"renderNotes",value:function(e,t,r){var e=e.map(function(e){return t[e]}).filter(function(e){return e});0<e.length&&(e=this.createElement("ol",null,this.renderElements(e)),r.appendChild(e))}},{key:"renderElement",value:function(e){switch(e.type){case T.Paragraph:return this.renderParagraph(e);case T.BookmarkStart:return this.renderBookmarkStart(e);case T.BookmarkEnd:return null;case T.Run:return this.renderRun(e);case T.Table:return this.renderTable(e);case T.Row:return this.renderTableRow(e);case T.Cell:return this.renderTableCell(e);case T.Hyperlink:return this.renderHyperlink(e);case T.Drawing:return this.renderDrawing(e);case T.Image:return this.renderImage(e);case T.Text:case T.Text:return this.renderText(e);case T.DeletedText:return this.renderDeletedText(e);case T.Tab:return this.renderTab(e);case T.Symbol:return this.renderSymbol(e);case T.Break:return this.renderBreak(e);case T.Footer:return this.renderContainer(e,"footer");case T.Header:return this.renderContainer(e,"header");case T.Footnote:case T.Endnote:return this.renderContainer(e,"li");case T.FootnoteReference:return this.renderFootnoteReference(e);case T.EndnoteReference:return this.renderEndnoteReference(e);case T.NoBreakHyphen:return this.createElement("wbr");case T.VmlPicture:return this.renderVmlPicture(e);case T.VmlElement:return this.renderVmlElement(e);case T.MmlMath:return this.renderContainerNS(e,B,"math",{xmlns:B});case T.MmlMathParagraph:return this.renderContainer(e,"span");case T.MmlFraction:return this.renderContainerNS(e,B,"mfrac");case T.MmlBase:return this.renderContainerNS(e,B,e.parent.type==T.MmlMatrixRow?"mtd":"mrow");case T.MmlNumerator:case T.MmlDenominator:case T.MmlFunction:case T.MmlLimit:case T.MmlBox:return this.renderContainerNS(e,B,"mrow");case T.MmlGroupChar:return this.renderMmlGroupChar(e);case T.MmlLimitLower:return this.renderContainerNS(e,B,"munder");case T.MmlMatrix:return this.renderContainerNS(e,B,"mtable");case T.MmlMatrixRow:return this.renderContainerNS(e,B,"mtr");case T.MmlRadical:return this.renderMmlRadical(e);case T.MmlSuperscript:return this.renderContainerNS(e,B,"msup");case T.MmlSubscript:return this.renderContainerNS(e,B,"msub");case T.MmlDegree:case T.MmlSuperArgument:case T.MmlSubArgument:return this.renderContainerNS(e,B,"mn");case T.MmlFunctionName:return this.renderContainerNS(e,B,"ms");case T.MmlDelimiter:return this.renderMmlDelimiter(e);case T.MmlRun:return this.renderMmlRun(e);case T.MmlNary:return this.renderMmlNary(e);case T.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case T.MmlBar:return this.renderMmlBar(e);case T.MmlEquationArray:return this.renderMllList(e);case T.Inserted:return this.renderInserted(e);case T.Deleted:return this.renderDeleted(e)}return null}},{key:"renderChildren",value:function(e,t){return this.renderElements(e.children,t)}},{key:"renderElements",value:function(e,t){var r=this;return null==e?null:(e=e.flatMap(function(e){return r.renderElement(e)}).filter(function(e){return null!=e}),t&&Zs(t,e),e)}},{key:"renderContainer",value:function(e,t,r){return this.createElement(t,r,this.renderChildren(e))}},{key:"renderContainerNS",value:function(e,t,r,n){return D(t,r,n,this.renderChildren(e))}},{key:"renderParagraph",value:function(e){var t=this.createElement("p"),r=this.findStyle(e.styleName),n=(null==e.tabs&&(e.tabs=null==r||null==(n=r.paragraphProps)?void 0:n.tabs),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e),null!=(n=e.numbering)?n:null==r||null==(e=r.paragraphProps)?void 0:e.numbering);return n&&t.classList.add(this.numberingClass(n.id,n.level)),t}},{key:"renderRunProperties",value:function(e,t){this.renderCommonProperties(e,t)}},{key:"renderCommonProperties",value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize)&&(e["font-size"]=t.fontSize)}},{key:"renderHyperlink",value:function(t){var e,r=this.createElement("a");return this.renderChildren(t,r),this.renderStyleValues(t.cssStyle,r),t.href?r.href=t.href:t.id&&(e=this.document.documentPart.rels.find(function(e){return e.id==t.id&&"External"===e.targetMode}),r.href=null==e?void 0:e.target),r}},{key:"renderDrawing",value:function(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}},{key:"renderImage",value:function(e){var t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(function(e){t.src=e})),t}},{key:"renderText",value:function(e){return this.htmlDocument.createTextNode(e.text)}},{key:"renderDeletedText",value:function(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}},{key:"renderBreak",value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}},{key:"renderInserted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}},{key:"renderDeleted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}},{key:"renderSymbol",value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}},{key:"renderFootnoteReference",value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}},{key:"renderEndnoteReference",value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}},{key:"renderTab",value:function(r){var e,t=this.createElement("span");return t.innerHTML="&emsp;",this.options.experimental&&(t.className=this.tabStopClass(),e=null==(e=function(e){for(var t=r.parent;null!=t&&t.type!=e;)t=t.parent;return t}(T.Paragraph))?void 0:e.tabs,this.currentTabs.push({stops:e,span:t})),t}},{key:"renderBookmarkStart",value:function(e){var t=this.createElement("span");return t.id=e.name,t}},{key:"renderRun",value:function(e){var t,r;return e.fieldRun?null:(t=this.createElement("span"),e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign?(r=this.createElement(e.verticalAlign),this.renderChildren(e,r),t.appendChild(r)):this.renderChildren(e,t),t)}},{key:"renderTable",value:function(e){var t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}},{key:"renderTableColumns",value:function(e){var t,r=this.createElement("colgroup"),n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=this.createElement("col");i.width&&(a.style.width=i.width),r.appendChild(a)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderTableRow",value:function(e){var t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}},{key:"renderTableCell",value:function(e){var t=this.createElement("td"),r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t).rowSpan=1:this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}},{key:"renderVmlPicture",value:function(e){var t=Us("div");return this.renderChildren(e,t),t}},{key:"renderVmlElement",value:function(e){var t,r=Ws("svg"),n=(r.setAttribute("style",e.cssStyleText),this.renderVmlChildElement(e));return null!=(t=e.imageHref)&&t.id&&this.tasks.push(null==(t=this.document)?void 0:t.loadDocumentImage(e.imageHref.id,this.currentPart).then(function(e){return n.setAttribute("href",e)})),r.appendChild(n),requestAnimationFrame(function(){var e=r.firstElementChild.getBBox();r.setAttribute("width","".concat(Math.ceil(e.x+e.width))),r.setAttribute("height","".concat(Math.ceil(e.y+e.height)))}),r}},{key:"renderVmlChildElement",value:function(e){var r=Ws(e.tagName);Object.entries(e.attrs).forEach(function(e){var e=V(e,2),t=e[0],e=e[1];return r.setAttribute(t,e)});var t,n=k(e.children);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.type==T.VmlElement?r.appendChild(this.renderVmlChildElement(i)):r.appendChild.apply(r,q(to(this.renderElement(i))))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderMmlRadical",value:function(e){var t,r=e.children.find(function(e){return e.type==T.MmlBase});return null!=(t=e.props)&&t.hideDegree?D(B,"msqrt",null,this.renderElements([r])):(t=e.children.find(function(e){return e.type==T.MmlDegree}),D(B,"mroot",null,this.renderElements([r,t])))}},{key:"renderMmlDelimiter",value:function(e){var t,r=[];return r.push(D(B,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),r.push.apply(r,q(this.renderElements(e.children))),r.push(D(B,"mo",null,[null!=(t=e.props.endChar)?t:")"])),D(B,"mrow",null,r)}},{key:"renderMmlNary",value:function(e){var t=[],r=$a(e.children,function(e){return e.type}),n=r[T.MmlSuperArgument],i=r[T.MmlSubArgument],n=n?D(B,"mo",null,to(this.renderElement(n))):null,i=i?D(B,"mo",null,to(this.renderElement(i))):null,e=D(B,"mo",null,[null!=(e=null==(e=e.props)?void 0:e.char)?e:"∫"]);return t.push(n||i?D(B,"munderover",null,[e,i,n]):n?D(B,"mover",null,[e,n]):i?D(B,"munder",null,[e,i]):e),t.push.apply(t,q(this.renderElements(r[T.MmlBase].children))),D(B,"mrow",null,t)}},{key:"renderMmlPreSubSuper",value:function(e){var t=[],e=$a(e.children,function(e){return e.type}),r=e[T.MmlSuperArgument],n=e[T.MmlSubArgument],r=r?D(B,"mo",null,to(this.renderElement(r))):null,n=n?D(B,"mo",null,to(this.renderElement(n))):null,i=D(B,"mo",null);return t.push(D(B,"msubsup",null,[i,n,r])),t.push.apply(t,q(this.renderElements(e[T.MmlBase].children))),D(B,"mrow",null,t)}},{key:"renderMmlGroupChar",value:function(e){var t="bot"===e.props.verticalJustification?"mover":"munder",t=this.renderContainerNS(e,B,t);return e.props.char&&t.appendChild(D(B,"mo",null,[e.props.char])),t}},{key:"renderMmlBar",value:function(e){var t=this.renderContainerNS(e,B,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}},{key:"renderMmlRun",value:function(e){var t=D(B,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}},{key:"renderMllList",value:function(e){var t=D(B,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);var r,n=k(this.renderChildren(e));try{for(n.s();!(r=n.n()).done;){var i=r.value;t.appendChild(D(B,"mtr",null,[D(B,"mtd",null,[i])]))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"renderStyleValues",value:function(e,t){for(var r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}},{key:"renderClass",value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}},{key:"findStyle",value:function(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}},{key:"numberingClass",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"tabStopClass",value:function(){return"".concat(this.className,"-tab-stop")}},{key:"styleToString",value:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i="".concat(e," {\r\n");for(r in t)r.startsWith("$")||(i+=" ".concat(r,": ").concat(t[r],";\r\n"));return n&&(i+=n),i+"}\r\n"}},{key:"numberingCounter",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"levelTextToContent",value:function(e,t,r,n){var i=this;return'"'.concat(e.replace(/%\d*/g,function(e){e=parseInt(e.substring(1),10)-1;return'"counter('.concat(i.numberingCounter(r,e),", ").concat(n,')"')})).concat(null!=(e={tab:"\\9",space:"\\a0"}[t])?e:"",'"')}},{key:"numFormatToCssValue",value:function(e){var t;return null!=(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])?t:e}},{key:"refreshTabStops",value:function(){var i=this;this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(function(){var e,t=function(e){var e=0<arguments.length&&void 0!==e?e:document.body,t=document.createElement("div"),r=(t.style.width="100pt",e.appendChild(t),100/t.offsetWidth);return e.removeChild(t),r}(),r=k(i.currentTabs);try{for(r.s();!(e=r.n()).done;){var n=e.value;!function(e,t,r,n){var n=3<arguments.length&&void 0!==n?n:.75,i=e.closest("p"),a=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=getComputedStyle(i),l=0<(null==t?void 0:t.length)?t.map(function(e){return{pos:Is(e.position),leader:e.leader,style:e.style}}).sort(function(e,t){return e.pos-t.pos}):[Bs],t=l[l.length-1],u=o.width*n,c=Is(r),h=t.pos+c;if(h<u)for(;h<u&&l.length<50;h+=c)l.push(_(_({},Bs),{},{pos:h}));var r=parseFloat(s.marginLeft),t=o.left+r,f=(a.left-t)*n;if(null!=(s=l.find(function(e){return"clear"!=e.style&&e.pos>f}))){var d,p,a=1;switch(a="right"==s.style||"center"==s.style?(p=(t=Array.from(i.querySelectorAll(".".concat(e.className)))).indexOf(e)+1,(d=document.createRange()).setStart(e,1),p<t.length?d.setEndBefore(t[p]):d.setEndAfter(i),t="center"==s.style?.5:1,i=(p=d.getBoundingClientRect()).left+t*p.width-(o.left-r),s.pos-i*n):s.pos-f,e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(a.toFixed(0),"pt"),s.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}(n.span,n.stops,i.defaultTabSize,t)}}catch(e){r.e(e)}finally{r.f()}},500))}}]),Fs);function Fs(e){n(this,Fs),this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.tasks=[],this.createElement=Us}function Us(e,t,r){return D(void 0,e,t,r)}function Ws(e,t,r){return D("http://www.w3.org/2000/svg",e,t,r)}function D(e,t,r,n){e=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(e,r),n&&Zs(e,n),e}function Hs(e){e.innerHTML=""}function Zs(t,e){e.forEach(function(e){return t.appendChild("string"==typeof e||e instanceof String?document.createTextNode(e):e)})}function qs(e){return Us("style",{innerHTML:e})}function Vs(e,t){e.appendChild(document.createComment(t))}var Xs={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1};function Gs(){return(Gs=$(P().mark(function e(n,i,a,o){var s;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;var t=n,r=o;return r=_(_({},Xs),r),_s.load(t,new Ms(r),r);case 2:return s=e.sent,e.next=5,function(){var i=$(P().mark(function e(t,r,n,i){var a,o;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=_(_({},Xs),i),o=new zs(window.document),e.abrupt("return",(o.render(t,r,n,a),Promise.allSettled(o.tasks.filter(function(e){return e}))));case 2:case"end":return e.stop()}},e)}));return function(e,t,r,n){return i.apply(this,arguments)}}()(s,i,a,o);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ks,Js={ignoreLastRenderedPageBreak:!1},Ys={getData:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?fetch(e,t).then(function(e){return 200!==e.status?Promise.reject(e):e}):Promise.resolve(e)},render:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e?(e instanceof Blob?r=e:e instanceof Response?r=e.blob():e instanceof ArrayBuffer&&(r=new Blob([e])),function(){return Gs.apply(this,arguments)}(r,t,t,_(_({},Js),n))):(t.innerHTML="",Promise.resolve())},getBlob:(Ks=$(P().mark(function e(t){var r;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t instanceof Blob?(r=t,e.next=11):e.next=4;break;case 4:if(t instanceof Response)return e.next=7,t.blob();e.next=10;break;case 7:r=e.sent,e.next=11;break;case 10:t instanceof ArrayBuffer&&(r=new Blob([t]));case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}},e)})),function(e){return Ks.apply(this,arguments)})};function $s(){return($s=$(P().mark(function e(i,a){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a&&(a instanceof ArrayBuffer&&(a=new Blob([a])),t=i,r=URL.createObjectURL(a),n=void 0,(n=document.createElement("a")).download=t,n.style.display="none",n.href=r,document.body.appendChild(n),n.click(),document.body.removeChild(n));case 1:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}i(tl,[{key:"createWrapper",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vue-office-docx",this.wrapperMain=document.createElement("div"),this.wrapperMain.className="vue-office-docx-main",this.wrapper.appendChild(this.wrapperMain),this.container.appendChild(this.wrapper)}},{key:"setOptions",value:function(e){this.options=e}},{key:"setRequestOptions",value:function(e){this.requestOptions=e}},{key:"preview",value:function(e){var i=this;return new Promise(function(r,n){var t;Ys.getData(e,i.requestOptions).then((t=$(P().mark(function e(t){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ys.getBlob(t);case 2:i.fileData=e.sent,Ys.render(i.fileData,i.wrapperMain,i.options).then(function(){r()}).catch(function(e){Ys.render("",i.wrapperMain,i.options),n(e)});case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})).catch(function(e){Ys.render("",i.wrapperMain,i.options),n(e)})})}},{key:"save",value:function(e){!function(){$s.apply(this,arguments)}(e||"js-preview-docx-".concat((new Date).getTime(),".docx"),this.fileData)}},{key:"destroy",value:function(){this.container.removeChild(this.wrapper),this.container=null,this.wrapper=null,this.wrapperMain=null,this.options=null,this.requestOptions=null}}]);var Qs=tl,el={init:function(e,t,r){return new Qs(e,t,r)}};function tl(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};n(this,tl),Z(this,"container",null),Z(this,"wrapper",null),Z(this,"wrapperMain",null),Z(this,"options",{}),Z(this,"requestOptions",{}),Z(this,"fileData",null),this.container=e,this.options=t,this.requestOptions=r,this.createWrapper()}}.call(this,nl(30),nl(313),nl(564).setImmediate,nl(550).Buffer)},854:function(e,t,r){e.exports=n;var c=r(571).EventEmitter;function n(){c.call(this)}r(559)(n,c),n.Readable=r(590),n.Writable=r(862),n.Duplex=r(863),n.Transform=r(864),n.PassThrough=r(865),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function l(e){if(u(),0===c.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",l),t.on("error",l),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},855:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},856:function(e,t){},857:function(e,t,r){"use strict";var a=r(591).Buffer,n=r(858);function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}e.exports=(i.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return a.alloc(0);for(var t,r=a.allocUnsafe(e>>>0),n=this.head,i=0;n;)t=i,n.data.copy(r,t),i+=n.data.length,n=n.next;return r},i),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},858:function(e,t){},859:function(e,t,r){!function(r){function n(e){try{if(!r.localStorage)return}catch(e){return}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){var r;return n("noDeprecation")?e:(r=!1,function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)})}}.call(this,r(30))},860:function(e,t,r){var n=r(550),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},861:function(e,t,r){"use strict";e.exports=i;var n=r(649),e=Object.create(r(565));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e.inherits=r(559),e.inherits(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},862:function(e,t,r){e.exports=r(592)},863:function(e,t,r){e.exports=r(553)},864:function(e,t,r){e.exports=r(590).Transform},865:function(e,t,r){e.exports=r(590).PassThrough},866:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},867:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},868:function(e,t,r){var n=r(869);"string"==typeof n&&(n=[[e.i,n,""]]);r(88)(n,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)},869:function(e,t,r){(t=r(87)(!1)).push([e.i,".vue-office-docx {\n height: 100%;\n overflow-y: auto;\n}\n.vue-office-docx .docx-wrapper > section.docx {\n margin-bottom: 5px;\n}\n@media screen and (max-width: 800px) {\n .vue-office-docx .docx-wrapper {\n padding: 10px;\n }\n .vue-office-docx .docx-wrapper > section.docx {\n padding: 10px!important;\n width: 100% !important;\n }\n}\n",""]),e.exports=t}}]);
1
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[33],{502:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.style,n=e.className,i=e.src,e=(e.setProps,e.loading_state),a=Object(s.useRef)(null);return Object(s.useEffect)(function(){var e;if(a.current)return(e=o.a.init(a.current,{})).preview(i).then(function(e){}).catch(function(e){}),function(){e.destroy()}},[i]),React.createElement("div",{id:t,className:Object(u.isString)(n)?n:n?Object(l.a)(n):void 0,style:r,ref:a,"data-dash-is-loading":e&&e.is_loading||void 0})}var o=r(853),s=r(1),l=(r(868),r(60)),u=r(23),r=r(211);(t.default=n).defaultProps=r.b,n.propTypes=r.c},553:function(e,t,r){"use strict";var n=r(572),i=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},e=(e.exports=c,Object.create(r(565))),a=(e.inherits=r(559),r(645)),o=r(592);e.inherits(c,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},559:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},565:function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(550).Buffer.isBuffer},571:function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,l=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(i,a){return new Promise(function(e,t){function r(e){i.removeListener(a,n),t(e)}function n(){"function"==typeof i.removeListener&&i.removeListener("error",r),e([].slice.call(arguments))}g(i,a,n,{once:!0}),"error"!==a&&"function"==typeof i.on&&g(i,"error",r,{once:!0})})},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,a;return u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener||r),i=e._events),a=i[t]),void 0===a?(a=i[t]=r,++e._eventsCount):("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),0<(i=c(e))&&a.length>i&&!a.warned&&(a.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=a.length,console)&&console.warn&&console.warn(n)),e}function f(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];{if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,i=new Array(n.length),a=0;a<i.length;++a)i[a]=n[a].listener||n[a];return i}return m(e,e.length)}}function p(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(r,n,i,a){if("function"==typeof r.on)a.once?r.once(n,i):r.on(n,i);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){a.once&&r.removeEventListener(n,e),i(t)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if((a=0<t.length?t[0]:a)instanceof Error)throw a;n=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw n.context=a,n}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)l(a,this,t);else for(var o=a.length,s=m(a,o),r=0;r<o;++r)l(s[r],this,t);return!0},o.prototype.on=o.prototype.addListener=function(e,t){return h(this,e,t,!1)},o.prototype.prependListener=function(e,t){return h(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var r,n,i,a,o;if(u(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;0<=a;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;if(0===i)r.shift();else{var s=r;var l=i;for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.removeAllListeners=function(e){var t,r;if(void 0!==(r=this._events))if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,i=Object.keys(r),a=0;a<i.length;++a)"removeListener"!==(n=i[a])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(a=t.length-1;0<=a;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return 0<this._eventsCount?i(this._events):[]}},572:function(e,t,r){"use strict";!function(s){void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){e.apply(null,i)})}}}:e.exports=s}.call(this,r(313))},590:function(e,t,r){(((t=e.exports=r(645)).Stream=t).Readable=t).Writable=r(592),t.Duplex=r(553),t.Transform=r(649),t.PassThrough=r(861)},591:function(e,t,r){var n=r(550),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},592:function(u,e,_){"use strict";!function(e,t,r){var m=_(572);function c(i){var a=this;this.next=null,this.entry=null,this.finish=function(){var e=a,t=i,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}u.exports=s;var a,n,h=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:m.nextTick,e=(s.WritableState=o,Object.create(_(565))),t=(e.inherits=_(559),{deprecate:_(859)}),i=_(646),g=_(591).Buffer,y=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},r=_(647);function b(){}function o(e,u){a=a||_(553),e=e||{};var t=u instanceof a,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,i=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,i,a,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(a=o).writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e?(a=t,n=s,e=e,i=l,--(r=o).pendingcb,n?(m.nextTick(i,e),m.nextTick(w,a,r),a._writableState.errorEmitted=!0,a.emit("error",e)):(i(e),a._writableState.errorEmitted=!0,a.emit("error",e),w(a,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?h(f,t,o,n,l):f(t,o,n,l))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function s(e){if(a=a||_(553),!(n.call(s,this)||this instanceof a))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),i.call(this)}function v(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function f(e,t,r,n){var i;r||(r=e,0===(i=t).length&&i.needDrain&&(i.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)(i[a]=r).isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,v(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,i=p(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),i}e.inherits(s,i),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===s&&e&&e._writableState instanceof o}})):n=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,i,a,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,g.isBuffer(p)||p instanceof y);return p&&!g.isBuffer(e)&&(h=e,e=g.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(a=e)?l=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,a=this,o=f,l=e,s=t,f=r,(e=p)||(i=l,n=s,i=o.objectMode||!1===o.decodeStrings||"string"!=typeof i?i:g.from(i,n),l!==i&&(e=!0,s="buffer",l=i)),n=o.objectMode?1:l.length,o.length+=n,(i=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(a,o,!1,n,l,s,f),d=i),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=r.destroy,s.prototype._undestroy=r.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}.call(this,_(313),_(564).setImmediate,_(30))},645:function(O,e,N){"use strict";!function(e,g){var y=N(572);O.exports=i;function b(e,t){return e.listeners(t).length}var a,o,v=N(855),r=(i.ReadableState=n,N(571).EventEmitter,N(646)),h=N(591).Buffer,f=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},e=Object.create(N(565)),t=(e.inherits=N(559),N(856)),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},s=N(857),t=N(647),l=(e.inherits(i,r),["error","close","destroy","pause","resume"]);function n(e,t){e=e||{};var t=t instanceof(a=a||N(553)),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||N(648).StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function i(e){if(a=a||N(553),!(this instanceof i))return new i(e);this._readableState=new n(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function u(e,t,r,n,i){var a,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,p(s))):(i||(u=c,s=l=t,a=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),a?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(i=t,t=h.from(i)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?d(e,c,t,!1):_(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function d(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&p(e)),_(e,t)}function c(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(m,e):m(e))}function m(e){w("emit readable"),e.emit("readable"),E(e)}function _(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){w("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++n}return t.length-=n,i}:function(e,t){var r=h.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0==(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++i}return t.length-=i,r})(e,r),i=n),i);var r,n,i}function P(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,y.nextTick(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function T(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(i.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),i.prototype.destroy=t.destroy,i.prototype._undestroy=t.undestroy,i.prototype._destroy=function(e,t){this.push(null),t(e)},i.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),u(this,e,t,!1,r)},i.prototype.unshift=function(e){return u(this,e,null,!0,!1)},i.prototype.isPaused=function(){return!1===this._readableState.flowing},i.prototype.setEncoding=function(e){return o=o||N(648).StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},i.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(w("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?P:p)(this),null):0===(e=c(e,r))&&r.ended?(0===r.length&&P(this),null):(t=r.needReadable,w("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&w("length less than watermark",t=!0),r.ended||r.reading?w("reading or ended",t=!1):t&&(w("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=c(n,r))),null===(t=0<e?C(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&P(this),null!==t&&this.emit("data",t),t)},i.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(n,e){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,w("pipe count=%d opts=%j",a.pipesCount,e);e=e&&!1===e.end||n===g.stdout||n===g.stderr?m:o;function o(){w("onend"),n.end()}a.endEmitted?y.nextTick(e):i.once("end",e),n.on("unpipe",function e(t,r){w("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",h),u=!0,!a.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=i;var t,r,s,l=function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,E(t))},u=(n.on("drain",l),!1),c=!1;function h(e){w("ondata"),(c=!1)!==n.write(e)||c||((1===a.pipesCount&&a.pipes===n||1<a.pipesCount&&-1!==T(a.pipes,n))&&!u&&(w("false write response, pause",a.awaitDrain),a.awaitDrain++,c=!0),i.pause())}function f(e){w("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){w("onfinish"),n.removeListener("close",d),m()}function m(){w("unpipe"),i.unpipe(n)}return i.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?v(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",i),a.flowing||(w("pipe resume"),i.resume()),n},i.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=T(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1})}return this},i.prototype.addListener=i.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&p(this):y.nextTick(S,this)),t},i.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,y.nextTick(x,e,t))),this},i.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var e,r=this,n=this._readableState,i=!1;for(e in t.on("end",function(){var e;w("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){w("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(i=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<l.length;a++)t.on(l[a],this.emit.bind(this,l[a]));return this._read=function(e){w("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(i.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),i._fromList=C}.call(this,N(30),N(313))},646:function(e,t,r){e.exports=r(571).EventEmitter},647:function(e,t,r){"use strict";var a=r(572);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,e)):a.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,a.nextTick(o,r,e)):a.nextTick(o,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},648:function(e,t,r){"use strict";var n=r(860).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==i&&i(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function c(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(t.StringDecoder=a).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},a.prototype.text=function(e,t){r=this,a=t;var r,n,i,a=(i=(o=e).length-1)<a?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-1),n):--i<a||-2===n?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-2),n):!(--i<a||-2===n)&&0<=(n=s(o[i]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var o=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},649:function(e,t,r){"use strict";e.exports=i;var n=r(553),e=Object.create(r(565));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}e.inherits=r(559),e.inherits(i,n),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},i.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},650:function(e,A,T){!function(o){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;A.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(i<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<i;o=n[++r])b(o)||!u(o)?a+=" "+o:a+=" "+l(o);return a},A.deprecate=function(e,t){var r;return void 0!==o&&!0===o.noDeprecation?e:void 0===o?function(){return A.deprecate(e,t).apply(this,arguments)}:(r=!1,function(){if(!r){if(o.throwDeprecation)throw new Error(t);o.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)})};var e,n={};function l(e,t){var r={seen:[],stylize:a};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&A._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),d(r,e,r.depth)}function i(e,t){t=l.styles[t];return t?"["+l.colors[t][0]+"m"+e+"["+l.colors[t][1]+"m":e}function a(e,t){return e}function d(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==A.inspect&&(!r.constructor||r.constructor.prototype!==r))return w(e=r.inspect(n,t))?e:d(t,e,n);e=t;var e,i=_(o=r)?e.stylize("undefined","undefined"):w(o)?(i="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(i,"string")):v(o)?e.stylize(""+o,"number"):y(o)?e.stylize(""+o,"boolean"):b(o)?e.stylize("null","null"):void 0;if(i)return i;var a,o=Object.keys(r),s=(a={},o.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return p(r);if(0===o.length){if(E(r))return c=r.name?": "+r.name:"",t.stylize("[Function"+c+"]","special");if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var l,u,c="",h=!1,f=["{","}"];return g(r)&&(h=!0,f=["[","]"]),E(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),o=h?function(t,r,n,i,e){for(var a=[],o=0,s=r.length;o<s;++o)C(r,String(o))?a.push(m(t,r,n,i,String(o),!0)):a.push("");return e.forEach(function(e){e.match(/^\d+$/)||a.push(m(t,r,n,i,e,!0))}),a}(t,r,n,s,o):o.map(function(e){return m(t,r,n,s,e,h)}),t.seen.pop(),l=c,u=f,60<(o=o).reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)?u[0]+(""===l?"":l+"\n ")+" "+o.join(",\n ")+" "+u[1]:u[0]+l+" "+o.join(", ")+" "+u[1]):f[0]+c+f[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i,a){var o,s;if((t=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(t.value)<0?-1<(s=b(r)?d(e,t.value,null):d(e,t.value,r-1)).indexOf("\n")&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(o)){if(a&&i.match(/^\d+$/))return s;o=(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function _(e){return void 0===e}function k(e){return u(e)&&"[object RegExp]"===r(e)}function u(e){return"object"==typeof e&&null!==e}function S(e){return u(e)&&"[object Date]"===r(e)}function x(e){return u(e)&&("[object Error]"===r(e)||e instanceof Error)}function E(e){return"function"==typeof e}function r(e){return Object.prototype.toString.call(e)}function c(e){return e<10?"0"+e.toString(10):e.toString(10)}A.debuglog=function(t){var r;return _(e)&&(e=o.env.NODE_DEBUG||""),t=t.toUpperCase(),n[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=o.pid,n[t]=function(){var e=A.format.apply(A,arguments);console.error("%s %d: %s",t,r,e)}):n[t]=function(){}),n[t]},(A.inspect=l).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},A.isArray=g,A.isBoolean=y,A.isNull=b,A.isNullOrUndefined=function(e){return null==e},A.isNumber=v,A.isString=w,A.isSymbol=function(e){return"symbol"==typeof e},A.isUndefined=_,A.isRegExp=k,A.isObject=u,A.isDate=S,A.isError=x,A.isFunction=E,A.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},A.isBuffer=T(866);var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}A.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[c(e.getHours()),c(e.getMinutes()),c(e.getSeconds())].join(":"),[e.getDate(),h[e.getMonth()],t].join(" ")),A.format.apply(A,arguments))},A.inherits=T(867),A._extend=function(e,t){if(t&&u(t))for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var f="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){var r;return e||((r=new Error("Promise was rejected with a falsy value")).reason=e,e=r),t(e)}A.promisify=function(a){if("function"!=typeof a)throw new TypeError('The "original" argument must be of type Function');if(f&&a[f]){var e;if("function"!=typeof(e=a[f]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var r,n,e=new Promise(function(e,t){r=e,n=t}),t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);t.push(function(e,t){e?n(e):r(t)});try{a.apply(this,t)}catch(e){n(e)}return e}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),f&&Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,t(a))},A.promisify.custom=f,A.callbackify=function(a){if("function"!=typeof a)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");function n(){return r.apply(i,arguments)}var i=this;a.apply(this,e).then(function(e){o.nextTick(n,null,e)},function(e){o.nextTick(P,e,n)})}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Object.defineProperties(e,t(a)),e}}.call(this,T(313))},853:function(e,rl,nl){"use strict";!function(e,M,j,L){nl.d(rl,"a",function(){return el});var I=nl(854),z=nl.n(I),I=nl(571),F=nl.n(I),I=nl(550),U=nl.n(I),I=nl(650),W=nl.n(I);function H(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach(function(e){Z(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Z(e,t,r){(t=ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function q(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function r(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=G(r),t=(e=n?(e=G(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==te(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){var r,n,i,a,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return i=!(n=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return n=e.done,e},e:function(e){i=!0,r=e},f:function(){try{n||null==o.return||o.return()}finally{if(i)throw r}}};if(Array.isArray(e)||(o=K(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){var r;if(e)return"string"==typeof e?J(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(e,t):void 0}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(){P=function(){return o};var l,o={},e=Object.prototype,u=e.hasOwnProperty,c=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(l){a=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i,a,o,s,t=t&&t.prototype instanceof g?t:g,t=Object.create(t.prototype),n=new E(n||[]);return c(t,"_invoke",{value:(i=e,a=r,o=n,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return{value:l,done:!0}}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){r=function e(t,r){var n=r.method,i=t.iterator[n];if(i===l)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=h(i,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,o);if(r){if(r===m)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===f)throw s=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=d;r=h(i,a,o);if("normal"===r.type){if(s=o.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(s=p,o.method="throw",o.arg=r.arg)}})}),t}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var f="suspendedStart",d="executing",p="completed",m={};function g(){}function y(){}function b(){}var t={},v=(a(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(C([]))),w=(v&&v!==e&&u.call(v,n)&&(t=v),b.prototype=g.prototype=Object.create(t));function _(e){["next","throw","return"].forEach(function(t){a(e,t,function(e){return this._invoke(t,e)})})}function k(o,s){var t;c(this,"_invoke",{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,i){var a,e=h(o[e],o,r);if("throw"!==e.type)return(r=(a=e.arg).value)&&"object"==te(r)&&u.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,n,i)},function(e){t("throw",e,n,i)}):s.resolve(r).then(function(e){a.value=e,n(a)},function(e){return t("throw",e,n,i)});i(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(te(t)+" is not iterable")}return c(w,"constructor",{value:y.prototype=b,configurable:!0}),c(b,"constructor",{value:y,configurable:!0}),y.displayName=a(b,i,"GeneratorFunction"),o.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a(e,i,"GeneratorFunction")),e.prototype=Object.create(w),e},o.awrap=function(e){return{__await:e}},_(k.prototype),a(k.prototype,r,function(){return this}),o.AsyncIterator=k,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new k(s(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(w),a(w,i,"Generator"),a(w,n,function(){return this}),a(w,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return a.type="throw",a.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=u.call(i,"catchLoc"),s=u.call(i,"finallyLoc");if(o&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var a=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(r=i.completion).type&&(n=r.arg,x(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),m}},o}function Y(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function $(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=s.apply(e,o);function i(e){Y(n,t,r,i,a,"next",e)}function a(e){Y(n,t,r,i,a,"throw",e)}i(void 0)})}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ee(n.key),n)}}function i(e,t,r){return t&&Q(e.prototype,t),r&&Q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e){e=function(e){if("object"!==te(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!==te(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"===te(e)?e:String(e)}function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}void 0===window.setImmediate&&(window.setImmediate=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout(function(){return e(r)})});var re,ne,ie,ae,oe,R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},I={},se={},d={},le={exports:{}},ue={exports:{}};function ce(){return re||(re=1,void 0===M||!M.version||0===M.version.indexOf("v0.")||0===M.version.indexOf("v1.")&&0!==M.version.indexOf("v1.8.")?ue.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return M.nextTick(e);case 2:return M.nextTick(function(){e.call(null,t)});case 3:return M.nextTick(function(){e.call(null,t,r)});case 4:return M.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return M.nextTick(function(){e.apply(null,i)})}}}:ue.exports=M),ue.exports}function he(){return oe?ae:(oe=1,ae=z.a)}var fe,de={exports:{}};function pe(){return fe||(fe=1,n=(r=de).exports,i=U.a,(a=i.Buffer).from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(e(i,n),n.Buffer=t),e(a,t),t.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},t.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},t.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},t.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}),de.exports;function e(e,t){for(var r in e)t[r]=e[r]}function t(e,t,r){return a(e,t,r)}var r,n,i,a}var me,a={};function ge(){return me||(me=1,a.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},a.isBoolean=function(e){return"boolean"==typeof e},a.isNull=function(e){return null===e},a.isNullOrUndefined=function(e){return null==e},a.isNumber=function(e){return"number"==typeof e},a.isString=function(e){return"string"==typeof e},a.isSymbol=function(e){return"symbol"==te(e)},a.isUndefined=function(e){return void 0===e},a.isRegExp=function(e){return"[object RegExp]"===t(e)},a.isObject=function(e){return"object"==te(e)&&null!==e},a.isDate=function(e){return"[object Date]"===t(e)},a.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},a.isFunction=function(e){return"function"==typeof e},a.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==te(e)||void 0===e},a.isBuffer=U.a.Buffer.isBuffer),a;function t(e){return Object.prototype.toString.call(e)}}var ye,be,ve={exports:{}},we={exports:{}};function _e(){if(!be){be=1;try{var e=nl(650);if("function"!=typeof e.inherits)throw"";ve.exports=e.inherits}catch(e){ve.exports=(ye||(ye=1,"function"==typeof Object.create?we.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:we.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}),we.exports)}}return ve.exports}var ke,Se,xe,Ee,Ce,Pe,Ae,Te,Oe,Ne={exports:{}};function Me(){if(xe)return Se;xe=1;var a=ce();function o(e,t){e.emit("error",t)}return Se={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,e)):a.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,a.nextTick(o,r,e)):a.nextTick(o,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Re(){if(!Ae){Ae=1;var m=ce();Pe=s;var a,c=!M.browser&&-1<["v0.10","v0.9."].indexOf(M.version.slice(0,5))?j:m.nextTick,e=(s.WritableState=o,Object.create(ge()));e.inherits=_e();var t,r={deprecate:Ce?Ee:(Ce=1,Ee=W.a.deprecate)},n=he(),g=pe().Buffer,y=(void 0!==R?R:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},i=Me();e.inherits(s,n),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(t=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!t.call(this,e)||this===s&&e&&e._writableState instanceof o}})):t=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,i,a,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,g.isBuffer(p)||p instanceof y);return p&&!g.isBuffer(e)&&(h=e,e=g.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(a=e)?l=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,a=this,o=f,l=e,s=t,f=r,(e=p)||(i=l,n=s,i=o.objectMode||!1===o.decodeStrings||"string"!=typeof i?i:g.from(i,n),l!==i&&(e=!0,s="buffer",l=i)),n=o.objectMode?1:l.length,o.length+=n,(i=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(a,o,!1,n,l,s,f),d=i),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=i.destroy,s.prototype._undestroy=i.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}return Pe;function h(i){var a=this;this.next=null,this.entry=null,this.finish=function(){var e=a,t=i,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}function b(){}function o(e,u){a=a||Be(),e=e||{};var t=u instanceof a,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,i=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,i,a,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(a=o).writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e?(a=t,n=s,e=e,i=l,--(r=o).pendingcb,n?(m.nextTick(i,e),m.nextTick(w,a,r),a._writableState.errorEmitted=!0,a.emit("error",e)):(i(e),a._writableState.errorEmitted=!0,a.emit("error",e),w(a,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?c(f,t,o,n,l):f(t,o,n,l))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}function s(e){if(a=a||Be(),!(t.call(s,this)||this instanceof a))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),n.call(this)}function v(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function f(e,t,r,n){var i;r||(r=e,0===(i=t).length&&i.needDrain&&(i.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var a=0,o=!0;r;)(i[a]=r).isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,v(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,i=p(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),i}}function Be(){if(!Oe){Oe=1;var r=ce(),e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(Te=l,Object.create(ge())),n=(t.inherits=_e(),qe()),i=Re();t.inherits(l,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];l.prototype[s]||(l.prototype[s]=i.prototype[s])}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}}return Te;function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(c,this)}function c(e){e.end()}}var De,je,Le,Ie,ze,Fe,Ue,We,He={};function Ze(){var r,n;return De||(De=1,r=pe().Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},(He.StringDecoder=e).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},e.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},e.prototype.text=function(e,t){r=this,a=t;var r,n,i,a=(i=(o=e).length-1)<a?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-1),n):--i<a||-2===n?0:0<=(n=s(o[i]))?(0<n&&(r.lastNeed=n-2),n):!(--i<a||-2===n)&&0<=(n=s(o[i]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var o=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},e.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}),He;function e(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||r.isEncoding!==n&&n(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=a,this.end=o,t=4;break;case"utf8":this.fillLast=i,t=4;break;case"base64":this.text=l,this.end=u,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function a(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function o(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function l(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}}function qe(){var g,a,y,b,r,h,f,e,v,o,s,t,l,n,u;return Le||(Le=1,g=ce(),je=d,y=function(){if(ie)return ne;ie=1;var t={}.toString;return ne=Array.isArray||function(e){return"[object Array]"==t.call(e)}}(),d.ReadableState=c,F.a.EventEmitter,b=function(e,t){return e.listeners(t).length},r=he(),h=pe().Buffer,f=(void 0!==R?R:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},(e=Object.create(ge())).inherits=_e(),t=W.a,v=void 0,v=t&&t.debuglog?t.debuglog("stream"):function(){},ke||(ke=1,t=Ne,l=pe().Buffer,n=W.a,t.exports=(i.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return l.alloc(0);for(var t,r=l.allocUnsafe(e>>>0),n=this.head,i=0;n;)t=i,n.data.copy(r,t),i+=n.data.length,n=n.next;return r},i),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})),s=Ne.exports,t=Me(),e.inherits(d,r),u=["error","close","destroy","pause","resume"],Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),d.prototype.destroy=t.destroy,d.prototype._undestroy=t.undestroy,d.prototype._destroy=function(e,t){this.push(null),t(e)},d.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),p(this,e,t,!1,r)},d.prototype.unshift=function(e){return p(this,e,null,!0,!1)},d.prototype.isPaused=function(){return!1===this._readableState.flowing},d.prototype.setEncoding=function(e){return o=o||Ze().StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},d.prototype.read=function(e){v("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(v("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?T:_)(this),null):0===(e=w(e,r))&&r.ended?(0===r.length&&T(this),null):(t=r.needReadable,v("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&v("length less than watermark",t=!0),r.ended||r.reading?v("reading or ended",t=!1):t&&(v("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=w(n,r))),null===(t=0<e?A(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&T(this),null!==t&&this.emit("data",t),t)},d.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},d.prototype.pipe=function(n,e){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,v("pipe count=%d opts=%j",a.pipesCount,e);e=e&&!1===e.end||n===M.stdout||n===M.stderr?m:o;function o(){v("onend"),n.end()}a.endEmitted?g.nextTick(e):i.once("end",e),n.on("unpipe",function e(t,r){v("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,v("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",h),u=!0,!a.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=i;var t,r,s,l=function(){var e=t._readableState;v("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,P(t))},u=(n.on("drain",l),!1),c=!1;function h(e){v("ondata"),(c=!1)!==n.write(e)||c||((1===a.pipesCount&&a.pipes===n||1<a.pipesCount&&-1!==N(a.pipes,n))&&!u&&(v("false write response, pause",a.awaitDrain),a.awaitDrain++,c=!0),i.pause())}function f(e){v("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){v("onfinish"),n.removeListener("close",d),m()}function m(){v("unpipe"),i.unpipe(n)}return i.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?y(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",i),a.flowing||(v("pipe resume"),i.resume()),n},d.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=N(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1})}return this},d.prototype.addListener=d.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&_(this):g.nextTick(E,this)),t},d.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(v("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,g.nextTick(C,e,t))),this},d.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},d.prototype.wrap=function(t){var e,r=this,n=this._readableState,i=!1;for(e in t.on("end",function(){var e;v("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){v("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(i=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<u.length;a++)t.on(u[a],this.emit.bind(this,u[a]));return this._read=function(e){v("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),d._fromList=A),je;function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}function c(e,t){e=e||{};var t=t instanceof(a=a||Be()),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||Ze().StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function d(e){if(a=a||Be(),!(this instanceof d))return new d(e);this._readableState=new c(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function p(e,t,r,n,i){var a,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,_(s))):(i||(u=c,s=l=t,a=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),a?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(i=t,t=h.from(i)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?m(e,c,t,!1):S(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function m(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),S(e,t)}function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g.nextTick(k,e):k(e))}function k(e){v("emit readable"),e.emit("readable"),P(e)}function S(e,t){t.readingMore||(t.readingMore=!0,g.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(v("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function E(e){v("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(v("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++n}return t.length-=n,i}:function(e,t){var r=h.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0==(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++i}return t.length-=i,r})(e,r),i=n),i);var r,n,i}function T(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,g.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}}function Ve(){var n,e;return ze||(ze=1,Ie=t,n=Be(),(e=Object.create(ge())).inherits=_e(),e.inherits(t,n),t.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},t.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},t.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},t.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},t.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}),Ie;function t(e){if(!(this instanceof t))return new t(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",r)}function r(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){i(r,e,t)}):i(this,null,null)}function i(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}}function Xe(){return We||(We=1,n=(e=le).exports,i=z.a,"disable"===M.env.READABLE_STREAM&&i?(e.exports=i,(n=e.exports=i.Readable).Readable=i.Readable,n.Writable=i.Writable,n.Duplex=i.Duplex,n.Transform=i.Transform,n.PassThrough=i.PassThrough,n.Stream=i):((n=e.exports=qe()).Stream=i||n,(n.Readable=n).Writable=Re(),n.Duplex=Be(),n.Transform=Ve(),n.PassThrough=(Ue||(Ue=1,Fe=t,r=Ve(),(e=Object.create(ge())).inherits=_e(),e.inherits(t,r),t.prototype._transform=function(e,t,r){r(null,e)}),Fe))),le.exports;function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}var r,e,n,i}if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,d.nodebuffer=void 0!==L,d.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)d.blob=!1;else{e=new ArrayBuffer(0);try{d.blob=0===new Blob([e],{type:"application/zip"}).size}catch(La){try{var Ge=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Ge.append(e),d.blob=0===Ge.getBlob("application/zip").size}catch(La){d.blob=!1}}}try{d.nodestream=!!Xe().Readable}catch(La){d.nodestream=!1}var Ke,Je={};function Ye(){var h,c,f;return Ke||(Ke=1,h=s(),c=d,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Je.encode=function(e){for(var t,r,n,i,a,o,s=[],l=0,u=e.length,c="string"!==h.getTypeOf(e);l<e.length;)o=u-l,n=c?(t=e[l++],r=l<u?e[l++]:0,l<u?e[l++]:0):(t=e.charCodeAt(l++),r=l<u?e.charCodeAt(l++):0,l<u?e.charCodeAt(l++):0),i=(3&t)<<4|r>>4,a=1<o?(15&r)<<2|n>>6:64,o=2<o?63&n:64,s.push(f.charAt(t>>2)+f.charAt(i)+f.charAt(a)+f.charAt(o));return s.join("")},Je.decode=function(e){var t,r,n,i,a,o=0,s=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var l,u=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===f.charAt(64)&&u--,e.charAt(e.length-2)===f.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=new(c.uint8array?Uint8Array:Array)(0|u);o<e.length;)t=f.indexOf(e.charAt(o++))<<2|(i=f.indexOf(e.charAt(o++)))>>4,r=(15&i)<<4|(i=f.indexOf(e.charAt(o++)))>>2,n=(3&i)<<6|(a=f.indexOf(e.charAt(o++))),l[s++]=t,64!==i&&(l[s++]=r),64!==a&&(l[s++]=n);return l}),Je}var $e,Qe,et,tt,rt,l,nt,it,at,ot,o,st,lt,ut,ct,ht,ft,dt,pt,mt={isNode:void 0!==L,newBufferFrom:function(e,t){if(L.from&&L.from!==Uint8Array.from)return L.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new L(e,t)},allocBuffer:function(e){return L.alloc?L.alloc(e):((e=new L(e)).fill(0),e)},isBuffer:function(e){return L.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}},gt={Promise:"undefined"!=typeof Promise?Promise:(u||(u=1,rt=function(){if(Qe)return $e;Qe=1;var n,e,t,r,i=R.MutationObserver||R.WebKitMutationObserver,a=M.browser?i?(e=0,i=new i(s),t=R.document.createTextNode(""),i.observe(t,{characterData:!0}),function(){t.data=e=++e%2}):R.setImmediate||void 0===R.MessageChannel?"document"in R&&"onreadystatechange"in R.document.createElement("script")?function(){var e=R.document.createElement("script");e.onreadystatechange=function(){s(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},R.document.documentElement.appendChild(e)}:function(){setTimeout(s,0)}:((r=new R.MessageChannel).port1.onmessage=s,function(){r.port2.postMessage(0)}):function(){M.nextTick(s)},o=[];function s(){var e,t;n=!0;for(var r=o.length;r;){for(t=o,o=[],e=-1;++e<r;)t[e]();r=o.length}n=!1}return $e=function(e){1!==o.push(e)||n||a()}}(),l={},nt=["REJECTED"],it=["FULFILLED"],at=["PENDING"],M.browser||(ot=["UNHANDLED"]),(et=bt).prototype.finally=function(t){var r;return"function"!=typeof t?this:(r=this.constructor,this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}))},bt.prototype.catch=function(e){return this.then(null,e)},bt.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===it||"function"!=typeof t&&this.state===nt?this:(r=new this.constructor(yt),M.browser||this.handled===ot&&(this.handled=null),this.state!==at?wt(r,this.state===it?e:t,this.outcome):this.queue.push(new vt(r,e,t)),r)},vt.prototype.callFulfilled=function(e){l.resolve(this.promise,e)},vt.prototype.otherCallFulfilled=function(e){wt(this.promise,this.onFulfilled,e)},vt.prototype.callRejected=function(e){l.reject(this.promise,e)},vt.prototype.otherCallRejected=function(e){wt(this.promise,this.onRejected,e)},l.resolve=function(e,t){var r=St(_t,t);if("error"===r.status)return l.reject(e,r.value);r=r.value;if(r)kt(e,r);else{e.state=it,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callFulfilled(t)}return e},l.reject=function(e,t){e.state=nt,e.outcome=t,M.browser||e.handled===ot&&rt(function(){e.handled===ot&&M.emit("unhandledRejection",t,e)});for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},bt.resolve=function(e){return e instanceof this?e:l.resolve(new this(yt),e)},bt.reject=function(e){var t=new this(yt);return l.reject(t,e)},bt.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),o=0,t=-1,s=new this(yt);++t<n;)!function(e,t){r.resolve(e).then(function(e){a[t]=e,++o!==n||i||(i=!0,l.resolve(s,a))},function(e){i||(i=!0,l.reject(s,e))})}(e[t],t);return s},bt.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,i=-1,a=new this(yt);++i<t;)n=e[i],this.resolve(n).then(function(e){r||(r=!0,l.resolve(a,e))},function(e){r||(r=!0,l.reject(a,e))});return a}),et)};function yt(){}function bt(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=at,this.queue=[],this.outcome=void 0,M.browser||(this.handled=ot),e!==yt&&kt(this,e)}function vt(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function wt(t,r,n){rt(function(){var e;try{e=r(n)}catch(e){return l.reject(t,e)}e===t?l.reject(t,new TypeError("Cannot resolve promise with itself")):l.resolve(t,e)})}function _t(e){var t=e&&e.then;if(e&&("object"==te(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function kt(t,e){var r=!1;function n(e){r||(r=!0,l.reject(t,e))}function i(e){r||(r=!0,l.resolve(t,e))}var a=St(function(){e(i,n)});"error"===a.status&&n(a.value)}function St(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}function s(){return tt||(tt=1,s=se,l=d,u=Ye(),n=mt,c=gt,s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},i={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)n.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a))):String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(e){return!1}}()}},s.applyFromCharCode=t,(a={}).string={string:e,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return a.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,n.allocBuffer(e.length))}},a.array={string:t,array:e,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},a.arraybuffer={string:function(e){return t(new Uint8Array(e))},array:function(e){return r(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},a.uint8array={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:e,nodebuffer:function(e){return n.newBufferFrom(e)}},a.nodebuffer={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return a.nodebuffer.uint8array(e).buffer},uint8array:function(e){return r(e,new Uint8Array(e.length))},nodebuffer:e},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return a[r][e](t)},s.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){for(var t,r="",n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},s.delay=function(e,t,r){j(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},s.prepareContent=function(r,e,n,i,a){return c.Promise.resolve(e).then(function(n){return l.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t=s.getTypeOf(e);return t?("arraybuffer"===t?e=s.transformTo("uint8array",e):"string"===t&&(a?e=u.decode(e):n&&!0!==i&&(e=o(t=e,new(l.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}),se;function e(e){return e}function o(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function t(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=i.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=i.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return i.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return i.stringifyByChar(e)}function r(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var s,l,u,n,c,i,a}function xt(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}function Et(e){delete ht[e]}function Ct(e){if(ft)setTimeout(Ct,0,e);else{var t=ht[e];if(t){ft=!0;try{var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(void 0,n)}}finally{Et(e),ft=!1}}}}(o="undefined"==typeof self?R:self).setImmediate||(ct=1,ft=!(ht={}),dt=o.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(o))&&e.setTimeout?e:o,pt="[object process]"==={}.toString.call(o.process)?function(e){M.nextTick(function(){Ct(e)})}:function(){var e,t;if(o.postMessage&&!o.importScripts)return e=!0,t=o.onmessage,o.onmessage=function(){e=!1},o.postMessage("","*"),o.onmessage=t,e}()?(ut="setImmediate$"+Math.random()+"$",Ge=function(e){e.source===o&&"string"==typeof e.data&&0===e.data.indexOf(ut)&&Ct(+e.data.slice(ut.length))},o.addEventListener?o.addEventListener("message",Ge,!1):o.attachEvent("onmessage",Ge),function(e){o.postMessage(ut+e,"*")}):o.MessageChannel?((lt=new MessageChannel).port1.onmessage=function(e){Ct(e.data)},function(e){lt.port2.postMessage(e)}):dt&&"onreadystatechange"in dt.createElement("script")?(st=dt.documentElement,function(e){var t=dt.createElement("script");t.onreadystatechange=function(){Ct(e),t.onreadystatechange=null,st.removeChild(t),t=null},st.appendChild(t)}):function(e){setTimeout(Ct,0,e)},e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return ht[ct]={callback:e,args:t},pt(ct),ct++},e.clearImmediate=Et),xt.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};for(var u=xt,Pt=I,At=s(),Tt=d,Ot=mt,Nt=u,Mt=new Array(256),Rt=0;Rt<256;Rt++)Mt[Rt]=252<=Rt?6:248<=Rt?5:240<=Rt?4:224<=Rt?3:192<=Rt?2:1;function Bt(){Nt.call(this,"utf-8 decode"),this.leftOver=null}function Dt(){Nt.call(this,"utf-8 encode")}Mt[254]=Mt[254]=1,Pt.utf8encode=function(e){if(Tt.nodebuffer)return Ot.newBufferFrom(e,"utf-8");for(var t,r,n,i,a=e,o=a.length,s=0,l=0;l<o;l++)55296==(64512&(r=a.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=a.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(Tt.uint8array?Uint8Array:Array)(s),l=i=0;i<s;l++)55296==(64512&(r=a.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=a.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},Pt.utf8decode=function(e){if(Tt.nodebuffer)return At.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,n=e=At.transformTo(Tt.uint8array?"uint8array":"array",e),i=n.length,a=new Array(2*i),o=0,s=0;s<i;)if((t=n[s++])<128)a[o++]=t;else if(4<(r=Mt[t]))a[o++]=65533,s+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&s<i;)t=t<<6|63&n[s++],r--;1<r?a[o++]=65533:t<65536?a[o++]=t:(t-=65536,a[o++]=55296|t>>10&1023,a[o++]=56320|1023&t)}return a.length!==o&&(a.subarray?a=a.subarray(0,o):a.length=o),At.applyFromCharCode(a)},At.inherits(Bt,Nt),Bt.prototype.processChunk=function(e){var t=At.transformTo(Tt.uint8array?"uint8array":"array",e.data),r=(this.leftOver&&this.leftOver.length&&(Tt.uint8array?(r=t,(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+Mt[e[r]]>t?r:t}(t)),n=t;r!==t.length&&(Tt.uint8array?(n=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(n=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:Pt.utf8decode(n),meta:e.meta})},Bt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Pt.Utf8DecodeWorker=Bt,At.inherits(Dt,Nt),Dt.prototype.processChunk=function(e){this.push({data:Pt.utf8encode(e.data),meta:e.meta})},Pt.Utf8EncodeWorker=Dt;var jt=u,Lt=s();function It(e){jt.call(this,"ConvertWorker to "+e),this.destType=e}Lt.inherits(It,jt),It.prototype.processChunk=function(e){this.push({data:Lt.transformTo(this.destType,e.data),meta:e.meta})};var zt,Ft,e=It,Ut=s(),Wt=e,Ht=u,Zt=Ye(),qt=gt,Vt=null;if(d.nodestream)try{Vt=function(){if(Ft)return zt;Ft=1;var i=Xe().Readable;function e(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}return s().inherits(e,i),e.prototype._read=function(){this._helper.resume()},zt=e}()}catch(La){}function Xt(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,Ut.checkSupport(n),this._worker=e.pipe(new Wt(n)),e.lock()}catch(e){this._worker=new Ht("error"),this._worker.error(e)}}Xt.prototype={accumulate:function(e){return s=this,l=e,new qt.Promise(function(t,r){var n=[],i=s._internalType,a=s._outputType,o=s._mimeType;s.on("data",function(e,t){n.push(e),l&&l(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return Ut.newBlob(Ut.transformTo("arraybuffer",t),r);case"base64":return Zt.encode(t);default:return Ut.transformTo(e,t)}}(a,function(e,t){for(var r=0,n=null,i=0,a=0;a<t.length;a++)i+=t[a].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(i),a=0;a<t.length;a++)n.set(t[a],r),r+=t[a].length;return n;case"nodebuffer":return L.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(i,n),o);t(e)}catch(e){r(e)}n=[]}).resume()});var s,l},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){Ut.delay(t,arguments,r)}),this},resume:function(){return Ut.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ut.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Vt(this,{objectMode:"nodebuffer"!==this._outputType},e)}};var e=Xt,Gt={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Kt=s(),Jt=u;function Yt(e){Jt.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=Kt.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}Kt.inherits(Yt,Jt),Yt.prototype.cleanUp=function(){Jt.prototype.cleanUp.call(this),this.data=null},Yt.prototype.resume=function(){return!!Jt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Kt.delay(this._tickAndRepeat,[],this)),!0)},Yt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(Kt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},Yt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})};function $t(e,t){return void 0!==e&&e.length?("string"!==Qt.getTypeOf(e)?function(e,t,r){var n=er,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}:function(e,t,r){var n=er,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e})(0|t,e,e.length):0}var c=Yt,Qt=s(),er=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}(),tr=u,rr=$t;function nr(){tr.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s().inherits(nr,tr),nr.prototype.processChunk=function(e){this.streamInfo.crc32=rr(e.data,this.streamInfo.crc32||0),this.push(e)};var ir=nr,ar=s(),or=u;function sr(e){or.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}ar.inherits(sr,or),sr.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),or.prototype.processChunk.call(this,e)};var lr=gt,ur=c,cr=ir,hr=sr;function fr(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}fr.prototype={getContentWorker:function(){var e=new ur(lr.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new hr("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new ur(lr.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},fr.createWorkerFrom=function(e,t,r){return e.pipe(new cr).pipe(new hr("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new hr("compressedSize")).withStreamInfo("compression",t)};function dr(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var ar=fr,pr=e,mr=c,gr=I,yr=ar,br=u;dr.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r,i=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);i&&!n&&(t=t.pipe(new gr.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new gr.Utf8DecodeWorker))}catch(e){(t=new br("error")).error(e)}return new pr(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof yr&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new gr.Utf8EncodeWorker)),yr.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof yr?this._data.getContentWorker():this._data instanceof br?this._data:new mr(this._data)}};for(var vr=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],wr=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},_r=0;_r<vr.length;_r++)dr.prototype[vr[_r]]=wr;var h,kr,Sr,c=dr,xr={},Er={},Cr={},Pr={},f=(h=Pr,f="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,h.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=te(i))throw new TypeError(i+"must be non-object");for(var a in i)t=i,r=a,Object.prototype.hasOwnProperty.call(t,r)&&(e[a]=i[a])}}return e},h.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},kr={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){for(var t,r,n,i=0,a=0,o=e.length;a<o;a++)i+=e[a].length;for(n=new Uint8Array(i),a=t=0,o=e.length;a<o;a++)r=e[a],n.set(r,t),t+=r.length;return n}},Sr={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}},h.setTyped=function(e){e?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,kr)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,Sr))},h.setTyped(f),{}),p={},m={},Ar=Pr;function Tr(e){for(var t=e.length;0<=--t;)e[t]=0}var Or=[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],Nr=[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],Mr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Br=new Array(576),Dr=(Tr(Br),new Array(60)),jr=(Tr(Dr),new Array(512)),Lr=(Tr(jr),new Array(256)),Ir=(Tr(Lr),new Array(29));Tr(Ir);var zr,Fr,Ur,Wr=new Array(30);function Hr(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function Zr(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function qr(e){return e<256?jr[e]:jr[256+(e>>>7)]}function Vr(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function g(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,Vr(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Xr(e,t,r){g(e,r[2*t],r[2*t+1])}function Gr(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function Kr(e,t,r){for(var n,i=new Array(16),a=0,o=1;o<=15;o++)i[o]=a=a+r[o-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=Gr(i[s]++,s))}}function Jr(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Yr(e){8<e.bi_valid?Vr(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $r(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function Qr(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&$r(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!$r(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function en(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0==n?Xr(e,i,t):(Xr(e,(a=Lr[i])+256+1,t),0!==(o=Or[a])&&g(e,i-=Ir[a],o),Xr(e,a=qr(--n),r),0!==(o=Nr[a])&&g(e,n-=Wr[a],o)),s<e.last_lit;);Xr(e,256,t)}function tn(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)Qr(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qr(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Qr(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,h,f,d,p,m=e,g=t.dyn_tree,y=t.max_code,b=t.stat_desc.static_tree,v=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,k=t.stat_desc.max_length,S=0,x=0;x<=15;x++)m.bl_count[x]=0;for(g[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(x=g[2*g[2*(h=m.heap[c])+1]+1]+1)>k&&(x=k,S++),g[2*h+1]=x,y<h||(m.bl_count[x]++,d=0,_<=h&&(d=w[h-_]),p=g[2*h],m.opt_len+=p*(x+d),v&&(m.static_len+=p*(b[2*h+1]+d)));if(0!==S){do{for(x=k-1;0===m.bl_count[x];)x--}while(m.bl_count[x]--,m.bl_count[x+1]+=2,m.bl_count[k]--,0<(S-=2));for(x=k;0!==x;x--)for(h=m.bl_count[x];0!==h;)(f=m.heap[--c])>y||(g[2*f+1]!==x&&(m.opt_len+=(x-g[2*f+1])*g[2*f],g[2*f+1]=x),h--)}Kr(a,u,e.bl_count)}function rn(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function nn(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)for(;Xr(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(Xr(e,i,e.bl_tree),s--),Xr(e,16,e.bl_tree),g(e,s-3,2)):s<=10?(Xr(e,17,e.bl_tree),g(e,s-3,3)):(Xr(e,18,e.bl_tree),g(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}Tr(Wr);var an=!1;function on(e,t,r,n){g(e,0+(n?1:0),3),n=t,t=r,Yr(r=e),Vr(r,t),Vr(r,~t),Ar.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}m._tr_init=function(e){if(!an){for(var t,r,n,i=new Array(16),a=0,o=0;o<28;o++)for(Ir[o]=a,t=0;t<1<<Or[o];t++)Lr[a++]=o;for(Lr[a-1]=o,o=n=0;o<16;o++)for(Wr[o]=n,t=0;t<1<<Nr[o];t++)jr[n++]=o;for(n>>=7;o<30;o++)for(Wr[o]=n<<7,t=0;t<1<<Nr[o]-7;t++)jr[256+n++]=o;for(r=0;r<=15;r++)i[r]=0;for(t=0;t<=143;)Br[2*t+1]=8,t++,i[8]++;for(;t<=255;)Br[2*t+1]=9,t++,i[9]++;for(;t<=279;)Br[2*t+1]=7,t++,i[7]++;for(;t<=287;)Br[2*t+1]=8,t++,i[8]++;for(Kr(Br,287,i),t=0;t<30;t++)Dr[2*t+1]=5,Dr[2*t]=Gr(t,5);zr=new Hr(Br,Or,257,286,15),Fr=new Hr(Dr,Nr,0,30,15),Ur=new Hr(new Array(0),Mr,0,19,7),an=!0}e.l_desc=new Zr(e.dyn_ltree,zr),e.d_desc=new Zr(e.dyn_dtree,Fr),e.bl_desc=new Zr(e.bl_tree,Ur),e.bi_buf=0,e.bi_valid=0,Jr(e)},m._tr_stored_block=on,m._tr_flush_block=function(e,t,r,n){var i,a,o,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),tn(e,e.l_desc),tn(e,e.d_desc),s=function(e){var t;for(rn(e,e.dyn_ltree,e.l_desc.max_code),rn(e,e.dyn_dtree,e.d_desc.max_code),tn(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*Rr[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t)on(e,t,r,n);else if(4===e.strategy||a===i)g(e,2+(n?1:0),3),en(e,Br,Dr);else{g(e,4+(n?1:0),3);var l=e,u=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,s+1);for(g(l,t-257,5),g(l,r-1,5),g(l,u-4,4),o=0;o<u;o++)g(l,l.bl_tree[2*Rr[o]+1],3);nn(l,l.dyn_ltree,t-1),nn(l,l.dyn_dtree,r-1),en(e,e.dyn_ltree,e.dyn_dtree)}Jr(e),n&&Yr(e)},m._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Lr[r]+256+1)]++,e.dyn_dtree[2*qr(t)]++),e.last_lit===e.lit_bufsize-1},m._tr_align=function(e){g(e,2,3),Xr(e,256,Br),16===(e=e).bi_valid?(Vr(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)};function sn(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}function ln(e,t,r,n){var i=cn,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}var un,cn=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}(),hn={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"},y=Pr,fn=m,dn=sn,pn=ln,mn=hn,gn=258,yn=262;function bn(e,t){return e.msg=mn[t],t}function vn(e){return(e<<1)-(4<e?9:0)}function wn(e){for(var t=e.length;0<=--t;)e[t]=0}function _n(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(y.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function b(e,t){fn._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_n(e.strm)}function v(e,t){e.pending_buf[e.pending++]=t}function kn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Sn(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-yn?e.strstart-(e.w_size-yn):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+gn,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){for(a+=2,r++;u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<f;);if(n=gn-(f-a),a=f-gn,o<n){if(e.match_start=t,s<=(o=n))break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function xn(e){var t,r,n,i,a,o,s,l,u,c=e.w_size;do{if(l=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-yn)){for(y.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;n=e.head[--t],e.head[t]=c<=n?n-c:0,--r;);for(t=r=c;n=e.prev[--t],e.prev[t]=c<=n?n-c:0,--r;);l+=c}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,s=e.strstart+e.lookahead,l=l,u=void 0,r=0===(u=(u=a.avail_in)>l?l:u)?0:(a.avail_in-=u,y.arraySet(o,a.input,a.next_in,u,s),1===a.state.wrap?a.adler=dn(a.adler,o,u,s):2===a.state.wrap&&(a.adler=pn(a.adler,o,u,s)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=r,3<=e.lookahead+e.insert)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+3-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<yn&&0!==e.strm.avail_in)}function En(e,t){for(var r,n;;){if(e.lookahead<yn){if(xn(e),e.lookahead<yn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-yn&&(e.match_length=Sn(e,r)),3<=e.match_length)if(n=fn._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function Cn(e,t){for(var r,n,i;;){if(e.lookahead<yn){if(xn(e),e.lookahead<yn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-yn&&(e.match_length=Sn(e,r),e.match_length<=5)&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=fn._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=fn._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=fn._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function Pn(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function An(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),wn(this.dyn_ltree),wn(this.dyn_dtree),wn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),wn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),wn(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 Tn(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,fn._tr_init(t),0):bn(e,-2)}function On(e){var t=Tn(e);return 0===t&&((e=e.state).window_size=2*e.w_size,wn(e.head),e.max_lazy_match=un[e.level].max_lazy,e.good_match=un[e.level].good_length,e.nice_match=un[e.level].nice_length,e.max_chain_length=un[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t}function Nn(e,t,r,n,i,a){if(!e)return-2;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||9<i||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return bn(e,-2);8===n&&(n=9);var s=new An;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new y.Buf8(2*s.w_size),s.head=new y.Buf16(s.hash_size),s.prev=new y.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new y.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,On(e)}un=[new Pn(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(xn(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-yn&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)}),new Pn(4,4,8,4,En),new Pn(4,5,16,8,En),new Pn(4,6,32,32,En),new Pn(4,4,16,16,Cn),new Pn(8,16,32,32,Cn),new Pn(8,16,128,128,Cn),new Pn(8,32,128,256,Cn),new Pn(32,128,258,1024,Cn),new Pn(32,258,258,4096,Cn)],p.deflateInit=function(e,t){return Nn(e,t,8,15,8,0)},p.deflateInit2=Nn,p.deflateReset=On,p.deflateResetKeep=Tn,p.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?-2:(e.state.gzhead=t,0)},p.deflate=function(e,t){var r,n,i,a;if(!e||!e.state||5<t||t<0)return e?bn(e,-2):-2;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return bn(e,0===e.avail_out?-5:-2);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status&&(2===n.wrap?(e.adler=0,v(n,31),v(n,139),v(n,8),n.gzhead?(v(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),v(n,255&n.gzhead.time),v(n,n.gzhead.time>>8&255),v(n,n.gzhead.time>>16&255),v(n,n.gzhead.time>>24&255),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(v(n,255&n.gzhead.extra.length),v(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=pn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(v(n,0),v(n,0),v(n,0),v(n,0),v(n,0),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,3),n.status=113)):(o=8+(n.w_bits-8<<4)<<8,o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,kn(n,o),0!==n.strstart&&(kn(n,e.adler>>>16),kn(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending!==n.pending_buf_size));)v(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,v(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),_n(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,v(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=pn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&_n(e),n.pending+2<=n.pending_buf_size&&(v(n,255&e.adler),v(n,e.adler>>8&255),e.adler=0,n.status=113)):n.status=113),0!==n.pending){if(_n(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&vn(t)<=vn(r)&&4!==t)return bn(e,-5);if(666===n.status&&0!==e.avail_in)return bn(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(xn(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=gn){if(xn(e),e.lookahead<=gn&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){for(a=e.strstart+gn;n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a;);e.match_length=gn-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=fn._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=fn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(n,t):un[n.level].func(n,t);if(3!==o&&4!==o||(n.status=666),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===o&&(1===t?fn._tr_align(n):5!==t&&(fn._tr_stored_block(n,0,0,!1),3===t)&&(wn(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),_n(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t||!(n.wrap<=0)&&(2===n.wrap?(v(n,255&e.adler),v(n,e.adler>>8&255),v(n,e.adler>>16&255),v(n,e.adler>>24&255),v(n,255&e.total_in),v(n,e.total_in>>8&255),v(n,e.total_in>>16&255),v(n,e.total_in>>24&255)):(kn(n,e.adler>>>16),kn(n,65535&e.adler)),_n(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?0:1},p.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?bn(e,-2):(e.state=null,113===t?bn(e,-3):0):-2},p.deflateSetDictionary=function(e,t){var r,n,i,a,o,s,l,u=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=dn(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===a&&(wn(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new y.Buf8(r.w_size),y.arraySet(l,t,u-r.w_size,r.w_size,0),t=l,u=r.w_size),l=e.avail_in,o=e.next_in,s=e.input,e.avail_in=u,e.next_in=0,e.input=t,xn(r);3<=r.lookahead;){for(n=r.strstart,i=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=2,xn(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=l,r.wrap=a,0},p.deflateInfo="pako deflate (from Nodeca project)";var m={},Mn=Pr,Rn=!0,Bn=!0;try{String.fromCharCode.apply(null,[0])}catch(La){Rn=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(La){Bn=!1}for(var Dn=new Mn.Buf8(256),jn=0;jn<256;jn++)Dn[jn]=252<=jn?6:248<=jn?5:240<=jn?4:224<=jn?3:192<=jn?2:1;function Ln(e,t){if(t<65534&&(e.subarray&&Bn||!e.subarray&&Rn))return String.fromCharCode.apply(null,Mn.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}Dn[254]=Dn[254]=1,m.string2buf=function(e){for(var t,r,n,i,a=e.length,o=0,s=0;s<a;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Mn.Buf8(o),s=i=0;i<o;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},m.buf2binstring=function(e){return Ln(e,e.length)},m.binstring2buf=function(e){for(var t=new Mn.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},m.buf2string=function(e,t){for(var r,n,i=t||e.length,a=new Array(2*i),o=0,s=0;s<i;)if((r=e[s++])<128)a[o++]=r;else if(4<(n=Dn[r]))a[o++]=65533,s+=n-1;else{for(r&=2===n?31:3===n?15:7;1<n&&s<i;)r=r<<6|63&e[s++],n--;1<n?a[o++]=65533:r<65536?a[o++]=r:(r-=65536,a[o++]=55296|r>>10&1023,a[o++]=56320|1023&r)}return Ln(a,o)},m.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+Dn[e[r]]>t?r:t};function In(){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}var zn=p,Fn=Pr,Un=m,Wn=hn,Hn=In,Zn=Object.prototype.toString;function qn(e){if(!(this instanceof qn))return new qn(e);this.options=Fn.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hn,this.strm.avail_out=0,zn.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(Wn[t]);if(e.header&&zn.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?Un.string2buf(e.dictionary):"[object ArrayBuffer]"===Zn.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=zn.deflateSetDictionary(this.strm,e)))throw new Error(Wn[t]);this._dict_set=!0}}function Vn(e,t){t=new qn(t);if(t.push(e,!0),t.err)throw t.msg||Wn[t.err];return t.result}qn.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=Un.string2buf(e):"[object ArrayBuffer]"===Zn.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Fn.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=zn.deflate(i,n))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(Un.buf2binstring(Fn.shrinkBuf(i.output,i.next_out))):this.onData(Fn.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==r);return 4===n?(r=zn.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(i.avail_out=0))},qn.prototype.onData=function(e){this.chunks.push(e)},qn.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Fn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},f.Deflate=qn,f.deflate=Vn,f.deflateRaw=function(e,t){return(t=t||{}).raw=!0,Vn(e,t)},f.gzip=function(e,t){return(t=t||{}).gzip=!0,Vn(e,t)};function Xn(e,t,r,n,i,a,o,s){for(var l,u,c,h,f,d,p,m,g,y=s.bits,b=0,v=0,w=0,_=0,k=0,S=0,x=0,E=0,C=0,P=0,A=null,T=0,O=new Gn.Buf16(16),N=new Gn.Buf16(16),M=null,R=0,b=0;b<=15;b++)O[b]=0;for(v=0;v<n;v++)O[t[r+v]]++;for(k=y,_=15;1<=_&&0===O[_];_--);if(_<k&&(k=_),0===_)i[a++]=20971520,i[a++]=20971520,s.bits=1;else{for(w=1;w<_&&0===O[w];w++);for(k<w&&(k=w),b=E=1;b<=15;b++)if((E=(E<<1)-O[b])<0)return-1;if(0<E&&(0===e||1!==_))return-1;for(N[1]=0,b=1;b<15;b++)N[b+1]=N[b]+O[b];for(v=0;v<n;v++)0!==t[r+v]&&(o[N[t[r+v]]++]=v);if(d=0===e?(A=M=o,19):1===e?(A=Kn,T-=257,M=Jn,R-=257,256):(A=Yn,M=$n,-1),b=w,f=a,x=v=P=0,c=-1,h=(C=1<<(S=k))-1,1===e&&852<C||2===e&&592<C)return 1;for(;;){for(g=o[v]<d?(m=0,o[v]):o[v]>d?(m=M[R+o[v]],A[T+o[v]]):(m=96,0),l=1<<(p=b-x),w=u=1<<S;i[f+(P>>x)+(u-=l)]=p<<24|m<<16|g|0,0!==u;);for(l=1<<b-1;P&l;)l>>=1;if(0!==l?P=(P&l-1)+l:P=0,v++,0==--O[b]){if(b===_)break;b=t[r+o[v]]}if(k<b&&(P&h)!==c){for(f+=w,E=1<<(S=b-(x=0===x?k:x));S+x<_&&!((E-=O[S+x])<=0);)S++,E<<=1;if(C+=1<<S,1===e&&852<C||2===e&&592<C)return 1;i[c=P&h]=k<<24|S<<16|f-a|0}}0!==P&&(i[f+P]=b-x<<24|64<<16|0),s.bits=k}return 0}var p={},w={},Gn=Pr,Kn=[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],Jn=[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],Yn=[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],$n=[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],Qn=Pr,ei=sn,ti=ln;function ri(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ni(){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 Qn.Buf16(320),this.work=new Qn.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ii(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Qn.Buf32(852),t.distcode=t.distdyn=new Qn.Buf32(592),t.sane=1,t.back=-1,0):-2}function ai(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ii(e)):-2}function oi(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ai(e))}function si(e,t){var r;return e?(r=new ni,(e.state=r).window=null,0!==(r=oi(e,t))&&(e.state=null),r):-2}var li,ui,ci=!0;function hi(e,t,r,n){var i,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new Qn.Buf8(e.wsize)),n>=e.wsize?(Qn.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>n&&(i=n),Qn.arraySet(e.window,t,r-n,i,e.wnext),(n-=i)?(Qn.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0}w.inflateReset=ai,w.inflateReset2=oi,w.inflateResetKeep=ii,w.inflateInit=function(e){return si(e,15)},w.inflateInit2=si,w.inflate=function(e,j){var t,r,L,n,i,a,o,s,l,I,u,c,z,F,h,f,d,p,U,W,m,g,y,b,v=0,w=new Qn.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(t=e.state).mode&&(t.mode=13),i=e.next_out,L=e.output,o=e.avail_out,n=e.next_in,r=e.input,a=e.avail_in,s=t.hold,l=t.bits,I=a,u=o,g=0;e:for(;;)switch(t.mode){case 1:if(0===t.wrap)t.mode=13;else{for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(2&t.wrap&&35615===s)w[t.check=0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0),l=s=0,t.mode=2;else if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&s)<<8)+(s>>8))%31)e.msg="incorrect header check",t.mode=30;else if(8!=(15&s))e.msg="unknown compression method",t.mode=30;else{if(l-=4,m=8+(15&(s>>>=4)),0===t.wbits)t.wbits=m;else if(m>t.wbits){e.msg="invalid window size",t.mode=30;break}t.dmax=1<<m,e.adler=t.check=1,t.mode=512&s?10:12,l=s=0}}break;case 2:for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(t.flags=s,8!=(255&t.flags)){e.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){e.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=s>>8&1),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0,t.mode=3;case 3:for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.head&&(t.head.time=s),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,w[2]=s>>>16&255,w[3]=s>>>24&255,t.check=ti(t.check,w,4,0)),l=s=0,t.mode=4;case 4:for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.head&&(t.head.xflags=255&s,t.head.os=s>>8),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0,t.mode=5;case 5:if(1024&t.flags){for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.length=s,t.head&&(t.head.extra_len=s),512&t.flags&&(w[0]=255&s,w[1]=s>>>8&255,t.check=ti(t.check,w,2,0)),l=s=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((c=(c=t.length)>a?a:c)&&(t.head&&(m=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),Qn.arraySet(t.head.extra,r,n,c,m)),512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,t.length-=c),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===a)break e;for(c=0;m=r[n+c++],t.head&&m&&t.length<65536&&(t.head.name+=String.fromCharCode(m)),m&&c<a;);if(512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,m)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(0===a)break e;for(c=0;m=r[n+c++],t.head&&m&&t.length<65536&&(t.head.comment+=String.fromCharCode(m)),m&&c<a;);if(512&t.flags&&(t.check=ti(t.check,r,c,n)),a-=c,n+=c,m)break e}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;l<16;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s!==(65535&t.check)){e.msg="header crc mismatch",t.mode=30;break}l=s=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=12;break;case 10:for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}e.adler=t.check=ri(s),l=s=0,t.mode=11;case 11:if(0===t.havedict)return e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,2;e.adler=t.check=1,t.mode=12;case 12:if(5===j||6===j)break e;case 13:if(t.last)s>>>=7&l,l-=7&l,t.mode=27;else{for(;l<3;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}switch(t.last=1&s,--l,3&(s>>>=1)){case 0:t.mode=14;break;case 1:_=k=void 0;var _,k=t;if(ci){for(li=new Qn.Buf32(512),ui=new Qn.Buf32(32),_=0;_<144;)k.lens[_++]=8;for(;_<256;)k.lens[_++]=9;for(;_<280;)k.lens[_++]=7;for(;_<288;)k.lens[_++]=8;for(Xn(1,k.lens,0,288,li,0,k.work,{bits:9}),_=0;_<32;)k.lens[_++]=5;Xn(2,k.lens,0,32,ui,0,k.work,{bits:5}),ci=!1}if(k.lencode=li,k.lenbits=9,k.distcode=ui,k.distbits=5,t.mode=20,6!==j)break;s>>>=2,l-=2;break e;case 2:t.mode=17;break;case 3:e.msg="invalid block type",t.mode=30}s>>>=2,l-=2}break;case 14:for(s>>>=7&l,l-=7&l;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if((65535&s)!=(s>>>16^65535)){e.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&s,l=s=0,t.mode=15,6===j)break e;case 15:t.mode=16;case 16:if(c=t.length){if(0===(c=o<(c=a<c?a:c)?o:c))break e;Qn.arraySet(L,r,n,c,i),a-=c,n+=c,o-=c,i+=c,t.length-=c}else t.mode=12;break;case 17:for(;l<14;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(t.nlen=257+(31&s),s>>>=5,l-=5,t.ndist=1+(31&s),s>>>=5,l-=5,t.ncode=4+(15&s),s>>>=4,l-=4,286<t.nlen||30<t.ndist){e.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;l<3;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.lens[H[t.have++]]=7&s,s>>>=3,l-=3}for(;t.have<19;)t.lens[H[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,y={bits:t.lenbits},g=Xn(0,t.lens,0,19,t.lencode,0,t.work,y),t.lenbits=y.bits,g){e.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;f=(v=t.lencode[s&(1<<t.lenbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(d<16)s>>>=h,l-=h,t.lens[t.have++]=d;else{if(16===d){for(b=h+2;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s>>>=h,l-=h,0===t.have){e.msg="invalid bit length repeat",t.mode=30;break}m=t.lens[t.have-1],c=3+(3&s),s>>>=2,l-=2}else if(17===d){for(b=h+3;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}m=0,c=3+(7&(s>>>=h)),s>>>=3,l=l-h-3}else{for(b=h+7;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}m=0,c=11+(127&(s>>>=h)),s>>>=7,l=l-h-7}if(t.have+c>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=30;break}for(;c--;)t.lens[t.have++]=m}}if(30===t.mode)break;if(0===t.lens[256]){e.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,y={bits:t.lenbits},g=Xn(1,t.lens,0,t.nlen,t.lencode,0,t.work,y),t.lenbits=y.bits,g){e.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,y={bits:t.distbits},g=Xn(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,y),t.distbits=y.bits,g){e.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===j)break e;case 20:t.mode=21;case 21:if(6<=a&&258<=o){e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,R=q=A=P=C=E=x=S=ne=re=te=ee=D=B=Q=$=Y=J=K=G=X=M=V=N=O=void 0;var S,x,E,C,P,A,T=e,Z=u,O=T.state,N=T.next_in,q=T.input,V=N+(T.avail_in-5),M=T.next_out,R=T.output,X=M-(Z-T.avail_out),G=M+(T.avail_out-257),K=O.dmax,J=O.wsize,Y=O.whave,$=O.wnext,Q=O.window,B=O.hold,D=O.bits,ee=O.lencode,te=O.distcode,re=(1<<O.lenbits)-1,ne=(1<<O.distbits)-1;t:do{for(D<15&&(B+=q[N++]<<D,D+=8,B+=q[N++]<<D,D+=8),S=ee[B&re];;){if(B>>>=x=S>>>24,D-=x,0==(x=S>>>16&255))R[M++]=65535&S;else{if(!(16&x)){if(0==(64&x)){S=ee[(65535&S)+(B&(1<<x)-1)];continue}if(32&x){O.mode=12;break t}T.msg="invalid literal/length code",O.mode=30;break t}for(E=65535&S,(x&=15)&&(D<x&&(B+=q[N++]<<D,D+=8),E+=B&(1<<x)-1,B>>>=x,D-=x),D<15&&(B+=q[N++]<<D,D+=8,B+=q[N++]<<D,D+=8),S=te[B&ne];;){if(B>>>=x=S>>>24,D-=x,!(16&(x=S>>>16&255))){if(0==(64&x)){S=te[(65535&S)+(B&(1<<x)-1)];continue}T.msg="invalid distance code",O.mode=30;break t}if(C=65535&S,D<(x&=15)&&(B+=q[N++]<<D,(D+=8)<x)&&(B+=q[N++]<<D,D+=8),(C+=B&(1<<x)-1)>K){T.msg="invalid distance too far back",O.mode=30;break t}if(B>>>=x,D-=x,C>(x=M-X)){if((x=C-x)>Y&&O.sane){T.msg="invalid distance too far back",O.mode=30;break t}if(A=Q,(P=0)===$){if(P+=J-x,x<E){for(E-=x;R[M++]=Q[P++],--x;);P=M-C,A=R}}else if($<x){if(P+=J+$-x,(x-=$)<E){for(E-=x;R[M++]=Q[P++],--x;);if(P=0,$<E){for(E-=x=$;R[M++]=Q[P++],--x;);P=M-C,A=R}}}else if(P+=$-x,x<E){for(E-=x;R[M++]=Q[P++],--x;);P=M-C,A=R}for(;2<E;)R[M++]=A[P++],R[M++]=A[P++],R[M++]=A[P++],E-=3;E&&(R[M++]=A[P++],1<E)&&(R[M++]=A[P++])}else{for(P=M-C;R[M++]=R[P++],R[M++]=R[P++],R[M++]=R[P++],2<(E-=3););E&&(R[M++]=R[P++],1<E)&&(R[M++]=R[P++])}break}}break}}while(N<V&&M<G);N-=E=D>>3,B&=(1<<(D-=E<<3))-1,T.next_in=N,T.next_out=M,T.avail_in=N<V?V-N+5:5-(N-V),T.avail_out=M<G?G-M+257:257-(M-G),O.hold=B,O.bits=D,i=e.next_out,L=e.output,o=e.avail_out,n=e.next_in,r=e.input,a=e.avail_in,s=t.hold,l=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;f=(v=t.lencode[s&(1<<t.lenbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(f&&0==(240&f)){for(p=h,U=f,W=d;f=(v=t.lencode[W+((s&(1<<p+U)-1)>>p)])>>>16&255,d=65535&v,!(p+(h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}s>>>=p,l-=p,t.back+=p}if(s>>>=h,l-=h,t.back+=h,t.length=d,0===f){t.mode=26;break}if(32&f){t.back=-1,t.mode=12;break}if(64&f){e.msg="invalid literal/length code",t.mode=30;break}t.extra=15&f,t.mode=22;case 22:if(t.extra){for(b=t.extra;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.length+=s&(1<<t.extra)-1,s>>>=t.extra,l-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;f=(v=t.distcode[s&(1<<t.distbits)-1])>>>16&255,d=65535&v,!((h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(0==(240&f)){for(p=h,U=f,W=d;f=(v=t.distcode[W+((s&(1<<p+U)-1)>>p)])>>>16&255,d=65535&v,!(p+(h=v>>>24)<=l);){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}s>>>=p,l-=p,t.back+=p}if(s>>>=h,l-=h,t.back+=h,64&f){e.msg="invalid distance code",t.mode=30;break}t.offset=d,t.extra=15&f,t.mode=24;case 24:if(t.extra){for(b=t.extra;l<b;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}t.offset+=s&(1<<t.extra)-1,s>>>=t.extra,l-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===o)break e;if(t.offset>(c=u-o)){if((c=t.offset-c)>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=30;break}z=c>t.wnext?(c-=t.wnext,t.wsize-c):t.wnext-c,c>t.length&&(c=t.length),F=t.window}else F=L,z=i-t.offset,c=t.length;for(o-=c=o<c?o:c,t.length-=c;L[i++]=F[z++],--c;);0===t.length&&(t.mode=21);break;case 26:if(0===o)break e;L[i++]=t.length,o--,t.mode=21;break;case 27:if(t.wrap){for(;l<32;){if(0===a)break e;a--,s|=r[n++]<<l,l+=8}if(u-=o,e.total_out+=u,t.total+=u,u&&(e.adler=t.check=(t.flags?ti:ei)(t.check,L,u,i-u)),u=o,(t.flags?s:ri(s))!==t.check){e.msg="incorrect data check",t.mode=30;break}l=s=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;l<32;){if(0===a)break e;a--,s+=r[n++]<<l,l+=8}if(s!==(4294967295&t.total)){e.msg="incorrect length check",t.mode=30;break}l=s=0}t.mode=29;case 29:g=1;break e;case 30:g=-3;break e;case 31:return-4;default:return-2}return e.next_out=i,e.avail_out=o,e.next_in=n,e.avail_in=a,t.hold=s,t.bits=l,(t.wsize||u!==e.avail_out&&t.mode<30&&(t.mode<27||4!==j))&&hi(e,e.output,e.next_out,u-e.avail_out),I-=e.avail_in,u-=e.avail_out,e.total_in+=I,e.total_out+=u,t.total+=u,t.wrap&&u&&(e.adler=t.check=(t.flags?ti:ei)(t.check,L,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(12===t.mode?128:0)+(20===t.mode||15===t.mode?256:0),g=(0==I&&0===u||4===j)&&0===g?-5:g},w.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):-2},w.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?-2:((e.head=t).done=!1,0)},w.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&ei(1,t,n,0)!==r.check?-3:hi(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0)},w.inflateInfo="pako inflate (from Nodeca project)";function fi(){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}var di={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},pi=w,mi=Pr,gi=m,S=di,yi=hn,bi=In,vi=Object.prototype.toString;function wi(e){if(!(this instanceof wi))return new wi(e);this.options=mi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bi,this.strm.avail_out=0,pi.inflateInit2(this.strm,t.windowBits));if(e!==S.Z_OK)throw new Error(yi[e]);if(this.header=new fi,pi.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=gi.string2buf(t.dictionary):"[object ArrayBuffer]"===vi.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=pi.inflateSetDictionary(this.strm,t.dictionary))!==S.Z_OK)throw new Error(yi[e])}function _i(e,t){t=new wi(t);if(t.push(e,!0),t.err)throw t.msg||yi[t.err];return t.result}wi.prototype.push=function(e,t){var r,n,i,a,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?S.Z_FINISH:S.Z_NO_FLUSH,"string"==typeof e?s.input=gi.binstring2buf(e):"[object ArrayBuffer]"===vi.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new mi.Buf8(l),s.next_out=0,s.avail_out=l),(r=(r=pi.inflate(s,S.Z_NO_FLUSH))===S.Z_NEED_DICT&&u?pi.inflateSetDictionary(this.strm,u):r)===S.Z_BUF_ERROR&&!0===c&&(r=S.Z_OK,c=!1),r!==S.Z_STREAM_END&&r!==S.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!s.next_out||0!==s.avail_out&&r!==S.Z_STREAM_END&&(0!==s.avail_in||n!==S.Z_FINISH&&n!==S.Z_SYNC_FLUSH)||("string"===this.options.to?(i=gi.utf8border(s.output,s.next_out),a=s.next_out-i,o=gi.buf2string(s.output,i),s.next_out=a,s.avail_out=l-a,a&&mi.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(mi.shrinkBuf(s.output,s.next_out))),0===s.avail_in&&0===s.avail_out&&(c=!0),(0<s.avail_in||0===s.avail_out)&&r!==S.Z_STREAM_END);return(n=r===S.Z_STREAM_END?S.Z_FINISH:n)===S.Z_FINISH?(r=pi.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===S.Z_OK):n!==S.Z_SYNC_FLUSH||(this.onEnd(S.Z_OK),!(s.avail_out=0))},wi.prototype.onData=function(e){this.chunks.push(e)},wi.prototype.onEnd=function(e){e===S.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=mi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},p.Inflate=wi,p.inflate=_i,p.inflateRaw=function(e,t){return(t=t||{}).raw=!0,_i(e,t)},p.ungzip=_i;var w={},m=((0,Pr.assign)(w,f,p,di),"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array),ki=w,Si=s(),xi=u,Ei=m?"uint8array":"array";function Ci(e,t){xi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}Cr.magic="\b\0",Si.inherits(Ci,xi),Ci.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(Si.transformTo(Ei,e.data),!1)},Ci.prototype.flush=function(){xi.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Ci.prototype.cleanUp=function(){xi.prototype.cleanUp.call(this),this._pako=null},Ci.prototype._createPako=function(){this._pako=new ki[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Cr.compressWorker=function(e){return new Ci("Deflate",e)},Cr.uncompressWorker=function(){return new Ci("Inflate",{})};function x(e,t){for(var r="",n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function Pi(e,t,r,n,i,a){var o=e.file,s=e.compression,l=a!==Ni.utf8encode,u=Ti.transformTo("string",a(o.name)),c=Ti.transformTo("string",Ni.utf8encode(o.name)),h=o.comment,a=Ti.transformTo("string",a(h)),f=Ti.transformTo("string",Ni.utf8encode(h)),d=c.length!==o.name.length,h=f.length!==h.length,p="",m=o.dir,g=o.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(t&&!r||(y.crc32=e.crc32,y.compressedSize=e.compressedSize,y.uncompressedSize=e.uncompressedSize),0);return t&&(r|=8),l||!d&&!h||(r|=2048),t=e=0,m&&(e|=16),"UNIX"===i?(t=798,e|=(65535&((l=o.unixPermissions)?l:m?16893:33204))<<16):(t=20,e|=63&(o.dosPermissions||0)),i=g.getUTCHours(),i=(i=((i<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,l=g.getUTCFullYear()-1980,l=(l=((l<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(m=x(1,1)+x(Mi(u),4)+c,p+="up"+x(m.length,2)+m),h&&(o=x(1,1)+x(Mi(a),4)+f,p+="uc"+x(o.length,2)+o),g="",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+="\n\0")+x(r,2))+s.magic)+x(i,2))+x(l,2))+x(y.crc32,4))+x(y.compressedSize,4))+x(y.uncompressedSize,4))+x(u.length,2))+x(p.length,2),{fileRecord:Ri.LOCAL_FILE_HEADER+g+u+p,dirRecord:Ri.CENTRAL_FILE_HEADER+x(t,2)+g+x(a.length,2)+"\0\0\0\0"+x(e,4)+x(n,4)+u+p+a}}var Ai=u,hn=(Er.STORE={magic:"\0\0",compressWorker:function(){return new Ai("STORE compression")},uncompressWorker:function(){return new Ai("STORE decompression")}},Er.DEFLATE=Cr,{LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"}),Ti=s(),Oi=u,Ni=I,Mi=$t,Ri=hn;function Bi(e,t,r,n){Oi.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Ti.inherits(Bi,Oi),Bi.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Oi.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},Bi.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=Pi(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},Bi.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=Pi(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Ri.DATA_DESCRIPTOR+x((t=e).crc32,4)+x(t.compressedSize,4)+x(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Bi.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,r=function(e,t,r,n,i){i=Ti.transformTo("string",i(n));return Ri.CENTRAL_DIRECTORY_END+"\0\0\0\0"+x(e,2)+x(e,2)+x(t,4)+x(r,4)+x(i.length,2)+i}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},Bi.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Bi.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},Bi.prototype.resume=function(){return!!Oi.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Bi.prototype.error=function(e){var t=this._sources;if(!Oi.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},Bi.prototype.lock=function(){Oi.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};var Di=Er,ji=Bi,Pr=(xr.generateWorker=function(e,o,t){var s=new ji(o.streamFiles,t,o.platform,o.encodeFileName),l=0;try{e.forEach(function(e,t){l++;var r=function(e,t){e=e||t,t=Di[e];if(t)return t;throw new Error(e+" is not a valid compression method !")}(t.options.compression,o.compression),n=t.options.compressionOptions||o.compressionOptions||{},i=t.dir,a=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:i,date:a,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=l}catch(e){s.error(e)}return s},s()),Li=u;function Ii(e,t){Li.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Pr.inherits(Ii,Li),Ii.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},Ii.prototype.pause=function(){return!!Li.prototype.pause.call(this)&&(this._stream.pause(),!0)},Ii.prototype.resume=function(){return!!Li.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};function zi(e,t){return t=void 0!==t?t:Zi.createFolders,e=Yi(e),this.files[e]||Ji.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var f=Ii,Fi=I,Ui=s(),Wi=u,Hi=e,Zi=Gt,qi=ar,Vi=c,Xi=xr,Gi=mt,Ki=f,Ji=function(e,t,r){var n,i=Ui.getTypeOf(t),a=Ui.extend(r||{},Zi),o=(a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=Yi(e)),a.createFolders&&(n=0<(o=(n="/"===(n=e).slice(-1)?n.substring(0,n.length-1):n).lastIndexOf("/"))?n.substring(0,o):"")&&zi.call(this,n,!0),"string"===i&&!1===a.binary&&!1===a.base64),i=(r&&void 0!==r.binary||(a.binary=!o),(t instanceof qi&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE"),n=t instanceof qi||t instanceof Wi?t:Gi.isNode&&Gi.isStream(t)?new Ki(e,t):Ui.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64),new Vi(e,n,a));this.files[e]=i},Yi=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function $i(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var p={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){var n,i;return 1===arguments.length?$i(e)?(n=e,this.filter(function(e,t){return!t.dir&&n.test(e)})):(i=this.files[this.root+e])&&!i.dir?i:null:(e=this.root+e,Ji.call(this,e,t,r),this)},folder:function(r){var e,t;return r?$i(r)?this.filter(function(e,t){return t.dir&&r.test(e)}):(e=this.root+r,e=zi.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={};try{if((t=Ui.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Fi.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");Ui.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",n=Xi.generateWorker(this,t,r)}catch(e){(n=new Wi("error")).error(e)}return new Hi(n,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}},Qi=s();function ea(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}ea.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return Qi.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}};var di=ea,ta=di;function ra(e){ta.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}s().inherits(ra,ta),ra.prototype.byteAt=function(e){return this.data[this.zero+e]},ra.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},ra.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),e=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&e===i[3]},ra.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)};var w=ra,na=di;function ia(e){na.call(this,e)}s().inherits(ia,na),ia.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},ia.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},ia.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},ia.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var m=ia,aa=w;function oa(e){aa.call(this,e)}s().inherits(oa,aa),oa.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)};var Cr=oa,sa=Cr;function la(e){sa.call(this,e)}s().inherits(la,sa),la.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};function ua(e){var t=ca.getTypeOf(e);return ca.checkSupport(t),"string"!==t||ha.uint8array?"nodebuffer"===t?new pa(e):ha.uint8array?new ma(ca.transformTo("uint8array",e)):new fa(ca.transformTo("array",e)):new da(e)}var Pr=la,ca=s(),ha=d,fa=w,da=m,pa=Pr,ma=Cr,ga=ua,ya=s(),ba=ar,va=$t,wa=I,_a=Er,ka=d;function Sa(e,t){this.options=e,this.loadOptions=t}Sa.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in _a)if(Object.prototype.hasOwnProperty.call(_a,t)&&_a[t].magic===e)return _a[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+ya.pretty(this.compressionMethod)+" unknown (inner file : "+ya.transformTo("string",this.fileName)+")");this.decompressed=new ba(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=ga(this.extraFields[1].value),this.uncompressedSize===ya.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===ya.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===ya.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===ya.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e,t=ka.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=wa.utf8decode(this.fileName),this.fileCommentStr=wa.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=ya.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=ya.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=ga(t.value)).readInt(1)||va(this.fileName)!==e.readInt(4)?null:wa.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=ga(t.value)).readInt(1)||va(this.fileComment)!==e.readInt(4)?null:wa.utf8decode(e.readData(t.length-5))}};var u=Sa,xa=ua,Ea=s(),Ca=hn,Pa=u,Aa=d;function Ta(e){this.files=[],this.loadOptions=e}Ta.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+Ea.pretty(t)+", expected "+Ea.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index,e=(this.reader.setIndex(e),this.reader.readString(4)===t);return this.reader.setIndex(r),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Aa.uint8array?"uint8array":"array",t=Ea.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(Ca.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ca.CENTRAL_FILE_HEADER);)(e=new Pa({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(Ca.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,Ca.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(Ca.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ea.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ea.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ea.MAX_VALUE_16BITS||this.centralDirRecords===Ea.MAX_VALUE_16BITS||this.centralDirSize===Ea.MAX_VALUE_32BITS||this.centralDirOffset===Ea.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(Ca.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Ca.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ca.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ca.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(Ca.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,Ca.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=xa(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var e=Ta,Oa=s(),Na=gt,Ma=I,Ra=e,Ba=ir,Da=mt;function ja(){if(!(this instanceof ja))return new ja;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new ja;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(ja.prototype=p).loadAsync=function(e,o){var s=this;return o=Oa.extend(o||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Ma.utf8decode}),Da.isNode&&Da.isStream(e)?Na.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Oa.prepareContent("the loaded zip file",e,!0,o.optimizedBinaryString,o.base64).then(function(e){var t=new Ra(o);return t.load(e),t}).then(function(e){var t=[Na.Promise.resolve(e)],r=e.files;if(o.checkCRC32)for(var n=0;n<r.length;n++)t.push(function(n){return new Na.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new Ba);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[n]));return Na.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,r=0;r<t.length;r++){var n=t[r],i=n.fileNameStr,a=Oa.resolve(n.fileNameStr);s.file(a,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:o.createFolders}),n.dir||(s.file(a).unsafeOriginalName=i)}return e.zipComment.length&&(s.comment=e.zipComment),s})},ja.support=d,ja.defaults=Gt,ja.version="3.10.1",ja.loadAsync=function(e,t){return(new ja).loadAsync(e,t)},ja.external=gt;var E,La,Ia=(La=ja).__esModule&&Object.prototype.hasOwnProperty.call(La,"default")?La.default:La,za=((c=E=E||{}).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",c.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",c.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",c.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",c.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",c.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",c.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",c.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",c.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",c.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",c.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",c.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",c.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",c.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",c.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",c.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",c.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),C={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function Fa(e,t){t=1<arguments.length&&void 0!==t?t:C.Dxa;return null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(t.unit)}function Ua(e,t,r){if(e.namespaceURI==za){switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",C.FontSize);break;default:return}return 1}}i(Va,[{key:"elements",value:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=[],n=0,i=e.childNodes.length;n<i;n++){var a=e.childNodes.item(n);1!=a.nodeType||null!=t&&a.localName!=t||r.push(a)}return r}},{key:"element",value:function(e,t){for(var r=0,n=e.childNodes.length;r<n;r++){var i=e.childNodes.item(r);if(1==i.nodeType&&i.localName==t)return i}return null}},{key:"elementAttr",value:function(e,t,r){e=this.element(e,t);return e?this.attr(e,r):void 0}},{key:"attrs",value:function(e){return Array.from(e.attributes)}},{key:"attr",value:function(e,t){for(var r=0,n=e.attributes.length;r<n;r++){var i=e.attributes.item(r);if(i.localName==t)return i.value}return null}},{key:"intAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e):r}},{key:"hexAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e,16):r}},{key:"floatAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseFloat(e):r}},{key:"boolAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){var r=1<arguments.length&&void 0!==t&&t;switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return r}}(this.attr(e,t),r)}},{key:"lengthAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:C.Dxa;return Fa(this.attr(e,t),r)}}]);var Wa,Ha=Va,A=new Ha,xr=(i(qa,[{key:"load",value:(Wa=$(P().mark(function e(){var t;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._package.loadRelationships(this.path);case 2:return this.rels=e.sent,e.next=5,this._package.load(this.path);case 5:t=e.sent,t=this._package.parseXmlDocument(t),this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild);case 8:case"end":return e.stop()}},e,this)})),function(){return Wa.apply(this,arguments)})},{key:"save",value:function(){var e;this._package.update(this.path,(e=this._xmlDocument,(new XMLSerializer).serializeToString(e)))}},{key:"parseXml",value:function(e){}}]),qa),Za={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function qa(e,t){n(this,qa),this._package=e,this.path=t}function Va(){n(this,Va)}t(Ka,xr),Xa=r(Ka),i(Ka,[{key:"parseXml",value:function(e){var u;this.fonts=(u=this._package.xmlParser).elements(e).map(function(e){var t,r,n,i=e,a=u,o={name:a.attr(i,"name"),embedFontRefs:[]},s=k(a.elements(i));try{for(s.s();!(t=s.n()).done;){var l=t.value;switch(l.localName){case"family":o.family=a.attr(l,"val");break;case"altName":o.altName=a.attr(l,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":o.embedFontRefs.push((r=l,{id:(n=a).attr(r,"id"),key:n.attr(r,"fontKey"),type:Za[r.localName]}))}}}catch(i){s.e(i)}finally{s.f()}return o})}}]);var Xa,Ga=Ka;function Ka(){return n(this,Ka),Xa.apply(this,arguments)}function Ja(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]}function Ya(e,t){try{var r="http://docx/";return new URL(e,r+t).toString().substring(r.length)}catch(r){return"".concat(t).concat(e)}}function $a(e,r){return e.reduce(function(e,t){return e[r(t)]=t,e},{})}function Qa(e){return e&&"object"==te(e)&&!Array.isArray(e)}function eo(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;var i,a=r.shift();if(Qa(e)&&Qa(a))for(var o in a)Qa(a[o])?eo(null!=(i=e[o])?i:e[o]={},a[o]):e[o]=a[o];return eo.apply(void 0,[e].concat(r))}function to(e){return Array.isArray(e)?e:[e]}i(lo,[{key:"get",value:function(e){return this._zip.files[(e=e).startsWith("/")?e.substr(1):e]}},{key:"update",value:function(e,t){this._zip.file(e,t)}},{key:"save",value:function(){return this._zip.generateAsync({type:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob"})}},{key:"load",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"string";return null!=(e=null==(e=this.get(e))?void 0:e.async(t))?e:Promise.resolve(null)}},{key:"loadRelationships",value:(io=$(P().mark(function e(){var t,r,n,i,a=arguments;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="_rels/.rels",null!=(n=0<a.length&&void 0!==a[0]?a[0]:null)&&(n=Ja(n),n=V(n,2),r=n[0],n=n[1],t="".concat(r,"_rels/").concat(n,".rels")),e.next=5,this.load(t);case 5:return r=e.sent,e.abrupt("return",r?(n=this.parseXmlDocument(r).firstElementChild,(i=this.xmlParser).elements(n).map(function(e){return{id:i.attr(e,"Id"),type:i.attr(e,"Type"),target:i.attr(e,"Target"),targetMode:i.attr(e,"TargetMode")}})):null);case 7:case"end":return e.stop()}},e,this)})),function(){return io.apply(this,arguments)})},{key:"parseXmlDocument",value:function(e){return function(e,t){e=65279===(t=e=1<arguments.length&&void 0!==t&&t?e.replace(/<[?].*[?]>/,""):e).charCodeAt(0)?t.substring(1):t;t=(new DOMParser).parseFromString(e,"application/xml"),e=null==(e=t.getElementsByTagName("parsererror")[0])?void 0:e.textContent;if(e)throw new Error(e);return t}(e,this.options.trimXmlDeclaration)}}],[{key:"load",value:(no=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ia.loadAsync(t);case 2:return n=e.sent,e.abrupt("return",new lo(n,r));case 4:case"end":return e.stop()}},e)})),function(e,t){return no.apply(this,arguments)})}]);var T,ro,no,io,ao=lo,oo=(t(so,xr),ro=r(so),i(so,[{key:"parseXml",value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}]),so);function so(e,t,r){return n(this,so),(e=ro.call(this,e,t))._documentParser=r,e}function lo(e,t){n(this,lo),this._zip=e,this.options=t,this.xmlParser=new Ha}function uo(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",C.Border),offset:t.lengthAttr(e,"space",C.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}function co(e,t){var r,n,i,a,o,s=1<arguments.length&&void 0!==t?t:A,l={},u=k(s.elements(e));try{for(u.s();!(i=u.n()).done;){var c=i.value;switch(c.localName){case"pgSz":l.pageSize={width:s.lengthAttr(c,"w"),height:s.lengthAttr(c,"h"),orientation:s.attr(c,"orient")};break;case"type":l.type=s.attr(c,"val");break;case"pgMar":l.pageMargins={left:s.lengthAttr(c,"left"),right:s.lengthAttr(c,"right"),top:s.lengthAttr(c,"top"),bottom:s.lengthAttr(c,"bottom"),header:s.lengthAttr(c,"header"),footer:s.lengthAttr(c,"footer"),gutter:s.lengthAttr(c,"gutter")};break;case"cols":l.columns=function(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}})}}(c,s);break;case"headerReference":(null!=(r=l.headerRefs)?r:l.headerRefs=[]).push(ho(c,s));break;case"footerReference":(null!=(n=l.footerRefs)?n:l.footerRefs=[]).push(ho(c,s));break;case"titlePg":l.titlePage=s.boolAttr(c,"val",!0);break;case"pgBorders":l.pageBorders=function(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"left":n.left=uo(a,t);break;case"top":n.top=uo(a,t);break;case"right":n.right=uo(a,t);break;case"bottom":n.bottom=uo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(c,s);break;case"pgNumType":l.pageNumber=(a=c,{chapSep:(o=s).attr(a,"chapSep"),chapStyle:o.attr(a,"chapStyle"),format:o.attr(a,"fmt"),start:o.intAttr(a,"start")})}}}catch(e){u.e(e)}finally{u.f()}return l}function ho(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}function fo(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;)Ua(r.value,n,t)}catch(e){i.e(e)}finally{i.f()}return n}function po(e,t){var r,n={},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;)mo(r.value,n,t)}catch(e){i.e(e)}finally{i.f()}return n}function mo(a,e,t){if(a.namespaceURI==za){var r,n,i;if(!Ua(a,e,t))switch(a.localName){case"tabs":e.tabs=(i=t).elements(a,"tab").map(function(e){return{position:i.lengthAttr(e,"pos"),leader:i.attr(e,"leader"),style:i.attr(e,"val")}});break;case"sectPr":e.sectionProps=co(a,t);break;case"numPr":e.numbering=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"numId":r.id=e.attr(i,"val");break;case"ilvl":r.level=e.intAttr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}(t);break;case"spacing":return e.lineSpacing=(r=a,{before:(n=t).lengthAttr(r,"before"),after:n.lengthAttr(r,"after"),line:n.intAttr(r,"line"),lineRule:n.attr(r,"lineRule")}),0;case"textAlignment":return e.textAlignment=t.attr(a,"val"),0;case"keepLines":e.keepLines=t.boolAttr(a,"val",!0);break;case"keepNext":e.keepNext=t.boolAttr(a,"val",!0);break;case"pageBreakBefore":e.pageBreakBefore=t.boolAttr(a,"val",!0);break;case"outlineLvl":e.outlineLevel=t.intAttr(a,"val");break;case"pStyle":e.styleName=t.attr(a,"val");break;case"rPr":e.runProps=fo(a,t);break;default:return}return 1}}function go(e,t){var r,n={id:t.attr(e,"numId"),overrides:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"abstractNumId":n.abstractId=t.attr(a,"val");break;case"lvlOverride":n.overrides.push(function(e,t){var r,n={level:t.intAttr(e,"ilvl")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"startOverride":n.start=t.intAttr(a,"val");break;case"lvl":n.numberingLevel=yo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(a,t))}}}catch(e){i.e(e)}finally{i.f()}return n}function yo(e,t){var r,n={level:t.intAttr(e,"ilvl")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"start":n.start=t.attr(a,"val");break;case"lvlRestart":n.restart=t.intAttr(a,"val");break;case"numFmt":n.format=t.attr(a,"val");break;case"lvlText":n.text=t.attr(a,"val");break;case"lvlJc":n.justification=t.attr(a,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(a,"val");break;case"pStyle":n.paragraphStyle=t.attr(a,"val");break;case"pPr":n.paragraphProps=po(a,t);break;case"rPr":n.runProps=fo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}t(So,xr),vo=r(So),i(So,[{key:"parseXml",value:function(u){Object.assign(this,function(e){var t,r,n,i,a,o={numberings:[],abstractNumberings:[],bulletPictures:[]},s=k(e.elements(u));try{for(s.s();!(t=s.n()).done;){var l=t.value;switch(l.localName){case"num":o.numberings.push(go(l,e));break;case"abstractNum":o.abstractNumberings.push(function(e,t){var r,n={id:t.attr(e,"abstractNumId"),levels:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"name":n.name=t.attr(a,"val");break;case"multiLevelType":n.multiLevelType=t.attr(a,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(a,"val");break;case"styleLink":n.styleLink=t.attr(a,"val");break;case"lvl":n.levels.push(yo(a,t))}}}catch(e){i.e(e)}finally{i.f()}return n}(l,e));break;case"numPicBullet":o.bulletPictures.push((r=l,a=i=void 0,i=(n=e).element(r,"pict"),(a=(i=i&&n.element(i,"shape"))&&n.element(i,"imagedata"))?{id:n.attr(r,"numPicBulletId"),referenceId:n.attr(a,"id"),style:n.attr(i,"style")}:null))}}}catch(e){s.e(e)}finally{s.f()}return o}(this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(u)}}]);var bo,vo,wo=So,_o=(t(ko,xr),bo=r(ko),i(ko,[{key:"parseXml",value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}]),ko);function ko(e,t,r){return n(this,ko),(e=bo.call(this,e,t))._documentParser=r,e}function So(e,t,r){return n(this,So),(e=vo.call(this,e,t))._documentParser=r,e}(f=T=T||{}).Document="document",f.Paragraph="paragraph",f.Run="run",f.Break="break",f.NoBreakHyphen="noBreakHyphen",f.Table="table",f.Row="row",f.Cell="cell",f.Hyperlink="hyperlink",f.Drawing="drawing",f.Image="image",f.Text="text",f.Tab="tab",f.Symbol="symbol",f.BookmarkStart="bookmarkStart",f.BookmarkEnd="bookmarkEnd",f.Footer="footer",f.Header="header",f.FootnoteReference="footnoteReference",f.EndnoteReference="endnoteReference",f.Footnote="footnote",f.Endnote="endnote",f.SimpleField="simpleField",f.ComplexField="complexField",f.Instruction="instruction",f.VmlPicture="vmlPicture",f.MmlMath="mmlMath",f.MmlMathParagraph="mmlMathParagraph",f.MmlFraction="mmlFraction",f.MmlFunction="mmlFunction",f.MmlFunctionName="mmlFunctionName",f.MmlNumerator="mmlNumerator",f.MmlDenominator="mmlDenominator",f.MmlRadical="mmlRadical",f.MmlBase="mmlBase",f.MmlDegree="mmlDegree",f.MmlSuperscript="mmlSuperscript",f.MmlSubscript="mmlSubscript",f.MmlPreSubSuper="mmlPreSubSuper",f.MmlSubArgument="mmlSubArgument",f.MmlSuperArgument="mmlSuperArgument",f.MmlNary="mmlNary",f.MmlDelimiter="mmlDelimiter",f.MmlRun="mmlRun",f.MmlEquationArray="mmlEquationArray",f.MmlLimit="mmlLimit",f.MmlLimitLower="mmlLimitLower",f.MmlMatrix="mmlMatrix",f.MmlMatrixRow="mmlMatrixRow",f.MmlBox="mmlBox",f.MmlBar="mmlBar",f.MmlGroupChar="mmlGroupChar",f.VmlElement="vmlElement",f.Inserted="inserted",f.Deleted="deleted",f.DeletedText="deletedText";var xo,Eo,Co,Po,Ao,di=i(function e(){n(this,e),this.children=[],this.cssStyle={}}),To=(t(Lo,di),Ao=r(Lo),i(Lo)),Oo=(t(jo,di),Po=r(jo),i(jo)),w=(t(Do,xr),Co=r(Do),i(Do,[{key:"parseXml",value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}]),Do),No=(t(Bo,w),Eo=r(Bo),i(Bo,[{key:"createRootElement",value:function(){return new To}}]),Bo),Mo=(t(Ro,w),xo=r(Ro),i(Ro,[{key:"createRootElement",value:function(){return new Oo}}]),Ro);function Ro(){return n(this,Ro),xo.apply(this,arguments)}function Bo(){return n(this,Bo),Eo.apply(this,arguments)}function Do(e,t,r){return n(this,Do),(e=Co.call(this,e,t))._documentParser=r,e}function jo(){var e;return n(this,jo),(e=Po.apply(this,arguments)).type=T.Footer,e}function Lo(){var e;return n(this,Lo),(e=Ao.apply(this,arguments)).type=T.Header,e}function Io(e){if(void 0!==e)return parseInt(e)}t(qo,xr),Fo=r(qo),i(qo,[{key:"parseXml",value:function(a){this.props=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"Template":r.template=i.textContent;break;case"Pages":r.pages=Io(i.textContent);break;case"Words":r.words=Io(i.textContent);break;case"Characters":r.characters=Io(i.textContent);break;case"Application":r.application=i.textContent;break;case"Lines":r.lines=Io(i.textContent);break;case"Paragraphs":r.paragraphs=Io(i.textContent);break;case"Company":r.company=i.textContent;break;case"AppVersion":r.appVersion=i.textContent}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]);var zo,Fo,Uo=qo,Wo=(t(Zo,xr),zo=r(Zo),i(Zo,[{key:"parseXml",value:function(a){this.props=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"title":r.title=i.textContent;break;case"description":r.description=i.textContent;break;case"subject":r.subject=i.textContent;break;case"creator":r.creator=i.textContent;break;case"keywords":r.keywords=i.textContent;break;case"language":r.language=i.textContent;break;case"lastModifiedBy":r.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(r.revision=parseInt(i.textContent))}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]),Zo),Ho=i(function e(){n(this,e)});function Zo(){return n(this,Zo),zo.apply(this,arguments)}function qo(){return n(this,qo),Fo.apply(this,arguments)}function Vo(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t(us,xr),$o=r(us),i(us,[{key:"parseXml",value:function(e){this.theme=function(e,t){var r,n=new Ho,i=t.element(e,"themeElements"),a=k(t.elements(i));try{for(a.s();!(r=a.n()).done;){var o=r.value;switch(o.localName){case"clrScheme":n.colorScheme=function(e,t){var r,n={name:t.attr(e,"name"),colors:{}},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,o=t.element(a,"srgbClr"),s=t.element(a,"sysClr");o?n.colors[a.localName]=t.attr(o,"val"):s&&(n.colors[a.localName]=t.attr(s,"lastClr"))}}catch(e){i.e(e)}finally{i.f()}return n}(o,t);break;case"fontScheme":n.fontScheme=function(e,t){var r,n={name:t.attr(e,"name")},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"majorFont":n.majorFont=Vo(a,t);break;case"minorFont":n.minorFont=Vo(a,t)}}}catch(e){i.e(e)}finally{i.f()}return n}(o,t)}}}catch(e){a.e(e)}finally{a.f()}return n}(e,this._package.xmlParser)}}]);var Xo,Go,Ko,Jo,Yo,$o,Qo=us,m=i(function e(){n(this,e)}),es=(t(ls,m),Yo=r(ls),i(ls)),ts=(t(ss,m),Jo=r(ss),i(ss)),Pr=(t(os,xr),Ko=r(os),i(os)),rs=(t(as,Pr),Go=r(as),i(as,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",es)}}]),as),ns=(t(is,Pr),Xo=r(is),i(is,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",ts)}}]),is);function is(e,t,r){return n(this,is),Xo.call(this,e,t,r)}function as(e,t,r){return n(this,as),Go.call(this,e,t,r)}function os(e,t,r){return n(this,os),(e=Ko.call(this,e,t))._documentParser=r,e}function ss(){var e;return n(this,ss),(e=Jo.apply(this,arguments)).type=T.Endnote,e}function ls(){var e;return n(this,ls),(e=Yo.apply(this,arguments)).type=T.Footnote,e}function us(e,t){return n(this,us),$o.call(this,e,t)}function cs(e,t){var r,n={defaultNoteIds:[]},i=k(t.elements(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.localName){case"numFmt":n.nummeringFormat=t.attr(a,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(a,"id"))}}}catch(e){i.e(e)}finally{i.f()}return n}t(xs,xr),ys=r(xs),i(xs,[{key:"parseXml",value:function(a){this.settings=function(e){var t,r={},n=k(e.elements(a));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"defaultTabStop":r.defaultTabStop=e.lengthAttr(i,"val");break;case"footnotePr":r.footnoteProps=cs(i,e);break;case"endnotePr":r.endnoteProps=cs(i,e);break;case"autoHyphenation":r.autoHyphenation=e.boolAttr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}(this._package.xmlParser)}}]);var hs,fs,ds,ps,ms,gs,ys,bs=xs,vs=(t(Ss,xr),gs=r(Ss),i(Ss,[{key:"parseXml",value:function(e){var r;this.props=(r=this._package.xmlParser).elements(e,"property").map(function(e){var t=e.firstChild;return{formatId:r.attr(e,"fmtid"),name:r.attr(e,"name"),type:t.nodeName,value:t.textContent}})}}]),Ss),ws=[{type:E.OfficeDocument,target:"word/document.xml"},{type:E.ExtendedProperties,target:"docProps/app.xml"},{type:E.CoreProperties,target:"docProps/core.xml"},{type:E.CustomProperties,target:"docProps/custom.xml"}],_s=(i(ks,[{key:"save",value:function(){return this._package.save(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob")}},{key:"loadRelationshipPart",value:(ms=$(P().mark(function e(t,r){var n,i,a,o=this;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.partsMap[t])return e.abrupt("return",this.partsMap[t]);e.next=2;break;case 2:if(this._package.get(t)){e.next=4;break}return e.abrupt("return",null);case 4:n=null,e.t0=r,e.next=e.t0===E.OfficeDocument?8:e.t0===E.FontTable?10:e.t0===E.Numbering?12:e.t0===E.Styles?14:e.t0===E.Theme?16:e.t0===E.Footnotes?18:e.t0===E.Endnotes?20:e.t0===E.Footer?22:e.t0===E.Header?24:e.t0===E.CoreProperties?26:e.t0===E.ExtendedProperties?28:e.t0===E.CustomProperties?30:e.t0===E.Settings?32:33;break;case 8:return this.documentPart=n=new oo(this._package,t,this._parser),e.abrupt("break",33);case 10:return this.fontTablePart=n=new Ga(this._package,t),e.abrupt("break",33);case 12:return this.numberingPart=n=new wo(this._package,t,this._parser),e.abrupt("break",33);case 14:return this.stylesPart=n=new _o(this._package,t,this._parser),e.abrupt("break",33);case 16:return this.themePart=n=new Qo(this._package,t),e.abrupt("break",33);case 18:return this.footnotesPart=n=new rs(this._package,t,this._parser),e.abrupt("break",33);case 20:return this.endnotesPart=n=new ns(this._package,t,this._parser),e.abrupt("break",33);case 22:return n=new Mo(this._package,t,this._parser),e.abrupt("break",33);case 24:return n=new No(this._package,t,this._parser),e.abrupt("break",33);case 26:return this.corePropsPart=n=new Wo(this._package,t),e.abrupt("break",33);case 28:return this.extendedPropsPart=n=new Uo(this._package,t),e.abrupt("break",33);case 30:return n=new vs(this._package,t),e.abrupt("break",33);case 32:this.settingsPart=n=new bs(this._package,t);case 33:if(null==n)return e.abrupt("return",Promise.resolve(null));e.next=35;break;case 35:return this.partsMap[t]=n,this.parts.push(n),e.next=39,n.load();case 39:if(0<(null==(i=n.rels)?void 0:i.length))return i=Ja(n.path),i=V(i,1),a=i[0],e.next=43,Promise.all(n.rels.map(function(e){return o.loadRelationshipPart(Ya(e.target,a),e.type)}));e.next=43;break;case 43:return e.abrupt("return",n);case 44:case"end":return e.stop()}},e,this)})),function(e,t){return ms.apply(this,arguments)})},{key:"loadDocumentImage",value:(ps=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(null!=r?r:this.documentPart,t,"blob");case 2:return n=e.sent,e.abrupt("return",this.blobToURL(n));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return ps.apply(this,arguments)})},{key:"loadNumberingImage",value:(ds=$(P().mark(function e(t){var r;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.numberingPart,t,"blob");case 2:return r=e.sent,e.abrupt("return",this.blobToURL(r));case 4:case"end":return e.stop()}},e,this)})),function(e){return ds.apply(this,arguments)})},{key:"loadFont",value:(fs=$(P().mark(function e(t,r){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.fontTablePart,t,"uint8array");case 2:return n=e.sent,e.abrupt("return",n&&this.blobToURL(new Blob([function(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),i=0;i<16;i++)n[16-i-1]=parseInt(r.substr(2*i,2),16);for(var a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}(n,r)])));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return fs.apply(this,arguments)})},{key:"blobToURL",value:function(e){return e?this._options.useBase64URL?(n=e,new Promise(function(e,t){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.onerror=function(){return t()},r.readAsDataURL(n)})):URL.createObjectURL(e):null;var n}},{key:"findPartByRelId",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=(null!=(r=e.rels)?r:this.rels).find(function(e){return e.id==t}),e=e?Ja(e.path)[0]:"";return r?this.partsMap[Ya(r.target,e)]:null}},{key:"getPathById",value:function(e,t){var r=e.rels.find(function(e){return e.id==t}),e=V(Ja(e.path),1)[0];return r?Ya(r.target,e):null}},{key:"loadResource",value:function(e,t,r){e=this.getPathById(e,t);return e?this._package.load(e,r):Promise.resolve(null)}}],[{key:"load",value:(hs=$(P().mark(function e(t,r,n){var i;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=new ks)._options=n,i._parser=r,e.next=5,ao.load(t,n);case 5:return i._package=e.sent,e.next=8,i._package.loadRelationships();case 8:return i.rels=e.sent,e.next=11,Promise.all(ws.map(function(t){var e=null!=(e=i.rels.find(function(e){return e.type===t.type}))?e:t;return i.loadRelationshipPart(e.target,e.type)}));case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),function(e,t,r){return hs.apply(this,arguments)})}]),ks);function ks(){n(this,ks),this.parts=[],this.partsMap={}}function Ss(){return n(this,Ss),gs.apply(this,arguments)}function xs(e,t){return n(this,xs),ys.call(this,e,t)}t(Ps,di),Es=r(Ps);var Es,Cs=i(Ps);function Ps(){var e;return n(this,Ps),(e=Es.apply(this,arguments)).type=T.VmlElement,e.attrs={},e}function As(e,t){var r,n=new Cs;switch(e.localName){case"rect":n.tagName="rect",Object.assign(n.attrs,{width:"100%",height:"100%"});break;case"oval":n.tagName="ellipse",Object.assign(n.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":n.tagName="line";break;case"shape":n.tagName="g";break;case"textbox":n.tagName="foreignObject",Object.assign(n.attrs,{width:"100%",height:"100%"});break;default:return null}var i,a=k(A.attrs(e));try{for(a.s();!(i=a.n()).done;){var o=i.value;switch(o.localName){case"style":n.cssStyleText=o.value;break;case"fillcolor":n.attrs.fill=o.value;break;case"from":var s=V(Ts(o.value),2),l=s[0],u=s[1];Object.assign(n.attrs,{x1:l,y1:u});break;case"to":var c=V(Ts(o.value),2),h=c[0],f=c[1];Object.assign(n.attrs,{x2:h,y2:f})}}}catch(e){a.e(e)}finally{a.f()}var d,p,m=k(A.elements(e));try{for(m.s();!(d=m.n()).done;){var g=d.value;switch(g.localName){case"stroke":Object.assign(n.attrs,(p=g,{stroke:A.attr(p,"color"),"stroke-width":null!=(p=A.lengthAttr(p,"weight",C.Emu))?p:"1px"}));break;case"fill":Object.assign(n.attrs,{});break;case"imagedata":n.tagName="image",Object.assign(n.attrs,{width:"100%",height:"100%"}),n.imageHref={id:A.attr(g,"id"),title:A.attr(g,"title")};break;case"txbxContent":(r=n.children).push.apply(r,q(t.parseBodyElements(g)));break;default:var y=As(g,t);y&&n.children.push(y)}}}catch(e){m.e(e)}finally{m.f()}return n}function Ts(e){return e.split(",")}var Os=[],Ns={oMath:T.MmlMath,oMathPara:T.MmlMathParagraph,f:T.MmlFraction,func:T.MmlFunction,fName:T.MmlFunctionName,num:T.MmlNumerator,den:T.MmlDenominator,rad:T.MmlRadical,deg:T.MmlDegree,e:T.MmlBase,sSup:T.MmlSuperscript,sSub:T.MmlSubscript,sPre:T.MmlPreSubSuper,sup:T.MmlSuperArgument,sub:T.MmlSubArgument,d:T.MmlDelimiter,nary:T.MmlNary,eqArr:T.MmlEquationArray,lim:T.MmlLimit,limLow:T.MmlLimitLower,m:T.MmlMatrix,mr:T.MmlMatrixRow,box:T.MmlBox,bar:T.MmlBar,groupChr:T.MmlGroupChar},Ms=(i(Ls,[{key:"parseNotes",value:function(e,t,r){var n,i=[],a=k(A.elements(e,t));try{for(a.s();!(n=a.n()).done;){var o=n.value,s=new r;s.id=A.attr(o,"id"),s.noteType=A.attr(o,"type"),s.children=this.parseBodyElements(o),i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"parseDocumentFile",value:function(e){var t=A.element(e,"body"),e=A.element(e,"background"),r=A.element(t,"sectPr");return{type:T.Document,children:this.parseBodyElements(t),props:r?co(r,A):{},cssStyle:e?this.parseBackground(e):{}}}},{key:"parseBackground",value:function(e){var t={},e=O.colorAttr(e,"color");return e&&(t["background-color"]=e),t}},{key:"parseBodyElements",value:function(e){var t,r=this,n=[],i=k(A.elements(e));try{for(i.s();!(t=i.n()).done;){var a=t.value;switch(a.localName){case"p":n.push(this.parseParagraph(a));break;case"tbl":n.push(this.parseTable(a));break;case"sdt":n.push.apply(n,q(this.parseSdt(a,function(e){return r.parseBodyElements(e)})))}}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"parseStylesFile",value:function(e){var t=this,r=[];return O.foreach(e,function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}}),r}},{key:"parseDefaultStyles",value:function(e){var r=this,n={id:null,name:null,target:null,basedOn:null,styles:[]};return O.foreach(e,function(e){switch(e.localName){case"rPrDefault":var t=A.element(e,"rPr");t&&n.styles.push({target:"span",values:r.parseDefaultProperties(t,{})});break;case"pPrDefault":t=A.element(e,"pPr");t&&n.styles.push({target:"p",values:r.parseDefaultProperties(t,{})})}}),n}},{key:"parseStyle",value:function(e){var i=this,a={id:A.attr(e,"styleId"),isDefault:A.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(A.attr(e,"type")){case"paragraph":a.target="p";break;case"table":a.target="table";break;case"character":a.target="span"}return O.foreach(e,function(e){switch(e.localName){case"basedOn":a.basedOn=A.attr(e,"val");break;case"name":a.name=A.attr(e,"val");break;case"link":a.linked=A.attr(e,"val");break;case"next":a.next=A.attr(e,"val");break;case"aliases":a.aliases=A.attr(e,"val").split(",");break;case"pPr":a.styles.push({target:"p",values:i.parseDefaultProperties(e,{})}),a.paragraphProps=po(e,A);break;case"rPr":a.styles.push({target:"span",values:i.parseDefaultProperties(e,{})}),a.runProps=fo(e,A);break;case"tblPr":case"tcPr":a.styles.push({target:"td",values:i.parseDefaultProperties(e,{})});break;case"tblStylePr":var t,r=k(i.parseTableStyle(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;a.styles.push(n)}}catch(e){r.e(e)}finally{r.f()}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:i.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}}),a}},{key:"parseTableStyle",value:function(e){var t=this,r=[],n=A.attr(e,"type"),i="",a="";switch(n){case"firstRow":a=".first-row",i="tr.first-row td";break;case"lastRow":a=".last-row",i="tr.last-row td";break;case"firstCol":a=".first-col",i="td.first-col";break;case"lastCol":a=".last-col",i="td.last-col";break;case"band1Vert":a=":not(.no-vband)",i="td.odd-col";break;case"band2Vert":a=":not(.no-vband)",i="td.even-col";break;case"band1Horz":a=":not(.no-hband)",i="tr.odd-row";break;case"band2Horz":a=":not(.no-hband)",i="tr.even-row";break;default:return[]}return O.foreach(e,function(e){switch(e.localName){case"pPr":r.push({target:"".concat(i," p"),mod:a,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(i," span"),mod:a,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:i,mod:a,values:t.parseDefaultProperties(e,{})})}}),r}},{key:"parseNumberingFile",value:function(e){var n=this,i=[],a={},o=[];return O.foreach(e,function(e){switch(e.localName){case"abstractNum":n.parseAbstractNumbering(e,o).forEach(function(e){return i.push(e)});break;case"numPicBullet":o.push(n.parseNumberingPicBullet(e));break;case"num":var t=A.attr(e,"numId"),r=A.elementAttr(e,"abstractNumId","val");a[r]=t}}),i.forEach(function(e){return e.id=a[e.id]}),i}},{key:"parseNumberingPicBullet",value:function(e){var t=A.element(e,"pict"),t=t&&A.element(t,"shape"),r=t&&A.element(t,"imagedata");return r?{id:A.intAttr(e,"numPicBulletId"),src:A.attr(r,"id"),style:A.attr(t,"style")}:null}},{key:"parseAbstractNumbering",value:function(e,t){var r=this,n=[],i=A.attr(e,"abstractNumId");return O.foreach(e,function(e){"lvl"===e.localName&&n.push(r.parseNumberingLevel(i,e,t))}),n}},{key:"parseNumberingLevel",value:function(e,t,r){var n=this,i={id:e,level:A.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return O.foreach(t,function(e){switch(e.localName){case"start":i.start=A.intAttr(e,"val");break;case"pPr":n.parseDefaultProperties(e,i.pStyle);break;case"rPr":n.parseDefaultProperties(e,i.rStyle);break;case"lvlPicBulletId":var t=A.intAttr(e,"val");i.bullet=r.find(function(e){return e.id==t});break;case"lvlText":i.levelText=A.attr(e,"val");break;case"pStyle":i.pStyleName=A.attr(e,"val");break;case"numFmt":i.format=A.attr(e,"val");break;case"suff":i.suff=A.attr(e,"val")}}),i}},{key:"parseSdt",value:function(e,t){e=A.element(e,"sdtContent");return e?t(e):[]}},{key:"parseInserted",value:function(e,t){return{type:T.Inserted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseDeleted",value:function(e,t){return{type:T.Deleted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseParagraph",value:function(e){var t,r,n,i,a=this,o={type:T.Paragraph,children:[]},s=k(A.elements(e));try{for(s.s();!(i=s.n()).done;){var l=i.value;switch(l.localName){case"pPr":this.parseParagraphProperties(l,o);break;case"r":o.children.push(this.parseRun(l,o));break;case"hyperlink":o.children.push(this.parseHyperlink(l,o));break;case"bookmarkStart":o.children.push((r=l,n=A,{type:T.BookmarkStart,id:n.attr(r,"id"),name:n.attr(r,"name"),colFirst:n.intAttr(r,"colFirst"),colLast:n.intAttr(r,"colLast")}));break;case"bookmarkEnd":o.children.push({type:T.BookmarkEnd,id:A.attr(l,"id")});break;case"oMath":case"oMathPara":o.children.push(this.parseMathElement(l));break;case"sdt":(t=o.children).push.apply(t,q(this.parseSdt(l,function(e){return a.parseParagraph(e).children})));break;case"ins":o.children.push(this.parseInserted(l,function(e){return a.parseParagraph(e)}));break;case"del":o.children.push(this.parseDeleted(l,function(e){return a.parseParagraph(e)}))}}}catch(e){s.e(e)}finally{s.f()}return o}},{key:"parseParagraphProperties",value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,function(e){if(!mo(e,t,A))switch(e.localName){case"pStyle":t.styleName=A.attr(e,"val");break;case"cnfStyle":t.className=N.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}},{key:"parseFrame",value:function(e,t){"drop"==A.attr(e,"dropCap")&&(t.cssStyle.float="left")}},{key:"parseHyperlink",value:function(e,t){var r=this,n={type:T.Hyperlink,parent:t,children:[]},t=A.attr(e,"anchor"),i=A.attr(e,"id");return t&&(n.href="#"+t),i&&(n.id=i),O.foreach(e,function(e){"r"===e.localName&&n.children.push(r.parseRun(e,n))}),n}},{key:"parseRun",value:function(e,t){var r=this,n={type:T.Run,parent:t,children:[]};return O.foreach(e,function(e){switch((e=r.checkAlternateContent(e)).localName){case"t":n.children.push({type:T.Text,text:e.textContent});break;case"delText":n.children.push({type:T.DeletedText,text:e.textContent});break;case"fldSimple":n.children.push({type:T.SimpleField,instruction:A.attr(e,"instr"),lock:A.boolAttr(e,"lock",!1),dirty:A.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:T.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:T.ComplexField,charType:A.attr(e,"fldCharType"),lock:A.boolAttr(e,"lock",!1),dirty:A.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:T.NoBreakHyphen});break;case"br":n.children.push({type:T.Break,break:A.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:T.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:T.Symbol,font:A.attr(e,"font"),char:A.attr(e,"char")});break;case"tab":n.children.push({type:T.Tab});break;case"footnoteReference":n.children.push({type:T.FootnoteReference,id:A.attr(e,"id")});break;case"endnoteReference":n.children.push({type:T.EndnoteReference,id:A.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(r.parseVmlPicture(e));break;case"rPr":r.parseRunProperties(e,n)}}),n}},{key:"parseMathElement",value:function(e){var t,r="".concat(e.localName,"Pr"),n={type:Ns[e.localName],children:[]},i=k(A.elements(e));try{for(i.s();!(t=i.n()).done;){var a,o=t.value;Ns[o.localName]?n.children.push(this.parseMathElement(o)):"r"==o.localName?((a=this.parseRun(o)).type=T.MmlRun,n.children.push(a)):o.localName==r&&(n.props=this.parseMathProperies(o))}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"parseMathProperies",value:function(e){var t,r={},n=k(A.elements(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;switch(i.localName){case"chr":r.char=A.attr(i,"val");break;case"vertJc":r.verticalJustification=A.attr(i,"val");break;case"pos":r.position=A.attr(i,"val");break;case"degHide":r.hideDegree=A.boolAttr(i,"val");break;case"begChr":r.beginChar=A.attr(i,"val");break;case"endChr":r.endChar=A.attr(i,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"parseRunProperties",value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,function(e){switch(e.localName){case"rStyle":t.styleName=A.attr(e,"val");break;case"vertAlign":t.verticalAlign=N.valueOfVertAlign(e,!0);break;default:return!1}return!0})}},{key:"parseVmlPicture",value:function(e){var t,r={type:T.VmlPicture,children:[]},n=k(A.elements(e));try{for(n.s();!(t=n.n()).done;){var i=As(t.value,this);i&&r.children.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"checkAlternateContent",value:function(e){if("AlternateContent"!=e.localName)return e;var t=A.element(e,"Choice");if(t){var r=A.attr(t,"Requires"),r=e.lookupNamespaceURI(r);if(Os.includes(r))return t.firstElementChild}return null==(r=A.element(e,"Fallback"))?void 0:r.firstElementChild}},{key:"parseDrawing",value:function(e){var t,r=k(A.elements(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"parseDrawingWrapper",value:function(e){var t,r={type:T.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName,i=null,a=A.boolAttr(e,"simplePos"),o={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"},l=k(A.elements(e));try{for(l.s();!(t=l.n()).done;){var u,c,h,f,d=t.value;switch(d.localName){case"simplePos":a&&(o.offset=A.lengthAttr(d,"x",C.Emu),s.offset=A.lengthAttr(d,"y",C.Emu));break;case"extent":r.cssStyle.width=A.lengthAttr(d,"cx",C.Emu),r.cssStyle.height=A.lengthAttr(d,"cy",C.Emu);break;case"positionH":case"positionV":a||(c="positionH"==d.localName?o:s,h=A.element(d,"align"),f=A.element(d,"posOffset"),c.relative=null!=(u=A.attr(d,"relativeFrom"))?u:c.relative,h&&(c.align=h.textContent),f&&(c.offset=O.sizeValue(f,C.Emu)));break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var p=this.parseGraphic(d);p&&r.children.push(p)}}}catch(e){l.e(e)}finally{l.f()}return"wrapTopAndBottom"==i?(r.cssStyle.display="block",o.align&&(r.cssStyle["text-align"]=o.align,r.cssStyle.width="100%")):"wrapNone"==i?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",o.offset&&(r.cssStyle.left=o.offset),s.offset&&(r.cssStyle.top=s.offset)):!n||"left"!=o.align&&"right"!=o.align||(r.cssStyle.float=o.align),r}},{key:"parseGraphic",value:function(e){var t,r=A.element(e,"graphicData"),n=k(A.elements(r));try{for(n.s();!(t=n.n()).done;){var i=t.value;if("pic"===i.localName)return this.parsePicture(i)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"parsePicture",value:function(e){var t={type:T.Image,src:"",cssStyle:{}},r=A.element(e,"blipFill"),r=A.element(r,"blip");t.src=A.attr(r,"embed");var n,r=A.element(e,"spPr"),r=A.element(r,"xfrm"),i=k((t.cssStyle.position="relative",A.elements(r)));try{for(i.s();!(n=i.n()).done;){var a=n.value;switch(a.localName){case"ext":t.cssStyle.width=A.lengthAttr(a,"cx",C.Emu),t.cssStyle.height=A.lengthAttr(a,"cy",C.Emu);break;case"off":t.cssStyle.left=A.lengthAttr(a,"x",C.Emu),t.cssStyle.top=A.lengthAttr(a,"y",C.Emu)}}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"parseTable",value:function(e){var t=this,r={type:T.Table,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}}),r}},{key:"parseTableColumns",value:function(e){var t=[];return O.foreach(e,function(e){"gridCol"===e.localName&&t.push({width:A.lengthAttr(e,"w")})}),t}},{key:"parseTableProperties",value:function(e,t){var r=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,function(e){switch(e.localName){case"tblStyle":t.styleName=A.attr(e,"val");break;case"tblLook":t.className=N.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=A.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=A.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}},{key:"parseTablePosition",value:function(e,t){var r=A.lengthAttr(e,"topFromText"),n=A.lengthAttr(e,"bottomFromText"),i=A.lengthAttr(e,"rightFromText"),e=A.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=N.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=N.addSize(t.cssStyle["margin-left"],e),t.cssStyle["margin-right"]=N.addSize(t.cssStyle["margin-right"],i),t.cssStyle["margin-top"]=N.addSize(t.cssStyle["margin-top"],r)}},{key:"parseTableRow",value:function(e){var t=this,r={type:T.Row,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}}),r}},{key:"parseTableRowProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,function(e){switch(e.localName){case"cnfStyle":t.className=N.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=A.boolAttr(e,"val");break;default:return!1}return!0})}},{key:"parseTableCell",value:function(e){var t=this,r={type:T.Cell,children:[]};return O.foreach(e,function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}}),r}},{key:"parseTableCellProperties",value:function(e,r){r.cssStyle=this.parseDefaultProperties(e,{},null,function(e){var t;switch(e.localName){case"gridSpan":r.span=A.intAttr(e,"val",null);break;case"vMerge":r.verticalMerge=null!=(t=A.attr(e,"val"))?t:"continue";break;case"cnfStyle":r.className=N.classNameOfCnfStyle(e);break;default:return!1}return!0})}},{key:"parseDefaultProperties",value:function(t){var r=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,n=n||{};return O.foreach(t,function(e){if(null==a||!a(e))switch(e.localName){case"jc":n["text-align"]=N.valueOfJc(e);break;case"textAlignment":n["vertical-align"]=N.valueOfTextAlignment(e);break;case"color":n.color=O.colorAttr(e,"val",null,"black");break;case"sz":n["font-size"]=n["min-height"]=A.lengthAttr(e,"val",C.FontSize);break;case"shd":n["background-color"]=O.colorAttr(e,"fill",null,"inherit");break;case"highlight":n["background-color"]=O.colorAttr(e,"val",null,"transparent");break;case"vertAlign":break;case"position":n.verticalAlign=A.lengthAttr(e,"val",C.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":n.width=N.valueOfSize(e,"w");break;case"trHeight":r.parseTrHeight(e,n);break;case"strike":n["text-decoration"]=A.boolAttr(e,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=A.boolAttr(e,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=A.boolAttr(e,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=A.boolAttr(e,"val",!0)?"uppercase":"none";break;case"smallCaps":n["font-variant"]=A.boolAttr(e,"val",!0)?"small-caps":"none";break;case"u":r.parseUnderline(e,n);break;case"ind":case"tblInd":r.parseIndentation(e,n);break;case"rFonts":r.parseFont(e,n);break;case"tblBorders":r.parseBorderProperties(e,i||n);break;case"tblCellSpacing":n["border-spacing"]=N.valueOfMargin(e),n["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(e,n);break;case"bdr":n.border=N.valueOfBorder(e);break;case"tcBorders":r.parseBorderProperties(e,n);break;case"vanish":A.boolAttr(e,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(e,i||n);break;case"tblLayout":n["table-layout"]=N.valueOfTblLayout(e);break;case"vAlign":n["vertical-align"]=N.valueOfTextAlignment(e);break;case"spacing":"pPr"==t.localName&&r.parseSpacing(e,n);break;case"wordWrap":A.boolAttr(e,"val")&&(n["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":n.hyphens=A.boolAttr(e,"val",!0)?"none":"auto";break;case"lang":n.$lang=A.attr(e,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(t.localName,".").concat(e.localName))}}),n}},{key:"parseUnderline",value:function(e,t){var r=A.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"none":t["text-decoration"]="none"}r=O.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}},{key:"parseFont",value:function(e,t){e=[A.attr(e,"ascii"),N.themeValue(e,"asciiTheme")].filter(function(e){return e}).join(", ");0<e.length&&(t["font-family"]=e)}},{key:"parseIndentation",value:function(e,t){var r=A.lengthAttr(e,"firstLine"),n=A.lengthAttr(e,"hanging"),i=A.lengthAttr(e,"left"),a=A.lengthAttr(e,"start"),o=A.lengthAttr(e,"right"),e=A.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(i||a)&&(t["margin-left"]=i||a),(o||e)&&(t["margin-right"]=o||e)}},{key:"parseSpacing",value:function(e,t){var r=A.lengthAttr(e,"before"),n=A.lengthAttr(e,"after"),i=A.intAttr(e,"line",null),e=A.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==i)switch(e){case"auto":t["line-height"]="".concat((i/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(i/20,"pt)");break;default:t["line-height"]=t["min-height"]=i/20+"pt"}}},{key:"parseMarginProperties",value:function(e,t){O.foreach(e,function(e){switch(e.localName){case"left":t["padding-left"]=N.valueOfMargin(e);break;case"right":t["padding-right"]=N.valueOfMargin(e);break;case"top":t["padding-top"]=N.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=N.valueOfMargin(e)}})}},{key:"parseTrHeight",value:function(e,t){A.attr(e,"hRule"),t.height=A.lengthAttr(e,"val")}},{key:"parseBorderProperties",value:function(e,t){O.foreach(e,function(e){switch(e.localName){case"start":case"left":t["border-left"]=N.valueOfBorder(e);break;case"end":case"right":t["border-right"]=N.valueOfBorder(e);break;case"top":t["border-top"]=N.valueOfBorder(e);break;case"bottom":t["border-bottom"]=N.valueOfBorder(e)}})}}]),Ls),Rs=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],O=(i(js,null,[{key:"foreach",value:function(e,t){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}},{key:"colorAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"black",t=A.attr(e,t);return t?"auto"==t?n:Rs.includes(t)?t:"#".concat(t):(n=A.attr(e,"themeColor"))?"var(--docx-".concat(n,"-color)"):r}},{key:"sizeValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C.Dxa;return Fa(e.textContent,t)}}]),js),N=(i(Ds,null,[{key:"themeValue",value:function(e,t){e=A.attr(e,t);return e?"var(--docx-".concat(e,"-font)"):null}},{key:"valueOfSize",value:function(e,t){var r=C.Dxa;switch(A.attr(e,"type")){case"dxa":break;case"pct":r=C.Percent;break;case"auto":return"auto"}return A.lengthAttr(e,t,r)}},{key:"valueOfMargin",value:function(e){return A.lengthAttr(e,"w")}},{key:"valueOfBorder",value:function(e){var t;return"nil"==A.attr(e,"val")?"none":(t=O.colorAttr(e,"color"),"".concat(A.lengthAttr(e,"sz",C.Border)," solid ").concat("auto"==t?"black":t))}},{key:"valueOfTblLayout",value:function(e){return"fixed"==A.attr(e,"val")?"fixed":"auto"}},{key:"classNameOfCnfStyle",value:function(e){var r=A.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter(function(e,t){return"1"==r[t]}).join(" ")}},{key:"valueOfJc",value:function(e){e=A.attr(e,"val");switch(e){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return e}},{key:"valueOfVertAlign",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=A.attr(e,"val");switch(e){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:e}},{key:"valueOfTextAlignment",value:function(e){e=A.attr(e,"val");switch(e){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return e}},{key:"addSize",value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}},{key:"classNameOftblLook",value:function(e){var t=A.hexAttr(e,"val",0),r="";return(A.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(A.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(A.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(A.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(A.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(A.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}]),Ds),Bs={pos:0,leader:"none",style:"left"};function Ds(){n(this,Ds)}function js(){n(this,js)}function Ls(e){n(this,Ls),this.options=_({ignoreWidth:!1,debug:!1},e)}function Is(e){return parseFloat(e)}var B="http://www.w3.org/1998/Math/MathML",zs=(i(Fs,[{key:"render",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length?arguments[3]:void 0,i=(this.document=e,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?".".concat(this.className,"-wrapper"):":root",this.styleMap=null,this.tasks=[],Hs(r=r||t),Hs(t),Vs(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),e.themePart&&(Vs(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),Vs(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),Vs(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=$a(e.footnotesPart.notes,function(e){return e.id})),e.endnotesPart&&(this.endnoteMap=$a(e.endnotesPart.notes,function(e){return e.id})),e.settingsPart&&(this.defaultTabSize=null==(i=e.settingsPart.settings)?void 0:i.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r),this.renderSections(e.documentPart.body));this.options.inWrapper?t.appendChild(this.renderWrapper(i)):Zs(t,i),this.refreshTabStops()}},{key:"renderTheme",value:function(e,t){var r={},n=null==(n=e.theme)?void 0:n.fontScheme,e=(n&&(n.majorFont&&(r["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont)&&(r["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface),null==(n=e.theme)?void 0:n.colorScheme);if(e)for(var i=0,a=Object.entries(e.colors);i<a.length;i++){var o=V(a[i],2),s=o[0],o=o[1];r["--docx-".concat(s,"-color")]="#".concat(o)}n=this.styleToString(".".concat(this.className),r);t.appendChild(qs(n))}},{key:"renderFontTable",value:function(e,n){var i,a=this,t=k(e.fonts);try{var r=function(){var e,r=i.value,t=k(r.embedFontRefs);try{for(t.s();!(e=t.n()).done;)!function(){var t=e.value;a.tasks.push(a.document.loadFont(t.id,t.key).then(function(e){e={"font-family":r.name,src:"url(".concat(e,")")},"bold"!=t.type&&"boldItalic"!=t.type||(e["font-weight"]="bold"),"italic"!=t.type&&"boldItalic"!=t.type||(e["font-style"]="italic"),Vs(n,"docxjs ".concat(r.name," font")),e=a.styleToString("@font-face",e);n.appendChild(qs(e)),a.refreshTabStops()}))}()}catch(e){t.e(e)}finally{t.f()}};for(t.s();!(i=t.n()).done;)r()}catch(e){t.e(e)}finally{t.f()}}},{key:"processStyleName",value:function(e){return e?"".concat(this.className,"_").concat(null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()):this.className}},{key:"processStyles",value:function(e){var t,r=this,n=$a(e.filter(function(e){return null!=e.id}),function(e){return e.id}),i=k(e.filter(function(e){return e.basedOn}));try{for(i.s();!(t=i.n()).done;){var a=t.value,o=n[a.basedOn];if(o){a.paragraphProps=eo(a.paragraphProps,o.paragraphProps),a.runProps=eo(a.runProps,o.runProps);var s,l=k(o.styles);try{for(l.s();!(s=l.n()).done;)!function(){var t=s.value,e=a.styles.find(function(e){return e.target==t.target});e?r.copyStyleProperties(t.values,e.values):a.styles.push(_(_({},t),{},{values:_({},t.values)}))}()}catch(e){l.e(e)}finally{l.f()}}else this.options.debug&&console.warn("Can't find base style ".concat(a.basedOn))}}catch(e){i.e(e)}finally{i.f()}var u,c=k(e);try{for(c.s();!(u=c.n()).done;){var h=u.value;h.cssName=this.processStyleName(h.id)}}catch(e){c.e(e)}finally{c.f()}return n}},{key:"prodessNumberings",value:function(e){var t,r=k(e.filter(function(e){return e.pStyleName}));try{for(r.s();!(t=r.n()).done;){var n,i=t.value,a=this.findStyle(i.pStyleName);null!=a&&null!=(n=a.paragraphProps)&&n.numbering&&(a.paragraphProps.numbering.level=i.level)}}catch(e){r.e(e)}finally{r.f()}}},{key:"processElement",value:function(e){if(e.children){var t,r=k(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.parent=e,n.type==T.Table?this.processTable(n):this.processElement(n)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"processTable",value:function(e){var t,r=k(e.children);try{for(r.s();!(t=r.n()).done;){var n,i=k(t.value.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.cssStyle=this.copyStyleProperties(e.cellStyle,a.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(a)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"copyStyleProperties",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(e){var n,i=k((null==t&&(t={}),r=null==r?Object.getOwnPropertyNames(e):r));try{for(i.s();!(n=i.n()).done;){var a=n.value;e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(t[a]=e[a])}}catch(e){i.e(e)}finally{i.f()}}return t}},{key:"createSection",value:function(e,t){e=this.createElement("section",{className:e});return t&&(t.pageMargins&&(e.style.paddingLeft=t.pageMargins.left,e.style.paddingRight=t.pageMargins.right,e.style.paddingTop=t.pageMargins.top,e.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(e.style.width=t.pageSize.width),this.options.ignoreHeight||(e.style.minHeight=t.pageSize.height)),t.columns)&&t.columns.numberOfColumns&&(e.style.columnCount="".concat(t.columns.numberOfColumns),e.style.columnGap=t.columns.space,t.columns.separator)&&(e.style.columnRule="1px solid black"),e}},{key:"renderSections",value:function(e){var t=[];this.processElement(e);for(var r=this.splitBySection(e.children),n=null,i=0,a=r.length;i<a;i++){this.currentFootnoteIds=[];var o=r[i],s=o.sectProps||e.props,l=this.createSection(this.className,s),u=(this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l),this.createElement("article"));this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&i==a-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}return t}},{key:"renderHeaderFooter",value:function(e,t,r,n,i){e&&(n=(r=null!=(n=null!=(n=t.titlePage&&n?e.find(function(e){return"first"==e.type}):null)?n:r%2==1?e.find(function(e){return"even"==e.type}):null)?n:e.find(function(e){return"default"==e.type}))&&this.document.findPartByRelId(r.id,this.document.documentPart))&&(this.currentPart=n,this.usedHederFooterParts.includes(n.path)||(this.processElement(n.rootElement),this.usedHederFooterParts.push(n.path)),e=V(this.renderElements([n.rootElement],i),1)[0],null!=t&&t.pageMargins&&(n.rootElement.type===T.Header?(e.style.marginTop="calc(".concat(t.pageMargins.header," - ").concat(t.pageMargins.top,")"),e.style.minHeight="calc(".concat(t.pageMargins.top," - ").concat(t.pageMargins.header,")")):n.rootElement.type===T.Footer&&(e.style.marginBottom="calc(".concat(t.pageMargins.footer," - ").concat(t.pageMargins.bottom,")"),e.style.minHeight="calc(".concat(t.pageMargins.bottom," - ").concat(t.pageMargins.footer,")"))),this.currentPart=null)}},{key:"isPageBreakElement",value:function(e){return e.type==T.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}},{key:"splitBySection",value:function(e){var t,r=this,n={sectProps:null,elements:[]},i=[n],a=k(e);try{for(a.s();!(t=a.n()).done;){var o,s,l,u,c,h,f,d,p,m,g,y,b=t.value;b.type==T.Paragraph&&null!=(s=this.findStyle(b.styleName))&&null!=(o=s.paragraphProps)&&o.pageBreakBefore&&(n.sectProps=u,i.push(n={sectProps:null,elements:[]})),n.elements.push(b),b.type==T.Paragraph&&(u=(l=b).sectionProps,h=c=-1,this.options.breakPages&&l.children&&(c=l.children.findIndex(function(e){return-1!=(h=null!=(e=null==(e=e.children)?void 0:e.findIndex(r.isPageBreakElement.bind(r)))?e:-1)})),!u&&-1==c||(n.sectProps=u,i.push(n={sectProps:null,elements:[]})),-1!=c)&&(f=l.children[c],d=h<f.children.length-1,c<l.children.length-1||d)&&(p=b.children,m=_(_({},b),{},{children:p.slice(c)}),b.children=p.slice(0,c),n.elements.push(m),d)&&(g=f.children,y=_(_({},f),{},{children:g.slice(0,h)}),b.children.push(y),f.children=g.slice(h))}}catch(e){a.e(e)}finally{a.f()}for(var v=null,w=i.length-1;0<=w;w--)null==i[w].sectProps?i[w].sectProps=v:v=i[w].sectProps;return i}},{key:"renderWrapper",value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}},{key:"renderDefaultStyle",value:function(){var e=this.className;return qs("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; hyphens: auto; text-underline-position: from-font; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; z-index: 1; }\nsection.").concat(e,">footer { z-index: 1; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}},{key:"renderNumbering",value:function(e,n){var i,a=this,o="",s=[],t=k(e);try{var l,u,c;for(t.s();!(i=t.n()).done;)!function(){var t,e,r;l=i.value,u="p.".concat(a.numberingClass(l.id,l.level)),c="none",l.bullet?(t="--".concat(a.className,"-").concat(l.bullet.src).toLowerCase(),o+=a.styleToString("".concat(u,":before"),{content:"' '",display:"inline-block",background:"var(".concat(t,")")},l.bullet.style),a.tasks.push(a.document.loadNumberingImage(l.bullet.src).then(function(e){e="".concat(a.rootSelector," { ").concat(t,": url(").concat(e,") }");n.appendChild(qs(e))}))):l.levelText?(r=(e=a.numberingCounter(l.id,l.level))+" "+(l.start-1),0<l.level&&(o+=a.styleToString("p.".concat(a.numberingClass(l.id,l.level-1)),{"counter-reset":r})),s.push(r),o+=a.styleToString("".concat(u,":before"),_({content:a.levelTextToContent(l.levelText,l.suff,l.id,a.numFormatToCssValue(l.format)),"counter-increment":e},l.rStyle))):c=a.numFormatToCssValue(l.format),o+=a.styleToString(u,_({display:"list-item","list-style-position":"inside","list-style-type":c},l.pStyle))}()}catch(e){t.e(e)}finally{t.f()}return 0<s.length&&(o+=this.styleToString(this.rootSelector,{"counter-reset":s.join(" ")})),qs(o)}},{key:"renderStyles",value:function(e){var t,r="",n=this.styleMap,i=$a(e.filter(function(e){return e.isDefault}),function(e){return e.target}),a=k(e);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=s.styles;s.linked&&((o=s.linked&&n[s.linked])?l=l.concat(o.styles):this.options.debug&&console.warn("Can't find linked style ".concat(s.linked)));var u,c=k(l);try{for(c.s();!(u=c.n()).done;){var h,f=u.value,d="".concat(null!=(h=s.target)?h:"",".").concat(s.cssName);s.target!=f.target&&(d+=" ".concat(f.target)),i[s.target]==s&&(d=".".concat(this.className," ").concat(s.target,", ")+d),r+=this.styleToString(d,f.values)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){a.e(e)}finally{a.f()}return qs(r)}},{key:"renderNotes",value:function(e,t,r){var e=e.map(function(e){return t[e]}).filter(function(e){return e});0<e.length&&(e=this.createElement("ol",null,this.renderElements(e)),r.appendChild(e))}},{key:"renderElement",value:function(e){switch(e.type){case T.Paragraph:return this.renderParagraph(e);case T.BookmarkStart:return this.renderBookmarkStart(e);case T.BookmarkEnd:return null;case T.Run:return this.renderRun(e);case T.Table:return this.renderTable(e);case T.Row:return this.renderTableRow(e);case T.Cell:return this.renderTableCell(e);case T.Hyperlink:return this.renderHyperlink(e);case T.Drawing:return this.renderDrawing(e);case T.Image:return this.renderImage(e);case T.Text:case T.Text:return this.renderText(e);case T.DeletedText:return this.renderDeletedText(e);case T.Tab:return this.renderTab(e);case T.Symbol:return this.renderSymbol(e);case T.Break:return this.renderBreak(e);case T.Footer:return this.renderContainer(e,"footer");case T.Header:return this.renderContainer(e,"header");case T.Footnote:case T.Endnote:return this.renderContainer(e,"li");case T.FootnoteReference:return this.renderFootnoteReference(e);case T.EndnoteReference:return this.renderEndnoteReference(e);case T.NoBreakHyphen:return this.createElement("wbr");case T.VmlPicture:return this.renderVmlPicture(e);case T.VmlElement:return this.renderVmlElement(e);case T.MmlMath:return this.renderContainerNS(e,B,"math",{xmlns:B});case T.MmlMathParagraph:return this.renderContainer(e,"span");case T.MmlFraction:return this.renderContainerNS(e,B,"mfrac");case T.MmlBase:return this.renderContainerNS(e,B,e.parent.type==T.MmlMatrixRow?"mtd":"mrow");case T.MmlNumerator:case T.MmlDenominator:case T.MmlFunction:case T.MmlLimit:case T.MmlBox:return this.renderContainerNS(e,B,"mrow");case T.MmlGroupChar:return this.renderMmlGroupChar(e);case T.MmlLimitLower:return this.renderContainerNS(e,B,"munder");case T.MmlMatrix:return this.renderContainerNS(e,B,"mtable");case T.MmlMatrixRow:return this.renderContainerNS(e,B,"mtr");case T.MmlRadical:return this.renderMmlRadical(e);case T.MmlSuperscript:return this.renderContainerNS(e,B,"msup");case T.MmlSubscript:return this.renderContainerNS(e,B,"msub");case T.MmlDegree:case T.MmlSuperArgument:case T.MmlSubArgument:return this.renderContainerNS(e,B,"mn");case T.MmlFunctionName:return this.renderContainerNS(e,B,"ms");case T.MmlDelimiter:return this.renderMmlDelimiter(e);case T.MmlRun:return this.renderMmlRun(e);case T.MmlNary:return this.renderMmlNary(e);case T.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case T.MmlBar:return this.renderMmlBar(e);case T.MmlEquationArray:return this.renderMllList(e);case T.Inserted:return this.renderInserted(e);case T.Deleted:return this.renderDeleted(e)}return null}},{key:"renderChildren",value:function(e,t){return this.renderElements(e.children,t)}},{key:"renderElements",value:function(e,t){var r=this;return null==e?null:(e=e.flatMap(function(e){return r.renderElement(e)}).filter(function(e){return null!=e}),t&&Zs(t,e),e)}},{key:"renderContainer",value:function(e,t,r){return this.createElement(t,r,this.renderChildren(e))}},{key:"renderContainerNS",value:function(e,t,r,n){return D(t,r,n,this.renderChildren(e))}},{key:"renderParagraph",value:function(e){var t=this.createElement("p"),r=this.findStyle(e.styleName),n=(null==e.tabs&&(e.tabs=null==r||null==(n=r.paragraphProps)?void 0:n.tabs),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e),null!=(n=e.numbering)?n:null==r||null==(e=r.paragraphProps)?void 0:e.numbering);return n&&t.classList.add(this.numberingClass(n.id,n.level)),t}},{key:"renderRunProperties",value:function(e,t){this.renderCommonProperties(e,t)}},{key:"renderCommonProperties",value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize)&&(e["font-size"]=t.fontSize)}},{key:"renderHyperlink",value:function(t){var e,r=this.createElement("a");return this.renderChildren(t,r),this.renderStyleValues(t.cssStyle,r),t.href?r.href=t.href:t.id&&(e=this.document.documentPart.rels.find(function(e){return e.id==t.id&&"External"===e.targetMode}),r.href=null==e?void 0:e.target),r}},{key:"renderDrawing",value:function(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}},{key:"renderImage",value:function(e){var t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(function(e){t.src=e})),t}},{key:"renderText",value:function(e){return this.htmlDocument.createTextNode(e.text)}},{key:"renderDeletedText",value:function(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}},{key:"renderBreak",value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}},{key:"renderInserted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}},{key:"renderDeleted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}},{key:"renderSymbol",value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}},{key:"renderFootnoteReference",value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}},{key:"renderEndnoteReference",value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}},{key:"renderTab",value:function(r){var e,t=this.createElement("span");return t.innerHTML="&emsp;",this.options.experimental&&(t.className=this.tabStopClass(),e=null==(e=function(e){for(var t=r.parent;null!=t&&t.type!=e;)t=t.parent;return t}(T.Paragraph))?void 0:e.tabs,this.currentTabs.push({stops:e,span:t})),t}},{key:"renderBookmarkStart",value:function(e){var t=this.createElement("span");return t.id=e.name,t}},{key:"renderRun",value:function(e){var t,r;return e.fieldRun?null:(t=this.createElement("span"),e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign?(r=this.createElement(e.verticalAlign),this.renderChildren(e,r),t.appendChild(r)):this.renderChildren(e,t),t)}},{key:"renderTable",value:function(e){var t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}},{key:"renderTableColumns",value:function(e){var t,r=this.createElement("colgroup"),n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=this.createElement("col");i.width&&(a.style.width=i.width),r.appendChild(a)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderTableRow",value:function(e){var t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}},{key:"renderTableCell",value:function(e){var t=this.createElement("td"),r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t).rowSpan=1:this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}},{key:"renderVmlPicture",value:function(e){var t=Us("div");return this.renderChildren(e,t),t}},{key:"renderVmlElement",value:function(e){var t,r=Ws("svg"),n=(r.setAttribute("style",e.cssStyleText),this.renderVmlChildElement(e));return null!=(t=e.imageHref)&&t.id&&this.tasks.push(null==(t=this.document)?void 0:t.loadDocumentImage(e.imageHref.id,this.currentPart).then(function(e){return n.setAttribute("href",e)})),r.appendChild(n),requestAnimationFrame(function(){var e=r.firstElementChild.getBBox();r.setAttribute("width","".concat(Math.ceil(e.x+e.width))),r.setAttribute("height","".concat(Math.ceil(e.y+e.height)))}),r}},{key:"renderVmlChildElement",value:function(e){var r=Ws(e.tagName);Object.entries(e.attrs).forEach(function(e){var e=V(e,2),t=e[0],e=e[1];return r.setAttribute(t,e)});var t,n=k(e.children);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.type==T.VmlElement?r.appendChild(this.renderVmlChildElement(i)):r.appendChild.apply(r,q(to(this.renderElement(i))))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderMmlRadical",value:function(e){var t,r=e.children.find(function(e){return e.type==T.MmlBase});return null!=(t=e.props)&&t.hideDegree?D(B,"msqrt",null,this.renderElements([r])):(t=e.children.find(function(e){return e.type==T.MmlDegree}),D(B,"mroot",null,this.renderElements([r,t])))}},{key:"renderMmlDelimiter",value:function(e){var t,r=[];return r.push(D(B,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),r.push.apply(r,q(this.renderElements(e.children))),r.push(D(B,"mo",null,[null!=(t=e.props.endChar)?t:")"])),D(B,"mrow",null,r)}},{key:"renderMmlNary",value:function(e){var t=[],r=$a(e.children,function(e){return e.type}),n=r[T.MmlSuperArgument],i=r[T.MmlSubArgument],n=n?D(B,"mo",null,to(this.renderElement(n))):null,i=i?D(B,"mo",null,to(this.renderElement(i))):null,e=D(B,"mo",null,[null!=(e=null==(e=e.props)?void 0:e.char)?e:"∫"]);return t.push(n||i?D(B,"munderover",null,[e,i,n]):n?D(B,"mover",null,[e,n]):i?D(B,"munder",null,[e,i]):e),t.push.apply(t,q(this.renderElements(r[T.MmlBase].children))),D(B,"mrow",null,t)}},{key:"renderMmlPreSubSuper",value:function(e){var t=[],e=$a(e.children,function(e){return e.type}),r=e[T.MmlSuperArgument],n=e[T.MmlSubArgument],r=r?D(B,"mo",null,to(this.renderElement(r))):null,n=n?D(B,"mo",null,to(this.renderElement(n))):null,i=D(B,"mo",null);return t.push(D(B,"msubsup",null,[i,n,r])),t.push.apply(t,q(this.renderElements(e[T.MmlBase].children))),D(B,"mrow",null,t)}},{key:"renderMmlGroupChar",value:function(e){var t="bot"===e.props.verticalJustification?"mover":"munder",t=this.renderContainerNS(e,B,t);return e.props.char&&t.appendChild(D(B,"mo",null,[e.props.char])),t}},{key:"renderMmlBar",value:function(e){var t=this.renderContainerNS(e,B,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}},{key:"renderMmlRun",value:function(e){var t=D(B,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}},{key:"renderMllList",value:function(e){var t=D(B,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);var r,n=k(this.renderChildren(e));try{for(n.s();!(r=n.n()).done;){var i=r.value;t.appendChild(D(B,"mtr",null,[D(B,"mtd",null,[i])]))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"renderStyleValues",value:function(e,t){for(var r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}},{key:"renderClass",value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}},{key:"findStyle",value:function(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}},{key:"numberingClass",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"tabStopClass",value:function(){return"".concat(this.className,"-tab-stop")}},{key:"styleToString",value:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i="".concat(e," {\r\n");for(r in t)r.startsWith("$")||(i+=" ".concat(r,": ").concat(t[r],";\r\n"));return n&&(i+=n),i+"}\r\n"}},{key:"numberingCounter",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"levelTextToContent",value:function(e,t,r,n){var i=this;return'"'.concat(e.replace(/%\d*/g,function(e){e=parseInt(e.substring(1),10)-1;return'"counter('.concat(i.numberingCounter(r,e),", ").concat(n,')"')})).concat(null!=(e={tab:"\\9",space:"\\a0"}[t])?e:"",'"')}},{key:"numFormatToCssValue",value:function(e){var t;return null!=(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])?t:e}},{key:"refreshTabStops",value:function(){var i=this;this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(function(){var e,t=function(e){var e=0<arguments.length&&void 0!==e?e:document.body,t=document.createElement("div"),r=(t.style.width="100pt",e.appendChild(t),100/t.offsetWidth);return e.removeChild(t),r}(),r=k(i.currentTabs);try{for(r.s();!(e=r.n()).done;){var n=e.value;!function(e,t,r,n){var n=3<arguments.length&&void 0!==n?n:.75,i=e.closest("p"),a=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=getComputedStyle(i),l=0<(null==t?void 0:t.length)?t.map(function(e){return{pos:Is(e.position),leader:e.leader,style:e.style}}).sort(function(e,t){return e.pos-t.pos}):[Bs],t=l[l.length-1],u=o.width*n,c=Is(r),h=t.pos+c;if(h<u)for(;h<u&&l.length<50;h+=c)l.push(_(_({},Bs),{},{pos:h}));var r=parseFloat(s.marginLeft),t=o.left+r,f=(a.left-t)*n;if(null!=(s=l.find(function(e){return"clear"!=e.style&&e.pos>f}))){var d,p,a=1;switch(a="right"==s.style||"center"==s.style?(p=(t=Array.from(i.querySelectorAll(".".concat(e.className)))).indexOf(e)+1,(d=document.createRange()).setStart(e,1),p<t.length?d.setEndBefore(t[p]):d.setEndAfter(i),t="center"==s.style?.5:1,i=(p=d.getBoundingClientRect()).left+t*p.width-(o.left-r),s.pos-i*n):s.pos-f,e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(a.toFixed(0),"pt"),s.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}(n.span,n.stops,i.defaultTabSize,t)}}catch(e){r.e(e)}finally{r.f()}},500))}}]),Fs);function Fs(e){n(this,Fs),this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.tasks=[],this.createElement=Us}function Us(e,t,r){return D(void 0,e,t,r)}function Ws(e,t,r){return D("http://www.w3.org/2000/svg",e,t,r)}function D(e,t,r,n){e=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(e,r),n&&Zs(e,n),e}function Hs(e){e.innerHTML=""}function Zs(t,e){e.forEach(function(e){return t.appendChild("string"==typeof e||e instanceof String?document.createTextNode(e):e)})}function qs(e){return Us("style",{innerHTML:e})}function Vs(e,t){e.appendChild(document.createComment(t))}var Xs={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1};function Gs(){return(Gs=$(P().mark(function e(n,i,a,o){var s;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;var t=n,r=o;return r=_(_({},Xs),r),_s.load(t,new Ms(r),r);case 2:return s=e.sent,e.next=5,function(){var i=$(P().mark(function e(t,r,n,i){var a,o;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=_(_({},Xs),i),o=new zs(window.document),e.abrupt("return",(o.render(t,r,n,a),Promise.allSettled(o.tasks.filter(function(e){return e}))));case 2:case"end":return e.stop()}},e)}));return function(e,t,r,n){return i.apply(this,arguments)}}()(s,i,a,o);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ks,Js={ignoreLastRenderedPageBreak:!1},Ys={getData:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?fetch(e,t).then(function(e){return 200!==e.status?Promise.reject(e):e}):Promise.resolve(e)},render:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e?(e instanceof Blob?r=e:e instanceof Response?r=e.blob():e instanceof ArrayBuffer&&(r=new Blob([e])),function(){return Gs.apply(this,arguments)}(r,t,t,_(_({},Js),n))):(t.innerHTML="",Promise.resolve())},getBlob:(Ks=$(P().mark(function e(t){var r;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t instanceof Blob?(r=t,e.next=11):e.next=4;break;case 4:if(t instanceof Response)return e.next=7,t.blob();e.next=10;break;case 7:r=e.sent,e.next=11;break;case 10:t instanceof ArrayBuffer&&(r=new Blob([t]));case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}},e)})),function(e){return Ks.apply(this,arguments)})};function $s(){return($s=$(P().mark(function e(i,a){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a&&(a instanceof ArrayBuffer&&(a=new Blob([a])),t=i,r=URL.createObjectURL(a),n=void 0,(n=document.createElement("a")).download=t,n.style.display="none",n.href=r,document.body.appendChild(n),n.click(),document.body.removeChild(n));case 1:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}i(tl,[{key:"createWrapper",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vue-office-docx",this.wrapperMain=document.createElement("div"),this.wrapperMain.className="vue-office-docx-main",this.wrapper.appendChild(this.wrapperMain),this.container.appendChild(this.wrapper)}},{key:"setOptions",value:function(e){this.options=e}},{key:"setRequestOptions",value:function(e){this.requestOptions=e}},{key:"preview",value:function(e){var i=this;return new Promise(function(r,n){var t;Ys.getData(e,i.requestOptions).then((t=$(P().mark(function e(t){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ys.getBlob(t);case 2:i.fileData=e.sent,Ys.render(i.fileData,i.wrapperMain,i.options).then(function(){r()}).catch(function(e){Ys.render("",i.wrapperMain,i.options),n(e)});case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})).catch(function(e){Ys.render("",i.wrapperMain,i.options),n(e)})})}},{key:"save",value:function(e){!function(){$s.apply(this,arguments)}(e||"js-preview-docx-".concat((new Date).getTime(),".docx"),this.fileData)}},{key:"destroy",value:function(){this.container.removeChild(this.wrapper),this.container=null,this.wrapper=null,this.wrapperMain=null,this.options=null,this.requestOptions=null}}]);var Qs=tl,el={init:function(e,t,r){return new Qs(e,t,r)}};function tl(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};n(this,tl),Z(this,"container",null),Z(this,"wrapper",null),Z(this,"wrapperMain",null),Z(this,"options",{}),Z(this,"requestOptions",{}),Z(this,"fileData",null),this.container=e,this.options=t,this.requestOptions=r,this.createWrapper()}}.call(this,nl(30),nl(313),nl(564).setImmediate,nl(550).Buffer)},854:function(e,t,r){e.exports=n;var c=r(571).EventEmitter;function n(){c.call(this)}r(559)(n,c),n.Readable=r(590),n.Writable=r(862),n.Duplex=r(863),n.Transform=r(864),n.PassThrough=r(865),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function l(e){if(u(),0===c.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",l),t.on("error",l),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},855:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},856:function(e,t){},857:function(e,t,r){"use strict";var a=r(591).Buffer,n=r(858);function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}e.exports=(i.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return a.alloc(0);for(var t,r=a.allocUnsafe(e>>>0),n=this.head,i=0;n;)t=i,n.data.copy(r,t),i+=n.data.length,n=n.next;return r},i),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},858:function(e,t){},859:function(e,t,r){!function(r){function n(e){try{if(!r.localStorage)return}catch(e){return}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){var r;return n("noDeprecation")?e:(r=!1,function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)})}}.call(this,r(30))},860:function(e,t,r){var n=r(550),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},861:function(e,t,r){"use strict";e.exports=i;var n=r(649),e=Object.create(r(565));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e.inherits=r(559),e.inherits(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},862:function(e,t,r){e.exports=r(592)},863:function(e,t,r){e.exports=r(553)},864:function(e,t,r){e.exports=r(590).Transform},865:function(e,t,r){e.exports=r(590).PassThrough},866:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},867:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},868:function(e,t,r){var n=r(869);"string"==typeof n&&(n=[[e.i,n,""]]);r(88)(n,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)},869:function(e,t,r){(t=r(87)(!1)).push([e.i,".vue-office-docx {\n height: 100%;\n overflow-y: auto;\n}\n.vue-office-docx .docx-wrapper > section.docx {\n margin-bottom: 5px;\n}\n@media screen and (max-width: 800px) {\n .vue-office-docx .docx-wrapper {\n padding: 10px;\n }\n .vue-office-docx .docx-wrapper > section.docx {\n padding: 10px!important;\n width: 100% !important;\n }\n}\n",""]),e.exports=t}}]);