@sjvair/monitor-map 1.1.1 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{module → monitor-map}/MonitorDetails.css +1 -1
  2. package/dist/monitor-map/assets/MonitorDetails.06d4a87d.js +1 -0
  3. package/dist/monitor-map/assets/worker.5c92fd2b.js +1 -0
  4. package/dist/monitor-map/assets/worker.81983c44.js +1 -0
  5. package/dist/{module → monitor-map}/favicon.ico +0 -0
  6. package/dist/{module → monitor-map}/lungs.svg +0 -0
  7. package/dist/monitor-map/main.css +1 -0
  8. package/dist/monitor-map/sjvairMonitorMap.js +6 -0
  9. package/dist/widget/MonitorDetails.css +1 -0
  10. package/dist/widget/assets/MonitorDetails.bcbfc63f.js +1 -0
  11. package/dist/widget/assets/worker.38171595.js +1 -0
  12. package/dist/widget/assets/worker.88489938.js +1 -0
  13. package/dist/{standalone → widget}/favicon.ico +0 -0
  14. package/dist/{standalone/assets/lungs.d2442d24.svg → widget/lungs.svg} +0 -0
  15. package/dist/widget/main.css +1 -0
  16. package/dist/widget/sjvairMonitorMap.js +6 -0
  17. package/package.json +16 -16
  18. package/dist/module/assets/MonitorDetails.9fed8bdd.js +0 -1
  19. package/dist/module/assets/worker.07193ecc.js +0 -1
  20. package/dist/module/assets/worker.e5dbf0ee.js +0 -1
  21. package/dist/module/sjvairMonitorMap.css +0 -1
  22. package/dist/module/sjvairMonitorMap.js +0 -10
  23. package/dist/standalone/assets/MonitorDetails.2754f27d.css +0 -1
  24. package/dist/standalone/assets/MonitorDetails.7ef47cf5.js +0 -1
  25. package/dist/standalone/assets/index.66265046.js +0 -10
  26. package/dist/standalone/assets/index.a4654ea0.css +0 -1
  27. package/dist/standalone/assets/worker.e170c110.js +0 -1
  28. package/dist/standalone/assets/worker.e40e87c7.js +0 -1
  29. package/dist/standalone/index.html +0 -22
