1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8517],{882:(e,t,r)=>{"use strict";var n=r(19776);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},3186:(e,t,r)=>{"use strict";let n=r(56036);e.exports=f;let i=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function o(e,t){return"silent"===e?1/0:t.levels.values[e]}let a=Symbol("pino.logFuncs"),s=Symbol("pino.hierarchy"),u={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function l(e,t){let r={logger:t,parent:e[s]};t[s]=r}function f(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let s=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let p=e.serializers||{},g=(t=e.browser.serialize,Array.isArray(t)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(p)),y=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(y=!1);let w=Object.keys(e.customLevels||{}),E=["error","fatal","warn","info","debug","trace"].concat(w);"function"==typeof s&&E.forEach(function(e){s[e]=s}),(!1===e.enabled||e.browser.disabled)&&(e.level="silent");let _=e.level||"info",k=Object.create(s);k.log||(k.log=v);let x={};E.forEach(e=>{x[e]=s[e]?s[e]:i[e]||i[u[e]||"log"]||v}),k[a]=x,l({},k),Object.defineProperty(k,"levelVal",{get:function(){return o(this.level,this)}}),Object.defineProperty(k,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,c(this,S,k,"error"),c(this,S,k,"fatal"),c(this,S,k,"warn"),c(this,S,
1k,"info"),c(this,S,k,"debug"),c(this,S,k,"trace"),w.forEach(e=>{c(this,S,k,e)})}});let S={transmit:n,serialize:g,asObject:e.browser.asObject,asObjectBindingsOnly:e.browser.asObjectBindingsOnly,formatters:e.browser.formatters,levels:E,timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?m:b,messageKey:e.messageKey||"msg",onChild:e.onChild||v};function O(t,r,i){if(!r)throw Error("missing bindings for child Pino");i=i||{},g&&r.serializers&&(i.serializers=r.serializers);let o=i.serializers;if(g&&o){var a=Object.assign({},p,o),s=!0===e.browser.serialize?Object.keys(a):g;delete r.serializers,d([r],s,a,this._stdErrSerialize)}function u(e){this._childLevel=(0|e._childLevel)+1,this.bindings=r,a&&(this.serializers=a,this._serialize=s),n&&(this._logEvent=h([].concat(e._logEvent.bindings,r)))}u.prototype=this;let f=new u(this);return l(this,f),f.child=function(...e){return O.call(this,t,...e)},f.level=i.level||this.level,t.onChild(f),f}return k.levels=function(e){let t=e.customLevels||{};return{values:Object.assign({},f.levels.values,t),labels:Object.assign({},f.levels.labels,function(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}(t))}}(e),k.level=_,k.isLevelEnabled=function(e){return!!this.levels.values[e]&&this.levels.values[e]>=this.levels.values[this.level]},k.setMaxListeners=k.getMaxListeners=k.emit=k.addListener=k.on=k.prependListener=k.once=k.prependOnceListener=k.removeListener=k.removeAllListeners=k.listeners=k.listenerCount=k.eventNames=k.write=k.flush=v,k.serializers=p,k._serialize=g,k._stdErrSerialize=y,k.child=function(...e){return O.call(this,S,...e)},n&&(k._logEvent=h()),k}function c(e,t,r,u){var l,f,c,p,g,y,m;if(Object.defineProperty(e,u,{value:o(e.level,r)>o(u,r)?v:r[a][u],writable:!0,enumerable:!0,configurable:!0}),e[u]===v){if(!t.transmit)return;let n=o(t.transmit.level||e.level,r);if(o(u,r)<n)return}
1e[u]=(l=e,f=t,c=r,p=u,g=l[a][p],function(){let e=f.timestamp(),t=Array(arguments.length),r=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var a=0;a<t.length;a++)t[a]=arguments[a];var s=!1;if(f.serialize&&(d(t,this._serialize,this.serializers,this._stdErrSerialize),s=!0),f.asObject||f.formatters?g.call(r,...function(e,t,r,i,o){let{level:a,log:s=e=>e}=o.formatters||{},u=r.slice(),l=u[0],f={},c=(0|e._childLevel)+1;if(c<1&&(c=1),i&&(f.time=i),a?Object.assign(f,a(t,e.levels.values[t])):f.level=e.levels.values[t],o.asObjectBindingsOnly){if(null!==l&&"object"==typeof l)for(;c--&&"object"==typeof u[0];)Object.assign(f,u.shift());return[s(f),...u]}if(null!==l&&"object"==typeof l){for(;c--&&"object"==typeof u[0];)Object.assign(f,u.shift());l=u.length?n(u.shift(),u):void 0}else"string"==typeof l&&(l=n(u.shift(),u));return void 0!==l&&(f[o.messageKey]=l),[s(f)]}(this,p,t,e,f)):g.apply(r,t),f.transmit){let r=f.transmit.level||l._level,n=o(r,c),i=o(p,c);if(i<n)return;!function(e,t,r,n=!1){let i=t.send,o=t.ts,a=t.methodLevel,s=t.methodValue,u=t.val,l=e._logEvent.bindings;n||d(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=r.filter(function(e){return -1===l.indexOf(e)}),e._logEvent.level.label=a,e._logEvent.level.value=s,i(a,e._logEvent,u),e._logEvent=h(l)}(this,{ts:e,methodLevel:p,methodValue:i,transmitLevel:r,transmitValue:c.levels.values[f.transmit.level||l._level],send:f.transmit.send,val:o(l._level,c)},t,s)}});let b=function(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[s];for(;r.parent;)(r=r.parent).logger.bindings&&t.push(r.logger.bindings);return t.reverse()}(e);0!==b.length&&(e[u]=(y=b,m=e[u],function(){return m.apply(this,[...y,...arguments])}))}function d(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=f.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i])&&t)for(let n in e[i])t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function h(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function p(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}function g(){return{}}function y(e){return e}function v(){}function m(){return!1}function b(){return Date.now()}f.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},f.stdSerializers={mapHttpRequest:g,mapHttpResponse:g,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:g,res:g,err:p,errWithCause:p},f.stdTimeFunctions=Object.assign({},{nullTime:m,epochTime:b,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}}),e.exports.default=f,e.exports.pino=f},3460:e=>{e.exports=function(){throw Error("Readable.from is not available in the browser")}},4247:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.
10","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},4321:(e,t,r)=>{"use strict";var n=r(19776);e.exports=function(e,t){t=t||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function l(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=u(void 0,e[i])):r[i]=u(e[i],t[i])}n.forEach(i,function(e){n.isUndefined(t[e])||(r[e]=u(void 0,t[e]))}),n.forEach(o,l),n.forEach(a,function(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=u(void 0,e[i])):r[i]=u(void 0,t[i])}),n.forEach(s,function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))});var f=i.concat(o).concat(a).concat(s),c=Object.keys(e).concat(Object.keys(t)).filter(function(e){return -1===f.indexOf(e)});return n.forEach(c,l),r}},4445:(e,t,r)=>{"use strict";var n=r(37811),i=r(19776),o=r(88766),a=r(92837),s={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(23602):void 0!==n&&"[object process]"===Object.prototype.toString.call(n)&&(e=r(23602)),e}(),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(i.isObject(e)||t&&"application/json"===t["Content-Type"]){u(t,"application/json");if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}return e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(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}};l.headers={common:{Accept:"application/json, text/plain, */*"}}
1,i.forEach(["delete","get","head"],function(e){l.headers[e]={}}),i.forEach(["post","put","patch"],function(e){l.headers[e]=i.merge(s)}),e.exports=l},8589:(e,t,r)=>{var n=r(37811),i=r(73860),o=function(){},a=function(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var s=e._writableState,u=e._readableState,l=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=!1,d=function(){e.writable||h()},h=function(){f=!1,l||r.call(e)},p=function(){l=!1,f||r.call(e)},g=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},v=function(){n.nextTick(m)},m=function(){if(!c&&(l&&!(u&&u.ended&&!u.destroyed)||f&&!(s&&s.ended&&!s.destroyed)))return r.call(e,Error("premature close"))},b=function(){e.req.on("finish",h)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",h),e.on("abort",v),e.req?b():e.on("request",b)):f&&!s&&(e.on("end",d),e.on("close",d)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",g),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",y),e.on("close",v),function(){c=!0,e.removeListener("complete",h),e.removeListener("abort",v),e.removeListener("request",b),e.req&&e.req.removeListener("finish",h),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("exit",g),e.removeListener("end",p),e.removeListener("error",y),e.removeListener("close",v)}};e.exports=a},15612:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];
1return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}}},16198:(e,t,r)=>{"use strict";let n=r(48212);function i(e,t,r){let i=e.size||10,o=[];return n(e,function(r,n,a){t.call(this,r,n,function(t,r){if(t)return a(t);if(o.push(r),o.length<i)return a();let n=o.splice(0,i);return e.objectMode?a(null,n):a(null,n.reduce((e,t)=>e.concat(t.toString()),""))})},function(t){let n=o.splice(0,o.length);if(n.length>0)if(e.objectMode)this.push(n);else{let e=n.reduce((e,t)=>e.concat(t.toString()),"");this.push(e)}r.call(this,t)})}function o(e,t,r,n){"object"!=typeof e&&(r=t,t=e,e={}),"function"!=typeof t&&(t=function(e,t,r){r(null,e)}),r=function(e){e()};let i=n||e&&e.objectMode||!1;return{options:{highWaterMark:16,...e,objectMode:i},transform:t,flush:r}}e.exports=function(e,t,r){let n=o(e,t,r,!1);return i(n.options,n.transform,n.flush)},e.exports.obj=function(e,t,r){let n=o(e,t,r,!0);return i(n.options,n.transform,n.flush)}},16600:(e,t,r)=>{"use strict";var n=r(19776);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(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(){}}},17828:e=>{e.exports=function(e){var t,r=e._readableState;return r?r.objectMode||"number"==typeof e._duplexState?e.read():e.read((t=r).buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},19776:(e,t,r)=>{"use strict";var n=r(31166),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)f(arguments[n],r);return t},extend:function(e,t,r){return f(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=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}}},21138:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,c=r?i-1:0,d=r?-1:1,h=e[t+c];for(c+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+c],c+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+c],c+=d,f-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=l}return(h?-1:1)*a*Math.pow(2,o-n)}
1,t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+c>=1?t+=d/u:t+=d*Math.pow(2,1-c),t*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+h]=255&a,h+=p,a/=256,l-=8);e[r+h-p]|=128*g}},23602:(e,t,r)=>{"use strict";var n=r(19776),i=r(98274),o=r(16600),a=r(54688),s=r(58333),u=r(89998),l=r(882),f=r(33945);e.exports=function(e){return new Promise(function(t,r){var c=e.data,d=e.headers,h=e.responseType;n.isFormData(c)&&delete d["Content-Type"];var p=new XMLHttpRequest;e.auth&&(d.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password?unescape(encodeURIComponent(e.auth.password)):"")));var g=s(e.baseURL,e.url);function y(){if(p){var n="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null;i(t,r,{data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}}if(p.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(r(f("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){r(f("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(f(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var v=(e.withCredentials||l(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}"setRequestHeader"in p&&n.forEach(d,function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),r(e),p=null)}),c||(c=null),p.send(c)})}},24864:(e,t,r)=>{"use strict";var n=r(19776),i=r(47327),o=r(72424),a=r(4445);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},25007:(e,t,r)=>{let{Transform:n}=r(25518);function i(e){return(t,r,n)=>("function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=(e,t,r)=>r(null,e)),"function"!=typeof n&&(n=null),e(t,r,n))}let o=i((e,t,r)=>{let i=new n(e);return i._transform=t,r&&(i._flush=r),i}),a=i((e,t,r)=>{function i(o){if(!(this instanceof i))return new i(o);this.options=Object.assign({},e,o),n.call(this,this.options),this._transform=t,r&&(this._flush=r)}return!function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}(i,n),i}),s=i(function(e,t,r){let i=new n(Object.assign({objectMode:!0,highWaterMark:16},e));return i._transform=t,r&&(i._flush=r),i});e.exports=o,e.exports.ctor=a,e.exports.obj=s},25277:(e,t,r)=>{e.exports=r(74203)},25518:(e,t,r)=>{(t=e.exports=r(54077)).Stream=t,t.Readable=t,t.Writable=r(86861),t.Duplex=r(87183),t.Transform=r(50139),t.PassThrough=r(55281),t.finished=r(72911),t.pipeline=r(38983)},27001:(e,t,r)=>{"use strict";var n=r(37811);function i(e,t){a(e,t),o(e)}function o(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},30313:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},30681:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},30993:(e,t,r)=>{"use strict";var n=r(4247),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={},a=n.version.split(".");function s(e,t){for(var r=t?t.split("."):a,n=e.split("."),i=0;i<3;i++)if(r[i]>n[i])return!0;else if(r[i]<n[i])break;return!1}i.transitional=function(e,t,r){var i=t&&s(t);function a(e,t){return"[Axios v"+n.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw Error(a(n," has been removed in "+t));return i&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,r){if("object"!=typeof e)throw TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=void 0===s||a(s,o,e);if(!0!==u)throw TypeError("option "+o+" must be "+u);continue}if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},31166:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},33945:(e,t,r)=>{"use strict";var n=r(92837);e.exports=function(e,t,r,i,o){return n(Error(e),t,r,i,o)}},36840:(e,t,r)=>{e.exports=r(88617).EventEmitter},38553:(e,t,r)=>{"use strict";var n=r(91616);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},38983:(e,t,r)=>{"use strict";var n,i=r(72113).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,f=Array(i),c=0;c<i;c++)f[c]=arguments[c];var d=(e=f).length&&"function"==typeof e[e.length-1]?e.pop():s;
1if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new o("streams");var h=f.map(function(e,i){var o,s,l,c,p,g,y=i<f.length-1;return o=i>0,l=s=function(e){t||(t=e),e&&h.forEach(u),y||(h.forEach(u),d(t))},c=!1,s=function(){c||(c=!0,l.apply(void 0,arguments))},p=!1,e.on("close",function(){p=!0}),void 0===n&&(n=r(72911)),n(e,{readable:y,writable:o},function(e){if(e)return s(e);p=!0,s()}),g=!1,function(t){if(!p&&!g){if(g=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},42834:(e,t,r)=>{"use strict";var n=r(72113).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},47327:(e,t,r)=>{"use strict";var n=r(19776),i=r(4445);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},48212:(e,t,r)=>{var n=r(37811),i=r(25518).Transform,o=r(30313);function a(e){i.call(this,e),this._destroyed=!1}function s(e,t,r){r(null,e)}function u(e){return function(t,r,n){return"function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=s),"function"!=typeof n&&(n=null),e(t,r,n)}}o(a,i),a.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;n.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}},e.exports=u(function(e,t,r){var n=new a(e);return n._transform=t,r&&(n._flush=r),n}),e.exports.ctor=u(function(e,t,r){function n(t){if(!(this instanceof n))return new n(t);this.options=Object.assign({},e,t),a.call(this,this.options)}return o(n,a),n.prototype._transform=t,r&&(n.prototype._flush=r),n}),e.exports.obj=u(function(e,t,r){var n=new a(Object.assign({objectMode:!0,highWaterMark:16},e));return n._transform=t,r&&(n._flush=r),n})},50139:(e,t,r)=>{"use strict";e.exports=f;var n=r(72113).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(87183);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(30313)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},51499:(e,t,r)=>{"use strict";var n=r(19776);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)}
1,i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},54077:(e,t,r)=>{"use strict";var n,i,o,a,s,u=r(37811);e.exports=S,S.ReadableState=x,r(88617).EventEmitter;var l=function(e,t){return e.listeners(t).length},f=r(36840),c=r(69205).Buffer,d=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=r(76429);i=h&&h.debuglog?h.debuglog("stream"):function(){};var p=r(72880),g=r(27001),y=r(42834).getHighWaterMark,v=r(72113).F,m=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(30313)(S,f);var _=g.errorOrDestroy,k=["error","close","destroy","pause","resume"];function x(e,t,i){n=n||r(87183),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new p,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=r(57432).StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||r(87183),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function O(e,t,r,n,o){i("readableAddChunk",t);var a,s,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,u);else if(o||(s=function(e,t){var r;return c.isBuffer(t)||t instanceof d||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),s)_(e,s);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===c.prototype||(a=t,t=c.from(a)),n)u.endEmitted?_(e,new E):R(e,u,t,!0);else if(u.ended)_(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?R(e,u,t,!1):A(e,u)):R(e,u,t,!1)}else n||(u.reading=!1,A(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),A(e,t)}function T(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,u.nextTick(j,e))}function j(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function A(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){i("readable nexttick read 0"),e.read(0)}function U(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function M(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,u.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){o||(o=r(57432).StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
1for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},S.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?M(this):L(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&M(this),null;var o=r.needReadable;return i("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&i("length less than watermark",o=!0),r.ended||r.reading?i("reading or ended",o=!1):o&&(i("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(n,r))),null===(t=e>0?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&M(this)),null!==t&&this.emit("data",t),t},S.prototype._read=function(e){_(this,new w("_read()"))},S.prototype.pipe=function(e,t){var r,n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,t);var a=t&&!1===t.end||e===u.stdout||e===u.stderr?y:s;function s(){i("onend"),e.end()}o.endEmitted?u.nextTick(a):n.once("end",a),e.on("unpipe",function t(r,a){i("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",d),c=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f())});var f=(r=n,function(){var e=r._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,N(r))});e.on("drain",f);var c=!1;function d(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!c&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(t){i("onerror",t),y(),e.removeListener("error",h),0===l(e,"error")&&_(e,t)}function p(){e.removeListener("finish",g),y()}function g(){i("onfinish"),e.removeListener("close",p),y()}function y(){i("unpipe"),n.unpipe(e)}return n.on("data",d),!function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
1ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",g),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};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,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?L(this):n.reading||u.nextTick(D,this)),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&u.nextTick(P,this),r},S.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&u.nextTick(P,this),t},S.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(i("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,u.nextTick(U,e,t))),r.paused=!1,this},S.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){if(i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!r.objectMode||null!=o)(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=r(77954)),a(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=I,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===s&&(s=r(3460)),s(S,e,t)})},54688:(e,t,r)=>{"use strict";var n=r(19776);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var o,a=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},55281:(e,t,r)=>{"use strict";e.exports=i;var n=r(50139);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(30313)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},56036:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if("object"==typeof e&&null!==e){var o=r.length+1;if(1===o)return e;var a=Array(o);a[0]=i(e);for(var s=1;s<o;s++)a[s]=i(r[s]);return a.join(" ")}if("string"!=typeof e)return e;var u=r.length;if(0===u)return e;for(var l="",f=0,c=-1,d=e&&e.length||0,h=0;h<d;){if(37===e.charCodeAt(h)&&h+1<d){switch(c=c>-1?c:0,e.charCodeAt(h+1)){case 100:case 102:if(f>=u||null==r[f])break;c<h&&(l+=e.slice(c,h)),l+=Number(r[f]),c=h+2,h++;break;case 105:if(f>=u||null==r[f])break;c<h&&(l+=e.slice(c,h)),l+=Math.floor(Number(r[f])),c=h+2,h++;break;case 79:case 111:case 106:if(f>=u||void 0===r[f])break;c<h&&(l+=e.slice(c,h));var p=typeof r[f];if("string"===p){l+="'"+r[f]+"'",c=h+2,h++;break}if("function"===p){l+=r[f].name||"<anonymous>",c=h+2,h++;break}l+=i(r[f]),c=h+2,h++;break;case 115:if(f>=u)break;c<h&&(l+=e.slice(c,h)),l+=String(r[f]),c=h+2,h++;break;case 37:c<h&&(l+=e.slice(c,h)),l+="%",c=h+2,h++,f--}++f}++h}return -1===c?e:(c<d&&(l+=e.slice(c)),l)}},57432:(e,t,r)=>{"use strict";var n=r(88686).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=c,t=3;break;default:this.write=d,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},58333:(e,t,r)=>{"use strict";var n=r(87397),i=r(64704);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},60829:(e,t,r)=>{e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}};function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},64657:(e,t,r)=>{var n=r(37811),i=r(73860),o=r(8589),a=r(74900),s=function(){},u=/^v?\.0/.test(n.version),l=function(e){return"function"==typeof e},f=function(e,t,r,n){n=i(n);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return n(e);f=!0,n()});var c=!1;return function(t){if(!f&&!c){if(c=!0,u&&a&&(e instanceof(a.ReadStream||s)||e instanceof(a.WriteStream||s))&&l(e.close))return e.close(s);if(e.setHeader&&l(e.abort))return e.abort();if(l(e.destroy))return e.destroy();n(t||Error("stream was destroyed"))}}},c=function(e){e()},d=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=l(t[t.length-1]||s)&&t.pop()||s;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var n=t.map(function(i,o){var a=o<t.length-1;return f(i,a,o>
vendor: 19,415 bytes, line 1
10,function(t){e||(e=t),t&&n.forEach(c),a||(n.forEach(c),r(e))})});return t.reduce(d)}},64704:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},69205:(e,t,r)=>{"use strict";var n=r(69719),i=r(21138),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=a(o),l=u.write(n,i);return l!==o&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e)){var f=e;if(L(f,Uint8Array)){var g=new Uint8Array(f);return d(g.buffer,g.byteOffset,g.byteLength)}return c(f)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var y=e.valueOf&&e.valueOf();if(null!=y&&y!==e)return s.from(y,t,r);var v=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(v)return v;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),a(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(i)return n?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=j[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else -1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){c=!1;break}if(c)return o}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],f=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c<=r)switch(c){case 1:l<128&&(f=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}var d=n,h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",g=0;g<h;)p+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function E(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,o){return t*=1,r>>>=0,o||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,o){return t*=1,r>>>=0,o||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(L(o,Uint8Array))i+o.length>n.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,u=Math.min(o,a),l=this.slice(n,i),f=e.slice(t,r),c=0;c<u;++c)if(l[c]!==f[c]){o=l[c],a=f[c];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,f,c,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(t.substr(2*a,2),16);if((s=u)!=s)break;e[r+a]=u}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,T(O(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,T(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return u=t,l=r,T(R(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,T(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var S=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function R(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},69255:(e,t,r)=>{var n=r(69205).Buffer,i=r(37811),o=r(25518),a=r(8589),s=r(30313),u=r(17828),l=n.from&&n.from!==Uint8Array.from?n.from([0]):new n([0]),f=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){e._autoDestroy&&e.destroy(t)},d=function(e,t){return function(r){r?c(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);o.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(p,o.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e)return void this.end();var t=this,r=a(e,{writable:!0,readable:!1},d(this,this._forwardEnd)),n=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&i.nextTick(n),this._writable=e,this._writable.on("drain",n),this._unwrite=function(){t._writable.removeListener("drain",n),r()},this.uncork()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=a(e,{writable:!1,readable:!0},d(this)),n=function(){t._forward()},i=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new o.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",n),this._readable2.on("end",i),this._unread=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",i),r()},this._forward()},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=u(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;i.nextTick(function(){r._destroy(e),t(null)})},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit
1("close")},p.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return f(this,this._write.bind(this,e,t,r));if(e===l)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},p.prototype._finish=function(e){var t=this;this.emit("preend"),f(this,function(){var r,n;r=t._forwardEnd&&t._writable,n=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),f(t,e)},!r||r._writableState&&r._writableState.finished?n():r._writableState?r.end(n):(r.end(),n())})},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(l),o.Writable.prototype.end.call(this,r))},e.exports=p},69494:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},69719:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),f=0,c=s>0?a-4:a;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[f++]=t>>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},69814:e=>{function t(e){if(e){var r=e;for(var n in t.prototype)r[n]=t.prototype[n];return r}}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},t.prototype.once=function(e,t){var r=this;function n(){r.off(e,n),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),r=this._callbacks[e];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},70929:(e,t,r)=>{"use strict";var n=r(19776),i=r(54688),o=r(51499),a=r(24864),s=r(4321),u=r(30993),l=u.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t,r=e.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(o),t=Promise.resolve(e);f.length;)t=t.then(f.shift(),f.shift());return t}for(var c=e;n.length;){var d=n.shift(),h=n.shift();try{c=d(c)}catch(e){h(e);break}}try{t=a(c)}catch(e){return Promise.reject(e)}for(;o.length;)t=t.then(o.shift(),o.shift());return t},f.prototype.getUri=function(e){return i((e=s(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")}
1,n.forEach(["delete","get","head","options"],function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){f.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}}),e.exports=f},71247:e=>{"use strict";e.exports=function e(t){if(!(this instanceof e))return new e(t);this.err=null,this.value=null;try{this.value=JSON.parse(t)}catch(e){this.err=e}}},71301:(e,t,r)=>{"use strict";let n=r(84439),i=r(81336),o=r(82671);async function a(e={}){return s(e)}function s(e={}){let{size:t=1}=e,r=i.parseJsonStream(),a=i.toLogEntryStream(e);return o(r,a,i.batchStream(t),new n.Client(e).insertStream())}e.exports.createWriteStream=a,e.exports.createWriteStreamSync=s},72113:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){function t(t,n,i){return e.call(this,"string"==typeof r?r:r(t,n,i))||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)l="The ".concat(e," ").concat(u," ").concat(n(t,"type"));else{var i,o,a,s,u,l,f=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";l='The "'.concat(e,'" ').concat(f," ").concat(u," ").concat(n(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},72424:e=>{"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},72880:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=o(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var a=r(69205).Buffer,s=r(33541).inspect,u=s&&s.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n=a.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,r=o,a.prototype.copy.call(t,n,r),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,i(i({},t),{},{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}()},72911:(e,t,r)=>{"use strict";var n=r(72113).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};
1var a,s,u=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,f=function(){t.writable||d()},c=t._writableState&&t._writableState.finished,d=function(){l=!1,c=!0,u||o.call(t)},h=t._readableState&&t._readableState.endEmitted,p=function(){u=!1,h=!0,l||o.call(t)},g=function(e){o.call(t,e)},y=function(){var e;return u&&!h?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",d),t.on("abort",y),t.req?v():t.on("request",v)):l&&!t._writableState&&(t.on("end",f),t.on("close",f)),t.on("end",p),t.on("finish",d),!1!==r.error&&t.on("error",g),t.on("close",y),function(){t.removeListener("complete",d),t.removeListener("abort",y),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",f),t.removeListener("close",f),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",y)}}},73860:(e,t,r)=>{var n=r(15612);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},74203:(e,t,r)=>{"use strict";var n=r(19776),i=r(31166),o=r(70929),a=r(4321);function s(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var u=s(r(4445));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(91616),u.CancelToken=r(38553),u.isCancel=r(72424),u.all=function(e){return Promise.all(e)},u.spread=r(69494),u.isAxiosError=r(30681),e.exports=u,e.exports.default=u},77954:(e,t,r)=>{"use strict";var n,i=r(37811);function o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(72911),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(g,e)}var v=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e,t,r=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){i.nextTick(function(){r[l]?t(r[l]):e(p(void 0,!0))})});var o=this[c];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[f])return void t(p(void 0,!0));e[d](t,r)},r)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));t=new Promise(this[d])}return this[c]=t,t}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),n),v);e.exports=function(e){var t,r=Object.create(m,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[h].read();n?(r[c]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[c]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[c]=null,r[s]=null,r[u]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[f]=!0}
1),e.on("readable",y.bind(null,r)),r}},81336:(e,t,r)=>{"use strict";let n=r(16198),i=r(85245),o=r(25007),a=r(71247);e.exports={batchStream:function(e){return n.obj({size:e})},parseJsonStream:function(){return i(function(e){let t=a(e);if(!t.err)return t.value})},toLogEntryStream:function(e={}){return o.obj(function(t,r,n){let i=function(e){var t;let r=e.time||new Date().getTime(),n=10===(t=e.level)||20===t?"debug":40===t?"warning":50===t?"error":t>=60?"critical":"info",i=e.msg||n,o=e.hostname||"",a=e.service||"",s=e.ddsource||e.source||"",u=e.labels||e.tags||{},l=Object.keys(u).map(e=>`${e}:${u[e]}`).join(","),f=Object.assign({},e,{timestamp:r,status:n,message:i,host:o,service:a,ddsource:s,ddtags:l});return delete f.time,delete f.level,delete f.hostname,delete f.source,delete f.labels,delete f.tags,a||delete f.service,s||delete f.ddsource,l||delete f.ddtags,f}(t);e.keepMsg||delete i.msg,n(null,i)})}}},82671:(e,t,r)=>{var n=r(64657),i=r(30313),o=r(69255),a=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},s=function(e){var t=function(){var r=a(arguments);if(!(this instanceof t))return new t(r);o.call(this,null,null,e),r.length&&this.setPipeline(r)};return i(t,o),t.prototype.setPipeline=function(){var e=a(arguments),t=this,r=!1,i=e[0],o=e[e.length-1];o=o.readable?o:null,i=i.writable?i:null;var s=function(){e[0].emit("error",Error("stream was destroyed"))};if(this.on("close",s),this.on("prefinish",function(){r||t.cork()}
1),n(e,function(e){if(t.removeListener("close",s),e)return t.destroy("premature close"===e.message?null:e);r=!0,!1===t._autoDestroy&&(t._autoDestroy=!0),t.uncork()}),this.destroyed)return s();this.setWritable(i),this.setReadable(o)},t};e.exports=s({autoDestroy:!1,destroy:!1}),e.exports.obj=s({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16}),e.exports.ctor=s},84439:(e,t,r)=>{"use strict";let n=r(25277),i=r(85246);class o{constructor(e={}){this._options=e}async insert(e=[]){let t=Array.isArray(e)?e:[e];if(!(t.length<=0))try{let e=this._options.eu?"https://http-intake.logs.datadoghq.eu":"https://http-intake.logs.datadoghq.com",r={};this._options.ddsource&&(r.ddsource=this._options.ddsource),this._options.ddtags&&(r.ddtags=this._options.ddtags),this._options.service&&(r.service=this._options.service),this._options.hostname&&(r.hostname=this._options.hostname);let i=`${e}/v1/input/${this._options.apiKey}`;return await n.post(i,t,{params:r})}catch(e){console.error("The previous log have not been saved"),console.error(`${e.message} 2${e.stack}`)}}insertStream(){let e=this,t=new i.Writable({objectMode:!0,highWaterMark:1});return t._write=function(t,r,n){e.insert(t).then(()=>{n(null)}).catch(n)},t}}e.exports={Client:o}},85245:(e,t,r)=>{"use strict";let{Transform:n}=r(25518),{StringDecoder:i}=r(57432),o=Symbol("last"),a=Symbol("decoder");function s(e,t,r){var n;if(this.overflow){if(1===(n=this[a].write(e).split(this.matcher)).length)return r();n.shift(),this.overflow=!1}else this[o]+=this[a].write(e),n=this[o].split(this.matcher);this[o]=n.pop();for(var i=0;i<n.length;i++)try{l(this,this.mapper(n[i]))}catch(e){return r(e)}if(this.overflow=this[o].length>this.maxLength,this.overflow&&!this.skipOverflow)return r(Error("maximum buffer reached"));r()}function u(e){if(this[o]+=this[a].end(),this[o])try{l(this,this.mapper(this[o]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).transform=s,r.flush=u,r.readableObjectMode=!0;let l=new n(r);return l[o]="",l[a]=new i("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow,l.overflow=!1,l}},85246:(e,t,r)=>{var n=r(69814);function i(){n.call(this)}i.prototype=new n,e.exports=i,i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),!this.hasListeners("error"))throw e}function l(){r.off("data",n),e.off("drain",i),r.off("end",a),r.off("close",s
2),r.off("error",u),e.off("error",u),r.off("end",l),r.off("close",l),e.off("end",l),e.off("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("end",l),e.on("close",l),e.emit("pipe",r),e}},86861:(e,t,r)=>{"use strict";var n,i,o=r(37811);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,n=e,i=r.entry;for(r.entry=null;i;){var o=i.callback;n.pendingcb--,o(void 0),i=i.next}n.corkedRequestsFree.next=r}}e.exports=S,S.WritableState=x;var s={deprecate:r(60829)},u=r(36840),l=r(69205).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=r(27001),d=r(42834).getHighWaterMark,h=r(72113).F,p=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,E=h.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;function k(){}function x(e,t,i){n=n||r(87183),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new y;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(o.nextTick(i,t),o.nextTick(A,e,r),e._writableState.errorEmitted=!0,_(e,t)):(i(t),e._writableState.errorEmitted=!0,_(e,t),A(e,r));else{var a=L(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),n?o.nextTick(R,e,r,a,i):R(e,r,a,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.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}r(30313)(S,u),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function S(e){var t=this instanceof(n=n||r(87183));if(!t&&!i.call(S,this))return new S(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function O(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),A(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,O(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback,c=t.objectMode?1:u.length;if(O(e,t,!1,c,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function L(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),A(e,t)})}function A(e,t){var r=L(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(j,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===S&&e&&e._writableState instanceof x}})):i=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new v)},S.prototype.write=function(e,t,r){var n,i,a,s,u,c,d,h=this._writableState,g=!1,y=!h.objectMode&&(n=e,l.isBuffer(n)||n instanceof f);return(y&&!l.isBuffer(e)&&(i=e,e=l.from(i)),"function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=k),h.ending)?(a=r,_(this,s=new w),o.nextTick(a,s)):(y||(u=e,c=r,null===u?d=new b:"string"==typeof u||h.objectMode||(d=new p("chunk",["string","Buffer"],u)),!d||(_(this,d),o.nextTick(c,d),0)))&&(h.pendingcb++,g=function(e,t,r,n,i,o){if(!r){var a,s,u=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==u&&(r=!0,i="buffer",n=u)}var f=t.objectMode?1:n.length;t.length+=f;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,f,n,i,o);return c}(this,h,y,e,t,r)),g},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},S.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 E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var n,i,a,s=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(n=this,i=s,a=r,i.ending=!0,A(n,i),a&&(i.finished?o.nextTick(a):n.once("finish",a)),i.ended=!0,n.writable=!1),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}},87183:(e,t,r)=>{"use strict";var n=r(37811),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(54077),a=r(86861);r(30313)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var l=s[u];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},87397:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},88617:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i,o,a;function s(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}g(e,t,u,{once:!0}),"error"!==t&&(i=e,o=s,a={once:!0},"function"==typeof i.on&&g(i,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
2,set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var l=u.length,f=p(u,l),r=0;r<l;++r)n(f[r],this,t);return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,c(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,c(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},88686:(e,t,r)=>{var n=r(69205),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},88766:(e,t,r)=>{"use strict";var n=r(19776);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},89998:(e,t,r)=>{"use strict";var n=r(19776),i=["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"];e.exports=function(e){var t,r,o,a={};
2return e&&n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&(a[t]&&i.indexOf(t)>=0||("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r))}),a}},91616:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},92837:e=>{"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,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}},e}},95458:(e,t,r)=>{"use strict";function n(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=Error(),t.prototype.name=e,t.prototype.constructor=t,t}r.d(t,{n_:()=>tw});let i=n("LaunchDarklyUnexpectedResponseError"),o=n("LaunchDarklyInvalidEnvironmentIdError"),a=n("LaunchDarklyInvalidUserError"),s=n("LaunchDarklyInvalidEventKeyError"),u=n("LaunchDarklyInvalidArgumentError"),l=n("LaunchDarklyFlagFetchError");for(var f={LDUnexpectedResponseError:i,LDInvalidEnvironmentIdError:o,LDInvalidUserError:a,LDInvalidEventKeyError:s,LDInvalidArgumentError:u,LDInvalidDataError:n("LaunchDarklyInvalidDataError"),LDFlagFetchError:l,LDTimeoutError:n("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},c=[],d=[],h=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),p=0;p<64;++p)c[p]=h[p],d[h.charCodeAt(p)]=p;d[45]=62,d[95]=63;var g={fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(function(e,t,r){for(var n,i=[],o=t;o<r;o+=3)i.push(c[(n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+c[n>>12&63]+c[n>>6&63]+c[63&n]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===n?i.push(c[(t=e[r-1])>>2]+c[t<<4&63]+"=="):2===n&&i.push(c[(t=(e[r-2]<<8)+e[r-1])>>10]+c[t>>4&63]+c[t<<2&63]+"="),i.join("")}},y=Array.isArray,v=Object.keys,m=Object.prototype.hasOwnProperty,b=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,i,o,a=y(t),s=y(r);if(a&&s){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,l=r instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==r.getTime();var f=t instanceof RegExp,c=r instanceof RegExp;if(f!=c)return!1;if(f&&c)return t.toString()==r.toString();var d=v(t);if((i=d.length)!==v(r).length)return!1;for(n=i;0!=n--;)if(!m.call(r,d[n]))return!1;for(n=i;0!=n--;)if(!e(t[o=d[n]],r[o]))return!1;return!0}return t!=t&&r!=r};let w=["key","ip","country","email","firstName","lastName","avatar","name"];function E(e){let t=unescape(encodeURIComponent(e));return g.fromByteArray(function(e){let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return t}(t))}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var k,x={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return E(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:E,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return b(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){let t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:_,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){let t;return e?(null!==e.kind&&void 0!==e.kind||w.forEach(r=>{let n=e[r];void 0!==n&&"string"!=typeof n&&((t=t||{...e})[r]=String(n))}),t||e):e},transformValuesToVersionedValues:function(e){let t={};for(let r in e)_(e,r)&&(t[r]={value:e[r],version:0});return t},transformVersionedValuesToValues:function(e){let t={};for(let r in e)_(e,r)&&(t[r]=e[r].value);return t},wrapPromiseCallback:function(e,t){let r=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:r},once:function(e){let t,r=!1;return function(...n){return r||(r=!0,t=e.apply(this,n)),t}}},S=new Uint8Array(16);function O(){if(!k&&!(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(S)}var R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function T(e){return"string"==typeof e&&R.test(e)}for(var L,j,A=[],C=0;C<256;++C)A.push((C+256).toString(16).substr(1));function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase();
2if(!T(r))throw TypeError("Stringified UUID is invalid");return r}var D=0,U=0;function N(e){if(!T(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function I(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=N(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return P(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function M(e){return 14+(e+64>>>9<<4)+1}function B(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function F(e,t,r,n,i,o){var a;return B((a=B(B(t,e),B(n,o)))<<i|a>>>32-i,r)}function q(e,t,r,n,i,o,a){return F(t&r|~t&n,e,t,i,o,a)}function H(e,t,r,n,i,o,a){return F(t&n|r&~n,e,t,i,o,a)}function z(e,t,r,n,i,o,a){return F(t^r^n,e,t,i,o,a)}function W(e,t,r,n,i,o,a){return F(r^(t|~n),e,t,i,o,a)}function V(e,t){return e<<t|e>>>32-t}var $=Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||Array(16),o=(e=e||{}).node||L,a=void 0!==e.clockseq?e.clockseq:j;if(null==o||null==a){var s=e.random||(e.rng||O)();null==o&&(o=L=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=j=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:U+1,f=u-D+(l-U)/1e4;if(f<0&&void 0===e.clockseq&&(a=a+1&16383),(f<0||u>D)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");D=u,U=l,j=a;var c=(1e4*(0xfffffff&(u+=122192928e5))+l)%0x100000000;i[n++]=c>>>24&255,i[n++]=c>>>16&255,i[n++]=c>>>8&255,i[n++]=255&c;var d=u/0x100000000*1e4&0xfffffff;i[n++]=d>>>8&255,i[n++]=255&d,i[n++]=d>>>24&15|16,i[n++]=d>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var h=0;h<6;++h)i[n+h]=o[h];return t||P(i)},v3:I("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[M(t)-1]=t;for(var r=0x67452301,n=-0x10325477,i=-0x67452302,o=0x10325476,a=0;a<e.length;a+=16){var s=r,u=n,l=i,f=o;r=q(r,n,i,o,e[a],7,-0x28955b88),o=q(o,r,n,i,e[a+1],12,-0x173848aa),i=q(i,o,r,n,e[a+2],17,0x242070db),n=q(n,i,o,r,e[a+3],22,-0x3e423112),r=q(r,n,i,o,e[a+4],7,-0xa83f051),o=q(o,r,n,i,e[a+5],12,0x4787c62a),i=q(i,o,r,n,e[a+6],17,-0x57cfb9ed),n=q(n,i,o,r,e[a+7],22,-0x2b96aff),r=q(r,n,i,o,e[a+8],7,0x698098d8),o=q(o,r,n,i,e[a+9],12,-0x74bb0851),i=q(i,o,r,n,e[a+10],17,-42063),n=q(n,i,o,r,e[a+11],22,-0x76a32842),r=q(r,n,i,o,e[a+12],7,0x6b901122),o=q(o,r,n,i,e[a+13],12,-0x2678e6d),i=q(i,o,r,n,e[a+14],17,-0x5986bc72),r=H(r,n=q(n,i,o,r,e[a+15],22,0x49b40821),i,o,e[a+1],5,-0x9e1da9e),o=H(o,r,n,i,e[a+6],9,-0x3fbf4cc0),i=H(i,o,r,n,e[a+11],14,0x265e5a51),n=H(n,i,o,r,e[a],20,-0x16493856),r=H(r,n,i,o,e[a+5],5,-0x29d0efa3),o=H(o,r,n,i,e[a+10],9,0x2441453),i=H(i,o,r,n,e[a+15],14,-0x275e197f),n=H(n,i,o,r,e[a+4],20,-0x182c0438),r=H(r,n,i,o,e[a+9],5,0x21e1cde6),o=H(o,r,n,i,e[a+14],9,-0x3cc8f82a),i=H(i,o,r,n,e[a+3],14,-0xb2af279),n=H(n,i,o,r,e[a+8],20,0x455a14ed),r=H(r,n,i,o,e[a+13],5,-0x561c16fb),o=H(o,r,n,i,e[a+2],9,-0x3105c08),i=H(i,o,r,n,e[a+7],14,0x676f02d9),r=z(r,n=H(n,i,o,r,e[a+12],20,-0x72d5b376),i,o,e[a+5],4,-378558),o=z(o,r,n,i,e[a+8],11,-0x788e097f),i=z(i,o,r,n,e[a+11],16,0x6d9d6122),n=z(n,i,o,r,e[a+14],23,-0x21ac7f4),r=z
2(r,n,i,o,e[a+1],4,-0x5b4115bc),o=z(o,r,n,i,e[a+4],11,0x4bdecfa9),i=z(i,o,r,n,e[a+7],16,-0x944b4a0),n=z(n,i,o,r,e[a+10],23,-0x41404390),r=z(r,n,i,o,e[a+13],4,0x289b7ec6),o=z(o,r,n,i,e[a],11,-0x155ed806),i=z(i,o,r,n,e[a+3],16,-0x2b10cf7b),n=z(n,i,o,r,e[a+6],23,0x4881d05),r=z(r,n,i,o,e[a+9],4,-0x262b2fc7),o=z(o,r,n,i,e[a+12],11,-0x1924661b),i=z(i,o,r,n,e[a+15],16,0x1fa27cf8),r=W(r,n=z(n,i,o,r,e[a+2],23,-0x3b53a99b),i,o,e[a],6,-0xbd6ddbc),o=W(o,r,n,i,e[a+7],10,0x432aff97),i=W(i,o,r,n,e[a+14],15,-0x546bdc59),n=W(n,i,o,r,e[a+5],21,-0x36c5fc7),r=W(r,n,i,o,e[a+12],6,0x655b59c3),o=W(o,r,n,i,e[a+3],10,-0x70f3336e),i=W(i,o,r,n,e[a+10],15,-1051523),n=W(n,i,o,r,e[a+1],21,-0x7a7ba22f),r=W(r,n,i,o,e[a+8],6,0x6fa87e4f),o=W(o,r,n,i,e[a+15],10,-0x1d31920),i=W(i,o,r,n,e[a+6],15,-0x5cfebcec),n=W(n,i,o,r,e[a+13],21,0x4e0811a1),r=W(r,n,i,o,e[a+4],6,-0x8ac817e),o=W(o,r,n,i,e[a+11],10,-0x42c50dcb),i=W(i,o,r,n,e[a+2],15,0x2ad7d2bb),n=W(n,i,o,r,e[a+9],21,-0x14792c6f),r=B(r,s),n=B(n,u),i=B(i,l),o=B(o,f)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(M(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}),v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||O)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return P(n)},v5:I("v5",80,function(e){var t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],r=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),f=0;f<16;++f)l[f]=e[64*u+4*f]<<24|e[64*u+4*f+1]<<16|e[64*u+4*f+2]<<8|e[64*u+4*f+3];s[u]=l}s[a-1][14]=8*(e.length-1)/0x100000000,s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)|0;for(var c=0;c<a;++c){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=s[c][h];for(var p=16;p<80;++p)d[p]=V(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=r[0],y=r[1],v=r[2],m=r[3],b=r[4],w=0;w<80;++w){var E=Math.floor(w/20),_=V(g,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(E,y,v,m)+b+t[E]+d[w]>>>0;b=m,m=v,v=V(y,30)>>>0,y=g,g=_}r[0]=r[0]+g>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!T(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:T,stringify:P,parse:N});let J=["debug","info","warn","error","none"];var K={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw Error("destination for basicLogger was set to a non-function");function r(e){return function(t){console&&console[e]&&console[e].call(console,t)}}let n=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[r("log"),r("info"),r("warn"),r("error")],i=!(!e||!e.destination),o=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",a=1;if(e&&e.level)for(let t=0;t<J.length;t++)J[t]===e.level&&(a=t);let s={};for(let e=0;e<J.length;e++){let r=J[e];if("none"!==r)if(e<a)s[r]=()=>{};else{let a=e;s[r]=function(){!function(e,r,a){let s;if(a.length<1)return;let u=i?r+": "+o:o;if(1!==a.length&&t){let e=[...a];e[0]=u+e[0],s=t(...e)}else s=u+a[0];try{n[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+r+" method threw an exception: "+e)}}(a,r,arguments)}}}return s},validateLogger:function(e){J.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw Error("Provided logger instance must support logger."+t+"(...) method")})}};function G(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}let X=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.";var Y={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+X},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"}
vendor: 4,727 bytes, line 2
2,debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+X},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+X},errorFetchingFlags:function(e){return"Error fetching flag settings: "+G(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,r){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(f.isHttpErrorRecoverable(e)?r:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+X},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+X},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+G(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,r)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+r,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+G(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+X},unrecoverableStreamError:e=>`Error on stream connection ${G(e)}, giving up permanently`,wrongOptionType:(e,t,r)=>'Config option "'+e+'" should be of type '+t+", got "+r+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};let{validateLogger:Z}=K,Q={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,r){let n={};return t.id&&(n.id=er(`${e}.id`,t.id,r)),t.version&&(n.version=er(`${e}.version`,t.version,r)),n}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},ee=/^(\w|\.|-)+$/;function et(e){return e&&e.replace(/\/+$/,"")}function er(e,t,r){if("string"==typeof t&&t.match(ee)){if(!(t.length>64))return t;r.warn(Y.tagValueTooLong(e))}else r.warn(Y.invalidTagValue(e))}
2var en={baseOptionDefs:Q,validate:function(e,t,r,n){var i;let o=x.extend({logger:{default:n}},Q,r),a={};function s(e){x.onNextTick(()=>{t&&t.maybeReportError(new f.LDInvalidArgumentError(e))})}let u=x.extend({},e||{});return i=u,Object.keys(a).forEach(e=>{if(void 0!==i[e]){let t=a[e];n&&n.warn(Y.deprecated(e,t)),t&&(void 0===i[t]&&(i[t]=i[e]),delete i[e])}}),Z((u=function(e){let t=x.extend({},e),r=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";let t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{let a=e[i];if(null!=a){let u=o[i];if(void 0===u)s(Y.unknownOption(i));else{let o=u.type||r(u.default),l=u.validator;if(l){let r=l(i,e[i],n);void 0!==r?t[i]=r:delete t[i]}else if("any"!==o){let e=o.split("|"),n=r(a);0>e.indexOf(n)?"boolean"===o?(t[i]=!!a,s(Y.wrongOptionTypeBoolean(i,n))):(s(Y.wrongOptionType(i,o,n)),t[i]=u.default):"number"===n&&void 0!==u.minimum&&a<u.minimum&&(s(Y.optionBelowMinimum(i,a,u.minimum)),t[i]=u.minimum)}}}}),t.baseUrl=et(t.baseUrl),t.streamUrl=et(t.streamUrl),t.eventsUrl=et(t.eventsUrl),t}(u=function(e){let t=x.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(u))).logger),u},getTags:function(e){let t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};let{getLDUserAgentString:ei}=x;var eo={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};let r={};r[e.userAgentHeaderName||"User-Agent"]=ei(e),t&&t.wrapperName&&(r["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);let n=en.getTags(t),i=Object.keys(n);return i.length&&(r["x-launchdarkly-tags"]=i.sort().map(e=>Array.isArray(n[e])?n[e].sort().map(t=>`${e}/${t}`):[`${e}/${n[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),r},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};let{v1:ea}=$,{getLDHeaders:es,transformHeaders:eu}=eo;var el=function(e,t,r){let n=x.extend({"Content-Type":"application/json"},es(e,r)),i={};return i.sendEvents=(t,i,o)=>{if(!e.httpRequest)return Promise.resolve();let a=JSON.stringify(t),s=o?null:ea();return(function t(u){let l=o?n:x.extend({},n,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":s});return e.httpRequest("POST",i,eu(l,r),a).promise.then(e=>{if(e)return e.status>=400&&f.isHttpErrorRecoverable(e.status)&&u?t(!1):function(e){let t={status:e.status},r=e.header("date");if(r){let e=Date.parse(r);e&&(t.serverTime=e)}return t}(e)}).catch(()=>u?t(!1):Promise.reject())})(!0).catch(()=>{})},i},ef=function e(t,r=[]){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(r.includes(t))throw Error("Cycle detected");return Array.isArray(t)?`[${t.map(n=>e(n,[...r,t])).map(e=>void 0===e?"null":e).join(",")}]`:`{${Object.keys(t).sort().map(n=>{let i=e(t[n],[...r,t]);if(void 0!==i)return`${JSON.stringify(n)}:${i}`}).filter(e=>void 0!==e).join(",")}}`};let{commonBasicLogger:ec}=K;function ed(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function eh(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var ep={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.ke
2y&&null!==e.key;let r=e.key,n=void 0===e.kind?"user":e.kind,i=ed(n),o="multi"===n||null!=r&&""!==r;if("multi"===n){let t=Object.keys(e).filter(e=>"kind"!==e);return o&&t.every(e=>ed(e))&&t.every(t=>{let r=e[t].key;return null!=r&&""!==r})}return o&&i}return!1},getContextKeys:function(e,t=ec()){if(!e)return;let r={},{kind:n,key:i}=e;switch(n){case void 0:r.user=`${i}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(r[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:r[n]=`${i}`}return r},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${eh(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${eh(e[t].key)}`).join(":")}}};let{getContextKinds:eg}=ep;var ey=function(){let e={},t=0,r=0,n={},i={};return e.summarizeEvent=e=>{if("feature"===e.kind){let o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=n[o],s=i[e.key];s||(s=new Set,i[e.key]=s),(e.context?eg(e.context):e.contextKeys?Object.keys(e.contextKeys):[]).forEach(e=>s.add(e)),a?a.count=a.count+1:n[o]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>r&&(r=e.creationDate)}},e.getSummary=()=>{let e={},o=!0;for(let t of Object.values(n)){let r=e[t.key];r||(r={default:t.default,counters:[],contextKinds:[...i[t.key]]},e[t.key]=r);let n={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(n.variation=t.variation),void 0!==t.version&&null!==t.version?n.version=t.version:n.unknown=!0,r.counters.push(n),o=!1}return o?null:{startDate:t,endDate:r,features:e,kind:"summary"}},e.clearSummary=()=>{t=0,r=0,n={},i={}},e},ev=function(e){let t={},r={};return{summarizeEvent:function(e){if("feature"===e.kind){let n=ef(e.context);if(!n)return;let i=t[n];i||(t[n]=ey(),i=t[n],r[n]=e.context),i.summarizeEvent(e)}},getSummaries:function(){let n=t,i=r;return t={},r={},Object.entries(n).map(([t,r])=>{let n=r.getSummary();return n.context=e.filter(i[t]),n})}}};function em(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function eb(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function ew(e){return!e.startsWith("/")}function eE(e,t){let r=ew(e),n=ew(t);if(r&&n)return e===t;if(r){let r=eb(t);return 1===r.length&&e===r[0]}if(n){let r=eb(e);return 1===r.length&&t===r[0]}return e===t}function e_(e){return`/${em(e)}`}var ek={cloneExcluding:function(e,t){let r=[],n={},i=[];for(r.push(...Object.keys(e).map(t=>({key:t,ptr:e_(t),source:e,parent:n,visited:[e]})));r.length;){let e=r.pop();if(t.some(t=>eE(t,e.ptr)))i.push(e.ptr);else{let t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},r.push(...Object.keys(t).map(r=>{var n,i;return{key:r,ptr:(n=e.ptr,i=em(r),`${n}/${i}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]}}))}else e.parent[e.key]=t}}return{cloned:n,excluded:i.sort()}},compare:eE,literalToReference:e_},ex=function(e){let t={},r=e.allAttributesPrivate,n=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;let{cloned:o,excluded:a}=ek.cloneExcluding(e,(r||t&&e.anonymous?Object.keys(e):[...n,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!i.some(t=>ek.compare(e,t))));return o.key=String(o.key),a.length&&(o._meta||(o._meta={}),o._meta.redactedAttributes=a),o._meta&&(delete o._meta.privateAttributes,0===Object.keys(o._meta).length&&delete o._meta),void 0!==o.anonymous&&(o.anonymous=!!o.anonymous),o};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?a((e=>{let t={...e.custom||{},kind:"user",key:e.key};for(let r of(void 0!==e.anonymous&&(t.anonymous=!!e.anonymous),o))delete t[r],void 0!==e[r]&&null!==e[r]&&(t[r]=String(e[r]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?ek.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>
2{let r={kind:e.kind};for(let n of Object.keys(e))if("kind"!==n){let i=a(e[n],t);i&&(r[n]=i)}return r})(e,t):a(e,t),t};let{getContextKeys:eS}=ep;var eO=function(e,t,r,n=null,i=null,o=null){let a={},s=o||el(e,r,t),u=x.appendUrlPath(t.eventsUrl,"/events/bulk/"+r),l=ex(t),c=ev(l),d=t.samplingInterval,h=t.eventCapacity,p=t.flushInterval,g=t.logger,y,v=[],m=0,b=!1,w=!1;function E(){return 0===d||0===Math.floor(Math.random()*d)}function _(e){v.length<h?(v.push(e),w=!1):(w||(w=!0,g.warn(Y.eventCapacityExceeded())),n&&n.incrementDroppedEvents())}return a.enqueue=function(e){if(b)return;let t=!1,r=!1;if(c.summarizeEvent(e),"feature"===e.kind?E()&&(t=!!e.trackEvents,r=!!e.debugEventsUntilDate&&e.debugEventsUntilDate>m&&e.debugEventsUntilDate>(new Date).getTime()):t=E(),t&&_(function(e){let t=x.extend({},e);return"identify"===e.kind||"feature"===e.kind||"custom"===e.kind?t.context=l.filter(e.context):(t.contextKeys=eS(e.context,g),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),r){let t=x.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,_(t)}},a.flush=async function(){if(b)return Promise.resolve();let e=v;return c.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),n&&n.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(v=[],g.debug(Y.debugPostingEvents(e.length)),s.sendEvents(e,u).then(e=>{e&&(e.serverTime&&(m=e.serverTime),f.isHttpErrorRecoverable(e.status)||(b=!0),e.status>=400&&x.onNextTick(()=>{i.maybeReportError(new f.LDUnexpectedResponseError(Y.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},a.start=function(){let e=()=>{a.flush(),y=setTimeout(e,p)};y=setTimeout(e,p)},a.stop=function(){clearTimeout(y)},a},eR=function(e){let t={},r={};return t.on=function(e,t,n){r[e]=r[e]||[],r[e]=r[e].concat({handler:t,context:n})},t.off=function(e,t,n){if(r[e])for(let i=0;i<r[e].length;i++)r[e][i].handler===t&&r[e][i].context===n&&(r[e]=r[e].slice(0,i).concat(r[e].slice(i+1)))},t.emit=function(e){if(!r[e])return;let t=r[e].slice(0);for(let e=0;e<t.length;e++)t[e].handler.apply(t[e].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(r)},t.getEventListenerCount=function(e){return r[e]?r[e].length:0},t.maybeReportError=function(t){t&&(r.error?this.emit("error",t):(e||console).error(t.message))},t};let eT="ready",eL="initialized",ej="failed";var eA=function(e){let t=!1,r=!1,n=null,i=null,o=new Promise(t=>{let r=()=>{e.off(eT,r),t()};e.on(eT,r)}).catch(()=>{});return{getInitializationPromise:()=>i||(t?Promise.resolve():r?Promise.reject(n):i=new Promise((t,r)=>{let n=()=>{e.off(eL,n),t()},i=t=>{e.off(ej,i),r(t)};e.on(eL,n),e.on(ej,i)})),getReadyPromise:()=>o,signalSuccess:()=>{t||r||(t=!0,e.emit(eL),e.emit(eT))},signalFailure:i=>{t||r||(r=!0,n=i,e.emit(ej,i),e.emit(eT)),e.maybeReportError(i)}}},eC=function(e,t,r,n){let i={};function o(){let e="",i=n.getContext();return i&&(e=r||x.btoa(JSON.stringify(i))),"ld:"+t+":"+e}return i.loadFlags=()=>e.get(o()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){let e=t.$schema;void 0===e||e<1?t=x.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return i.clearFlags().then(()=>null)}}),i.saveFlags=t=>{let r=x.extend({},t,{$schema:1});return e.set(o(),JSON.stringify(r))},i.clearFlags=()=>e.clear(o()),i},eP=function(e,t){let r={},n=!1,i=e=>{n||(n=!0,t.warn(Y.localStorageUnavailable(e)))};return r.isEnabled=()=>!!e,r.get=t=>new Promise(r=>{e?e.get(t).then(r).catch(e=>{i(e),r(void 0)}):r(void 0)}),r.set=(t,r)=>new Promise(n=>{e?e.set(t,r).then(()=>n(!0)).catch(e=>{i(e),n(!1)}):n(!1)}),r.clear=t=>new Promise(r=>{e?e.clear(t).then(()=>r(!0)).catch(e=>{i(e),r(!1)}):r(!1)}),r};let{appendUrlPath:eD,base64URLEncode:eU,objectHasOwnProperty:eN}=x,{getLDHeaders:eI,transformHeaders:eM}=eo,{isHttpErrorRecoverable:eB}=f;var eF=function(e,t,r,n){let i=t.streamUrl,o=t.logger,a={},s=eD(i,"/eval/"+r),u=t.useReport,l=t.evaluationReasons,f=t.streamReconnectDelay,c=eI(e,t),d,h=!1,p=null,g=null,y=null,v=null,m=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!eB(e.status))return k(),o.error(Y.unrecoverableStreamError(e)),void(g&&(clearTimeout(g),g=null));let t=function(){var e;let t=(e=function(){let e=f*Math.pow(2,b);return e>3e4?3e4:e}())-Math.trunc(.5*Math.random()*e);return b+=1,t}();h||(o.warn(Y.streamError(e,t)),h=!0),x(!1),k(),E(t)}function E(e){g||(e?g=setTimeout(_,e):_())}function _(){let n;g=null;let a="",f={headers:c,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(let c in null!=v&&(a="h="+v),u?e.eventSourceAllowsReport?(n=s,f.method="REPORT",f.headers["Content-Type"]="application/json",f.body=JSON.stringify(y)):(n=eD(i,"/ping/"+r),a=""):n=s+"/"+eU(JSON.stringify(y)),f.headers=eM(f.headers,t),l&&(a=a+(a?"&":"")+"withReasons=true"),n=n+(a?"?":"")+a,k(),o.info(Y.streamConnecting(n)),d=(new Date).getTime(),p=e.eventSourceFactory(n,f),m)eN(m,c)&&p.addEventListener(c,m[c]);p.onerror=w,p.onopen=()=>{b=0}}}function k(){p&&(o.info(Y.streamClosing()),p.close(),p=null)}function x(e){d&&n&&n.recordStreamInit(d,!e,(new Date).getTime()-d),d=null}return a.connect=function(e,t,r){for(let n in y=e,v=t,m={},r||{})m[n]=function(e){h=!1,x(!0),r[n]&&r[n](e)};E()},a.disconnect=function(){clearTimeout(g),g=null,k()},a.isConnected=function(){return!!(p&&e.eventSourceIsActive&&e.eventSourceIsActive(p))},a},eq=function(e){let t,r,n,i,o={addPromise:(o,a)=>{t=o,r&&r(),r=a,o.then(r=>{t===o&&(n(r),e&&e())},r=>{t===o&&(i(r),e&&e())})}};return o.resultPromise=new Promise((e,t)=>
2{n=e,i=t}),o};let{transformHeaders:eH,getLDHeaders:ez}=eo,eW="application/json";var eV=function(e,t,r){let n=t.baseUrl,i=t.useReport,o=t.evaluationReasons,a=t.logger,s={},u={};function l(r,n){if(!e.httpRequest)return new Promise((e,t)=>{t(new f.LDFlagFetchError(Y.httpUnavailable()))});let i=ez(e,t);n&&(i["Content-Type"]=eW);let o=u[r];o||(o=eq(()=>{delete u[r]}),u[r]=o);let a=e.httpRequest(n?"REPORT":"GET",r,eH(i,t),n),s=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===eW)return JSON.parse(e.body);{let t=Y.invalidContentType(e.header("content-type")||"");return Promise.reject(new f.LDFlagFetchError(t))}}return Promise.reject(404===e.status?new f.LDInvalidEnvironmentIdError(Y.environmentNotFound()):new f.LDFlagFetchError(Y.errorFetchingFlags(e.statusText||String(e.status))))},e=>Promise.reject(new f.LDFlagFetchError(Y.networkError(e))));return o.addPromise(s,()=>{a.cancel&&a.cancel()}),o.resultPromise}return s.fetchJSON=function(e){return l(x.appendUrlPath(n,e),null)},s.fetchFlagSettings=function(e,t){let s,u,f="";return i?(s=n+"/sdk/evalx/"+r+"/context",u=JSON.stringify(e)):s=n+"/sdk/evalx/"+r+"/contexts/"+x.base64URLEncode(JSON.stringify(e)),t&&(f="h="+t),o&&(f=f+(f?"&":"")+"withReasons=true"),s=s+(f?"?":"")+f,a.debug(Y.debugPolling(s)),l(s,u)},s},e$=function(e,t){let r,n={};return n.setContext=function(e){(r=x.sanitizeContext(e))&&t&&t(x.clone(r))},n.getContext=function(){return r?x.clone(r):null},e&&n.setContext(e),n};let{v1:eJ}=$,{getContextKinds:eK}=ep;var eG=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function r(r,n){return null!==n.key&&void 0!==n.key?(n.key=n.key.toString(),Promise.resolve(n)):n.anonymous?e.get(t(r)).then(i=>{if(i)return n.key=i,n;{let i=eJ();return n.key=i,e.set(t(r),i).then(()=>n)}}):Promise.reject(new f.LDInvalidUserError(Y.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new f.LDInvalidUserError(Y.contextNotSpecified()));let t=x.clone(e);return"multi"===e.kind?Promise.all(eK(t).map(e=>r(e,t[e]))).then(()=>t):r(e.kind,t)}};let{v1:eX}=$,{baseOptionDefs:eY}=en,{appendUrlPath:eZ}=x;var eQ={DiagnosticId:function(e){let t={diagnosticId:eX()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},DiagnosticsAccumulator:function(e){let t,r,n,i;function o(e){t=e,r=0,n=0,i=[]}return o(e),{getProps:()=>({dataSinceDate:t,droppedEvents:r,eventsInLastBatch:n,streamInits:i}),setProps:e=>{t=e.dataSinceDate,r=e.droppedEvents||0,n=e.eventsInLastBatch||0,i=e.streamInits||[]},incrementDroppedEvents:()=>{r++},setEventsInLastBatch:e=>{n=e},recordStreamInit:(e,t,r)=>{i.push({timestamp:e,failed:t,durationMillis:r})},reset:o}},DiagnosticsManager:function(e,t,r,n,i,o,a){let s=!!e.diagnosticUseCombinedEvent,u="ld:"+i+":$diagnostics",l=eZ(o.eventsUrl,"/events/diagnostic/"+i),f=
2o.diagnosticRecordingInterval,c,d,h=!!o.streaming,p={};function g(){return{sdk:function(){let t={...e.diagnosticSdkData};return o.wrapperName&&(t.wrapperName=o.wrapperName),o.wrapperVersion&&(t.wrapperVersion=o.wrapperVersion),t}(),configuration:{customBaseURI:o.baseUrl!==eY.baseUrl.default,customStreamURI:o.streamUrl!==eY.streamUrl.default,customEventsURI:o.eventsUrl!==eY.eventsUrl.default,eventsCapacity:o.eventCapacity,eventsFlushIntervalMillis:o.flushInterval,reconnectTimeMillis:o.streamReconnectDelay,streamingDisabled:!h,allAttributesPrivate:!!o.allAttributesPrivate,diagnosticRecordingIntervalMillis:o.diagnosticRecordingInterval,usingSecureMode:!!o.hash,bootstrapMode:!!o.bootstrap,fetchGoalsDisabled:!o.fetchGoals,sendEventsOnlyForVariation:!!o.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function y(e){o.logger&&o.logger.debug(Y.debugPostingDiagnosticEvent(e)),n.sendEvents(e,l,!0).then(()=>{}).catch(()=>{})}function v(){y(function(){let e=(new Date).getTime(),t={kind:s?"diagnostic-combined":"diagnostic",id:a,creationDate:e,...r.getProps()};return s&&(t={...t,...g()}),r.reset(e),t}()),d=setTimeout(v,f),c=(new Date).getTime(),s&&function(){if(t.isEnabled()){let e={...r.getProps()};t.set(u,JSON.stringify(e))}}()}return p.start=()=>{s?function(e){if(!t.isEnabled())return e(!1);t.get(u).then(t=>{if(t)try{let e=JSON.parse(t);r.setProps(e),c=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){let e=(c||0)+f,t=(new Date).getTime();t>=e?v():d=setTimeout(v,e-t)}else 0===Math.floor(4*Math.random())?v():d=setTimeout(v,f)}):(y({kind:"diagnostic-init",id:a,creationDate:r.getProps().dataSinceDate,...g()}),d=setTimeout(v,f))},p.stop=()=>{d&&clearTimeout(d)},p.setStreaming=e=>{h=e},p}},e0=function(e,t){let r=!1,n={type:e.type,name:e.name,synchronous:e.synchronous,method:(...i)=>{try{e.method(...i)}catch{r||(r=!0,t.warn(Y.inspectorMethodError(n.type,n.name)))}}};return n};let{onNextTick:e1}=x,e2={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(e2);let{LDTimeoutError:e5}=f,e6="unknown hook";function e8(e,t,r,n,i){try{return n()}catch(n){return e?.error(`An error was encountered in "${t}" of the "${r}" hook: ${n}`),i}}function e3(e,t){try{return t.getMetadata().name||e6}catch{return e.error("Exception thrown getting metadata for hook. Unable to get hook name."),e6}}var e4=function(e,t){let r=t?[...t]:[];return{withEvaluation:function(t,n,i,o){if(0===r.length)return o();let a=[...r],s={flagKey:t,context:n,defaultValue:i},u=a.map(t=>e8(e,"beforeEvaluation",e3(e,t),()=>t?.beforeEvaluation?.(s,{})??{},{})),l=o();return function(e,t,r,n,i){for(let o=t.length-1;o>=0;o-=1){let a=t[o],s=n[o];e8(e,"afterEvaluation",e3(e,a),()=>a?.afterEvaluation?.(r,s,i)??{},{})}}(e,a,s,u,l),l},identify:function(t,n){let i=[...r],o={context:t,timeout:n},a=i.map(t=>e8(e,"beforeIdentify",e3(e,t),()=>t?.beforeIdentify?.(o,{})??{},{}));return t=>{for(let r=i.length-1;r>=0;r-=1){let n=i[r],s=a[r];e8(e,"afterIdentify",e3(e,n),()=>n?.afterIdentify?.(o,s,t)??{},{})}}},addHook:function(e){r.push(e)},afterTrack:function(t){if(0!==r.length){var n=[...r];for(let r=n.length-1;r>=0;r-=1){let i=n[r];e8(e,"afterTrack",e3(e,i),()=>i?.afterTrack?.(t),void 0)}}}}};let e7="unknown plugin";function e9(e,t){try{return t.getMetadata().name||e7}catch(t){return e.error("Exception thrown getting metadata for plugin. Unable to get plugin name."),e7}}let{commonBasicLogger:te}=K,{checkContext:tt,getContextKeys:tr}=ep,{InspectorTypes:tn,InspectorManager:ti}={InspectorTypes:e2,InspectorManager:function(e,t){let r={},n={[e2.flagUsed]:[],[e2.flagDetailsChanged]:[],[e2.flagDetailChanged]:[],[e2.clientIdentityChanged]:[]},i={[e2.flagUsed]:[],[e2.flagDetailsChanged]:[],[e2.flagDetailChanged]:[],[e2.clientIdentityChanged]:[]},o=e&&e.map(e=>e0(e,t));return o&&o.forEach(e=>{Object.prototype.hasOwnProperty.call(n,e.type)&&!e.synchronous?n[e.type].push(e):Object.prototype.hasOwnProperty.call(i,e.type)&&e.synchronous?i[e.type].push(e):t.warn(Y.invalidInspector(e.type,e.name))}),r.hasListeners=e=>n[e]&&n[e].length||i[e]&&i[e].length,r.onFlagUsed=(e,t,r)=>{let o=e2.flagUsed;
2i[o].length&&i[o].forEach(n=>n.method(e,t,r)),n[o].length&&e1(()=>{n[o].forEach(n=>n.method(e,t,r))})},r.onFlags=e=>{let t=e2.flagDetailsChanged;i[t].length&&i[t].forEach(t=>t.method(e)),n[t].length&&e1(()=>{n[t].forEach(t=>t.method(e))})},r.onFlagChanged=(e,t)=>{let r=e2.flagDetailChanged;i[r].length&&i[r].forEach(r=>r.method(e,t)),n[r].length&&e1(()=>{n[r].forEach(r=>r.method(e,t))})},r.onIdentityChanged=e=>{let t=e2.clientIdentityChanged;i[t].length&&i[t].forEach(t=>t.method(e)),n[t].length&&e1(()=>{n[t].forEach(t=>t.method(e))})},r}},{getPluginHooks:to,registerPlugins:ta,createPluginEnvironment:ts}={getPluginHooks:function(e,t,r){let n=[];return r.forEach(r=>{try{let i=r.getHooks?.(t);void 0===i?e.error(`Plugin ${e9(e,r)} returned undefined from getHooks.`):i&&i.length>0&&n.push(...i)}catch(t){e.error(`Exception thrown getting hooks for plugin ${e9(e,r)}. Unable to get hooks.`)}}),n},registerPlugins:function(e,t,r,n){n.forEach(n=>{try{n.register(r,t)}catch(t){e.error(`Exception thrown registering plugin ${e9(e,n)}.`)}})},createPluginEnvironment:function(e,t,r){let n={};e.userAgent&&(n.name=e.userAgent),e.version&&(n.version=e.version),r.wrapperName&&(n.wrapperName=r.wrapperName),r.wrapperVersion&&(n.wrapperVersion=r.wrapperVersion);let i={};r.application&&(r.application.name&&(i.name=r.application.name),r.application.version&&(i.version=r.application.version));let o={sdk:n,clientSideId:t};return Object.keys(i).length>0&&(o.application=i),o}},tu="change",tl="internal-change";var tf={initialize:function(e,t,r,n,i){let o=r&&r.logger?r.logger:i&&i.logger&&i.logger.default||te("warn"),a=eR(o),s=eA(a),u=en.validate(r,a,i,o),l=ti(u.inspectors,o),c=u.sendEvents,d=e,h=u.hash,p=[...u.plugins],g=ts(n,e,u),y=to(o,g,p),v=e4(o,[...u.hooks,...y]),m=eP(n.localStorage,o),b=el(n,d,u),w=u.sendEvents&&!u.diagnosticOptOut,E=w?eQ.DiagnosticId(d):null,_=w?eQ.DiagnosticsAccumulator((new Date).getTime()):null,k=w?eQ.DiagnosticsManager(n,m,_,b,d,u,E):null,S=eF(n,u,d,_),O=u.eventProcessor||eO(n,u,d,_,a,b),R=eV(n,u,d),T,L,j,A={},C=u.streaming,P=!1,D=!1,U=!0,N=u.stateProvider,I=e$(null,function(e){!N&&e&&F({kind:"identify",context:e,creationDate:(new Date).getTime()}),l.hasListeners(tn.clientIdentityChanged)&&l.onIdentityChanged(I.getContext())}),M=new eG(m),B=m.isEnabled()?eC(m,d,h,I):null;function F(e){d&&(N&&N.enqueueEvent&&N.enqueueEvent(e)||(e.context?(U=!1,!c||D||n.isDoNotTrack()||(o.debug(Y.debugEnqueueingEvent(e.kind)),O.enqueue(e))):U&&(o.warn(Y.eventWithoutContext()),U=!1)))}function q(e,t){l.hasListeners(tn.flagDetailChanged)&&l.onFlagChanged(e.key,$(t))}function H(){l.hasListeners(tn.flagDetailsChanged)&&l.onFlags(Object.entries(A).map(([e,t])=>({key:e,detail:$(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function z(e,t,r,n){let i=I.getContext(),o=new Date,a={kind:"feature",key:e,context:i,value:t?t.value:null,variation:t?t.variationIndex:null,default:r,creationDate:o.getTime()},s=A[e];s&&(a.version=s.flagVersion?s.flagVersion:s.version,a.trackEvents=s.trackEvents,a.debugEventsUntilDate=s.debugEventsUntilDate),(n||s&&s.trackReason)&&t&&(a.reason=t.reason),F(a)}function W(e){return tt(e,!1)?Promise.resolve(e):Promise.reject(new f.LDInvalidUserError(Y.invalidContext()))}function V(e,t,r,n,i,o){var a;let s,u;return A&&x.objectHasOwnProperty(A,e)&&A[e]&&!A[e].deleted?(s=$(u=A[e]),null!==u.value&&void 0!==u.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},r&&(i||u?.prerequisites?.forEach(e=>{V(e,void 0,r,!1,!1,!1)}),z(e,s,t,n)),!i&&o&&(a=s,l.hasListeners(tn.flagUsed)&&l.onFlagUsed(e,a,I.getContext())),s}function $(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function J(){if(L=!0,!I.getContext())return;let e=e=>{try{return JSON.parse(e)}catch(e){return void a.maybeReportError(new f.LDInvalidDataError(Y.invalidData()))}};S.connect(I.getContext(),h,{ping:function(){o.debug(Y.debugStreamPing());let e=I.getContext();R.fetchFlagSettings(e,h).then(t=>{x.deepEquals(e,I.getContext())&&G(t||{})}).catch(e=>{a.maybeReportError(new f.LDFlagFetchError(Y.errorFetchingFlags(e)))})},put:function(t){let r=e(t.data);r&&(o.debug(Y.debugStreamPut()),G(r))},patch:function(t){let r=e(t.data);if(!r)return;let n=A[r.key];
2if(n&&n.version&&r.version&&!(n.version<r.version))o.debug(Y.debugStreamPatchIgnored(r.key));else{o.debug(Y.debugStreamPatch(r.key));let e={},t=x.extend({},r);delete t.key,A[r.key]=t;let i=$(t);e[r.key]=n?{previous:n.value,current:i}:{current:i},q(r,t),X(e)}},delete:function(t){let r=e(t.data);if(r)if(!A[r.key]||A[r.key].version<r.version){o.debug(Y.debugStreamDelete(r.key));let e={};A[r.key]&&!A[r.key].deleted&&(e[r.key]={previous:A[r.key].value}),A[r.key]={version:r.version,deleted:!0},q(r,A[r.key]),X(e)}else o.debug(Y.debugStreamDeleteIgnored(r.key))}})}function K(){L&&(S.disconnect(),L=!1)}function G(e){let t={};if(!e)return Promise.resolve();for(let r in A)x.objectHasOwnProperty(A,r)&&A[r]&&(e[r]&&!x.deepEquals(e[r].value,A[r].value)?t[r]={previous:A[r].value,current:$(e[r])}:e[r]&&!e[r].deleted||(t[r]={previous:A[r].value}));for(let r in e)x.objectHasOwnProperty(e,r)&&e[r]&&(!A[r]||A[r].deleted)&&(t[r]={current:$(e[r])});return A={...e},H(),X(t).catch(()=>{})}function X(e){let t=Object.keys(e);if(t.length>0){let r={};t.forEach(t=>{let n=e[t].current,i=n?n.value:void 0,o=e[t].previous;a.emit(tu+":"+t,i,o),r[t]=n?{current:i,previous:o}:{previous:o}}),a.emit(tu,r),a.emit(tl,A),u.sendEventsOnlyForVariation||N||t.forEach(t=>{z(t,e[t].current)})}return T&&B?B.saveFlags(A):Promise.resolve()}function Z(){let e=C||j&&void 0===C;e&&!L?J():!e&&L&&K(),k&&k.setStreaming(e)}function Q(e){return e===tu||e.substr(0,7)===tu+":"}if("string"==typeof u.bootstrap&&"LOCALSTORAGE"===u.bootstrap.toUpperCase()&&(B?T=!0:o.warn(Y.localStorageUnavailable())),"object"==typeof u.bootstrap&&(A=function(e){let t=Object.keys(e),r="$flagsState",n="$valid",i=e[r];!i&&t.length&&o.warn(Y.bootstrapOldFormat()),!1===e[n]&&o.warn(Y.bootstrapInvalid());let a={};return t.forEach(t=>{if(t!==r&&t!==n){let r={value:e[t]};i&&i[t]?r=x.extend(r,i[t]):r.version=0,a[t]=r}}),a}(u.bootstrap)),N){let e=N.getInitialState();e?ee(e):N.on("init",ee),N.on("update",function(e){e.context&&I.setContext(e.context),e.flags&&G(e.flags)})}else{let r;(!e?Promise.reject(new f.LDInvalidEnvironmentIdError(Y.environmentNotSpecified())):M.processContext(t).then(W).then(e=>(r=x.once(v.identify(e,void 0)),e)).then(e=>(r?.({status:"completed"}),I.setContext(e),"object"==typeof u.bootstrap?et():T?B.loadFlags().then(e=>null==e?(A={},R.fetchFlagSettings(I.getContext(),h).then(e=>G(e||{})).then(et).catch(e=>{er(new f.LDFlagFetchError(Y.errorFetchingFlags(e)))})):(A=e,x.onNextTick(et),R.fetchFlagSettings(I.getContext(),h).then(e=>G(e)).catch(e=>a.maybeReportError(e)))):R.fetchFlagSettings(I.getContext(),h).then(e=>{A=e||{},H(),et()}).catch(e=>{A={},er(e)}))).catch(e=>{throw r?.({status:"error"}),e})).catch(er)}function ee(e){d=e.environment,I.setContext(e.context),A={...e.flags},x.onNextTick(et)}function et(){o.info(Y.clientInitialized()),P=!0,Z(),s.signalSuccess()}function er(e){s.signalFailure(e)}let ei={waitForInitialization:function(e){if(null!=e){if("number"==typeof e){e>5&&o.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");let t=s.getInitializationPromise();return Promise.race([new Promise((t,r)=>{setTimeout(()=>{r(new e5(`waitForInitialization timed out after ${e} seconds.`))},1e3*e)}),t]).catch(e=>{throw e instanceof f.LDTimeoutError&&o.error(`waitForInitialization error: ${e}`),e})}o.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return o.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),s.getInitializationPromise()},waitUntilReady:()=>s.getReadyPromise(),identify:function(e,t,r){let n;if(D)return x.wrapPromiseCallback(Promise.resolve({}),r);if(N)return o.warn(Y.identifyDisabled()),x.wrapPromiseCallback(Promise.resolve(x.transformVersionedValuesToValues(A)),r);let i=T&&B?B.clearFlags():Promise.resolve();return x.wrapPromiseCallback(i.then(()=>M.processContext(e)).then(W).then(e=>(n=x.once(v.identify(e,void 0)),e)).then(e=>R.fetchFlagSettings(e,t).then(r=>{let n=x.transformVersionedValuesToValues(r);return I.setContext(e),h=t,r?G(r).then(()=>n):n}
2)).then(e=>(n?.({status:"completed"}),L&&J(),e)).catch(e=>(n?.({status:"error"}),a.maybeReportError(e),Promise.reject(e))),r)},getContext:function(){return I.getContext()},variation:function(e,t){let{value:r}=v.withEvaluation(e,I.getContext(),t,()=>V(e,t,!0,!1,!1,!0));return r},variationDetail:function(e,t){return v.withEvaluation(e,I.getContext(),t,()=>V(e,t,!0,!0,!1,!0))},track:function(e,t,r){if("string"!=typeof e)return void a.maybeReportError(new f.LDInvalidEventKeyError(Y.unknownCustomEventKey(e)));void 0!==r&&"number"!=typeof r&&o.warn(Y.invalidMetricValue(typeof r)),n.customEventFilter&&!n.customEventFilter(e)&&o.warn(Y.unknownCustomEventKey(e));let i=I.getContext(),s={kind:"custom",key:e,context:i,url:n.getCurrentUrl(),creationDate:(new Date).getTime()};i&&i.anonymous&&(s.contextKind=i.anonymous?"anonymousUser":"user"),null!=t&&(s.data=t),null!=r&&(s.metricValue=r),F(s),v.afterTrack({context:i,key:e,data:t,metricValue:r})},on:function(e,t,r){Q(e)?(j=!0,P&&Z(),a.on(e,t,r)):a.on(...arguments)},off:function(e){if(a.off(...arguments),Q(e)){let e=!1;a.getEvents().forEach(t=>{Q(t)&&a.getEventListenerCount(t)>0&&(e=!0)}),e||(j=!1,L&&void 0===C&&K())}},setStreaming:function(e){let t=null===e?void 0:e;t!==C&&(C=t,Z())},flush:function(e){return x.wrapPromiseCallback(c?O.flush():Promise.resolve(),e)},allFlags:function(){let e={};if(!A)return e;for(let t in A)x.objectHasOwnProperty(A,t)&&!A[t].deleted&&(e[t]=V(t,null,!u.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(D)return x.wrapPromiseCallback(Promise.resolve(),e);let t=()=>{D=!0,A={}},r=Promise.resolve().then(()=>{if(K(),k&&k.stop(),c)return O.stop(),O.flush()}).then(t).catch(t);return x.wrapPromiseCallback(r,e)},addHook:function(e){v.addHook(e)}};return ta(o,g,ei,p),{client:ei,options:u,emitter:a,ident:I,logger:o,requestor:R,start:function(){c&&(k&&k.start(),O.start())},enqueueEvent:F,getFlagsInternal:function(){return A},getEnvironmentId:()=>d,internalChangeEventName:tl}},commonBasicLogger:te,errors:f,messages:Y},tc=tf.initialize,td=tf.errors;function th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?th(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):th(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}tf.messages,tf.commonBasicLogger;var tg={promise:Promise.resolve({status:200,header:function(){return null},body:null})},ty=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function tv(e,t){for(var r={},n=null,i=[],o=0;o<e.length;o++)for(var a=e[o],s=a.urls||[],u=0;u<s.length;u++)if(function(e,t,r,n){var i,o,a=(("substring"===e.kind||"regex"===e.kind)&&n.includes("/")?t:t.replace(n,"")).replace(r,"");switch(e.kind){case"exact":o=t,i=RegExp("^"+ty(e.url)+"/?$");break;case"canonical":o=a,i=RegExp("^"+ty(e.url)+"/?$");break;case"substring":o=a,i=RegExp(".*"+ty(e.substring)+".*$");break;case"regex":o=a,i=new RegExp(e.pattern);break;default:return!1}return i.test(o)}(s[u],window.location.href,window.location.search,window.location.hash)){"pageview"===a.kind?t("pageview",a):(i.push(a),t("click_pageview",a));break}return i.length>0&&(n=function(e){for(var r=function(e,t){for(var r=[],n=0;n<t.length;n++)for(var i=e.target,o=t[n],a=o.selector,s=document.querySelectorAll(a);i&&s.length>0;){for(var u=0;u<s.length;u++)i===s[u]&&r.push(o);i=i.parentNode}return r}(e,i),n=0;n<r.length;n++)t("click",r[n])},document.addEventListener("click",n)),r.dispose=function(){document.removeEventListener("click",n)},r}var tm="goalsReady",tb={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function tw(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(e){var t,r={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var n=e&&e.disableSyncEventPost;r.httpRequest=function(e,t,i,o){var a=!n&r.synchronousFlush;return r.synchronousFlush=!1,function(e,t,r,n,i){if(i&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return 73>parseInt(t[2],10)}return!0}())return tg;var o,a=new window.XMLHttpRequest;for(var s in a.open(e,t,!i),r||{})Object.prototype.hasOwnProperty.call(r,s)&&a.setRequestHeader(s,r[s]);if(i){try{a.send(n)}catch(e){}return tg}return{promise:new Promise(function(e,t){a.addEventListener("load",function(){o||e({status:a.status,header:function(e){return a.getResponseHeader(e)},body:a.responseText})}),a.addEventListener("error",function(){o||t(Error())}),a.send(n)}),cancel:function(){o=!0,a.abort()}}}(e,t,i,o,a)}}r.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},r.httpFallbackPing=function(e){(new window.Image).src=e};var i,o=e&&e.eventUrlTransformer;r.getCurrentUrl=function(){return o?o(window.location.href):window.location.href},r.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"
2yes"===e};try{window.localStorage&&(r.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(r){window.localStorage.setItem(e,t),r()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){r.localStorage=null}return e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(r.eventSourceAllowsReport=!0,i=window.EventSourcePolyfill):(r.eventSourceAllowsReport=!1,i=window.EventSource),window.EventSource&&(r.eventSourceFactory=function(e,t){var r=tp(tp({},{heartbeatTimeout:3e5,silentTimeout:3e5,skipDefaultHeaders:!0}),t);return new i(e,r)},r.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}),r.userAgent="JSClient",r.version="3.8.1",r.diagnosticSdkData={name:"js-client-sdk",version:"3.8.1"},r.diagnosticPlatformData={name:"JS"},r.diagnosticUseCombinedEvent=!0,r}(r),i=tc(e,t,r,n,tb),o=i.client,a=i.options,s=i.emitter,u=new Promise(function(e){var t=s.on(tm,function(){s.off(tm,t),e()})});o.waitUntilGoalsReady=function(){return u},a.fetchGoals?function(e,t){var r,n;function i(){n&&n.dispose(),r&&r.length&&(n=tv(r,o))}function o(t,r){var n=e.ident.getContext(),i={kind:t,key:r.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:n};return"click"===t&&(i.selector=r.selector),e.enqueueEvent(i)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(n=tv(r=e,o),function(e,t){var r,n=window.location.href;function i(){(r=window.location.href)!==n&&(n=r,t())}!function e(t,r){t(),setTimeout(function(){e(t,r)},r)}(i,300),window.history&&window.history.pushState?window.addEventListener("popstate",i):window.addEventListener("hashchange",i)}(0,i)),t()}).catch(function(r){e.emitter.maybeReportError(new td.LDUnexpectedResponseError((r&&r.message,r.message))),t()})}(i,function(){return s.emit(tm)}):s.emit(tm),"complete"!==document.readyState?window.addEventListener("load",i.start):i.start();var l=function(){n.synchronousFlush=!0,o.flush().catch(function(){}),n.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&l()}),window.addEventListener("pagehide",l),o}},98274:(e,t,r)=>{"use strict";var n=r(33945);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.