@hulkapps/app-manager-vue 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # App Manager Vue SDK
2
+
3
+ [//]: # (This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.)
4
+
5
+ ## Installation
6
+
7
+ You can install the package via npm:
8
+
9
+ ```bash
10
+ npm i @hulkapps/app-manager-vue
11
+ ```
12
+
13
+ ## Register
14
+
15
+ ```vue
16
+ import Vue from 'vue';
17
+ import AppManager from '@hulkapps/app-manager-vue';
18
+
19
+ Vue.use(AppManager);
20
+ ```
21
+
22
+
23
+ ## Usage
24
+
25
+ ```vue
26
+ <Banners type="header" />
27
+ <Banners type="footer" />
28
+ ```
29
+
30
+ ## License
31
+
32
+ The MIT License (MIT). Please see [License File](LICENSE) for more information.
@@ -17649,22 +17649,18 @@ var script = {
17649
17649
  },
17650
17650
 
17651
17651
  computed: {
17652
- mappedStaticContentHeaders: function () {
17653
- const computed = [];
17654
- const banner_type = this.type === 'header' ? 'headers' : 'footers';
17652
+ mappedStaticContentHeaders() {
17653
+ return this.staticContent[this.banner_type];
17654
+ },
17655
17655
 
17656
- for (var key in this.staticContent[banner_type]) {
17657
- if (!this.dismissedBanners.includes(parseInt(key))) {
17658
- computed.push(this.staticContent[banner_type][key]);
17659
- }
17660
- }
17661
-
17662
- return computed;
17656
+ banner_type() {
17657
+ return this.type === 'header' ? 'headers' : 'footers';
17663
17658
  }
17659
+
17664
17660
  },
17665
17661
  methods: {
17666
17662
  dismissBanner(key) {
17667
- this.dismissedBanners.push(key);
17663
+ this.staticContent[this.banner_type].splice(key, 1);
17668
17664
  }
17669
17665
 
17670
17666
  },
@@ -17672,7 +17668,9 @@ var script = {
17672
17668
  async mounted() {
17673
17669
  const {
17674
17670
  data
17675
- } = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/marketing-banners`);
17671
+ } = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/marketing-banners`).catch(error => {
17672
+ console.error(error);
17673
+ });
17676
17674
  this.staticContent = data.banners;
17677
17675
  }
17678
17676
 
@@ -17764,7 +17762,7 @@ var __vue_render__ = function () {
17764
17762
 
17765
17763
  var _c = _vm._self._c || _h;
17766
17764
 
17767
- return _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
17765
+ return _vm.mappedStaticContentHeaders && _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
17768
17766
  return _c('PBanner', {
17769
17767
  key: key,
17770
17768
  attrs: {
@@ -17790,7 +17788,7 @@ var __vue_staticRenderFns__ = [];
17790
17788
  const __vue_inject_styles__ = undefined;
17791
17789
  /* scoped */
17792
17790
 
17793
- const __vue_scope_id__ = "data-v-69017906";
17791
+ const __vue_scope_id__ = "data-v-1a9e80c4";
17794
17792
  /* module identifier */
17795
17793
 
17796
17794
  const __vue_module_identifier__ = undefined;
@@ -1,2 +1,2 @@
1
- var AppManagerVue=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},a=Object.prototype.toString;function u(e){return Array.isArray(e)}function h(e){return void 0===e}function c(e){return"[object ArrayBuffer]"===a.call(e)}function f(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===a.call(e)}function p(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var g={isArray:u,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===a.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:l,isUndefined:h,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:d,isStream:function(e){return f(e)&&d(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===a.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:p,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)p(arguments[r],n);return t},extend:function(e,t,n){return p(t,(function(t,r){e[r]=n&&"function"==typeof t?s(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function m(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var _=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(g.isURLSearchParams(t))r=t.toString();else{var i=[];g.forEach(t,(function(e,t){null!=e&&(g.isArray(e)?t+="[]":e=[e],g.forEach(e,(function(e){g.isDate(e)?e=e.toISOString():g.isObject(e)&&(e=JSON.stringify(e)),i.push(m(t)+"="+m(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function v(){this.handlers=[]}v.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},v.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},v.prototype.forEach=function(e){g.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var w=v,b="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function y(){throw new Error("setTimeout has not been defined")}function E(){throw new Error("clearTimeout has not been defined")}var k=y,R=E;function C(e){if(k===setTimeout)return setTimeout(e,0);if((k===y||!k)&&setTimeout)return k=setTimeout,setTimeout(e,0);try{return k(e,0)}catch(t){try{return k.call(null,e,0)}catch(t){return k.call(this,e,0)}}}"function"==typeof b.setTimeout&&(k=setTimeout),"function"==typeof b.clearTimeout&&(R=clearTimeout);var x,S=[],A=!1,O=-1;function T(){A&&x&&(A=!1,x.length?S=x.concat(S):O=-1,S.length&&L())}function L(){if(!A){var e=C(T);A=!0;for(var t=S.length;t;){for(x=S,S=[];++O<t;)x&&x[O].run();O=-1,t=S.length}x=null,A=!1,function(e){if(R===clearTimeout)return clearTimeout(e);if((R===E||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(e);try{R(e)}catch(t){try{return R.call(null,e)}catch(t){return R.call(this,e)}}}(e)}}function U(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];S.push(new M(e,t)),1!==S.length||A||C(L)}function M(e,t){this.fun=e,this.array=t}M.prototype.run=function(){this.fun.apply(null,this.array)};function B(){}var z=B,I=B,P=B,j=B,F=B,N=B,D=B;var q=b.performance||{},Z=q.now||q.mozNow||q.msNow||q.oNow||q.webkitNow||function(){return(new Date).getTime()};var H=new Date;var Y={nextTick:U,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:z,addListener:I,once:P,off:j,removeListener:F,removeAllListeners:N,emit:D,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Z.call(q),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-H)/1e3}},W=function(e,t){g.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},V=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},G={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$=function(e,t,n,r,i){var o=new Error(e);return V(o,t,n,r,i)},X=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t($("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)},K=g.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),g.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),g.isString(r)&&s.push("path="+r),g.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},J=function(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},Q=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ee=g.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=g.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function te(e){this.message=e}te.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},te.prototype.__CANCEL__=!0;var ne=te,re=function(e){return new Promise((function(t,n){var r,i=e.data,o=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}g.isFormData(i)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var f=J(e.baseURL,e.url);function l(){if(u){var r,i,o,h,c,f="getAllResponseHeaders"in u?(r=u.getAllResponseHeaders(),c={},r?(g.forEach(r.split("\n"),(function(e){if(h=e.indexOf(":"),i=g.trim(e.substr(0,h)).toLowerCase(),o=g.trim(e.substr(h+1)),i){if(c[i]&&Q.indexOf(i)>=0)return;c[i]="set-cookie"===i?(c[i]?c[i]:[]).concat([o]):c[i]?c[i]+", "+o:o}})),c):c):null,l={data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:f,config:e,request:u};X((function(e){t(e),a()}),(function(e){n(e),a()}),l),u=null}}if(u.open(e.method.toUpperCase(),_(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n($("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){n($("Network Error",e,null,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||G;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n($(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},g.isStandardBrowserEnv()){var d=(e.withCredentials||ee(f))&&e.xsrfCookieName?K.read(e.xsrfCookieName):void 0;d&&(o[e.xsrfHeaderName]=d)}"setRequestHeader"in u&&g.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:u.setRequestHeader(t,e)})),g.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new ne("canceled"):e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),i||(i=null),u.send(i)}))},ie=[],oe=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ae=!1;function ue(){ae=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ie[t]=e[t],oe[e.charCodeAt(t)]=t;oe["-".charCodeAt(0)]=62,oe["_".charCodeAt(0)]=63}function he(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(ie[(i=r)>>18&63]+ie[i>>12&63]+ie[i>>6&63]+ie[63&i]);return o.join("")}function ce(e){var t;ae||ue();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(he(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],i+=ie[t>>2],i+=ie[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=ie[t>>10],i+=ie[t>>4&63],i+=ie[t<<2&63],i+="="),o.push(i),o.join("")}function fe(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,h=u>>1,c=-7,f=n?i-1:0,l=n?-1:1,d=e[t+f];for(f+=l,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=l,c-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=h}return(d?-1:1)*s*Math.pow(2,o-r)}function le(e,t,n,r,i,o){var s,a,u,h=8*o-i-1,c=(1<<h)-1,f=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?l/u:l*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;e[n+d]=255&s,d+=p,s/=256,h-=8);e[n+d-p]|=128*g}var de={}.toString,pe=Array.isArray||function(e){return"[object Array]"==de.call(e)};function ge(){return _e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function me(e,t){if(ge()<t)throw new RangeError("Invalid typed array length");return _e.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=_e.prototype:(null===e&&(e=new _e(t)),e.length=t),e}function _e(e,t,n){if(!(_e.TYPED_ARRAY_SUPPORT||this instanceof _e))return new _e(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return be(this,e)}return ve(this,e,t,n)}function ve(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);_e.TYPED_ARRAY_SUPPORT?(e=t).__proto__=_e.prototype:e=ye(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!_e.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Re(t,n),i=(e=me(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(ke(t)){var n=0|Ee(t.length);return 0===(e=me(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?me(e,0):ye(e,t);if("Buffer"===t.type&&pe(t.data))return ye(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function we(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function be(e,t){if(we(t),e=me(e,t<0?0:0|Ee(t)),!_e.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ye(e,t){var n=t.length<0?0:0|Ee(t.length);e=me(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ee(e){if(e>=ge())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ge().toString(16)+" bytes");return 0|e}function ke(e){return!(null==e||!e._isBuffer)}function Re(e,t){if(ke(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ke(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Je(e).length;default:if(r)return Ke(e).length;t=(""+t).toLowerCase(),r=!0}}function Ce(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ne(this,t,n);case"utf8":case"utf-8":return Ie(this,t,n);case"ascii":return je(this,t,n);case"latin1":case"binary":return Fe(this,t,n);case"base64":return ze(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function xe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Se(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=_e.from(t,r)),ke(t))return 0===t.length?-1:Ae(e,t,n,r,i);if("number"==typeof t)return t&=255,_e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ae(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Ae(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function h(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(h(e,o)===h(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,l=0;l<u;l++)if(h(e,o+l)!==h(t,l)){f=!1;break}if(f)return o}return-1}function Oe(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Te(e,t,n,r){return Qe(Ke(t,e.length-n),e,n,r)}function Le(e,t,n,r){return Qe(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ue(e,t,n,r){return Le(e,t,n,r)}function Me(e,t,n,r){return Qe(Je(t),e,n,r)}function Be(e,t,n,r){return Qe(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function ze(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Ie(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,h=e[i],c=null,f=h>239?4:h>223?3:h>191?2:1;if(i+f<=n)switch(f){case 1:h<128&&(c=h);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&h)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=Pe)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Pe));return n}(r)}_e.TYPED_ARRAY_SUPPORT=void 0===b.TYPED_ARRAY_SUPPORT||b.TYPED_ARRAY_SUPPORT,_e.poolSize=8192,_e._augment=function(e){return e.__proto__=_e.prototype,e},_e.from=function(e,t,n){return ve(null,e,t,n)},_e.TYPED_ARRAY_SUPPORT&&(_e.prototype.__proto__=Uint8Array.prototype,_e.__proto__=Uint8Array),_e.alloc=function(e,t,n){return function(e,t,n,r){return we(t),t<=0?me(e,t):void 0!==n?"string"==typeof r?me(e,t).fill(n,r):me(e,t).fill(n):me(e,t)}(null,e,t,n)},_e.allocUnsafe=function(e){return be(null,e)},_e.allocUnsafeSlow=function(e){return be(null,e)},_e.isBuffer=et,_e.compare=function(e,t){if(!ke(e)||!ke(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},_e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_e.concat=function(e,t){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return _e.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=_e.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!ke(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},_e.byteLength=Re,_e.prototype._isBuffer=!0,_e.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)xe(this,t,t+1);return this},_e.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)xe(this,t,t+3),xe(this,t+1,t+2);return this},_e.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)xe(this,t,t+7),xe(this,t+1,t+6),xe(this,t+2,t+5),xe(this,t+3,t+4);return this},_e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ie(this,0,e):Ce.apply(this,arguments)},_e.prototype.equals=function(e){if(!ke(e))throw new TypeError("Argument must be a Buffer");return this===e||0===_e.compare(this,e)},_e.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},_e.prototype.compare=function(e,t,n,r,i){if(!ke(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),h=e.slice(t,n),c=0;c<a;++c)if(u[c]!==h[c]){o=u[c],s=h[c];break}return o<s?-1:s<o?1:0},_e.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},_e.prototype.indexOf=function(e,t,n){return Se(this,e,t,n,!0)},_e.prototype.lastIndexOf=function(e,t,n){return Se(this,e,t,n,!1)},_e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Oe(this,e,t,n);case"utf8":case"utf-8":return Te(this,e,t,n);case"ascii":return Le(this,e,t,n);case"latin1":case"binary":return Ue(this,e,t,n);case"base64":return Me(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Be(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},_e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Pe=4096;function je(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Fe(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Ne(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Xe(e[o]);return i}function De(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function qe(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Ze(e,t,n,r,i,o){if(!ke(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function He(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Ye(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function We(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ve(e,t,n,r,i){return i||We(e,0,n,4),le(e,t,n,r,23,4),n+4}function Ge(e,t,n,r,i){return i||We(e,0,n,8),le(e,t,n,r,52,8),n+8}_e.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),_e.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=_e.prototype;else{var i=t-e;n=new _e(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},_e.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},_e.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},_e.prototype.readUInt8=function(e,t){return t||qe(e,1,this.length),this[e]},_e.prototype.readUInt16LE=function(e,t){return t||qe(e,2,this.length),this[e]|this[e+1]<<8},_e.prototype.readUInt16BE=function(e,t){return t||qe(e,2,this.length),this[e]<<8|this[e+1]},_e.prototype.readUInt32LE=function(e,t){return t||qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_e.prototype.readUInt32BE=function(e,t){return t||qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_e.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},_e.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},_e.prototype.readInt8=function(e,t){return t||qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_e.prototype.readInt16LE=function(e,t){t||qe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},_e.prototype.readInt16BE=function(e,t){t||qe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},_e.prototype.readInt32LE=function(e,t){return t||qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_e.prototype.readInt32BE=function(e,t){return t||qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_e.prototype.readFloatLE=function(e,t){return t||qe(e,4,this.length),fe(this,e,!0,23,4)},_e.prototype.readFloatBE=function(e,t){return t||qe(e,4,this.length),fe(this,e,!1,23,4)},_e.prototype.readDoubleLE=function(e,t){return t||qe(e,8,this.length),fe(this,e,!0,52,8)},_e.prototype.readDoubleBE=function(e,t){return t||qe(e,8,this.length),fe(this,e,!1,52,8)},_e.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ze(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},_e.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ze(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},_e.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,1,255,0),_e.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},_e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,65535,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):He(this,e,t,!0),t+2},_e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,65535,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):He(this,e,t,!1),t+2},_e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,4294967295,0),_e.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ye(this,e,t,!0),t+4},_e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,4294967295,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},_e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ze(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},_e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ze(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},_e.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,1,127,-128),_e.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},_e.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,32767,-32768),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):He(this,e,t,!0),t+2},_e.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,32767,-32768),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):He(this,e,t,!1),t+2},_e.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,2147483647,-2147483648),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ye(this,e,t,!0),t+4},_e.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},_e.prototype.writeFloatLE=function(e,t,n){return Ve(this,e,t,!0,n)},_e.prototype.writeFloatBE=function(e,t,n){return Ve(this,e,t,!1,n)},_e.prototype.writeDoubleLE=function(e,t,n){return Ge(this,e,t,!0,n)},_e.prototype.writeDoubleBE=function(e,t,n){return Ge(this,e,t,!1,n)},_e.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!_e.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},_e.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!_e.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=ke(e)?e:Ke(new _e(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Xe(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ke(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Je(e){return function(e){var t,n,r,i,o,s;ae||ue();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new se(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=oe[e.charCodeAt(t)]<<18|oe[e.charCodeAt(t+1)]<<12|oe[e.charCodeAt(t+2)]<<6|oe[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=oe[e.charCodeAt(t)]<<2|oe[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=oe[e.charCodeAt(t)]<<10|oe[e.charCodeAt(t+1)]<<4|oe[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($e,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Qe(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function et(e){return null!=e&&(!!e._isBuffer||tt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&tt(e.slice(0,0))}(e))}function tt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var nt,rt,it=dt(b.fetch)&&dt(b.ReadableStream);function ot(e){rt||(rt=new b.XMLHttpRequest).open("GET",b.location.host?"/":"https://example.com");try{return rt.responseType=e,rt.responseType===e}catch(e){return!1}}var st=void 0!==b.ArrayBuffer,at=st&&dt(b.ArrayBuffer.prototype.slice),ut=st&&ot("arraybuffer"),ht=!it&&at&&ot("ms-stream"),ct=!it&&st&&ot("moz-chunked-arraybuffer"),ft=dt(rt.overrideMimeType),lt=dt(b.VBArray);function dt(e){return"function"==typeof e}rt=null;var pt="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},gt=/%[sdj%]/g;function mt(e){if(!Ut(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(yt(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(gt,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])Ot(s)||!zt(s)?o+=" "+s:o+=" "+yt(s);return o}function _t(e,t){if(Mt(b.process))return function(){return _t(e,t).apply(this,arguments)};if(!0===Y.noDeprecation)return e;var n=!1;return function(){if(!n){if(Y.throwDeprecation)throw new Error(t);Y.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var vt,wt={};function bt(e){if(Mt(vt)&&(vt=Y.env.NODE_DEBUG||""),e=e.toUpperCase(),!wt[e])if(new RegExp("\\b"+e+"\\b","i").test(vt)){wt[e]=function(){var t=mt.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else wt[e]=function(){};return wt[e]}function yt(e,t){var n={seen:[],stylize:kt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),At(t)?n.showHidden=t:t&&Ht(n,t),Mt(n.showHidden)&&(n.showHidden=!1),Mt(n.depth)&&(n.depth=2),Mt(n.colors)&&(n.colors=!1),Mt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Et),Rt(n,e,n.depth)}function Et(e,t){var n=yt.styles[t];return n?"["+yt.colors[n][0]+"m"+e+"["+yt.colors[n][1]+"m":e}function kt(e,t){return e}function Rt(e,t,n){if(e.customInspect&&t&&jt(t.inspect)&&t.inspect!==yt&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Ut(r)||(r=Rt(e,r,n)),r}var i=function(e,t){if(Mt(t))return e.stylize("undefined","undefined");if(Ut(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Lt(t))return e.stylize(""+t,"number");if(At(t))return e.stylize(""+t,"boolean");if(Ot(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Pt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ct(t);if(0===o.length){if(jt(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Bt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(It(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Pt(t))return Ct(t)}var u,h="",c=!1,f=["{","}"];(St(t)&&(c=!0,f=["[","]"]),jt(t))&&(h=" [Function"+(t.name?": "+t.name:"")+"]");return Bt(t)&&(h=" "+RegExp.prototype.toString.call(t)),It(t)&&(h=" "+Date.prototype.toUTCString.call(t)),Pt(t)&&(h=" "+Ct(t)),0!==o.length||c&&0!=t.length?n<0?Bt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)Yt(t,String(s))?o.push(xt(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(xt(e,t,n,r,i,!0))})),o}(e,t,n,s,o):o.map((function(r){return xt(e,t,n,s,r,c)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,h,f)):f[0]+h+f[1]}function Ct(e){return"["+Error.prototype.toString.call(e)+"]"}function xt(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Yt(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=Ot(n)?Rt(e,u.value,null):Rt(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),Mt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function St(e){return Array.isArray(e)}function At(e){return"boolean"==typeof e}function Ot(e){return null===e}function Tt(e){return null==e}function Lt(e){return"number"==typeof e}function Ut(e){return"string"==typeof e}function Mt(e){return void 0===e}function Bt(e){return zt(e)&&"[object RegExp]"===Nt(e)}function zt(e){return"object"==typeof e&&null!==e}function It(e){return zt(e)&&"[object Date]"===Nt(e)}function Pt(e){return zt(e)&&("[object Error]"===Nt(e)||e instanceof Error)}function jt(e){return"function"==typeof e}function Ft(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Nt(e){return Object.prototype.toString.call(e)}function Dt(e){return e<10?"0"+e.toString(10):e.toString(10)}yt.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]},yt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var qt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zt(){var e=new Date,t=[Dt(e.getHours()),Dt(e.getMinutes()),Dt(e.getSeconds())].join(":");return[e.getDate(),qt[e.getMonth()],t].join(" ")}function Ht(e,t){if(!t||!zt(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Yt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Wt={inherits:pt,_extend:Ht,log:function(){console.log("%s - %s",Zt(),mt.apply(null,arguments))},isBuffer:function(e){return _e.isBuffer(e)},isPrimitive:Ft,isFunction:jt,isError:Pt,isDate:It,isObject:zt,isRegExp:Bt,isUndefined:Mt,isSymbol:function(e){return"symbol"==typeof e},isString:Ut,isNumber:Lt,isNullOrUndefined:Tt,isNull:Ot,isBoolean:At,isArray:St,inspect:yt,deprecate:_t,format:mt,debuglog:bt};function Vt(){}function Gt(){Gt.init.call(this)}function $t(e){return void 0===e._maxListeners?Gt.defaultMaxListeners:e._maxListeners}function Xt(e,t,n){if(t)e.call(n);else for(var r=e.length,i=on(e,r),o=0;o<r;++o)i[o].call(n)}function Kt(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=on(e,i),s=0;s<i;++s)o[s].call(n,r)}function Jt(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=on(e,o),a=0;a<o;++a)s[a].call(n,r,i)}function Qt(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=on(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}function en(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=on(e,i),s=0;s<i;++s)o[s].apply(n,r)}function tn(e,t,n,r){var i,o,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=new Vt,e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(i=$t(e))&&i>0&&s.length>i){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=o[t]=n,++e._eventsCount;return e}function nn(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function rn(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function on(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function sn(){this.head=null,this.tail=null,this.length=0}Vt.prototype=Object.create(null),Gt.EventEmitter=Gt,Gt.usingDomains=!1,Gt.prototype.domain=void 0,Gt.prototype._events=void 0,Gt.prototype._maxListeners=void 0,Gt.defaultMaxListeners=10,Gt.init=function(){this.domain=null,Gt.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Vt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Gt.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Gt.prototype.getMaxListeners=function(){return $t(this)},Gt.prototype.emit=function(e){var t,n,r,i,o,s,a,u="error"===e;if(s=this._events)u=u&&null==s.error;else if(!u)return!1;if(a=this.domain,u){if(t=arguments[1],!a){if(t instanceof Error)throw t;var h=new Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(n=s[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:Xt(n,c,this);break;case 2:Kt(n,c,this,arguments[1]);break;case 3:Jt(n,c,this,arguments[1],arguments[2]);break;case 4:Qt(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];en(n,c,this,i)}return!0},Gt.prototype.addListener=function(e,t){return tn(this,e,t,!1)},Gt.prototype.on=Gt.prototype.addListener,Gt.prototype.prependListener=function(e,t){return tn(this,e,t,!0)},Gt.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,nn(this,e,t)),this},Gt.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,nn(this,e,t)),this},Gt.prototype.removeListener=function(e,t){var n,r,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new Vt:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Vt,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,s||t)}return this},Gt.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Vt,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new Vt:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Vt,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Gt.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},Gt.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):rn.call(e,t)},Gt.prototype.listenerCount=rn,Gt.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},sn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},sn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},sn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},sn.prototype.clear=function(){this.head=this.tail=null,this.length=0},sn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},sn.prototype.concat=function(e){if(0===this.length)return _e.alloc(0);if(1===this.length)return this.head.data;for(var t=_e.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var an=_e.isEncoding||function(e){switch(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 un(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!an(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=cn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=fn;break;default:return void(this.write=hn)}this.charBuffer=new _e(6),this.charReceived=0,this.charLength=0}function hn(e){return e.toString(this.encoding)}function cn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function fn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}un.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},un.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},un.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},pn.ReadableState=dn;var ln=bt("stream");function dn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof qn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new sn,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new un(e.encoding),this.encoding=e.encoding)}function pn(e){if(!(this instanceof pn))return new pn(e);this._readableState=new dn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Gt.call(this)}function gn(e,t,n,r,i){var o=function(e,t){var n=null;_e.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,vn(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&vn(e))),function(e,t){t.readingMore||(t.readingMore=!0,U(bn,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}pt(pn,Gt),pn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=_e.from(e,t),t=""),gn(this,n,e,t,!1)},pn.prototype.unshift=function(e){return gn(this,this._readableState,e,"",!0)},pn.prototype.isPaused=function(){return!1===this._readableState.flowing},pn.prototype.setEncoding=function(e){return this._readableState.decoder=new un(e),this._readableState.encoding=e,this};var mn=8388608;function _n(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=mn?e=mn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function vn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ln("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?U(wn,e):wn(e))}function wn(e){ln("emit readable"),e.emit("readable"),kn(e)}function bn(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ln("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function yn(e){ln("readable nexttick read 0"),e.read(0)}function En(e,t){t.reading||(ln("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),kn(e),t.flowing&&!t.reading&&e.read(0)}function kn(e){var t=e._readableState;for(ln("flow",t.flowing);t.flowing&&null!==e.read(););}function Rn(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=_e.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function Cn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,U(xn,t,e))}function xn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Sn(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function An(){}function On(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function Tn(e,t){Object.defineProperty(this,"buffer",{get:_t((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof qn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?U(i,r):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var o=zn(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||Bn(e,n),r?U(Mn,e,n,o,i):Mn(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new jn(this)}function Ln(e){if(!(this instanceof Ln||this instanceof qn))return new Ln(e);this._writableState=new Tn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),Gt.call(this)}function Un(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Mn(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),Pn(e,t)}function Bn(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0;n;)i[s]=n,n=n.next,s+=1;Un(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new jn(t)}else{for(;n;){var a=n.chunk,u=n.encoding,h=n.callback;if(Un(e,t,!1,t.objectMode?1:a.length,a,u,h),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function zn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function In(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Pn(e,t){var n=zn(t);return n&&(0===t.pendingcb?(In(e,t),t.finished=!0,e.emit("finish")):In(e,t)),n}function jn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}pn.prototype.read=function(e){ln("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ln("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Cn(this):vn(this),null;if(0===(e=_n(e,t))&&t.ended)return 0===t.length&&Cn(this),null;var r,i=t.needReadable;return ln("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&ln("length less than watermark",i=!0),t.ended||t.reading?ln("reading or ended",i=!1):i&&(ln("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_n(n,t))),null===(r=e>0?Rn(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Cn(this)),null!==r&&this.emit("data",r),r},pn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},pn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,ln("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?s:h;function o(e){ln("onunpipe"),e===n&&h()}function s(){ln("onend"),e.end()}r.endEmitted?U(i):n.once("end",i),e.on("unpipe",o);var a=function(e){return function(){var t=e._readableState;ln("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,kn(e))}}(n);e.on("drain",a);var u=!1;function h(){ln("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",a),e.removeListener("error",l),e.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",h),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var c=!1;function f(t){ln("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Sn(r.pipes,e))&&!u&&(ln("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function l(t){ln("onerror",t),g(),e.removeListener("error",l),0===function(e,t){return e.listeners(t).length}(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){ln("onfinish"),e.removeListener("close",d),g()}function g(){ln("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",l),e.once("close",d),e.once("finish",p),e.emit("pipe",n),r.flowing||(ln("pipe resume"),n.resume()),e},pn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=Sn(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},pn.prototype.on=function(e,t){var n=Gt.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&vn(this):U(yn,this))}return n},pn.prototype.addListener=pn.prototype.on,pn.prototype.resume=function(){var e=this._readableState;return e.flowing||(ln("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,U(En,e,t))}(this,e)),this},pn.prototype.pause=function(){return ln("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(ln("pause"),this._readableState.flowing=!1,this.emit("pause")),this},pn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(ln("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){(ln("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){ln("wrapped _read",t),n&&(n=!1,e.resume())},r},pn._fromList=Rn,Ln.WritableState=Tn,pt(Ln,Gt),Tn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Ln.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Ln.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),_e.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=An),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),U(t,n)}(this,n):function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):_e.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),U(r,o),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=_e.from(t,n));return t}(t,n,r),_e.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new On(n,r,i),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Un(e,t,!1,o,n,r,i);return s}(this,r,e,t,n)),i},Ln.prototype.cork=function(){this._writableState.corked++},Ln.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||Bn(this,e))},Ln.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Ln.prototype._write=function(e,t,n){n(new Error("not implemented"))},Ln.prototype._writev=null,Ln.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Pn(e,t),n&&(t.finished?U(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},pt(qn,pn);for(var Fn=Object.keys(Ln.prototype),Nn=0;Nn<Fn.length;Nn++){var Dn=Fn[Nn];qn.prototype[Dn]||(qn.prototype[Dn]=Ln.prototype[Dn])}function qn(e){if(!(this instanceof qn))return new qn(e);pn.call(this,e),Ln.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",Zn)}function Zn(){this.allowHalfOpen||this._writableState.ended||U(Hn,this)}function Hn(e){e.end()}function Yn(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Wn(e){if(!(this instanceof Wn))return new Wn(e);qn.call(this,e),this._transformState=new Yn(this);var t=this;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.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Vn(t,e)})):Vn(t)}))}function Vn(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Gn(e){if(!(this instanceof Gn))return new Gn(e);Wn.call(this,e)}function $n(){Gt.call(this)}pt(Wn,qn),Wn.prototype.push=function(e,t){return this._transformState.needTransform=!1,qn.prototype.push.call(this,e,t)},Wn.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Wn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Wn.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},pt(Gn,Wn),Gn.prototype._transform=function(e,t,n){n(null,e)},pt($n,Gt),$n.Readable=pn,$n.Writable=Ln,$n.Duplex=qn,$n.Transform=Wn,$n.PassThrough=Gn,$n.Stream=$n,$n.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(h(),0===Gt.listenerCount(this,"error"))throw e}function h(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",h),n.removeListener("close",h),e.removeListener("close",h)}return n.on("error",u),e.on("error",u),n.on("end",h),n.on("close",h),e.on("close",h),e.emit("pipe",n),e};var Xn=3,Kn=4;function Jn(e,t,n){var r,i=this;if(pn.call(i),i._mode=n,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",(function(){Y.nextTick((function(){i.emit("close")}))})),"fetch"===n){i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText;for(var o,s,a=t.headers[Symbol.iterator]();o=(s=a.next()).value,!s.done;)i.headers[o[0].toLowerCase()]=o[1],i.rawHeaders.push(o[0],o[1]);var u=t.body.getReader();(r=function(){u.read().then((function(e){i._destroyed||(e.done?i.push(null):(i.push(new _e(e.value)),r()))}))})()}else{if(i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===i.headers[n]&&(i.headers[n]=[]),i.headers[n].push(t[2])):void 0!==i.headers[n]?i.headers[n]+=", "+t[2]:i.headers[n]=t[2],i.rawHeaders.push(t[1],t[2])}})),i._charset="x-user-defined",!ft){var h=i.rawHeaders["mime-type"];if(h){var c=h.match(/;\s*charset=([^;])(;|$)/);c&&(i._charset=c[1].toLowerCase())}i._charset||(i._charset="utf-8")}}}function Qn(e){var t,n=this;Ln.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new _e(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!ft;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return it&&t?"fetch":ct?"moz-chunked-arraybuffer":ht?"ms-stream":ut&&e?"arraybuffer":lt&&e?"text:vbarray":"text"}(t,r),n.on("finish",(function(){n._onFinish()}))}pt(Jn,pn),Jn.prototype._read=function(){},Jn.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Kn)break;try{n=new b.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new _e(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var r=n.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new _e(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);e.push(i)}else e.push(r,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==Kn||!t.response)break;n=t.response,e.push(new _e(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==Xn||!n)break;e.push(new _e(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==Xn)break;var s=new b.MSStreamReader;s.onprogress=function(){s.result.byteLength>e._pos&&(e.push(new _e(new Uint8Array(s.result.slice(e._pos)))),e._pos=s.result.byteLength)},s.onload=function(){e.push(null)},s.readAsArrayBuffer(n)}e._xhr.readyState===Kn&&"ms-stream"!==e._mode&&e.push(null)},pt(Qn,Ln);var er=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];Qn.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===er.indexOf(n)&&(this._headers[n]={name:e,value:t})},Qn.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},Qn.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},Qn.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,n=e._opts,r=e._headers;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method||(t=function(){if(void 0!==nt)return nt;try{new b.Blob([new ArrayBuffer(1)]),nt=!0}catch(e){nt=!1}return nt}()?new b.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(et(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):_e.concat(e._body).toString()),"fetch"===e._mode){var i=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));b.fetch(e._opts.url,{method:e._opts.method,headers:i,body:t,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new b.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void Y.nextTick((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case Xn:case Kn:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void Y.nextTick((function(){e.emit("error",t)}))}}}},Qn.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},Qn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Jn(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Qn.prototype._write=function(e,t,n){this._body.push(e),n()},Qn.prototype.abort=Qn.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Qn.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),Ln.prototype.end.call(this,e,t,n)},Qn.prototype.flushHeaders=function(){},Qn.prototype.setTimeout=function(){},Qn.prototype.setNoDelay=function(){},Qn.prototype.setSocketKeepAlive=function(){};/*! https://mths.be/punycode v1.4.1 by @mathias */
2
- var tr=2147483647,nr=/[^\x20-\x7E]/,rr=/[\x2E\u3002\uFF0E\uFF61]/g,ir={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},or=Math.floor,sr=String.fromCharCode;function ar(e){throw new RangeError(ir[e])}function ur(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function hr(e,t,n){var r=0;for(e=n?or(e/700):e>>1,e+=or(e/t);e>455;r+=36)e=or(e/35);return or(r+36*e/(e+38))}function cr(e){return function(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}((e=e.replace(rr,".")).split("."),t).join(".");return r+i}(e,(function(e){return nr.test(e)?"xn--"+function(e){var t,n,r,i,o,s,a,u,h,c,f,l,d,p,g,m=[];for(e=function(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}(e),l=e.length,t=128,n=0,o=72,s=0;s<l;++s)(f=e[s])<128&&m.push(sr(f));for(r=i=m.length,i&&m.push("-");r<l;){for(a=tr,s=0;s<l;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>or((tr-n)/(d=r+1))&&ar("overflow"),n+=(a-t)*d,t=a,s=0;s<l;++s)if((f=e[s])<t&&++n>tr&&ar("overflow"),f==t){for(u=n,h=36;!(u<(c=h<=o?1:h>=o+26?26:h-o));h+=36)g=u-c,p=36-c,m.push(sr(ur(c+g%p,0))),u=or(g/p);m.push(sr(ur(u,0))),o=hr(n,d,r==i),n=0,++r}++n,++t}return m.join("")}(e):e}))}function fr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var lr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function dr(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function pr(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var gr=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t};function mr(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var u=0;u<a;++u){var h,c,f,l,d=e[u].replace(o,"%20"),p=d.indexOf(n);p>=0?(h=d.substr(0,p),c=d.substr(p+1)):(h=d,c=""),f=decodeURIComponent(h),l=decodeURIComponent(c),fr(i,f)?lr(i[f])?i[f].push(l):i[f]=[i[f],l]:i[f]=l}return i}var _r={parse:Lr,resolve:function(e,t){return Lr(e,!1,!0).resolve(t)},resolveObject:function(e,t){return e?Lr(e,!1,!0).resolveObject(t):t},format:function(e){Ut(e)&&(e=Ur({},e));return Mr(e)},Url:vr};function vr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var wr=/^([a-z0-9.+-]+:)/i,br=/:[0-9]*$/,yr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Er=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),kr=["'"].concat(Er),Rr=["%","/","?",";","#"].concat(kr),Cr=["/","?","#"],xr=/^[+a-z0-9A-Z_-]{0,63}$/,Sr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ar={javascript:!0,"javascript:":!0},Or={javascript:!0,"javascript:":!0},Tr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Lr(e,t,n){if(e&&zt(e)&&e instanceof vr)return e;var r=new vr;return r.parse(e,t,n),r}function Ur(e,t,n,r){if(!Ut(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),o=-1!==i&&i<t.indexOf("#")?"?":"#",s=t.split(o);s[0]=s[0].replace(/\\/g,"/");var a=t=s.join(o);if(a=a.trim(),!r&&1===t.split("#").length){var u=yr.exec(a);if(u)return e.path=a,e.href=a,e.pathname=u[1],u[2]?(e.search=u[2],e.query=n?mr(e.search.substr(1)):e.search.substr(1)):n&&(e.search="",e.query={}),e}var h,c,f,l,d=wr.exec(a);if(d){var p=(d=d[0]).toLowerCase();e.protocol=p,a=a.substr(d.length)}if(r||d||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===a.substr(0,2);!g||d&&Or[d]||(a=a.substr(2),e.slashes=!0)}if(!Or[d]&&(g||d&&!Tr[d])){var m,_,v=-1;for(h=0;h<Cr.length;h++)-1!==(c=a.indexOf(Cr[h]))&&(-1===v||c<v)&&(v=c);for(-1!==(_=-1===v?a.lastIndexOf("@"):a.lastIndexOf("@",v))&&(m=a.slice(0,_),a=a.slice(_+1),e.auth=decodeURIComponent(m)),v=-1,h=0;h<Rr.length;h++)-1!==(c=a.indexOf(Rr[h]))&&(-1===v||c<v)&&(v=c);-1===v&&(v=a.length),e.host=a.slice(0,v),a=a.slice(v),Br(e),e.hostname=e.hostname||"";var w="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!w){var b=e.hostname.split(/\./);for(h=0,f=b.length;h<f;h++){var y=b[h];if(y&&!y.match(xr)){for(var E="",k=0,R=y.length;k<R;k++)y.charCodeAt(k)>127?E+="x":E+=y[k];if(!E.match(xr)){var C=b.slice(0,h),x=b.slice(h+1),S=y.match(Sr);S&&(C.push(S[1]),x.unshift(S[2])),x.length&&(a="/"+x.join(".")+a),e.hostname=C.join(".");break}}}}e.hostname.length>255?e.hostname="":e.hostname=e.hostname.toLowerCase(),w||(e.hostname=cr(e.hostname)),l=e.port?":"+e.port:"";var A=e.hostname||"";e.host=A+l,e.href+=e.host,w&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Ar[p])for(h=0,f=kr.length;h<f;h++){var O=kr[h];if(-1!==a.indexOf(O)){var T=encodeURIComponent(O);T===O&&(T=escape(O)),a=a.split(O).join(T)}}var L=a.indexOf("#");-1!==L&&(e.hash=a.substr(L),a=a.slice(0,L));var U=a.indexOf("?");if(-1!==U?(e.search=a.substr(U),e.query=a.substr(U+1),n&&(e.query=mr(e.query)),a=a.slice(0,U)):n&&(e.search="",e.query={}),a&&(e.pathname=a),Tr[p]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){l=e.pathname||"";var M=e.search||"";e.path=l+M}return e.href=Mr(e),e}function Mr(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var n,r,i,o,s=e.protocol||"",a=e.pathname||"",u=e.hash||"",h=!1,c="";e.host?h=t+e.host:e.hostname&&(h=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(h+=":"+e.port)),e.query&&zt(e.query)&&Object.keys(e.query).length&&(n=e.query,r=r||"&",i=i||"=",null===n&&(n=void 0),c="object"==typeof n?pr(gr(n),(function(e){var t=encodeURIComponent(dr(e))+i;return lr(n[e])?pr(n[e],(function(e){return t+encodeURIComponent(dr(e))})).join(r):t+encodeURIComponent(dr(n[e]))})).join(r):o?encodeURIComponent(dr(o))+i+encodeURIComponent(dr(n)):"");var f=e.search||c&&"?"+c||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||Tr[s])&&!1!==h?(h="//"+(h||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):h||(h=""),u&&"#"!==u.charAt(0)&&(u="#"+u),f&&"?"!==f.charAt(0)&&(f="?"+f),s+h+(a=a.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(f=f.replace("#","%23"))+u}function Br(e){var t=e.host,n=br.exec(t);n&&(":"!==(n=n[0])&&(e.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(e.hostname=t)}function zr(e,t){"string"==typeof e&&(e=Lr(e));var n=-1===b.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||n,i=e.hostname||e.host,o=e.port,s=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?r+"//"+i:"")+(o?":"+o:"")+s,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var a=new Qn(e);return t&&a.on("response",t),a}function Ir(){}vr.prototype.parse=function(e,t,n){return Ur(this,e,t,n)},vr.prototype.format=function(){return Mr(this)},vr.prototype.resolve=function(e){return this.resolveObject(Lr(e,!1,!0)).format()},vr.prototype.resolveObject=function(e){if(Ut(e)){var t=new vr;t.parse(e,!1,!0),e=t}for(var n,r=new vr,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var h=a[u];"protocol"!==h&&(r[h]=e[h])}return Tr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Tr[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var l=c[f];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Or[e.protocol])r.pathname=e.pathname;else{for(n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,m=r.pathname&&"/"===r.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=_||m||r.host&&e.pathname,w=v,b=r.pathname&&r.pathname.split("/")||[],y=r.protocol&&!Tr[r.protocol];if(n=e.pathname&&e.pathname.split("/")||[],y&&(r.hostname="",r.port=null,r.host&&(""===b[0]?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),v=v&&(""===n[0]||""===b[0])),_)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=n;else if(n.length)b||(b=[]),b.pop(),b=b.concat(n),r.search=e.search,r.query=e.query;else if(!Tt(e.search))return y&&(r.hostname=r.host=b.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,Ot(r.pathname)&&Ot(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=b.slice(-1)[0],k=(r.host||e.host||b.length>1)&&("."===E||".."===E)||""===E,R=0,C=b.length;C>=0;C--)"."===(E=b[C])?b.splice(C,1):".."===E?(b.splice(C,1),R++):R&&(b.splice(C,1),R--);if(!v&&!w)for(;R--;R)b.unshift("..");!v||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),k&&"/"!==b.join("/").substr(-1)&&b.push("");var x=""===b[0]||b[0]&&"/"===b[0].charAt(0);return y&&(r.hostname=r.host=x?"":b.length?b.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&b.length)&&!x&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),Ot(r.pathname)&&Ot(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},vr.prototype.parseHost=function(){return Br(this)},Ir.defaultMaxSockets=4;var Pr={request:zr,get:function(e,t){var n=zr(e,t);return n.end(),n},Agent:Ir,METHODS:["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],STATUS_CODES:{100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}};function jr(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var Fr,Nr=Object.prototype.hasOwnProperty,Dr=Object.keys||function(e){var t=[];for(var n in e)Nr.call(e,n)&&t.push(n);return t},qr=Array.prototype.slice;function Zr(){return void 0!==Fr?Fr:Fr="foo"===function(){}.name}function Hr(e){return Object.prototype.toString.call(e)}function Yr(e){return!et(e)&&("function"==typeof b.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function Wr(e,t){e||Jr(e,!0,t,"==",Qr)}var Vr=/\s*function\s+([^\(\s]*)\s*/;function Gr(e){if(jt(e)){if(Zr())return e.name;var t=e.toString().match(Vr);return t&&t[1]}}function $r(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return Xr(Kr(e.actual),128)+" "+e.operator+" "+Xr(Kr(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||Jr;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=Gr(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}}function Xr(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function Kr(e){if(Zr()||!jt(e))return yt(e);var t=Gr(e);return"[Function"+(t?": "+t:"")+"]"}function Jr(e,t,n,r,i){throw new $r({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function Qr(e,t){e||Jr(e,!0,t,"==",Qr)}function ei(e,t,n,r){if(e===t)return!0;if(et(e)&&et(t))return 0===jr(e,t);if(It(e)&&It(t))return e.getTime()===t.getTime();if(Bt(e)&&Bt(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(Yr(e)&&Yr(t)&&Hr(e)===Hr(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===jr(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(et(e)!==et(t))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==i&&i===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(Ft(e)||Ft(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=ti(e),o=ti(t);if(i&&!o||!i&&o)return!1;if(i)return ei(e=qr.call(e),t=qr.call(t),n);var s,a,u=Dr(e),h=Dr(t);if(u.length!==h.length)return!1;for(u.sort(),h.sort(),a=u.length-1;a>=0;a--)if(u[a]!==h[a])return!1;for(a=u.length-1;a>=0;a--)if(!ei(e[s=u[a]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function ti(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ni(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function ri(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&Jr(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&Pt(i)&&o&&ni(i,n)||s)&&Jr(i,n,"Got unwanted exception"+r),e&&i&&n&&!ni(i,n)||!e&&i)throw i}function ii(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}Wr.AssertionError=$r,pt($r,Error),Wr.fail=Jr,Wr.ok=Qr,Wr.equal=function e(t,n,r){t!=n&&Jr(t,n,r,"==",e)},Wr.notEqual=function e(t,n,r){t==n&&Jr(t,n,r,"!=",e)},Wr.deepEqual=function e(t,n,r){ei(t,n,!1)||Jr(t,n,r,"deepEqual",e)},Wr.deepStrictEqual=function e(t,n,r){ei(t,n,!0)||Jr(t,n,r,"deepStrictEqual",e)},Wr.notDeepEqual=function e(t,n,r){ei(t,n,!1)&&Jr(t,n,r,"notDeepEqual",e)},Wr.notDeepStrictEqual=function e(t,n,r){ei(t,n,!0)&&Jr(t,n,r,"notDeepStrictEqual",e)},Wr.strictEqual=function e(t,n,r){t!==n&&Jr(t,n,r,"===",e)},Wr.notStrictEqual=function e(t,n,r){t===n&&Jr(t,n,r,"!==",e)},Wr.throws=function(e,t,n){ri(!0,e,t,n)},Wr.doesNotThrow=function(e,t,n){ri(!1,e,t,n)},Wr.ifError=function(e){if(e)throw e};var oi=1e3,si=60*oi,ai=60*si,ui=24*ai,hi=7*ui,ci=365.25*ui,fi=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*ci;case"weeks":case"week":case"w":return n*hi;case"days":case"day":case"d":return n*ui;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ai;case"minutes":case"minute":case"mins":case"min":case"m":return n*si;case"seconds":case"second":case"secs":case"sec":case"s":return n*oi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=ui)return li(e,t,ui,"day");if(t>=ai)return li(e,t,ai,"hour");if(t>=si)return li(e,t,si,"minute");if(t>=oi)return li(e,t,oi,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=ui)return Math.round(e/ui)+"d";if(t>=ai)return Math.round(e/ai)+"h";if(t>=si)return Math.round(e/si)+"m";if(t>=oi)return Math.round(e/oi)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function li(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var di=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=fi,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},pi=ii((function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==Y&&"env"in Y&&(e=Y.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=di(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));var gi,mi={isatty:function(){return!1},ReadStream:function(){throw new Error("tty.ReadStream is not implemented")},WriteStream:function(){throw new Error("tty.ReadStream is not implemented")}};function _i(){return"/tmp"}var vi={EOL:"\n",tmpdir:_i,tmpDir:_i,networkInterfaces:function(){},getNetworkInterfaces:function(){},release:function(){return void 0!==b.navigator?b.navigator.appVersion:""},type:function(){return"Browser"},cpus:function(){return[]},totalmem:function(){return Number.MAX_VALUE},freemem:function(){return Number.MAX_VALUE},uptime:function(){return 0},loadavg:function(){return[]},hostname:function(){return void 0!==b.location?b.location.hostname:""},endianness:function(){if(void 0===gi){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])gi="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");gi="LE"}}return gi}},wi=(e,t)=>{t=t||Y.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)};const bi=Y.env;let yi;function Ei(e){const t=function(e){if(!1===yi)return 0;if(wi("color=16m")||wi("color=full")||wi("color=truecolor"))return 3;if(wi("color=256"))return 2;if(e&&!e.isTTY&&!0!==yi)return 0;const t=yi?1:0;if("win32"===Y.platform){const e=vi.release().split(".");return Number(Y.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in bi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in bi))||"codeship"===bi.CI_NAME?1:t;if("TEAMCITY_VERSION"in bi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(bi.TEAMCITY_VERSION)?1:0;if("truecolor"===bi.COLORTERM)return 3;if("TERM_PROGRAM"in bi){const e=parseInt((bi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(bi.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(bi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(bi.TERM)||"COLORTERM"in bi?1:(bi.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}wi("no-color")||wi("no-colors")||wi("color=false")?yi=!1:(wi("color")||wi("colors")||wi("color=true")||wi("color=always"))&&(yi=!0),"FORCE_COLOR"in bi&&(yi=0===bi.FORCE_COLOR.length||0!==parseInt(bi.FORCE_COLOR,10));var ki,Ri={supportsColor:Ei,stdout:Ei(Y.stdout),stderr:Ei(Y.stderr)},Ci=ii((function(e,t){t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return Y.stderr.write(Wt.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${r} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?Y.env.DEBUG=e:delete Y.env.DEBUG},t.load=function(){return Y.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):mi.isatty(Y.stderr.fd)},t.destroy=Wt.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Ri;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(Y.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=Y.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=di(t);const{formatters:n}=e.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,Wt.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,Wt.inspect(e,this.inspectOpts)}})),xi=ii((function(e){void 0===Y||"renderer"===Y.type||!0===Y.browser||Y.__nwjs?e.exports=pi:e.exports=Ci})),Si=function(){if(!ki){try{ki=xi("follow-redirects")}catch(e){}"function"!=typeof ki&&(ki=function(){})}ki.apply(null,arguments)},Ai=_r.URL,Oi=$n.Writable,Ti=["abort","aborted","connect","error","socket","timeout"],Li=Object.create(null);Ti.forEach((function(e){Li[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var Ui=Di("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Mi=Di("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Bi=Di("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),zi=Di("ERR_STREAM_WRITE_AFTER_END","write after end");function Ii(e,t){Oi.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function Pi(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var i=r+":",o=n[i]=e[r],s=t[r]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,r,o){if("string"==typeof e){var s=e;try{e=Fi(new Ai(s))}catch(t){e=_r.parse(s)}}else Ai&&e instanceof Ai?e=Fi(e):(o=r,r=e,e={protocol:i});return"function"==typeof r&&(o=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,Wr.equal(r.protocol,i,"protocol mismatch"),Si("options",r),new Ii(r,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function ji(){}function Fi(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function Ni(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function Di(e,t){function n(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}function qi(e){for(var t=0;t<Ti.length;t++)e.removeListener(Ti[t],Li[Ti[t]]);e.on("error",ji),e.abort()}Ii.prototype=Object.create(Oi.prototype),Ii.prototype.abort=function(){qi(this._currentRequest),this.emit("abort")},Ii.prototype.write=function(e,t,n){if(this._ending)throw new zi;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new Bi),this.abort()):n&&n()},Ii.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Ii.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ii.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Ii.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Ii.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Ii.prototype,e,{get:function(){return this._currentRequest[e]}})})),Ii.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Ii.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=_r.format(this._options),r._redirectable=this;for(var i=0;i<Ti.length;i++)r.on(Ti[i],Li[Ti[i]]);if(this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;!function e(t){if(r===s._currentRequest)if(t)s.emit("error",t);else if(o<a.length){var n=a[o++];r.finished||r.write(n.data,n.encoding,e)}else s._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Ii.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(qi(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new Mi);else{((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ni(/^content-/i,this._options.headers));var r,i=Ni(/^host$/i,this._options.headers),o=_r.parse(this._currentUrl),s=i||o.host,a=/^\w+:/.test(n)?this._currentUrl:_r.format(Object.assign(o,{host:s}));try{r=_r.resolve(a,n)}catch(e){return void this.emit("error",new Ui(e))}Si("redirecting to",r),this._isRedirect=!0;var u=_r.parse(r);if(Object.assign(this._options,u),(u.protocol!==o.protocol&&"https:"!==u.protocol||u.host!==s&&!function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(u.host,s))&&Ni(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var h={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,h)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Ui(e))}}};var Zi=Pi({http:Pr,https:Pr}),Hi=Pi;Zi.wrap=Hi;var Yi={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"};function Wi(){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}function Vi(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]}var Gi=Uint8Array,$i=Uint16Array,Xi=Int32Array;function Ki(e){for(var t=e.length;--t>=0;)e[t]=0}var Ji=256,Qi=286,eo=30,to=15,no=[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],ro=[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],io=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],so=new Array(576);Ki(so);var ao=new Array(60);Ki(ao);var uo=new Array(512);Ki(uo);var ho=new Array(256);Ki(ho);var co=new Array(29);Ki(co);var fo,lo,po,go=new Array(eo);function mo(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _o(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function vo(e){return e<256?uo[e]:uo[256+(e>>>7)]}function wo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function bo(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,wo(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function yo(e,t,n){bo(e,n[2*t],n[2*t+1])}function Eo(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function ko(e,t,n){var r,i,o=new Array(16),s=0;for(r=1;r<=to;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=Eo(o[a]++,a))}}function Ro(e){var t;for(t=0;t<Qi;t++)e.dyn_ltree[2*t]=0;for(t=0;t<eo;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 Co(e){e.bi_valid>8?wo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function xo(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function So(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&xo(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!xo(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Ao(e,t,n){var r,i,o,s,a=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===r?yo(e,i,t):(yo(e,(o=ho[i])+Ji+1,t),0!==(s=no[o])&&bo(e,i-=co[o],s),yo(e,o=vo(--r),n),0!==(s=ro[o])&&bo(e,r-=go[o],s))}while(a<e.last_lit);yo(e,256,t)}function Oo(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=h=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=h,n=e.heap_len>>1;n>=1;n--)So(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],So(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,So(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,s,a,u=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=to;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>p&&(o=p,g++),u[2*r+1]=o,r>h||(e.bl_count[o]++,s=0,r>=d&&(s=l[r-d]),a=u[2*r],e.opt_len+=a*(o+s),f&&(e.static_len+=a*(c[2*r+1]+s)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>h||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),ko(o,h,e.bl_count)}function To(e,t,n){var r,i,o=-1,s=t[1],a=0,u=7,h=4;for(0===s&&(u=138,h=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<u&&i===s||(a<h?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,o=i,0===s?(u=138,h=3):i===s?(u=6,h=3):(u=7,h=4))}function Lo(e,t,n){var r,i,o=-1,s=t[1],a=0,u=7,h=4;for(0===s&&(u=138,h=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<u&&i===s)){if(a<h)do{yo(e,i,e.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(yo(e,i,e.bl_tree),a--),yo(e,16,e.bl_tree),bo(e,a-3,2)):a<=10?(yo(e,17,e.bl_tree),bo(e,a-3,3)):(yo(e,18,e.bl_tree),bo(e,a-11,7));a=0,o=i,0===s?(u=138,h=3):i===s?(u=6,h=3):(u=7,h=4)}}Ki(go);var Uo=!1;function Mo(e){Uo||(!function(){var e,t,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(co[r]=n,e=0;e<1<<no[r];e++)ho[n++]=r;for(ho[n-1]=r,i=0,r=0;r<16;r++)for(go[r]=i,e=0;e<1<<ro[r];e++)uo[i++]=r;for(i>>=7;r<eo;r++)for(go[r]=i<<7,e=0;e<1<<ro[r]-7;e++)uo[256+i++]=r;for(t=0;t<=to;t++)o[t]=0;for(e=0;e<=143;)so[2*e+1]=8,e++,o[8]++;for(;e<=255;)so[2*e+1]=9,e++,o[9]++;for(;e<=279;)so[2*e+1]=7,e++,o[7]++;for(;e<=287;)so[2*e+1]=8,e++,o[8]++;for(ko(so,287,o),e=0;e<eo;e++)ao[2*e+1]=5,ao[2*e]=Eo(e,5);fo=new mo(so,no,257,Qi,to),lo=new mo(ao,ro,0,eo,to),po=new mo(new Array(0),io,0,19,7)}(),Uo=!0),e.l_desc=new _o(e.dyn_ltree,fo),e.d_desc=new _o(e.dyn_dtree,lo),e.bl_desc=new _o(e.bl_tree,po),e.bi_buf=0,e.bi_valid=0,Ro(e)}function Bo(e,t,n,r){bo(e,0+(r?1:0),3),function(e,t,n,r){Co(e),r&&(wo(e,n),wo(e,~n)),Vi(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}function zo(e){bo(e,2,3),yo(e,256,so),function(e){16===e.bi_valid?(wo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function Io(e,t,n,r){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Ji;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Oo(e,e.l_desc),Oo(e,e.d_desc),s=function(e){var t;for(To(e,e.dyn_ltree,e.l_desc.max_code),To(e,e.dyn_dtree,e.d_desc.max_code),Oo(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*oo[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?Bo(e,t,n,r):4===e.strategy||o===i?(bo(e,2+(r?1:0),3),Ao(e,so,ao)):(bo(e,4+(r?1:0),3),function(e,t,n,r){var i;for(bo(e,t-257,5),bo(e,n-1,5),bo(e,r-4,4),i=0;i<r;i++)bo(e,e.bl_tree[2*oo[i]+1],3);Lo(e,e.dyn_ltree,t-1),Lo(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Ao(e,e.dyn_ltree,e.dyn_dtree)),Ro(e),r&&Co(e)}function Po(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ho[n]+Ji+1)]++,e.dyn_dtree[2*vo(t)]++),e.last_lit===e.lit_bufsize-1}function jo(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}var Fo=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function No(e,t,n,r){var i=Fo,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}var Do,qo=-2,Zo=258,Ho=262,Yo=103,Wo=113,Vo=666;function Go(e,t){return e.msg=Yi[t],t}function $o(e){return(e<<1)-(e>4?9:0)}function Xo(e){for(var t=e.length;--t>=0;)e[t]=0}function Ko(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Vi(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Jo(e,t){Io(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ko(e.strm)}function Qo(e,t){e.pending_buf[e.pending++]=t}function es(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ts(e,t){var n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-Ho?e.strstart-(e.w_size-Ho):0,h=e.window,c=e.w_mask,f=e.prev,l=e.strstart+Zo,d=h[o+s-1],p=h[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(n=t)+s]===p&&h[n+s-1]===d&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<l);if(r=Zo-(l-o),o=l-Zo,r>s){if(e.match_start=t,s=r,r>=a)break;d=h[o+s-1],p=h[o+s]}}}while((t=f[t&c])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function ns(e){var t,n,r,i,o,s,a,u,h,c,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-Ho)){Vi(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=f?r-f:0}while(--n);t=n=f;do{r=e.prev[--t],e.prev[t]=r>=f?r-f:0}while(--n);i+=f}if(0===e.strm.avail_in)break;if(s=e.strm,a=e.window,u=e.strstart+e.lookahead,h=i,c=void 0,(c=s.avail_in)>h&&(c=h),n=0===c?0:(s.avail_in-=c,Vi(a,s.input,s.next_in,c,u),1===s.state.wrap?s.adler=jo(s.adler,a,c,u):2===s.state.wrap&&(s.adler=No(s.adler,a,c,u)),s.next_in+=c,s.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Ho&&0!==e.strm.avail_in)}function rs(e,t){for(var n,r;;){if(e.lookahead<Ho){if(ns(e),e.lookahead<Ho&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ho&&(e.match_length=ts(e,n)),e.match_length>=3)if(r=Po(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(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 r=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}function is(e,t){for(var n,r,i;;){if(e.lookahead<Ho){if(ns(e),e.lookahead<Ho&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=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!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ho&&(e.match_length=ts(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=Po(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Jo(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=Po(e,0,e.window[e.strstart-1]))&&Jo(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&&(r=Po(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}function os(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ss(){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 $i(1146),this.dyn_dtree=new $i(122),this.bl_tree=new $i(78),Xo(this.dyn_ltree),Xo(this.dyn_dtree),Xo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new $i(16),this.heap=new $i(573),Xo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new $i(573),Xo(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 as(e){var t=function(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:Wo,e.adler=2===t.wrap?0:1,t.last_flush=0,Mo(t),0):Go(e,qo)}(e);return 0===t&&function(e){e.window_size=2*e.w_size,Xo(e.head),e.max_lazy_match=Do[e.level].max_lazy,e.good_match=Do[e.level].good_length,e.nice_match=Do[e.level].nice_length,e.max_chain_length=Do[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}(e.state),t}function us(e,t){var n,r,i,o;if(!e||!e.state||t>5||t<0)return e?Go(e,qo):qo;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Vo&&4!==t)return Go(e,0===e.avail_out?-5:qo);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,Qo(r,31),Qo(r,139),Qo(r,8),r.gzhead?(Qo(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Qo(r,255&r.gzhead.time),Qo(r,r.gzhead.time>>8&255),Qo(r,r.gzhead.time>>16&255),Qo(r,r.gzhead.time>>24&255),Qo(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Qo(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Qo(r,255&r.gzhead.extra.length),Qo(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=No(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Qo(r,3),r.status=Wo);else{var s=8+(r.w_bits-8<<4)<<8;s|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=Wo,es(r,s),0!==r.strstart&&(es(r,e.adler>>>16),es(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending!==r.pending_buf_size));)Qo(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Qo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Qo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Yo)}else r.status=Yo;if(r.status===Yo&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Ko(e),r.pending+2<=r.pending_buf_size&&(Qo(r,255&e.adler),Qo(r,e.adler>>8&255),e.adler=0,r.status=Wo)):r.status=Wo),0!==r.pending){if(Ko(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&$o(t)<=$o(n)&&4!==t)return Go(e,-5);if(r.status===Vo&&0!==e.avail_in)return Go(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==Vo){var a=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(ns(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=Zo){if(ns(e),e.lookahead<=Zo&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+Zo;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=Zo-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Po(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}(r,t):Do[r.level].func(r,t);if(3!==a&&4!==a||(r.status=Vo),1===a||3===a)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===a&&(1===t?zo(r):5!==t&&(Bo(r,0,0,!1),3===t&&(Xo(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ko(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(Qo(r,255&e.adler),Qo(r,e.adler>>8&255),Qo(r,e.adler>>16&255),Qo(r,e.adler>>24&255),Qo(r,255&e.total_in),Qo(r,e.total_in>>8&255),Qo(r,e.total_in>>16&255),Qo(r,e.total_in>>24&255)):(es(r,e.adler>>>16),es(r,65535&e.adler)),Ko(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}Do=[new os(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ns(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Jo(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Ho&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Jo(e,!1),e.strm.avail_out),1)})),new os(4,4,8,4,rs),new os(4,5,16,8,rs),new os(4,6,32,32,rs),new os(4,4,16,16,is),new os(8,16,32,32,is),new os(8,16,128,128,is),new os(8,32,128,256,is),new os(32,128,258,1024,is),new os(32,258,258,4096,is)];function hs(e,t){var n,r,i,o,s,a,u,h,c,f,l,d,p,g,m,_,v,w,b,y,E,k,R,C,x;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),o=e.next_out,x=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),u=n.dmax,h=n.wsize,c=n.whave,f=n.wnext,l=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),w=g[d&_];t:for(;;){if(d>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))x[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=g[(65535&w)+(d&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}y=65535&w,(b&=15)&&(p<b&&(d+=C[r++]<<p,p+=8),y+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),w=m[d&v];n:for(;;){if(d>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=m[(65535&w)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(E=65535&w,p<(b&=15)&&(d+=C[r++]<<p,(p+=8)<b&&(d+=C[r++]<<p,p+=8)),(E+=d&(1<<b)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=b,p-=b,E>(b=o-s)){if((b=E-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,R=l,0===f){if(k+=h-b,b<y){y-=b;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}}else if(f<b){if(k+=h+f-b,(b-=f)<y){y-=b;do{x[o++]=l[k++]}while(--b);if(k=0,f<y){y-=b=f;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}}}else if(k+=f-b,b<y){y-=b;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}for(;y>2;)x[o++]=R[k++],x[o++]=R[k++],x[o++]=R[k++],y-=3;y&&(x[o++]=R[k++],y>1&&(x[o++]=R[k++]))}else{k=o-E;do{x[o++]=x[k++],x[o++]=x[k++],x[o++]=x[k++],y-=3}while(y>2);y&&(x[o++]=x[k++],y>1&&(x[o++]=x[k++]))}break}}break}}while(r<i&&o<a);r-=y=p>>3,d&=(1<<(p-=y<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<a?a-o+257:257-(o-a),n.hold=d,n.bits=p}var cs=15,fs=[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],ls=[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],ds=[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],ps=[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];function gs(e,t,n,r,i,o,s,a){var u,h,c,f,l,d,p,g,m,_=a.bits,v=0,w=0,b=0,y=0,E=0,k=0,R=0,C=0,x=0,S=0,A=null,O=0,T=new $i(16),L=new $i(16),U=null,M=0;for(v=0;v<=cs;v++)T[v]=0;for(w=0;w<r;w++)T[t[n+w]]++;for(E=_,y=cs;y>=1&&0===T[y];y--);if(E>y&&(E=y),0===y)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(b=1;b<y&&0===T[b];b++);for(E<b&&(E=b),C=1,v=1;v<=cs;v++)if(C<<=1,(C-=T[v])<0)return-1;if(C>0&&(0===e||1!==y))return-1;for(L[1]=0,v=1;v<cs;v++)L[v+1]=L[v]+T[v];for(w=0;w<r;w++)0!==t[n+w]&&(s[L[t[n+w]]++]=w);if(0===e?(A=U=s,d=19):1===e?(A=fs,O-=257,U=ls,M-=257,d=256):(A=ds,U=ps,d=-1),S=0,w=0,v=b,l=o,k=E,R=0,c=-1,f=(x=1<<E)-1,1===e&&x>852||2===e&&x>592)return 1;for(;;){p=v-R,s[w]<d?(g=0,m=s[w]):s[w]>d?(g=U[M+s[w]],m=A[O+s[w]]):(g=96,m=0),u=1<<v-R,b=h=1<<k;do{i[l+(S>>R)+(h-=u)]=p<<24|g<<16|m|0}while(0!==h);for(u=1<<v-1;S&u;)u>>=1;if(0!==u?(S&=u-1,S+=u):S=0,w++,0==--T[v]){if(v===y)break;v=t[n+s[w]]}if(v>E&&(S&f)!==c){for(0===R&&(R=E),l+=b,C=1<<(k=v-R);k+R<y&&!((C-=T[k+R])<=0);)k++,C<<=1;if(x+=1<<k,1===e&&x>852||2===e&&x>592)return 1;i[c=S&f]=E<<24|k<<16|l-o|0}}return 0!==S&&(i[l+S]=v-R<<24|64<<16|0),a.bits=E,0}var ms=-2,_s=12,vs=30;function ws(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function bs(){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 $i(320),this.work=new $i(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ys(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(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 Xi(852),t.distcode=t.distdyn=new Xi(592),t.sane=1,t.back=-1,0):ms}(e)):ms}function Es(e,t){var n,r;return e?(r=new bs,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?ms:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ys(e))):ms}(e,t),0!==n&&(e.state=null),n):ms}var ks,Rs,Cs=!0;function xs(e){if(Cs){var t;for(ks=new Xi(512),Rs=new Xi(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gs(1,e.lens,0,288,ks,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gs(2,e.lens,0,32,Rs,0,e.work,{bits:5}),Cs=!1}e.lencode=ks,e.lenbits=9,e.distcode=Rs,e.distbits=5}function Ss(e,t){var n,r,i,o,s,a,u,h,c,f,l,d,p,g,m,_,v,w,b,y,E,k,R,C,x=0,S=new Gi(4),A=[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 ms;(n=e.state).mode===_s&&(n.mode=13),s=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,h=n.hold,c=n.bits,f=a,l=u,k=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(2&n.wrap&&35615===h){n.check=0,S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0),h=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=vs;break}if(8!=(15&h)){e.msg="unknown compression method",n.mode=vs;break}if(c-=4,E=8+(15&(h>>>=4)),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=vs;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=512&h?10:_s,h=0,c=0;break;case 2:for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(n.flags=h,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=vs;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=vs;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.head&&(n.head.time=h),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,S[2]=h>>>16&255,S[3]=h>>>24&255,n.check=No(n.check,S,4,0)),h=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=n.length)>a&&(d=a),d&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Vi(n.head.extra,r,o,d,E)),512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===a)break e;d=0;do{E=r[o+d++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E))}while(E&&d<a);if(512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===a)break e;d=0;do{E=r[o+d++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E))}while(E&&d<a);if(512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,E)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=vs;break}h=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=_s;break;case 10:for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}e.adler=n.check=ws(h),h=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,2;e.adler=n.check=1,n.mode=_s;case _s:if(5===t||6===t)break e;case 13:if(n.last){h>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}switch(n.last=1&h,c-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(xs(n),n.mode=20,6===t){h>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=vs}h>>>=2,c-=2;break;case 14:for(h>>>=7&c,c-=7&c;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=vs;break}if(n.length=65535&h,h=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(d=n.length){if(d>a&&(d=a),d>u&&(d=u),0===d)break e;Vi(i,r,o,d,s),a-=d,o+=d,u-=d,s+=d,n.length-=d;break}n.mode=_s;break;case 17:for(;c<14;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(n.nlen=257+(31&h),h>>>=5,c-=5,n.ndist=1+(31&h),h>>>=5,c-=5,n.ncode=4+(15&h),h>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=vs;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.lens[A[n.have++]]=7&h,h>>>=3,c-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},k=gs(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,k){e.msg="invalid code lengths set",n.mode=vs;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(x=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(v<16)h>>>=m,c-=m,n.lens[n.have++]=v;else{if(16===v){for(C=m+2;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=vs;break}E=n.lens[n.have-1],d=3+(3&h),h>>>=2,c-=2}else if(17===v){for(C=m+3;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}c-=m,E=0,d=3+(7&(h>>>=m)),h>>>=3,c-=3}else{for(C=m+7;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}c-=m,E=0,d=11+(127&(h>>>=m)),h>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=vs;break}for(;d--;)n.lens[n.have++]=E}}if(n.mode===vs)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=vs;break}if(n.lenbits=9,R={bits:n.lenbits},k=gs(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,k){e.msg="invalid literal/lengths set",n.mode=vs;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},k=gs(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,k){e.msg="invalid distances set",n.mode=vs;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(a>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,hs(e,l),s=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,h=n.hold,c=n.bits,n.mode===_s&&(n.back=-1);break}for(n.back=0;_=(x=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(_&&0==(240&_)){for(w=m,b=_,y=v;_=(x=n.lencode[y+((h&(1<<w+b)-1)>>w)])>>>16&255,v=65535&x,!(w+(m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}h>>>=w,c-=w,n.back+=w}if(h>>>=m,c-=m,n.back+=m,n.length=v,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=_s;break}if(64&_){e.msg="invalid literal/length code",n.mode=vs;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(C=n.extra;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(x=n.distcode[h&(1<<n.distbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(0==(240&_)){for(w=m,b=_,y=v;_=(x=n.distcode[y+((h&(1<<w+b)-1)>>w)])>>>16&255,v=65535&x,!(w+(m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}h>>>=w,c-=w,n.back+=w}if(h>>>=m,c-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=vs;break}n.offset=v,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(C=n.extra;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=vs;break}n.mode=25;case 25:if(0===u)break e;if(d=l-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=vs;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),g=n.window}else g=i,p=s-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[s++]=g[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;i[s++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===a)break e;a--,h|=r[o++]<<c,c+=8}if(l-=u,e.total_out+=l,n.total+=l,l&&(e.adler=n.check=n.flags?No(n.check,i,l,s-l):jo(n.check,i,l,s-l)),l=u,(n.flags?h:ws(h))!==n.check){e.msg="incorrect data check",n.mode=vs;break}h=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=vs;break}h=0,c=0}n.mode=29;case 29:k=1;break e;case vs:k=-3;break e;case 31:return-4;default:return ms}return e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,(n.wsize||l!==e.avail_out&&n.mode<vs&&(n.mode<27||4!==t))&&function(e,t,n,r){var i,o=e.state;null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Gi(o.wsize)),r>=o.wsize?(Vi(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),Vi(o.window,t,n-r,i,o.wnext),(r-=i)?(Vi(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i)))}(e,e.output,e.next_out,l-e.avail_out),f-=e.avail_in,l-=e.avail_out,e.total_in+=f,e.total_out+=l,n.total+=l,n.wrap&&l&&(e.adler=n.check=n.flags?No(n.check,i,l,e.next_out-l):jo(n.check,i,l,e.next_out-l)),e.data_type=n.bits+(n.last?64:0)+(n.mode===_s?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===l||4===t)&&0===k&&(k=-5),k}var As;function Os(e){if(e<1||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Ts(e,t){for(var n=0;n<e.length;n++)this[t+n]=e[n]}Os.prototype.init=function(e,t,n,r,i){var o;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Wi,this.mode){case 1:case 3:case 5:o=function(e,t,n,r,i,o){if(!e)return qo;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return Go(e,qo);8===r&&(r=9);var a=new ss;return e.state=a,a.strm=e,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Gi(2*a.w_size),a.head=new $i(a.hash_size),a.prev=new $i(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Gi(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=n,as(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:o=Es(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},Os.prototype.params=function(){throw new Error("deflateParams Not supported")},Os.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},Os.prototype.write=function(e,t,n,r,i,o,s){this._writeCheck(),this.write_in_progress=!0;var a=this;return Y.nextTick((function(){a.write_in_progress=!1;var u=a._write(e,t,n,r,i,o,s);a.callback(u[0],u[1]),a.pending_close&&a.close()})),this},Os.prototype.writeSync=function(e,t,n,r,i,o,s){return this._writeCheck(),this._write(e,t,n,r,i,o,s)},Os.prototype._write=function(e,t,n,r,i,o,s){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw new Error("Invalid flush value");null==t&&(t=new _e(0),r=0,n=0),i._set?i.set=i._set:i.set=Ts;var a,u=this.strm;switch(u.avail_in=r,u.input=t,u.next_in=n,u.avail_out=s,u.output=i,u.next_out=o,this.mode){case 1:case 3:case 5:a=us(u,e);break;case 7:case 2:case 4:case 6:a=Ss(u,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==a&&0!==a&&this._error(a),this.write_in_progress=!1,[u.avail_in,u.avail_out]},Os.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&(42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Yo&&t!==Wo&&t!==Vo?Go(e,qo):(e.state=null,t===Wo&&Go(e,-3)))}(this.strm):function(e){if(!e||!e.state)return ms;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},Os.prototype.reset=function(){switch(this.mode){case 1:case 5:As=as(this.strm);break;case 2:case 6:As=ys(this.strm)}0!==As&&this._error(As)},Os.prototype._error=function(e){this.onerror(Yi[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var Ls=Object.freeze({__proto__:null,NONE:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,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,Zlib:Os});var Us={};Object.keys(Ls).forEach((function(e){Us[e]=Ls[e]})),Us.Z_MIN_WINDOWBITS=8,Us.Z_MAX_WINDOWBITS=15,Us.Z_DEFAULT_WINDOWBITS=15,Us.Z_MIN_CHUNK=64,Us.Z_MAX_CHUNK=1/0,Us.Z_DEFAULT_CHUNK=16384,Us.Z_MIN_MEMLEVEL=1,Us.Z_MAX_MEMLEVEL=9,Us.Z_DEFAULT_MEMLEVEL=8,Us.Z_MIN_LEVEL=-1,Us.Z_MAX_LEVEL=9,Us.Z_DEFAULT_LEVEL=Us.Z_DEFAULT_COMPRESSION;var Ms={Z_OK:Us.Z_OK,Z_STREAM_END:Us.Z_STREAM_END,Z_NEED_DICT:Us.Z_NEED_DICT,Z_ERRNO:Us.Z_ERRNO,Z_STREAM_ERROR:Us.Z_STREAM_ERROR,Z_DATA_ERROR:Us.Z_DATA_ERROR,Z_MEM_ERROR:Us.Z_MEM_ERROR,Z_BUF_ERROR:Us.Z_BUF_ERROR,Z_VERSION_ERROR:Us.Z_VERSION_ERROR};function Bs(e,t,n){var r=[],i=0;function o(){for(var t;null!==(t=e.read());)r.push(t),i+=t.length;e.once("readable",o)}function s(){var t=_e.concat(r,i);r=[],n(null,t),e.close()}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function zs(e,t){if("string"==typeof t&&(t=new _e(t)),!_e.isBuffer(t))throw new TypeError("Not a string or buffer");var n=Us.Z_FINISH;return e._processChunk(t,n)}function Is(e){if(!(this instanceof Is))return new Is(e);Zs.call(this,e,Us.DEFLATE)}function Ps(e){if(!(this instanceof Ps))return new Ps(e);Zs.call(this,e,Us.INFLATE)}function js(e){if(!(this instanceof js))return new js(e);Zs.call(this,e,Us.GZIP)}function Fs(e){if(!(this instanceof Fs))return new Fs(e);Zs.call(this,e,Us.GUNZIP)}function Ns(e){if(!(this instanceof Ns))return new Ns(e);Zs.call(this,e,Us.DEFLATERAW)}function Ds(e){if(!(this instanceof Ds))return new Ds(e);Zs.call(this,e,Us.INFLATERAW)}function qs(e){if(!(this instanceof qs))return new qs(e);Zs.call(this,e,Us.UNZIP)}function Zs(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||Us.Z_DEFAULT_CHUNK,Wn.call(this,e),e.flush&&e.flush!==Us.Z_NO_FLUSH&&e.flush!==Us.Z_PARTIAL_FLUSH&&e.flush!==Us.Z_SYNC_FLUSH&&e.flush!==Us.Z_FULL_FLUSH&&e.flush!==Us.Z_FINISH&&e.flush!==Us.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||Us.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<Us.Z_MIN_CHUNK||e.chunkSize>Us.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<Us.Z_MIN_WINDOWBITS||e.windowBits>Us.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<Us.Z_MIN_LEVEL||e.level>Us.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<Us.Z_MIN_MEMLEVEL||e.memLevel>Us.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=Us.Z_FILTERED&&e.strategy!=Us.Z_HUFFMAN_ONLY&&e.strategy!=Us.Z_RLE&&e.strategy!=Us.Z_FIXED&&e.strategy!=Us.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!_e.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new Us.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=new Error(e);r.errno=t,r.code=Us.codes[t],n.emit("error",r)};var r=Us.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var i=Us.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||Us.Z_DEFAULT_WINDOWBITS,r,e.memLevel||Us.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new _e(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(Ms).forEach((function(e){Ms[Ms[e]]=e})),pt(Zs,Wn),Zs.prototype.params=function(e,t,n){if(e<Us.Z_MIN_LEVEL||e>Us.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=Us.Z_FILTERED&&t!=Us.Z_HUFFMAN_ONLY&&t!=Us.Z_RLE&&t!=Us.Z_FIXED&&t!=Us.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(Us.Z_SYNC_FLUSH,(function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())}))}else Y.nextTick(n)},Zs.prototype.reset=function(){return this._binding.reset()},Zs.prototype._flush=function(e){this._transform(new _e(0),"",e)},Zs.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=Us.Z_FULL_FLUSH),n.ended)t&&Y.nextTick(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(t)}))}else this._flushFlag=e,this.write(new _e(0),"",t)},Zs.prototype.close=function(e){if(e&&Y.nextTick(e),!this._closed){this._closed=!0,this._binding.close();var t=this;Y.nextTick((function(){t.emit("close")}))}},Zs.prototype._transform=function(e,t,n){var r,i=this._writableState,o=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!_e.isBuffer(e))return n(new Error("invalid input"));o?r=Us.Z_FINISH:(r=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||Us.Z_NO_FLUSH)),this._processChunk(e,r,n)},Zs.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,o=0,s=this,a="function"==typeof n;if(!a){var u,h=[],c=0;this.on("error",(function(e){u=e}));do{var f=this._binding.writeSync(t,e,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw u;var l=_e.concat(h,c);return this.close(),l}var d=this._binding.write(t,e,o,r,this._buffer,this._offset,i);function p(u,f){if(!s._hadError){var l=i-f;if(function(e,t){if(!e)throw new Error(t)}(l>=0,"have should not go down"),l>0){var d=s._buffer.slice(s._offset,s._offset+l);s._offset+=l,a?s.push(d):(h.push(d),c+=d.length)}if((0===f||s._offset>=s._chunkSize)&&(i=s._chunkSize,s._offset=0,s._buffer=new _e(s._chunkSize)),0===f){if(o+=r-u,r=u,!a)return!0;var g=s._binding.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return g.callback=p,void(g.buffer=e)}if(!a)return!1;n()}}d.buffer=e,d.callback=p},pt(Is,Zs),pt(Ps,Zs),pt(js,Zs),pt(Fs,Zs),pt(Ns,Zs),pt(Ds,Zs),pt(qs,Zs);var Hs={codes:Ms,createDeflate:function(e){return new Is(e)},createInflate:function(e){return new Ps(e)},createDeflateRaw:function(e){return new Ns(e)},createInflateRaw:function(e){return new Ds(e)},createGzip:function(e){return new js(e)},createGunzip:function(e){return new Fs(e)},createUnzip:function(e){return new qs(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new Is(t),e,n)},deflateSync:function(e,t){return zs(new Is(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new js(t),e,n)},gzipSync:function(e,t){return zs(new js(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new Ns(t),e,n)},deflateRawSync:function(e,t){return zs(new Ns(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new qs(t),e,n)},unzipSync:function(e,t){return zs(new qs(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new Ps(t),e,n)},inflateSync:function(e,t){return zs(new Ps(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new Fs(t),e,n)},gunzipSync:function(e,t){return zs(new Fs(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Bs(new Ds(t),e,n)},inflateRawSync:function(e,t){return zs(new Ds(t),e)},Deflate:Is,Inflate:Ps,Gzip:js,Gunzip:Fs,DeflateRaw:Ns,InflateRaw:Ds,Unzip:qs,Zlib:Zs},Ys="0.26.1",Ws=Zi.http,Vs=Zi.https,Gs=Ys,$s=/https:?/;function Xs(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var r=_e.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+r}e.beforeRedirect=function(e){e.headers.host=e.host,Xs(e,t,e.href)}}var Ks=function(e){return new Promise((function(t,n){var r;function i(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}var o=function(e){i(),t(e)},s=!1,a=function(e){i(),s=!0,n(e)},u=e.data,h=e.headers,c={};if(Object.keys(h).forEach((function(e){c[e.toLowerCase()]=e})),"user-agent"in c?h[c["user-agent"]]||delete h[c["user-agent"]]:h["User-Agent"]="axios/"+Gs,u&&!g.isStream(u)){if(_e.isBuffer(u));else if(g.isArrayBuffer(u))u=_e.from(new Uint8Array(u));else{if(!g.isString(u))return a($("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u=_e.from(u,"utf-8")}if(e.maxBodyLength>-1&&u.length>e.maxBodyLength)return a($("Request body larger than maxBodyLength limit",e));c["content-length"]||(h["Content-Length"]=u.length)}var f=void 0;e.auth&&(f=(e.auth.username||"")+":"+(e.auth.password||""));var l=J(e.baseURL,e.url),d=_r.parse(l),p=d.protocol||"http:";if(!f&&d.auth){var m=d.auth.split(":");f=(m[0]||"")+":"+(m[1]||"")}f&&c.authorization&&delete h[c.authorization];var v=$s.test(p),w=v?e.httpsAgent:e.httpAgent;try{_(d.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var b=new Error(t.message);b.config=e,b.url=e.url,b.exists=!0,a(b)}var y={path:_(d.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:h,agent:w,agents:{http:e.httpAgent,https:e.httpsAgent},auth:f};e.socketPath?y.socketPath=e.socketPath:(y.hostname=d.hostname,y.port=d.port);var E,k=e.proxy;if(!k&&!1!==k){var R=p.slice(0,-1)+"_proxy",C=Y.env[R]||Y.env[R.toUpperCase()];if(C){var x=_r.parse(C),S=Y.env.no_proxy||Y.env.NO_PROXY,A=!0;if(S){var O=S.split(",").map((function(e){return e.trim()}));A=!O.some((function(e){return!!e&&("*"===e||("."===e[0]&&d.hostname.substr(d.hostname.length-e.length)===e||d.hostname===e))}))}if(A&&(k={host:x.hostname,port:x.port,protocol:x.protocol},x.auth)){var T=x.auth.split(":");k.auth={username:T[0],password:T[1]}}}}k&&(y.headers.host=d.hostname+(d.port?":"+d.port:""),Xs(y,k,p+"//"+d.hostname+(d.port?":"+d.port:"")+y.path));var L=v&&(!k||$s.test(k.protocol));e.transport?E=e.transport:0===e.maxRedirects?E=Pr:(e.maxRedirects&&(y.maxRedirects=e.maxRedirects),E=L?Vs:Ws),e.maxBodyLength>-1&&(y.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(y.insecureHTTPParser=e.insecureHTTPParser);var U=E.request(y,(function(t){if(!U.aborted){var n=t,r=t.req||U;if(204!==t.statusCode&&"HEAD"!==r.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(Hs.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:r};if("stream"===e.responseType)i.data=n,X(o,a,i);else{var u=[],h=0;n.on("data",(function(t){u.push(t),h+=t.length,e.maxContentLength>-1&&h>e.maxContentLength&&(s=!0,n.destroy(),a($("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,r)))})),n.on("aborted",(function(){s||(n.destroy(),a($("error request aborted",e,"ERR_REQUEST_ABORTED",r)))})),n.on("error",(function(t){U.aborted||a(V(t,e,null,r))})),n.on("end",(function(){try{var t=1===u.length?u[0]:_e.concat(u);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=g.stripBOM(t))),i.data=t}catch(t){a(V(t,e,t.code,i.request,i))}X(o,a,i)}))}}}));if(U.on("error",(function(t){U.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||a(V(t,e,null,U))})),U.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var M=parseInt(e.timeout,10);if(isNaN(M))return void a($("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",U));U.setTimeout(M,(function(){U.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var n=e.transitional||G;a($(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))}))}(e.cancelToken||e.signal)&&(r=function(e){U.aborted||(U.abort(),a(!e||e&&e.type?new ne("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),g.isStream(u)?u.on("error",(function(t){a(V(t,e,null,U))})).pipe(U):U.end(u)}))},Js={"Content-Type":"application/x-www-form-urlencoded"};function Qs(e,t){!g.isUndefined(e)&&g.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ea,ta={transitional:G,adapter:("undefined"!=typeof XMLHttpRequest?ea=re:void 0!==Y&&"[object process]"===Object.prototype.toString.call(Y)&&(ea=Ks),ea),transformRequest:[function(e,t){return W(t,"Accept"),W(t,"Content-Type"),g.isFormData(e)||g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)?e:g.isArrayBufferView(e)?e.buffer:g.isURLSearchParams(e)?(Qs(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):g.isObject(e)||t&&"application/json"===t["Content-Type"]?(Qs(t,"application/json"),function(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ta.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&g.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw V(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};g.forEach(["delete","get","head"],(function(e){ta.headers[e]={}})),g.forEach(["post","put","patch"],(function(e){ta.headers[e]=g.merge(Js)}));var na=ta,ra=function(e,t,n){var r=this||na;return g.forEach(n,(function(n){e=n.call(r,e,t)})),e},ia=function(e){return!(!e||!e.__CANCEL__)};function oa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne("canceled")}var sa=function(e){return oa(e),e.headers=e.headers||{},e.data=ra.call(e,e.data,e.headers,e.transformRequest),e.headers=g.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),g.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||na.adapter)(e).then((function(t){return oa(e),t.data=ra.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ia(t)||(oa(e),t&&t.response&&(t.response.data=ra.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},aa=function(e,t){t=t||{};var n={};function r(e,t){return g.isPlainObject(e)&&g.isPlainObject(t)?g.merge(e,t):g.isPlainObject(t)?g.merge({},t):g.isArray(t)?t.slice():t}function i(n){return g.isUndefined(t[n])?g.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!g.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return g.isUndefined(t[n])?g.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return g.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);g.isUndefined(r)&&t!==a||(n[e]=r)})),n},ua=Ys,ha={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ha[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ca={};ha.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ua+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!ca[i]&&(ca[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var fa={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:ha},la=fa.validators;function da(e){this.defaults=e,this.interceptors={request:new w,response:new w}}da.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=aa(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&fa.assertOptions(n,{silentJSONParsing:la.transitional(la.boolean),forcedJSONParsing:la.transitional(la.boolean),clarifyTimeoutError:la.transitional(la.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!i){var a=[sa,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=t;r.length;){var h=r.shift(),c=r.shift();try{u=h(u)}catch(e){c(e);break}}try{o=sa(u)}catch(e){return Promise.reject(e)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},da.prototype.getUri=function(e){return e=aa(this.defaults,e),_(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},g.forEach(["delete","get","head","options"],(function(e){da.prototype[e]=function(t,n){return this.request(aa(n||{},{method:e,url:t,data:(n||{}).data}))}})),g.forEach(["post","put","patch"],(function(e){da.prototype[e]=function(t,n,r){return this.request(aa(r||{},{method:e,url:t,data:n}))}}));var pa=da;function ga(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new ne(e),t(n.reason))}))}ga.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ga.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},ga.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},ga.source=function(){var e;return{token:new ga((function(t){e=t})),cancel:e}};var ma=ga;var _a=function e(t){var n=new pa(t),r=s(pa.prototype.request,n);return g.extend(r,pa.prototype,n),g.extend(r,n),r.create=function(n){return e(aa(t,n))},r}(na);_a.Axios=pa,_a.Cancel=ne,_a.CancelToken=ma,_a.isCancel=ia,_a.VERSION=Ys,_a.all=function(e){return Promise.all(e)},_a.spread=function(e){return function(t){return e.apply(null,t)}},_a.isAxiosError=function(e){return g.isObject(e)&&!0===e.isAxiosError};var va=_a,wa=_a;va.default=wa;var ba=va,ya={name:"Banners",props:{type:{type:String,validator:function(e){return["header","footer"].includes(e)},default:function(){return"header"}}},data:function(){return{dismissedBanners:[],staticContent:{}}},computed:{mappedStaticContentHeaders:function(){var e=[],t="header"===this.type?"headers":"footers";for(var n in this.staticContent[t])this.dismissedBanners.includes(parseInt(n))||e.push(this.staticContent[t][n]);return e}},methods:{dismissBanner:function(e){this.dismissedBanners.push(e)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ba.get("".concat(t.app_manager_config.baseUrl,"/api/app-manager/marketing-banners"));case 2:n=e.sent,r=n.data,t.staticContent=r.banners;case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))})()}};function Ea(e,t,n,r,i,o,s,a,u,h){"boolean"!=typeof s&&(u=a,a=s,s=!1);const c="function"==typeof n?n.options:n;let f;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),r&&(c._scopeId=r),o?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=f):t&&(f=s?function(e){t.call(this,h(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),f)if(c.functional){const e=c.render;c.render=function(t,n){return f.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,f):[f]}return n}var ka=Ea({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mappedStaticContentHeaders.length?n("PLayoutSection",e._l(e.mappedStaticContentHeaders,(function(t,r){return n("PBanner",{key:r,attrs:{id:"static-content-header-"+r,status:t.status},on:{dismiss:function(){return e.dismissBanner(r)}}},[n("span",{domProps:{innerHTML:e._s(t.content)}})])})),1):e._e()},staticRenderFns:[]},undefined,ya,"data-v-69017906",false,undefined,!1,void 0,void 0,void 0),Ra=Object.freeze({__proto__:null,Banners:ka}),Ca={baseUrl:""},xa=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.entries(Ra).forEach((function(t){var n=i(t,2),r=n[0],o=n[1];e.component(r,o)})),e.prototype.app_manager_config=t(t({},Ca),n)},Sa=Object.freeze({__proto__:null,default:xa,Banners:ka});return Object.entries(Sa).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];"default"!==n&&(xa[n]=r)})),xa}();
1
+ var AppManagerVue=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},a=Object.prototype.toString;function u(e){return Array.isArray(e)}function h(e){return void 0===e}function c(e){return"[object ArrayBuffer]"===a.call(e)}function f(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===a.call(e)}function p(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var g={isArray:u,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===a.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:l,isUndefined:h,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:d,isStream:function(e){return f(e)&&d(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===a.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:p,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)p(arguments[r],n);return t},extend:function(e,t,n){return p(t,(function(t,r){e[r]=n&&"function"==typeof t?s(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function m(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var _=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(g.isURLSearchParams(t))r=t.toString();else{var i=[];g.forEach(t,(function(e,t){null!=e&&(g.isArray(e)?t+="[]":e=[e],g.forEach(e,(function(e){g.isDate(e)?e=e.toISOString():g.isObject(e)&&(e=JSON.stringify(e)),i.push(m(t)+"="+m(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function v(){this.handlers=[]}v.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},v.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},v.prototype.forEach=function(e){g.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var w=v,b="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function y(){throw new Error("setTimeout has not been defined")}function E(){throw new Error("clearTimeout has not been defined")}var k=y,R=E;function C(e){if(k===setTimeout)return setTimeout(e,0);if((k===y||!k)&&setTimeout)return k=setTimeout,setTimeout(e,0);try{return k(e,0)}catch(t){try{return k.call(null,e,0)}catch(t){return k.call(this,e,0)}}}"function"==typeof b.setTimeout&&(k=setTimeout),"function"==typeof b.clearTimeout&&(R=clearTimeout);var x,S=[],A=!1,O=-1;function T(){A&&x&&(A=!1,x.length?S=x.concat(S):O=-1,S.length&&L())}function L(){if(!A){var e=C(T);A=!0;for(var t=S.length;t;){for(x=S,S=[];++O<t;)x&&x[O].run();O=-1,t=S.length}x=null,A=!1,function(e){if(R===clearTimeout)return clearTimeout(e);if((R===E||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(e);try{R(e)}catch(t){try{return R.call(null,e)}catch(t){return R.call(this,e)}}}(e)}}function U(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];S.push(new M(e,t)),1!==S.length||A||C(L)}function M(e,t){this.fun=e,this.array=t}M.prototype.run=function(){this.fun.apply(null,this.array)};function z(){}var B=z,I=z,P=z,j=z,F=z,N=z,D=z;var q=b.performance||{},Z=q.now||q.mozNow||q.msNow||q.oNow||q.webkitNow||function(){return(new Date).getTime()};var H=new Date;var Y={nextTick:U,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:B,addListener:I,once:P,off:j,removeListener:F,removeAllListeners:N,emit:D,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Z.call(q),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-H)/1e3}},W=function(e,t){g.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},V=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},G={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$=function(e,t,n,r,i){var o=new Error(e);return V(o,t,n,r,i)},X=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t($("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)},K=g.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),g.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),g.isString(r)&&s.push("path="+r),g.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},J=function(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},Q=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ee=g.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=g.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function te(e){this.message=e}te.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},te.prototype.__CANCEL__=!0;var ne=te,re=function(e){return new Promise((function(t,n){var r,i=e.data,o=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}g.isFormData(i)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var f=J(e.baseURL,e.url);function l(){if(u){var r,i,o,h,c,f="getAllResponseHeaders"in u?(r=u.getAllResponseHeaders(),c={},r?(g.forEach(r.split("\n"),(function(e){if(h=e.indexOf(":"),i=g.trim(e.substr(0,h)).toLowerCase(),o=g.trim(e.substr(h+1)),i){if(c[i]&&Q.indexOf(i)>=0)return;c[i]="set-cookie"===i?(c[i]?c[i]:[]).concat([o]):c[i]?c[i]+", "+o:o}})),c):c):null,l={data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:f,config:e,request:u};X((function(e){t(e),a()}),(function(e){n(e),a()}),l),u=null}}if(u.open(e.method.toUpperCase(),_(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n($("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){n($("Network Error",e,null,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||G;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n($(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},g.isStandardBrowserEnv()){var d=(e.withCredentials||ee(f))&&e.xsrfCookieName?K.read(e.xsrfCookieName):void 0;d&&(o[e.xsrfHeaderName]=d)}"setRequestHeader"in u&&g.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:u.setRequestHeader(t,e)})),g.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new ne("canceled"):e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),i||(i=null),u.send(i)}))},ie=[],oe=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ae=!1;function ue(){ae=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ie[t]=e[t],oe[e.charCodeAt(t)]=t;oe["-".charCodeAt(0)]=62,oe["_".charCodeAt(0)]=63}function he(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(ie[(i=r)>>18&63]+ie[i>>12&63]+ie[i>>6&63]+ie[63&i]);return o.join("")}function ce(e){var t;ae||ue();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(he(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],i+=ie[t>>2],i+=ie[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=ie[t>>10],i+=ie[t>>4&63],i+=ie[t<<2&63],i+="="),o.push(i),o.join("")}function fe(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,h=u>>1,c=-7,f=n?i-1:0,l=n?-1:1,d=e[t+f];for(f+=l,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=l,c-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=h}return(d?-1:1)*s*Math.pow(2,o-r)}function le(e,t,n,r,i,o){var s,a,u,h=8*o-i-1,c=(1<<h)-1,f=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?l/u:l*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;e[n+d]=255&s,d+=p,s/=256,h-=8);e[n+d-p]|=128*g}var de={}.toString,pe=Array.isArray||function(e){return"[object Array]"==de.call(e)};function ge(){return _e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function me(e,t){if(ge()<t)throw new RangeError("Invalid typed array length");return _e.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=_e.prototype:(null===e&&(e=new _e(t)),e.length=t),e}function _e(e,t,n){if(!(_e.TYPED_ARRAY_SUPPORT||this instanceof _e))return new _e(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return be(this,e)}return ve(this,e,t,n)}function ve(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);_e.TYPED_ARRAY_SUPPORT?(e=t).__proto__=_e.prototype:e=ye(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!_e.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Re(t,n),i=(e=me(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(ke(t)){var n=0|Ee(t.length);return 0===(e=me(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?me(e,0):ye(e,t);if("Buffer"===t.type&&pe(t.data))return ye(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function we(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function be(e,t){if(we(t),e=me(e,t<0?0:0|Ee(t)),!_e.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ye(e,t){var n=t.length<0?0:0|Ee(t.length);e=me(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ee(e){if(e>=ge())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ge().toString(16)+" bytes");return 0|e}function ke(e){return!(null==e||!e._isBuffer)}function Re(e,t){if(ke(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ke(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Je(e).length;default:if(r)return Ke(e).length;t=(""+t).toLowerCase(),r=!0}}function Ce(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ne(this,t,n);case"utf8":case"utf-8":return Ie(this,t,n);case"ascii":return je(this,t,n);case"latin1":case"binary":return Fe(this,t,n);case"base64":return Be(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function xe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Se(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=_e.from(t,r)),ke(t))return 0===t.length?-1:Ae(e,t,n,r,i);if("number"==typeof t)return t&=255,_e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ae(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Ae(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function h(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(h(e,o)===h(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,l=0;l<u;l++)if(h(e,o+l)!==h(t,l)){f=!1;break}if(f)return o}return-1}function Oe(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Te(e,t,n,r){return Qe(Ke(t,e.length-n),e,n,r)}function Le(e,t,n,r){return Qe(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ue(e,t,n,r){return Le(e,t,n,r)}function Me(e,t,n,r){return Qe(Je(t),e,n,r)}function ze(e,t,n,r){return Qe(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Be(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Ie(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,h=e[i],c=null,f=h>239?4:h>223?3:h>191?2:1;if(i+f<=n)switch(f){case 1:h<128&&(c=h);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&h)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=Pe)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Pe));return n}(r)}_e.TYPED_ARRAY_SUPPORT=void 0===b.TYPED_ARRAY_SUPPORT||b.TYPED_ARRAY_SUPPORT,_e.poolSize=8192,_e._augment=function(e){return e.__proto__=_e.prototype,e},_e.from=function(e,t,n){return ve(null,e,t,n)},_e.TYPED_ARRAY_SUPPORT&&(_e.prototype.__proto__=Uint8Array.prototype,_e.__proto__=Uint8Array),_e.alloc=function(e,t,n){return function(e,t,n,r){return we(t),t<=0?me(e,t):void 0!==n?"string"==typeof r?me(e,t).fill(n,r):me(e,t).fill(n):me(e,t)}(null,e,t,n)},_e.allocUnsafe=function(e){return be(null,e)},_e.allocUnsafeSlow=function(e){return be(null,e)},_e.isBuffer=et,_e.compare=function(e,t){if(!ke(e)||!ke(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},_e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_e.concat=function(e,t){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return _e.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=_e.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!ke(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},_e.byteLength=Re,_e.prototype._isBuffer=!0,_e.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)xe(this,t,t+1);return this},_e.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)xe(this,t,t+3),xe(this,t+1,t+2);return this},_e.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)xe(this,t,t+7),xe(this,t+1,t+6),xe(this,t+2,t+5),xe(this,t+3,t+4);return this},_e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ie(this,0,e):Ce.apply(this,arguments)},_e.prototype.equals=function(e){if(!ke(e))throw new TypeError("Argument must be a Buffer");return this===e||0===_e.compare(this,e)},_e.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},_e.prototype.compare=function(e,t,n,r,i){if(!ke(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),h=e.slice(t,n),c=0;c<a;++c)if(u[c]!==h[c]){o=u[c],s=h[c];break}return o<s?-1:s<o?1:0},_e.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},_e.prototype.indexOf=function(e,t,n){return Se(this,e,t,n,!0)},_e.prototype.lastIndexOf=function(e,t,n){return Se(this,e,t,n,!1)},_e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Oe(this,e,t,n);case"utf8":case"utf-8":return Te(this,e,t,n);case"ascii":return Le(this,e,t,n);case"latin1":case"binary":return Ue(this,e,t,n);case"base64":return Me(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},_e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Pe=4096;function je(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Fe(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Ne(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Xe(e[o]);return i}function De(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function qe(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Ze(e,t,n,r,i,o){if(!ke(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function He(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Ye(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function We(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ve(e,t,n,r,i){return i||We(e,0,n,4),le(e,t,n,r,23,4),n+4}function Ge(e,t,n,r,i){return i||We(e,0,n,8),le(e,t,n,r,52,8),n+8}_e.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),_e.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=_e.prototype;else{var i=t-e;n=new _e(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},_e.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},_e.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},_e.prototype.readUInt8=function(e,t){return t||qe(e,1,this.length),this[e]},_e.prototype.readUInt16LE=function(e,t){return t||qe(e,2,this.length),this[e]|this[e+1]<<8},_e.prototype.readUInt16BE=function(e,t){return t||qe(e,2,this.length),this[e]<<8|this[e+1]},_e.prototype.readUInt32LE=function(e,t){return t||qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_e.prototype.readUInt32BE=function(e,t){return t||qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_e.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},_e.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},_e.prototype.readInt8=function(e,t){return t||qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_e.prototype.readInt16LE=function(e,t){t||qe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},_e.prototype.readInt16BE=function(e,t){t||qe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},_e.prototype.readInt32LE=function(e,t){return t||qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_e.prototype.readInt32BE=function(e,t){return t||qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_e.prototype.readFloatLE=function(e,t){return t||qe(e,4,this.length),fe(this,e,!0,23,4)},_e.prototype.readFloatBE=function(e,t){return t||qe(e,4,this.length),fe(this,e,!1,23,4)},_e.prototype.readDoubleLE=function(e,t){return t||qe(e,8,this.length),fe(this,e,!0,52,8)},_e.prototype.readDoubleBE=function(e,t){return t||qe(e,8,this.length),fe(this,e,!1,52,8)},_e.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ze(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},_e.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ze(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},_e.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,1,255,0),_e.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},_e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,65535,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):He(this,e,t,!0),t+2},_e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,65535,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):He(this,e,t,!1),t+2},_e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,4294967295,0),_e.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ye(this,e,t,!0),t+4},_e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,4294967295,0),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},_e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ze(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},_e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ze(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},_e.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,1,127,-128),_e.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},_e.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,32767,-32768),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):He(this,e,t,!0),t+2},_e.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,2,32767,-32768),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):He(this,e,t,!1),t+2},_e.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,2147483647,-2147483648),_e.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ye(this,e,t,!0),t+4},_e.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ze(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_e.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},_e.prototype.writeFloatLE=function(e,t,n){return Ve(this,e,t,!0,n)},_e.prototype.writeFloatBE=function(e,t,n){return Ve(this,e,t,!1,n)},_e.prototype.writeDoubleLE=function(e,t,n){return Ge(this,e,t,!0,n)},_e.prototype.writeDoubleBE=function(e,t,n){return Ge(this,e,t,!1,n)},_e.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!_e.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},_e.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!_e.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=ke(e)?e:Ke(new _e(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Xe(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ke(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Je(e){return function(e){var t,n,r,i,o,s;ae||ue();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new se(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=oe[e.charCodeAt(t)]<<18|oe[e.charCodeAt(t+1)]<<12|oe[e.charCodeAt(t+2)]<<6|oe[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=oe[e.charCodeAt(t)]<<2|oe[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=oe[e.charCodeAt(t)]<<10|oe[e.charCodeAt(t+1)]<<4|oe[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($e,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Qe(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function et(e){return null!=e&&(!!e._isBuffer||tt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&tt(e.slice(0,0))}(e))}function tt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var nt,rt,it=dt(b.fetch)&&dt(b.ReadableStream);function ot(e){rt||(rt=new b.XMLHttpRequest).open("GET",b.location.host?"/":"https://example.com");try{return rt.responseType=e,rt.responseType===e}catch(e){return!1}}var st=void 0!==b.ArrayBuffer,at=st&&dt(b.ArrayBuffer.prototype.slice),ut=st&&ot("arraybuffer"),ht=!it&&at&&ot("ms-stream"),ct=!it&&st&&ot("moz-chunked-arraybuffer"),ft=dt(rt.overrideMimeType),lt=dt(b.VBArray);function dt(e){return"function"==typeof e}rt=null;var pt="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},gt=/%[sdj%]/g;function mt(e){if(!Ut(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(yt(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(gt,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])Ot(s)||!Bt(s)?o+=" "+s:o+=" "+yt(s);return o}function _t(e,t){if(Mt(b.process))return function(){return _t(e,t).apply(this,arguments)};if(!0===Y.noDeprecation)return e;var n=!1;return function(){if(!n){if(Y.throwDeprecation)throw new Error(t);Y.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var vt,wt={};function bt(e){if(Mt(vt)&&(vt=Y.env.NODE_DEBUG||""),e=e.toUpperCase(),!wt[e])if(new RegExp("\\b"+e+"\\b","i").test(vt)){wt[e]=function(){var t=mt.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else wt[e]=function(){};return wt[e]}function yt(e,t){var n={seen:[],stylize:kt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),At(t)?n.showHidden=t:t&&Ht(n,t),Mt(n.showHidden)&&(n.showHidden=!1),Mt(n.depth)&&(n.depth=2),Mt(n.colors)&&(n.colors=!1),Mt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Et),Rt(n,e,n.depth)}function Et(e,t){var n=yt.styles[t];return n?"["+yt.colors[n][0]+"m"+e+"["+yt.colors[n][1]+"m":e}function kt(e,t){return e}function Rt(e,t,n){if(e.customInspect&&t&&jt(t.inspect)&&t.inspect!==yt&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Ut(r)||(r=Rt(e,r,n)),r}var i=function(e,t){if(Mt(t))return e.stylize("undefined","undefined");if(Ut(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Lt(t))return e.stylize(""+t,"number");if(At(t))return e.stylize(""+t,"boolean");if(Ot(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Pt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ct(t);if(0===o.length){if(jt(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(zt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(It(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Pt(t))return Ct(t)}var u,h="",c=!1,f=["{","}"];(St(t)&&(c=!0,f=["[","]"]),jt(t))&&(h=" [Function"+(t.name?": "+t.name:"")+"]");return zt(t)&&(h=" "+RegExp.prototype.toString.call(t)),It(t)&&(h=" "+Date.prototype.toUTCString.call(t)),Pt(t)&&(h=" "+Ct(t)),0!==o.length||c&&0!=t.length?n<0?zt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)Yt(t,String(s))?o.push(xt(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(xt(e,t,n,r,i,!0))})),o}(e,t,n,s,o):o.map((function(r){return xt(e,t,n,s,r,c)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,h,f)):f[0]+h+f[1]}function Ct(e){return"["+Error.prototype.toString.call(e)+"]"}function xt(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Yt(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=Ot(n)?Rt(e,u.value,null):Rt(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),Mt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function St(e){return Array.isArray(e)}function At(e){return"boolean"==typeof e}function Ot(e){return null===e}function Tt(e){return null==e}function Lt(e){return"number"==typeof e}function Ut(e){return"string"==typeof e}function Mt(e){return void 0===e}function zt(e){return Bt(e)&&"[object RegExp]"===Nt(e)}function Bt(e){return"object"==typeof e&&null!==e}function It(e){return Bt(e)&&"[object Date]"===Nt(e)}function Pt(e){return Bt(e)&&("[object Error]"===Nt(e)||e instanceof Error)}function jt(e){return"function"==typeof e}function Ft(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Nt(e){return Object.prototype.toString.call(e)}function Dt(e){return e<10?"0"+e.toString(10):e.toString(10)}yt.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]},yt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var qt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zt(){var e=new Date,t=[Dt(e.getHours()),Dt(e.getMinutes()),Dt(e.getSeconds())].join(":");return[e.getDate(),qt[e.getMonth()],t].join(" ")}function Ht(e,t){if(!t||!Bt(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Yt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Wt={inherits:pt,_extend:Ht,log:function(){console.log("%s - %s",Zt(),mt.apply(null,arguments))},isBuffer:function(e){return _e.isBuffer(e)},isPrimitive:Ft,isFunction:jt,isError:Pt,isDate:It,isObject:Bt,isRegExp:zt,isUndefined:Mt,isSymbol:function(e){return"symbol"==typeof e},isString:Ut,isNumber:Lt,isNullOrUndefined:Tt,isNull:Ot,isBoolean:At,isArray:St,inspect:yt,deprecate:_t,format:mt,debuglog:bt};function Vt(){}function Gt(){Gt.init.call(this)}function $t(e){return void 0===e._maxListeners?Gt.defaultMaxListeners:e._maxListeners}function Xt(e,t,n){if(t)e.call(n);else for(var r=e.length,i=on(e,r),o=0;o<r;++o)i[o].call(n)}function Kt(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=on(e,i),s=0;s<i;++s)o[s].call(n,r)}function Jt(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=on(e,o),a=0;a<o;++a)s[a].call(n,r,i)}function Qt(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=on(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}function en(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=on(e,i),s=0;s<i;++s)o[s].apply(n,r)}function tn(e,t,n,r){var i,o,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=new Vt,e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(i=$t(e))&&i>0&&s.length>i){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=o[t]=n,++e._eventsCount;return e}function nn(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function rn(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function on(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function sn(){this.head=null,this.tail=null,this.length=0}Vt.prototype=Object.create(null),Gt.EventEmitter=Gt,Gt.usingDomains=!1,Gt.prototype.domain=void 0,Gt.prototype._events=void 0,Gt.prototype._maxListeners=void 0,Gt.defaultMaxListeners=10,Gt.init=function(){this.domain=null,Gt.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Vt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Gt.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Gt.prototype.getMaxListeners=function(){return $t(this)},Gt.prototype.emit=function(e){var t,n,r,i,o,s,a,u="error"===e;if(s=this._events)u=u&&null==s.error;else if(!u)return!1;if(a=this.domain,u){if(t=arguments[1],!a){if(t instanceof Error)throw t;var h=new Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(n=s[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:Xt(n,c,this);break;case 2:Kt(n,c,this,arguments[1]);break;case 3:Jt(n,c,this,arguments[1],arguments[2]);break;case 4:Qt(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];en(n,c,this,i)}return!0},Gt.prototype.addListener=function(e,t){return tn(this,e,t,!1)},Gt.prototype.on=Gt.prototype.addListener,Gt.prototype.prependListener=function(e,t){return tn(this,e,t,!0)},Gt.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,nn(this,e,t)),this},Gt.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,nn(this,e,t)),this},Gt.prototype.removeListener=function(e,t){var n,r,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new Vt:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Vt,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,s||t)}return this},Gt.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Vt,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new Vt:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Vt,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Gt.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},Gt.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):rn.call(e,t)},Gt.prototype.listenerCount=rn,Gt.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},sn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},sn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},sn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},sn.prototype.clear=function(){this.head=this.tail=null,this.length=0},sn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},sn.prototype.concat=function(e){if(0===this.length)return _e.alloc(0);if(1===this.length)return this.head.data;for(var t=_e.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var an=_e.isEncoding||function(e){switch(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 un(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!an(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=cn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=fn;break;default:return void(this.write=hn)}this.charBuffer=new _e(6),this.charReceived=0,this.charLength=0}function hn(e){return e.toString(this.encoding)}function cn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function fn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}un.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},un.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},un.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},pn.ReadableState=dn;var ln=bt("stream");function dn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof qn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new sn,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new un(e.encoding),this.encoding=e.encoding)}function pn(e){if(!(this instanceof pn))return new pn(e);this._readableState=new dn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Gt.call(this)}function gn(e,t,n,r,i){var o=function(e,t){var n=null;_e.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,vn(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&vn(e))),function(e,t){t.readingMore||(t.readingMore=!0,U(bn,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}pt(pn,Gt),pn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=_e.from(e,t),t=""),gn(this,n,e,t,!1)},pn.prototype.unshift=function(e){return gn(this,this._readableState,e,"",!0)},pn.prototype.isPaused=function(){return!1===this._readableState.flowing},pn.prototype.setEncoding=function(e){return this._readableState.decoder=new un(e),this._readableState.encoding=e,this};var mn=8388608;function _n(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=mn?e=mn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function vn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ln("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?U(wn,e):wn(e))}function wn(e){ln("emit readable"),e.emit("readable"),kn(e)}function bn(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ln("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function yn(e){ln("readable nexttick read 0"),e.read(0)}function En(e,t){t.reading||(ln("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),kn(e),t.flowing&&!t.reading&&e.read(0)}function kn(e){var t=e._readableState;for(ln("flow",t.flowing);t.flowing&&null!==e.read(););}function Rn(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=_e.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function Cn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,U(xn,t,e))}function xn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Sn(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function An(){}function On(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function Tn(e,t){Object.defineProperty(this,"buffer",{get:_t((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof qn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?U(i,r):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var o=Bn(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||zn(e,n),r?U(Mn,e,n,o,i):Mn(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new jn(this)}function Ln(e){if(!(this instanceof Ln||this instanceof qn))return new Ln(e);this._writableState=new Tn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),Gt.call(this)}function Un(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Mn(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),Pn(e,t)}function zn(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0;n;)i[s]=n,n=n.next,s+=1;Un(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new jn(t)}else{for(;n;){var a=n.chunk,u=n.encoding,h=n.callback;if(Un(e,t,!1,t.objectMode?1:a.length,a,u,h),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function Bn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function In(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Pn(e,t){var n=Bn(t);return n&&(0===t.pendingcb?(In(e,t),t.finished=!0,e.emit("finish")):In(e,t)),n}function jn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}pn.prototype.read=function(e){ln("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ln("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Cn(this):vn(this),null;if(0===(e=_n(e,t))&&t.ended)return 0===t.length&&Cn(this),null;var r,i=t.needReadable;return ln("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&ln("length less than watermark",i=!0),t.ended||t.reading?ln("reading or ended",i=!1):i&&(ln("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_n(n,t))),null===(r=e>0?Rn(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Cn(this)),null!==r&&this.emit("data",r),r},pn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},pn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,ln("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?s:h;function o(e){ln("onunpipe"),e===n&&h()}function s(){ln("onend"),e.end()}r.endEmitted?U(i):n.once("end",i),e.on("unpipe",o);var a=function(e){return function(){var t=e._readableState;ln("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,kn(e))}}(n);e.on("drain",a);var u=!1;function h(){ln("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",a),e.removeListener("error",l),e.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",h),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var c=!1;function f(t){ln("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Sn(r.pipes,e))&&!u&&(ln("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function l(t){ln("onerror",t),g(),e.removeListener("error",l),0===function(e,t){return e.listeners(t).length}(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){ln("onfinish"),e.removeListener("close",d),g()}function g(){ln("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",l),e.once("close",d),e.once("finish",p),e.emit("pipe",n),r.flowing||(ln("pipe resume"),n.resume()),e},pn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=Sn(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},pn.prototype.on=function(e,t){var n=Gt.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&vn(this):U(yn,this))}return n},pn.prototype.addListener=pn.prototype.on,pn.prototype.resume=function(){var e=this._readableState;return e.flowing||(ln("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,U(En,e,t))}(this,e)),this},pn.prototype.pause=function(){return ln("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(ln("pause"),this._readableState.flowing=!1,this.emit("pause")),this},pn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(ln("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){(ln("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){ln("wrapped _read",t),n&&(n=!1,e.resume())},r},pn._fromList=Rn,Ln.WritableState=Tn,pt(Ln,Gt),Tn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Ln.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Ln.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),_e.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=An),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),U(t,n)}(this,n):function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):_e.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),U(r,o),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=_e.from(t,n));return t}(t,n,r),_e.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new On(n,r,i),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Un(e,t,!1,o,n,r,i);return s}(this,r,e,t,n)),i},Ln.prototype.cork=function(){this._writableState.corked++},Ln.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||zn(this,e))},Ln.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Ln.prototype._write=function(e,t,n){n(new Error("not implemented"))},Ln.prototype._writev=null,Ln.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Pn(e,t),n&&(t.finished?U(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},pt(qn,pn);for(var Fn=Object.keys(Ln.prototype),Nn=0;Nn<Fn.length;Nn++){var Dn=Fn[Nn];qn.prototype[Dn]||(qn.prototype[Dn]=Ln.prototype[Dn])}function qn(e){if(!(this instanceof qn))return new qn(e);pn.call(this,e),Ln.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",Zn)}function Zn(){this.allowHalfOpen||this._writableState.ended||U(Hn,this)}function Hn(e){e.end()}function Yn(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Wn(e){if(!(this instanceof Wn))return new Wn(e);qn.call(this,e),this._transformState=new Yn(this);var t=this;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.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Vn(t,e)})):Vn(t)}))}function Vn(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Gn(e){if(!(this instanceof Gn))return new Gn(e);Wn.call(this,e)}function $n(){Gt.call(this)}pt(Wn,qn),Wn.prototype.push=function(e,t){return this._transformState.needTransform=!1,qn.prototype.push.call(this,e,t)},Wn.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Wn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Wn.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},pt(Gn,Wn),Gn.prototype._transform=function(e,t,n){n(null,e)},pt($n,Gt),$n.Readable=pn,$n.Writable=Ln,$n.Duplex=qn,$n.Transform=Wn,$n.PassThrough=Gn,$n.Stream=$n,$n.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(h(),0===Gt.listenerCount(this,"error"))throw e}function h(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",h),n.removeListener("close",h),e.removeListener("close",h)}return n.on("error",u),e.on("error",u),n.on("end",h),n.on("close",h),e.on("close",h),e.emit("pipe",n),e};var Xn=3,Kn=4;function Jn(e,t,n){var r,i=this;if(pn.call(i),i._mode=n,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",(function(){Y.nextTick((function(){i.emit("close")}))})),"fetch"===n){i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText;for(var o,s,a=t.headers[Symbol.iterator]();o=(s=a.next()).value,!s.done;)i.headers[o[0].toLowerCase()]=o[1],i.rawHeaders.push(o[0],o[1]);var u=t.body.getReader();(r=function(){u.read().then((function(e){i._destroyed||(e.done?i.push(null):(i.push(new _e(e.value)),r()))}))})()}else{if(i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===i.headers[n]&&(i.headers[n]=[]),i.headers[n].push(t[2])):void 0!==i.headers[n]?i.headers[n]+=", "+t[2]:i.headers[n]=t[2],i.rawHeaders.push(t[1],t[2])}})),i._charset="x-user-defined",!ft){var h=i.rawHeaders["mime-type"];if(h){var c=h.match(/;\s*charset=([^;])(;|$)/);c&&(i._charset=c[1].toLowerCase())}i._charset||(i._charset="utf-8")}}}function Qn(e){var t,n=this;Ln.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new _e(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!ft;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return it&&t?"fetch":ct?"moz-chunked-arraybuffer":ht?"ms-stream":ut&&e?"arraybuffer":lt&&e?"text:vbarray":"text"}(t,r),n.on("finish",(function(){n._onFinish()}))}pt(Jn,pn),Jn.prototype._read=function(){},Jn.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Kn)break;try{n=new b.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new _e(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var r=n.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new _e(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);e.push(i)}else e.push(r,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==Kn||!t.response)break;n=t.response,e.push(new _e(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==Xn||!n)break;e.push(new _e(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==Xn)break;var s=new b.MSStreamReader;s.onprogress=function(){s.result.byteLength>e._pos&&(e.push(new _e(new Uint8Array(s.result.slice(e._pos)))),e._pos=s.result.byteLength)},s.onload=function(){e.push(null)},s.readAsArrayBuffer(n)}e._xhr.readyState===Kn&&"ms-stream"!==e._mode&&e.push(null)},pt(Qn,Ln);var er=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];Qn.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===er.indexOf(n)&&(this._headers[n]={name:e,value:t})},Qn.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},Qn.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},Qn.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,n=e._opts,r=e._headers;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method||(t=function(){if(void 0!==nt)return nt;try{new b.Blob([new ArrayBuffer(1)]),nt=!0}catch(e){nt=!1}return nt}()?new b.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(et(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):_e.concat(e._body).toString()),"fetch"===e._mode){var i=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));b.fetch(e._opts.url,{method:e._opts.method,headers:i,body:t,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new b.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void Y.nextTick((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case Xn:case Kn:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void Y.nextTick((function(){e.emit("error",t)}))}}}},Qn.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},Qn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Jn(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Qn.prototype._write=function(e,t,n){this._body.push(e),n()},Qn.prototype.abort=Qn.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Qn.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),Ln.prototype.end.call(this,e,t,n)},Qn.prototype.flushHeaders=function(){},Qn.prototype.setTimeout=function(){},Qn.prototype.setNoDelay=function(){},Qn.prototype.setSocketKeepAlive=function(){};/*! https://mths.be/punycode v1.4.1 by @mathias */
2
+ var tr=2147483647,nr=/[^\x20-\x7E]/,rr=/[\x2E\u3002\uFF0E\uFF61]/g,ir={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},or=Math.floor,sr=String.fromCharCode;function ar(e){throw new RangeError(ir[e])}function ur(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function hr(e,t,n){var r=0;for(e=n?or(e/700):e>>1,e+=or(e/t);e>455;r+=36)e=or(e/35);return or(r+36*e/(e+38))}function cr(e){return function(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}((e=e.replace(rr,".")).split("."),t).join(".");return r+i}(e,(function(e){return nr.test(e)?"xn--"+function(e){var t,n,r,i,o,s,a,u,h,c,f,l,d,p,g,m=[];for(e=function(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}(e),l=e.length,t=128,n=0,o=72,s=0;s<l;++s)(f=e[s])<128&&m.push(sr(f));for(r=i=m.length,i&&m.push("-");r<l;){for(a=tr,s=0;s<l;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>or((tr-n)/(d=r+1))&&ar("overflow"),n+=(a-t)*d,t=a,s=0;s<l;++s)if((f=e[s])<t&&++n>tr&&ar("overflow"),f==t){for(u=n,h=36;!(u<(c=h<=o?1:h>=o+26?26:h-o));h+=36)g=u-c,p=36-c,m.push(sr(ur(c+g%p,0))),u=or(g/p);m.push(sr(ur(u,0))),o=hr(n,d,r==i),n=0,++r}++n,++t}return m.join("")}(e):e}))}function fr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var lr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function dr(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function pr(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var gr=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t};function mr(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var u=0;u<a;++u){var h,c,f,l,d=e[u].replace(o,"%20"),p=d.indexOf(n);p>=0?(h=d.substr(0,p),c=d.substr(p+1)):(h=d,c=""),f=decodeURIComponent(h),l=decodeURIComponent(c),fr(i,f)?lr(i[f])?i[f].push(l):i[f]=[i[f],l]:i[f]=l}return i}var _r={parse:Lr,resolve:function(e,t){return Lr(e,!1,!0).resolve(t)},resolveObject:function(e,t){return e?Lr(e,!1,!0).resolveObject(t):t},format:function(e){Ut(e)&&(e=Ur({},e));return Mr(e)},Url:vr};function vr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var wr=/^([a-z0-9.+-]+:)/i,br=/:[0-9]*$/,yr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Er=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),kr=["'"].concat(Er),Rr=["%","/","?",";","#"].concat(kr),Cr=["/","?","#"],xr=/^[+a-z0-9A-Z_-]{0,63}$/,Sr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ar={javascript:!0,"javascript:":!0},Or={javascript:!0,"javascript:":!0},Tr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Lr(e,t,n){if(e&&Bt(e)&&e instanceof vr)return e;var r=new vr;return r.parse(e,t,n),r}function Ur(e,t,n,r){if(!Ut(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),o=-1!==i&&i<t.indexOf("#")?"?":"#",s=t.split(o);s[0]=s[0].replace(/\\/g,"/");var a=t=s.join(o);if(a=a.trim(),!r&&1===t.split("#").length){var u=yr.exec(a);if(u)return e.path=a,e.href=a,e.pathname=u[1],u[2]?(e.search=u[2],e.query=n?mr(e.search.substr(1)):e.search.substr(1)):n&&(e.search="",e.query={}),e}var h,c,f,l,d=wr.exec(a);if(d){var p=(d=d[0]).toLowerCase();e.protocol=p,a=a.substr(d.length)}if(r||d||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===a.substr(0,2);!g||d&&Or[d]||(a=a.substr(2),e.slashes=!0)}if(!Or[d]&&(g||d&&!Tr[d])){var m,_,v=-1;for(h=0;h<Cr.length;h++)-1!==(c=a.indexOf(Cr[h]))&&(-1===v||c<v)&&(v=c);for(-1!==(_=-1===v?a.lastIndexOf("@"):a.lastIndexOf("@",v))&&(m=a.slice(0,_),a=a.slice(_+1),e.auth=decodeURIComponent(m)),v=-1,h=0;h<Rr.length;h++)-1!==(c=a.indexOf(Rr[h]))&&(-1===v||c<v)&&(v=c);-1===v&&(v=a.length),e.host=a.slice(0,v),a=a.slice(v),zr(e),e.hostname=e.hostname||"";var w="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!w){var b=e.hostname.split(/\./);for(h=0,f=b.length;h<f;h++){var y=b[h];if(y&&!y.match(xr)){for(var E="",k=0,R=y.length;k<R;k++)y.charCodeAt(k)>127?E+="x":E+=y[k];if(!E.match(xr)){var C=b.slice(0,h),x=b.slice(h+1),S=y.match(Sr);S&&(C.push(S[1]),x.unshift(S[2])),x.length&&(a="/"+x.join(".")+a),e.hostname=C.join(".");break}}}}e.hostname.length>255?e.hostname="":e.hostname=e.hostname.toLowerCase(),w||(e.hostname=cr(e.hostname)),l=e.port?":"+e.port:"";var A=e.hostname||"";e.host=A+l,e.href+=e.host,w&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Ar[p])for(h=0,f=kr.length;h<f;h++){var O=kr[h];if(-1!==a.indexOf(O)){var T=encodeURIComponent(O);T===O&&(T=escape(O)),a=a.split(O).join(T)}}var L=a.indexOf("#");-1!==L&&(e.hash=a.substr(L),a=a.slice(0,L));var U=a.indexOf("?");if(-1!==U?(e.search=a.substr(U),e.query=a.substr(U+1),n&&(e.query=mr(e.query)),a=a.slice(0,U)):n&&(e.search="",e.query={}),a&&(e.pathname=a),Tr[p]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){l=e.pathname||"";var M=e.search||"";e.path=l+M}return e.href=Mr(e),e}function Mr(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var n,r,i,o,s=e.protocol||"",a=e.pathname||"",u=e.hash||"",h=!1,c="";e.host?h=t+e.host:e.hostname&&(h=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(h+=":"+e.port)),e.query&&Bt(e.query)&&Object.keys(e.query).length&&(n=e.query,r=r||"&",i=i||"=",null===n&&(n=void 0),c="object"==typeof n?pr(gr(n),(function(e){var t=encodeURIComponent(dr(e))+i;return lr(n[e])?pr(n[e],(function(e){return t+encodeURIComponent(dr(e))})).join(r):t+encodeURIComponent(dr(n[e]))})).join(r):o?encodeURIComponent(dr(o))+i+encodeURIComponent(dr(n)):"");var f=e.search||c&&"?"+c||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||Tr[s])&&!1!==h?(h="//"+(h||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):h||(h=""),u&&"#"!==u.charAt(0)&&(u="#"+u),f&&"?"!==f.charAt(0)&&(f="?"+f),s+h+(a=a.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(f=f.replace("#","%23"))+u}function zr(e){var t=e.host,n=br.exec(t);n&&(":"!==(n=n[0])&&(e.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(e.hostname=t)}function Br(e,t){"string"==typeof e&&(e=Lr(e));var n=-1===b.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||n,i=e.hostname||e.host,o=e.port,s=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?r+"//"+i:"")+(o?":"+o:"")+s,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var a=new Qn(e);return t&&a.on("response",t),a}function Ir(){}vr.prototype.parse=function(e,t,n){return Ur(this,e,t,n)},vr.prototype.format=function(){return Mr(this)},vr.prototype.resolve=function(e){return this.resolveObject(Lr(e,!1,!0)).format()},vr.prototype.resolveObject=function(e){if(Ut(e)){var t=new vr;t.parse(e,!1,!0),e=t}for(var n,r=new vr,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var h=a[u];"protocol"!==h&&(r[h]=e[h])}return Tr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Tr[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var l=c[f];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Or[e.protocol])r.pathname=e.pathname;else{for(n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,m=r.pathname&&"/"===r.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=_||m||r.host&&e.pathname,w=v,b=r.pathname&&r.pathname.split("/")||[],y=r.protocol&&!Tr[r.protocol];if(n=e.pathname&&e.pathname.split("/")||[],y&&(r.hostname="",r.port=null,r.host&&(""===b[0]?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),v=v&&(""===n[0]||""===b[0])),_)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=n;else if(n.length)b||(b=[]),b.pop(),b=b.concat(n),r.search=e.search,r.query=e.query;else if(!Tt(e.search))return y&&(r.hostname=r.host=b.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,Ot(r.pathname)&&Ot(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=b.slice(-1)[0],k=(r.host||e.host||b.length>1)&&("."===E||".."===E)||""===E,R=0,C=b.length;C>=0;C--)"."===(E=b[C])?b.splice(C,1):".."===E?(b.splice(C,1),R++):R&&(b.splice(C,1),R--);if(!v&&!w)for(;R--;R)b.unshift("..");!v||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),k&&"/"!==b.join("/").substr(-1)&&b.push("");var x=""===b[0]||b[0]&&"/"===b[0].charAt(0);return y&&(r.hostname=r.host=x?"":b.length?b.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&b.length)&&!x&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),Ot(r.pathname)&&Ot(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},vr.prototype.parseHost=function(){return zr(this)},Ir.defaultMaxSockets=4;var Pr={request:Br,get:function(e,t){var n=Br(e,t);return n.end(),n},Agent:Ir,METHODS:["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],STATUS_CODES:{100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}};function jr(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var Fr,Nr=Object.prototype.hasOwnProperty,Dr=Object.keys||function(e){var t=[];for(var n in e)Nr.call(e,n)&&t.push(n);return t},qr=Array.prototype.slice;function Zr(){return void 0!==Fr?Fr:Fr="foo"===function(){}.name}function Hr(e){return Object.prototype.toString.call(e)}function Yr(e){return!et(e)&&("function"==typeof b.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function Wr(e,t){e||Jr(e,!0,t,"==",Qr)}var Vr=/\s*function\s+([^\(\s]*)\s*/;function Gr(e){if(jt(e)){if(Zr())return e.name;var t=e.toString().match(Vr);return t&&t[1]}}function $r(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return Xr(Kr(e.actual),128)+" "+e.operator+" "+Xr(Kr(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||Jr;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=Gr(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}}function Xr(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function Kr(e){if(Zr()||!jt(e))return yt(e);var t=Gr(e);return"[Function"+(t?": "+t:"")+"]"}function Jr(e,t,n,r,i){throw new $r({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function Qr(e,t){e||Jr(e,!0,t,"==",Qr)}function ei(e,t,n,r){if(e===t)return!0;if(et(e)&&et(t))return 0===jr(e,t);if(It(e)&&It(t))return e.getTime()===t.getTime();if(zt(e)&&zt(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(Yr(e)&&Yr(t)&&Hr(e)===Hr(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===jr(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(et(e)!==et(t))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==i&&i===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(Ft(e)||Ft(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=ti(e),o=ti(t);if(i&&!o||!i&&o)return!1;if(i)return ei(e=qr.call(e),t=qr.call(t),n);var s,a,u=Dr(e),h=Dr(t);if(u.length!==h.length)return!1;for(u.sort(),h.sort(),a=u.length-1;a>=0;a--)if(u[a]!==h[a])return!1;for(a=u.length-1;a>=0;a--)if(!ei(e[s=u[a]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function ti(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ni(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function ri(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&Jr(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&Pt(i)&&o&&ni(i,n)||s)&&Jr(i,n,"Got unwanted exception"+r),e&&i&&n&&!ni(i,n)||!e&&i)throw i}function ii(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}Wr.AssertionError=$r,pt($r,Error),Wr.fail=Jr,Wr.ok=Qr,Wr.equal=function e(t,n,r){t!=n&&Jr(t,n,r,"==",e)},Wr.notEqual=function e(t,n,r){t==n&&Jr(t,n,r,"!=",e)},Wr.deepEqual=function e(t,n,r){ei(t,n,!1)||Jr(t,n,r,"deepEqual",e)},Wr.deepStrictEqual=function e(t,n,r){ei(t,n,!0)||Jr(t,n,r,"deepStrictEqual",e)},Wr.notDeepEqual=function e(t,n,r){ei(t,n,!1)&&Jr(t,n,r,"notDeepEqual",e)},Wr.notDeepStrictEqual=function e(t,n,r){ei(t,n,!0)&&Jr(t,n,r,"notDeepStrictEqual",e)},Wr.strictEqual=function e(t,n,r){t!==n&&Jr(t,n,r,"===",e)},Wr.notStrictEqual=function e(t,n,r){t===n&&Jr(t,n,r,"!==",e)},Wr.throws=function(e,t,n){ri(!0,e,t,n)},Wr.doesNotThrow=function(e,t,n){ri(!1,e,t,n)},Wr.ifError=function(e){if(e)throw e};var oi=1e3,si=60*oi,ai=60*si,ui=24*ai,hi=7*ui,ci=365.25*ui,fi=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*ci;case"weeks":case"week":case"w":return n*hi;case"days":case"day":case"d":return n*ui;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ai;case"minutes":case"minute":case"mins":case"min":case"m":return n*si;case"seconds":case"second":case"secs":case"sec":case"s":return n*oi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=ui)return li(e,t,ui,"day");if(t>=ai)return li(e,t,ai,"hour");if(t>=si)return li(e,t,si,"minute");if(t>=oi)return li(e,t,oi,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=ui)return Math.round(e/ui)+"d";if(t>=ai)return Math.round(e/ai)+"h";if(t>=si)return Math.round(e/si)+"m";if(t>=oi)return Math.round(e/oi)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function li(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var di=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=fi,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},pi=ii((function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==Y&&"env"in Y&&(e=Y.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=di(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));var gi,mi={isatty:function(){return!1},ReadStream:function(){throw new Error("tty.ReadStream is not implemented")},WriteStream:function(){throw new Error("tty.ReadStream is not implemented")}};function _i(){return"/tmp"}var vi={EOL:"\n",tmpdir:_i,tmpDir:_i,networkInterfaces:function(){},getNetworkInterfaces:function(){},release:function(){return void 0!==b.navigator?b.navigator.appVersion:""},type:function(){return"Browser"},cpus:function(){return[]},totalmem:function(){return Number.MAX_VALUE},freemem:function(){return Number.MAX_VALUE},uptime:function(){return 0},loadavg:function(){return[]},hostname:function(){return void 0!==b.location?b.location.hostname:""},endianness:function(){if(void 0===gi){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])gi="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");gi="LE"}}return gi}},wi=(e,t)=>{t=t||Y.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)};const bi=Y.env;let yi;function Ei(e){const t=function(e){if(!1===yi)return 0;if(wi("color=16m")||wi("color=full")||wi("color=truecolor"))return 3;if(wi("color=256"))return 2;if(e&&!e.isTTY&&!0!==yi)return 0;const t=yi?1:0;if("win32"===Y.platform){const e=vi.release().split(".");return Number(Y.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in bi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in bi))||"codeship"===bi.CI_NAME?1:t;if("TEAMCITY_VERSION"in bi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(bi.TEAMCITY_VERSION)?1:0;if("truecolor"===bi.COLORTERM)return 3;if("TERM_PROGRAM"in bi){const e=parseInt((bi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(bi.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(bi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(bi.TERM)||"COLORTERM"in bi?1:(bi.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}wi("no-color")||wi("no-colors")||wi("color=false")?yi=!1:(wi("color")||wi("colors")||wi("color=true")||wi("color=always"))&&(yi=!0),"FORCE_COLOR"in bi&&(yi=0===bi.FORCE_COLOR.length||0!==parseInt(bi.FORCE_COLOR,10));var ki,Ri={supportsColor:Ei,stdout:Ei(Y.stdout),stderr:Ei(Y.stderr)},Ci=ii((function(e,t){t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return Y.stderr.write(Wt.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${r} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?Y.env.DEBUG=e:delete Y.env.DEBUG},t.load=function(){return Y.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):mi.isatty(Y.stderr.fd)},t.destroy=Wt.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Ri;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(Y.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=Y.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=di(t);const{formatters:n}=e.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,Wt.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,Wt.inspect(e,this.inspectOpts)}})),xi=ii((function(e){void 0===Y||"renderer"===Y.type||!0===Y.browser||Y.__nwjs?e.exports=pi:e.exports=Ci})),Si=function(){if(!ki){try{ki=xi("follow-redirects")}catch(e){}"function"!=typeof ki&&(ki=function(){})}ki.apply(null,arguments)},Ai=_r.URL,Oi=$n.Writable,Ti=["abort","aborted","connect","error","socket","timeout"],Li=Object.create(null);Ti.forEach((function(e){Li[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var Ui=Di("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Mi=Di("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),zi=Di("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Bi=Di("ERR_STREAM_WRITE_AFTER_END","write after end");function Ii(e,t){Oi.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function Pi(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var i=r+":",o=n[i]=e[r],s=t[r]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,r,o){if("string"==typeof e){var s=e;try{e=Fi(new Ai(s))}catch(t){e=_r.parse(s)}}else Ai&&e instanceof Ai?e=Fi(e):(o=r,r=e,e={protocol:i});return"function"==typeof r&&(o=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,Wr.equal(r.protocol,i,"protocol mismatch"),Si("options",r),new Ii(r,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function ji(){}function Fi(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function Ni(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function Di(e,t){function n(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}function qi(e){for(var t=0;t<Ti.length;t++)e.removeListener(Ti[t],Li[Ti[t]]);e.on("error",ji),e.abort()}Ii.prototype=Object.create(Oi.prototype),Ii.prototype.abort=function(){qi(this._currentRequest),this.emit("abort")},Ii.prototype.write=function(e,t,n){if(this._ending)throw new Bi;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new zi),this.abort()):n&&n()},Ii.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Ii.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ii.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Ii.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Ii.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Ii.prototype,e,{get:function(){return this._currentRequest[e]}})})),Ii.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Ii.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=_r.format(this._options),r._redirectable=this;for(var i=0;i<Ti.length;i++)r.on(Ti[i],Li[Ti[i]]);if(this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;!function e(t){if(r===s._currentRequest)if(t)s.emit("error",t);else if(o<a.length){var n=a[o++];r.finished||r.write(n.data,n.encoding,e)}else s._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Ii.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(qi(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new Mi);else{((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ni(/^content-/i,this._options.headers));var r,i=Ni(/^host$/i,this._options.headers),o=_r.parse(this._currentUrl),s=i||o.host,a=/^\w+:/.test(n)?this._currentUrl:_r.format(Object.assign(o,{host:s}));try{r=_r.resolve(a,n)}catch(e){return void this.emit("error",new Ui(e))}Si("redirecting to",r),this._isRedirect=!0;var u=_r.parse(r);if(Object.assign(this._options,u),(u.protocol!==o.protocol&&"https:"!==u.protocol||u.host!==s&&!function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(u.host,s))&&Ni(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var h={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,h)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Ui(e))}}};var Zi=Pi({http:Pr,https:Pr}),Hi=Pi;Zi.wrap=Hi;var Yi={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"};function Wi(){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}function Vi(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]}var Gi=Uint8Array,$i=Uint16Array,Xi=Int32Array;function Ki(e){for(var t=e.length;--t>=0;)e[t]=0}var Ji=256,Qi=286,eo=30,to=15,no=[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],ro=[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],io=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],so=new Array(576);Ki(so);var ao=new Array(60);Ki(ao);var uo=new Array(512);Ki(uo);var ho=new Array(256);Ki(ho);var co=new Array(29);Ki(co);var fo,lo,po,go=new Array(eo);function mo(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _o(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function vo(e){return e<256?uo[e]:uo[256+(e>>>7)]}function wo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function bo(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,wo(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function yo(e,t,n){bo(e,n[2*t],n[2*t+1])}function Eo(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function ko(e,t,n){var r,i,o=new Array(16),s=0;for(r=1;r<=to;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=Eo(o[a]++,a))}}function Ro(e){var t;for(t=0;t<Qi;t++)e.dyn_ltree[2*t]=0;for(t=0;t<eo;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 Co(e){e.bi_valid>8?wo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function xo(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function So(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&xo(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!xo(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Ao(e,t,n){var r,i,o,s,a=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===r?yo(e,i,t):(yo(e,(o=ho[i])+Ji+1,t),0!==(s=no[o])&&bo(e,i-=co[o],s),yo(e,o=vo(--r),n),0!==(s=ro[o])&&bo(e,r-=go[o],s))}while(a<e.last_lit);yo(e,256,t)}function Oo(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=h=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=h,n=e.heap_len>>1;n>=1;n--)So(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],So(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,So(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,s,a,u=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=to;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>p&&(o=p,g++),u[2*r+1]=o,r>h||(e.bl_count[o]++,s=0,r>=d&&(s=l[r-d]),a=u[2*r],e.opt_len+=a*(o+s),f&&(e.static_len+=a*(c[2*r+1]+s)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>h||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),ko(o,h,e.bl_count)}function To(e,t,n){var r,i,o=-1,s=t[1],a=0,u=7,h=4;for(0===s&&(u=138,h=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<u&&i===s||(a<h?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,o=i,0===s?(u=138,h=3):i===s?(u=6,h=3):(u=7,h=4))}function Lo(e,t,n){var r,i,o=-1,s=t[1],a=0,u=7,h=4;for(0===s&&(u=138,h=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<u&&i===s)){if(a<h)do{yo(e,i,e.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(yo(e,i,e.bl_tree),a--),yo(e,16,e.bl_tree),bo(e,a-3,2)):a<=10?(yo(e,17,e.bl_tree),bo(e,a-3,3)):(yo(e,18,e.bl_tree),bo(e,a-11,7));a=0,o=i,0===s?(u=138,h=3):i===s?(u=6,h=3):(u=7,h=4)}}Ki(go);var Uo=!1;function Mo(e){Uo||(!function(){var e,t,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(co[r]=n,e=0;e<1<<no[r];e++)ho[n++]=r;for(ho[n-1]=r,i=0,r=0;r<16;r++)for(go[r]=i,e=0;e<1<<ro[r];e++)uo[i++]=r;for(i>>=7;r<eo;r++)for(go[r]=i<<7,e=0;e<1<<ro[r]-7;e++)uo[256+i++]=r;for(t=0;t<=to;t++)o[t]=0;for(e=0;e<=143;)so[2*e+1]=8,e++,o[8]++;for(;e<=255;)so[2*e+1]=9,e++,o[9]++;for(;e<=279;)so[2*e+1]=7,e++,o[7]++;for(;e<=287;)so[2*e+1]=8,e++,o[8]++;for(ko(so,287,o),e=0;e<eo;e++)ao[2*e+1]=5,ao[2*e]=Eo(e,5);fo=new mo(so,no,257,Qi,to),lo=new mo(ao,ro,0,eo,to),po=new mo(new Array(0),io,0,19,7)}(),Uo=!0),e.l_desc=new _o(e.dyn_ltree,fo),e.d_desc=new _o(e.dyn_dtree,lo),e.bl_desc=new _o(e.bl_tree,po),e.bi_buf=0,e.bi_valid=0,Ro(e)}function zo(e,t,n,r){bo(e,0+(r?1:0),3),function(e,t,n,r){Co(e),r&&(wo(e,n),wo(e,~n)),Vi(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}function Bo(e){bo(e,2,3),yo(e,256,so),function(e){16===e.bi_valid?(wo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function Io(e,t,n,r){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Ji;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Oo(e,e.l_desc),Oo(e,e.d_desc),s=function(e){var t;for(To(e,e.dyn_ltree,e.l_desc.max_code),To(e,e.dyn_dtree,e.d_desc.max_code),Oo(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*oo[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?zo(e,t,n,r):4===e.strategy||o===i?(bo(e,2+(r?1:0),3),Ao(e,so,ao)):(bo(e,4+(r?1:0),3),function(e,t,n,r){var i;for(bo(e,t-257,5),bo(e,n-1,5),bo(e,r-4,4),i=0;i<r;i++)bo(e,e.bl_tree[2*oo[i]+1],3);Lo(e,e.dyn_ltree,t-1),Lo(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Ao(e,e.dyn_ltree,e.dyn_dtree)),Ro(e),r&&Co(e)}function Po(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ho[n]+Ji+1)]++,e.dyn_dtree[2*vo(t)]++),e.last_lit===e.lit_bufsize-1}function jo(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}var Fo=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function No(e,t,n,r){var i=Fo,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}var Do,qo=-2,Zo=258,Ho=262,Yo=103,Wo=113,Vo=666;function Go(e,t){return e.msg=Yi[t],t}function $o(e){return(e<<1)-(e>4?9:0)}function Xo(e){for(var t=e.length;--t>=0;)e[t]=0}function Ko(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Vi(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Jo(e,t){Io(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ko(e.strm)}function Qo(e,t){e.pending_buf[e.pending++]=t}function es(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ts(e,t){var n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-Ho?e.strstart-(e.w_size-Ho):0,h=e.window,c=e.w_mask,f=e.prev,l=e.strstart+Zo,d=h[o+s-1],p=h[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(n=t)+s]===p&&h[n+s-1]===d&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<l);if(r=Zo-(l-o),o=l-Zo,r>s){if(e.match_start=t,s=r,r>=a)break;d=h[o+s-1],p=h[o+s]}}}while((t=f[t&c])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function ns(e){var t,n,r,i,o,s,a,u,h,c,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-Ho)){Vi(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=f?r-f:0}while(--n);t=n=f;do{r=e.prev[--t],e.prev[t]=r>=f?r-f:0}while(--n);i+=f}if(0===e.strm.avail_in)break;if(s=e.strm,a=e.window,u=e.strstart+e.lookahead,h=i,c=void 0,(c=s.avail_in)>h&&(c=h),n=0===c?0:(s.avail_in-=c,Vi(a,s.input,s.next_in,c,u),1===s.state.wrap?s.adler=jo(s.adler,a,c,u):2===s.state.wrap&&(s.adler=No(s.adler,a,c,u)),s.next_in+=c,s.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Ho&&0!==e.strm.avail_in)}function rs(e,t){for(var n,r;;){if(e.lookahead<Ho){if(ns(e),e.lookahead<Ho&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ho&&(e.match_length=ts(e,n)),e.match_length>=3)if(r=Po(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(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 r=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}function is(e,t){for(var n,r,i;;){if(e.lookahead<Ho){if(ns(e),e.lookahead<Ho&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=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!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ho&&(e.match_length=ts(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=Po(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Jo(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=Po(e,0,e.window[e.strstart-1]))&&Jo(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&&(r=Po(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}function os(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ss(){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 $i(1146),this.dyn_dtree=new $i(122),this.bl_tree=new $i(78),Xo(this.dyn_ltree),Xo(this.dyn_dtree),Xo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new $i(16),this.heap=new $i(573),Xo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new $i(573),Xo(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 as(e){var t=function(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:Wo,e.adler=2===t.wrap?0:1,t.last_flush=0,Mo(t),0):Go(e,qo)}(e);return 0===t&&function(e){e.window_size=2*e.w_size,Xo(e.head),e.max_lazy_match=Do[e.level].max_lazy,e.good_match=Do[e.level].good_length,e.nice_match=Do[e.level].nice_length,e.max_chain_length=Do[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}(e.state),t}function us(e,t){var n,r,i,o;if(!e||!e.state||t>5||t<0)return e?Go(e,qo):qo;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Vo&&4!==t)return Go(e,0===e.avail_out?-5:qo);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,Qo(r,31),Qo(r,139),Qo(r,8),r.gzhead?(Qo(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Qo(r,255&r.gzhead.time),Qo(r,r.gzhead.time>>8&255),Qo(r,r.gzhead.time>>16&255),Qo(r,r.gzhead.time>>24&255),Qo(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Qo(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Qo(r,255&r.gzhead.extra.length),Qo(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=No(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,0),Qo(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Qo(r,3),r.status=Wo);else{var s=8+(r.w_bits-8<<4)<<8;s|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=Wo,es(r,s),0!==r.strstart&&(es(r,e.adler>>>16),es(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending!==r.pending_buf_size));)Qo(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Qo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Qo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=No(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Yo)}else r.status=Yo;if(r.status===Yo&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Ko(e),r.pending+2<=r.pending_buf_size&&(Qo(r,255&e.adler),Qo(r,e.adler>>8&255),e.adler=0,r.status=Wo)):r.status=Wo),0!==r.pending){if(Ko(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&$o(t)<=$o(n)&&4!==t)return Go(e,-5);if(r.status===Vo&&0!==e.avail_in)return Go(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==Vo){var a=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(ns(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=Zo){if(ns(e),e.lookahead<=Zo&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+Zo;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=Zo-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Po(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Po(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Jo(e,!1),0===e.strm.avail_out)?1:2}(r,t):Do[r.level].func(r,t);if(3!==a&&4!==a||(r.status=Vo),1===a||3===a)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===a&&(1===t?Bo(r):5!==t&&(zo(r,0,0,!1),3===t&&(Xo(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ko(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(Qo(r,255&e.adler),Qo(r,e.adler>>8&255),Qo(r,e.adler>>16&255),Qo(r,e.adler>>24&255),Qo(r,255&e.total_in),Qo(r,e.total_in>>8&255),Qo(r,e.total_in>>16&255),Qo(r,e.total_in>>24&255)):(es(r,e.adler>>>16),es(r,65535&e.adler)),Ko(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}Do=[new os(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ns(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Jo(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Ho&&(Jo(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Jo(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Jo(e,!1),e.strm.avail_out),1)})),new os(4,4,8,4,rs),new os(4,5,16,8,rs),new os(4,6,32,32,rs),new os(4,4,16,16,is),new os(8,16,32,32,is),new os(8,16,128,128,is),new os(8,32,128,256,is),new os(32,128,258,1024,is),new os(32,258,258,4096,is)];function hs(e,t){var n,r,i,o,s,a,u,h,c,f,l,d,p,g,m,_,v,w,b,y,E,k,R,C,x;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),o=e.next_out,x=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),u=n.dmax,h=n.wsize,c=n.whave,f=n.wnext,l=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),w=g[d&_];t:for(;;){if(d>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))x[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=g[(65535&w)+(d&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}y=65535&w,(b&=15)&&(p<b&&(d+=C[r++]<<p,p+=8),y+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),w=m[d&v];n:for(;;){if(d>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=m[(65535&w)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(E=65535&w,p<(b&=15)&&(d+=C[r++]<<p,(p+=8)<b&&(d+=C[r++]<<p,p+=8)),(E+=d&(1<<b)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=b,p-=b,E>(b=o-s)){if((b=E-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,R=l,0===f){if(k+=h-b,b<y){y-=b;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}}else if(f<b){if(k+=h+f-b,(b-=f)<y){y-=b;do{x[o++]=l[k++]}while(--b);if(k=0,f<y){y-=b=f;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}}}else if(k+=f-b,b<y){y-=b;do{x[o++]=l[k++]}while(--b);k=o-E,R=x}for(;y>2;)x[o++]=R[k++],x[o++]=R[k++],x[o++]=R[k++],y-=3;y&&(x[o++]=R[k++],y>1&&(x[o++]=R[k++]))}else{k=o-E;do{x[o++]=x[k++],x[o++]=x[k++],x[o++]=x[k++],y-=3}while(y>2);y&&(x[o++]=x[k++],y>1&&(x[o++]=x[k++]))}break}}break}}while(r<i&&o<a);r-=y=p>>3,d&=(1<<(p-=y<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<a?a-o+257:257-(o-a),n.hold=d,n.bits=p}var cs=15,fs=[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],ls=[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],ds=[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],ps=[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];function gs(e,t,n,r,i,o,s,a){var u,h,c,f,l,d,p,g,m,_=a.bits,v=0,w=0,b=0,y=0,E=0,k=0,R=0,C=0,x=0,S=0,A=null,O=0,T=new $i(16),L=new $i(16),U=null,M=0;for(v=0;v<=cs;v++)T[v]=0;for(w=0;w<r;w++)T[t[n+w]]++;for(E=_,y=cs;y>=1&&0===T[y];y--);if(E>y&&(E=y),0===y)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(b=1;b<y&&0===T[b];b++);for(E<b&&(E=b),C=1,v=1;v<=cs;v++)if(C<<=1,(C-=T[v])<0)return-1;if(C>0&&(0===e||1!==y))return-1;for(L[1]=0,v=1;v<cs;v++)L[v+1]=L[v]+T[v];for(w=0;w<r;w++)0!==t[n+w]&&(s[L[t[n+w]]++]=w);if(0===e?(A=U=s,d=19):1===e?(A=fs,O-=257,U=ls,M-=257,d=256):(A=ds,U=ps,d=-1),S=0,w=0,v=b,l=o,k=E,R=0,c=-1,f=(x=1<<E)-1,1===e&&x>852||2===e&&x>592)return 1;for(;;){p=v-R,s[w]<d?(g=0,m=s[w]):s[w]>d?(g=U[M+s[w]],m=A[O+s[w]]):(g=96,m=0),u=1<<v-R,b=h=1<<k;do{i[l+(S>>R)+(h-=u)]=p<<24|g<<16|m|0}while(0!==h);for(u=1<<v-1;S&u;)u>>=1;if(0!==u?(S&=u-1,S+=u):S=0,w++,0==--T[v]){if(v===y)break;v=t[n+s[w]]}if(v>E&&(S&f)!==c){for(0===R&&(R=E),l+=b,C=1<<(k=v-R);k+R<y&&!((C-=T[k+R])<=0);)k++,C<<=1;if(x+=1<<k,1===e&&x>852||2===e&&x>592)return 1;i[c=S&f]=E<<24|k<<16|l-o|0}}return 0!==S&&(i[l+S]=v-R<<24|64<<16|0),a.bits=E,0}var ms=-2,_s=12,vs=30;function ws(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function bs(){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 $i(320),this.work=new $i(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ys(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(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 Xi(852),t.distcode=t.distdyn=new Xi(592),t.sane=1,t.back=-1,0):ms}(e)):ms}function Es(e,t){var n,r;return e?(r=new bs,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?ms:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ys(e))):ms}(e,t),0!==n&&(e.state=null),n):ms}var ks,Rs,Cs=!0;function xs(e){if(Cs){var t;for(ks=new Xi(512),Rs=new Xi(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gs(1,e.lens,0,288,ks,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gs(2,e.lens,0,32,Rs,0,e.work,{bits:5}),Cs=!1}e.lencode=ks,e.lenbits=9,e.distcode=Rs,e.distbits=5}function Ss(e,t){var n,r,i,o,s,a,u,h,c,f,l,d,p,g,m,_,v,w,b,y,E,k,R,C,x=0,S=new Gi(4),A=[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 ms;(n=e.state).mode===_s&&(n.mode=13),s=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,h=n.hold,c=n.bits,f=a,l=u,k=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(2&n.wrap&&35615===h){n.check=0,S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0),h=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=vs;break}if(8!=(15&h)){e.msg="unknown compression method",n.mode=vs;break}if(c-=4,E=8+(15&(h>>>=4)),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=vs;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=512&h?10:_s,h=0,c=0;break;case 2:for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(n.flags=h,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=vs;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=vs;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.head&&(n.head.time=h),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,S[2]=h>>>16&255,S[3]=h>>>24&255,n.check=No(n.check,S,4,0)),h=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(S[0]=255&h,S[1]=h>>>8&255,n.check=No(n.check,S,2,0)),h=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=n.length)>a&&(d=a),d&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Vi(n.head.extra,r,o,d,E)),512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===a)break e;d=0;do{E=r[o+d++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E))}while(E&&d<a);if(512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===a)break e;d=0;do{E=r[o+d++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E))}while(E&&d<a);if(512&n.flags&&(n.check=No(n.check,r,d,o)),a-=d,o+=d,E)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=vs;break}h=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=_s;break;case 10:for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}e.adler=n.check=ws(h),h=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,2;e.adler=n.check=1,n.mode=_s;case _s:if(5===t||6===t)break e;case 13:if(n.last){h>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}switch(n.last=1&h,c-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(xs(n),n.mode=20,6===t){h>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=vs}h>>>=2,c-=2;break;case 14:for(h>>>=7&c,c-=7&c;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=vs;break}if(n.length=65535&h,h=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(d=n.length){if(d>a&&(d=a),d>u&&(d=u),0===d)break e;Vi(i,r,o,d,s),a-=d,o+=d,u-=d,s+=d,n.length-=d;break}n.mode=_s;break;case 17:for(;c<14;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(n.nlen=257+(31&h),h>>>=5,c-=5,n.ndist=1+(31&h),h>>>=5,c-=5,n.ncode=4+(15&h),h>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=vs;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.lens[A[n.have++]]=7&h,h>>>=3,c-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},k=gs(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,k){e.msg="invalid code lengths set",n.mode=vs;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(x=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(v<16)h>>>=m,c-=m,n.lens[n.have++]=v;else{if(16===v){for(C=m+2;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=vs;break}E=n.lens[n.have-1],d=3+(3&h),h>>>=2,c-=2}else if(17===v){for(C=m+3;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}c-=m,E=0,d=3+(7&(h>>>=m)),h>>>=3,c-=3}else{for(C=m+7;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}c-=m,E=0,d=11+(127&(h>>>=m)),h>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=vs;break}for(;d--;)n.lens[n.have++]=E}}if(n.mode===vs)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=vs;break}if(n.lenbits=9,R={bits:n.lenbits},k=gs(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,k){e.msg="invalid literal/lengths set",n.mode=vs;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},k=gs(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,k){e.msg="invalid distances set",n.mode=vs;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(a>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,hs(e,l),s=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,h=n.hold,c=n.bits,n.mode===_s&&(n.back=-1);break}for(n.back=0;_=(x=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(_&&0==(240&_)){for(w=m,b=_,y=v;_=(x=n.lencode[y+((h&(1<<w+b)-1)>>w)])>>>16&255,v=65535&x,!(w+(m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}h>>>=w,c-=w,n.back+=w}if(h>>>=m,c-=m,n.back+=m,n.length=v,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=_s;break}if(64&_){e.msg="invalid literal/length code",n.mode=vs;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(C=n.extra;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(x=n.distcode[h&(1<<n.distbits)-1])>>>16&255,v=65535&x,!((m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(0==(240&_)){for(w=m,b=_,y=v;_=(x=n.distcode[y+((h&(1<<w+b)-1)>>w)])>>>16&255,v=65535&x,!(w+(m=x>>>24)<=c);){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}h>>>=w,c-=w,n.back+=w}if(h>>>=m,c-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=vs;break}n.offset=v,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(C=n.extra;c<C;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=vs;break}n.mode=25;case 25:if(0===u)break e;if(d=l-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=vs;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),g=n.window}else g=i,p=s-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[s++]=g[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;i[s++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===a)break e;a--,h|=r[o++]<<c,c+=8}if(l-=u,e.total_out+=l,n.total+=l,l&&(e.adler=n.check=n.flags?No(n.check,i,l,s-l):jo(n.check,i,l,s-l)),l=u,(n.flags?h:ws(h))!==n.check){e.msg="incorrect data check",n.mode=vs;break}h=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===a)break e;a--,h+=r[o++]<<c,c+=8}if(h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=vs;break}h=0,c=0}n.mode=29;case 29:k=1;break e;case vs:k=-3;break e;case 31:return-4;default:return ms}return e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=c,(n.wsize||l!==e.avail_out&&n.mode<vs&&(n.mode<27||4!==t))&&function(e,t,n,r){var i,o=e.state;null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Gi(o.wsize)),r>=o.wsize?(Vi(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),Vi(o.window,t,n-r,i,o.wnext),(r-=i)?(Vi(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i)))}(e,e.output,e.next_out,l-e.avail_out),f-=e.avail_in,l-=e.avail_out,e.total_in+=f,e.total_out+=l,n.total+=l,n.wrap&&l&&(e.adler=n.check=n.flags?No(n.check,i,l,e.next_out-l):jo(n.check,i,l,e.next_out-l)),e.data_type=n.bits+(n.last?64:0)+(n.mode===_s?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===l||4===t)&&0===k&&(k=-5),k}var As;function Os(e){if(e<1||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Ts(e,t){for(var n=0;n<e.length;n++)this[t+n]=e[n]}Os.prototype.init=function(e,t,n,r,i){var o;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Wi,this.mode){case 1:case 3:case 5:o=function(e,t,n,r,i,o){if(!e)return qo;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return Go(e,qo);8===r&&(r=9);var a=new ss;return e.state=a,a.strm=e,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Gi(2*a.w_size),a.head=new $i(a.hash_size),a.prev=new $i(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Gi(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=n,as(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:o=Es(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},Os.prototype.params=function(){throw new Error("deflateParams Not supported")},Os.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},Os.prototype.write=function(e,t,n,r,i,o,s){this._writeCheck(),this.write_in_progress=!0;var a=this;return Y.nextTick((function(){a.write_in_progress=!1;var u=a._write(e,t,n,r,i,o,s);a.callback(u[0],u[1]),a.pending_close&&a.close()})),this},Os.prototype.writeSync=function(e,t,n,r,i,o,s){return this._writeCheck(),this._write(e,t,n,r,i,o,s)},Os.prototype._write=function(e,t,n,r,i,o,s){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw new Error("Invalid flush value");null==t&&(t=new _e(0),r=0,n=0),i._set?i.set=i._set:i.set=Ts;var a,u=this.strm;switch(u.avail_in=r,u.input=t,u.next_in=n,u.avail_out=s,u.output=i,u.next_out=o,this.mode){case 1:case 3:case 5:a=us(u,e);break;case 7:case 2:case 4:case 6:a=Ss(u,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==a&&0!==a&&this._error(a),this.write_in_progress=!1,[u.avail_in,u.avail_out]},Os.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&(42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Yo&&t!==Wo&&t!==Vo?Go(e,qo):(e.state=null,t===Wo&&Go(e,-3)))}(this.strm):function(e){if(!e||!e.state)return ms;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},Os.prototype.reset=function(){switch(this.mode){case 1:case 5:As=as(this.strm);break;case 2:case 6:As=ys(this.strm)}0!==As&&this._error(As)},Os.prototype._error=function(e){this.onerror(Yi[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var Ls=Object.freeze({__proto__:null,NONE:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,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,Zlib:Os});var Us={};Object.keys(Ls).forEach((function(e){Us[e]=Ls[e]})),Us.Z_MIN_WINDOWBITS=8,Us.Z_MAX_WINDOWBITS=15,Us.Z_DEFAULT_WINDOWBITS=15,Us.Z_MIN_CHUNK=64,Us.Z_MAX_CHUNK=1/0,Us.Z_DEFAULT_CHUNK=16384,Us.Z_MIN_MEMLEVEL=1,Us.Z_MAX_MEMLEVEL=9,Us.Z_DEFAULT_MEMLEVEL=8,Us.Z_MIN_LEVEL=-1,Us.Z_MAX_LEVEL=9,Us.Z_DEFAULT_LEVEL=Us.Z_DEFAULT_COMPRESSION;var Ms={Z_OK:Us.Z_OK,Z_STREAM_END:Us.Z_STREAM_END,Z_NEED_DICT:Us.Z_NEED_DICT,Z_ERRNO:Us.Z_ERRNO,Z_STREAM_ERROR:Us.Z_STREAM_ERROR,Z_DATA_ERROR:Us.Z_DATA_ERROR,Z_MEM_ERROR:Us.Z_MEM_ERROR,Z_BUF_ERROR:Us.Z_BUF_ERROR,Z_VERSION_ERROR:Us.Z_VERSION_ERROR};function zs(e,t,n){var r=[],i=0;function o(){for(var t;null!==(t=e.read());)r.push(t),i+=t.length;e.once("readable",o)}function s(){var t=_e.concat(r,i);r=[],n(null,t),e.close()}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function Bs(e,t){if("string"==typeof t&&(t=new _e(t)),!_e.isBuffer(t))throw new TypeError("Not a string or buffer");var n=Us.Z_FINISH;return e._processChunk(t,n)}function Is(e){if(!(this instanceof Is))return new Is(e);Zs.call(this,e,Us.DEFLATE)}function Ps(e){if(!(this instanceof Ps))return new Ps(e);Zs.call(this,e,Us.INFLATE)}function js(e){if(!(this instanceof js))return new js(e);Zs.call(this,e,Us.GZIP)}function Fs(e){if(!(this instanceof Fs))return new Fs(e);Zs.call(this,e,Us.GUNZIP)}function Ns(e){if(!(this instanceof Ns))return new Ns(e);Zs.call(this,e,Us.DEFLATERAW)}function Ds(e){if(!(this instanceof Ds))return new Ds(e);Zs.call(this,e,Us.INFLATERAW)}function qs(e){if(!(this instanceof qs))return new qs(e);Zs.call(this,e,Us.UNZIP)}function Zs(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||Us.Z_DEFAULT_CHUNK,Wn.call(this,e),e.flush&&e.flush!==Us.Z_NO_FLUSH&&e.flush!==Us.Z_PARTIAL_FLUSH&&e.flush!==Us.Z_SYNC_FLUSH&&e.flush!==Us.Z_FULL_FLUSH&&e.flush!==Us.Z_FINISH&&e.flush!==Us.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||Us.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<Us.Z_MIN_CHUNK||e.chunkSize>Us.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<Us.Z_MIN_WINDOWBITS||e.windowBits>Us.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<Us.Z_MIN_LEVEL||e.level>Us.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<Us.Z_MIN_MEMLEVEL||e.memLevel>Us.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=Us.Z_FILTERED&&e.strategy!=Us.Z_HUFFMAN_ONLY&&e.strategy!=Us.Z_RLE&&e.strategy!=Us.Z_FIXED&&e.strategy!=Us.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!_e.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new Us.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=new Error(e);r.errno=t,r.code=Us.codes[t],n.emit("error",r)};var r=Us.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var i=Us.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||Us.Z_DEFAULT_WINDOWBITS,r,e.memLevel||Us.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new _e(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(Ms).forEach((function(e){Ms[Ms[e]]=e})),pt(Zs,Wn),Zs.prototype.params=function(e,t,n){if(e<Us.Z_MIN_LEVEL||e>Us.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=Us.Z_FILTERED&&t!=Us.Z_HUFFMAN_ONLY&&t!=Us.Z_RLE&&t!=Us.Z_FIXED&&t!=Us.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(Us.Z_SYNC_FLUSH,(function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())}))}else Y.nextTick(n)},Zs.prototype.reset=function(){return this._binding.reset()},Zs.prototype._flush=function(e){this._transform(new _e(0),"",e)},Zs.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=Us.Z_FULL_FLUSH),n.ended)t&&Y.nextTick(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(t)}))}else this._flushFlag=e,this.write(new _e(0),"",t)},Zs.prototype.close=function(e){if(e&&Y.nextTick(e),!this._closed){this._closed=!0,this._binding.close();var t=this;Y.nextTick((function(){t.emit("close")}))}},Zs.prototype._transform=function(e,t,n){var r,i=this._writableState,o=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!_e.isBuffer(e))return n(new Error("invalid input"));o?r=Us.Z_FINISH:(r=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||Us.Z_NO_FLUSH)),this._processChunk(e,r,n)},Zs.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,o=0,s=this,a="function"==typeof n;if(!a){var u,h=[],c=0;this.on("error",(function(e){u=e}));do{var f=this._binding.writeSync(t,e,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw u;var l=_e.concat(h,c);return this.close(),l}var d=this._binding.write(t,e,o,r,this._buffer,this._offset,i);function p(u,f){if(!s._hadError){var l=i-f;if(function(e,t){if(!e)throw new Error(t)}(l>=0,"have should not go down"),l>0){var d=s._buffer.slice(s._offset,s._offset+l);s._offset+=l,a?s.push(d):(h.push(d),c+=d.length)}if((0===f||s._offset>=s._chunkSize)&&(i=s._chunkSize,s._offset=0,s._buffer=new _e(s._chunkSize)),0===f){if(o+=r-u,r=u,!a)return!0;var g=s._binding.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return g.callback=p,void(g.buffer=e)}if(!a)return!1;n()}}d.buffer=e,d.callback=p},pt(Is,Zs),pt(Ps,Zs),pt(js,Zs),pt(Fs,Zs),pt(Ns,Zs),pt(Ds,Zs),pt(qs,Zs);var Hs={codes:Ms,createDeflate:function(e){return new Is(e)},createInflate:function(e){return new Ps(e)},createDeflateRaw:function(e){return new Ns(e)},createInflateRaw:function(e){return new Ds(e)},createGzip:function(e){return new js(e)},createGunzip:function(e){return new Fs(e)},createUnzip:function(e){return new qs(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new Is(t),e,n)},deflateSync:function(e,t){return Bs(new Is(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new js(t),e,n)},gzipSync:function(e,t){return Bs(new js(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new Ns(t),e,n)},deflateRawSync:function(e,t){return Bs(new Ns(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new qs(t),e,n)},unzipSync:function(e,t){return Bs(new qs(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new Ps(t),e,n)},inflateSync:function(e,t){return Bs(new Ps(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new Fs(t),e,n)},gunzipSync:function(e,t){return Bs(new Fs(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),zs(new Ds(t),e,n)},inflateRawSync:function(e,t){return Bs(new Ds(t),e)},Deflate:Is,Inflate:Ps,Gzip:js,Gunzip:Fs,DeflateRaw:Ns,InflateRaw:Ds,Unzip:qs,Zlib:Zs},Ys="0.26.1",Ws=Zi.http,Vs=Zi.https,Gs=Ys,$s=/https:?/;function Xs(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var r=_e.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+r}e.beforeRedirect=function(e){e.headers.host=e.host,Xs(e,t,e.href)}}var Ks=function(e){return new Promise((function(t,n){var r;function i(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}var o=function(e){i(),t(e)},s=!1,a=function(e){i(),s=!0,n(e)},u=e.data,h=e.headers,c={};if(Object.keys(h).forEach((function(e){c[e.toLowerCase()]=e})),"user-agent"in c?h[c["user-agent"]]||delete h[c["user-agent"]]:h["User-Agent"]="axios/"+Gs,u&&!g.isStream(u)){if(_e.isBuffer(u));else if(g.isArrayBuffer(u))u=_e.from(new Uint8Array(u));else{if(!g.isString(u))return a($("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u=_e.from(u,"utf-8")}if(e.maxBodyLength>-1&&u.length>e.maxBodyLength)return a($("Request body larger than maxBodyLength limit",e));c["content-length"]||(h["Content-Length"]=u.length)}var f=void 0;e.auth&&(f=(e.auth.username||"")+":"+(e.auth.password||""));var l=J(e.baseURL,e.url),d=_r.parse(l),p=d.protocol||"http:";if(!f&&d.auth){var m=d.auth.split(":");f=(m[0]||"")+":"+(m[1]||"")}f&&c.authorization&&delete h[c.authorization];var v=$s.test(p),w=v?e.httpsAgent:e.httpAgent;try{_(d.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var b=new Error(t.message);b.config=e,b.url=e.url,b.exists=!0,a(b)}var y={path:_(d.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:h,agent:w,agents:{http:e.httpAgent,https:e.httpsAgent},auth:f};e.socketPath?y.socketPath=e.socketPath:(y.hostname=d.hostname,y.port=d.port);var E,k=e.proxy;if(!k&&!1!==k){var R=p.slice(0,-1)+"_proxy",C=Y.env[R]||Y.env[R.toUpperCase()];if(C){var x=_r.parse(C),S=Y.env.no_proxy||Y.env.NO_PROXY,A=!0;if(S){var O=S.split(",").map((function(e){return e.trim()}));A=!O.some((function(e){return!!e&&("*"===e||("."===e[0]&&d.hostname.substr(d.hostname.length-e.length)===e||d.hostname===e))}))}if(A&&(k={host:x.hostname,port:x.port,protocol:x.protocol},x.auth)){var T=x.auth.split(":");k.auth={username:T[0],password:T[1]}}}}k&&(y.headers.host=d.hostname+(d.port?":"+d.port:""),Xs(y,k,p+"//"+d.hostname+(d.port?":"+d.port:"")+y.path));var L=v&&(!k||$s.test(k.protocol));e.transport?E=e.transport:0===e.maxRedirects?E=Pr:(e.maxRedirects&&(y.maxRedirects=e.maxRedirects),E=L?Vs:Ws),e.maxBodyLength>-1&&(y.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(y.insecureHTTPParser=e.insecureHTTPParser);var U=E.request(y,(function(t){if(!U.aborted){var n=t,r=t.req||U;if(204!==t.statusCode&&"HEAD"!==r.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(Hs.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:r};if("stream"===e.responseType)i.data=n,X(o,a,i);else{var u=[],h=0;n.on("data",(function(t){u.push(t),h+=t.length,e.maxContentLength>-1&&h>e.maxContentLength&&(s=!0,n.destroy(),a($("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,r)))})),n.on("aborted",(function(){s||(n.destroy(),a($("error request aborted",e,"ERR_REQUEST_ABORTED",r)))})),n.on("error",(function(t){U.aborted||a(V(t,e,null,r))})),n.on("end",(function(){try{var t=1===u.length?u[0]:_e.concat(u);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=g.stripBOM(t))),i.data=t}catch(t){a(V(t,e,t.code,i.request,i))}X(o,a,i)}))}}}));if(U.on("error",(function(t){U.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||a(V(t,e,null,U))})),U.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var M=parseInt(e.timeout,10);if(isNaN(M))return void a($("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",U));U.setTimeout(M,(function(){U.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var n=e.transitional||G;a($(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))}))}(e.cancelToken||e.signal)&&(r=function(e){U.aborted||(U.abort(),a(!e||e&&e.type?new ne("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),g.isStream(u)?u.on("error",(function(t){a(V(t,e,null,U))})).pipe(U):U.end(u)}))},Js={"Content-Type":"application/x-www-form-urlencoded"};function Qs(e,t){!g.isUndefined(e)&&g.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ea,ta={transitional:G,adapter:("undefined"!=typeof XMLHttpRequest?ea=re:void 0!==Y&&"[object process]"===Object.prototype.toString.call(Y)&&(ea=Ks),ea),transformRequest:[function(e,t){return W(t,"Accept"),W(t,"Content-Type"),g.isFormData(e)||g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)?e:g.isArrayBufferView(e)?e.buffer:g.isURLSearchParams(e)?(Qs(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):g.isObject(e)||t&&"application/json"===t["Content-Type"]?(Qs(t,"application/json"),function(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ta.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&g.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw V(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};g.forEach(["delete","get","head"],(function(e){ta.headers[e]={}})),g.forEach(["post","put","patch"],(function(e){ta.headers[e]=g.merge(Js)}));var na=ta,ra=function(e,t,n){var r=this||na;return g.forEach(n,(function(n){e=n.call(r,e,t)})),e},ia=function(e){return!(!e||!e.__CANCEL__)};function oa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne("canceled")}var sa=function(e){return oa(e),e.headers=e.headers||{},e.data=ra.call(e,e.data,e.headers,e.transformRequest),e.headers=g.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),g.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||na.adapter)(e).then((function(t){return oa(e),t.data=ra.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ia(t)||(oa(e),t&&t.response&&(t.response.data=ra.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},aa=function(e,t){t=t||{};var n={};function r(e,t){return g.isPlainObject(e)&&g.isPlainObject(t)?g.merge(e,t):g.isPlainObject(t)?g.merge({},t):g.isArray(t)?t.slice():t}function i(n){return g.isUndefined(t[n])?g.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!g.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return g.isUndefined(t[n])?g.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return g.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);g.isUndefined(r)&&t!==a||(n[e]=r)})),n},ua=Ys,ha={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ha[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ca={};ha.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ua+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!ca[i]&&(ca[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var fa={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:ha},la=fa.validators;function da(e){this.defaults=e,this.interceptors={request:new w,response:new w}}da.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=aa(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&fa.assertOptions(n,{silentJSONParsing:la.transitional(la.boolean),forcedJSONParsing:la.transitional(la.boolean),clarifyTimeoutError:la.transitional(la.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!i){var a=[sa,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=t;r.length;){var h=r.shift(),c=r.shift();try{u=h(u)}catch(e){c(e);break}}try{o=sa(u)}catch(e){return Promise.reject(e)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},da.prototype.getUri=function(e){return e=aa(this.defaults,e),_(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},g.forEach(["delete","get","head","options"],(function(e){da.prototype[e]=function(t,n){return this.request(aa(n||{},{method:e,url:t,data:(n||{}).data}))}})),g.forEach(["post","put","patch"],(function(e){da.prototype[e]=function(t,n,r){return this.request(aa(r||{},{method:e,url:t,data:n}))}}));var pa=da;function ga(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new ne(e),t(n.reason))}))}ga.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ga.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},ga.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},ga.source=function(){var e;return{token:new ga((function(t){e=t})),cancel:e}};var ma=ga;var _a=function e(t){var n=new pa(t),r=s(pa.prototype.request,n);return g.extend(r,pa.prototype,n),g.extend(r,n),r.create=function(n){return e(aa(t,n))},r}(na);_a.Axios=pa,_a.Cancel=ne,_a.CancelToken=ma,_a.isCancel=ia,_a.VERSION=Ys,_a.all=function(e){return Promise.all(e)},_a.spread=function(e){return function(t){return e.apply(null,t)}},_a.isAxiosError=function(e){return g.isObject(e)&&!0===e.isAxiosError};var va=_a,wa=_a;va.default=wa;var ba=va,ya={name:"Banners",props:{type:{type:String,validator:function(e){return["header","footer"].includes(e)},default:function(){return"header"}}},data:function(){return{dismissedBanners:[],staticContent:{}}},computed:{mappedStaticContentHeaders:function(){return this.staticContent[this.banner_type]},banner_type:function(){return"header"===this.type?"headers":"footers"}},methods:{dismissBanner:function(e){this.staticContent[this.banner_type].splice(e,1)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ba.get("".concat(t.app_manager_config.baseUrl,"/api/app-manager/marketing-banners")).catch((function(e){console.error(e)}));case 2:n=e.sent,r=n.data,t.staticContent=r.banners;case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))})()}};function Ea(e,t,n,r,i,o,s,a,u,h){"boolean"!=typeof s&&(u=a,a=s,s=!1);const c="function"==typeof n?n.options:n;let f;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),r&&(c._scopeId=r),o?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=f):t&&(f=s?function(e){t.call(this,h(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),f)if(c.functional){const e=c.render;c.render=function(t,n){return f.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,f):[f]}return n}var ka=Ea({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mappedStaticContentHeaders&&e.mappedStaticContentHeaders.length?n("PLayoutSection",e._l(e.mappedStaticContentHeaders,(function(t,r){return n("PBanner",{key:r,attrs:{id:"static-content-header-"+r,status:t.status},on:{dismiss:function(){return e.dismissBanner(r)}}},[n("span",{domProps:{innerHTML:e._s(t.content)}})])})),1):e._e()},staticRenderFns:[]},undefined,ya,"data-v-1a9e80c4",false,undefined,!1,void 0,void 0,void 0),Ra=Object.freeze({__proto__:null,Banners:ka}),Ca={baseUrl:""},xa=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.entries(Ra).forEach((function(t){var n=i(t,2),r=n[0],o=n[1];e.component(r,o)})),e.prototype.app_manager_config=t(t({},Ca),n)},Sa=Object.freeze({__proto__:null,default:xa,Banners:ka});return Object.entries(Sa).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];"default"!==n&&(xa[n]=r)})),xa}();
@@ -17584,39 +17584,35 @@ axios_1.default = _default;var axios = axios_1;var script = {
17584
17584
  },
17585
17585
  computed: {
17586
17586
  mappedStaticContentHeaders: function mappedStaticContentHeaders() {
17587
- var computed = [];
17588
- var banner_type = this.type === 'header' ? 'headers' : 'footers';
17589
-
17590
- for (var key in this.staticContent[banner_type]) {
17591
- if (!this.dismissedBanners.includes(parseInt(key))) {
17592
- computed.push(this.staticContent[banner_type][key]);
17593
- }
17594
- }
17595
-
17596
- return computed;
17587
+ return this.staticContent[this.banner_type];
17588
+ },
17589
+ banner_type: function banner_type() {
17590
+ return this.type === 'header' ? 'headers' : 'footers';
17597
17591
  }
17598
17592
  },
17599
17593
  methods: {
17600
17594
  dismissBanner: function dismissBanner(key) {
17601
- this.dismissedBanners.push(key);
17595
+ this.staticContent[this.banner_type].splice(key, 1);
17602
17596
  }
17603
17597
  },
17604
17598
  mounted: function mounted() {
17605
17599
  var _this = this;
17606
17600
 
17607
17601
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
17608
- var _yield$axios$get, data;
17602
+ var _yield$axios$get$catc, data;
17609
17603
 
17610
17604
  return regeneratorRuntime.wrap(function _callee$(_context) {
17611
17605
  while (1) {
17612
17606
  switch (_context.prev = _context.next) {
17613
17607
  case 0:
17614
17608
  _context.next = 2;
17615
- return axios.get("".concat(_this.app_manager_config.baseUrl, "/api/app-manager/marketing-banners"));
17609
+ return axios.get("".concat(_this.app_manager_config.baseUrl, "/api/app-manager/marketing-banners")).catch(function (error) {
17610
+ console.error(error);
17611
+ });
17616
17612
 
17617
17613
  case 2:
17618
- _yield$axios$get = _context.sent;
17619
- data = _yield$axios$get.data;
17614
+ _yield$axios$get$catc = _context.sent;
17615
+ data = _yield$axios$get$catc.data;
17620
17616
  _this.staticContent = data.banners;
17621
17617
 
17622
17618
  case 5:
@@ -17711,7 +17707,7 @@ var __vue_render__ = function __vue_render__() {
17711
17707
 
17712
17708
  var _c = _vm._self._c || _h;
17713
17709
 
17714
- return _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
17710
+ return _vm.mappedStaticContentHeaders && _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
17715
17711
  return _c('PBanner', {
17716
17712
  key: key,
17717
17713
  attrs: {
@@ -17737,10 +17733,10 @@ var __vue_staticRenderFns__ = [];
17737
17733
  var __vue_inject_styles__ = undefined;
17738
17734
  /* scoped */
17739
17735
 
17740
- var __vue_scope_id__ = "data-v-69017906";
17736
+ var __vue_scope_id__ = "data-v-1a9e80c4";
17741
17737
  /* module identifier */
17742
17738
 
17743
- var __vue_module_identifier__ = "data-v-69017906";
17739
+ var __vue_module_identifier__ = "data-v-1a9e80c4";
17744
17740
  /* functional template */
17745
17741
 
17746
17742
  var __vue_is_functional_template__ = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hulkapps/app-manager-vue",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Vue SDK to render app manager contents",
5
5
  "main": "dist/app-manager-vue.ssr.js",
6
6
  "browser": "dist/app-manager-vue.esm.js",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <PLayoutSection v-if="mappedStaticContentHeaders.length">
2
+ <PLayoutSection v-if="mappedStaticContentHeaders && mappedStaticContentHeaders.length">
3
3
  <PBanner
4
4
  v-for="(header, key) in mappedStaticContentHeaders" :key="key"
5
5
  :id="`static-content-header-${key}`"
@@ -35,26 +35,23 @@ export default {
35
35
  }
36
36
  },
37
37
  computed: {
38
- mappedStaticContentHeaders: function() {
39
- const computed = [];
40
- const banner_type = this.type === 'header' ? 'headers' : 'footers'
41
-
42
- for(var key in this.staticContent[banner_type]) {
43
- if(!this.dismissedBanners.includes(parseInt(key))) {
44
- computed.push(this.staticContent[banner_type][key]);
45
- }
46
- }
47
- return computed;
38
+ mappedStaticContentHeaders() {
39
+ return this.staticContent[this.banner_type];
40
+ },
41
+ banner_type() {
42
+ return this.type === 'header' ? 'headers' : 'footers'
48
43
  }
49
44
  },
50
45
  methods: {
51
46
  dismissBanner(key) {
52
- this.dismissedBanners.push(key);
47
+ this.staticContent[this.banner_type].splice(key, 1);
53
48
  }
54
49
  },
55
50
  async mounted() {
56
51
 
57
- const {data} = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/marketing-banners`);
52
+ const { data } = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/marketing-banners`).catch(error => {
53
+ console.error(error)
54
+ });
58
55
 
59
56
  this.staticContent = data.banners
60
57
  }