diff --git a/dist/resources/ws.min.js b/dist/resources/ws.min.js index c3c6851..8cfe5b7 100644 --- a/dist/resources/ws.min.js +++ b/dist/resources/ws.min.js @@ -1,2 +1,2 @@ /*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,d=c.toString,h=d.call(Object),f={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,i,o=(n=n||m).createElement("script");if(o.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e}var x="3.5.1",b=function(e,t){return new b.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!p(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+H+")"+H+"*"),z=new RegExp(H+"|>"),W=new RegExp($),G=new RegExp("^"+P+"$"),Z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(D=O.call(b.childNodes),b.childNodes),D[b.childNodes.length].nodeType}catch(t){M={apply:D.length?function(e,t){N.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,d,p,v,y=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!i&&(h(t),t=t||f,g)){if(11!==b&&(d=K.exec(e)))if(o=d[1]){if(9===b){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(y&&(l=y.getElementById(o))&&w(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return M.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!F[e+" "]&&(!m||!m.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===b&&(z.test(e)||V.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=x)),s=(p=a(e)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+we(p[s]);v=p.join(",")}try{return M.apply(r,y.querySelectorAll(v)),r}catch(t){F(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[x]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:b;return a!=f&&9===a.nodeType&&a.documentElement&&(p=(f=a).documentElement,g=!o(f),b!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=ce((function(e){return p.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=X.test(f.querySelectorAll))&&(ce((function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+H+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+H+"*name"+H+"*="+H+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+H+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",$)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(p.compareDocumentPosition),w=t||X.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==b&&w(b,e)?-1:t==f||t.ownerDocument==b&&w(b,t)?1:c?_(c,e)-_(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:c?_(c,e)-_(c,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]==b?-1:s[r]==b?1:0}),f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&g&&!F[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){F(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,t,n){return p(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),I.test(r[1])&&b.isPlainObject(t))for(r in t)p(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,D=b(m);var N=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(de=m.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ce.appendChild(de),f.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",f.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",f.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&F(e,t)?b.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var ye=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f\s*$/g;function Le(e,t){return F(e,"table")&&F(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,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)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var zt,Wt=[],Gt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||b.expando+"_"+St.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,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+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(i)),a&&p(o)&&o(a[0]),a=o=void 0})),"script"})),f.createHTMLDocument=((zt=m.implementation.createHTMLDocument("").body).innerHTML="
",2===zt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),o=!n&&[],(i=I.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&b(o).remove(),b.merge([],i.childNodes)));var r,i,o},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[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,o,a,s,u,l=b.css(e,"position"),c=b(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),p(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),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"),c.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 B(this,(function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Be(f.pixelPosition,(function(e,n){if(n)return n=qe(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,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),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$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},t.prototype={killerFn:null,initialize:function(){var n,r=this,i="."+r.classes.suggestion,o=r.classes.selected,a=r.options;r.element.setAttribute("autocomplete","off"),r.killerFn=function(t){e(t.target).closest("."+r.options.containerClass).length||(r.killSuggestions(),r.disableKillerFn())},r.noSuggestionsContainer=e('
').html(this.options.noSuggestionNotice).get(0),r.suggestionsContainer=t.utils.createNode(a.containerClass),(n=e(r.suggestionsContainer)).appendTo(a.appendTo),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",i,(function(){r.activate(e(this).data("index"))})),n.on("mouseout.autocomplete",(function(){r.selectedIndex=-1,n.children("."+o).removeClass(o)})),n.on("click.autocomplete",i,(function(){return r.select(e(this).data("index")),!1})),r.fixPositionCapture=function(){r.visible&&r.fixPosition()},e(window).on("resize.autocomplete",r.fixPositionCapture),r.el.on("keydown.autocomplete",(function(e){r.onKeyPress(e)})),r.el.on("keyup.autocomplete",(function(e){r.onKeyUp(e)})),r.el.on("blur.autocomplete",(function(){r.onBlur()})),r.el.on("focus.autocomplete",(function(){r.onFocus()})),r.el.on("change.autocomplete",(function(e){r.onKeyUp(e)})),r.el.on("input.autocomplete",(function(e){r.onKeyUp(e)}))},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,r=n.options;e.extend(r,t),n.isLocal=e.isArray(r.lookup),n.isLocal&&(r.lookup=n.verifySuggestionsFormat(r.lookup)),r.orientation=n.validateOrientation(r.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":r.maxHeight+"px",width:r.width+"px","z-index":r.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),r=n.parent().get(0);if(r===document.body||t.options.forceFixPosition){var i=t.options.orientation,o=n.outerHeight(),a=t.el.outerHeight(),s=t.el.offset(),u={top:s.top,left:s.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),d=-c+s.top-o,h=c+l-(s.top+a+o);i=Math.max(d,h)===d?"top":"bottom"}if(u.top+="top"===i?-o:a,r!==document.body){var f,p=n.css("opacity");t.visible||n.css("opacity",0).show(),f=n.offsetParent().offset(),u.top-=f.top,u.left-=f.left,t.visible||n.css("opacity",p).hide()}"auto"===t.options.width&&(u.width=t.el.outerWidth()+"px"),n.css(u)}},enableKillerFn:function(){e(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){e(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval((function(){e.visible&&(e.options.preserveInput||e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()}),50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==u||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case r:t.el.val(t.currentValue),t.hide();break;case s:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case o:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case u:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case u:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeInterval=setInterval((function(){t.onValueChange()}),t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var t=this,n=t.options,r=t.el.val(),i=t.getQuery(r);return t.selection&&t.currentValue!==i&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearInterval(t.onChangeInterval),t.currentValue=r,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(i)?void t.select(0):void(i.lengtha&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,r,i,o,a=this,s=a.options,u=s.serviceUrl;if(s.params[s.paramName]=t,r=s.ignoreParams?null:s.params,!1!==s.onSearchStart.call(a.element,s.params)){if(e.isFunction(s.lookup))return void s.lookup(t,(function(e){a.suggestions=e.suggestions,a.suggest(),s.onSearchComplete.call(a.element,t,e.suggestions)}));a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(u)&&(u=u.call(a.element,t)),i=u+"?"+e.param(r||{}),n=a.cachedResponse[i]),n&&e.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),s.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?s.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),o={url:u,data:r,type:s.type,dataType:s.dataType},e.extend(o,s.ajaxSettings),a.currentRequest=e.ajax(o).done((function(e){var n;a.currentRequest=null,n=s.transformResult(e,t),a.processResponse(n,t,i),s.onSearchComplete.call(a.element,t,n.suggestions)})).fail((function(e,n,r){s.onSearchError.call(a.element,t,e,n,r)})))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this,r=n.options,i=r.groupBy,o=r.formatResult,a=n.getQuery(n.currentValue),s=n.classes.suggestion,u=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),d=r.beforeRender,h="",f=function(e,n){var r=e.data[i];return t===r?"":'
'+(t=r)+"
"};return r.triggerSelectOnValidInput&&n.isExactMatch(a)?void n.select(0):(e.each(n.suggestions,(function(e,t){i&&(h+=f(t,0)),h+='
'+o(t,a,e)+"
"})),this.adjustContainerWidth(),c.detach(),l.html(h),e.isFunction(d)&&d.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),r.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+s).first().addClass(u)),n.visible=!0,void n.findBestHint())}this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this,n=e(t.suggestionsContainer),r=e(t.noSuggestionsContainer);this.adjustContainerWidth(),r.detach(),n.empty(),n.append(r),t.fixPosition(),n.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,r=n.options,i=e(n.suggestionsContainer);"auto"===r.width&&(t=n.el.outerWidth(),i.css("width",t>0?t:300))},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),r=null;n&&(e.each(t.suggestions,(function(e,t){var i=0===t.value.toLowerCase().indexOf(n);return i&&(r=t),!i})),t.signalHint(r))},signalHint:function(t){var n="",r=this;t&&(n=r.currentValue+t.value.substr(r.currentValue.length)),r.hintValue!==n&&(r.hintValue=n,r.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,(function(e){return{value:e,data:null}})):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var r=this,i=r.options;e.suggestions=r.verifySuggestionsFormat(e.suggestions),i.noCache||(r.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&r.badQueries.push(t)),t===r.getQuery(r.currentValue)&&(r.suggestions=e.suggestions,r.suggest())},activate:function(t){var n,r=this,i=r.classes.selected,o=e(r.suggestionsContainer),a=o.find("."+r.classes.suggestion);return o.find("."+i).removeClass(i),r.selectedIndex=t,-1!==r.selectedIndex&&a.length>r.selectedIndex?(n=a.get(r.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,r=n.activate(t);if(r){var i,o,a,s=e(r).outerHeight();i=r.offsetTop,a=(o=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-s,o>i?e(n.suggestionsContainer).scrollTop(i):i>a&&e(n.suggestionsContainer).scrollTop(i-n.options.maxHeight+s),n.options.preserveInput||n.el.val(n.getValue(n.suggestions[t].value)),n.signalHint(null)}},onSelect:function(t){var n=this,r=n.options.onSelect,i=n.suggestions[t];n.currentValue=n.getValue(i.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=i,e.isFunction(r)&&r.call(n.element,i)},getValue:function(e){var t,n,r=this.options.delimiter;return r?1===(n=(t=this.currentValue).split(r)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),t.disableKillerFn(),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.autocomplete=e.fn.devbridgeAutocomplete=function(n,r){var i="autocomplete";return arguments.length?this.each((function(){var o=e(this),a=o.data(i);"string"==typeof n?a&&"function"==typeof a[n]&&a[n](r):(a&&a.dispose&&a.dispose(),a=new t(this,n),o.data(i,a))})):this.first().data(i)}})),function(e){function t(e,t,n){var r=document.createElement("source");r.src=n,r.type="video/"+t,e.appendChild(r)}var n=/Android/gi.test(navigator.userAgent),r=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),i="data:video/webm;base64,GkXfo0AgQoaBAUL3gQFC8oEEQvOBCEKCQAR3ZWJtQoeBAkKFgQIYU4BnQI0VSalmQCgq17FAAw9CQE2AQAZ3aGFtbXlXQUAGd2hhbW15RIlACECPQAAAAAAAFlSua0AxrkAu14EBY8WBAZyBACK1nEADdW5khkAFVl9WUDglhohAA1ZQOIOBAeBABrCBCLqBCB9DtnVAIueBAKNAHIEAAIAwAQCdASoIAAgAAUAmJaQAA3AA/vz0AAA=",o="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAAG21kYXQAAAGzABAHAAABthADAowdbb9/AAAC6W1vb3YAAABsbXZoZAAAAAB8JbCAfCWwgAAAA+gAAAAAAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAIVdHJhawAAAFx0a2hkAAAAD3wlsIB8JbCAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAIAAAACAAAAAABsW1kaWEAAAAgbWRoZAAAAAB8JbCAfCWwgAAAA+gAAAAAVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAAVmlkZW9IYW5kbGVyAAAAAVxtaW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEcc3RibAAAALhzdHNkAAAAAAAAAAEAAACobXA0dgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAIAAgASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAAAFJlc2RzAAAAAANEAAEABDwgEQAAAAADDUAAAAAABS0AAAGwAQAAAbWJEwAAAQAAAAEgAMSNiB9FAEQBFGMAAAGyTGF2YzUyLjg3LjQGAQIAAAAYc3R0cwAAAAAAAAABAAAAAQAAAAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAFHN0c3oAAAAAAAAAEwAAAAEAAAAUc3RjbwAAAAAAAAABAAAALAAAAGB1ZHRhAAAAWG1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAAK2lsc3QAAAAjqXRvbwAAABtkYXRhAAAAAQAAAABMYXZmNTIuNzguMw==",a=function(){return r?this.noSleepTimer=null:n&&(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("loop",""),t(this.noSleepVideo,"webm",i),t(this.noSleepVideo,"mp4",o)),this};a.prototype.enable=function(e){r?(this.disable(),this.noSleepTimer=window.setInterval((function(){window.location.href="/",window.setTimeout(window.stop,0)}),e||15e3)):n&&this.noSleepVideo.play()},a.prototype.disable=function(){r?this.noSleepTimer&&(window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):n&&this.noSleepVideo.pause()},e.NoSleep=a}(this),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}((function(e){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=l),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each((function(){var r=e(this),i=r.data(F);i||(i=new n(this,t),r.data(F,i))}))}function n(t,n){function I(t){if(!(!0===Ae.data(F+"_intouch")||e(t.target).closest(n.excludedElements,Ae).length>0)){var s=t.originalEvent?t.originalEvent:t;if(!s.pointerType||"mouse"!=s.pointerType||0!=n.fallbackToMouseEvents){var u,l=s.touches,c=l?l[0]:s;return Se=x,l?Te=l.length:!1!==n.preventDefaultEvents&&t.preventDefault(),he=0,fe=null,pe=null,xe=null,ge=0,me=0,ve=0,ye=1,we=0,(d={})[r]=te(r),d[i]=te(i),d[o]=te(o),d[a]=te(a),be=d,Y(),X(0,c),!l||Te===n.fingers||n.fingers===y||q()?(ke=oe(),2==Te&&(X(1,l[1]),me=ve=re(Ce[0].start,Ce[1].start)),(n.swipeStatus||n.pinchStatus)&&(u=_(s,Se))):u=!1,!1===u?(_(s,Se=S),u):(n.hold&&(Ne=setTimeout(e.proxy((function(){Ae.trigger("hold",[s.target]),n.hold&&(u=n.hold.call(Ae,s,s.target))}),this),n.longTapThreshold)),J(!0),null)}}var d}function E(t){var d,h,f,p,g=t.originalEvent?t.originalEvent:t;if(Se!==A&&Se!==S&&!Q()){var w,x=g.touches,T=K(x?x[0]:g);if(Fe=oe(),x&&(Te=x.length),n.hold&&clearTimeout(Ne),Se=b,2==Te&&(0==me?(X(1,x[1]),me=ve=re(Ce[0].start,Ce[1].start)):(K(x[1]),ve=re(Ce[0].end,Ce[1].end),Ce[0].end,Ce[1].end,xe=1>ye?u:s),ye=(ve/me*1).toFixed(2),we=Math.abs(me-ve)),Te===n.fingers||n.fingers===y||!x||q()){if(fe=ie(T.start,T.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===l)e.preventDefault();else{var s=n.allowPageScroll===c;switch(t){case r:(n.swipeLeft&&s||!s&&n.allowPageScroll!=m)&&e.preventDefault();break;case i:(n.swipeRight&&s||!s&&n.allowPageScroll!=m)&&e.preventDefault();break;case o:(n.swipeUp&&s||!s&&n.allowPageScroll!=v)&&e.preventDefault();break;case a:(n.swipeDown&&s||!s&&n.allowPageScroll!=v)&&e.preventDefault()}}}(t,pe=ie(T.last,T.end)),f=T.start,p=T.end,he=Math.round(Math.sqrt(Math.pow(p.x-f.x,2)+Math.pow(p.y-f.y,2))),ge=ne(),function(e,t){e!=l&&(t=Math.max(t,ee(e)),be[e].distance=t)}(fe,he),w=_(g,Se),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var C=!0;if(n.triggerOnTouchLeave){var k={left:(h=(d=e(d=this)).offset()).left,right:h.left+d.outerWidth(),top:h.top,bottom:h.top+d.outerHeight()};C=function(e,t){return e.x>t.left&&e.xt.top&&e.yn.longTapThreshold&&w>he&&n.longTap&&!1!==r?r=j(e,t,g):!(1!==Te&&T||!(isNaN(he)||he=n.threshold),e}function P(){var e=!1;return null!==n.cancelThreshold&&null!==fe&&(e=ee(fe)-he>=n.cancelThreshold),e}function R(){return!n.maxTimeThreshold||!(ge>=n.maxTimeThreshold)}function $(){var e=V(),t=z(),r=null===n.pinchThreshold||we>=n.pinchThreshold;return e&&t&&r}function q(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function B(){var e=R(),t=H(),n=V(),r=z();return!P()&&r&&n&&t&&e}function U(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function V(){return Te===n.fingers||n.fingers===y||!T}function z(){return 0!==Ce[0].end.x}function W(){return!!n.tap}function G(){return!!n.doubleTap}function Z(){if(null==De)return!1;var e=oe();return G()&&e-De<=n.doubleTapThreshold}function Y(){Ie=0,Ee=0}function Q(){var e=!1;Ie&&(oe()-Ie<=n.fingerReleaseThreshold&&(e=!0));return e}function J(e){Ae&&(!0===e?(Ae.bind(ue,E),Ae.bind(le,D),ce&&Ae.bind(ce,N)):(Ae.unbind(ue,E,!1),Ae.unbind(le,D,!1),ce&&Ae.unbind(ce,N,!1)),Ae.data(F+"_intouch",!0===e))}function X(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,Ce[e]=n,n}function K(e){var t=void 0!==e.identifier?e.identifier:0,n=function(e){return Ce[e]||null}(t);return null===n&&(n=X(t,e)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function ee(e){return be[e]?be[e].distance:void 0}function te(e){return{direction:e,distance:0}}function ne(){return Fe-ke}function re(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+r*r))}function ie(e,t){if(s=t,(n=e).x==s.x&&n.y==s.y)return l;var n,s,u=function(e,t){var n=e.x-t.x,r=t.y-e.y,i=Math.atan2(r,n),o=Math.round(180*i/Math.PI);return 0>o&&(o=360-Math.abs(o)),o}(e,t);return 45>=u&&u>=0||360>=u&&u>=315?r:u>=135&&225>=u?i:u>45&&135>u?a:o}function oe(){return(new Date).getTime()}n=e.extend({},n);var ae=T||k||!n.fallbackToMouseEvents,se=ae?k?C?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ue=ae?k?C?"MSPointerMove":"pointermove":"touchmove":"mousemove",le=ae?k?C?"MSPointerUp":"pointerup":"touchend":"mouseup",ce=ae?k?"mouseleave":null:"mouseleave",de=k?C?"MSPointerCancel":"pointercancel":"touchcancel",he=0,fe=null,pe=null,ge=0,me=0,ve=0,ye=1,we=0,xe=0,be=null,Ae=e(t),Se="start",Te=0,Ce={},ke=0,Fe=0,Ie=0,Ee=0,De=0,Le=null,Ne=null;try{Ae.bind(se,I),Ae.bind(de,L)}catch(t){e.error("events not supported "+se+","+de+" on jQuery.swipe")}this.enable=function(){return this.disable(),Ae.bind(se,I),Ae.bind(de,L),Ae},this.disable=function(){return M(),Ae},this.destroy=function(){M(),Ae.data(F,null),Ae=null},this.option=function(t,r){if("object"==typeof t)n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===r)return n[t];n[t]=r}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",o="up",a="down",s="in",u="out",l="none",c="auto",d="swipe",h="pinch",f="tap",p="doubletap",g="longtap",m="horizontal",v="vertical",y="all",w=10,x="start",b="move",A="end",S="cancel",T="ontouchstart"in window,C=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!T,k=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!T,F="TouchSwipe";e.fn.swipe=function(n){var r=e(this),i=r.data(F);if(i&&"string"==typeof n){if(i[n])return i[n].apply(i,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof n)i.option.apply(i,arguments);else if(!(i||"object"!=typeof n&&n))return t.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:x,PHASE_MOVE:b,PHASE_END:A,PHASE_CANCEL:S},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:o,DOWN:a,IN:s,OUT:u},e.fn.swipe.pageScroll={NONE:l,HORIZONTAL:m,VERTICAL:v,AUTO:c},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}})),$(()=>{index.init()});const index=(()=>{const e={},t=6e5,n=new NoSleep;let r,i,o,a,s,u,l,c,d=!1,h=null,f=null,p=0,g=!1,m=0,v=0;const y=t=>{let n;this.previousSuggestionValue!==t.value&&(this.previousSuggestionValue=t.value,PreviousSuggestion=t,e[t.value]?w(e[t.value]):(n=$.ajax({url:location.protocol+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",data:{text:t.value,magicKey:t.data,f:"json"}}),n.done(e=>{const t=e.locations[0];t?w(t.feature.geometry):alert("An unexpected error occurred. Please try a different search string.")})))},w=e=>{const t={lat:Math.round2(e.y,4),lon:Math.round2(e.x,4)};D(t),localStorage.setItem("TwcQuery",$("#txtAddress").val())},x=()=>{const e=$(window).width(),t=$(window).height(),n=T();let c,d,h,f,p,g,m;n&&(e/t>=1.583333333333333?(i.hide(),a.hide(),s.show(),u.show(),o.attr("style","width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),h=(e-1.3333333333333333*t)/2,h<60&&(h=60),s.attr("style","width:"+h+"px; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),s.css("visibility","visible"),f=(e-1.3333333333333333*t)/2,f<60&&(f=60),u.attr("style","width:"+f+"px; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),u.css("visibility","visible"),c=e-h-f,$("#display").attr("style","width:"+c+"px; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;")):(i.show(),a.show(),s.hide(),u.hide(),m=0,p=(t-.75*(e-0))/2,p<0&&(p=0),i.attr("style","width:100%; height:"+p+"px; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),g=(t-.75*(e-0))/2,g<30&&(g=30),a.attr("style","width:100%; height:"+g+"px; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),a.css("visibility","visible"),d=t-p-g,$("#display").attr("style","width:100%; height:"+d+"px; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),o.attr("style","width:100%; height:"+d+"px; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"))),n||(i.hide(),a.hide(),s.hide(),u.hide(),r.attr("style",""),o.attr("style",""),$(window).off("resize",x)),n?($("body").css("overflow","hidden"),$(".ToggleFullScreen").val("Exit Full Screen"),C()||F()):($("body").css("overflow",""),$(".ToggleFullScreen").val("Full Screen")),l.show()},b=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation,A=screen.unlockOrientation||screen.mozUnlockOrientation||screen.msUnlockOrientation||screen.orientation&&screen.orientation.unlock,S=()=>{if(T()){if(r.attr("style","position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"),x(),$(window).on("resize",x),b)try{b("landscape-primary")}catch(e){console.log("Unable to lock screen orientation.")}}else if(r.attr("style",""),o.attr("style",""),$(window).off("resize",x),x(),A)try{A()}catch(e){console.log("Unable to unlock screen orientation.")}},T=()=>g||C()||window.innerHeight===screen.height||window.innerHeight===screen.height-1,C=()=>g?document.body:document.fullScreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,k=()=>(T()?I():F(),navigation.isPlaying()?n.enable():n.disable(),H(),!1),F=()=>{const e=document.body,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t?t.call(e,{navigationUI:"hide"}):(window.scrollTo(0,0),g=!0,$(window).resize()),H()},I=()=>{g&&(g=!1,$(window).resize()),document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},E=()=>(B("navButton","menu"),H(),!1),D=e=>{e&&(D.latLon=e);const t=D.latLon;if(!t)return;$("#txtAddress").blur(),V(),h=null,L(),B("latLon",t),x(),$("#chkScrollText").is(":checked")&&B("assignScrollText",c.val()),B("units",$("input[type='radio'][name='radUnits']:checked").val());const n=$("#display");n.on("mousemove",P),n.on("mousedown",P),n.on("keydown",R);const r=(e,t)=>{switch(t){case"left":M();break;case"right":default:O()}};n.swipe({swipeRight:r,swipeLeft:r})},L=()=>{let e="(None)";if(h)switch($("input[type='radio'][name='radUnits']:checked").val()){case"ENGLISH":e=h.toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"});break;default:e=h.toLocaleString("en-GB",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"})}$("#spanLastRefresh").html(e),h&&$("#chkAutoRefresh").is(":checked")&&U()},N=()=>(D(),H(),!1),M=()=>(B("navButton","next"),H(),!1),O=()=>(B("navButton","previous"),H(),!1),_=()=>{const e=$(window);e.height()!==m&&e.width()!==v&&(m=e.height(),v=e.width(),B("navButton","reset"),H())};let j=null;const H=()=>{$(document.activeElement).blur(),$("body").removeClass("HideCursor"),s.fadeIn2(),u.fadeIn2(),a.fadeIn2(),j&&(window.clearTimeout(j),j=null),j=window.setTimeout(()=>{T()&&($("body").addClass("HideCursor"),s.fadeOut2(),u.fadeOut2(),a.fadeOut2())},2e3)},P=e=>{T()&&0===e.originalEvent.movementX&&0===e.originalEvent.movementY&&0===e.originalEvent.buttons||H()},R=e=>{const t=e.keyCode||e.which;if(T()||document.activeElement===document.body)switch(t){case 32:return q(),!1;case 39:case 34:return M(),!1;case 37:case 33:return O(),!1;case 36:return E(),!1;case 48:return N(),!1;case 70:return k(),!1}};$.fn.fadeIn2=function(){const e=this;let t=0,n=null;if("0"===e.css("opacity"))return e.css("visibility","visible"),e.css("opacity","0.0"),n=window.setInterval(()=>{t+=.1,t=Math.round2(t,1),e.css("opacity",t.toString()),1===t&&(e.css("visibility","visible"),window.clearInterval(n))},50),e},$.fn.fadeOut2=function(){const e=this;let t=1,n=null;if("1"===e.css("opacity"))return e.css("visibility","visible"),e.css("opacity","1.0"),n=window.setInterval(()=>{t-=.2,t=Math.round2(t,1),e.css("opacity",t.toString()),0===t&&(e.css("visibility","hidden"),window.clearInterval(n))},50),e},Math.round2=(e,t)=>Number(Math.round(e+"e"+t)+"e-"+t);const q=()=>(B("navButton","playToggle"),H(),!1),B=(e,t={})=>{navigation.message({type:e,message:t})},U=()=>{if(f)return;p=0;const e=()=>{p+=500;let e=t-p;e<0&&(e=0);const n=new Date(e);$("#spanRefreshCountDown").html((n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())),p>=t&&D()};f=window.setInterval(e,500),e()},V=()=>{f&&(window.clearInterval(f),$("#spanRefreshCountDown").html("--:--"),f=null)},z=async()=>{if(!navigator.geolocation)return;const e=await new Promise(e=>{navigator.geolocation.getCurrentPosition(e)}),t=e.coords.latitude,n=e.coords.longitude;let r;try{r=await $.ajax({url:location.protocol+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode",data:{location:n+","+t,distance:1e3,f:"json"}})}catch(e){console.error("Unable to fetch reverse geocode"),console.error(e.status,e.responseJSONe)}const i=`${r.address.Postal}, ${r.address.City}, ${states.getTwoDigitCode(r.address.Region)}, ${r.address.CountryCode}`;$("#txtAddress").val(i).blur().focus(),localStorage.setItem("TwcQuery",i)},W=e=>{$("#spanCity").text(e.city+", "),$("#spanState").text(e.state),$("#spanStationId").text(e.stationId),$("#spanRadarId").text(e.radarId),$("#spanZoneId").text(e.zoneId)},G=()=>(Z(),!1),Z=e=>{const t=$(e.target);c.blur();let n=c.val();localStorage.setItem("TwcScrollText",n);const r=t.is(":checked");localStorage.setItem("TwcScrollTextChecked",r),!1===t.is(":checked")&&(n=""),B("assignScrollText",n)};return{init:()=>{m=$(window).height(),v=$(window).width(),r=$("#divTwc"),i=$("#divTwcTop"),o=$("#divTwcMiddle"),a=$("#divTwcBottom"),s=$("#divTwcLeft"),u=$("#divTwcRight"),l=$("#divTwcNavContainer"),c=$("#txtScrollText"),$("#frmScrollText").on("submit",G),c.on("focus",e=>{$(e.target).select()}),$("#chkScrollText").on("change",Z),$("#txtAddress").on("focus",e=>{$(e.target).select()}).focus(),$(".NavigateMenu").on("click",E),$(".NavigateRefresh").on("click",N),$(".NavigateNext").on("click",M),$(".NavigatePrevious").on("click",O),$(".NavigatePlay").on("click",q),$("#btnGetGps").on("click",z),$(window).on("resize",S),$(window).on("resize",_),$(document).on("mousemove",P),$(document).on("mousedown",P),r.on("mousedown",P),$(document).on("keydown",R),document.addEventListener("touchmove",e=>{g&&e.preventDefault()}),$(".ToggleFullScreen").on("click",k),x();const e=["Land Features","Bay","Channel","Cove","Dam","Delta","Gulf","Lagoon","Lake","Ocean","Reef","Reservoir","Sea","Sound","Strait","Waterfall","Wharf","Amusement Park","Historical Monument","Landmark","Tourist Attraction","Zoo","College","Beach","Campground","Golf Course","Harbor","Nature Reserve","Other Parks and Outdoors","Park","Racetrack","Scenic Overlook","Ski Resort","Sports Center","Sports Field","Wildlife Reserve","Airport","Ferry","Marina","Pier","Port","Resort","Postal","Populated Place"].join(",");$("#frmGetLatLng #txtAddress").devbridgeAutocomplete({serviceUrl:location.protocol+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest",deferRequestBy:300,paramName:"text",params:{f:"json",countryCode:"USA",category:e,maxSuggestions:10},dataType:"json",transformResult:e=>(d&&(d=!1,window.setTimeout(()=>{$(t.suggestionsContainer.children[0]).click()},1)),{suggestions:$.map(e.suggestions,(function(e){return{value:e.text,data:e.magicKey}}))}),minChars:3,showNoSuggestionNotice:!0,noSuggestionNotice:"No results found. Please try a different search string.",onSelect:y,width:490});const t=$("#frmGetLatLng #txtAddress").devbridgeAutocomplete();$("#frmGetLatLng").submit(()=>(t.suggestions[0]&&$(t.suggestionsContainer.children[0]).click(),!1));const n=localStorage.getItem("TwcQuery");n&&(d=!0,$("#txtAddress").val(n).blur().focus());const f=localStorage.getItem("TwcPlay");null!==f&&"true"!==f||B("navButton","play");const p=localStorage.getItem("TwcScrollText");p&&c.val(p);const w=localStorage.getItem("TwcScrollTextChecked");w&&"true"===w?$("#chkScrollText").prop("checked","checked"):$("#chkScrollText").prop("checked",""),$("#btnClearQuery").on("click",()=>{$("#spanCity").text(""),$("#spanState").text(""),$("#spanStationId").text(""),$("#spanRadarId").text(""),$("#spanZoneId").text(""),$("#chkScrollText").prop("checked",""),c.val(""),localStorage.removeItem("TwcScrollText"),localStorage.removeItem("TwcScrollTextChecked"),$("#chkAutoRefresh").prop("checked","checked"),localStorage.removeItem("TwcAutoRefresh"),$("#radEnglish").prop("checked","checked"),localStorage.removeItem("TwcUnits"),localStorage.removeItem("TwcPlay"),B("navButton","play"),localStorage.removeItem("TwcQuery")});const b=localStorage.getItem("TwcUnits");b&&"ENGLISH"!==b?"METRIC"===b&&$("#radMetric").prop("checked","checked"):$("#radEnglish").prop("checked","checked"),$("input[type='radio'][name='radUnits']").on("change",e=>{const t=$(e.target).val();localStorage.setItem("TwcUnits",t),L(),B("units",t)}),$("#chkAutoRefresh").on("change",e=>{const t=$(e.target).is(":checked");h&&(t?U():V()),localStorage.setItem("TwcAutoRefresh",t)});const A=localStorage.getItem("TwcAutoRefresh");A&&"true"!==A?$("#chkAutoRefresh").prop("checked",""):$("#chkAutoRefresh").prop("checked","checked")},message:e=>{if(e.type)switch(e.type){case"loaded":h=new Date,L();break;case"weatherParameters":W(e.message);break;case"isPlaying":localStorage.setItem("TwcPlay",navigation.isPlaying()),navigation.isPlaying()?(n.enable(),$("img[src='images/nav/ic_play_arrow_white_24dp_1x.png']").attr("title","Pause"),$("img[src='images/nav/ic_play_arrow_white_24dp_1x.png']").attr("src","images/nav/ic_pause_white_24dp_1x.png"),$("img[src='images/nav/ic_play_arrow_white_24dp_2x.png']").attr("title","Pause"),$("img[src='images/nav/ic_play_arrow_white_24dp_2x.png']").attr("src","images/nav/ic_pause_white_24dp_2x.png")):(n.disable(),$("img[src='images/nav/ic_pause_white_24dp_1x.png']").attr("title","Play"),$("img[src='images/nav/ic_pause_white_24dp_1x.png']").attr("src","images/nav/ic_play_arrow_white_24dp_1x.png"),$("img[src='images/nav/ic_pause_white_24dp_2x.png']").attr("title","Play"),$("img[src='images/nav/ic_pause_white_24dp_2x.png']").attr("src","images/nav/ic_play_arrow_white_24dp_2x.png"));break;default:console.error("Unknown event '"+e.eventType)}}}})();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.SuperGif=t()}(this,(function(){var e=function(e){return e.reduce((function(e,t){return 2*e+t}),0)},t=function(e){for(var t=[],n=7;n>=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<y.length-1&&(r=0),r<0&&(r=0),e=w[r],C.getContext("2d").putImageData(y[r].data,e.x,e.y),S.globalCompositeOperation="copy",S.drawImage(C,0,0),o.canvas.getContext("2d").drawImage(A,o.x,o.y)};return{init:function(){s||(o.c_w&&o.c_h||S.scale(W(),W()),o.auto_play?u():(r=0,l()))},step:u,play:function(){m=!0,u()},pause:function(){m=!1},playing:m,move_relative:a,current_frame:function(){return r},length:function(){return y.length},move_to:function(e){r=e,l()}}}(),q=function(e){H(t.pos,t.data.length,e)},B=function(){},U=function(e,t){return function(n){e(n),q(t)}},V={hdr:U((function(e){j((i=e).width,i.height)})),gce:U((function(e){R(),O(),l=e.transparencyGiven?e.transparencyIndex:null,c=e.delayTime,d=e.disposalMethod})),com:U(B),app:{NETSCAPE:U(B)},img:U((function(e){p||(p=C.getContext("2d"));var t=y.length,n=e.lctFlag?e.lct:i.gct;t>0&&(3===f?null!==h?p.putImageData(y[h].data,0,0):p.clearRect(g.leftPos,g.topPos,g.width,g.height):h=t-1,2===f&&p.clearRect(g.leftPos,g.topPos,g.width,g.height));var r=p.getImageData(e.leftPos,e.topPos,e.width,e.height);e.pixels.forEach((function(e,t){e!==l&&(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),v||(S.scale(W(),W()),v=!0),E&&(S.drawImage(C,0,0),E=o.auto_play),g=e}),!0),eof:function(e){R(),q(!1),o.c_w&&o.c_h||(A.width=i.width*W(),A.height=i.height*W()),$.init(),u=!1,Z&&Z(b)}},z=function(){var e=b.parentNode,t=document.createElement("div");A=document.createElement("canvas"),S=A.getContext("2d"),T=document.createElement("div"),C=document.createElement("canvas"),t.width=A.width=b.width,t.height=A.height=b.height,T.style.minWidth=b.width+"px",t.className="jsgif",T.className="jsgif_toolbar",t.style.display="none",t.appendChild(A),t.appendChild(T),e&&(e.insertBefore(t,b),e.removeChild(b)),o.c_w&&o.c_h&&j(o.c_w,o.c_h),G=!0},W=function(){return o.max_width&&i&&i.width>o.max_width?o.max_width/i.width:o.max_height&&i&&i.height>o.max_height?o.max_height/i.height:1},G=!1,Z=!1,Y=function(e){return!u&&(Z=e||!1,u=!0,y=[],O(),h=null,f=null,p=null,g=null,!0)};return{play:$.play,pause:$.pause,move_relative:$.move_relative,move_to:$.move_to,get_playing:function(){return m},get_canvas:function(){return A},get_canvas_scale:function(){return W()},get_loading:function(){return u},get_auto_play:function(){return o.auto_play},get_length:function(){return $.length()},get_current_frame:function(){return $.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||z()},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||z(),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 o.x},setX:function(e){o.x=e},getY:function(){return o.y},setY:function(e){o.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 c=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}(c),h=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(c),f=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(c),p=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c),g=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(c),m=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c),v=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(c),y="numeric",w="short",x="long",b={year:y,month:y,day:y},A={year:y,month:w,day:y},S={year:y,month:x,day:y},T={year:y,month:x,day:y,weekday:x},C={hour:y,minute:y},k={hour:y,minute:y,second:y},F={hour:y,minute:y,second:y,timeZoneName:w},I={hour:y,minute:y,second:y,timeZoneName:x},E={hour:y,minute:y,hour12:!1},D={hour:y,minute:y,second:y,hour12:!1},L={hour:y,minute:y,second:y,hour12:!1,timeZoneName:w},N={hour:y,minute:y,second:y,hour12:!1,timeZoneName:x},M={year:y,month:y,day:y,hour:y,minute:y},O={year:y,month:y,day:y,hour:y,minute:y,second:y},_={year:y,month:w,day:y,hour:y,minute:y},j={year:y,month:w,day:y,hour:y,minute:y,second:y},H={year:y,month:w,day:y,weekday:w,hour:y,minute:y},P={year:y,month:x,day:y,hour:y,minute:y,timeZoneName:w},R={year:y,month:x,day:y,hour:y,minute:y,second:y,timeZoneName:w},$={year:y,month:x,day:y,weekday:x,hour:y,minute:y,timeZoneName:x},q={year:y,month:x,day:y,weekday:x,hour:y,minute:y,second:y,timeZoneName:x};function B(e){return void 0===e}function U(e){return"number"==typeof e}function V(e){return"number"==typeof e&&e%1==0}function z(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function W(){return!B(Intl.DateTimeFormat.prototype.formatToParts)}function G(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Z(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 Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function J(e,t,n){return V(e)&&t<=e&&e<=n}function X(e,t){return void 0===t&&(t=2),e.toString().lengthKt.indexOf(d)&&nn(this.matrix,s,g,o,d)}else U(s[d])&&(a[d]=s[d])}for(var m in a)0!==a[m]&&(o[i]+=m===i?a[m]:a[m]/this.matrix[i][m]);return tn(this,{values:o},!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:l;a.push(e.fromDateTimes(s,c)),s=c,u+=1}return a},t.splitBy=function(t){var n=an(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i,o=this.s,a=[];o+this.e?this.e:r,a.push(e.fromDateTimes(o,i)),o=i;return a},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,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=l((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var c=r.value;i=1===(o+="s"===c.type?1:-1)?c.time:(i&&+i!=+c.time&&a.push(e.fromDateTimes(i,c.time)),null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;iae(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:a},fe(e))}function Ln(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Fn(n,1,4),a=re(n),s=7*r+i-o-3;s<1?s+=re(t=n-1):athis.valueOf(),s=function(e,t,n,r){var i,o=function(e,t,n){for(var r,i,o={},a=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=cn(e,t);return(n-n%7)/7}],["days",cn]];athis.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?ae(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return b}},{key:"DATE_MED",get:function(){return A}},{key:"DATE_FULL",get:function(){return S}},{key:"DATE_HUGE",get:function(){return T}},{key:"TIME_SIMPLE",get:function(){return C}},{key:"TIME_WITH_SECONDS",get:function(){return k}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return I}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return D}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return N}},{key:"DATETIME_SHORT",get:function(){return M}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return O}},{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 R}},{key:"DATETIME_HUGE",get:function(){return $}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return q}}]),e}();function rr(e){if(nr.isDateTime(e))return e;if(e&&e.valueOf&&U(e.valueOf()))return nr.fromJSDate(e);if(e&&"object"==typeof e)return nr.fromObject(e);throw new m("Unknown datetime argument: "+e+", of type "+typeof e)}return e.DateTime=nr,e.Duration=on,e.FixedOffsetZone=Be,e.IANAZone=$e,e.Info=ln,e.Interval=un,e.InvalidZone=Ue,e.LocalZone=_e,e.Settings=Je,e.Zone=Me,e}({});!function(){"use strict";var e=Math.PI,t=Math.sin,n=Math.cos,r=Math.tan,i=Math.asin,o=Math.atan2,a=Math.acos,s=e/180,u=864e5,l=2440588,c=2451545;function d(e){return new Date((e+.5-l)*u)}function h(e){return function(e){return e.valueOf()/u-.5+l}(e)-c}var f=23.4397*s;function p(e,i){return o(t(e)*n(f)-r(i)*t(f),n(e))}function g(e,r){return i(t(r)*n(f)+n(r)*t(f)*t(e))}function m(e,i,a){return o(t(e),n(e)*t(i)-r(a)*n(i))}function v(e,r,o){return i(t(r)*t(o)+n(r)*n(o)*n(e))}function y(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:g(t,0),ra:p(t,0)}}var A={getPosition:function(e,t,n){var r=s*-n,i=s*t,o=h(e),a=b(o),u=y(o,r)-a.ra;return{azimuth:m(u,i,a.dec),altitude:v(u,i,a.dec)}}},S=A.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];A.addTime=function(e,t,n){S.push([e,t,n])};var T=9e-4;function C(t,n,r){return T+(t+n)/(2*e)+r}function k(e,n,r){return c+e+.0053*t(n)-.0069*t(2*r)}function F(e,r,i,o,s,u,l){return k(C(function(e,r,i){return a((t(e)-t(r)*t(i))/(n(r)*n(i)))}(e,i,o),r,s),u,l)}function I(e){var r=s*(134.963+13.064993*e),i=s*(93.272+13.22935*e),o=s*(218.316+13.176396*e)+6.289*s*t(r),a=5.128*s*t(i),u=385001-20905*n(r);return{ra:p(o,a),dec:g(o,a),dist:u}}function E(e,t){return new Date(e.valueOf()+t*u/24)}A.getTimes=function(t,n,r,i){var o,a,u,l,c,f=s*-r,p=s*n,m=function(e){return-2.076*Math.sqrt(e)/60}(i=i||0),v=function(t,n){return Math.round(t-T-n/(2*e))}(h(t),f),y=C(0,f,v),b=w(y),A=x(b),I=g(A,0),E=k(y,b,A),D={solarNoon:d(E),nadir:d(E-.5)};for(o=0,a=S.length;o=0&&(m=h-(y=Math.sqrt(p)/(2*Math.abs(c))),v=h+y,Math.abs(m)<=1&&g++,Math.abs(v)<=1&&g++,m<-1&&(m=v)),1===g?x<0?u=b+m:l=b+m:2===g&&(u=b+(f<0?v:m),l=b+(f<0?m:v)),!u||!l);b+=2)x=a;var S={};return u&&(S.rise=E(i,u)),l&&(S.set=E(i,l)),u||l||(S[f>0?"alwaysUp":"alwaysDown"]=!0),S},"object"==typeof exports&&"undefined"!=typeof module?module.exports=A:"function"==typeof define&&define.amd?define(A):window.SunCalc=A}();const draw=(()=>{const e=(e,t,n,r,i,o,a,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(a,i,o),e.fillStyle=r,e.fillText(a,i,o),e.fillStyle="",e.strokeStyle="",e.shadowOffsetX=0,e.shadowOffsetY=0};return{horizontalGradient:(e,t,n,r,i,o,a)=>{const s=e.createLinearGradient(0,n,0,i);s.addColorStop(0,o),s.addColorStop(.4,a),s.addColorStop(.6,a),s.addColorStop(1,o),e.fillStyle=s,e.fillRect(t,n,r-t,i-n)},horizontalGradientSingle:(e,t,n,r,i,o,a)=>{const s=e.createLinearGradient(0,n,0,i);s.addColorStop(0,o),s.addColorStop(1,a),e.fillStyle=s,e.fillRect(t,n,r-t,i-n)},triangle:(e,t,n,r,i,o,a,s)=>{e.fillStyle=t,e.beginPath(),e.moveTo(n,r),e.lineTo(i,o),e.lineTo(a,s),e.fill()},titleText:(t,n,r)=>{const i="Star4000",o="24pt",a="#ffff00";let s=55;r?(e(t,i,o,a,170,s,n,3),s+=30,e(t,i,o,a,170,s,r,3),s+=30):(s+=15,e(t,i,o,a,170,s,n,3),s+=30)},text:e,box:(e,t,n,r,i,o)=>{e.fillStyle=t,e.fillRect(n,r,i,o)},border:(e,t,n,r,i,o,a)=>{e.strokeStyle=t,e.lineWidth=n,e.strokeRect(r,i,o,a)},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"),disabled:Symbol("disabled")};class WeatherDisplay{constructor(e,t,n,r){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.createCanvas(t),"progress"!==t&&this.addCheckbox(r),this.enabled?this.setStatus(STATUS.loading):this.setStatus(STATUS.disabled),this.startNavCount()}addCheckbox(e=!0){let t=window.localStorage.getItem(this.elemId+"Enabled");null===t&&(t=e),this.enabled="true"===t||!0===t,window.localStorage.setItem(this.elemId+"Enabled",this.enabled);const n=document.createElement("template");n.innerHTML=``,n.content.firstChild.addEventListener("change",e=>this.checkboxChange(e));document.getElementById("enabledDisplays").appendChild(n.content.firstChild)}checkboxChange(e){this.enabled=e.target.checked,window.localStorage.setItem(this.elemId+"Enabled",this.enabled),this.getData()}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;const r=document.createElement("template");r.innerHTML=`