@sjvair/monitor-map 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}const e="00e400",n="ffff00",r="ff7e00",i="ff0000",o="8f3f97",s="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u={exports:{}};u.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",u="week",c="month",f="quarter",l="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),o=n-i<0,s=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:u,d:a,D:h,h:s,m:o,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",w={};w[_]=v;var b=function(t){return t instanceof E},O=function t(e,n,r){var i;if(!e)return _;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,i=a}return!r&&i&&(_=i),i||!r&&_},$=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},S=y;S.l=O,S.i=b,S.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function v(t){this.$L=O(t.locale,null,!0),this.parse(t)}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return $(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<$(t)},g.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!S.u(e)||e,f=S.p(t),d=function(t,e){var i=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},p=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return r?d(1,0):d(31,11);case c:return r?d(1,v):d(0,v+1);case u:var _=this.$locale().weekStart||0,w=(m<_?m+7:m)-_;return d(r?g-w:g+(6-w),v);case a:case h:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=S.p(t),f="set"+(this.$u?"UTC":""),d=(n={},n[a]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[o]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[S.p(t)]()},g.add=function(r,f){var h,d=this;r=Number(r);var p=S.p(f),m=function(t){var e=$(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return m(1);if(p===u)return m(7);var v=(h={},h[o]=e,h[s]=n,h[i]=t,h)[p]||1,g=this.$d.getTime()+r*v;return S.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},l=function(t){return S.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:S.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:S.s(o,2,"0"),h:l(1),hh:l(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,d){var p,m=S.p(h),v=$(r),g=(v.utcOffset()-this.utcOffset())*e,y=this-v,_=S.m(this,v);return _=(p={},p[l]=_/12,p[c]=_,p[f]=_/3,p[u]=(y-g)/6048e5,p[a]=(y-g)/864e5,p[s]=y/n,p[o]=y/e,p[i]=y/t,p)[m]||y,d?_:S.a(_)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),D=E.prototype;return $.prototype=D,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),$.extend=function(t,e){return t.$i||(t(e,E,$),t.$i=!0),$},$.locale=O,$.isDayjs=b,$.unix=function(t){return $(1e3*t)},$.en=w[_],$.Ls=w,$.p={},$}();var c=u.exports,f={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,i){return r.fromToBase(t,e,n,i)}n.en.relativeTime=i,r.fromToBase=function(e,r,o,s,a){for(var u,c,f,l=o.$locale().relativeTime||i,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(u=s?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var v=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,v<=m.r||!m.r){v<=1&&p>0&&(m=h[p-1]);var g=l[m.l];a&&(v=a(""+v)),c="string"==typeof g?g.replace("%d",v):g(v,r,m.l,f);break}}if(r)return c;var y=f?l.future:l.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}(f);var l=f.exports,h={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,i){var o,s=function(t,e,n){void 0===n&&(n={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",i=t+"|"+n,o=r[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[i]=o),o}(e,n).formatToParts(i)},a=function(t,e){for(var r=s(t,e),o=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,f=u.value,l=n[c];l>=0&&(o[l]=parseInt(f,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},u=e.prototype;u.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),u=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,s=n||e||o,u=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var c=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var o=a(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),u,s),f=c[0],l=c[1],h=i(f).utcOffset(l);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(h);var d=h.exports,p={exports:{}};!function(t,e){var n,r,i;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(i)||["-",0,0],o=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,n)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var f=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var h=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}(p);var m=p.exports;c.$defaultFormat=function(t){return c.utc(t).format("YYYY-MM-DD HH:mm:ss")},c.$prettyPrint=function(t){return c(t).format("h:mma dddd MMM DD, YYYY")};c.extend(l),c.extend(d),c.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),c.extend(m);const v=c;var g,y={exports:{}},_={exports:{}},w=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},b=w,O=Object.prototype.toString,$=(g=Object.create(null),function(t){var e=O.call(t);return g[e]||(g[e]=e.slice(8,-1).toLowerCase())});function S(t){return t=t.toLowerCase(),function(e){return $(e)===t}}function E(t){return Array.isArray(t)}function D(t){return void 0===t}var M=S("ArrayBuffer");function R(t){return null!==t&&"object"==typeof t}function x(t){if("object"!==$(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var T=S("Date"),A=S("File"),N=S("Blob"),C=S("FileList");function j(t){return"[object Function]"===O.call(t)}var k=S("URLSearchParams");function P(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),E(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var U,L=(U="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return U&&t instanceof U}),F={isArray:E,isArrayBuffer:M,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||O.call(t)===e||j(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&M(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:R,isPlainObject:x,isUndefined:D,isDate:T,isFile:A,isBlob:N,isFunction:j,isStream:function(t){return R(t)&&j(t.pipe)},isURLSearchParams:k,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:P,merge:function t(){var e={};function n(n,r){x(e[r])&&x(n)?e[r]=t(e[r],n):x(n)?e[r]=t({},n):E(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)P(arguments[r],n);return e},extend:function(t,e,n){return P(e,(function(e,r){t[r]=n&&"function"==typeof e?b(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,i,o,s={};e=e||{};do{for(i=(r=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=r[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:$,kindOfTest:S,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(D(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:L,isFileList:C},B=F;function z(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Y=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(B.isURLSearchParams(e))r=e.toString();else{var i=[];B.forEach(e,(function(t,e){null!=t&&(B.isArray(t)?e+="[]":t=[t],B.forEach(t,(function(t){B.isDate(t)?t=t.toISOString():B.isObject(t)&&(t=JSON.stringify(t)),i.push(z(e)+"="+z(t))})))})),r=i.join("&")}if(r){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t},I=F;function H(){this.handlers=[]}H.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},H.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},H.prototype.forEach=function(t){I.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var W=H,q=F,J=F;function V(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}J.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z=V.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){K[t]={value:t}})),Object.defineProperties(V,K),Object.defineProperty(Z,"isAxiosError",{value:!0}),V.from=function(t,e,n,r,i,o){var s=Object.create(Z);return J.toFlatObject(t,s,(function(t){return t!==Error.prototype})),V.call(s,t.message,e,n,r,i),s.name=t.name,o&&Object.assign(s,o),s};var X=V,Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G=F;var tt,et,nt,rt,it=function(t,e){e=e||new FormData;var n=[];function r(t){return null===t?"":G.isDate(t)?t.toISOString():G.isArrayBuffer(t)||G.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,o){if(G.isPlainObject(i)||G.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),G.forEach(i,(function(n,i){if(!G.isUndefined(n)){var s,a=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(G.endsWith(i,"{}"))n=JSON.stringify(n);else if(G.endsWith(i,"[]")&&(s=G.toArray(n)))return void s.forEach((function(t){!G.isUndefined(t)&&e.append(a,r(t))}));t(n,a)}})),n.pop()}else e.append(o,r(i))}(t),e};var ot,st,at,ut,ct,ft,lt,ht,dt,pt,mt,vt,gt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},yt=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},_t=function(t,e){return t&&!gt(e)?yt(t,e):e};function wt(){if(ft)return ct;ft=1;var t=X;function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return F.inherits(e,t,{__CANCEL__:!0}),ct=e}function bt(){if(pt)return dt;pt=1;var t=F,e=function(){if(et)return tt;et=1;var t=X;return tt=function(e,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(new t("Request failed with status code "+r.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}}(),n=function(){if(rt)return nt;rt=1;var t=F;return nt=t.isStandardBrowserEnv()?{write:function(e,n,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),t.isString(i)&&a.push("path="+i),t.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}(),r=Y,i=_t,o=function(){if(st)return ot;st=1;var t=F,e=["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"];return ot=function(n){var r,i,o,s={};return n?(t.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=t.trim(n.substr(0,o)).toLowerCase(),i=t.trim(n.substr(o+1)),r){if(s[r]&&e.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([i]):s[r]?s[r]+", "+i:i}})),s):s}}(),s=function(){if(ut)return at;ut=1;var t=F;return at=t.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{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(n){var r=t.isString(n)?i(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}}(),a=Q,u=X,c=wt(),f=ht?lt:(ht=1,lt=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""});return dt=function(l){return new Promise((function(h,d){var p,m=l.data,v=l.headers,g=l.responseType;function y(){l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}t.isFormData(m)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(l.auth){var w=l.auth.username||"",b=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+b)}var O=i(l.baseURL,l.url);function $(){if(_){var t="getAllResponseHeaders"in _?o(_.getAllResponseHeaders()):null,n={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:t,config:l,request:_};e((function(t){h(t),y()}),(function(t){d(t),y()}),n),_=null}}if(_.open(l.method.toUpperCase(),r(O,l.params,l.paramsSerializer),!0),_.timeout=l.timeout,"onloadend"in _?_.onloadend=$:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout($)},_.onabort=function(){_&&(d(new u("Request aborted",u.ECONNABORTED,l,_)),_=null)},_.onerror=function(){d(new u("Network Error",u.ERR_NETWORK,l,_,_)),_=null},_.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||a;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),d(new u(t,e.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,l,_)),_=null},t.isStandardBrowserEnv()){var S=(l.withCredentials||s(O))&&l.xsrfCookieName?n.read(l.xsrfCookieName):void 0;S&&(v[l.xsrfHeaderName]=S)}"setRequestHeader"in _&&t.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:_.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),g&&"json"!==g&&(_.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&_.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(p=function(t){_&&(d(!t||t&&t.type?new c:t),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p))),m||(m=null);var E=f(O);E&&-1===["http","https","file"].indexOf(E)?d(new u("Unsupported protocol "+E+":",u.ERR_BAD_REQUEST,l)):_.send(m)}))}}var Ot=F,$t=function(t,e){q.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},St=X,Et=it,Dt={"Content-Type":"application/x-www-form-urlencoded"};function Mt(t,e){!Ot.isUndefined(t)&&Ot.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Rt,xt={transitional:Q,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Rt=bt()),Rt),transformRequest:[function(t,e){if($t(e,"Accept"),$t(e,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return Mt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,r=Ot.isObject(t),i=e&&e["Content-Type"];if((n=Ot.isFileList(t))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Et(n?{"files[]":t}:t,o&&new o)}return r||"application/json"===i?(Mt(e,"application/json"),function(t,e,n){if(Ot.isString(t))try{return(e||JSON.parse)(t),Ot.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||xt.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw St.from(o,St.ERR_BAD_RESPONSE,this,null,this.response);throw o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt?mt:(vt=1,mt=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],(function(t){xt.headers[t]={}})),Ot.forEach(["post","put","patch"],(function(t){xt.headers[t]=Ot.merge(Dt)}));var Tt,At,Nt=xt,Ct=F,jt=Nt;function kt(){return At?Tt:(At=1,Tt=function(t){return!(!t||!t.__CANCEL__)})}var Pt=F,Ut=function(t,e,n){var r=this||jt;return Ct.forEach(n,(function(n){t=n.call(r,t,e)})),t},Lt=kt(),Ft=Nt,Bt=wt();function zt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt}var Yt,It,Ht=F,Wt=function(t,e){e=e||{};var n={};function r(t,e){return Ht.isPlainObject(t)&&Ht.isPlainObject(e)?Ht.merge(t,e):Ht.isPlainObject(e)?Ht.merge({},e):Ht.isArray(e)?e.slice():e}function i(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Ht.isUndefined(e[t]))return r(void 0,e[t])}function s(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Ht.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);Ht.isUndefined(r)&&e!==a||(n[t]=r)})),n};function qt(){return It?Yt:(It=1,Yt={version:"0.27.2"})}var Jt=qt().version,Vt=X,Zt={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Zt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var Kt={};Zt.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Jt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,o){if(!1===t)throw new Vt(r(i," has been removed"+(e?" in "+e:"")),Vt.ERR_DEPRECATED);return e&&!Kt[i]&&(Kt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Xt,Qt,Gt,te,ee,ne,re={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],s=e[o];if(s){var a=t[o],u=void 0===a||s(a,o,t);if(!0!==u)throw new Vt("option "+o+" must be "+u,Vt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Vt("Unknown option "+o,Vt.ERR_BAD_OPTION)}},validators:Zt},ie=F,oe=Y,se=W,ae=function(t){return zt(t),t.headers=t.headers||{},t.data=Ut.call(t,t.data,t.headers,t.transformRequest),t.headers=Pt.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Pt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ft.adapter)(t).then((function(e){return zt(t),e.data=Ut.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return Lt(e)||(zt(t),e&&e.response&&(e.response.data=Ut.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ue=Wt,ce=_t,fe=re,le=fe.validators;function he(t){this.defaults=t,this.interceptors={request:new se,response:new se}}he.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ue(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&fe.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!i){var a=[ae,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),f=r.shift();try{u=c(u)}catch(l){f(l);break}}try{o=ae(u)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},he.prototype.getUri=function(t){t=ue(this.defaults,t);var e=ce(t.baseURL,t.url);return oe(e,t.params,t.paramsSerializer)},ie.forEach(["delete","get","head","options"],(function(t){he.prototype[t]=function(e,n){return this.request(ue(n||{},{method:t,url:e,data:(n||{}).data}))}})),ie.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(ue(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}he.prototype[t]=e(),he.prototype[t+"Form"]=e(!0)}));var de=F,pe=w,me=he,ve=Wt;var ge=function t(e){var n=new me(e),r=pe(me.prototype.request,n);return de.extend(r,me.prototype,n),de.extend(r,n),r.create=function(n){return t(ve(e,n))},r}(Nt);ge.Axios=me,ge.CanceledError=wt(),ge.CancelToken=function(){if(Qt)return Xt;Qt=1;var t=wt();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},e((function(e){r.reason||(r.reason=new t(e),n(r.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Xt=e}(),ge.isCancel=kt(),ge.VERSION=qt().version,ge.toFormData=it,ge.AxiosError=X,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=te?Gt:(te=1,Gt=function(t){return function(e){return t.apply(null,e)}}),ge.isAxiosError=function(){if(ne)return ee;ne=1;var t=F;return ee=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),_.exports=ge,_.exports.default=ge,function(t){t.exports=_.exports}(y);a(y.exports).create({baseURL:"/api/1.0/"});const ye=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",ye.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let _e=ye;function we(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(_e,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:i},{min:150,color:o},{min:250,color:s}]);const be=Object.prototype.hasOwnProperty,Oe=(t,e)=>be.call(t,e),$e=Array.isArray,Se=t=>"[object Map]"===Re(t),Ee=t=>"symbol"==typeof t,De=t=>null!==t&&"object"==typeof t,Me=Object.prototype.toString,Re=t=>Me.call(t),xe=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Te=(t,e)=>!Object.is(t,e),Ae=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Ne=new WeakMap;let Ce;const je=Symbol(""),ke=Symbol("");let Pe=!0;const Ue=[];function Le(t,e,n){0}function Fe(t,e,n,r,i,o){const s=Ne.get(t);if(!s)return;let a=[];if("clear"===e)a=[...s.values()];else if("length"===n&&$e(t))s.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(s.get(n)),e){case"add":$e(t)?xe(n)&&a.push(s.get("length")):(a.push(s.get(je)),Se(t)&&a.push(s.get(ke)));break;case"delete":$e(t)||(a.push(s.get(je)),Se(t)&&a.push(s.get(ke)));break;case"set":Se(t)&&a.push(s.get(je))}if(1===a.length)a[0]&&Be(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);Be(Ae(t))}}function Be(t,e){const n=$e(t)?t:[...t];for(const r of n)r.computed&&ze(r);for(const r of n)r.computed||ze(r)}function ze(t,e){(t!==Ce||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Ye=we("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(Ee)),He=Ve(),We=Ve(!0),qe=Je();function Je(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=xn(this);for(let e=0,i=this.length;e<i;e++)Le();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(xn)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){Ue.push(Pe),Pe=!1;const n=xn(this)[e].apply(this,t);return function(){const t=Ue.pop();Pe=void 0===t||t}(),n}})),t}function Ve(t=!1,e=!1){return function(n,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&i===(t?e?On:bn:e?wn:_n).get(n))return n;const o=$e(n);if(!t&&o&&Oe(qe,r))return Reflect.get(qe,r,i);const s=Reflect.get(n,r,i);return(Ee(r)?Ie.has(r):Ye(r))?s:(t||Le(),e?s:Nn(s)?o&&xe(r)?s:s.value:De(s)?t?En(s):Sn(s):s)}}function Ze(t=!1){return function(e,n,r,i){let o=e[n];if(Mn(o)&&Nn(o)&&!Nn(r))return!1;if(!t&&(Rn(r)||Mn(r)||(o=xn(o),r=xn(r)),!$e(e)&&Nn(o)&&!Nn(r)))return o.value=r,!0;const s=$e(e)&&xe(n)?Number(n)<e.length:Oe(e,n),a=Reflect.set(e,n,r,i);return e===xn(i)&&(s?Te(r,o)&&Fe(e,"set",n,r):Fe(e,"add",n,r)),a}}const Ke={get:He,set:Ze(),deleteProperty:function(t,e){const n=Oe(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Fe(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return Ee(e)&&Ie.has(e)||Le(),n},ownKeys:function(t){return Le(0,0,$e(t)),Reflect.ownKeys(t)}},Xe={get:We,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Qe=t=>t,Ge=t=>Reflect.getPrototypeOf(t);function tn(t,e,n=!1,r=!1){const i=xn(t=t.__v_raw),o=xn(e);n||(e!==o&&Le(),Le());const{has:s}=Ge(i),a=r?Qe:n?An:Tn;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function en(t,e=!1){const n=this.__v_raw,r=(xn(n),xn(t));return e||(t!==r&&Le(),Le()),t===r?n.has(t):n.has(t)||n.has(r)}function nn(t,e=!1){return t=t.__v_raw,!e&&Le(xn(t)),Reflect.get(t,"size",t)}function rn(t){t=xn(t);const e=xn(this);return Ge(e).has.call(e,t)||(e.add(t),Fe(e,"add",t,t)),this}function on(t,e){e=xn(e);const n=xn(this),{has:r,get:i}=Ge(n);let o=r.call(n,t);o||(t=xn(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?Te(e,s)&&Fe(n,"set",t,e):Fe(n,"add",t,e),this}function sn(t){const e=xn(this),{has:n,get:r}=Ge(e);let i=n.call(e,t);i||(t=xn(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&Fe(e,"delete",t,void 0),o}function an(){const t=xn(this),e=0!==t.size,n=t.clear();return e&&Fe(t,"clear",void 0,void 0),n}function un(t,e){return function(n,r){const i=this,o=i.__v_raw,s=(xn(o),e?Qe:t?An:Tn);return!t&&Le(),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function cn(t,e,n){return function(...r){const i=this.__v_raw,o=xn(i),s=Se(o),a="entries"===t||t===Symbol.iterator&&s,u=i[t](...r),c=n?Qe:e?An:Tn;return!e&&Le(),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return"delete"!==t&&this}}function ln(){const t={get(t){return tn(this,t)},get size(){return nn(this)},has:en,add:rn,set:on,delete:sn,clear:an,forEach:un(!1,!1)},e={get(t){return tn(this,t,!1,!0)},get size(){return nn(this)},has:en,add:rn,set:on,delete:sn,clear:an,forEach:un(!1,!0)},n={get(t){return tn(this,t,!0)},get size(){return nn(this,!0)},has(t){return en.call(this,t,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:un(!0,!1)},r={get(t){return tn(this,t,!0,!0)},get size(){return nn(this,!0)},has(t){return en.call(this,t,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=cn(i,!1,!1),n[i]=cn(i,!0,!1),e[i]=cn(i,!1,!0),r[i]=cn(i,!0,!0)})),[t,n,e,r]}const[hn,dn,pn,mn]=ln();function vn(t,e){const n=e?t?mn:pn:t?dn:hn;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(Oe(n,r)&&r in e?n:e,r,i)}const gn={get:vn(!1,!1)},yn={get:vn(!0,!1)},_n=new WeakMap,wn=new WeakMap,bn=new WeakMap,On=new WeakMap;function $n(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Re(t).slice(8,-1))(t))}function Sn(t){return Mn(t)?t:Dn(t,!1,Ke,gn,_n)}function En(t){return Dn(t,!0,Xe,yn,bn)}function Dn(t,e,n,r,i){if(!De(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=$n(t);if(0===s)return t;const a=new Proxy(t,2===s?r:n);return i.set(t,a),a}function Mn(t){return!(!t||!t.__v_isReadonly)}function Rn(t){return!(!t||!t.__v_isShallow)}function xn(t){const e=t&&t.__v_raw;return e?xn(e):t}const Tn=t=>De(t)?Sn(t):t,An=t=>De(t)?En(t):t;function Nn(t){return!(!t||!0!==t.__v_isRef)}class Cn{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:xn(t),this._value=e?t:Tn(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Rn(t)||Mn(t);var n;t=e?t:xn(t),Te(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Tn(t),(n=xn(n=this)).dep&&Be(n.dep))}}class jn{constructor(t,e,n){__publicField(this,"id"),__publicField(this,"parameters"),__publicField(this,"taskName"),this.id=t,this.parameters=n,this.taskName=e}}new Event("MonitorsLoaded");const kn=new function(){return new Worker("/static/monitor-map/assets/worker.e5dbf0ee.js")},Pn=new class{constructor(t){__publicField(this,"globalTaskID",0),__publicField(this,"responders",new Map),__publicField(this,"worker"),this.worker=t,this.worker.onmessageerror=t=>console.error("worker failed: ",t),this.worker.onmessage=t=>{const{id:e,error:n,payload:r,success:i}=t.data,o=this.responders.get(e);i?o.resolve(r):n?o.reject(r):console.error(`Unknown response from background service "${this.constructor.name}"`,t),this.responders.delete(e)}}run(t,...e){const n=new jn(++this.globalTaskID,t,JSON.parse(JSON.stringify(e)));return new Promise(((t,e)=>{this.responders.set(n.id,{resolve:t,reject:e}),this.worker.postMessage(n)}))}}(kn);var Un,Ln;Ln=!1,Nn(Un={})||new Cn(Un,Ln);const Fn={pm25:"#00ccff",pm25_avg_15:"#006699",pm25_avg_60:"#000033"};function Bn(t,e,n,r){r?t.push(v(r).utc().tz("America/Los_Angeles")):t.push(v(n.timestamp).utc().tz("America/Los_Angeles"));for(let i of e.keys())if(i in n){const t=e.get(i);let o;if(r)o=null;else{const t=parseFloat(n[i]);o=t>=0?t:0}t.push(o)}}_e.levels.map((t=>[t.min,t.color])),_e.levels.map((t=>[t.min,t.color]));var zn=Object.freeze({__proto__:null,fetchChartData:async function(t,e){return async function(t,e,n=1){return await Pn.run("fetchEntries",t,e,n)}(t,e).then((e=>{const n=[],r="PurpleAir"===t.data.device?2:60,i=new Map(Object.keys(Fn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=v(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),Bn(n,i,o,t)}Bn(n,i,o)}return[n.map((t=>t.unix())),...i.values()].filter((t=>t.length))}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:i}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("DataChartService",zn)}();
1
+ var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}const e="00e400",n="ffff00",r="ff7e00",i="ff0000",o="8f3f97",s="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u={exports:{}};u.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",u="week",c="month",f="quarter",l="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),o=n-i<0,s=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:u,d:a,D:h,h:s,m:o,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",w={};w[_]=v;var b=function(t){return t instanceof E},O=function t(e,n,r){var i;if(!e)return _;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,i=a}return!r&&i&&(_=i),i||!r&&_},$=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},S=y;S.l=O,S.i=b,S.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function v(t){this.$L=O(t.locale,null,!0),this.parse(t)}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return $(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<$(t)},g.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!S.u(e)||e,f=S.p(t),d=function(t,e){var i=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},p=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return r?d(1,0):d(31,11);case c:return r?d(1,v):d(0,v+1);case u:var _=this.$locale().weekStart||0,w=(m<_?m+7:m)-_;return d(r?g-w:g+(6-w),v);case a:case h:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=S.p(t),f="set"+(this.$u?"UTC":""),d=(n={},n[a]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[o]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[S.p(t)]()},g.add=function(r,f){var h,d=this;r=Number(r);var p=S.p(f),m=function(t){var e=$(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return m(1);if(p===u)return m(7);var v=(h={},h[o]=e,h[s]=n,h[i]=t,h)[p]||1,g=this.$d.getTime()+r*v;return S.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},l=function(t){return S.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:S.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:S.s(o,2,"0"),h:l(1),hh:l(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,d){var p,m=S.p(h),v=$(r),g=(v.utcOffset()-this.utcOffset())*e,y=this-v,_=S.m(this,v);return _=(p={},p[l]=_/12,p[c]=_,p[f]=_/3,p[u]=(y-g)/6048e5,p[a]=(y-g)/864e5,p[s]=y/n,p[o]=y/e,p[i]=y/t,p)[m]||y,d?_:S.a(_)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),D=E.prototype;return $.prototype=D,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),$.extend=function(t,e){return t.$i||(t(e,E,$),t.$i=!0),$},$.locale=O,$.isDayjs=b,$.unix=function(t){return $(1e3*t)},$.en=w[_],$.Ls=w,$.p={},$}();var c=u.exports,f={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,i){return r.fromToBase(t,e,n,i)}n.en.relativeTime=i,r.fromToBase=function(e,r,o,s,a){for(var u,c,f,l=o.$locale().relativeTime||i,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(u=s?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var v=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,v<=m.r||!m.r){v<=1&&p>0&&(m=h[p-1]);var g=l[m.l];a&&(v=a(""+v)),c="string"==typeof g?g.replace("%d",v):g(v,r,m.l,f);break}}if(r)return c;var y=f?l.future:l.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}(f);var l=f.exports,h={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,i){var o,s=function(t,e,n){void 0===n&&(n={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",i=t+"|"+n,o=r[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[i]=o),o}(e,n).formatToParts(i)},a=function(t,e){for(var r=s(t,e),o=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,f=u.value,l=n[c];l>=0&&(o[l]=parseInt(f,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},u=e.prototype;u.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),u=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,s=n||e||o,u=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var c=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var o=a(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),u,s),f=c[0],l=c[1],h=i(f).utcOffset(l);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(h);var d=h.exports,p={exports:{}};!function(t,e){var n,r,i;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(i)||["-",0,0],o=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,n)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var f=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var h=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}(p);var m=p.exports;c.$defaultFormat=function(t){return c.utc(t).format("YYYY-MM-DD HH:mm:ss")},c.$prettyPrint=function(t){return c(t).format("h:mma dddd MMM DD, YYYY")};c.extend(l),c.extend(d),c.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),c.extend(m);const v=c;var g,y={exports:{}},_={exports:{}},w=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},b=w,O=Object.prototype.toString,$=(g=Object.create(null),function(t){var e=O.call(t);return g[e]||(g[e]=e.slice(8,-1).toLowerCase())});function S(t){return t=t.toLowerCase(),function(e){return $(e)===t}}function E(t){return Array.isArray(t)}function D(t){return void 0===t}var M=S("ArrayBuffer");function R(t){return null!==t&&"object"==typeof t}function x(t){if("object"!==$(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var T=S("Date"),A=S("File"),N=S("Blob"),C=S("FileList");function j(t){return"[object Function]"===O.call(t)}var k=S("URLSearchParams");function P(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),E(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var U,L=(U="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return U&&t instanceof U}),F={isArray:E,isArrayBuffer:M,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||O.call(t)===e||j(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&M(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:R,isPlainObject:x,isUndefined:D,isDate:T,isFile:A,isBlob:N,isFunction:j,isStream:function(t){return R(t)&&j(t.pipe)},isURLSearchParams:k,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:P,merge:function t(){var e={};function n(n,r){x(e[r])&&x(n)?e[r]=t(e[r],n):x(n)?e[r]=t({},n):E(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)P(arguments[r],n);return e},extend:function(t,e,n){return P(e,(function(e,r){t[r]=n&&"function"==typeof e?b(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,i,o,s={};e=e||{};do{for(i=(r=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=r[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:$,kindOfTest:S,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(D(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:L,isFileList:C},B=F;function z(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Y=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(B.isURLSearchParams(e))r=e.toString();else{var i=[];B.forEach(e,(function(t,e){null!=t&&(B.isArray(t)?e+="[]":t=[t],B.forEach(t,(function(t){B.isDate(t)?t=t.toISOString():B.isObject(t)&&(t=JSON.stringify(t)),i.push(z(e)+"="+z(t))})))})),r=i.join("&")}if(r){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t},I=F;function H(){this.handlers=[]}H.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},H.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},H.prototype.forEach=function(t){I.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var W=H,q=F,J=F;function V(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}J.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z=V.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){K[t]={value:t}})),Object.defineProperties(V,K),Object.defineProperty(Z,"isAxiosError",{value:!0}),V.from=function(t,e,n,r,i,o){var s=Object.create(Z);return J.toFlatObject(t,s,(function(t){return t!==Error.prototype})),V.call(s,t.message,e,n,r,i),s.name=t.name,o&&Object.assign(s,o),s};var X=V,Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G=F;var tt,et,nt,rt,it=function(t,e){e=e||new FormData;var n=[];function r(t){return null===t?"":G.isDate(t)?t.toISOString():G.isArrayBuffer(t)||G.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,o){if(G.isPlainObject(i)||G.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),G.forEach(i,(function(n,i){if(!G.isUndefined(n)){var s,a=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(G.endsWith(i,"{}"))n=JSON.stringify(n);else if(G.endsWith(i,"[]")&&(s=G.toArray(n)))return void s.forEach((function(t){!G.isUndefined(t)&&e.append(a,r(t))}));t(n,a)}})),n.pop()}else e.append(o,r(i))}(t),e};var ot,st,at,ut,ct,ft,lt,ht,dt,pt,mt,vt,gt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},yt=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},_t=function(t,e){return t&&!gt(e)?yt(t,e):e};function wt(){if(ft)return ct;ft=1;var t=X;function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return F.inherits(e,t,{__CANCEL__:!0}),ct=e}function bt(){if(pt)return dt;pt=1;var t=F,e=function(){if(et)return tt;et=1;var t=X;return tt=function(e,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(new t("Request failed with status code "+r.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}}(),n=function(){if(rt)return nt;rt=1;var t=F;return nt=t.isStandardBrowserEnv()?{write:function(e,n,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),t.isString(i)&&a.push("path="+i),t.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}(),r=Y,i=_t,o=function(){if(st)return ot;st=1;var t=F,e=["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"];return ot=function(n){var r,i,o,s={};return n?(t.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=t.trim(n.substr(0,o)).toLowerCase(),i=t.trim(n.substr(o+1)),r){if(s[r]&&e.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([i]):s[r]?s[r]+", "+i:i}})),s):s}}(),s=function(){if(ut)return at;ut=1;var t=F;return at=t.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{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(n){var r=t.isString(n)?i(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}}(),a=Q,u=X,c=wt(),f=ht?lt:(ht=1,lt=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""});return dt=function(l){return new Promise((function(h,d){var p,m=l.data,v=l.headers,g=l.responseType;function y(){l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}t.isFormData(m)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(l.auth){var w=l.auth.username||"",b=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+b)}var O=i(l.baseURL,l.url);function $(){if(_){var t="getAllResponseHeaders"in _?o(_.getAllResponseHeaders()):null,n={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:t,config:l,request:_};e((function(t){h(t),y()}),(function(t){d(t),y()}),n),_=null}}if(_.open(l.method.toUpperCase(),r(O,l.params,l.paramsSerializer),!0),_.timeout=l.timeout,"onloadend"in _?_.onloadend=$:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout($)},_.onabort=function(){_&&(d(new u("Request aborted",u.ECONNABORTED,l,_)),_=null)},_.onerror=function(){d(new u("Network Error",u.ERR_NETWORK,l,_,_)),_=null},_.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||a;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),d(new u(t,e.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,l,_)),_=null},t.isStandardBrowserEnv()){var S=(l.withCredentials||s(O))&&l.xsrfCookieName?n.read(l.xsrfCookieName):void 0;S&&(v[l.xsrfHeaderName]=S)}"setRequestHeader"in _&&t.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:_.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),g&&"json"!==g&&(_.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&_.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(p=function(t){_&&(d(!t||t&&t.type?new c:t),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p))),m||(m=null);var E=f(O);E&&-1===["http","https","file"].indexOf(E)?d(new u("Unsupported protocol "+E+":",u.ERR_BAD_REQUEST,l)):_.send(m)}))}}var Ot=F,$t=function(t,e){q.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},St=X,Et=it,Dt={"Content-Type":"application/x-www-form-urlencoded"};function Mt(t,e){!Ot.isUndefined(t)&&Ot.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Rt,xt={transitional:Q,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Rt=bt()),Rt),transformRequest:[function(t,e){if($t(e,"Accept"),$t(e,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return Mt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,r=Ot.isObject(t),i=e&&e["Content-Type"];if((n=Ot.isFileList(t))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Et(n?{"files[]":t}:t,o&&new o)}return r||"application/json"===i?(Mt(e,"application/json"),function(t,e,n){if(Ot.isString(t))try{return(e||JSON.parse)(t),Ot.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||xt.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw St.from(o,St.ERR_BAD_RESPONSE,this,null,this.response);throw o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt?mt:(vt=1,mt=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],(function(t){xt.headers[t]={}})),Ot.forEach(["post","put","patch"],(function(t){xt.headers[t]=Ot.merge(Dt)}));var Tt,At,Nt=xt,Ct=F,jt=Nt;function kt(){return At?Tt:(At=1,Tt=function(t){return!(!t||!t.__CANCEL__)})}var Pt=F,Ut=function(t,e,n){var r=this||jt;return Ct.forEach(n,(function(n){t=n.call(r,t,e)})),t},Lt=kt(),Ft=Nt,Bt=wt();function zt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt}var Yt,It,Ht=F,Wt=function(t,e){e=e||{};var n={};function r(t,e){return Ht.isPlainObject(t)&&Ht.isPlainObject(e)?Ht.merge(t,e):Ht.isPlainObject(e)?Ht.merge({},e):Ht.isArray(e)?e.slice():e}function i(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Ht.isUndefined(e[t]))return r(void 0,e[t])}function s(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Ht.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);Ht.isUndefined(r)&&e!==a||(n[t]=r)})),n};function qt(){return It?Yt:(It=1,Yt={version:"0.27.2"})}var Jt=qt().version,Vt=X,Zt={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Zt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var Kt={};Zt.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Jt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,o){if(!1===t)throw new Vt(r(i," has been removed"+(e?" in "+e:"")),Vt.ERR_DEPRECATED);return e&&!Kt[i]&&(Kt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Xt,Qt,Gt,te,ee,ne,re={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],s=e[o];if(s){var a=t[o],u=void 0===a||s(a,o,t);if(!0!==u)throw new Vt("option "+o+" must be "+u,Vt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Vt("Unknown option "+o,Vt.ERR_BAD_OPTION)}},validators:Zt},ie=F,oe=Y,se=W,ae=function(t){return zt(t),t.headers=t.headers||{},t.data=Ut.call(t,t.data,t.headers,t.transformRequest),t.headers=Pt.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Pt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ft.adapter)(t).then((function(e){return zt(t),e.data=Ut.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return Lt(e)||(zt(t),e&&e.response&&(e.response.data=Ut.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ue=Wt,ce=_t,fe=re,le=fe.validators;function he(t){this.defaults=t,this.interceptors={request:new se,response:new se}}he.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ue(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&fe.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!i){var a=[ae,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),f=r.shift();try{u=c(u)}catch(l){f(l);break}}try{o=ae(u)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},he.prototype.getUri=function(t){t=ue(this.defaults,t);var e=ce(t.baseURL,t.url);return oe(e,t.params,t.paramsSerializer)},ie.forEach(["delete","get","head","options"],(function(t){he.prototype[t]=function(e,n){return this.request(ue(n||{},{method:t,url:e,data:(n||{}).data}))}})),ie.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(ue(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}he.prototype[t]=e(),he.prototype[t+"Form"]=e(!0)}));var de=F,pe=w,me=he,ve=Wt;var ge=function t(e){var n=new me(e),r=pe(me.prototype.request,n);return de.extend(r,me.prototype,n),de.extend(r,n),r.create=function(n){return t(ve(e,n))},r}(Nt);ge.Axios=me,ge.CanceledError=wt(),ge.CancelToken=function(){if(Qt)return Xt;Qt=1;var t=wt();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},e((function(e){r.reason||(r.reason=new t(e),n(r.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Xt=e}(),ge.isCancel=kt(),ge.VERSION=qt().version,ge.toFormData=it,ge.AxiosError=X,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=te?Gt:(te=1,Gt=function(t){return function(e){return t.apply(null,e)}}),ge.isAxiosError=function(){if(ne)return ee;ne=1;var t=F;return ee=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),_.exports=ge,_.exports.default=ge,function(t){t.exports=_.exports}(y);a(y.exports).create({baseURL:"/api/1.0/"});const ye=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",ye.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let _e=ye;function we(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(_e,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:i},{min:150,color:o},{min:250,color:s}]);const be=Object.prototype.hasOwnProperty,Oe=(t,e)=>be.call(t,e),$e=Array.isArray,Se=t=>"[object Map]"===Re(t),Ee=t=>"symbol"==typeof t,De=t=>null!==t&&"object"==typeof t,Me=Object.prototype.toString,Re=t=>Me.call(t),xe=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Te=(t,e)=>!Object.is(t,e),Ae=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Ne=new WeakMap;let Ce;const je=Symbol(""),ke=Symbol("");let Pe=!0;const Ue=[];function Le(t,e,n){0}function Fe(t,e,n,r,i,o){const s=Ne.get(t);if(!s)return;let a=[];if("clear"===e)a=[...s.values()];else if("length"===n&&$e(t))s.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(s.get(n)),e){case"add":$e(t)?xe(n)&&a.push(s.get("length")):(a.push(s.get(je)),Se(t)&&a.push(s.get(ke)));break;case"delete":$e(t)||(a.push(s.get(je)),Se(t)&&a.push(s.get(ke)));break;case"set":Se(t)&&a.push(s.get(je))}if(1===a.length)a[0]&&Be(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);Be(Ae(t))}}function Be(t,e){const n=$e(t)?t:[...t];for(const r of n)r.computed&&ze(r);for(const r of n)r.computed||ze(r)}function ze(t,e){(t!==Ce||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Ye=we("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(Ee)),He=Ve(),We=Ve(!0),qe=Je();function Je(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=xn(this);for(let e=0,i=this.length;e<i;e++)Le();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(xn)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){Ue.push(Pe),Pe=!1;const n=xn(this)[e].apply(this,t);return function(){const t=Ue.pop();Pe=void 0===t||t}(),n}})),t}function Ve(t=!1,e=!1){return function(n,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&i===(t?e?On:bn:e?wn:_n).get(n))return n;const o=$e(n);if(!t&&o&&Oe(qe,r))return Reflect.get(qe,r,i);const s=Reflect.get(n,r,i);return(Ee(r)?Ie.has(r):Ye(r))?s:(t||Le(),e?s:Nn(s)?o&&xe(r)?s:s.value:De(s)?t?En(s):Sn(s):s)}}function Ze(t=!1){return function(e,n,r,i){let o=e[n];if(Mn(o)&&Nn(o)&&!Nn(r))return!1;if(!t&&(Rn(r)||Mn(r)||(o=xn(o),r=xn(r)),!$e(e)&&Nn(o)&&!Nn(r)))return o.value=r,!0;const s=$e(e)&&xe(n)?Number(n)<e.length:Oe(e,n),a=Reflect.set(e,n,r,i);return e===xn(i)&&(s?Te(r,o)&&Fe(e,"set",n,r):Fe(e,"add",n,r)),a}}const Ke={get:He,set:Ze(),deleteProperty:function(t,e){const n=Oe(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Fe(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return Ee(e)&&Ie.has(e)||Le(),n},ownKeys:function(t){return Le(0,0,$e(t)),Reflect.ownKeys(t)}},Xe={get:We,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Qe=t=>t,Ge=t=>Reflect.getPrototypeOf(t);function tn(t,e,n=!1,r=!1){const i=xn(t=t.__v_raw),o=xn(e);n||(e!==o&&Le(),Le());const{has:s}=Ge(i),a=r?Qe:n?An:Tn;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function en(t,e=!1){const n=this.__v_raw,r=(xn(n),xn(t));return e||(t!==r&&Le(),Le()),t===r?n.has(t):n.has(t)||n.has(r)}function nn(t,e=!1){return t=t.__v_raw,!e&&Le(xn(t)),Reflect.get(t,"size",t)}function rn(t){t=xn(t);const e=xn(this);return Ge(e).has.call(e,t)||(e.add(t),Fe(e,"add",t,t)),this}function on(t,e){e=xn(e);const n=xn(this),{has:r,get:i}=Ge(n);let o=r.call(n,t);o||(t=xn(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?Te(e,s)&&Fe(n,"set",t,e):Fe(n,"add",t,e),this}function sn(t){const e=xn(this),{has:n,get:r}=Ge(e);let i=n.call(e,t);i||(t=xn(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&Fe(e,"delete",t,void 0),o}function an(){const t=xn(this),e=0!==t.size,n=t.clear();return e&&Fe(t,"clear",void 0,void 0),n}function un(t,e){return function(n,r){const i=this,o=i.__v_raw,s=(xn(o),e?Qe:t?An:Tn);return!t&&Le(),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function cn(t,e,n){return function(...r){const i=this.__v_raw,o=xn(i),s=Se(o),a="entries"===t||t===Symbol.iterator&&s,u=i[t](...r),c=n?Qe:e?An:Tn;return!e&&Le(),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return"delete"!==t&&this}}function ln(){const t={get(t){return tn(this,t)},get size(){return nn(this)},has:en,add:rn,set:on,delete:sn,clear:an,forEach:un(!1,!1)},e={get(t){return tn(this,t,!1,!0)},get size(){return nn(this)},has:en,add:rn,set:on,delete:sn,clear:an,forEach:un(!1,!0)},n={get(t){return tn(this,t,!0)},get size(){return nn(this,!0)},has(t){return en.call(this,t,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:un(!0,!1)},r={get(t){return tn(this,t,!0,!0)},get size(){return nn(this,!0)},has(t){return en.call(this,t,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=cn(i,!1,!1),n[i]=cn(i,!0,!1),e[i]=cn(i,!1,!0),r[i]=cn(i,!0,!0)})),[t,n,e,r]}const[hn,dn,pn,mn]=ln();function vn(t,e){const n=e?t?mn:pn:t?dn:hn;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(Oe(n,r)&&r in e?n:e,r,i)}const gn={get:vn(!1,!1)},yn={get:vn(!0,!1)},_n=new WeakMap,wn=new WeakMap,bn=new WeakMap,On=new WeakMap;function $n(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Re(t).slice(8,-1))(t))}function Sn(t){return Mn(t)?t:Dn(t,!1,Ke,gn,_n)}function En(t){return Dn(t,!0,Xe,yn,bn)}function Dn(t,e,n,r,i){if(!De(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=$n(t);if(0===s)return t;const a=new Proxy(t,2===s?r:n);return i.set(t,a),a}function Mn(t){return!(!t||!t.__v_isReadonly)}function Rn(t){return!(!t||!t.__v_isShallow)}function xn(t){const e=t&&t.__v_raw;return e?xn(e):t}const Tn=t=>De(t)?Sn(t):t,An=t=>De(t)?En(t):t;function Nn(t){return!(!t||!0!==t.__v_isRef)}class Cn{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:xn(t),this._value=e?t:Tn(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Rn(t)||Mn(t);var n;t=e?t:xn(t),Te(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Tn(t),(n=xn(n=this)).dep&&Be(n.dep))}}class jn{constructor(t,e,n){__publicField(this,"id"),__publicField(this,"parameters"),__publicField(this,"taskName"),this.id=t,this.parameters=n,this.taskName=e}}new Event("MonitorsLoaded");const kn=new function(){return new Worker("/static/monitor-map/assets/worker.e5dbf0ee.js")},Pn=new class{constructor(t){__publicField(this,"globalTaskID",0),__publicField(this,"responders",new Map),__publicField(this,"worker"),this.worker=t,this.worker.onmessageerror=t=>console.error("worker failed: ",t),this.worker.onmessage=t=>{const{id:e,error:n,payload:r,success:i}=t.data,o=this.responders.get(e);i?o.resolve(r):n?o.reject(r):console.error(`Unknown response from background service "${this.constructor.name}"`,t),this.responders.delete(e)}}run(t,...e){const n=new jn(++this.globalTaskID,t,JSON.parse(JSON.stringify(e)));return new Promise(((t,e)=>{this.responders.set(n.id,{resolve:t,reject:e}),this.worker.postMessage(n)}))}}(kn);var Un,Ln;Ln=!1,Nn(Un={})||new Cn(Un,Ln);const Fn={pm25:"#00ccff",pm25_avg_60:"#000033"};function Bn(t,e,n,r){r?t.push(v(r).utc().tz("America/Los_Angeles")):t.push(v(n.timestamp).utc().tz("America/Los_Angeles"));for(let i of e.keys())if(i in n){const t=e.get(i);let o;if(r)o=null;else{const t=parseFloat(n[i]);o=t>=0?t:0}t.push(o)}}_e.levels.map((t=>[t.min,t.color])),_e.levels.map((t=>[t.min,t.color]));var zn=Object.freeze({__proto__:null,fetchChartData:async function(t,e){return async function(t,e,n=1){return await Pn.run("fetchEntries",t,e,n)}(t,e).then((e=>{const n=[],r="PurpleAir"===t.data.device?2:60,i=new Map(Object.keys(Fn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=v(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),Bn(n,i,o,t)}Bn(n,i,o)}return[n.map((t=>t.unix())),...i.values()].filter((t=>t.length))}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:i}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("DataChartService",zn)}();