@@ -1 +0,0 @@
1
- var __defProp=Object.defineProperty,__defNormalProp=(t,e,r)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__publicField=(t,e,r)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,r),r);!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}}function e(t,e,r){return Math.min(Math.max(t,r),e)}class r extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var n=r;function i(t){if("string"!=typeof t)throw new n(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let r=t.trim();r=d.test(t)?function(t){const e=t.toLowerCase().trim(),r=s[function(t){let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return(e>>>0)%2341}(e)];if(!r)throw new n(t);return`#${r}`}(t):t;const i=u.exec(r);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(a(t,2),16))),parseInt(a(t[3]||"f",2),16)/255]}const o=c.exec(r);if(o){const t=Array.from(o).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const h=f.exec(r);if(h){const t=Array.from(h).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const m=l.exec(r);if(m){const[r,i,o,s]=Array.from(m).slice(1).map(parseFloat);if(e(0,100,i)!==i)throw new n(t);if(e(0,100,o)!==o)throw new n(t);return[...p(r,i,o),s||1]}throw new n(t)}const o=t=>parseInt(t.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const r=o(e.substring(0,3)),n=o(e.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return t[r]=`${i}${n}`,t}),{});const a=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),u=new RegExp(`^#${a("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c=new RegExp(`^#${a("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),f=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${a(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),l=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,d=/^[a-z]+$/i,h=t=>Math.round(255*t),p=(t,e,r)=>{let n=r/100;if(0===e)return[n,n,n].map(h);const i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,u=0,c=0;i>=0&&i<1?(a=o,u=s):i>=1&&i<2?(a=s,u=o):i>=2&&i<3?(u=o,c=s):i>=3&&i<4?(u=s,c=o):i>=4&&i<5?(a=s,c=o):i>=5&&i<6&&(a=o,c=s);const f=n-o/2;return[a+f,u+f,c+f].map(h)};function m(t,r){const[n,o,s,a]=function(t){const[e,r,n,o]=i(t).map(((t,e)=>3===e?t:t/255)),s=Math.max(e,r,n),a=Math.min(e,r,n),u=(s+a)/2;if(s===a)return[0,0,u,o];const c=s-a;return[60*(e===s?(r-n)/c+(r<n?6:0):r===s?(n-e)/c+2:(e-r)/c+4),u>.5?c/(2-s-a):c/(s+a),u,o]}(t);return function(t,r,n,i){return`hsla(${(t%360).toFixed()}, ${e(0,100,100*r).toFixed()}%, ${e(0,100,100*n).toFixed()}%, ${parseFloat(e(0,1,i).toFixed(3))})`}(n,o,s-r,a)}function v(t,r,n){const o=(t,e)=>3===e?t:t/255,[s,a,u,c]=i(t).map(o),[f,l,d,h]=i(r).map(o),p=h-c,m=2*n-1,v=((m*p==-1?m:m+p/(1+m*p))+1)/2,_=1-v;return g=255*(a*_+l*v),y=255*(u*_+d*v),b=h*n+c*(1-n),`rgba(${e(0,255,255*(s*_+f*v)).toFixed()}, ${e(0,255,g).toFixed()}, ${e(0,255,y).toFixed()}, ${parseFloat(e(0,1,b).toFixed(3))})`;var g,y,b}function _(t){const[r,n,o,s]=i(t);let a=t=>{const r=e(0,255,t).toString(16);return 1===r.length?`0${r}`:r};return`#${a(r)}${a(n)}${a(o)}${s<1?a(Math.round(255*s)):""}`}const g="969696",y="000000",b="00e400",w="ffff00",$="ff7e00",O="ff0000",E="8f3f97",x="7e0023";function M(t,e){const r=e[e.length-1];if(t>=r.min)return`#${r.color}`;if(t<=0)return`#${e[0].color}`;for(let n=0;n<=e.length-1;n++)if(e[n].min>t){const r=e[n-1],i=e[n],o=r.min===-1/0?i.min:i.min-r.min,s=(o-(i.min-t))/o;return v(`#${r.color}`,`#${i.color}`,s)}return"#FFFFFF"}const S=class{constructor(t,e,r,n){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",S.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=r,n.latest&&this.name in n.latest&&(this.latest=Math.round(parseFloat(n.latest[this.name])))}};let D=S;function j(t){switch(t.device){case"AirNow":return function(t){return T(["pm25","PM 2.5","60m",t],["pm100","PM 10","60M",t])}(t);case"BAM1022":return function(t){return T(["pm25","PM 2.5","60m",t])}(t);case"PurpleAir":return function(t){return T(["pm10","PM 1.0","2m",t],["pm25","PM 2.5","2m",t],["pm25_avg_15","PM 2.5","15m",t],["pm25_avg_60","PM 2.5","60m",t],["pm100","PM 10","",t])}(t)}}function T(...t){const e={};for(let r of t)e[r[0]]=new D(...r);return e}__publicField(D,"levels",[{min:-1/0,color:b},{min:12,color:w},{min:35,color:$},{min:55,color:O},{min:150,color:E},{min:250,color:x}]);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var A={exports:{}};A.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",u="week",c="month",f="quarter",l="year",d="date",h="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("_")},_=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:_,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+_(n,2,"0")+":"+_(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),o=r-i<0,s=e.clone().add(n+(o?-1:1),c);return+(-(n+(r-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:d,h:s,m:o,s:i,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",b={};b[y]=v;var w=function(t){return t instanceof x},$=function t(e,r,n){var i;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;b[a]=e,i=a}return!n&&i&&(y=i),i||!n&&y},O=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new x(r)},E=g;E.l=$,E.i=w,E.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function v(t){this.$L=$(t.locale,null,!0),this.parse(t)}var _=v.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},_.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()},_.$utils=function(){return E},_.isValid=function(){return!(this.$d.toString()===h)},_.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},_.isAfter=function(t,e){return O(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<O(t)},_.$g=function(t,e,r){return E.u(t)?this[e]:this.set(r,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var r=this,n=!!E.u(e)||e,f=E.p(t),h=function(t,e){var i=E.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(a)},p=function(t,e){return E.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,v=this.$M,_=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case l:return n?h(1,0):h(31,11);case c:return n?h(1,v):h(0,v+1);case u:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return h(n?_-b:_+(6-b),v);case a:case d:return p(g+"Hours",0);case s:return p(g+"Minutes",1);case o:return p(g+"Seconds",2);case i:return p(g+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var r,u=E.p(t),f="set"+(this.$u?"UTC":""),h=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[l]=f+"FullYear",r[s]=f+"Hours",r[o]=f+"Minutes",r[i]=f+"Seconds",r[n]=f+"Milliseconds",r)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[E.p(t)]()},_.add=function(n,f){var d,h=this;n=Number(n);var p=E.p(f),m=function(t){var e=O(h);return E.w(e.date(e.date()+Math.round(t*n)),h)};if(p===c)return this.set(c,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return m(1);if(p===u)return m(7);var v=(d={},d[o]=e,d[s]=r,d[i]=t,d)[p]||1,_=this.$d.getTime()+n*v;return E.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,u=r.weekdays,c=r.months,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},l=function(t){return E.s(o%12||12,t,"0")},d=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:f(r.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,u,2),ddd:f(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:E.s(o,2,"0"),h:l(1),hh:l(2),a:d(o,s,!0),A:d(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return n.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(n,d,h){var p,m=E.p(d),v=O(n),_=(v.utcOffset()-this.utcOffset())*e,g=this-v,y=E.m(this,v);return y=(p={},p[l]=y/12,p[c]=y,p[f]=y/3,p[u]=(g-_)/6048e5,p[a]=(g-_)/864e5,p[s]=g/r,p[o]=g/e,p[i]=g/t,p)[m]||g,h?y:E.a(y)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return b[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=$(t,e,!0);return n&&(r.$L=n),r},_.clone=function(){return E.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},v}(),M=x.prototype;return O.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",d]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,x,O),t.$i=!0),O},O.locale=$,O.isDayjs=w,O.unix=function(t){return O(1e3*t)},O.en=b[y],O.Ls=b,O.p={},O}();var z=A.exports,F={exports:{}};!function(t,e){t.exports=function(t,e,r){t=t||{};var n=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,r,i){return n.fromToBase(t,e,r,i)}r.en.relativeTime=i,n.fromToBase=function(e,n,o,s,a){for(var u,c,f,l=o.$locale().relativeTime||i,d=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"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=s?r(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=d[p-1]);var _=l[m.l];a&&(v=a(""+v)),c="string"==typeof _?_.replace("%d",v):_(v,n,m.l,f);break}}if(n)return c;var g=f?l.future:l.past;return"function"==typeof g?g(c):g.replace("%s",c)},n.to=function(t,e){return o(t,e,this,!0)},n.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?r.utc():r()};n.toNow=function(t){return this.to(s(this),t)},n.fromNow=function(t){return this.from(s(this),t)}}}(F);var k=F.exports,N={exports:{}};!function(t,e){var r,n;t.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(t,e,i){var o,s=function(t,e,r){void 0===r&&(r={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var r=e.timeZoneName||"short",i=t+"|"+r,o=n[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:r}),n[i]=o),o}(e,r).formatToParts(i)},a=function(t,e){for(var n=s(t,e),o=[],a=0;a<n.length;a+=1){var u=n[a],c=u.type,f=u.value,l=r[c];l>=0&&(o[l]=parseInt(f,10))}var d=o[3],h=24===d?0:d,p=o[0]+"-"+o[1]+"-"+o[2]+" "+h+":"+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 r=this.utcOffset(),n=this.toDate(),s=n.toLocaleString("en-US",{timeZone:t}),a=Math.round((n-new Date(s))/1e3/60),u=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(r-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),r=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return r&&r.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(r,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,r){var n=r&&e,s=r||e||o,u=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var c=function(t,e,r){var n=t-60*e*1e3,i=a(n,r);if(e===i)return[n,e];var o=a(n-=60*(i-e)*1e3,r);return i===o?[n,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,n).valueOf(),u,s),f=c[0],l=c[1],d=i(f).utcOffset(l);return d.$x.$timezone=s,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(N);var C=N.exports,P={exports:{}};!function(t,e){var r,n,i;t.exports=(r="minute",n=/[+-]\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(),r):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(n);if(!e)return null;var r=(""+e[0]).match(i)||["-",0,0],o=r[0],s=60*+r[1]+ +r[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,r)).$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 d=s.diff;s.diff=function(t,e,r){if(t&&this.$u===t.$u)return d.call(this,t,e,r);var n=this.local(),i=o(t).local();return d.call(n,i,e,r)}})}(P);var U=P.exports;z.$defaultFormat=function(t){return z.utc(t).format("YYYY-MM-DD HH:mm:ss")},z.$prettyPrint=function(t){return z(t).format("h:mma dddd MMM DD, YYYY")};z.extend(k),z.extend(C),z.extend(((t,e,r)=>{e.prototype.skewedDiff=function(t,e){const r=Math.abs(this.diff(t))/6e4;return r>e?Math.floor(r):r<e?Math.ceil(r):r}})),z.extend(U);const L=z;var B,q={exports:{}},I={exports:{}},Y=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},H=Y,W=Object.prototype.toString,V=(B=Object.create(null),function(t){var e=W.call(t);return B[e]||(B[e]=e.slice(8,-1).toLowerCase())});function J(t){return t=t.toLowerCase(),function(e){return V(e)===t}}function Z(t){return Array.isArray(t)}function K(t){return void 0===t}var Q=J("ArrayBuffer");function X(t){return null!==t&&"object"==typeof t}function G(t){if("object"!==V(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var tt=J("Date"),et=J("File"),rt=J("Blob"),nt=J("FileList");function it(t){return"[object Function]"===W.call(t)}var ot=J("URLSearchParams");function st(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Z(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var at,ut=(at="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return at&&t instanceof at}),ct={isArray:Z,isArrayBuffer:Q,isBuffer:function(t){return null!==t&&!K(t)&&null!==t.constructor&&!K(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||W.call(t)===e||it(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Q(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:X,isPlainObject:G,isUndefined:K,isDate:tt,isFile:et,isBlob:rt,isFunction:it,isStream:function(t){return X(t)&&it(t.pipe)},isURLSearchParams:ot,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:st,merge:function t(){var e={};function r(r,n){G(e[n])&&G(r)?e[n]=t(e[n],r):G(r)?e[n]=t({},r):Z(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)st(arguments[n],r);return e},extend:function(t,e,r){return st(e,(function(e,n){t[n]=r&&"function"==typeof e?H(e,r):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,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,i,o,s={};e=e||{};do{for(i=(n=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=n[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:V,kindOfTest:J,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(K(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:ut,isFileList:nt},ft=ct;function lt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dt=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(ft.isURLSearchParams(e))n=e.toString();else{var i=[];ft.forEach(e,(function(t,e){null!=t&&(ft.isArray(t)?e+="[]":t=[t],ft.forEach(t,(function(t){ft.isDate(t)?t=t.toISOString():ft.isObject(t)&&(t=JSON.stringify(t)),i.push(lt(e)+"="+lt(t))})))})),n=i.join("&")}if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},ht=ct;function pt(){this.handlers=[]}pt.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},pt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},pt.prototype.forEach=function(t){ht.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var mt=pt,vt=ct,_t=ct;function gt(t,e,r,n,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}_t.inherits(gt,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 yt=gt.prototype,bt={};["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){bt[t]={value:t}})),Object.defineProperties(gt,bt),Object.defineProperty(yt,"isAxiosError",{value:!0}),gt.from=function(t,e,r,n,i,o){var s=Object.create(yt);return _t.toFlatObject(t,s,(function(t){return t!==Error.prototype})),gt.call(s,t.message,e,r,n,i),s.name=t.name,o&&Object.assign(s,o),s};var wt=gt,$t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ot=ct;var Et,xt,Mt,St,Dt=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":Ot.isDate(t)?t.toISOString():Ot.isArrayBuffer(t)||Ot.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,o){if(Ot.isPlainObject(i)||Ot.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),Ot.forEach(i,(function(r,i){if(!Ot.isUndefined(r)){var s,a=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(Ot.endsWith(i,"{}"))r=JSON.stringify(r);else if(Ot.endsWith(i,"[]")&&(s=Ot.toArray(r)))return void s.forEach((function(t){!Ot.isUndefined(t)&&e.append(a,n(t))}));t(r,a)}})),r.pop()}else e.append(o,n(i))}(t),e};var jt,Tt,Rt,At,zt,Ft,kt,Nt,Ct,Pt,Ut,Lt,Bt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},qt=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},It=function(t,e){return t&&!Bt(e)?qt(t,e):e};function Yt(){if(Ft)return zt;Ft=1;var t=wt;function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return ct.inherits(e,t,{__CANCEL__:!0}),zt=e}function Ht(){if(Pt)return Ct;Pt=1;var t=ct,e=function(){if(xt)return Et;xt=1;var t=wt;return Et=function(e,r,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?r(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}(),r=function(){if(St)return Mt;St=1;var t=ct;return Mt=t.isStandardBrowserEnv()?{write:function(e,r,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&a.push("expires="+new Date(n).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(){}}}(),n=dt,i=It,o=function(){if(Tt)return jt;Tt=1;var t=ct,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 jt=function(r){var n,i,o,s={};return r?(t.forEach(r.split("\n"),(function(r){if(o=r.indexOf(":"),n=t.trim(r.substr(0,o)).toLowerCase(),i=t.trim(r.substr(o+1)),n){if(s[n]&&e.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([i]):s[n]?s[n]+", "+i:i}})),s):s}}(),s=function(){if(At)return Rt;At=1;var t=ct;return Rt=t.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var e=t;return r&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(r){var n=t.isString(r)?i(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}}(),a=$t,u=wt,c=Yt(),f=Nt?kt:(Nt=1,kt=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""});return Ct=function(l){return new Promise((function(d,h){var p,m=l.data,v=l.headers,_=l.responseType;function g(){l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}t.isFormData(m)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var y=new XMLHttpRequest;if(l.auth){var b=l.auth.username||"",w=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var $=i(l.baseURL,l.url);function O(){if(y){var t="getAllResponseHeaders"in y?o(y.getAllResponseHeaders()):null,r={data:_&&"text"!==_&&"json"!==_?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:t,config:l,request:y};e((function(t){d(t),g()}),(function(t){h(t),g()}),r),y=null}}if(y.open(l.method.toUpperCase(),n($,l.params,l.paramsSerializer),!0),y.timeout=l.timeout,"onloadend"in y?y.onloadend=O:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(O)},y.onabort=function(){y&&(h(new u("Request aborted",u.ECONNABORTED,l,y)),y=null)},y.onerror=function(){h(new u("Network Error",u.ERR_NETWORK,l,y,y)),y=null},y.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||a;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),h(new u(t,e.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,l,y)),y=null},t.isStandardBrowserEnv()){var E=(l.withCredentials||s($))&&l.xsrfCookieName?r.read(l.xsrfCookieName):void 0;E&&(v[l.xsrfHeaderName]=E)}"setRequestHeader"in y&&t.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),_&&"json"!==_&&(y.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&y.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(p=function(t){y&&(h(!t||t&&t.type?new c:t),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p))),m||(m=null);var x=f($);x&&-1===["http","https","file"].indexOf(x)?h(new u("Unsupported protocol "+x+":",u.ERR_BAD_REQUEST,l)):y.send(m)}))}}var Wt=ct,Vt=function(t,e){vt.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},Jt=wt,Zt=Dt,Kt={"Content-Type":"application/x-www-form-urlencoded"};function Qt(t,e){!Wt.isUndefined(t)&&Wt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Xt,Gt={transitional:$t,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Xt=Ht()),Xt),transformRequest:[function(t,e){if(Vt(e,"Accept"),Vt(e,"Content-Type"),Wt.isFormData(t)||Wt.isArrayBuffer(t)||Wt.isBuffer(t)||Wt.isStream(t)||Wt.isFile(t)||Wt.isBlob(t))return t;if(Wt.isArrayBufferView(t))return t.buffer;if(Wt.isURLSearchParams(t))return Qt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=Wt.isObject(t),i=e&&e["Content-Type"];if((r=Wt.isFileList(t))||n&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Zt(r?{"files[]":t}:t,o&&new o)}return n||"application/json"===i?(Qt(e,"application/json"),function(t,e,r){if(Wt.isString(t))try{return(e||JSON.parse)(t),Wt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||Gt.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&Wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw Jt.from(o,Jt.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:Lt?Ut:(Lt=1,Ut=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Wt.forEach(["delete","get","head"],(function(t){Gt.headers[t]={}})),Wt.forEach(["post","put","patch"],(function(t){Gt.headers[t]=Wt.merge(Kt)}));var te,ee,re=Gt,ne=ct,ie=re;function oe(){return ee?te:(ee=1,te=function(t){return!(!t||!t.__CANCEL__)})}var se=ct,ae=function(t,e,r){var n=this||ie;return ne.forEach(r,(function(r){t=r.call(n,t,e)})),t},ue=oe(),ce=re,fe=Yt();function le(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe}var de,he,pe=ct,me=function(t,e){e=e||{};var r={};function n(t,e){return pe.isPlainObject(t)&&pe.isPlainObject(e)?pe.merge(t,e):pe.isPlainObject(e)?pe.merge({},e):pe.isArray(e)?e.slice():e}function i(r){return pe.isUndefined(e[r])?pe.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function o(t){if(!pe.isUndefined(e[t]))return n(void 0,e[t])}function s(r){return pe.isUndefined(e[r])?pe.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function a(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):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 pe.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,n=e(t);pe.isUndefined(n)&&e!==a||(r[t]=n)})),r};function ve(){return he?de:(he=1,de={version:"0.27.2"})}var _e=ve().version,ge=wt,ye={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ye[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var be={};ye.transitional=function(t,e,r){function n(t,e){return"[Axios v"+_e+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,i,o){if(!1===t)throw new ge(n(i," has been removed"+(e?" in "+e:"")),ge.ERR_DEPRECATED);return e&&!be[i]&&(be[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,o)}};var we,$e,Oe,Ee,xe,Me,Se=ct,De=dt,je=mt,Te=function(t){return le(t),t.headers=t.headers||{},t.data=ae.call(t,t.data,t.headers,t.transformRequest),t.headers=se.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),se.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||ce.adapter)(t).then((function(e){return le(t),e.data=ae.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return ue(e)||(le(t),e&&e.response&&(e.response.data=ae.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Re=me,Ae=It,ze={assertOptions:function(t,e,r){if("object"!=typeof t)throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),i=n.length;i-- >0;){var o=n[i],s=e[o];if(s){var a=t[o],u=void 0===a||s(a,o,t);if(!0!==u)throw new ge("option "+o+" must be "+u,ge.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ge("Unknown option "+o,ge.ERR_BAD_OPTION)}},validators:ye},Fe=ze.validators;function ke(t){this.defaults=t,this.interceptors={request:new je,response:new je}}ke.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=Re(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&ze.assertOptions(r,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!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,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!i){var a=[Te,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var c=n.shift(),f=n.shift();try{u=c(u)}catch(l){f(l);break}}try{o=Te(u)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},ke.prototype.getUri=function(t){t=Re(this.defaults,t);var e=Ae(t.baseURL,t.url);return De(e,t.params,t.paramsSerializer)},Se.forEach(["delete","get","head","options"],(function(t){ke.prototype[t]=function(e,r){return this.request(Re(r||{},{method:t,url:e,data:(r||{}).data}))}})),Se.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,i){return this.request(Re(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ke.prototype[t]=e(),ke.prototype[t+"Form"]=e(!0)}));var Ne=ct,Ce=Y,Pe=ke,Ue=me;var Le=function t(e){var r=new Pe(e),n=Ce(Pe.prototype.request,r);return Ne.extend(n,Pe.prototype,r),Ne.extend(n,r),n.create=function(r){return t(Ue(e,r))},n}(re);Le.Axios=Pe,Le.CanceledError=Yt(),Le.CancelToken=function(){if($e)return we;$e=1;var t=Yt();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(e){n.reason||(n.reason=new t(e),r(n.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}},we=e}(),Le.isCancel=oe(),Le.VERSION=ve().version,Le.toFormData=Dt,Le.AxiosError=wt,Le.Cancel=Le.CanceledError,Le.all=function(t){return Promise.all(t)},Le.spread=Ee?Oe:(Ee=1,Oe=function(t){return function(e){return t.apply(null,e)}}),Le.isAxiosError=function(){if(Me)return xe;Me=1;var t=ct;return xe=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),I.exports=Le,I.exports.default=Le,function(t){t.exports=I.exports}(q);const Be="lib"==={VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_BUILD_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/",qe=R(q.exports).create({baseURL:Be});class Ie{constructor(t){__publicField(this,"data"),__publicField(this,"dataFields"),__publicField(this,"displayField"),__publicField(this,"lastUpdated"),__publicField(this,"markerParams"),__publicField(this,"monitorFields"),this.data=t,this.markerParams=function(t){const e=`#${g}`,r={border_color:_(m(e,.1)),border_size:1,fill_color:e,value_color:e,size:8,shape:"square"};switch(t.device){case"AirNow":case"BAM1022":r.shape="triangle";break;case"PurpleAir":t.is_sjvair&&(r.shape="circle");break;default:console.error(`Unknown device type for monitor ${t.id}`),r.shape="diamond"}if(t.latest){const e=M(+t.latest.pm25_avg_15,D.levels);if(r.value_color=e,t.is_active)switch(r.fill_color=M(+t.latest.pm25_avg_15,D.levels),r.border_color=_(m(r.fill_color,.1)),t.device){case"AirNow":case"BAM1022":r.size=14;break;case"PurpleAir":t.is_sjvair?r.size=16:r.size=10}"inside"===t.location&&(r.border_color=`#${y}`,r.border_size=2)}return r}(t),this.monitorFields=j(t),this.dataFields=Object.keys(this.monitorFields),this.displayField=this.monitorFields.pm25_avg_15,this.lastUpdated=t.latest&&Object.keys(t.latest).length>1?L(t.latest.timestamp).fromNow():"never"}}var Ye=Object.freeze({__proto__:null,fetchMonitors:async function(){return qe.get("/monitors").then((t=>{const e={};for(let r of t.data.data)r.position.coordinates[1]>42||(e[r.id]=new Ie(r));return e}))},fetchEntries:async function t(e,r,n=1){const i=[],o={fields:e.dataFields.join(","),page:n,timestamp__gte:L.$defaultFormat(r.start),timestamp__lte:L.$defaultFormat(r.end)};return qe.get(`monitors/${e.data.id}/entries/`,{params:o}).then((async o=>{const s=o.data;if(s.data.length&&(i.push(...s.data),s.has_next_page)){const o=await t(e,r,++n).catch((t=>{throw t}));o.length&&i.push(...o)}return i}))},fetchSubscriptions:async function(){return qe.get("alerts/subscriptions").then((t=>t.data.data))},fetchTempByCoords:async function(t){const e=`https://api.weather.gov/points/${t.join(",")}`;return await qe(e).then((async t=>{try{return(await qe(t.data.properties.forecastHourly)).data.properties.periods[0].temperature}catch(e){throw e}}))}});new class{constructor(e,r){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=r,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:r,taskName:n,parameters:i}=e.data;this.serviceModule[n];const o=new t(r);n in this.serviceModule?await this.serviceModule[n](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(n)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("MonitorsService",Ye)}();
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" href="/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>SJVAir Monitor Map</title>
8
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
9
-
10
- <style>
11
- #SJVAirMonitorMap {
12
- height: 100vh;
13
- width: 100vw;
14
- }
15
- </style>
16
- <script async type="module" crossorigin src="/assets/index.66265046.js"></script>
17
- <link rel="stylesheet" href="/assets/index.a4654ea0.css">
18
- </head>
19
- <body>
20
- <div id="SJVAirMonitorMap"></div>
21
- </body>
22
- </html>