",""]);var ve=/<|?\w+;/;function we(e,t,n,r,i){for(var a,o,s,u,c,l,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f\s*$/g;function Ee(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ae(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Bt,Zt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||b.expando+"_"+Tt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||b.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always((function(){void 0===a?b(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Zt.push(i)),o&&p(a)&&a(o[0]),o=a=void 0})),"script"})),f.createHTMLDocument=((Bt=g.implementation.createHTMLDocument("").body).innerHTML="",2===Bt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),a=!n&&[],(i=I.exec(e))?[t.createElement(i[1])]:(i=we([e],t,a),a&&a.length&&b(a).remove(),b.merge([],i.childNodes)));var r,i,a},b.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return-1").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,a,o,s,u,c=b.css(e,"position"),l=b(e),d={};"static"===c&&(e.style.position="relative"),s=l.offset(),a=b.css(e,"top"),u=b.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(a+u).indexOf("auto")?(o=(r=l.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(u)||0),p(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),l.css(d))}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return U(this,(function(e,r,i){var a;if(m(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(f.pixelPosition,(function(e,n){if(n)return n=ze(e,t),He.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return U(this,(function(t,n,i){var a;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return 0=0;n--)t.push(!!(e&1<=this.data.length)throw new Error("Attempted to read past end of stream.");return e instanceof Uint8Array?e[this.pos++]:255&e.charCodeAt(this.pos++)},this.readBytes=function(e){for(var t=[],n=0;n>3)&1<<(7&i)&&(n|=1<v.length-1&&(r=0),r<0&&(r=0),e=w[r],F.getContext("2d").putImageData(v[r].data,e.x,e.y),T.globalCompositeOperation="copy",T.drawImage(F,0,0),a.canvas.getContext("2d").drawImage(S,a.x,a.y)};return{init:function(){s||(a.c_w&&a.c_h||T.scale(Z(),Z()),a.auto_play?u():(r=0,c()))},step:u,play:function(){g=!0,u()},pause:function(){g=!1},playing:g,move_relative:o,current_frame:function(){return r},length:function(){return v.length},move_to:function(e){r=e,c()}}}(),z=function(e){H(t.pos,t.data.length,e)},U=function(){},V=function(e,t){return function(n){e(n),z(t)}},W={hdr:V((function(e){j((i=e).width,i.height)})),gce:V((function(e){q(),A(),c=e.transparencyGiven?e.transparencyIndex:null,l=e.delayTime,d=e.disposalMethod})),com:V(U),app:{NETSCAPE:V(U)},img:V((function(e){p||(p=F.getContext("2d"));var t=v.length,n=e.lctFlag?e.lct:i.gct;t>0&&(3===f?null!==h?p.putImageData(v[h].data,0,0):p.clearRect(m.leftPos,m.topPos,m.width,m.height):h=t-1,2===f&&p.clearRect(m.leftPos,m.topPos,m.width,m.height));var r=p.getImageData(e.leftPos,e.topPos,e.width,e.height);e.pixels.forEach((function(e,t){e!==c&&(r.data[4*t+0]=n[e][0],r.data[4*t+1]=n[e][1],r.data[4*t+2]=n[e][2],r.data[4*t+3]=255)})),p.putImageData(r,e.leftPos,e.topPos),y||(T.scale(Z(),Z()),y=!0),N&&(T.drawImage(F,0,0),N=a.auto_play),m=e}),!0),eof:function(e){q(),z(!1),a.c_w&&a.c_h||(S.width=i.width*Z(),S.height=i.height*Z()),R.init(),u=!1,$&&$(b)}},B=function(){var e=b.parentNode,t=document.createElement("div");S=document.createElement("canvas"),T=S.getContext("2d"),C=document.createElement("div"),F=document.createElement("canvas"),t.width=S.width=b.width,t.height=S.height=b.height,C.style.minWidth=b.width+"px",t.className="jsgif",C.className="jsgif_toolbar",t.style.display="none",t.appendChild(S),t.appendChild(C),e&&(e.insertBefore(t,b),e.removeChild(b)),a.c_w&&a.c_h&&j(a.c_w,a.c_h),G=!0},Z=function(){return a.max_width&&i&&i.width>a.max_width?a.max_width/i.width:a.max_height&&i&&i.height>a.max_height?a.max_height/i.height:1},G=!1,$=!1,Y=function(e){return!u&&($=e||!1,u=!0,v=[],A(),h=null,f=null,p=null,m=null,!0)};return{play:R.play,pause:R.pause,move_relative:R.move_relative,move_to:R.move_to,get_playing:function(){return g},get_canvas:function(){return S},get_canvas_scale:function(){return Z()},get_loading:function(){return u},get_auto_play:function(){return a.auto_play},get_length:function(){return R.length()},get_current_frame:function(){return R.current_frame()},load_url:function(e,r){if(Y(r)){var i=new XMLHttpRequest;i.open("GET",e,!0),"overrideMimeType"in i?i.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in i?i.responseType="arraybuffer":i.setRequestHeader("Accept-Charset","x-user-defined"),i.onloadstart=function(){G||B()},i.onload=function(e){200!=this.status&&P("xhr - response"),"response"in this||(this.response=new VBArray(this.responseText).toArray().map(String.fromCharCode).join(""));var r=this.response;r.toString().indexOf("ArrayBuffer")>0&&(r=new Uint8Array(r)),t=new n(r),setTimeout(_,0)},i.onprogress=function(e){e.lengthComputable&&H(e.loaded,e.total,!0)},i.onerror=function(){P("xhr")},i.send()}},load:function(e){this.load_url(b.getAttribute("rel:animated_src")||b.src,e)},load_raw:function(e,r){Y(r)&&(G||B(),t=new n(e),setTimeout(_,0))},set_frame_offset:function(e,t){w[e]?(void 0!==t.x&&(w[e].x=t.x),void 0!==t.y&&(w[e].y=t.y)):w[e]=t},getX:function(){return a.x},setX:function(e){a.x=e},getY:function(){return a.y},setY:function(e){a.y=e},setFirstTime:function(){!0}}}}));var luxon=function(e){"use strict";function t(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(s(Error)),d=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(l),h=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(l),f=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(l),p=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),m=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(l),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),y=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(l),v="numeric",w="short",x="long",b={year:v,month:v,day:v},S={year:v,month:w,day:v},T={year:v,month:x,day:v},C={year:v,month:x,day:v,weekday:x},F={hour:v,minute:v},k={hour:v,minute:v,second:v},D={hour:v,minute:v,second:v,timeZoneName:w},I={hour:v,minute:v,second:v,timeZoneName:x},N={hour:v,minute:v,hour12:!1},L={hour:v,minute:v,second:v,hour12:!1},E={hour:v,minute:v,second:v,hour12:!1,timeZoneName:w},M={hour:v,minute:v,second:v,hour12:!1,timeZoneName:x},O={year:v,month:v,day:v,hour:v,minute:v},A={year:v,month:v,day:v,hour:v,minute:v,second:v},_={year:v,month:w,day:v,hour:v,minute:v},j={year:v,month:w,day:v,hour:v,minute:v,second:v},H={year:v,month:w,day:v,weekday:w,hour:v,minute:v},P={year:v,month:x,day:v,hour:v,minute:v,timeZoneName:w},q={year:v,month:x,day:v,hour:v,minute:v,second:v,timeZoneName:w},R={year:v,month:x,day:v,weekday:x,hour:v,minute:v,timeZoneName:x},z={year:v,month:x,day:v,weekday:x,hour:v,minute:v,second:v,timeZoneName:x};function U(e){return void 0===e}function V(e){return"number"==typeof e}function W(e){return"number"==typeof e&&e%1==0}function B(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function Z(){return!U(Intl.DateTimeFormat.prototype.formatToParts)}function G(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function Y(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X(e,t,n){return W(e)&&t<=e&&e<=n}function K(e,t){return void 0===t&&(t=2),e.toString().lengthQt.indexOf(d)&&nn(this.matrix,s,m,a,d)}else V(s[d])&&(o[d]=s[d])}for(var g in o)0!==o[g]&&(a[i]+=g===i?o[g]:o[g]/this.matrix[i][g]);return tn(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;o.push(e.fromDateTimes(s,l)),s=l,u+=1}return o},t.splitBy=function(t){var n=on(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i,a=this.s,o=[];a+this.e?this.e:r,o.push(e.fromDateTimes(a,i)),a=i;return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.et.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,a=0,o=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=c((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var l=r.value;i=1===(a+="s"===l.type?1:-1)?l.time:(i&&+i!=+l.time&&o.push(e.fromDateTimes(i,l.time)),null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;ioe(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:o},fe(e))}function En(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,a=Dn(n,1,4),o=re(n),s=7*r+i-a-3;s<1?s+=re(t=n-1):othis.valueOf(),s=function(e,t,n,r){var i,a=function(e,t,n){for(var r,i,a={},o=0,s=[["years",function(e,t){return t.year-e.year}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=ln(e,t);return(n-n%7)/7}],["days",ln]];othis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ne(this.year)}},{key:"daysInMonth",get:function(){return ie(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?re(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?oe(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return b}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_FULL",get:function(){return T}},{key:"DATE_HUGE",get:function(){return C}},{key:"TIME_SIMPLE",get:function(){return F}},{key:"TIME_WITH_SECONDS",get:function(){return k}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return D}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return I}},{key:"TIME_24_SIMPLE",get:function(){return N}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return E}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return M}},{key:"DATETIME_SHORT",get:function(){return O}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return A}},{key:"DATETIME_MED",get:function(){return _}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return H}},{key:"DATETIME_FULL",get:function(){return P}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_HUGE",get:function(){return R}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return z}}]),e}();function rr(e){if(nr.isDateTime(e))return e;if(e&&e.valueOf&&V(e.valueOf()))return nr.fromJSDate(e);if(e&&"object"==typeof e)return nr.fromObject(e);throw new g("Unknown datetime argument: "+e+", of type "+typeof e)}return e.DateTime=nr,e.Duration=an,e.FixedOffsetZone=Ue,e.IANAZone=Re,e.Info=cn,e.Interval=un,e.InvalidZone=Ve,e.LocalZone=_e,e.Settings=Xe,e.Zone=Oe,e}({});!function(){"use strict";var e=Math.PI,t=Math.sin,n=Math.cos,r=Math.tan,i=Math.asin,a=Math.atan2,o=Math.acos,s=e/180,u=864e5,c=2440588,l=2451545;function d(e){return new Date((e+.5-c)*u)}function h(e){return function(e){return e.valueOf()/u-.5+c}(e)-l}var f=23.4397*s;function p(e,i){return a(t(e)*n(f)-r(i)*t(f),n(e))}function m(e,r){return i(t(r)*n(f)+n(r)*t(f)*t(e))}function g(e,i,o){return a(t(e),n(e)*t(i)-r(o)*n(i))}function y(e,r,a){return i(t(r)*t(a)+n(r)*n(a)*n(e))}function v(e,t){return s*(280.16+360.9856235*e)-t}function w(e){return s*(357.5291+.98560028*e)}function x(n){return n+s*(1.9148*t(n)+.02*t(2*n)+3e-4*t(3*n))+102.9372*s+e}function b(e){var t=x(w(e));return{dec:m(t,0),ra:p(t,0)}}var S={getPosition:function(e,t,n){var r=s*-n,i=s*t,a=h(e),o=b(a),u=v(a,r)-o.ra;return{azimuth:g(u,i,o.dec),altitude:y(u,i,o.dec)}}},T=S.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];S.addTime=function(e,t,n){T.push([e,t,n])};var C=9e-4;function F(t,n,r){return C+(t+n)/(2*e)+r}function k(e,n,r){return l+e+.0053*t(n)-.0069*t(2*r)}function D(e,r,i,a,s,u,c){return k(F(function(e,r,i){return o((t(e)-t(r)*t(i))/(n(r)*n(i)))}(e,i,a),r,s),u,c)}function I(e){var r=s*(134.963+13.064993*e),i=s*(93.272+13.22935*e),a=s*(218.316+13.176396*e)+6.289*s*t(r),o=5.128*s*t(i),u=385001-20905*n(r);return{ra:p(a,o),dec:m(a,o),dist:u}}function N(e,t){return new Date(e.valueOf()+t*u/24)}S.getTimes=function(t,n,r,i){var a,o,u,c,l,f=s*-r,p=s*n,g=function(e){return-2.076*Math.sqrt(e)/60}(i=i||0),y=function(t,n){return Math.round(t-C-n/(2*e))}(h(t),f),v=F(0,f,y),b=w(v),S=x(b),I=m(S,0),N=k(v,b,S),L={solarNoon:d(N),nadir:d(N-.5)};for(a=0,o=T.length;a=0&&(g=h-(v=Math.sqrt(p)/(2*Math.abs(l))),y=h+v,Math.abs(g)<=1&&m++,Math.abs(y)<=1&&m++,g<-1&&(g=y)),1===m?x<0?u=b+g:c=b+g:2===m&&(u=b+(f<0?y:g),c=b+(f<0?g:y)),!u||!c);b+=2)x=o;var T={};return u&&(T.rise=N(i,u)),c&&(T.set=N(i,c)),u||c||(T[f>0?"alwaysUp":"alwaysDown"]=!0),T},"object"==typeof exports&&"undefined"!=typeof module?module.exports=S:"function"==typeof define&&define.amd?define(S):window.SunCalc=S}();const draw=(()=>{const e=(e,t,n,r,i,a,o,s=0,u="start")=>{e.textAlign=u,e.font=n+` '${t}'`,e.shadowColor="#000000",e.shadowOffsetX=s,e.shadowOffsetY=s,e.strokeStyle="#000000",e.lineWidth=2,e.strokeText(o,i,a),e.fillStyle=r,e.fillText(o,i,a),e.fillStyle="",e.strokeStyle="",e.shadowOffsetX=0,e.shadowOffsetY=0};return{horizontalGradient:(e,t,n,r,i,a,o)=>{const s=e.createLinearGradient(0,n,0,i);s.addColorStop(0,a),s.addColorStop(.4,o),s.addColorStop(.6,o),s.addColorStop(1,a),e.fillStyle=s,e.fillRect(t,n,r-t,i-n)},horizontalGradientSingle:(e,t,n,r,i,a,o)=>{const s=e.createLinearGradient(0,n,0,i);s.addColorStop(0,a),s.addColorStop(1,o),e.fillStyle=s,e.fillRect(t,n,r-t,i-n)},triangle:(e,t,n,r,i,a,o,s)=>{e.fillStyle=t,e.beginPath(),e.moveTo(n,r),e.lineTo(i,a),e.lineTo(o,s),e.fill()},titleText:(t,n,r)=>{const i="Star4000",a="24pt",o="#ffff00";let s=55;r?(e(t,i,a,o,170,s,n,3),s+=30,e(t,i,a,o,170,s,r,3),s+=30):(s+=15,e(t,i,a,o,170,s,n,3),s+=30)},text:e,box:(e,t,n,r,i,a)=>{e.fillStyle=t,e.fillRect(n,r,i,a)},border:(e,t,n,r,i,a,o)=>{e.strokeStyle=t,e.lineWidth=n,e.strokeRect(r,i,a,o)},theme:1,topColor1:"rgb(192, 91, 2)",topColor2:"rgb(72, 34, 64)",sideColor1:"rgb(46, 18, 80)",sideColor2:"rgb(192, 91, 2)"}})(),STATUS={loading:Symbol("loading"),loaded:Symbol("loaded"),failed:Symbol("failed"),noData:Symbol("noData")};class WeatherDisplay{constructor(e,t,n){this.navId=e,this.elemId=void 0,this.gifs=[],this.data=void 0,this.loadingStatus=STATUS.loading,this.name=n||t,this.timing={totalScreens:1,baseDelay:5e3,delay:1},this.navBaseCount=0,this.screenIndex=-1,this.setStatus(STATUS.loading),this.createCanvas(t)}setStatus(e){this.status=e,navigation.updateStatus({id:this.navId,status:this.status})}get status(){return this.loadingStatus}set status(e){this.loadingStatus=e}createCanvas(e,t=640,n=480){if(this.elemId)return;this.elemId=e;document.getElementById("container").innerHTML+=`