!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,e,n){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=323)}([function(t,e,n){"use strict";e.a={state:{baseURL:"https://api.met.ie/api/",theDateOnMap:"",mapType:"",mapSrc:"",slider:"",map:"",currentLayers:[],currentSelectedArea:"",currentStation:"",currentStationName:"",seaAreaMapType:"",selectedBuoy:"",currentLatitude:"",currentLongitude:"",currentCity:"",currentRegion:"",currentCounty:""}}},function(t,e,n){"use strict";var i=n(18),r=function(){};r.setUserLocation=function(t){if(r.loadGraphsFromPresetLocation(t),t.doesCookieExist("currentLocationManuallySetTwoFour")){var e=t.sharedState.recentLocations,n=e[0],i=n.city;setTimeout(function(){jQuery(".select2-selection__rendered").text(i),jQuery(".select2-selection__rendered").attr("name","met-header-search-bar"),jQuery(".select2-selection__rendered").attr("aria-label","Location: "+i)},1e3)}else r.askUserLocation(t)},r.loadGraphsFromPresetLocation=function(t){r.reloadHomepageGraphs(t),r.reloadHeaderGraphs(t)},r.addLocationToRecentLocations=function(t,e){var n=t.sharedState.recentLocations;"string"==typeof n&&(n=[]);var i=!1,r=0;n.length>0&&n.forEach(function(t,n){t.city==e.city&&(i=!0,r=n)}),i&&n.splice(r,1),n.unshift(e),n=n.slice(0,4),t.sharedState.recentLocations=n,t.setCookie("mostRecentLocations",JSON.stringify(n)),t.setCookie("currentLocationManuallySetTwoFour",JSON.stringify(n))},r.resetLocationWhenUserClickedOnTheMap=function(t,e,n,i,a,o,s){void 0===a&&(a=""),void 0===o&&(o=""),void 0===s&&(s=""),r.resetCityAndRegion(t)},r.resetLocationWhenUserUsedTheLocationSearchOrClickedASavedLocation=function(t,e,n,a,o,s,l){void 0===o&&(o=""),void 0===s&&(s=""),void 0===l&&(l=""),t.setCookieAndSharedState("currentCounty",o),t.setCookieAndSharedState("currentRegion",s),t.setCookieAndSharedState("currentCity",a);var u=new i.a(a,s,o,t.sharedState.currentLatitude,t.sharedState.currentLongitude);r.addLocationToRecentLocations(t,u);var c="https://www.met.ie/weather-forecast/"+l+"#forecasts",h=t.translateLink(c);""!=l&&(window.location.href=h)},r.resetLocation=function(t,e,n,i,a,o,s){void 0===a&&(a=""),void 0===o&&(o=""),void 0===s&&(s=""),"Dublin"==a&&(o="Dublin"),t.sharedState.currentLatitude=e,t.sharedState.currentLongitude=n,t.setCookieAndSharedState("currentLocationManuallySet","set"),t.setCookieAndSharedState("currentCity",i),r.updateSharedState(t,e,n),r.reloadHomepageGraphs(t),t.callChildComponentMethod("regional-forecast","getRegionalWeather"),t.callChildComponentMethod("header-warnings","getHeaderWarnings"),""===i?r.resetLocationWhenUserClickedOnTheMap(t,e,n,i,a,o,s):r.resetLocationWhenUserUsedTheLocationSearchOrClickedASavedLocation(t,e,n,i,a,o,s),r.recentreHomepageMap(t);var l=["/v2021/home","/v2021/home/","home.html","/home.html","/","/ga","/ga/"],u=window.location.pathname;l.indexOf(u)>-1&&window.location.replace("/#forecasts")},r.resetCityAndRegion=function(t){var e="https://prodapi.metweb.ie/location/reverse/"+t.sharedState.currentLatitude+"/"+t.sharedState.currentLongitude;t.$http.get(e).then(function(e){var n=e.data.province;"Dublin"==e.data.county&&(n="Dublin");var i=Date.now(),a={id:i,city:e.data.city,region:e.data.province,county:e.data.county,lat:t.sharedState.currentLatitude,lng:t.sharedState.currentLongitude};jQuery(".select2-selection__rendered").text(e.data.city),r.addLocationToRecentLocations(t,a),t.setCookieAndSharedState("currentCounty",e.data.county),t.setCookieAndSharedState("currentRegion",n),t.setCookieAndSharedState("currentCity",e.data.city),t.callChildComponentMethod("regional-forecast","getRegionalWeather"),t.callChildComponentMethod("short-weather","getShortWeatherByArea"),t.callChildComponentMethod("header-warnings","getHeaderWarnings")},function(t){})},r.reloadHeaderGraphs=function(t){t.callChildComponentMethod("short-weather","getShortWeatherByArea"),t.callChildComponentMethod("header-warnings","getHeaderWarnings")},r.reloadHomepageGraphs=function(t){"iOSHomePage"===window.className&&t.callChildComponentMethod("midday-outlook","getSevenDayWeather"),"Home"===window.className&&(t.callChildComponentMethod("twentyfour-hour-forecast","getWeather"),t.callChildComponentMethod("midday-outlook","getSevenDayWeather"),t.callChildComponentMethod("accessible-outlook","getSevenDayWeather"),t.callChildComponentMethod("regional-forecast","getRegionalWeather"),t.callChildComponentMethod("homepage-warnings","getWarnings")),"AccessibleHomepage"===window.className&&(t.callChildComponentMethod("accessible-outlook","getSevenDayWeather"),t.callChildComponentMethod("accessible-regional-forecast","getRegionalWeather"))},r.reloadRegionalForecast=function(t){t.callChildComponentMethod("regional-forecast","getRegionalWeather")},r.recentreHomepageMap=function(t){"Home"===window.className&&t.callChildComponentMethod("ol-map","recentreMap")},r.updateSharedState=function(t,e,n){t.setCookieAndSharedState("currentLatitude",e),t.setCookieAndSharedState("currentLongitude",n)},r.askUserLocation=function(t){"undefined"==typeof navigator.geolocation?(r.updateSharedState(t,"53.375760","-6.270131"),r.reloadHomepageGraphs(t),r.reloadHeaderGraphs(t),r.resetCityAndRegion(t),t.setCookieAndSharedState("currentLocationManuallySet","set")):navigator.geolocation.getCurrentPosition(function(e){r.updateSharedState(t,e.coords.latitude,e.coords.longitude),r.reloadHomepageGraphs(t),r.reloadHeaderGraphs(t),r.resetCityAndRegion(t),t.setCookieAndSharedState("currentLocationManuallySet","set")},function(e){r.resetCityAndRegion(t),r.reloadHeaderGraphs(t),r.reloadHomepageGraphs(t),r.reloadRegionalForecast(t)})},e.a=r},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function i(t){return"boolean"==typeof t}function r(t){return null===t}function a(t){return null==t}function o(t){return"number"==typeof t}function s(t){return"string"==typeof t}function l(t){return"symbol"==typeof t}function u(t){return void 0===t}function c(t){return"[object RegExp]"===v(t)}function h(t){return"object"==typeof t&&null!==t}function d(t){return"[object Date]"===v(t)}function p(t){return"[object Error]"===v(t)||t instanceof Error}function f(t){return"function"==typeof t}function m(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function v(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=i,e.isNull=r,e.isNullOrUndefined=a,e.isNumber=o,e.isString=s,e.isSymbol=l,e.isUndefined=u,e.isRegExp=c,e.isObject=h,e.isDate=d,e.isError=p,e.isFunction=f,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(e,n(9).Buffer)},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function o(){m&&p&&(m=!1,p.length?f=p.concat(f):v=-1,f.length&&s())}function s(){if(!m){var t=r(o);m=!0;for(var e=f.length;e;){for(p=f,f=[];++v1)for(var n=1;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function g(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Y(e).length;default:if(r)return G(e).length;n=(""+n).toLowerCase(),r=!0}}function y(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return D(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function w(e,n,i,r,a){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=a?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(a)return-1;i=e.length-1}else if(i<0){if(!a)return-1;i=0}if("string"==typeof n&&(n=t.from(n,r)),t.isBuffer(n))return 0===n.length?-1:x(e,n,i,r,a);if("number"==typeof n)return n=255&n,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,n,i):Uint8Array.prototype.lastIndexOf.call(e,n,i):x(e,[n],i,r,a);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){function a(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,s=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}var u;if(r){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var h=!0,d=0;dr&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o239?4:a>223?3:a>191?2:1;if(r+s<=n){var l,u,c,h;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[r+1],128===(192&l)&&(h=(31&a)<<6|63&l,h>127&&(o=h));break;case 3:l=t[r+1],u=t[r+2],128===(192&l)&&128===(192&u)&&(h=(15&a)<<12|(63&l)<<6|63&u,h>2047&&(h<55296||h>57343)&&(o=h));break;case 4:l=t[r+1],u=t[r+2],c=t[r+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(h=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c,h>65535&&h<1114112&&(o=h))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=s}return E(i)}function E(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",i=0;ii)&&(n=i);for(var r="",a=e;an)throw new RangeError("Trying to access beyond buffer length")}function B(e,n,i,r,a,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>a||ne.length)throw new RangeError("Index out of range")}function I(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function j(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function N(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(t,e,n,i,r){return r||N(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,r){return r||N(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,n,i,52,8),n+8}function H(t){if(t=U(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var n,i=t.length,r=null,a=[],o=0;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function V(t){for(var e=[],n=0;n>8,r=n%256,a.push(r),a.push(i);return a}function Y(t){return Z.toByteArray(H(t))}function X(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function K(t){return t!==t}var Z=n(148),J=n(230),Q=n(217);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:r(),e.kMaxLength=a(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return s(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return u(null,t,e,n)},t.allocUnsafe=function(t){return c(null,t)},t.allocUnsafeSlow=function(t){return c(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var i=e.length,r=n.length,a=0,o=Math.min(i,r);a0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,i,r,a){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===i&&(i=e?e.length:0), void 0===r&&(r=0),void 0===a&&(a=this.length),n<0||i>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&n>=i)return 0;if(r>=a)return-1;if(n>=i)return 1;if(n>>>=0,i>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,s=i-n,l=Math.min(o,s),u=this.slice(r,a),c=e.slice(n,i),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var i=this.length;e=~~e,n=void 0===n?i:~~n,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),n<0?(n+=i,n<0&&(n=0)):n>i&&(n=i),n0&&(r*=256);)i+=this[t+--e]*r;return i},t.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||F(t,e,this.length);for(var i=this[t],r=1,a=0;++a=r&&(i-=Math.pow(2,8*e)),i},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||F(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},t.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),J.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),J.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),J.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),J.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=0|e,n=0|n,!i){var r=Math.pow(2,8*n)-1;B(this,t,e,n,r,0)}var a=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+a]=t/o&255;return e+n},t.prototype.writeUInt8=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):I(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):I(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):j(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):j(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=0|e,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+n},t.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=0|e,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},t.prototype.writeInt8=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):I(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):I(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):j(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,i){return e=+e,n=0|n,i||B(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):j(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return $(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return $(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},t.prototype.copy=function(e,n,i,r){if(i||(i=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n=0;--a)e[a+n]=this[a+i];else if(o<1e3||!t.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var o;if("number"==typeof e)for(o=n;o=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=u++,i=!(arguments.length<2)&&s.call(arguments,1);return l[n]=!0,a(function(){l[n]&&(i?t.apply(null,i):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof i?i:function(t){delete l[t]}}).call(e,n(11).setImmediate,n(11).clearImmediate)},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function r(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!r(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,r,s,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(n=this._events[t],o(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,l=0;l0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,r,o,s;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(a(n)){for(s=o;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";function i(t){return this instanceof i?(u.call(this,t),c.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",r)):new i(t)}function r(){this.allowHalfOpen||this._writableState.ended||o.nextTick(a,this)}function a(t){t.end()}var o=n(7),s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=i;var l=n(4);l.inherits=n(2);var u=n(29),c=n(31);l.inherits(i,u);for(var h=s(c.prototype),d=0;d=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),e+=t.toString(this.encoding,0,r);var r=e.length-1,i=e.charCodeAt(r);if(i>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,r)}return e},u.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},u.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;e+=i.slice(0,n).toString(r)}return e}},function(t,e,n){"use strict";(function(e){function i(t,e){!a.isUndefined(t)&&a.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function r(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(22):"undefined"!=typeof e&&(t=n(22)),t}var a=n(6),o=n(145),s={"Content-Type":"application/x-www-form-urlencoded"},l={adapter:r(),transformRequest:[function(t,e){return o(e,"Content-Type"),a.isFormData(t)||a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)?t:a.isArrayBufferView(t)?t.buffer:a.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):a.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(t){l.headers[t]={}}),a.forEach(["post","put","patch"],function(t){l.headers[t]=a.merge(s)}),t.exports=l}).call(e,n(5))},function(t,e,n){"use strict";var i=function(t,e,n,i,r){this.city=t,this.region=e,this.county=n,this.lat=i,this.lng=r};e.a=i},function(t,e,n){"use strict";var i=function(){};i.setBounds=function(t){var e=new OpenLayers.Bounds((-22.49536725),48.9914831,7.27527736,61.61261098).transform(t.fromProjection,t.toProjection);t.vue.sharedState.map.restrictedExtent=e,t.vue.sharedState.map.zoomTo(6),t.maxZoom=6,t.minZoom=6,t.vue.sharedState.map.setCenter(new OpenLayers.LonLat((-8.370385),53.50521).transform(t.fromProjection,t.toProjection),6),$(".olControlZoom").hide()},e.a=i},function(t,e,n){"use strict";function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function r(t,e,n){if(t&&u.isObject(t)&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}function a(t){return u.isString(t)&&(t=r(t)),t instanceof i?t.format():i.prototype.format.call(t)}function o(t,e){return r(t,!1,!0).resolve(e)}function s(t,e){return t?r(t,!1,!0).resolveObject(e):e}var l=n(238),u=n(261);e.parse=r,e.resolve=o,e.resolveObject=s,e.format=a,e.Url=i;var c=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(f),v=["%","/","?",";","#"].concat(m),g=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=n(36);i.prototype.parse=function(t,e,n){if(!u.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),r=i!==-1&&i127?"x":R[B];if(!F.match(b)){var j=D.slice(0,T),N=D.slice(T+1),$=R.match(w);$&&(j.push($[1]),N.unshift($[2])),N.length&&(s="/"+N.join(".")+s),this.hostname=j.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=l.toASCII(this.hostname));var W=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+W,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!x[f])for(var T=0,P=m.length;T0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=t.search,n.query=t.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=x.slice(-1)[0],T=(n.host||t.host||x.length>1)&&("."===A||".."===A)||""===A,M=0,L=x.length;L>=0;L--)A=x[L],"."===A?x.splice(L,1):".."===A?(x.splice(L,1),M++):M&&(x.splice(L,1),M--);if(!b&&!w)for(;M--;M)x.unshift("..");!b||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),T&&"/"!==x.join("/").substr(-1)&&x.push("");var E=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(C){n.hostname=n.host=E?"":x.length?x.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&x.length,b&&!E&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){(function(e){function n(t,e){function n(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}if(i("noDeprecation"))return t;var r=!1;return n}function i(t){try{if(!e.localStorage)return!1}catch(n){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=n}).call(e,n(3))},function(t,e,n){"use strict";(function(e){var i=n(6),r=n(137),a=n(140),o=n(146),s=n(144),l=n(25),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(139);t.exports=function(t){return new Promise(function(c,h){var d=t.data,p=t.headers;i.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest,m="onreadystatechange",v=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(t.url)||(f=new window.XDomainRequest,m="onload",v=!0,f.onprogress=function(){},f.ontimeout=function(){}),t.auth){var g=t.auth.username||"",y=t.auth.password||"";p.Authorization="Basic "+u(g+":"+y)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f[m]=function(){if(f&&(4===f.readyState||v)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in f?o(f.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?f.response:f.responseText,i={data:n,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:e,config:t,request:f};r(c,h,i),f=null}},f.onerror=function(){h(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){h(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var b=n(142),w=(t.withCredentials||s(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;w&&(p[t.xsrfHeaderName]=w)}if("setRequestHeader"in f&&i.forEach(p,function(t,e){"undefined"==typeof d&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(x){if("json"!==t.responseType)throw x}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),h(t),f=null)}),void 0===d&&(d=null),f.send(d)})}}).call(e,n(5))},function(t,e){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var i=n(136);t.exports=function(t,e,n,r,a){var o=new Error(t);return i(o,e,n,r,a)}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;iOpenStreetMap contributors.'},u=window.cdnUrl+"/api/maps/base-nr/${z}/${x}/${y}",c=new OpenLayers.Layer.XYZ("Base Layer",u,l),h=new OpenLayers.Bounds((-16),49,0,86).transform(a,o);i.sharedState.map=new OpenLayers.Map("map",{layers:[c],restrictedExtent:h,controls:[]}),i.sharedState.map.setCenter(new OpenLayers.LonLat(e,t).transform(a,o),s),i.sharedState.map.isValidZoomLevel=function(){return!1};for(var d=i.sharedState.map.getControlsByClass("OpenLayers.Control.Navigation"),p=0;p0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===I.prototype||(e=r(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?c(t,o,e,!1):y(t,o)):c(t,o,e,!1))):i||(o.reading=!1)}return d(o)}function c(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&v(t)),y(t,e)}function h(t,e){var n;return a(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function d(t){return!t.ended&&(t.needReadable||t.length=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function f(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(W("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?D.nextTick(g,t):g(t))}function g(t){W("emit readable"),t.emit("readable"),C(t)}function y(t,e){e.readingMore||(e.readingMore=!0,D.nextTick(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var i;return ta.length?a.length:t;if(r+=o===a.length?a:a.slice(0,t),t-=o,0===t){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}function M(t,e){var n=I.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),t-=o,0===t){o===a.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(o));break}++r}return e.length-=r,n}function L(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,D.nextTick(E,e,t))}function E(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return W("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):v(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&L(this),null;var i=e.needReadable;W("need readable",i),(0===e.length||e.length-t0?k(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&L(this)),null!==r&&this.emit("data",r),r},l.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(t,e){function n(t,e){W("onunpipe"),t===d&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,a())}function r(){W("onend"),t.end()}function a(){W("cleanup"),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("drain",v),t.removeListener("error",l),t.removeListener("unpipe",n),d.removeListener("end",r),d.removeListener("end",h),d.removeListener("data",s),g=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function s(e){W("ondata"),y=!1;var n=t.write(e);!1!==n||y||((1===p.pipesCount&&p.pipes===t||p.pipesCount>1&&O(p.pipes,t)!==-1)&&!g&&(W("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,y=!0),d.pause())}function l(e){W("onerror",e),h(),t.removeListener("error",l),0===F(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",c),h()}function c(){W("onfinish"),t.removeListener("close",u),h()}function h(){W("unpipe"),d.unpipe(t)}var d=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,W("pipe count=%d opts=%j",p.pipesCount,e);var f=(!e||e.end!==!1)&&t!==i.stdout&&t!==i.stderr,m=f?r:h;p.endEmitted?D.nextTick(m):d.once("end",m),t.on("unpipe",n);var v=w(d);t.on("drain",v);var g=!1,y=!1;return d.on("data",s),o(t,"error",l),t.once("close",u),t.once("finish",c),t.emit("pipe",d),p.flowing||(W("pipe resume"),d.resume()),t},l.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a-1?i:M.nextTick;c.WritableState=u;var O=n(4);O.inherits=n(2);var D={deprecate:n(21)},P=n(33),R=n(10).Buffer,F=r.Uint8Array||function(){},B=n(32);O.inherits(c,P),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:D.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var I;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===c&&(t&&t._writableState instanceof u)}})):I=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var i=this._writableState,r=!1,a=!i.objectMode&&s(t);return a&&!R.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=l),i.ended?h(this,n):(a||d(this,i,t,n))&&(i.pendingcb++,r=f(this,i,a,t,e,n)),r},c.prototype.cork=function(){var t=this._writableState;t.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||x(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||A(this,i,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=B.destroy,c.prototype._undestroy=B.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(5),n(11).setImmediate,n(3))},function(t,e,n){"use strict";function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}var o=n(7);t.exports={destroy:i,undestroy:r}},function(t,e,n){t.exports=n(12).EventEmitter},function(t,e,n){e=t.exports=n(29),e.Stream=e,e.Readable=e,e.Writable=n(31),e.Duplex=n(13),e.Transform=n(30),e.PassThrough=n(227)},function(t,e,n){"use strict";t.exports="function"==typeof Promise?Promise:n(244)},function(t,e,n){"use strict";e.decode=e.parse=n(246),e.encode=e.stringify=n(247)},function(t,e,n){"use strict";(function(e,i){function r(t){return I.from(t)}function a(t){return I.isBuffer(t)||t instanceof j}function o(t,e,n){return"function"==typeof t.prependListener?t.prependListener(e,n):void(t._events&&t._events[e]?R(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n))}function s(t,e){P=P||n(14),t=t||{};var i=e instanceof P;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;r||0===r?this.highWaterMark=r:i&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(H||(H=n(16).StringDecoder),this.decoder=new H(t.encoding),this.encoding=t.encoding)}function l(t){return P=P||n(14),this instanceof l?(this._readableState=new s(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),void B.call(this)):new l(t)}function u(t,e,n,i,a){var o=t._readableState;if(null===e)o.reading=!1,m(t,o);else{var s;a||(s=h(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===I.prototype||(e=r(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?c(t,o,e,!1):y(t,o)):c(t,o,e,!1))):i||(o.reading=!1)}return d(o)}function c(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&v(t)),y(t,e)}function h(t,e){var n;return a(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function d(t){return!t.ended&&(t.needReadable||t.length=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function f(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(W("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?D.nextTick(g,t):g(t))}function g(t){W("emit readable"),t.emit("readable"),C(t)}function y(t,e){e.readingMore||(e.readingMore=!0,D.nextTick(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var i;return ta.length?a.length:t;if(r+=o===a.length?a:a.slice(0,t),t-=o,0===t){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}function M(t,e){var n=I.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),t-=o,0===t){o===a.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(o));break}++r}return e.length-=r,n}function L(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,D.nextTick(E,e,t))}function E(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return W("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):v(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&L(this),null;var i=e.needReadable;W("need readable",i),(0===e.length||e.length-t0?k(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&L(this)),null!==r&&this.emit("data",r),r},l.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(t,e){function n(t,e){W("onunpipe"),t===d&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,a())}function r(){W("onend"),t.end()}function a(){W("cleanup"),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("drain",v),t.removeListener("error",l),t.removeListener("unpipe",n),d.removeListener("end",r),d.removeListener("end",h),d.removeListener("data",s),g=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function s(e){W("ondata"),y=!1;var n=t.write(e);!1!==n||y||((1===p.pipesCount&&p.pipes===t||p.pipesCount>1&&O(p.pipes,t)!==-1)&&!g&&(W("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,y=!0),d.pause())}function l(e){W("onerror",e),h(),t.removeListener("error",l),0===F(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",c),h()}function c(){W("onfinish"),t.removeListener("close",u),h()}function h(){W("unpipe"),d.unpipe(t)}var d=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,W("pipe count=%d opts=%j",p.pipesCount,e);var f=(!e||e.end!==!1)&&t!==i.stdout&&t!==i.stderr,m=f?r:h;p.endEmitted?D.nextTick(m):d.once("end",m),t.on("unpipe",n);var v=w(d);t.on("drain",v);var g=!1,y=!1;return d.on("data",s),o(t,"error",l),t.once("close",u),t.once("finish",c),t.emit("pipe",d),p.flowing||(W("pipe resume"),d.resume()),t},l.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a-1?i:M.nextTick;c.WritableState=u;var O=n(4);O.inherits=n(2);var D={deprecate:n(21)},P=n(41),R=n(10).Buffer,F=r.Uint8Array||function(){},B=n(40);O.inherits(c,P),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:D.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var I;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===c&&(t&&t._writableState instanceof u)}})):I=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var i=this._writableState,r=!1,a=!i.objectMode&&s(t);return a&&!R.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=l),i.ended?h(this,n):(a||d(this,i,t,n))&&(i.pendingcb++,r=f(this,i,a,t,e,n)),r},c.prototype.cork=function(){var t=this._writableState;t.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||x(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||A(this,i,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=B.destroy,c.prototype._undestroy=B.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(5),n(11).setImmediate,n(3))},function(t,e,n){"use strict";function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}var o=n(7);t.exports={destroy:i,undestroy:r}},function(t,e,n){t.exports=n(12).EventEmitter},function(t,e,n){(function(t){var i=n(253),r=n(44),a=n(315),o=n(218),s=n(20),l=e;l.request=function(e,n){e="string"==typeof e?s.parse(e):a(e);var r=t.location.protocol.search(/^https?:$/)===-1?"http:":"",o=e.protocol||r,l=e.hostname||e.host,u=e.port,c=e.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),e.url=(l?o+"//"+l:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new i(e);return n&&h.on("response",n),h},l.get=function(t,e){var n=l.request(t,e);return n.end(),n},l.ClientRequest=i,l.IncomingMessage=r.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(e,n(3))},function(t,e,n){(function(t){function n(){if(void 0!==o)return o;if(t.XMLHttpRequest){o=new t.XMLHttpRequest;try{o.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function i(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(i){}return!1}function r(t){return"function"==typeof t}e.fetch=r(t.fetch)&&r(t.ReadableStream),e.writableStream=r(t.WritableStream),e.abortController=r(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(a){}var o,s="undefined"!=typeof t.ArrayBuffer,l=s&&r(t.ArrayBuffer.prototype.slice);e.arraybuffer=e.fetch||s&&i("arraybuffer"),e.msstream=!e.fetch&&l&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&s&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&r(n().overrideMimeType),e.vbArray=r(t.VBArray),o=null}).call(e,n(3))},function(t,e,n){(function(t,i,r){var a=n(43),o=n(2),s=n(50),l=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=e.IncomingMessage=function(e,n,o,l){function u(){p.read().then(function(t){if(!c._destroyed){if(t.done)return r.clearTimeout(l),void c.push(null);c.push(new i(t.value)),u()}})["catch"](function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)})}var c=this;if(s.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){t.nextTick(function(){c.emit("close")})}),"fetch"===o){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)}),a.writableStream){var h=new WritableStream({write:function(t){return new Promise(function(e,n){c._destroyed?n():c.push(new i(t))?e():c._resumeFetch=e})},close:function(){r.clearTimeout(l),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void n.body.pipeTo(h)["catch"](function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)})}catch(d){}}var p=n.body.getReader();u()}else{c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText;var f=e.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var v=m.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};o(u,s.Readable),u.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},u.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{n=new r.VBArray(e.responseBody).toArray()}catch(a){}if(null!==n){t.push(new i(n));break}case"text":try{n=e.responseText}catch(a){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var s=new i(o.length),u=0;ut._pos&&(t.push(new i(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(e,n(5),n(9).Buffer,n(3))},function(t,e,n){"use strict";(function(e,i){function r(t){return I.from(t)}function a(t){return I.isBuffer(t)||t instanceof j}function o(t,e,n){return"function"==typeof t.prependListener?t.prependListener(e,n):void(t._events&&t._events[e]?R(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n))}function s(t,e){P=P||n(15),t=t||{};var i=e instanceof P;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;r||0===r?this.highWaterMark=r:i&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(H||(H=n(16).StringDecoder),this.decoder=new H(t.encoding),this.encoding=t.encoding)}function l(t){return P=P||n(15),this instanceof l?(this._readableState=new s(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),void B.call(this)):new l(t)}function u(t,e,n,i,a){var o=t._readableState;if(null===e)o.reading=!1,m(t,o);else{var s;a||(s=h(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===I.prototype||(e=r(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?c(t,o,e,!1):y(t,o)):c(t,o,e,!1))):i||(o.reading=!1)}return d(o)}function c(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&v(t)),y(t,e)}function h(t,e){var n;return a(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function d(t){return!t.ended&&(t.needReadable||t.length=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function f(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(W("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?D.nextTick(g,t):g(t))}function g(t){W("emit readable"),t.emit("readable"),C(t)}function y(t,e){e.readingMore||(e.readingMore=!0,D.nextTick(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var i;return ta.length?a.length:t;if(r+=o===a.length?a:a.slice(0,t),t-=o,0===t){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}function M(t,e){var n=I.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),t-=o,0===t){o===a.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(o));break}++r}return e.length-=r,n}function L(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,D.nextTick(E,e,t))}function E(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return W("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):v(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&L(this),null;var i=e.needReadable;W("need readable",i),(0===e.length||e.length-t0?k(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&L(this)),null!==r&&this.emit("data",r),r},l.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(t,e){function n(t,e){W("onunpipe"),t===d&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,a())}function r(){W("onend"),t.end()}function a(){W("cleanup"),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("drain",v),t.removeListener("error",l),t.removeListener("unpipe",n),d.removeListener("end",r),d.removeListener("end",h),d.removeListener("data",s),g=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function s(e){W("ondata"),y=!1;var n=t.write(e);!1!==n||y||((1===p.pipesCount&&p.pipes===t||p.pipesCount>1&&O(p.pipes,t)!==-1)&&!g&&(W("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,y=!0),d.pause())}function l(e){W("onerror",e),h(),t.removeListener("error",l),0===F(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",c),h()}function c(){W("onfinish"),t.removeListener("close",u),h()}function h(){W("unpipe"),d.unpipe(t)}var d=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,W("pipe count=%d opts=%j",p.pipesCount,e);var f=(!e||e.end!==!1)&&t!==i.stdout&&t!==i.stderr,m=f?r:h;p.endEmitted?D.nextTick(m):d.once("end",m),t.on("unpipe",n);var v=w(d);t.on("drain",v);var g=!1,y=!1;return d.on("data",s),o(t,"error",l),t.once("close",u),t.once("finish",c),t.emit("pipe",d),p.flowing||(W("pipe resume"),d.resume()),t},l.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a-1?i:M.nextTick;c.WritableState=u;var O=n(4);O.inherits=n(2);var D={deprecate:n(21)},P=n(49),R=n(10).Buffer,F=r.Uint8Array||function(){},B=n(48);O.inherits(c,P),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:D.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var I;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===c&&(t&&t._writableState instanceof u)}})):I=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var i=this._writableState,r=!1,a=!i.objectMode&&s(t);return a&&!R.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=l),i.ended?h(this,n):(a||d(this,i,t,n))&&(i.pendingcb++,r=f(this,i,a,t,e,n)),r},c.prototype.cork=function(){var t=this._writableState;t.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||x(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||A(this,i,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=B.destroy,c.prototype._undestroy=B.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(5),n(11).setImmediate,n(3))},function(t,e,n){"use strict";function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}var o=n(7);t.exports={destroy:i,undestroy:r}},function(t,e,n){t.exports=n(12).EventEmitter},function(t,e,n){e=t.exports=n(45),e.Stream=e,e.Readable=e,e.Writable=n(47),e.Duplex=n(15),e.Transform=n(46),e.PassThrough=n(255)},function(t,e,n){(function(t,i){function r(t,n){var i={seen:[],stylize:o};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),m(n)?i.showHidden=n:n&&e._extend(i,n),x(i.showHidden)&&(i.showHidden=!1),x(i.depth)&&(i.depth=2),x(i.colors)&&(i.colors=!1),x(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),l(i,t,i.depth)}function a(t,e){var n=r.styles[e];return n?"["+r.colors[n][0]+"m"+t+"["+r.colors[n][1]+"m":t}function o(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function l(t,n,i){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return b(r)||(r=l(t,r,i)),r}var a=u(t,n);if(a)return a;var o=Object.keys(n),m=s(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(n);if(0===o.length){if(A(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return c(n)}var g="",y=!1,w=["{","}"];if(f(n)&&(y=!0,w=["[","]"]),A(n)){var x=n.name?": "+n.name:"";g=" [Function"+x+"]"}if(_(n)&&(g=" "+RegExp.prototype.toString.call(n)),C(n)&&(g=" "+Date.prototype.toUTCString.call(n)),k(n)&&(g=" "+c(n)),0===o.length&&(!y||0==n.length))return w[0]+g+w[1];if(i<0)return _(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var S;return S=y?h(t,n,i,m,o):o.map(function(e){return d(t,n,i,m,e,y)}),t.seen.pop(),p(S,g,w)}function u(t,e){if(x(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,r){for(var a=[],o=0,s=e.length;o-1&&(s=a?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),x(o)){if(a&&r.match(/^\d+$/))return s;o=JSON.stringify(""+r),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function p(t,e,n){var i=0,r=t.reduce(function(t,e){return i++,e.indexOf("\n")>=0&&i++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function f(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function v(t){return null===t}function g(t){return null==t}function y(t){return"number"==typeof t}function b(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function x(t){return void 0===t}function _(t){return S(t)&&"[object RegExp]"===M(t)}function S(t){return"object"==typeof t&&null!==t}function C(t){return S(t)&&"[object Date]"===M(t)}function k(t){return S(t)&&("[object Error]"===M(t)||t instanceof Error)}function A(t){return"function"==typeof t}function T(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function M(t){return Object.prototype.toString.call(t)}function L(t){return t<10?"0"+t.toString(10):t.toString(10)}function E(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(":");return[t.getDate(),F[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var D=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n=a)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}}),s=i[n];n-1&&n>-1&&(this.currentValue=[e,n])}else{var i=this.data.indexOf(t);i>-1&&(this.currentValue=i)}else this.currentValue=t}},currentIndex:function(){return this.isRange?this.data?this.currentValue:[this.getIndexByValue(this.currentValue[0]),this.getIndexByValue(this.currentValue[1])]:this.getIndexByValue(this.currentValue)},indexRange:function(){return this.isRange?this.currentIndex:[0,this.currentIndex]},maximum:function(){return this.data?this.data.length-1:this.max},multiple:function(){var t=(""+this.interval).split(".")[1];return t?Math.pow(10,t.length):1},spacing:function(){return this.data?1:this.interval},total:function(){return this.data?this.data.length-1:(Math.floor((this.maximum-this.minimum)*this.multiple)%(this.interval*this.multiple)!=0&&this.printError("Prop[interval] is illegal, Please make sure that the interval can be divisible"),(this.maximum-this.minimum)/this.interval)},gap:function(){return this.size/this.total},position:function(){return this.isRange?[(this.currentValue[0]-this.minimum)/this.spacing*this.gap,(this.currentValue[1]-this.minimum)/this.spacing*this.gap]:(this.currentValue-this.minimum)/this.spacing*this.gap},limit:function(){return this.isRange?this.fixed?[[0,(this.total-this.fixedValue)*this.gap],[this.fixedValue*this.gap,this.size]]:[[0,this.position[1]],[this.position[0],this.size]]:[0,this.size]},valueLimit:function(){return this.isRange?this.fixed?[[this.minimum,this.maximum-this.fixedValue*(this.spacing*this.multiple)/this.multiple],[this.minimum+this.fixedValue*(this.spacing*this.multiple)/this.multiple,this.maximum]]:[[this.minimum,this.currentValue[1]],[this.currentValue[0],this.maximum]]:[this.minimum,this.maximum]},idleSlider:function(){return 0===this.currentSlider?1:0},wrapStyles:function(){return"vertical"===this.direction?{height:"number"==typeof this.height?this.height+"px":this.height,padding:this.dotHeightVal/2+"px "+this.dotWidthVal/2+"px"}:{width:"number"==typeof this.width?this.width+"px":this.width,padding:this.dotHeightVal/2+"px "+this.dotWidthVal/2+"px"}},sliderStyles:function(){return Array.isArray(this.sliderStyle)?this.isRange?this.sliderStyle:this.sliderStyle[1]:"function"==typeof this.sliderStyle?this.sliderStyle(this.val,this.currentIndex):this.isRange?[this.sliderStyle,this.sliderStyle]:this.sliderStyle},focusStyles:function(){return Array.isArray(this.focusStyle)?this.isRange?this.focusStyle:this.focusStyle[1]:"function"==typeof this.focusStyle?this.focusStyle(this.val,this.currentIndex):this.isRange?[this.focusStyle,this.focusStyle]:this.focusStyle},disabledDotStyles:function(){var t=this.disabledDotStyle;if(Array.isArray(t))return t;if("function"==typeof t){var e=t(this.val,this.currentIndex);return Array.isArray(e)?e:[e,e]}return t?[t,t]:[{backgroundColor:"#ccc"},{backgroundColor:"#ccc"}]},tooltipStyles:function(){return Array.isArray(this.tooltipStyle)?this.isRange?this.tooltipStyle:this.tooltipStyle[1]:"function"==typeof this.tooltipStyle?this.tooltipStyle(this.val,this.currentIndex):this.isRange?[this.tooltipStyle,this.tooltipStyle]:this.tooltipStyle},elemStyles:function(){return"vertical"===this.direction?{width:this.width+"px",height:"100%"}:{height:this.height+"px"}},dotStyles:function(){return"vertical"===this.direction?{width:this.dotWidthVal+"px",height:this.dotHeightVal+"px",left:-(this.dotWidthVal-this.width)/2+"px"}:{width:this.dotWidthVal+"px",height:this.dotHeightVal+"px",top:-(this.dotHeightVal-this.height)/2+"px"}},piecewiseDotStyle:function(){return"vertical"===this.direction?{width:this.width+"px",height:this.width+"px"}:{width:this.height+"px",height:this.height+"px"}},piecewiseDotWrap:function(){if(!this.piecewise&&!this.piecewiseLabel)return!1;for(var t=[],e=0;e<=this.total;e++){var n="vertical"===this.direction?{bottom:this.gap*e-this.width/2+"px",left:0}:{left:this.gap*e-this.height/2+"px",top:0},i=this.reverse?this.total-e:e,r=this.data?this.data[i]:this.spacing*i+this.min;t.push({style:n,label:this.formatter?this.formatting(r):r,inRange:i>=this.indexRange[0]&&i<=this.indexRange[1]})}return t}},watch:{value:function(t){this.flag||this.setValue(t,!0)},max:function(t){if(tthis.max)return this.printError("The minimum value can not be greater than the maximum value.");var e=this.limitValue(this.val);this.setValue(e),this.refresh()},show:function(t){var e=this;t&&!this.size&&this.$nextTick(function(){e.refresh()})},fixed:function(){this.computedFixedValue()}},methods:{bindEvents:function(){document.addEventListener("touchmove",this.moving,{passive:!1}),document.addEventListener("touchend",this.moveEnd,{passive:!1}),document.addEventListener("mousedown",this.blurSlider),document.addEventListener("mousemove",this.moving),document.addEventListener("mouseup",this.moveEnd),document.addEventListener("mouseleave",this.moveEnd),document.addEventListener("keydown",this.handleKeydown),document.addEventListener("keyup",this.handleKeyup),window.addEventListener("resize",this.refresh),this.isRange&&this.tooltipMerge&&(this.$refs.dot0.addEventListener("transitionend",this.handleOverlapTooltip),this.$refs.dot1.addEventListener("transitionend",this.handleOverlapTooltip))},unbindEvents:function(){document.removeEventListener("touchmove",this.moving),document.removeEventListener("touchend",this.moveEnd),document.removeEventListener("mousedown",this.blurSlider),document.removeEventListener("mousemove",this.moving),document.removeEventListener("mouseup",this.moveEnd),document.removeEventListener("mouseleave",this.moveEnd),document.removeEventListener("keydown",this.handleKeydown),document.removeEventListener("keyup",this.handleKeyup),window.removeEventListener("resize",this.refresh),this.isRange&&this.tooltipMerge&&(this.$refs.dot0.removeEventListener("transitionend",this.handleOverlapTooltip),this.$refs.dot1.removeEventListener("transitionend",this.handleOverlapTooltip))},handleKeydown:function(t){if(!this.useKeyboard||!this.focusFlag)return!1;switch(t.keyCode){case 37:case 40:t.preventDefault(),this.keydownFlag=!0,this.flag=!0,this.changeFocusSlider(this.actionsKeyboard[0]);break;case 38:case 39:t.preventDefault(),this.keydownFlag=!0,this.flag=!0,this.changeFocusSlider(this.actionsKeyboard[1])}},handleKeyup:function(){this.keydownFlag&&(this.keydownFlag=!1,this.flag=!1)},changeFocusSlider:function(t){var e=this;if(this.isRange){var n=this.currentIndex.map(function(n,i){if(i===e.focusSlider||e.fixed){var r=t(n),a=e.fixed?e.valueLimit[i]:[0,e.total];if(r<=a[1]&&r>=a[0])return r}return n});n[0]>n[1]&&(this.focusSlider=0===this.focusSlider?1:0,n=n.reverse()),this.setIndex(n)}else this.setIndex(t(this.currentIndex))},blurSlider:function(t){var e=this.isRange?this.$refs["dot"+this.focusSlider]:this.$refs.dot;return!(!e||e===t.target)&&void(this.focusFlag=!1)},formatting:function(t){return"string"==typeof this.formatter?this.formatter.replace(/\{value\}/,t):this.formatter(t)},mergeFormatting:function(t,e){return"string"==typeof this.mergeFormatter?this.mergeFormatter.replace(/\{(value1|value2)\}/g,function(n,i){return"value1"===i?t:e}):this.mergeFormatter(t,e)},getPos:function(t){return this.realTime&&this.getStaticData(),"vertical"===this.direction?this.reverse?t.pageY-this.offset:this.size-(t.pageY-this.offset):this.reverse?this.size-(t.clientX-this.offset):t.clientX-this.offset},processClick:function(t){this.fixed&&t.stopPropagation()},wrapClick:function(t){var e=this;if(this.isDisabled||!this.clickable||this.processFlag)return!1;var n=this.getPos(t);if(this.isRange)if(this.disabledArray.every(function(t){return!1===t}))this.currentSlider=n>(this.position[1]-this.position[0])/2+this.position[0]?1:0;else if(this.disabledArray[0]){if(nthis.position[1])return!1;this.currentSlider=0}if(this.disabledArray[this.currentSlider])return!1;if(this.setValueOnPos(n),this.isRange&&this.tooltipMerge){var i=setInterval(function(){return e.handleOverlapTooltip()},16.7);setTimeout(function(){return window.clearInterval(i)},1e3*this.speed)}},moveStart:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2];if(this.disabledArray[e])return!1;if(this.stopPropagation&&t.stopPropagation(),this.isRange&&(this.currentSlider=e,n)){if(!this.processDragable)return!1;this.processFlag=!0,this.processSign={pos:this.position,start:this.getPos(t.targetTouches&&t.targetTouches[0]?t.targetTouches[0]:t)}}!n&&this.useKeyboard&&(this.focusFlag=!0,this.focusSlider=e),this.flag=!0,this.$emit("drag-start",this)},moving:function(t){return this.stopPropagation&&t.stopPropagation(),!!this.flag&&(t.preventDefault(),t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),this.processFlag?(this.currentSlider=0,this.setValueOnPos(this.processSign.pos[0]+this.getPos(t)-this.processSign.start,!0),this.currentSlider=1,this.setValueOnPos(this.processSign.pos[1]+this.getPos(t)-this.processSign.start,!0)):this.setValueOnPos(this.getPos(t),!0),this.isRange&&this.tooltipMerge&&this.handleOverlapTooltip(),void 0)},moveEnd:function(t){var e=this;return this.stopPropagation&&t.stopPropagation(),!!this.flag&&(this.$emit("drag-end",this),this.lazy&&this.isDiff(this.val,this.value)&&this.syncValue(),this.flag=!1,window.setTimeout(function(){e.processFlag=!1},0),this.setPosition(),void 0)},setValueOnPos:function(t,e){var n=this.isRange?this.limit[this.currentSlider]:this.limit,i=this.isRange?this.valueLimit[this.currentSlider]:this.valueLimit;if(t>=n[0]&&t<=n[1]){this.setTransform(t);var r=this.getValueByIndex(Math.round(t/this.gap));this.setCurrentValue(r,e),this.isRange&&this.fixed&&(this.setTransform(t+this.fixedValue*this.gap*(0===this.currentSlider?1:-1),!0),this.setCurrentValue((r*this.multiple+this.fixedValue*this.spacing*this.multiple*(0===this.currentSlider?1:-1))/this.multiple,e,!0))}else tthis.maximum)&&(this.isRange?this.isDiff(this.currentValue[i],t)&&(this.currentValue.splice(i,1,t),this.lazy&&this.flag||this.syncValue()):this.isDiff(this.currentValue,t)&&(this.currentValue=t,this.lazy&&this.flag||this.syncValue()),void(e||this.setPosition()))},getValueByIndex:function(t){return(this.spacing*this.multiple*t+this.minimum*this.multiple)/this.multiple},getIndexByValue:function(t){return Math.round((t-this.minimum)*this.multiple)/(this.spacing*this.multiple)},setIndex:function(t){if(Array.isArray(t)&&this.isRange){var e=void 0;e=this.data?[this.data[t[0]],this.data[t[1]]]:[this.getValueByIndex(t[0]),this.getValueByIndex(t[1])],this.setValue(e)}else t=this.getValueByIndex(t),this.isRange&&(this.currentSlider=t>(this.currentValue[1]-this.currentValue[0])/2+this.currentValue[0]?1:0),this.setCurrentValue(t)},setValue:function(t,e,n){var i=this;if(this.isDiff(this.val,t)){var r=this.limitValue(t);this.val=this.isRange?r.concat():r,this.computedFixedValue(),this.syncValue(e)}this.$nextTick(function(){return i.setPosition(n)})},computedFixedValue:function(){return this.fixed?void(this.fixedValue=this.currentIndex[1]-this.currentIndex[0]):(this.fixedValue=0,!1)},setPosition:function(t){this.flag||this.setTransitionTime(void 0===t?this.speed:t),this.isRange?(this.setTransform(this.position[0],1===this.currentSlider),this.setTransform(this.position[1],0===this.currentSlider)):this.setTransform(this.position),this.flag||this.setTransitionTime(0)},setTransform:function(t,e){var n=e?this.idleSlider:this.currentSlider,r=i(("vertical"===this.direction?this.dotHeightVal/2-t:t-this.dotWidthVal/2)*(this.reverse?-1:1)),a="vertical"===this.direction?"translateY("+r+"px)":"translateX("+r+"px)",o=this.fixed?this.fixedValue*this.gap+"px":(0===n?this.position[1]-t:t-this.position[0])+"px",s=this.fixed?(0===n?t:t-this.fixedValue*this.gap)+"px":(0===n?t:this.position[0])+"px";this.isRange?(this.slider[n].style.transform=a,this.slider[n].style.WebkitTransform=a,this.slider[n].style.msTransform=a,"vertical"===this.direction?(this.$refs.process.style.height=o,this.$refs.process.style[this.reverse?"top":"bottom"]=s):(this.$refs.process.style.width=o,this.$refs.process.style[this.reverse?"right":"left"]=s)):(this.slider.style.transform=a,this.slider.style.WebkitTransform=a,this.slider.style.msTransform=a,"vertical"===this.direction?(this.$refs.process.style.height=t+"px",this.$refs.process.style[this.reverse?"top":"bottom"]=0):(this.$refs.process.style.width=t+"px",this.$refs.process.style[this.reverse?"right":"left"]=0))},setTransitionTime:function(t){if(t||this.$refs.process.offsetWidth,this.isRange){for(var e=0;ee.max?(e.printError("The value of the slider is "+t+", the maximum value is "+e.max+", the value of this slider can not be greater than the maximum value"),e.max):n};return this.isRange?t.map(function(t){return n(t)}):n(t)},syncValue:function(t){var e=this.isRange?this.val.concat():this.val;this.$emit("input",e),this.keydownFlag&&this.$emit("on-keypress",e),t||this.$emit("callback",e)},getValue:function(){return this.val},getIndex:function(){return this.currentIndex},getStaticData:function(){this.$refs.elem&&(this.size="vertical"===this.direction?this.$refs.elem.offsetHeight:this.$refs.elem.offsetWidth,this.offset="vertical"===this.direction?this.$refs.elem.getBoundingClientRect().top+window.pageYOffset||document.documentElement.scrollTop:this.$refs.elem.getBoundingClientRect().left)},refresh:function(){this.$refs.elem&&(this.getStaticData(),this.computedFixedValue(),this.setPosition())},printError:function(t){this.debug&&console.error("[VueSlider error]: "+t)},handleOverlapTooltip:function(){var t=this.tooltipDirection[0]===this.tooltipDirection[1];if(this.isRange&&t){var e=this.reverse?this.$refs.tooltip1:this.$refs.tooltip0,n=this.reverse?this.$refs.tooltip0:this.$refs.tooltip1,i=e.getBoundingClientRect().right,r=n.getBoundingClientRect().left,a=e.getBoundingClientRect().y,o=n.getBoundingClientRect().y+n.getBoundingClientRect().height,s="horizontal"===this.direction&&i>r,l="vertical"===this.direction&&o>a;s||l?this.handleDisplayMergedTooltip(!0):this.handleDisplayMergedTooltip(!1)}},handleDisplayMergedTooltip:function(t){var e=this.$refs.tooltip0,n=this.$refs.tooltip1,i=this.$refs.process.getElementsByClassName("vue-merged-tooltip")[0];t?(e.style.visibility="hidden",n.style.visibility="hidden",i.style.visibility="visible"):(e.style.visibility="visible",n.style.visibility="visible",i.style.visibility="hidden")}},mounted:function(){var t=this;return this.isComponentExists=!0,"undefined"==typeof window||"undefined"==typeof document?this.printError("window or document is undefined, can not be initialization."):(this.$nextTick(function(){t.isComponentExists&&(t.getStaticData(),t.setValue(t.limitValue(t.value),!0,t.startAnimation?t.speed:0),t.bindEvents())}),void(this.isMounted=!0))},beforeDestroy:function(){this.isComponentExists=!1,this.unbindEvents()}}},function(t,e,n){"use strict";var i=n(0);t.exports=i},function(t,e,n){e=t.exports=n(4)(),e.push([t.i,'.vue-slider-component{position:relative;box-sizing:border-box;-ms-user-select:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none}.vue-slider-component.vue-slider-disabled{opacity:.5;cursor:not-allowed}.vue-slider-component.vue-slider-has-label{margin-bottom:15px}.vue-slider-component.vue-slider-disabled .vue-slider-dot{cursor:not-allowed}.vue-slider-component .vue-slider{position:relative;display:block;border-radius:15px;background-color:#ccc}.vue-slider-component .vue-slider:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.vue-slider-component .vue-slider-process{position:absolute;border-radius:15px;background-color:#3498db;transition:all 0s;z-index:1}.vue-slider-component .vue-slider-process.vue-slider-process-dragable{cursor:pointer;z-index:3}.vue-slider-component.vue-slider-horizontal .vue-slider-process{width:0;height:100%;top:0;left:0;will-change:width}.vue-slider-component.vue-slider-vertical .vue-slider-process{width:100%;height:0;bottom:0;left:0;will-change:height}.vue-slider-component.vue-slider-horizontal-reverse .vue-slider-process{width:0;height:100%;top:0;right:0}.vue-slider-component.vue-slider-vertical-reverse .vue-slider-process{width:100%;height:0;top:0;left:0}.vue-slider-component .vue-slider-dot{position:absolute;border-radius:50%;background-color:#fff;box-shadow:.5px .5px 2px 1px rgba(0,0,0,.32);transition:all 0s;will-change:transform;cursor:pointer;z-index:5}.vue-slider-component .vue-slider-dot.vue-slider-dot-focus{box-shadow:0 0 2px 1px #3498db}.vue-slider-component .vue-slider-dot.vue-slider-dot-dragging{z-index:5}.vue-slider-component .vue-slider-dot.vue-slider-dot-disabled{z-index:4}.vue-slider-component.vue-slider-horizontal .vue-slider-dot{left:0}.vue-slider-component.vue-slider-vertical .vue-slider-dot{bottom:0}.vue-slider-component.vue-slider-horizontal-reverse .vue-slider-dot{right:0}.vue-slider-component.vue-slider-vertical-reverse .vue-slider-dot{top:0}.vue-slider-component .vue-slider-tooltip-wrap{display:none;position:absolute;z-index:9}.vue-slider-component .vue-slider-tooltip{display:block;font-size:14px;white-space:nowrap;padding:2px 5px;min-width:20px;text-align:center;color:#fff;border-radius:5px;border:1px solid #3498db;background-color:#3498db}.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-top{top:-9px;left:50%;transform:translate(-50%,-100%)}.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-bottom{bottom:-9px;left:50%;transform:translate(-50%,100%)}.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-left{top:50%;left:-9px;transform:translate(-100%,-50%)}.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-right{top:50%;right:-9px;transform:translate(100%,-50%)}.vue-slider-component .vue-slider-tooltip-top .vue-merged-tooltip .vue-slider-tooltip:before,.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-top .vue-slider-tooltip:before{content:"";position:absolute;bottom:-10px;left:50%;width:0;height:0;border:5px solid transparent;border:6px solid transparent\\0;border-top-color:inherit;transform:translate(-50%)}.vue-slider-component .vue-slider-tooltip-wrap.vue-merged-tooltip{display:block;visibility:hidden}.vue-slider-component .vue-slider-tooltip-bottom .vue-merged-tooltip .vue-slider-tooltip:before,.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-bottom .vue-slider-tooltip:before{content:"";position:absolute;top:-10px;left:50%;width:0;height:0;border:5px solid transparent;border:6px solid transparent\\0;border-bottom-color:inherit;transform:translate(-50%)}.vue-slider-component .vue-slider-tooltip-left .vue-merged-tooltip .vue-slider-tooltip:before,.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-left .vue-slider-tooltip:before{content:"";position:absolute;top:50%;right:-10px;width:0;height:0;border:5px solid transparent;border:6px solid transparent\\0;border-left-color:inherit;transform:translateY(-50%)}.vue-slider-component .vue-slider-tooltip-right .vue-merged-tooltip .vue-slider-tooltip:before,.vue-slider-component .vue-slider-tooltip-wrap.vue-slider-tooltip-right .vue-slider-tooltip:before{content:"";position:absolute;top:50%;left:-10px;width:0;height:0;border:5px solid transparent;border:6px solid transparent\\0;border-right-color:inherit;transform:translateY(-50%)}.vue-slider-component .vue-slider-dot.vue-slider-hover:hover .vue-slider-tooltip-wrap{display:block}.vue-slider-component .vue-slider-dot.vue-slider-always .vue-slider-tooltip-wrap{display:block!important}.vue-slider-component .vue-slider-piecewise{position:absolute;width:100%;padding:0;margin:0;left:0;top:0;height:100%;list-style:none}.vue-slider-component .vue-slider-piecewise-item{position:absolute;width:8px;height:8px}.vue-slider-component .vue-slider-piecewise-dot{position:absolute;left:50%;top:50%;width:100%;height:100%;display:inline-block;background-color:rgba(0,0,0,.16);border-radius:50%;transform:translate(-50%,-50%);z-index:2;transition:all .3s}.vue-slider-component .vue-slider-piecewise-item:first-child .vue-slider-piecewise-dot,.vue-slider-component .vue-slider-piecewise-item:last-child .vue-slider-piecewise-dot{visibility:hidden}.vue-slider-component.vue-slider-horizontal-reverse .vue-slider-piecewise-label,.vue-slider-component.vue-slider-horizontal .vue-slider-piecewise-label{position:absolute;display:inline-block;top:100%;left:50%;white-space:nowrap;font-size:12px;color:#333;transform:translate(-50%,8px);visibility:visible}.vue-slider-component.vue-slider-vertical-reverse .vue-slider-piecewise-label,.vue-slider-component.vue-slider-vertical .vue-slider-piecewise-label{position:absolute;display:inline-block;top:50%;left:100%;white-space:nowrap;font-size:12px;color:#333;transform:translate(8px,-50%);visibility:visible}.vue-slider-component .vue-slider-sr-only{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important}',""]); },function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;en.parts.length&&(i.parts.length=n.parts.length)}else{for(var o=[],r=0;r0&&jQuery("form#climate-product-order-form").parsley().on("form:error",function(){t.callChildComponentMethod("climate-product-order-form","assignErrorResult",!0)}).on("form:submit",function(){t.callChildComponentMethod("climate-product-order-form","assignErrorResult",!1)})}()})};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t)};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),this.loadMaps(this.vue)};r.prototype.loadMaps=function(t){t.callChildComponentMethod("ensemble-map","loadEnsembleMaps")},r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=n(8),a=function(t){this.vue=t,i.a.setUserLocation(t),this.map=new r.a(t),this.loadMap(!0,"ireland-wind-barb")};a.prototype.setupMap=function(){this.map.setupDefaultMap(),this.map.loadTheFirstHomepageLayer()},a.prototype.loadMap=function o(o,t){var e=this;this.vue.sharedState.mapType=t;var n=this.vue.sharedState.baseURL;n="https://gdal.metweb.ie/api/",this.vue.$http.get(n+"maps/"+t).then(function(t){var n=t.body.length;e.vue.sharedState.numberOfMaps=n-1,e.map.displayIrelandWindBarbMap(t,o)},function(t){$("#Homepage-Map").hide()})},a.prototype.updateTheDateOnTheMap=function(t){this.map.updateDate(t)},a.prototype.loadNewLayer=function(){this.vue.callChildComponentMethod("ireland-wind-barb-map","showNextLayerAndLoadOneMore")},a.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=n(8),a=function(t){this.vue=t,this.map=new r.a(t),this.vue.sharedState.lightningDate="newest",this.loadMap(!0,"lightning"),this.vue.callChildComponentMethod("lightning-dropdown","getDates"),i.a.setUserLocation(t)};a.prototype.loadNewLayer=function(t){},a.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},a.prototype.changeMap=function(){console.log("Change Map"),this.loadMap(!1,"lightning")},a.prototype.loadMap=function o(o,t){var e=this;this.vue.sharedState.mapType="lightning";var n="https://www.met.ie/api/lightning/"+this.vue.sharedState.lightningDate;this.vue.$http.get(n).then(function(t){console.log(t,"response");var n=t.body.length;n>0&&($(".section-slider").show(),e.vue.sharedState.numberOfMaps=n-1,e.map.displayLightningMap(t,o,0))},function(t){$(".map").hide()})},a.prototype.setupMap=function(){this.map.setupDefaultMap(),this.map.loadLightningMap()},a.prototype.updateTheDateOnTheMap=function(t){this.map.updateDate(t)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t)};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(8),r=n(1),a=function(t){this.vue=t,this.map=new i.a(t),this.loadMap(!0,"buoy"),this.loadBuoyGraph(),r.a.setUserLocation(t)};a.prototype.loadMap=function(t,e){this.vue.sharedState.seaAreamapType=e,this.vue.callChildComponentMethod("marine-climatology-map","loadMap")},a.prototype.loadBuoyGraph=function(){this.vue.callChildComponentMethod("marine-climatology-graph","loadGraph")},a.prototype.loadBuoyReport=function(t){if("MALIN HEAD"===t.toUpperCase())window.location="/climate/average-monthly-sea-temperature-at-malin-head/";else{var e="climate/marine-climatology/"+t.toLowerCase()+"/download";$(".marine-climatology-download").attr("href",e),this.vue.setCookieAndSharedState("selectedClimateBuoy",t),this.vue.callChildComponentMethod("marine-climatology-graph","updateGraph",t)}},a.prototype.updateLocation=function(t,e,n,i,a){void 0===n&&(n=""),void 0===i&&(i=""),void 0===a&&(a=""),r.a.resetLocation(this.vue,t,e,n,i,a)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),this.vue.callChildComponentMethod("monthly-data-map","loadMap"),this.vue.callChildComponentMethod("station-list","loadList"),this.vue.callChildComponentMethod("monthly-data","loadReport"),this.vue.callChildComponentMethod("monthly-data-header","loadHeader")};r.prototype.reloadStationReport=function(){this.vue.callChildComponentMethod("monthly-data-map","reloadMap"),this.vue.callChildComponentMethod("station-list","loadList"),this.vue.callChildComponentMethod("monthly-data","loadReport"),this.vue.callChildComponentMethod("monthly-data-header","loadHeader")},r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=n(198),a=function(t){this.vue=t,this.nationalForecastMap=new r.a(t),this.loadMap(!0,"national-forecast"),i.a.setUserLocation(t)};a.prototype.loadMap=function o(o,t,e){void 0===e&&(e=!0);var n=this;this.vue.sharedState.mapType=t,t="overview",this.vue.$http.get(this.vue.sharedState.baseURL+"maps/"+t+"?b=1").then(function(t){n.nationalForecastMap.display(t,o,e)},function(t){})},a.prototype.setupMap=function(){var t=this.getLatitude(window.region),e=this.getLongitude(window.region),n=this.getZoomLevel(window.region);this.nationalForecastMap.setupBaseMap(t,e,n),this.nationalForecastMap.loadMarkers(0)},a.prototype.getLatitude=function(t){return 53.50521},a.prototype.getLongitude=function(t){return-8.370385},a.prototype.getZoomLevel=function(t){var e=t.toLowerCase();switch(e){case"national":return 4;case"dublin":return 10;default:return 8}},a.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),t.callChildComponentMethod("ensemble-map","loadEnsembleMaps")};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},r.whatWeMeasure=function(){jQuery("map#Map area").on("click",function(t){t.preventDefault();var e=jQuery(this).data("station"),n=window.cdnUrl+"/cms/assets/uploads/2017/08/"+e+".png";$("#reading").attr("src",n)})},r.resizeHistoricalDataIframe=function(){},e.a=r},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),$(document).ready(function(){!function(){jQuery("form#rainfall-return-period-form").length>0&&jQuery("form#rainfall-return-period-form").parsley().on("form:error",function(){t.callChildComponentMethod("rainfall-return-period-form","assignErrorResult",!0)}).on("form:submit",function(){t.callChildComponentMethod("rainfall-return-period-form","assignErrorResult",!1)})}()})};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),this.loadMaps(this.vue)};r.prototype.loadMaps=function(t){t.callChildComponentMethod("satellite-maps","loadMaps")},r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(8),r=n(1),a=function(t){this.vue=t,this.map=new i.a(t),this.loadMap(!0,"buoy"),this.loadBuoyReport("M3"),r.a.setUserLocation(t)};a.prototype.loadMap=function(t,e){this.vue.sharedState.seaAreamapType=e,this.vue.callChildComponentMethod("sea-area-map","loadMap")},a.prototype.loadBuoyReport=function(t){this.vue.sharedState.selectedBuoy=t,this.setBuoyName(t),this.vue.callChildComponentMethod("buoy-graph","loadBuoyGraph")},a.prototype.setBuoyName=function(t){var e={M1:"M1",M2:"M2",M3:"M3",M4:"M4",M5:"M5",M6:"M6",IL1:"IL1 Ballybunion",IL2:"IL2 Finnis",IL3:"IL3 South Hunter",IL4:"IL4 Splaugh"};this.vue.sharedState.selectedBuoyName=e[t]},a.prototype.updateLocation=function(t,e,n,i,a){void 0===n&&(n=""),void 0===i&&(i=""),void 0===a&&(a=""),r.a.resetLocation(this.vue,t,e,n,i,a)},e.a=a},function(t,e,n){"use strict";var i=n(8),r=(n(1),n(199)),a=function(t){this.vue=t,this.map=new i.a(t),this.loadMap(),this.loadStationReport(),r.a.setUserLocation(t)};a.prototype.loadMap=function(){this.map.displayStationMap()},a.prototype.loadStationReport=function(){this.vue.callChildComponentMethod("today-station-report","reloadReport")},a.prototype.updateLocation=function(t,e,n,i,a){void 0===n&&(n=""),void 0===i&&(i=""),void 0===a&&(a=""),r.a.resetLocation(this.vue,t,e,n,i,a)},e.a=a},function(t,e,n){"use strict";var i=n(8),r=n(1),a=function(t){this.vue=t,this.map=new i.a(t),this.loadMap(),this.loadStationReport(),r.a.setUserLocation(t)};a.prototype.loadMap=function(){this.map.displayStationMap()},a.prototype.loadStationReport=function(){this.vue.callChildComponentMethod("yesterday-station-report","reloadReport")},a.prototype.updateLocation=function(t,e,n,i,a){void 0===n&&(n=""),void 0===i&&(i=""),void 0===a&&(a=""),r.a.resetLocation(this.vue,t,e,n,i,a)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),this.loadMaps(this.vue)};r.prototype.loadMaps=function(t){t.callChildComponentMethod("valentia-tephigram","loadMaps")},r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},e.a=r},function(t,e,n){"use strict";var i=n(1),r=n(8),a=function(t){this.vue=t,this.map=new r.a(t),this.loadMap(!0,"wave"),i.a.setUserLocation(t)};a.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},a.prototype.loadMap=function o(o,t){var e=this;this.vue.sharedState.mapType="wave";var n=this.vue.sharedState.baseURL;n="https://gdal.metweb.ie/api/",this.vue.$http.get(n+"maps/wave").then(function(t){var n=t.body.length;e.vue.sharedState.numberOfMaps=n-1,e.map.displayWaveMap(t,o)},function(t){$(".map").hide()})},a.prototype.setupMap=function(){this.map.setupDefaultMap(),this.map.loadTheFirstHomepageLayer()},a.prototype.loadNewLayer=function(){this.vue.callChildComponentMethod("wave-map","showNextLayerAndLoadOneMore")},a.prototype.updateTheDateOnTheMap=function(t){this.map.updateDate(t)},e.a=a},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t,i.a.setUserLocation(t),this.vue.callChildComponentMethod("webcam-map","loadMap"),this.vue.callChildComponentMethod("webcams","reload")};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},r.prototype.changeWebcam=function(){this.vue.sharedState.currentWebcamCamera=1,this.vue.callChildComponentMethod("webcams","pause"),this.vue.callChildComponentMethod("webcams","reload")},r.prototype.changeCamera=function(){this.vue.callChildComponentMethod("webcams","reload")},e.a=r},function(t,e,n){"use strict";var i=n(1),r=function(t){this.vue=t};r.prototype.updateLocation=function(t,e,n,r,a){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),i.a.resetLocation(this.vue,t,e,n,r,a)},r.whatWeMeasure=function(){jQuery("map#Map area").on("click",function(t){t.preventDefault();var e=jQuery(this).data("station"),n=window.cdnUrl+"/cms/assets/uploads/2017/08/"+e+".png";$("#reading").attr("src",n)})},r.resizeHistoricalDataIframe=function(){},e.a=r},function(t,e,n){"use strict";var i=n(1),r=n(8),a=function(t){this.vue=t,this.map=new r.a(t),this.loadMap(!0,window.startingMap),i.a.setUserLocation(t)};a.prototype.resetLocation=function(t){i.a.resetLocation(this.vue,t.lat,t.lng,t.city,t.county,t.region)},a.prototype.isInIreland=function o(){var t=this.vue.sharedState.currentRegion,e=this.vue.sharedState.currentCounty,o=""!=t&&""!=e;return o},a.prototype.showSuccess=function(){var t=this.vue.translateText("Forecasts updated","Réamhaisnéisí Nuashonraithe"),e=[{text:"View",onClick:function(t,e){$("html,body").animate({scrollTop:$("#7DayOutlook").offset().top})}}];this.showToast(t,e)},a.prototype.showError=function(){var t=this.vue.translateText("Forecast not available","Níl aon réamhaisnéis ar fáil"),e=[];this.showToast(t,e)},a.prototype.showToast=function(t,e){this.vue.$toasted.show(t,{theme:"primary",position:"bottom-right",duration:5e3,singleton:!0,action:e})},a.prototype.loadNewLayer=function(){this.vue.callChildComponentMethod("ol-map","showNextLayerAndLoadOneMore")},a.prototype.updateLocation=function(t,e,n,r,a,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a=""),void 0===o&&(o=""),i.a.resetLocation(this.vue,t,e,n,r,a,o)},a.prototype.getSevenDayWeather=function(){this.vue.callChildComponentMethod("midday-outlook","getSevenDayWeather")},a.prototype.getRegionalWeather=function(t){this.vue.callChildComponentMethod("regional-weather","getRegionalForecast",t)},a.prototype.setupMap=function(){this.map.setupDefaultMap(),this.map.loadTheFirstHomepageLayer()},a.prototype.loadMap=function s(s,t){var e=this;this.vue.sharedState.mapType=t,this.vue.$http.get(this.vue.sharedState.baseURL+"maps/"+t).then(function(n){var i=n.body.length;e.vue.sharedState.numberOfMaps=i-1,"radar"==t&&e.vue.sharedState.slider.setIndex(i),e.map.display(n,s)},function(t){$("#Homepage-Map").hide()})},a.prototype.updateTheDateOnTheMap=function(t){this.map.updateDate(t)},e.a=a},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){this.state=U,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function e(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function i(t){"undefined"!=typeof console&&X&&console.warn("[VueResource warn]: "+t)}function r(t){"undefined"!=typeof console&&console.error(t)}function a(t,e){return V(t,e)}function o(t){return t?t.replace(/^\s*|\s*$/g,""):""}function s(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function l(t){return t?t.toLowerCase():""}function u(t){return t?t.toUpperCase():""}function c(t){return"string"==typeof t}function h(t){return"function"==typeof t}function d(t){return null!==t&&"object"==typeof t}function p(t){return d(t)&&Object.getPrototypeOf(t)==Object.prototype}function f(t){return"undefined"!=typeof Blob&&t instanceof Blob}function m(t){return"undefined"!=typeof FormData&&t instanceof FormData}function v(t,n,i){var r=e.resolve(t);return arguments.length<2?r:r.then(n,i)}function g(t,e,n){return n=n||{},h(n)&&(n=n.call(e)),b(t.bind({$vm:e,$options:n}),t,{$options:n})}function y(t,e){var n,i;if(J(t))for(n=0;n=200&&r<300,this.status=r||0,this.statusText=a||"",this.headers=new vt(i),this.body=t,c(t)?this.bodyText=t:f(t)&&(this.bodyBlob=t,j(t)&&(this.bodyText=I(t)))};gt.prototype.blob=function(){return v(this.bodyBlob)},gt.prototype.text=function(){return v(this.bodyText)},gt.prototype.json=function(){return v(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(gt.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var yt=function(t){this.body=null,this.params={},Q(this,t,{method:u(t.method||"GET")}),this.headers instanceof vt||(this.headers=new vt(this.headers))};yt.prototype.getUrl=function(){return E(this)},yt.prototype.getBody=function(){return this.body},yt.prototype.respondWith=function(t,e){return new gt(t,Q(e||{},{url:this.getUrl()}))};var bt={Accept:"application/json, text/plain, */*"},wt={"Content-Type":"application/json;charset=utf-8"};return N.options={},N.headers={put:wt,post:wt,patch:wt,"delete":wt,common:bt,custom:{}},N.interceptor={before:ct,method:ht,jsonp:ut,json:st,form:ot,header:dt,cors:at},N.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){N[t]=function(e,n){return this(Q(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){N[t]=function(e,n,i){return this(Q(i||{},{url:e,method:t,body:n}))}}),$.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},"delete":{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(H),H})},function(t,e){!function(e,n){"object"==typeof t&&t.exports?t.exports=e.document?n(e):n:e.Highcharts=n(e)}("undefined"!=typeof window?window:this,function(t){t=function(){var t=window,e=t.document,n=t.navigator&&t.navigator.userAgent||"",i=e&&e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(n)&&!window.opera,a=!i,o=/Firefox/.test(n),s=o&&4>parseInt(n.split("Firefox/")[1],10);return t.Highcharts?t.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.14",deg2rad:2*Math.PI/360,doc:e,hasBidiBug:s,hasTouch:e&&void 0!==e.documentElement.ontouchstart,isMS:r,isWebKit:/AppleWebKit/.test(n),isFirefox:o,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:i,vml:a,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}(),function(t){var e=[],n=t.charts,i=t.doc,r=t.win;t.error=function(e,n){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,n)throw Error(e);r.console&&console.log(e)},t.Fx=function(t,e,n){this.options=e,this.elem=t,this.prop=n},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],n=this.paths[1],i=[],r=this.now,a=e.length;if(1===r)i=this.toD;else if(a===n.length&&1>r)for(;a--;)t=parseFloat(e[a]),i[a]=isNaN(t)?e[a]:r*parseFloat(n[a]-t)+t;else i=n;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},run:function(t,n,i){var r,a=this,o=function(t){return!o.stopped&&a.step(t)};this.startTime=+new Date,this.start=t,this.end=n,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&1===e.push(o)&&(o.timerId=setInterval(function(){for(r=0;r=s+this.startTime?(this.now=this.end,this.pos=1,this.update(),n=l[this.prop]=!0,t.objectEach(l,function(t){!0!==t&&(n=!1)}),n&&o&&o.call(a),e=!1):(this.pos=r.easing((i-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,n,i){function r(t){var e,n;for(c=t.length;c--;)e="M"===t[c]||"L"===t[c],n=/[a-zA-Z]/.test(t[c+3]),e&&n&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function a(t,e){for(;t.lengtho?"AM":"PM",P:12>o?"am":"pm",S:f(a.getSeconds()),L:f(Math.round(n%1e3),3)},t.dateFormats);return t.objectEach(r,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t(n):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},t.formatSingle=function(e,n){var i=/\.([0-9])/,r=t.defaultOptions.lang;return/f$/.test(e)?(i=(i=e.match(i))?i[1]:-1,null!==n&&(n=t.numberFormat(n,i,r.decimalPoint,-1=i&&(n=[1/i]))),r=0;r=e||!a&&o<=(n[r]+(n[r+1]||n[r]))/2));r++);return s=t.correctFloat(s*i,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var n,i,r=t.length;for(i=0;in&&(n=t[e]);return n},t.destroyObjectProperties=function(e,n){t.objectEach(e,function(t,i){t&&t!==n&&t.destroy&&t.destroy(),delete e[i]})},t.discardElement=function(e){var n=t.garbageBin;n||(n=t.createElement("div")),e&&n.appendChild(e),n.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,n){n.renderer.globalAnimation=t.pick(e,n.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,n,i,r){e=+e||0,n=+n;var a,o,s=t.defaultOptions.lang,l=(e.toString().split(".")[1]||"").split("e")[0].length,u=e.toString().split("e");return-1===n?n=Math.min(l,20):t.isNumber(n)||(n=2),o=(Math.abs(u[1]?u[0]:e)+Math.pow(10,-Math.max(n,l)-1)).toFixed(n),l=String(t.pInt(o)),a=3e?"-":"")+(a?l.substr(0,a)+r:""),e+=l.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r),n&&(e+=i+o.slice(-n)),u[1]&&(e+="e"+u[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,n,i){return"width"===n?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===n?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):((e=r.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(n),t.pick(i,!0)&&(e=t.pInt(e))),e)},t.inArray=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},t.grep=function(t,e){return[].filter.call(t,e)},t.find=function(t,e){return[].find.call(t,e)},t.map=function(t,e){for(var n=[],i=0,r=t.length;i>16,(65280&e)>>8,255&e,1]:4===n&&(r=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!r)for(a=this.parsers.length;a--&&!r;)o=this.parsers[a],(n=o.regex.exec(e))&&(r=o.parse(n));this.rgba=r||[]},get:function(t){var i,a=this.input,o=this.rgba;return this.stops?(i=r(a),i.stops=[].concat(i.stops),e(this.stops,function(e,n){i.stops[n]=[i.stops[n][0],e.get(t)]})):i=o&&n(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?o[3]:"rgba("+o.join(",")+")":a,i},brighten:function(t){var i,r=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(n(t)&&0!==t)for(i=0;3>i;i++)r[i]+=a(255*t),0>r[i]&&(r[i]=0),255n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(s.isSVG&&(t=n.width,s=n.height,u&&"11px"===u.fontSize&&17===Math.round(s)&&(n.height=s=14),e&&(n.width=Math.abs(s*Math.sin(i))+Math.abs(t*Math.cos(i)),n.height=Math.abs(s*Math.cos(i))+Math.abs(t*Math.sin(i)))),o&&0]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.colorGradient(t,e,n)},visibilitySetter:function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var n,i,r=this.renderer,a=this.parentGroup,o=(a||r).element||r.box,s=this.element;n=this.added;var l;if(c(t)&&(s.zIndex=t,t=+t,this[e]===t&&(n=!1),this[e]=t),n){for((t=this.zIndex)&&a&&(a.handleZ=!0),e=o.childNodes,l=0;lt||!c(t)&&c(n)||0>t&&!c(n)&&o!==r.box)&&(o.insertBefore(s,a),i=!0);i||o.appendChild(s)}return i},_defaultSetter:function(t,e,n){n.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,n,i){this[n]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)},n=t.SVGRenderer=function(){this.init.apply(this,arguments)},m(n.prototype,{Element:e,SVG_NS:R,init:function(t,e,n,r,o,s){var u;r=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}).css(this.getStyle(r)),u=r.element,t.appendChild(u),-1===t.innerHTML.indexOf("xmlns")&&a(u,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=u,this.boxWrapper=r,this.alignedObjects=[],this.url=(x||k)&&p.getElementsByTagName("base").length?B.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 5.0.14")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1);var c;x&&t.getBoundingClientRect&&(e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})},e(),this.unSubPixelFix=i(B,"resize",e))},getStyle:function(t){return this.style=m({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:T,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t,e){var n=t.getBBox(!0).width;return!P&&this.forExport&&(n=this.measureSpanWidth(e.firstChild.data,t.styles)),n},applyEllipsis:function(t,e,n,i){var r,a,o=t.rotation,s=n,l=0,u=n.length,c=function(t){e.removeChild(e.firstChild),t&&e.appendChild(p.createTextNode(t))};if(t.rotation=0,s=this.getSpanWidth(t,e),a=s>i){for(;l<=u;)r=Math.ceil((l+u)/2),s=n.substring(0,r)+"…",c(s),s=this.getSpanWidth(t,e),l===u?l=u+1:s>i?u=r-1:l=r;0===u&&c("")}return t.rotation=o,a},buildText:function(t){var e,n,i,r,o,s,u=t.element,c=this,h=c.forExport,d=L(t.textStr,"").toString(),m=-1!==d.indexOf("<"),v=u.childNodes,y=a(u,"x"),b=t.styles,w=t.textWidth,x=b&&b.lineHeight,_=b&&b.textOutline,S=b&&"ellipsis"===b.textOverflow,C=b&&"nowrap"===b.whiteSpace,k=b&&b.fontSize,A=v.length,b=w&&!t.added&&this.box,T=function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:k||c.style.fontSize||12,x?E(x):c.fontMetrics(e,t.getAttribute("style")?t:u).h};if(o=[d,S,C,x,_,k,w].join(),o!==t.textCache){for(t.textCache=o;A--;)u.removeChild(v[A]);m||_||S||w||-1!==d.indexOf(" ")?(e=/<.*class="([^"]+)".*>/,n=/<.*style="([^"]+)".*>/,i=/<.*href="([^"]+)".*>/,b&&b.appendChild(u),d=m?d.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[d],d=g(d,function(t){return""!==t}),f(d,function(o,d){var m,v=0;o=o.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),m=o.split("|||"),f(m,function(o){if(""!==o||1===m.length){var f,g,b={},x=p.createElementNS(c.SVG_NS,"tspan");if(e.test(o)&&(f=o.match(e)[1],a(x,"class",f)),n.test(o)&&(g=o.match(n)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),a(x,"style",g)),i.test(o)&&!h&&(a(x,"onclick",'location.href="'+o.match(i)[1]+'"'),l(x,{cursor:"pointer"})),o=(o.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">")," "!==o){if(x.appendChild(p.createTextNode(o)),v?b.dx=0:d&&null!==y&&(b.x=y),a(x,b),u.appendChild(x),!v&&s&&(!P&&h&&l(x,{display:"block"}),a(x,"dy",T(x))),w){b=o.replace(/([^\^])-/g,"$1- ").split(" "),f=1w,void 0===r&&(r=o),o&&1!==b.length?(x.removeChild(x.firstChild),k.unshift(b.pop())):(b=k,k=[],b.length&&!C&&(x=p.createElementNS(R,"tspan"),a(x,{dy:A,x:y}),g&&a(x,"style",g),u.appendChild(x)),_>w&&(w=_)),b.length&&x.appendChild(p.createTextNode(b.join(" ").replace(/- /g,"-")));t.rotation=M}v++}}}),s=s||u.childNodes.length}),r&&t.attr("title",t.textStr),b&&b.removeChild(u),_&&t.applyTextOutline&&t.applyTextOutline(_)):u.appendChild(p.createTextNode(d.replace(/</g,"<").replace(/>/g,">")))}},getContrast:function(t){return t=s(t).rgba,510Math.abs(r.end-r.start-2*Math.PI));var u=Math.cos(a),h=Math.sin(a),d=Math.cos(l),l=Math.sin(l);return r=.001>r.end-a-Math.PI?0:1,o=["M",t+o*u,e+s*h,"A",o,s,0,r,1,t+o*d,e+s*l],c(n)&&o.push(i?"M":"L",t+n*d,e+n*l,"A",n,n,0,r,0,t+n*u,e+n*h),o.push(i?"":"Z"),o},callout:function(t,e,n,i,r){var a=Math.min(r&&r.r||0,n,i),o=a+6,s=r&&r.anchorX;r=r&&r.anchorY;var l;return l=["M",t+a,e,"L",t+n-a,e,"C",t+n,e,t+n,e,t+n,e+a,"L",t+n,e+i-a,"C",t+n,e+i,t+n,e+i,t+n-a,e+i,"L",t+a,e+i,"C",t,e+i,t,e+i,t,e+i-a,"L",t,e+a,"C",t,e,t,e,t+a,e],s&&s>n?r>e+o&&rs?r>e+o&&ri&&s>t+o&&sr&&s>t+o&&st?t+3:Math.round(1.2*t),{h:e,b:Math.round(.8*e),f:t}},rotCorr:function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:i}},label:function(n,i,r,a,o,s,l,u,h){var d,p,v,g,y,b,w,x,_,S,C,k,T,M=this,L=M.g("button"!==h&&"label"),E=L.text=M.text("",0,0,l).attr({zIndex:1}),D=0,P=3,R=0,F={},B=/^url\((.*?)\)$/.test(a),I=B;h&&L.addClass("highcharts-"+h),I=B,S=function(){return(x||0)%2/2},C=function(){var t=E.element.style,e={};p=(void 0===v||void 0===g||w)&&c(E.textStr)&&E.getBBox(),L.width=(v||p.width||0)+2*P+R,L.height=(g||p.height||0)+2*P,_=P+M.fontMetrics(t&&t.fontSize,E).b,I&&(d||(L.box=d=M.symbols[a]||B?M.symbol(a):M.rect(),d.addClass(("button"===h?"":"highcharts-label-box")+(h?" highcharts-"+h+"-box":"")),d.add(L),t=S(),e.x=t,e.y=(u?-_:0)+t),e.width=Math.round(L.width),e.height=Math.round(L.height),d.attr(m(e,F)),F={})},k=function(){var t,e=R+P;t=u?0:_,c(v)&&p&&("center"===w||"right"===w)&&(e+={center:.5,right:1}[w]*(v-p.width)),e===E.x&&t===E.y||(E.attr("x",e),void 0!==t&&E.attr("y",t)),E.x=e,E.y=t},T=function(t,e){d?d.attr(t,e):F[t]=e},L.onAdd=function(){E.add(L),L.attr({text:n||0===n?n:"",x:i,y:r}),d&&c(o)&&L.attr({anchorX:o,anchorY:s})},L.widthSetter=function(e){v=t.isNumber(e)?e:null},L.heightSetter=function(t){g=t},L["text-alignSetter"]=function(t){w=t},L.paddingSetter=function(t){c(t)&&t!==P&&(P=L.padding=t,k())},L.paddingLeftSetter=function(t){c(t)&&t!==R&&(R=t,k())},L.alignSetter=function(t){t={left:0,center:.5,right:1}[t],t!==D&&(D=t,p&&L.attr({x:y}))},L.textSetter=function(t){void 0!==t&&E.textSetter(t),C(),k()},L["stroke-widthSetter"]=function(t,e){t&&(I=!0),x=this["stroke-width"]=t,T(e,t)},L.strokeSetter=L.fillSetter=L.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(I=!0),L[e]=t),T(e,t)},L.anchorXSetter=function(t,e){o=L.anchorX=t,T(e,Math.round(t)-S()-y)},L.anchorYSetter=function(t,e){s=L.anchorY=t,T(e,t-b)},L.xSetter=function(t){L.x=t,D&&(t-=D*((v||p.width)+2*P)),y=Math.round(t),L.attr("translateX",y)},L.ySetter=function(t){b=L.y=Math.round(t),L.attr("translateY",b)};var j=L.css;return m(L,{css:function(t){if(t){var e={};t=A(t),f(L.textProps,function(n){void 0!==t[n]&&(e[n]=t[n],delete t[n])}),E.css(e)}return j.call(L,t)},getBBox:function(){return{width:p.width+2*P,height:p.height+2*P,x:p.x-P,y:p.y-P}},shadow:function(t){return t&&(C(),d&&d.shadow(t)),L},destroy:function(){O(L.element,"mouseenter"),O(L.element,"mouseleave"),E&&(E=E.destroy()),d&&(d=d.destroy()),e.prototype.destroy.call(L),L=M=C=k=T=null}})}}),t.Renderer=n}(t),function(t){var e=t.attr,n=t.createElement,i=t.css,r=t.defined,a=t.each,o=t.extend,s=t.isFirefox,l=t.isMS,u=t.isWebKit,c=t.pInt,h=t.SVGRenderer,d=t.win,p=t.wrap;o(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=o(this.styles,t),i(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,o=this.translateY||0,s=this.x||0,l=this.y||0,h=this.textAlign||"left",d={left:0,center:.5,right:1}[h],p=this.styles;if(i(e,{marginLeft:n,marginTop:o}),this.shadows&&a(this.shadows,function(t){i(t,{marginLeft:n+1,marginTop:o+1})}),this.inverted&&a(e.childNodes,function(n){t.invertChild(n,e)}),"SPAN"===e.tagName){var f=this.rotation,m=c(this.textWidth),v=p&&p.whiteSpace,g=[f,h,e.innerHTML,this.textWidth,this.textAlign].join();g!==this.cTT&&(p=t.fontMetrics(e.style.fontSize).b,r(f)&&this.setSpanRotation(f,d,p),i(e,{width:"",whiteSpace:v||"nowrap"}),e.offsetWidth>m&&/[ \-]/.test(e.textContent||e.innerText)&&i(e,{width:m+"px",display:"block",whiteSpace:v||"normal"}),this.getSpanCorrection(e.offsetWidth,p,d,f,h)),i(e,{left:s+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),u&&(p=e.offsetHeight),this.cTT=g}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,n){var r={},a=l?"-ms-transform":u?"-webkit-transform":s?"MozTransform":d.opera?"-o-transform":"";r[a]=r.transform="rotate("+t+"deg)",r[a+(s?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",i(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),o(h.prototype,{html:function(t,i,r){var s=this.createElement("span"),l=s.element,u=s.renderer,c=u.isSVG,h=function(t,e){a(["opacity","visibility"],function(n){p(t,n+"Setter",function(t,n,i,r){t.call(this,n,i,r),e[i]=n})})};return s.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,l.innerHTML=this.textStr=t,s.htmlUpdateTransform()},c&&h(s,s.element.style),s.xSetter=s.ySetter=s.alignSetter=s.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),s[e]=t,s.htmlUpdateTransform()},s.attr({text:t,x:Math.round(i),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",s.css=s.htmlCss,c&&(s.add=function(t){var i,r=u.box.parentNode,c=[];if(this.parentGroup=t){if(i=t.div,!i){for(;t;)c.push(t),t=t.parentGroup;a(c.reverse(),function(t){var a,l=e(t.element,"class");l&&(l={className:l}),i=t.div=t.div||n("div",l,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},i||r),a=i.style,o(t,{classSetter:function(t){this.element.setAttribute("class",t),i.className=t},on:function(){return c[0].div&&s.on.apply({element:c[0].div},arguments),t},translateXSetter:function(e,n){a.left=e+"px",t[n]=e,t.doTransform=!0},translateYSetter:function(e,n){a.top=e+"px",t[n]=e,t.doTransform=!0}}),h(t,a)})}}else i=r;return i.appendChild(l),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s}})}(t),function(t){var e,n,i=t.createElement,r=t.css,a=t.defined,o=t.deg2rad,s=t.discardElement,l=t.doc,u=t.each,c=t.erase,h=t.extend;e=t.extendClass;var d=t.isArray,p=t.isNumber,f=t.isObject,m=t.merge;n=t.noop;var v=t.pick,g=t.pInt,y=t.SVGElement,b=t.SVGRenderer,w=t.win;t.svg||(n={docMode8:l&&8===l.documentMode,init:function(t,e){var n=["<",e,' filled="f" stroked="f"'],r=["position: ","absolute",";"],a="div"===e;("shape"===e||a)&&r.push("left:0;top:0;width:1px;height:1px;"),r.push("visibility: ",a?"hidden":"visible"),n.push(' style="',r.join(""),'"/>'),e&&(n=a||"span"===e||"img"===e?n.join(""):t.prepVML(n),this.element=i(n)),this.renderer=t},add:function(t){var e=this.renderer,n=this.element,i=e.box,r=t&&t.inverted,i=t?t.element||t:i;return t&&(this.parentGroup=t),r&&e.invertChild(n,i),i.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr("class",this.className),this},updateTransform:y.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=Math.cos(t*o),n=Math.sin(t*o);r(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-n,", M21=",n,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,n,i,a){var s,l=i?Math.cos(i*o):1,u=i?Math.sin(i*o):0,c=v(this.elemHeight,this.element.offsetHeight);this.xCorr=0>l&&-t,this.yCorr=0>u&&-c,s=0>l*u,this.xCorr+=u*e*(s?1-n:n),this.yCorr-=l*e*(i?s?n:1-n:1),a&&"left"!==a&&(this.xCorr-=t*n*(0>l?-1:1),i&&(this.yCorr-=c*n*(0>u?-1:1)),r(this.element,{textAlign:a}))},pathToVML:function(t){for(var e=t.length,n=[];e--;)p(t[e])?n[e]=Math.round(10*t[e])-5:"Z"===t[e]?n[e]="x":(n[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(n[e+5]===n[e+7]&&(n[e+7]+=t[e+7]>t[e+5]?1:-1),n[e+6]===n[e+8]&&(n[e+8]+=t[e+8]>t[e+6]?1:-1)));return n.join(" ")||"x"},clip:function(t){var e,n=this;return t?(e=t.members,c(e,n),e.push(n),n.destroyClip=function(){c(e,n)},t=t.getCSS(n)):(n.destroyClip&&n.destroyClip(),t={clip:n.docMode8?"inherit":"rect(auto)"}),n.css(t)},css:y.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&s(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),y.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=w.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var n;return t=t.split(/[ ,]/),n=t.length,9!==n&&11!==n||(t[n-4]=t[n-2]=g(t[n-2])-10*e),t.join(" ")},shadow:function(t,e,n){var r,a,o,s,l,u,c,h=[],d=this.element,p=this.renderer,f=d.style,m=d.path;if(m&&"string"!=typeof m.value&&(m="x"),l=m,t){for(u=v(t.width,3),c=(t.opacity||.15)/u,r=1;3>=r;r++)s=2*u+1-2*r,n&&(l=this.cutOffPath(m.value,s+.5)),o=[''],a=i(p.prepVML(o),null,{left:g(f.left)+v(t.offsetX,1),top:g(f.top)+v(t.offsetY,1)}),n&&(a.cutOff=s+1),o=[''],i(p.prepVML(o),null,null,a),e?e.element.appendChild(a):d.parentNode.insertBefore(a,d),h.push(a);this.shadows=h}return this},updateShadows:n,setAttr:function(t,e){this.docMode8?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){(this.added?this.element:this).className=t},dashstyleSetter:function(t,e,n){(n.getElementsByTagName("stroke")[0]||i(this.renderer.prepVML([""]),null,null,n))[e]=t||"solid",this[e]=t},dSetter:function(t,e,n){var i=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),n.path=t=this.pathToVML(t),i)for(n=i.length;n--;)i[n].path=i[n].cutOff?this.cutOffPath(t,i[n].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,n){var i=n.nodeName;"SPAN"===i?n.style.color=t:"IMG"!==i&&(n.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,n,e,this)))},"fill-opacitySetter":function(t,e,n){i(this.renderer.prepVML(["<",e.split("-")[0],' opacity="',t,'"/>']),null,null,n)},opacitySetter:n,rotationSetter:function(t,e,n){n=n.style,this[e]=n[e]=t,n.left=-Math.round(Math.sin(t*o)+1)+"px",n.top=Math.round(Math.cos(t*o))+"px"},strokeSetter:function(t,e,n){this.setAttr("strokecolor",this.renderer.color(t,n,e,this))},"stroke-widthSetter":function(t,e,n){n.stroked=!!t,this[e]=t,p(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,n){"inherit"===t&&(t="visible"),this.shadows&&u(this.shadows,function(n){n.style[e]=t}),"DIV"===n.nodeName&&(t="hidden"===t?"-999em":0,this.docMode8||(n.style[e]=t?"visible":"hidden"),e="top"),n.style[e]=t},xSetter:function(t,e,n){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):n.style[e]=t},zIndexSetter:function(t,e,n){n.style[e]=t}},n["stroke-opacitySetter"]=n["fill-opacitySetter"],t.VMLElement=n=e(y,n),n.prototype.ySetter=n.prototype.widthSetter=n.prototype.heightSetter=n.prototype.xSetter,n={Element:n,isIE8:-1'],i(c.prepVML(s),null,null,n)};if(m=e[0],_=e[e.length-1],0_[0]&&e.push([1,_[1]]),u(e,function(e,n){h.test(e[1])?(o=t.color(e[1]),p=o.get("rgb"),f=o.get("a")):(p=e[1],f=1),S.push(100*e[0]+"% "+p),n?(g=f,y=p):(v=f,b=p)}),"fill"===r)if("gradient"===l)r=w.x1||w[0]||0,e=w.y1||w[1]||0,m=w.x2||w[2]||0,w=w.y2||w[3]||0,x='angle="'+(90-180*Math.atan((w-e)/(m-r))/Math.PI)+'"',C();else{var k,d=w.r,A=2*d,T=2*d,M=w.cx,L=w.cy,E=n.radialReference,d=function(){E&&(k=a.getBBox(),M+=(E[0]-k.x)/k.width-.5,L+=(E[1]-k.y)/k.height-.5,A*=E[2]/k.width,T*=E[2]/k.height),x='src="'+t.getOptions().global.VMLRadialGradientURL+'" size="'+A+","+T+'" origin="0.5,0.5" position="'+M+","+L+'" color2="'+b+'" ',C()};a.added?d():a.onAdd=d,d=y}else d=p}else h.test(e)&&"IMG"!==n.tagName?(o=t.color(e),a[r+"-opacitySetter"](o.get("a"),r,n),d=o.get("rgb")):(d=n.getElementsByTagName(r),d.length&&(d[0].opacity=1,d[0].type="solid"),d=e);return d},prepVML:function(t){var e=this.isIE8;return t=t.join(""),e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=o(!0,t.defaultOptions,e),n(),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,n()}(t),function(t){var e=t.correctFloat,n=t.defined,i=t.destroyObjectProperties,r=t.isNumber,a=t.merge,o=t.pick,s=t.deg2rad;t.Tick=function(t,e,n,i){this.axis=t,this.pos=e,this.type=n||"",this.isNewLabel=this.isNew=!0,n||i||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,i=this.axis,r=i.options,s=i.chart,l=i.categories,u=i.names,c=this.pos,h=r.labels,d=i.tickPositions,p=c===d[0],f=c===d[d.length-1],u=l?o(l[c],u[c],c):c,l=this.label,d=d.info;i.isDatetimeAxis&&d&&(t=r.dateTimeLabelFormats[d.higherRanks[c]||d.unitName]),this.isFirst=p,this.isLast=f,r=i.labelFormatter.call({axis:i,chart:s,isFirst:p,isLast:f,dateTimeLabelFormat:t,value:i.isLog?e(i.lin2log(u)):u,pos:c}),n(l)?l&&l.attr({text:r}):(this.labelLength=(this.label=l=n(r)&&h.enabled?s.renderer.text(r,0,0,h.useHTML).css(a(h.style)).add(i.labelGroup):null)&&l.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,n=this.axis,i=t.x,r=n.chart.chartWidth,a=n.chart.spacing,l=o(n.labelLeft,Math.min(n.pos,a[3])),a=o(n.labelRight,Math.max(n.pos+n.len,r-a[1])),u=this.label,c=this.rotation,h={left:0,center:.5,right:1}[n.labelAlign],d=u.getBBox().width,p=n.getSlotWidth(),f=p,m=1,v={};c?0>c&&i-h*da&&(e=Math.round((r-i)/Math.cos(c*s))):(r=i+(1-h)*d,i-h*da&&(f=a-t.x+f*h,m=-1),f=Math.min(p,f),ff||n.autoRotation&&(u.styles||{}).width)&&(e=f)),e&&(v.width=e,(n.options.labels.style||{}).textOverflow||(v.textOverflow="ellipsis"),u.css(v))},getPosition:function(t,e,n,i){var r=this.axis,a=r.chart,o=i&&a.oldChartHeight||a.chartHeight;return{x:t?r.translate(e+n,null,null,i)+r.transB:r.left+r.offset+(r.opposite?(i&&a.oldChartWidth||a.chartWidth)-r.right-r.left:0),y:t?o-r.bottom+r.offset-(r.opposite?r.height:0):o-r.translate(e+n,null,null,i)-r.transB}},getLabelPosition:function(t,e,i,r,a,o,l,u){var c=this.axis,h=c.transA,d=c.reversed,p=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},m=a.y;return n(m)||(m=0===c.side?i.rotation?-8:-i.getBBox().height:2===c.side?f.y+8:Math.cos(i.rotation*s)*(f.y-i.getBBox(!1,0).height/2)),t=t+a.x+f.x-(o&&r?o*h*(d?-1:1):0),e=e+m-(o&&!r?o*h*(d?1:-1):0),p&&(i=l/(u||1)%p,c.opposite&&(i=p-i-1),e+=c.labelOffset/p*i),{x:t,y:Math.round(e)}},getMarkPath:function(t,e,n,i,r,a){return a.crispLine(["M",t,e,"L",t+(r?0:-n),e+(r?n:0)],i)},renderGridLine:function(t,e,n){var i=this.axis,r=i.options,a=this.gridLine,o={},s=this.pos,l=this.type,u=i.tickmarkOffset,c=i.chart.renderer,h=l?l+"Grid":"grid",d=r[h+"LineWidth"],p=r[h+"LineColor"],r=r[h+"LineDashStyle"];a||(o.stroke=p,o["stroke-width"]=d,r&&(o.dashstyle=r),l||(o.zIndex=1),t&&(o.opacity=0),this.gridLine=a=c.path().attr(o).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(i.gridGroup)),!t&&a&&(t=i.getPlotLinePath(s+u,a.strokeWidth()*n,t,!0))&&a[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,n){var i=this.axis,r=i.options,a=i.chart.renderer,s=this.type,l=s?s+"Tick":"tick",u=i.tickSize(l),c=this.mark,h=!c,d=t.x;t=t.y;var p=o(r[l+"Width"],!s&&i.isXAxis?1:0),r=r[l+"Color"];u&&(i.opposite&&(u[0]=-u[0]),h&&(this.mark=c=a.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(i.axisGroup),c.attr({stroke:r,"stroke-width":p})),c[h?"attr":"animate"]({d:this.getMarkPath(d,t,u[0],c.strokeWidth()*n,i.horiz,a),opacity:e}))},renderLabel:function(t,e,n,i){var a=this.axis,s=a.horiz,l=a.options,u=this.label,c=l.labels,h=c.step,d=a.tickmarkOffset,p=!0,f=t.x;t=t.y,u&&r(f)&&(u.xy=t=this.getLabelPosition(f,t,u,s,c,d,i,h),this.isFirst&&!this.isLast&&!o(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!o(l.showLastLabel,1)?p=!1:!s||a.isRadial||c.step||c.rotation||e||0===n||this.handleOverflow(t),h&&i%h&&(p=!1),p&&r(t.y)?(t.opacity=n,u[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0),this.isNew=!1)},render:function(t,e,n){var i=this.axis,r=i.horiz,a=this.getPosition(r,this.pos,i.tickmarkOffset,e),s=a.x,l=a.y,i=r&&s===i.pos+i.len||!r&&l===i.pos?-1:1;n=o(n,1),this.isActive=!0,this.renderGridLine(e,n,i),this.renderMark(a,n,i),this.renderLabel(a,e,n,t)},destroy:function(){i(this,this.axis)}}}(t);var e=function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,a=t.color,o=t.correctFloat,s=t.defaultOptions,l=t.defined,u=t.deg2rad,c=t.destroyObjectProperties,h=t.each,d=t.extend,p=t.fireEvent,f=t.format,m=t.getMagnitude,v=t.grep,g=t.inArray,y=t.isArray,b=t.isNumber,w=t.isString,x=t.merge,_=t.normalizeTickInterval,S=t.objectEach,C=t.pick,k=t.removeEvent,A=t.splat,T=t.syncTimeout,M=t.Tick,L=function(){this.init.apply(this,arguments)};return t.extend(L.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,n){var i=n.isX,r=this;r.chart=t,r.horiz=t.inverted&&!r.isZAxis?!i:i,r.isXAxis=i,r.coll=r.coll||(i?"xAxis":"yAxis"),r.opposite=n.opposite,r.side=n.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(n);var a=this.options,o=a.type;r.labelFormatter=a.labels.formatter||r.defaultLabelFormatter,r.userOptions=n,r.minPixelPadding=0,r.reversed=a.reversed,r.visible=!1!==a.visible,r.zoomEnabled=!1!==a.zoomEnabled,r.hasNames="category"===o||!0===a.categories,r.categories=a.categories||r.hasNames,r.names=r.names||[],r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===o,r.isDatetimeAxis="datetime"===o,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=l(a.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=a.minRange||a.maxZoom,r.range=a.range,r.offset=a.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=C(a.crosshair,A(t.options.tooltip.crosshairs)[i?0:1],!1),n=r.options.events,-1===g(r,t.axes)&&(i?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&!r.isZAxis&&i&&void 0===r.reversed&&(r.reversed=!0),S(n,function(t,n){e(r,n,t)}),r.lin2log=a.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log)},setOptions:function(t){this.options=x(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],x(s[this.coll],t))},defaultLabelFormatter:function(){var e,n=this.axis,i=this.value,r=n.categories,a=this.dateTimeLabelFormat,o=s.lang,l=o.numericSymbols,o=o.numericSymbolMagnitude||1e3,u=l&&l.length,c=n.options.labels.format,n=n.isLog?Math.abs(i):n.tickInterval;if(c)e=f(c,this);else if(r)e=i;else if(a)e=t.dateFormat(a,i);else if(u&&1e3<=n)for(;u--&&void 0===e;)r=Math.pow(o,u+1),n>=r&&0===10*i%r&&null!==l[u]&&0!==i&&(e=t.numberFormat(i/r,-1)+l[u]);return void 0===e&&(e=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),h(t.series,function(n){if(n.visible||!e.options.chart.ignoreHiddenSeries){var a,o=n.options,s=o.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=s&&(s=null),t.isXAxis?(o=n.xData,o.length&&(n=r(o),b(n)||n instanceof Date||(o=v(o,function(t){return b(t)}),n=r(o)),t.dataMin=Math.min(C(t.dataMin,o[0]),n),t.dataMax=Math.max(C(t.dataMax,o[0]),i(o)))):(n.getExtremes(),a=n.dataMax,n=n.dataMin,l(n)&&l(a)&&(t.dataMin=Math.min(C(t.dataMin,n),n),t.dataMax=Math.max(C(t.dataMax,a),a)),l(s)&&(t.threshold=s),(!o.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})},translate:function(t,e,n,i,r,a){var o=this.linkedParent||this,s=1,l=0,u=i?o.oldTransA:o.transA;i=i?o.oldMin:o.min;var c=o.minPixelPadding;return r=(o.isOrdinal||o.isBroken||o.isLog&&r)&&o.lin2val,u||(u=o.transA),n&&(s*=-1,l=o.len),o.reversed&&(s*=-1,l-=s*(o.sector||o.len)),e?(t=(t*s+l-c)/u+i,r&&(t=o.lin2val(t))):(r&&(t=o.val2lin(t)),t=s*(t-i)*u+l+s*c+(b(a)?u*a:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,n,i,r){var a,o,s,l=this.chart,u=this.left,c=this.top,h=n&&l.oldChartHeight||l.chartHeight,d=n&&l.oldChartWidth||l.chartWidth;a=this.transB;var p=function(t,e,n){return(tn)&&(i?t=Math.min(Math.max(e,t),n):s=!0),t};return r=C(r,this.translate(t,null,null,n)),t=n=Math.round(r+a),a=o=Math.round(h-r-a),b(r)?this.horiz?(a=c,o=h-this.bottom,t=n=p(t,u,u+this.width)):(t=u,n=d-this.right,a=o=p(a,c,c+this.height)):s=!0,s&&!i?null:l.renderer.crispLine(["M",t,a,"L",n,o],e||1)},getLinearTickPositions:function(t,e,n){var i,r=o(Math.floor(e/t)*t);n=o(Math.ceil(n/t)*t);var a=[];if(this.single)return[e];for(e=r;e<=n&&(a.push(e),e=o(e+t),e!==i);)i=e;return a},getMinorTickPositions:function(){var t=this,e=t.options,n=t.tickPositions,i=t.minorTickInterval,r=[],a=t.pointRangePadding||0,o=t.min-a,a=t.max+a,s=a-o;if(s&&s/i=this.minRange,c=this.minRange,t=(c-f+p)/2,t=[p-t,C(d.min,p-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),p=i(t),f=[p+c,C(d.max,p+c)],e&&(f[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),f=r(f),f-p=T?(n=T,x=0):s.dataMax<=T&&(i=T,w=0)),s.min=C(r,n,s.dataMin),s.max=C(a,i,s.dataMax)),d&&(s.positiveValuesOnly&&!e&&0>=Math.min(s.min,C(s.dataMin,s.min))&&t.error(10,1),s.min=o(f(s.min),15),s.max=o(f(s.max),15)),s.range&&l(s.max)&&(s.userMin=s.min=r=Math.max(s.dataMin,s.minFromRange()),s.userMax=a=s.max,s.range=null),p(s,"foundExtremes"),s.beforePadding&&s.beforePadding(),s.adjustForMinRange(),!(A||s.axisPointRange||s.usePercentage||y)&&l(s.min)&&l(s.max)&&(f=s.max-s.min)&&(!l(r)&&x&&(s.min-=f*x),!l(a)&&w&&(s.max+=f*w)),b(c.softMin)&&(s.min=Math.min(s.min,c.softMin)),b(c.softMax)&&(s.max=Math.max(s.max,c.softMax)),b(c.floor)&&(s.min=Math.max(s.min,c.floor)),b(c.ceiling)&&(s.max=Math.min(s.max,c.ceiling)),M&&l(s.dataMin)&&(T=T||0,!l(r)&&s.min=T?s.min=T:!l(a)&&s.max>T&&s.dataMax<=T&&(s.max=T)),s.tickInterval=s.min===s.max||void 0===s.min||void 0===s.max?1:y&&!S&&k===s.linkedParent.options.tickPixelInterval?S=s.linkedParent.tickInterval:C(S,this.tickAmount?(s.max-s.min)/Math.max(this.tickAmount-1,1):void 0,A?1:(s.max-s.min)*k/Math.max(s.len,k)),g&&!e&&h(s.series,function(t){t.processData(s.min!==s.oldMin||s.max!==s.oldMax)}),s.setAxisTranslation(!0),s.beforeSetTickPositions&&s.beforeSetTickPositions(),s.postProcessTickInterval&&(s.tickInterval=s.postProcessTickInterval(s.tickInterval)),s.pointRange&&!S&&(s.tickInterval=Math.max(s.pointRange,s.tickInterval)),e=C(c.minTickInterval,s.isDatetimeAxis&&s.closestPointRange),!S&&s.tickIntervals.tickInterval&&1e3s.max)),!!this.tickAmount)),this.tickAmount||(s.tickInterval=s.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,n=e.tickPositions,i=e.tickPositioner,r=e.startOnTick,a=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===e.minorTickInterval&&this.tickInterval?this.tickInterval/5:e.minorTickInterval,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=n&&n.slice(),!t&&(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),t.length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=t=i),this.paddedTicks=t.slice(0),this.trimTicks(t,r,a),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),n||i||this.adjustTickAmount())},trimTicks:function(t,e,n){var i=t[0],r=t[t.length-1],a=this.minPointOffset||0;if(!this.isLinked){if(e&&-(1/0)!==i)this.min=i;else for(;this.min-a>t[0];)t.shift();if(n)this.max=r;else for(;this.max+ae&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,n=this.tickAmount,i=this.finalTickAmt,r=e&&e.length;if(rn&&(this.tickInterval*=2,this.setTickPositions());if(l(i)){for(t=n=e.length;t--;)(3===i&&1===t%2||2>=i&&0r&&(t=r)),l(i)&&(er&&(e=r))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,n=this.options,i=n.offsets||[0,0,0,0],r=this.horiz,a=this.width=Math.round(t.relativeLength(C(n.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),o=this.height=Math.round(t.relativeLength(C(n.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),s=this.top=Math.round(t.relativeLength(C(n.top,e.plotTop+i[0]),e.plotHeight,e.plotTop)),n=this.left=Math.round(t.relativeLength(C(n.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-o-s,this.right=e.chartWidth-a-n,this.len=Math.max(r?a:o,0),this.pos=r?n:s},getExtremes:function(){var t=this.isLog,e=this.lin2log;return{min:t?o(e(this.min)):this.min,max:t?o(e(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,n=this.lin2log,i=e?n(this.min):this.min,e=e?n(this.max):this.max;return null===t?t=i:i>t?t=i:et?"right":195t?"left":"center"},tickSize:function(t){var e=this.options,n=e[t+"Length"],i=C(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(i&&n)return"inside"===e[t+"Position"]&&(n=-n),[n,i]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,n,i=this.options.labels,r=this.horiz,a=this.tickInterval,o=a,s=this.len/(((this.categories?1:0)+this.max-this.min)/a),c=i.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,f=function(t){return t/=s||1,t=1=n)&&(e=f(Math.abs(d.h/Math.sin(u*n))),i=e+Math.abs(n/360),i(n.step||0)&&!n.rotation&&(this.staggerLines||1)*this.len/i||!e&&(r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,n,i=this.chart,r=i.renderer,a=this.tickPositions,o=this.ticks,s=this.options.labels,l=this.horiz,u=this.getSlotWidth(),c=Math.max(1,Math.round(u-2*(s.padding||5))),d={},p=this.labelMetrics(),f=s.style&&s.style.textOverflow,m=0;if(w(s.rotation)||(d.rotation=s.rotation||0),h(a,function(t){(t=o[t])&&t.labelLength>m&&(m=t.labelLength)}),this.maxLabelLength=m,this.autoRotation)m>c&&m>p.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(u&&(t={width:c+"px"},!f))for(t.textOverflow="clip",e=a.length;!l&&e--;)n=a[e],(c=o[n].label)&&(c.styles&&"ellipsis"===c.styles.textOverflow?c.css({textOverflow:"clip"}):o[n].labelLength>u&&c.css({width:u+"px"}),c.getBBox().height>this.len/a.length-(p.h-p.f)&&(c.specCss={textOverflow:"ellipsis"}));d.rotation&&(t={width:(m>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight)+"px"},f||(t.textOverflow="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),h(a,function(e){var n=(e=o[e])&&e.label;n&&(n.attr(d),t&&n.css(x(t,n.specCss)),delete n.specCss,e.rotation=d.rotation)}),this.tickRotCorr=r.rotCorr(p.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||l(this.min)&&l(this.max)&&!!this.tickPositions},addTitle:function(t){var e,n=this.chart.renderer,i=this.horiz,r=this.opposite,a=this.options.title;this.axisTitle||((e=a.textAlign)||(e=(i?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[a.align]),this.axisTitle=n.text(a.text,0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation||0,align:e}).addClass("highcharts-axis-title").css(a.style).add(this.axisGroup),this.axisTitle.isNew=!0),a.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](!0)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new M(this,t)},getOffset:function(){var t,e,n,i=this,r=i.chart,a=r.renderer,o=i.options,s=i.tickPositions,u=i.ticks,c=i.horiz,d=i.side,p=r.inverted&&!i.isZAxis?[1,0,3,2][d]:d,f=0,m=0,v=o.title,g=o.labels,y=0,b=r.axisOffset,r=r.clipOffset,w=[-1,1,1,-1][d],x=o.className,_=i.axisParent,k=this.tickSize("tick");t=i.hasData(),i.showAxis=e=t||C(o.showEmpty,!0),i.staggerLines=i.horiz&&g.staggerLines,i.axisGroup||(i.gridGroup=a.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(x||"")).add(_),i.axisGroup=a.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(x||"")).add(_),i.labelGroup=a.g("axis-labels").attr({zIndex:g.zIndex||7}).addClass("highcharts-"+i.coll.toLowerCase()+"-labels "+(x||"")).add(_)),t||i.isLinked?(h(s,function(t,e){i.generateTick(t,e)}),i.renderUnsquish(),!1===g.reserveSpace||0!==d&&2!==d&&{1:"left",3:"right"}[d]!==i.labelAlign&&"center"!==i.labelAlign||h(s,function(t){y=Math.max(u[t].getLabelSize(),y)}),i.staggerLines&&(y*=i.staggerLines,i.labelOffset=y*(i.opposite?-1:1))):S(u,function(t,e){t.destroy(),delete u[e]}),v&&v.text&&!1!==v.enabled&&(i.addTitle(e),e&&!1!==v.reserveSpace&&(i.titleOffset=f=i.axisTitle.getBBox()[c?"height":"width"],n=v.offset,m=l(n)?0:C(v.margin,c?5:10))),i.renderLine(),i.offset=w*C(o.offset,b[d]),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},a=0===d?-i.labelMetrics().h:2===d?i.tickRotCorr.y:0,m=Math.abs(y)+m,y&&(m=m-a+w*(c?C(g.y,i.tickRotCorr.y+8*w):g.x)),i.axisTitleMargin=C(n,m),b[d]=Math.max(b[d],i.axisTitleMargin+f+w*i.offset,m,t&&s.length&&k?k[0]+w*i.offset:0),s=2*Math.floor(i.axisLine.strokeWidth()/2),0=this.min&&t<=this.max)&&(i[t]||(i[t]=new M(this,t)),r&&i[t].isNew&&i[t].render(e,!0,.1),i[t].render(e))},render:function(){var e,i,r=this,a=r.chart,o=r.options,s=r.isLog,l=r.lin2log,u=r.isLinked,c=r.tickPositions,d=r.axisTitle,p=r.ticks,f=r.minorTicks,m=r.alternateBands,v=o.stackLabels,g=o.alternateGridColor,y=r.tickmarkOffset,w=r.axisLine,x=r.showAxis,_=n(a.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,h([p,f,m],function(t){S(t,function(t){t.isActive=!1})}),(r.hasData()||u)&&(r.minorTickInterval&&!r.categories&&h(r.getMinorTickPositions(),function(t){r.renderMinorTick(t)}),c.length&&(h(c,function(t,e){r.renderTick(t,e)}),y&&(0===r.min||r.single)&&(p[-1]||(p[-1]=new M(r,(-1),null,(!0))),p[-1].render(-1))),g&&h(c,function(n,o){i=void 0!==c[o+1]?c[o+1]+y:r.max-y,0===o%2&&n=d.second?0:_*Math.floor(b.getMilliseconds()/_)),x>=d.second&&b[n.hcSetSeconds](x>=d.minute?0:_*Math.floor(b.getSeconds()/_)),x>=d.minute&&b[n.hcSetMinutes](x>=d.hour?0:_*Math.floor(b[n.hcGetMinutes]()/_)),x>=d.hour&&b[n.hcSetHours](x>=d.day?0:_*Math.floor(b[n.hcGetHours]()/_)),x>=d.day&&b[n.hcSetDate](x>=d.month?1:_*Math.floor(b[n.hcGetDate]()/_)),x>=d.month&&(b[n.hcSetMonth](x>=d.year?0:_*Math.floor(b[n.hcGetMonth]()/_)),p=b[n.hcGetFullYear]()),x>=d.year&&b[n.hcSetFullYear](p-p%_),x===d.week&&b[n.hcSetDate](b[n.hcGetDate]()-b[n.hcGetDay]()+h(c,1)),p=b[n.hcGetFullYear](),c=b[n.hcGetMonth]();var S=b[n.hcGetDate](),C=b[n.hcGetHours]();for((n.hcTimezoneOffset||n.hcGetTimezoneOffset)&&(m=(!y||!!n.hcGetTimezoneOffset)&&(l-e>4*d.month||u(e)!==u(l)),b=b.getTime(),f=u(b),b=new n(b+f)),y=b.getTime(),e=1;yv.length&&o(v,function(t){0===t%18e5&&"000000000"===i("%H%M%S%L",t)&&(g[t]="day")})}return v.info=s(t,{higherRanks:g,totalRange:x*_}),v},e.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var i,r=d[e[0]],a=e[1];for(i=0;ie&&(!s||v<=o)&&void 0!==v&&d.push(v),v>o&&(g=!0),v=m;else e=c(e),o=c(o),t=l[s?"minorTickInterval":"tickInterval"],t=a("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(s?5:1)*(o-e)/((s?u/this.tickPositions.length:u)||1)),t=r(t,null,n(t)),d=i(this.getLinearTickPositions(t,e,o),h),s||(this._minorAutoInterval=t/5);return s||(this.tickInterval=t),d},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(t),function(t,e){var n=t.arrayMax,i=t.arrayMin,r=t.defined,a=t.destroyObjectProperties,o=t.each,s=t.erase,l=t.merge,u=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,n=e.axis,i=n.horiz,a=e.options,o=a.label,s=e.label,c=a.to,h=a.from,d=a.value,p=r(h)&&r(c),f=r(d),m=e.svgElem,v=!m,g=[],y=a.color,b=u(a.zIndex,0),w=a.events,g={"class":"highcharts-plot-"+(p?"band ":"line ")+(a.className||"")},x={},_=n.chart.renderer,S=p?"bands":"lines",C=n.log2lin;if(n.isLog&&(h=C(h),c=C(c),d=C(d)),f?(g={stroke:y,"stroke-width":a.width},a.dashStyle&&(g.dashstyle=a.dashStyle)):p&&(y&&(g.fill=y),a.borderWidth&&(g.stroke=a.borderColor,g["stroke-width"]=a.borderWidth)),x.zIndex=b,S+="-"+b,(y=n.plotLinesAndBandsGroups[S])||(n.plotLinesAndBandsGroups[S]=y=_.g("plot-"+S).attr(x).add()),v&&(e.svgElem=m=_.path().attr(g).add(y)),f)g=n.getPlotLinePath(d,m.strokeWidth());else{if(!p)return;g=n.getPlotBandPath(h,c,a)}return v&&g&&g.length?(m.attr({d:g}),w&&t.objectEach(w,function(t,n){m.on(n,function(t){w[n].apply(e,[t])})})):m&&(g?(m.show(),m.animate({d:g})):(m.hide(),s&&(e.label=s=s.destroy()))),o&&r(o.text)&&g&&g.length&&0this.max&&e>this.max,i&&n?(t&&(i.flat=i.toString()===n.toString(),a=0),i.push(r&&n[4]===i[4]?n[4]+a:n[4],r||n[5]!==i[5]?n[5]:n[5]+a,r&&n[1]===i[1]?n[1]+a:n[1],r||n[2]!==i[2]?n[2]:n[2]+a)):i=null,i},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,n){var i=new t.PlotLineOrBand(this,e).render(),r=this.userOptions;return i&&(n&&(r[n]=r[n]||[],r[n].push(e)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,n=this.options,i=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();o([n.plotLines||[],i.plotLines||[],n.plotBands||[],i.plotBands||[]],function(e){for(r=e.length;r--;)e[r].id===t&&s(e,e[r])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}(t,e),function(t){var e=t.dateFormat,n=t.each,i=t.extend,r=t.format,a=t.isNumber,o=t.map,s=t.merge,l=t.pick,u=t.splat,c=t.syncTimeout,h=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split},cleanSplit:function(t){n(this.chart.series,function(e){var n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)})},getLabel:function(){var t=this.chart.renderer,e=this.options;return this.label||(this.split?this.label=t.g("tooltip"):(this.label=t.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth}).css(e.style).shadow(e.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),s(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,s(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,n,r){var a=this,o=a.now,s=!1!==a.options.animation&&!a.isHidden&&(1d-s?d:d-s);else{if(!c)return!1;o[t]=Math.max(r,i+s+n>e?i:i+s)}},p=function(t,e,n,i){var r;return ie-a?r=!1:o[t]=ie-n/2?e-n-2:i-n/2,r},f=function(t){var e=u;u=c,c=e,i=t},m=function(){!1!==d.apply(0,u)?!1!==p.apply(0,c)||i||(f(!0),m()):i?o.x=o.y=0:(f(!0),m())};return(r.inverted||1f&&(u=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=o.plotTop,a.push({target:e.isHeader?o.plotHeight+h:t,rank:e.isHeader?1:0,size:n.tt.getBBox().height+1,point:e,x:f,tt:p})}}),this.cleanSplit(),t.distribute(a,o.plotHeight+h),n(a,function(t){var e=t.point,n=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:u||e.isHeader?t.x:e.plotX+o.plotLeft+l(c.distance,16),y:t.pos+o.plotTop,anchorX:e.isHeader?e.plotX+o.plotLeft:e.plotX+n.xAxis.pos,anchorY:e.isHeader?t.pos+o.plotTop-15:e.plotY+n.yAxis.pos})})},updatePosition:function(t){var e=this.chart,n=this.getLabel(),n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t);this.move(Math.round(n.x),Math.round(n.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,n,i,r){var a,o,s=e("%m-%d %H:%M:%S.%L",n),l={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(o in h){if(t===h.week&&+e("%w",n)===i&&"00:00:00.000"===s.substr(6)){o="week";break}if(h[o]>t){o=u;break}if(l[o]&&s.substr(l[o])!=="01-01 00:00:00.000".substr(l[o]))break;"week"!==o&&(u=o)}return o&&(a=r[o]),a},getXDateFormat:function(t,e,n){e=e.dateTimeLabelFormats;var i=n&&n.closestPointRange;return(i?this.getDateFormat(i,t.x,n.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,e){var n=e?"footer":"header";e=t.series;var i=e.tooltipOptions,o=i.xDateFormat,s=e.xAxis,l=s&&"datetime"===s.options.type&&a(t.key),n=i[n+"Format"];return l&&!o&&(o=this.getXDateFormat(t,i,s)),l&&o&&(n=n.replace("{point.key}","{point.key:"+o+"}")),r(n,{point:t,series:e})},bodyFormatter:function(t){return o(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}}}(t),function(t){var e=t.addEvent,n=t.attr,i=t.charts,r=t.color,a=t.css,o=t.defined,s=t.each,l=t.extend,u=t.find,c=t.fireEvent,h=t.isObject,d=t.offset,p=t.pick,f=t.removeEvent,m=t.splat,v=t.Tooltip,g=t.win;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},v&&(t.tooltip=new v(t,e.tooltip),this.followTouchMove=p(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,n=e.options.chart,i=n.zoomType||"",e=e.inverted;/touch/.test(t.type)&&(i=p(n.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},normalize:function(t,e){var n,i;return t=t||g.event,t.target||(t.target=t.srcElement),i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=d(this.chart.container)),void 0===i.pageX?(n=Math.max(t.x,t.clientX-e.left),e=t.y):(n=i.pageX-e.left,e=i.pageY-e.top),l(t,{chartX:Math.round(n),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return s(this.chart.axes,function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,n){var i;return s(t,function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=h(t,!0))&&!(r=!h(i,!0)))var r=i.distX-t.distX,a=i.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),r=0<(0!==r&&e?r:0!==a?a:0!==o?o:i.series.index>t.series.index?-1:1);r&&(i=t)}),i},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var n=t.series,i=n.xAxis,n=n.yAxis;if(i&&n)return e?{chartX:i.len+i.pos-t.clientX,chartY:n.len+n.pos-t.plotY}:{chartX:t.clientX+i.pos,chartY:t.plotY+n.pos}},getHoverData:function(e,n,i,r,a,o){var l,c=[];r=!(!r||!e);var d=n&&!n.stickyTracking?[n]:t.grep(i,function(t){return t.visible&&!(!a&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&t.stickyTracking});return n=(l=r?e:this.findNearestKDPoint(d,a,o))&&l.series,l&&(a&&!n.noSharedTooltip?(d=t.grep(i,function(t){return t.visible&&!(!a&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),s(d,function(t){t=u(t.points,function(t){return t.x===l.x}),h(t)&&!t.isNull&&c.push(t)})):c.push(l)),{hoverPoint:l,hoverSeries:n,hoverPoints:c}},runPointActions:function(n,r){var a,o=this.chart,l=o.tooltip,u=!!l&&l.shared,c=r||o.hoverPoint,h=c&&c.series||o.hoverSeries,h=this.getHoverData(c,h,o.series,!!r||h&&h.directTouch&&this.isDirectTouch,u,n),c=h.hoverPoint;a=h.hoverPoints,r=(h=h.hoverSeries)&&h.tooltipOptions.followPointer,u=u&&h&&!h.noSharedTooltip,c&&(c!==o.hoverPoint||l&&l.isHidden)?(s(o.hoverPoints||[],function(e){-1===t.inArray(e,a)&&e.setState()}),s(a||[],function(t){t.setState("hover")}),o.hoverSeries!==h&&h.onMouseOver(),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),c.firePointEvent("mouseOver"),o.hoverPoints=a,o.hoverPoint=c,l&&l.refresh(u?a:c,n)):r&&l&&!l.isHidden&&(c=l.getAnchor([{}],n),l.updatePosition({plotX:c[0],plotY:c[1]})),this.unDocMouseMove||(this.unDocMouseMove=e(o.container.ownerDocument,"mousemove",function(e){var n=i[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),s(o.axes,function(e){var i=p(e.crosshair.snap,!0),r=i?t.find(a,function(t){return t.series[e.coll]===e}):void 0;r||!i?e.drawCrosshair(n,r):e.hideCrosshair()})},reset:function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,a=n.hoverPoints,o=n.tooltip,l=o&&o.shared?a:r;t&&l&&s(m(l),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&l&&(o.refresh(l),r&&(r.setState(r.state,!0),s(n.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),a&&s(a,function(t){t.setState()}),i&&i.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),s(n.axes,function(t){t.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},scaleGroups:function(t,e){var n,i=this.chart;s(i.series,function(r){n=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(n),r.markerGroup&&(r.markerGroup.attr(n),r.markerGroup.clip(e?i.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(n))}),i.clipRect.attr(e||i.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,n=this.chart,i=n.options.chart,a=t.chartX,o=t.chartY,s=this.zoomHor,l=this.zoomVert,u=n.plotLeft,c=n.plotTop,h=n.plotWidth,d=n.plotHeight,p=this.selectionMarker,f=this.mouseDownX,m=this.mouseDownY,v=i.panKey&&t[i.panKey+"Key"];p&&p.touch||(au+h&&(a=u+h),oc+d&&(o=c+d),this.hasDragged=Math.sqrt(Math.pow(f-a,2)+Math.pow(m-o,2)),10b.max&&(e=b.max-l,c=!0),c?(_-=.8*(_-o[d][0]),w||(C-=.8*(C-o[d][1])),n()):o[d]=[_,C],y||(a[d]=u-v,a[m]=l),a=y?1/g:g,r[m]=l,r[d]=e,i[y?t?"scaleY":"scaleX":"scale"+p]=g,i["translate"+p]=a*v+(_-a*x)},pinch:function(t){var e=this,s=e.chart,l=e.pinchDown,u=t.touches,c=u.length,h=e.lastValidTouch,d=e.hasZoom,p=e.selectionMarker,f={},m=1===c&&(e.inClass(t.target,"highcharts-tracker")&&s.runTrackerClick||e.runChartClick),v={};1e-6&&s(f||e.spacingBox.width-2*h-i.x)&&(this.itemX=h,this.itemY+=v+this.lastLineHeight+m,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,s),this.lastItemY=v+this.itemY+m,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=s:(this.itemY+=v+n+m,this.lastLineHeight=n),this.offsetWidth=f||Math.max((r?this.itemX-h-(t.checkbox?0:d):s)+h,this.offsetWidth)},getAllItems:function(){var t=[];return a(this.chart.series,function(e){var n=e&&e.options;e&&u(n.showInLegend,!r(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var n=this.chart,i=this.options,o=i.align.charAt(0)+i.verticalAlign.charAt(0)+i.layout.charAt(0);i.floating||a([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(a,l){a.test(o)&&!r(t[l])&&(n[s[l]]=Math.max(n[s[l]],n.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*i[l%2?"x":"y"]+u(i.margin,12)+e[l]))})},render:function(){var t,e,n,i,r=this,o=r.chart,s=o.renderer,u=r.group,c=r.box,d=r.options,p=r.padding;r.itemX=p,r.itemY=r.initialItemY,r.offsetWidth=0,r.lastItemY=0,u||(r.group=u=s.g("legend").attr({zIndex:7}).add(),r.contentGroup=s.g().attr({zIndex:1}).add(u),r.scrollGroup=s.g().add(r.contentGroup)),r.renderTitle(),t=r.getAllItems(),h(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),d.reversed&&t.reverse(),r.allItems=t,r.display=e=!!t.length,r.lastLineHeight=0,a(t,function(t){r.renderItem(t)}),n=(d.width||r.offsetWidth)+p,i=r.lastItemY+r.lastLineHeight+r.titleHeight,i=r.handleOverflow(i),i+=p,c||(r.box=c=s.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(u),c.isNew=!0),c.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow),0r&&!1!==d.enabled?(this.clipHeight=e=Math.max(r-20-this.titleHeight-c,0),this.currentPage=u(this.currentPage,1),this.fullHeight=t,a(g,function(t,i){var r=t._legendItemPos[1];t=Math.round(t.legendItem.getBBox().height);var a=v.length;(!a||r-v[a-1]>e&&(n||r)!==v[a-1])&&(v.push(n||r),a++),i===g.length-1&&r+t-v[a-1]>e&&v.push(r),r!==n&&(n=r)}),h||(h=i.clipRect=o.clipRect(0,c,9999,0),i.contentGroup.clip(h)),y(e),m||(this.nav=m=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).on("click",function(){i.scroll(-1,p)}).add(m),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation").css(d.style).add(m),this.down=o.symbol("triangle-down",0,0,f,f).on("click",function(){i.scroll(1,p)}).add(m)),i.scroll(0),t=r):m&&(y(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var n=this.pages,i=n.length;t=this.currentPage+t;var r=this.clipHeight,a=this.options.navigation,o=this.pager,s=this.padding;t>i&&(t=i),0a&&(n=typeof t[0],"string"===n?e.name=t[0]:"number"===n&&(e.x=t[0]),o++);u=t.value;)t=n[++i];return t&&t.color&&!this.options.color&&(this.color=t.color),t},destroy:function(){var t,e=this.series.chart,n=e.hoverPoints;e.pointCount--,n&&(this.setState(),r(n,this),n.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(c(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],n=6;n--;)t=e[n],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,r=u(i.valueDecimals,""),a=i.valuePrefix||"",s=i.valueSuffix||"";return n(e.pointArrayMap||["y"],function(e){e="{point."+e,(a||s)&&(t=t.replace(e+"}",a+e+"}"+s)),t=t.replace(e+"}",e+":,."+r+"f}")}),o(t,{point:this,series:this.series})},firePointEvent:function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),a(this,t,e,n)},visible:!0}}(t),function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,a=t.correctFloat,o=t.Date,s=t.defaultOptions,l=t.defaultPlotOptions,u=t.defined,c=t.each,h=t.erase,d=t.extend,p=t.fireEvent,f=t.grep,m=t.isArray,v=t.isNumber,g=t.isString,y=t.merge,b=t.objectEach,w=t.pick,x=t.removeEvent,_=t.splat,S=t.SVGElement,C=t.syncTimeout,k=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,n){var i,r,a=this,o=t.series;a.chart=t,a.options=n=a.setOptions(n),a.linkedSeries=[],a.bindAxes(),d(a,{name:n.name,state:"",visible:!1!==n.visible,selected:!0===n.selected}),i=n.events,b(i,function(t,n){e(a,n,t)}),(i&&i.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),a.getColor(),a.getSymbol(),c(a.parallelArrays,function(t){a[t+"Data"]=[]}),a.setData(n.data,!1),a.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(r=o[o.length-1]),a._i=w(r&&r._i,-1)+1,t.orderSeries(this.insert(o))},insert:function(t){var e,n=this.options.index;if(v(n)){for(e=t.length;e--;)if(n>=w(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return w(e,t.length-1)},bindAxes:function(){var e,n=this,i=n.options,r=n.chart;c(n.axisTypes||[],function(a){c(r[a],function(t){e=t.options,(i[a]===e.index||void 0!==i[a]&&i[a]===e.id||void 0===i[a]&&0===e.index)&&(n.insert(t.series),n[a]=t,t.isDirty=!0)}),n[a]||n.optionalAxis===a||t.error(18,!0)})},updateParallelArrays:function(t,e){var n=t.series,i=arguments,r=v(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};c(n.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,n=this.xIncrement,i=e.pointIntervalUnit,n=w(n,e.pointStart,0);return this.pointInterval=t=w(this.pointInterval,e.pointInterval,1),i&&(e=new o(n),"day"===i?e=+e[o.hcSetDate](e[o.hcGetDate]()+t):"month"===i?e=+e[o.hcSetMonth](e[o.hcGetMonth]()+t):"year"===i&&(e=+e[o.hcSetFullYear](e[o.hcGetFullYear]()+t)),t=e-n),this.xIncrement=n+t,n},setOptions:function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=(e.userOptions||{}).plotOptions||{},a=i[this.type];return this.userOptions=t,e=y(a,i.series,t),this.tooltipOptions=y(s.tooltip,s.plotOptions.series&&s.plotOptions.series.tooltip,s.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=w(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===a.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&u(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),e},getCyclic:function(t,e,n){var i,r=this.chart,a=this.userOptions,o=t+"Index",s=t+"Counter",l=n?n.length:w(r.options.chart[t+"Count"],r[t+"Count"]);e||(i=w(a[o],a["_"+o]),u(i)||(r.series.length||(r[s]=0),a["_"+o]=i=r[s]%l,r[s]+=1),n&&(e=n[i])),void 0!==i&&(this[o]=i),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||l[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,setData:function(e,n,i,r){var a,o=this,s=o.points,l=s&&s.length||0,u=o.options,h=o.chart,d=null,p=o.xAxis,f=u.turboThreshold,y=this.xData,b=this.yData,x=(a=o.pointArrayMap)&&a.length;if(e=e||[],a=e.length,n=w(n,!0),!1!==r&&a&&l===a&&!o.cropped&&!o.hasGroupedData&&o.visible)c(e,function(t,e){s[e].update&&t!==u.data[e]&&s[e].update(t,!1,null,!1)});else{if(o.xIncrement=null,o.colorCounter=0,c(this.parallelArrays,function(t){o[t+"Data"].length=0}),f&&a>f){for(i=0;null===d&&il||this.forceCrop)&&(i[a-1]d?(i=[],r=[]):(i[0]d)&&(n=this.cropData(this.xData,this.yData,h,d),i=n.xData,r=n.yData,n=n.start,o=!0)),l=i.length||1;--l;)a=m?c(i[l])-c(i[l-1]):i[l]-i[l-1],0a&&this.requireSorting&&t.error(15);this.cropped=o,this.cropStart=n,this.processedXData=i,this.processedYData=r,this.closestPointRange=s},cropData:function(t,e,n,i){var r,a=t.length,o=0,s=a,l=w(this.cropShoulder,1);for(r=0;r=n){o=Math.max(0,r-l);break}for(n=r;ni){s=n+l;break}return{xData:t.slice(o,s),yData:e.slice(o,s),start:o,end:s}},generatePoints:function(){var t,e,n,i,r=this.options,a=r.data,o=this.data,s=this.processedXData,l=this.processedYData,u=this.pointClass,c=s.length,h=this.cropStart||0,d=this.hasGroupedData,r=r.keys,p=[];for(o||d||(o=[],o.length=a.length,o=this.data=o),r&&d&&(this.options.keys=!1),i=0;i=d&&(a[h]||u)<=p,l&&u)if(l=c.length)for(;l--;)null!==c[l]&&(o[s++]=c[l]);else o[s++]=c;this.dataMin=r(o),this.dataMax=i(o)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n,i,r=this.options,o=r.stacking,s=this.xAxis,l=s.categories,c=this.yAxis,h=this.points,d=h.length,p=!!this.modifyValue,f=r.pointPlacement,m="between"===f||v(f),g=r.threshold,y=r.startFromThreshold?g:0,b=Number.MAX_VALUE;for("between"===f&&(f=.5),v(f)&&(f*=w(r.pointRange||s.pointRange)),r=0;r=S&&(x.isNull=!0),x.plotX=t=a(Math.min(Math.max(-1e5,s.translate(_,0,0,0,1,f,"flags"===this.type)),1e5)),o&&this.visible&&!x.isNull&&k&&k[_]&&(i=this.getStackIndicator(i,_,this.index),C=k[_],S=C.points[i.key],e=S[0],S=S[1],e===y&&i.key===k[_].base&&(e=w(g,c.min)),c.positiveValuesOnly&&0>=e&&(e=null),x.total=x.stackTotal=C.total,x.percentage=C.total&&x.y/C.total*100,x.stackY=S,C.setOffset(this.pointXOffset||0,this.barW||0)),x.yBottom=u(e)?c.translate(e,0,1,0,1):null,p&&(S=this.modifyValue(S,x)),x.plotY=e="number"==typeof S&&1/0!==S?Math.min(Math.max(-1e5,c.translate(S,0,1,0,1)),1e5):void 0,x.isInside=void 0!==e&&0<=e&&e<=c.len&&0<=t&&t<=s.len,x.clientX=m?a(s.translate(_,0,0,0,1,f)):t,x.negative=x.y<(g||0),x.category=l&&void 0!==l[x.x]?l[x.x]:x.x,x.isNull||(void 0!==n&&(b=Math.min(b,Math.abs(t-n))),n=t),x.zone=this.zones.length&&x.getZone()}this.closestPointRangePx=b},getValidPoints:function(t,e){var n=this.chart;return f(t||this.points||[],function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,n=this.options,i=e.renderer,r=e.inverted,a=this.clipBox,o=a||e.clipBox,s=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,o.height,n.xAxis,n.yAxis].join(),l=e[s],u=e[s+"m"];l||(t&&(o.width=0,e[s+"m"]=u=i.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[s]=l=i.clipRect(o),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==n.clip&&(this.group.clip(t||a?l:e.clipRect),this.markerGroup.clip(u),this.sharedClipKey=s),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&e[s]&&(a||(e[s]=e[s].destroy()),e[s+"m"]&&(e[s+"m"]=e[s+"m"].destroy())))},animate:function(t){var e,i=this.chart,r=n(this.options.animation);t?this.setClip(r):(e=this.sharedClipKey,(t=i[e])&&t.animate({width:i.plotSizeX},r),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99},r),this.animate=null)},afterAnimate:function(){this.setClip(),p(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,n,i,r,a,o,s,l=this.points,u=this.chart,c=this.options.marker,h=this[this.specialGroup]||this.markerGroup,d=w(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;er&&e.shadow)),o&&(o.startX=n.xMap,o.isArea=n.isArea)})},applyZones:function(){var t,e,n,i,r,a,o,s,l,u=this,h=this.chart,d=h.renderer,p=this.zones,f=this.clips||[],m=this.graph,v=this.area,g=Math.max(h.chartWidth,h.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],b=h.inverted,x=!1;p.length&&(m||v)&&y&&void 0!==y.min&&(r=y.reversed,a=y.horiz,m&&m.hide(),v&&v.hide(),i=y.getExtremes(),c(p,function(c,p){t=r?a?h.plotWidth:0:a?0:y.toPixels(i.min),t=Math.min(Math.max(w(e,t),0),g),e=Math.min(Math.max(Math.round(y.toPixels(w(c.value,i.max),!0)),0),g),x&&(t=e=y.toPixels(i.max)),o=Math.abs(t-e),s=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(n={x:b?l:s,y:0,width:o,height:g},a||(n.x=h.plotHeight-n.x)):(n={x:0,y:b?l:s,width:g,height:o},a&&(n.y=h.plotWidth-n.y)),b&&d.isVML&&(n=y.isXAxis?{x:0,y:r?s:l,height:n.width,width:h.chartWidth}:{x:n.y-h.plotLeft-h.spacingBox.x,y:0,width:n.height,height:h.chartHeight}),f[p]?f[p].animate(n):(f[p]=d.clipRect(n),m&&u["zone-graph-"+p].clip(f[p]),v&&u["zone-area-"+p].clip(f[p])),x=c.value>i.max}),this.clips=f)},invertGroups:function(t){function n(){c(["group","markerGroup"],function(e){r[e]&&(a.renderer.isVML&&r[e].attr({width:r.yAxis.len,height:r.xAxis.len}),r[e].width=r.yAxis.len,r[e].height=r.xAxis.len,r[e].invert(t))})}var i,r=this,a=r.chart;r.xAxis&&(i=e(a,"resize",n),e(r,"destroy",i),n(t),r.invertGroups=n)},plotGroup:function(t,e,n,i,r){var a=this[t],o=!a;return o&&(this[t]=a=this.chart.renderer.g().attr({zIndex:i||.1}).add(r)),a.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0),a.attr({visibility:n})[o?"attr":"animate"](this.getPlotBox()),a},getPlotBox:function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,r=e.options,a=!!e.animate&&i.renderer.isSVG&&n(r.animation).duration,o=e.visible?"inherit":"hidden",s=r.zIndex,l=e.hasRendered,u=i.seriesGroup,c=i.inverted;t=e.plotGroup("group","series",o,s,u),e.markerGroup=e.plotGroup("markerGroup","markers",o,s,u),a&&e.animate(!0),t.inverted=!!e.isCartesian&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===r.clip||e.sharedClipKey||l||t.clip(i.clipRect),a&&e.animate(),l||(e.animationTimeout=C(function(){e.afterAnimate()},a)),e.isDirty=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:w(i&&i.left,t.plotLeft),translateY:w(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e)},buildKDTree:function(){function t(n,i,r){var a,o;if(o=n&&n.length)return a=e.kdAxisArray[i%r],n.sort(function(t,e){return t[a]-e[a]}),o=Math.floor(o/2),{point:n[o],left:t(n.slice(0,o),i+1,r),right:t(n.slice(o+1),i+1,r)}}this.buildingKdTree=!0;var e=this,n=-1p?"left":"right",h=0>p?"right":"left",e[c]&&(c=n(t,e[c],s+1,l),f=c[o]s;)o--;this.updateParallelArrays(r,"splice",o,0,0),this.updateParallelArrays(r,o),h&&r.name&&(h[s]=r.name),d.splice(o,0,t),a&&(this.data.splice(o,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(u[0]&&u[0].remove?u[0].remove(!1):(u.shift(),this.updateParallelArrays(r,"shift"),d.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(i)},removePoint:function(t,e,n){var i=this,r=i.data,a=r[t],o=i.points,s=i.chart,l=function(){o&&o.length===r.length&&o.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(a||{series:i},"splice",t,1),a&&a.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};x(n,s),e=g(e,!0),a?a.firePointEvent("remove",null,l):l()},remove:function(t,e,n){function i(){r.destroy(),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),g(t,!0)&&a.redraw(e)}var r=this,a=r.chart;!1!==n?c(r,"remove",null,i):i()},update:function(t,e){var n,i=this,r=i.chart,a=i.userOptions,o=i.oldType||i.type,l=t.type||a.type||r.options.chart.type,c=w[o].prototype,h=["group","markerGroup","dataLabelsGroup","navigatorSeries","baseSeries"],d=i.finishedAnimating&&{animation:!1};if(Object.keys&&"data"===Object.keys(t).toString())return this.setData(t.data,e);(l&&l!==o||void 0!==t.zIndex)&&(h.length=0),s(h,function(t){h[t]=i[t],delete i[t]}),t=m(a,d,{index:i.index,pointStart:i.xData[0]},{data:i.options.data},t),i.remove(!1,null,!1);for(n in c)i[n]=void 0;u(i,w[l||o].prototype),s(h,function(t){i[t]=h[t]}),i.init(r,t),i.oldType=o,r.linkSeries(),g(e,!0)&&r.redraw(!1)}}),u(i.prototype,{update:function(t,e){var n=this.chart;t=n.options[this.coll][this.options.index]=m(this.userOptions,t),this.destroy(!0),this.init(n,u(t,{events:void 0})),n.isDirtyBox=!0,g(e,!0)&&n.redraw()},remove:function(t){for(var e=this.chart,n=this.coll,i=this.series,r=i.length;r--;)i[r]&&i[r].remove(!1);l(e.axes,this),l(e[n],this),f(e.options[n])?e.options[n].splice(this.options.index,1):delete e.options[n],s(e[n],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,g(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}(t),function(t){var e=t.color,n=t.each,i=t.map,r=t.pick,a=t.Series,o=t.seriesType;o("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var a,o,s=[],l=[],u=this.xAxis,c=this.yAxis,h=c.stacks[this.stackKey],d={},p=this.index,f=c.series,m=f.length,v=r(c.options.reversedStacks,!0)?1:-1;if(e=e||this.points,this.options.stacking){for(o=0;ot&&l>a?(l=Math.max(t,a),c=2*a-l):li&&c>a?(c=Math.max(i,a),l=2*a-c):c=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA,r=t.borderWidth=s(n.borderWidth,r?0:1),a=t.yAxis,o=t.translatedThreshold=a.getThreshold(n.threshold),u=s(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,d=t.barW=Math.max(h,1+2*r),p=t.pointXOffset=c.offset;e.inverted&&(o-=.5),n.pointPadding&&(d=Math.ceil(d)),l.prototype.translate.apply(t),i(t.points,function(n){var i,r=s(n.yBottom,o),l=999+Math.abs(r),l=Math.min(Math.max(-l,n.plotY),a.len+l),c=n.plotX+p,f=d,m=Math.min(l,r),v=Math.max(l,r)-m;Math.abs(v)u?r-u:o-(i?u:0)),n.barX=c,n.pointWidth=h,n.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-l,t.xAxis.len-c-f/2,v]:[c+f/2,l+a.pos-e.plotTop,v],n.shapeType="rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[c,o,f,0]:[c,m,f,v])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,r=this.options,a=this.pointAttrToOptions||{};i=a.stroke||"borderColor";var s=a["stroke-width"]||"borderWidth",l=t&&t.color||this.color,u=t[i]||r[i]||this.color||l,c=t[s]||r[s]||this[s]||0,a=r.dashStyle;return t&&this.zones.length&&(l=t.getZone(),l=t.options.color||l&&l.color||this.color),e&&(t=o(r.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,l=t.color||void 0!==e&&n(l).brighten(t.brightness).get()||l,u=t[i]||u,c=t[s]||c,a=t.dashStyle||a),i={fill:l,stroke:u,"stroke-width":c},a&&(i.dashstyle=a),i},drawPoints:function(){var t,e=this,n=this.chart,r=e.options,s=n.renderer,l=r.animationLimit||250;i(e.points,function(i){var u=i.graphic;a(i.plotY)&&null!==i.y?(t=i.shapeArgs,u?u[n.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(t),function(t){var e=t.pick,n=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,i,r=this.options,a=this.chart,o=2*(r.slicedOffset||0),s=a.plotWidth-2*o,a=a.plotHeight-2*o,l=r.center,l=[e(l[0],"50%"),e(l[1],"50%"),r.size||"100%",r.innerSize||0],u=Math.min(s,a);for(t=0;4>t;++t)i=l[t],r=2>t||2===t&&/%$/.test(i),l[t]=n(i,[s,a,u,l[2]][t])+(r?o:0);return l[3]>l[2]&&(l[3]=l[2]),l}}}(t),function(t){var e=t.addEvent,n=t.defined,i=t.each,r=t.extend,a=t.inArray,o=t.noop,s=t.pick,l=t.Point,u=t.Series,c=t.seriesType,h=t.setAnimation;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,n=e.points,r=e.startAngleRad;t||(i(n,function(t){var n=t.graphic,i=t.shapeArgs;n&&(n.attr({r:t.startR||e.center[3]/2,start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,n=0,i=this.points,r=i.length,a=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?i-=2*Math.PI:i<-Math.PI/2&&(i+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(i)*c),translateY:Math.round(Math.sin(i)*c)},n=Math.cos(i)*t[2]/2,r=Math.sin(i)*t[2]/2,o.tooltipPos=[t[0]+.7*n,t[1]+.7*r],o.half=i<-Math.PI/2||i>Math.PI/2?1:0,o.angle=i,e=Math.min(h,o.labelDistance/5),o.labelPos=[t[0]+n+Math.cos(i)*o.labelDistance,t[1]+r+Math.sin(i)*o.labelDistance,t[0]+n+Math.cos(i)*e,t[1]+r+Math.sin(i)*e,t[0]+n,t[1]+r,0>o.labelDistance?"center":o.half?"right":"left",i]},drawGraph:null,drawPoints:function(){var t,e,n,a,o=this,s=o.chart.renderer,l=o.options.shadow;l&&!o.shadowGroup&&(o.shadowGroup=s.g("shadow").add(o.group)),i(o.points,function(i){if(!i.isNull){e=i.graphic,a=i.shapeArgs,t=i.getTranslate();var u=i.shadowGroup;l&&!u&&(u=i.shadowGroup=s.g("shadow").add(o.shadowGroup)),u&&u.attr(t),n=o.pointAttribs(i,i.selected&&"select"),e?e.setRadialReference(o.center).attr(n).animate(r(a,t)):(i.graphic=e=s[i.shapeType](a).setRadialReference(o.center).attr(t).add(o.group),i.visible||e.attr({visibility:"hidden"}),e.attr(n).attr({"stroke-linejoin":"round"}).shadow(l,u)),e.addClass(i.getClassName())}})},searchPoint:o,sortByAngle:function(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:t.CenteredSeriesMixin.getCenter,getSymbol:o},{init:function(){l.prototype.init.apply(this,arguments);var t,n=this;return n.name=s(n.name,"Slice"),t=function(t){n.slice("select"===t.type)},e(n,"select",t),e(n,"unselect",t),n},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var n=this,r=n.series,o=r.chart,l=r.options.ignoreHiddenPoint;e=s(e,l),t!==n.visible&&(n.visible=n.options.visible=t=void 0===t?!n.visible:t,r.options.data[a(n,r.data)]=n.options,i(["graphic","dataLabel","connector","shadowGroup"],function(e){n[e]&&n[e][t?"show":"hide"](!0)}),n.legendItem&&o.legend.colorizeItem(n,t),t||"hover"!==n.state||n.setState(""),l&&(r.isDirty=!0),e&&o.redraw())},slice:function(t,e,i){var r=this.series;h(i,r.chart),s(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,r.options.data[a(this,r.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}})}(t),function(t){var e=t.addEvent,n=t.arrayMax,i=t.defined,r=t.each,a=t.extend,o=t.format,s=t.map,l=t.merge,u=t.noop,c=t.pick,h=t.relativeLength,d=t.Series,p=t.seriesTypes,f=t.stableSort;t.distribute=function(t,e){function n(t,e){return t.target-e.target}var i,a,o=!0,l=t,u=[];for(a=0,i=t.length;i--;)a+=t[i].size;if(a>e){for(f(t,function(t,e){return(e.rank||0)-(t.rank||0)}),a=i=0;a<=e;)a+=t[i].size,i++;u=t.splice(i-1,t.length)}for(f(t,n),t=s(t,function(t){return{size:t.size,targets:[t.target]}});o;){for(i=t.length;i--;)o=t[i],a=(Math.min.apply(0,o.targets)+Math.max.apply(0,o.targets))/2,o.pos=Math.min(Math.max(0,a-o.size/2),e-o.size);for(i=t.length,o=!1;i--;)0t[i].pos&&(t[i-1].size+=t[i].size,t[i-1].targets=t[i-1].targets.concat(t[i].targets),t[i-1].pos+t[i-1].size>e&&(t[i-1].pos=e-t[i-1].size),t.splice(i,1),o=!0)}i=0,r(t,function(t){var e=0;r(t.targets,function(){l[i].pos=t.pos+e,e+=l[i].size,i++})}),l.push.apply(l,u),f(l,n)},d.prototype.drawDataLabels=function(){var n,a,s,u,h=this,d=h.options,p=d.dataLabels,f=h.points,m=h.hasRendered||0,v=c(p.defer,!!d.animation),g=h.chart.renderer;(p.enabled||h._hasPointLabels)&&(h.dlProcessOptions&&h.dlProcessOptions(p),u=h.plotGroup("dataLabelsGroup","data-labels",v&&!m?"hidden":"visible",p.zIndex||6),v&&(u.attr({opacity:+m}),m||e(h,"afterAnimate",function(){h.visible&&u.show(!0),u[d.animation?"animate":"attr"]({opacity:1},{duration:200})})),a=p,r(f,function(e){var r,f,m,v,y=e.dataLabel,b=e.connector,w=!y;n=e.dlOptions||e.options&&e.options.dataLabels,(r=c(n&&n.enabled,a.enabled)&&null!==e.y)&&(p=l(a,n),f=e.getLabelConfig(),s=p.format?o(p.format,f):p.formatter.call(f,p),v=p.style,f=p.rotation,v.color=c(p.color,v.color,h.color,"#000000"),"contrast"===v.color&&(e.contrastColor=g.getContrast(e.color||h.color),v.color=p.inside||0>c(e.labelDistance,p.distance)||d.stacking?e.contrastColor:"#000000"),d.cursor&&(v.cursor=d.cursor),m={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:f,padding:p.padding,zIndex:1},t.objectEach(m,function(t,e){void 0===t&&delete m[e]})),!y||r&&i(s)?r&&i(s)&&(y?m.text=s:(y=e.dataLabel=g[f?"text":"label"](s,0,-9999,p.shape,null,null,p.useHTML,null,"data-label"),y.addClass("highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":""))),y.attr(m),y.css(v).shadow(p.shadow),y.added||y.add(u),h.alignDataLabel(e,y,p,null,w)):(e.dataLabel=y=y.destroy(),b&&(e.connector=b.destroy()))}))},d.prototype.alignDataLabel=function(t,e,n,i,r){var o,s=this.chart,l=s.inverted,u=c(t.plotX,-9999),h=c(t.plotY,-9999),d=e.getBBox(),p=n.rotation,f=n.align,m=this.visible&&(t.series.forceDL||s.isInsidePlot(u,Math.round(h),l)||i&&s.isInsidePlot(u,l?i.x+1:i.y+i.height-1,l)),v="justify"===c(n.overflow,"justify");m&&(o=n.style.fontSize,o=s.renderer.fontMetrics(o,e).b,i=a({x:l?this.yAxis.len-h:u,y:Math.round(l?this.xAxis.len-u:h),width:0,height:0},i),a(n,{width:d.width,height:d.height}),p?(v=!1,u=s.renderer.rotCorr(o,p),u={x:i.x+n.x+i.width/2+u.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},e[r?"attr":"animate"](u).attr({align:f}),h=(p+720)%360,h=180h,"left"===f?u.y-=h?d.height:0:"center"===f?(u.x-=d.width/2,u.y-=d.height/2):"right"===f&&(u.x-=d.width,u.y-=h?0:d.height)):(e.align(n,null,i),u=e.alignAttr),v?t.isLabelJustified=this.justifyDataLabel(e,n,u,d,i,r):c(n.crop,!0)&&(m=s.isInsidePlot(u.x,u.y)&&s.isInsidePlot(u.x+d.width,u.y+d.height)),n.shape&&!p)&&e[r?"attr":"animate"]({ anchorX:l?s.plotWidth-t.plotY:t.plotX,anchorY:l?s.plotHeight-t.plotX:t.plotY}),m||(e.attr({y:-9999}),e.placed=!1)},d.prototype.justifyDataLabel=function(t,e,n,i,r,a){var o,s,l=this.chart,u=e.align,c=e.verticalAlign,h=t.box?0:t.padding||0;return o=n.x+h,0>o&&("right"===u?e.align="left":e.x=-o,s=!0),o=n.x+i.width-h,o>l.plotWidth&&("left"===u?e.align="right":e.x=l.plotWidth-o,s=!0),o=n.y+h,0>o&&("bottom"===c?e.verticalAlign="top":e.y=-o,s=!0),o=n.y+i.height-h,o>l.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=l.plotHeight-o,s=!0),s&&(t.placed=!a,t.align(e,null,r)),s},p.pie&&(p.pie.prototype.drawDataLabels=function(){var e,a,o,s,l,u,h,p,f,m,v=this,g=v.data,y=v.chart,b=v.options.dataLabels,w=c(b.connectorPadding,10),x=c(b.connectorWidth,1),_=y.plotWidth,S=y.plotHeight,C=v.center,k=C[2]/2,A=C[1],T=[[],[]],M=[0,0,0,0];v.visible&&(b.enabled||v._hasPointLabels)&&(r(g,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),d.prototype.drawDataLabels.apply(v),r(g,function(t){t.dataLabel&&t.visible&&(T[t.half].push(t),t.dataLabel._pos=null)}),r(T,function(n,a){var d,g,x,T=n.length,L=[];if(T)for(v.sortByAngle(n,a-.5),0e.bottom-2?d:p,a,e),o._attr={visibility:f,align:l[6]},o._pos={x:h+b.x+({left:w,right:-w}[l[6]]||0),y:p+b.y-10},l.x=h,l.y=p,c(b.crop,!0)&&(s=o.getBBox().width,d=null,h-s_-w&&(d=Math.round(h+s-_+w),M[1]=Math.max(d,M[1])),0>p-u/2?M[0]=Math.max(Math.round(-p+u/2),M[0]):p+u/2>S&&(M[2]=Math.max(Math.round(p+u/2-S),M[2])),o.sideOverflow=d)}),0===n(M)||this.verifyDataLabelOverflow(M))&&(this.placeDataLabels(),x&&r(this.points,function(t){var e;a=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0c(this.translatedThreshold,o.yAxis.len)),h=c(n.inside,!!this.options.stacking);s&&(i=l(s),0>i.y&&(i.height+=i.y,i.y=0),s=i.y+i.height-o.yAxis.len,0t+n||r+oe+i||a+sthis.pointCount))},pan:function(t,e){var n,i=this,r=i.hoverPoints;r&&l(r,function(t){t.setState()}),l("xy"===e?[1,0]:[1],function(e){e=i[e?"xAxis":"yAxis"][0];var r,a=e.horiz,o=t[a?"chartX":"chartY"],a=a?"mouseDownX":"mouseDownY",s=i[a],l=(e.pointRange||0)/2,u=e.getExtremes(),c=e.toValue(s-o,!0)+l,l=e.toValue(s+e.len-o,!0)-l,h=l=o(n.minWidth,0)&&this.chartHeight>=o(n.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){function n(e,o,l,u){var c;t.objectEach(e,function(t,h){if(!u&&-10;)i=p.nextValue(),t=Math.floor(i*e.length),n.push(e.splice(t,1)[0]);return n.join("")}function l(){return d?d:d=s()}function u(t){return l()[t]}var c,h,d,p=n(18),f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";t.exports={characters:a,seed:o,lookup:u,shuffled:l}},function(t,e,n){"use strict";var i=n(6),r=n.n(i),a=300;e.a={animateIn:function(t){r()({targets:t,translateY:"-35px",opacity:1,duration:a,easing:"easeOutCubic"})},animateOut:function(t,e){r()({targets:t,opacity:0,marginTop:"-40px",duration:a,easing:"easeOutExpo",complete:e})},animateOutBottom:function(t,e){r()({targets:t,opacity:0,marginBottom:"-40px",duration:a,easing:"easeOutExpo",complete:e})},animateReset:function(t){r()({targets:t,left:0,opacity:1,duration:a,easing:"easeOutExpo"})},animatePanning:function(t,e,n){r()({targets:t,duration:10,easing:"easeOutQuad",left:e,opacity:n})},animatePanEnd:function(t,e){r()({targets:t,opacity:0,duration:a,easing:"easeOutExpo",complete:e})},clearAnimation:function(t){var e=r.a.timeline();t.forEach(function(t){e.add({targets:t.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){t.remove()}})})}}},function(t,e,n){"use strict";t.exports=n(15)},function(t,e,n){"use strict";function i(t,e){for(var n,i=0,a="";!n;)a+=t(e>>4*i&15|r()),n=e0&&(t.cached_options=r,t.toasts[t.toasts.length-1].goAway(0));var s=Object.assign({},t.options);return Object.assign(s,r),o=n.i(i.a)(t,e,s),t.toasts.push(o),o},u=function(t){var e=t.options.globalToasts,n=function(e,n){return"string"==typeof n&&t[n]?t[n].apply(t,[e,{}]):l(t,e,n)};e&&(t.global={},Object.keys(e).forEach(function(i){t.global[i]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e[i].apply(null,[t,n])}}))},c=function(t,e,n,i){t.options.globalToasts||(t.options.globalToasts={}),t.options.globalToasts[e]=function(t,e){var r=null;return"string"==typeof n&&(r=n),"function"==typeof n&&(r=n(t)),e(r,i)},u(t)}},function(t,e,n){n(21);var i=n(20)(null,null,null,null);t.exports=i.exports},function(t,e,n){var i,r,a,o=this;!function(n,o){r=[],i=o,a="function"==typeof i?i.apply(e,r):i,void 0!==a&&(t.exports=a)}(this,function(){function t(t){if(!B.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t){return t.reduce(function(t,n){return t.concat(B.arr(n)?e(n):n)},[])}function n(e){return B.arr(e)?e:(B.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function i(t,e){return t.some(function(t){return t===e})}function r(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,i=r(t);for(n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function s(t,e){var n,i=r(t);for(n in e)i[n]=B.und(t[n])?e[n]:t[n];return i}function l(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);t=parseInt(e[1],16);var n=parseInt(e[2],16),e=parseInt(e[3],16);return"rgb("+t+","+n+","+e+")"}function u(t){function e(t,e,n){return 0>n&&(n+=1),1n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t);t=parseInt(n[1])/360;var i=parseInt(n[2])/100,n=parseInt(n[3])/100;if(0==i)i=n=t=n;else{var r=.5>n?n*(1+i):n+i-n*i,a=2*n-r,i=e(a,r,t+1/3),n=e(a,r,t);t=e(a,r,t-1/3)}return"rgb("+255*i+","+255*n+","+255*t+")"}function c(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw|vh|deg|rad|turn)?/.exec(t))return t[2]}function h(t){return-1=d.currentTime)for(var b=0;bp&&g=f&&(d.began=!0,r("begin")),r("run")):(g<=p&&0!==m&&(i(0),v&&a()),g>=o&&m!==o&&(i(o),v||a())),t>=o&&(d.remaining?(l=s,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),"Promise"in window&&(c(),h=e()),d.completed||(d.completed=!0,r("complete"))),u=0),r("update")}t=void 0===t?{}:t;var s,l,u=0,c=null,h=e(),d=E(t);return d.reset=function(){var t=d.direction,e=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===t,d.remaining="alternate"===t&&1===e?2:e,t=d.children.length;t--;)e=d.children[t],e.seek(e.offset),e.reset()},d.tick=function(t){s=t,l||(l=s),o((u+s-l)*O.speed)},d.seek=function(t){o(n(t))},d.pause=function(){var t=$.indexOf(d);-1=e&&0<=i&&1>=i){var a=new Float32Array(11);if(e!==n||i!==r)for(var o=0;11>o;++o)a[o]=t(.1*o,e,i);return function(o){if(e===n&&i===r)return o;if(0===o)return 0;if(1===o)return 1;for(var s=0,l=1;10!==l&&a[l]<=o;++l)s+=.1;--l;var l=s+(o-a[l])/(a[l+1]-a[l])*.1,u=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e;if(.001<=u){for(s=0;4>s&&(u=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e,0!==u);++s)var c=t(l,e,i)-o,l=l-c/u;o=l}else if(0===u)o=l;else{var l=s,s=s+.1,h=0;do c=l+(s-l)/2,u=t(c,e,i)-o,0++h);o=c}return t(o,n,r)}}}}(),j=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),i={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},r={linear:I(.25,.25,.75,.75)},a={};for(e in i)a.type=e,i[a.type].forEach(function(t){return function(e,i){r["ease"+t.type+n[i]]=B.fnc(e)?e:I.apply(o,e)}}(a)),a={type:a.type};return r}(),N={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,r){i[r]||(i[r]=[]),i[r].push(e+"("+n+")")}},$=[],W=0,H=function(){function t(){W=requestAnimationFrame(e)}function e(e){var n=$.length;if(n){for(var i=0;in&&(e.duration=t.duration),t.began=!0,e.children.push(t)}),e.reset(),e.seek(0),e.autoplay&&e.restart(),e},e},O.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},O})},function(t,e,n){"use strict";var i=n(1);n.d(e,"a",function(){return l});var r=this,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e,n){return setTimeout(function(){return n.cached_options.position&&n.cached_options.position.includes("bottom")?void i.a.animateOutBottom(t,function(){n.remove(t)}):void i.a.animateOut(t,function(){n.remove(t)})},e),!0},s=function(t,e){return("object"===("undefined"==typeof HTMLElement?"undefined":a(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":a(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?t.appendChild(e):t.innerHTML=e,r},l=function(t,e){var n=!1;return{el:t,text:function(e){return s(t,e),this},goAway:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800;return n=!0,o(t,i,e)},remove:function(){e.remove(t)},disposed:function(){return n}}}},function(t,e,n){"use strict";var i=n(12),r=n.n(i),a=n(1),o=n(7),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=n(2),u={},c=null,h=function(t){return t.className=t.className||null,t.onComplete=t.onComplete||null,t.position=t.position||"top-right",t.duration=t.duration||null,t.theme=t.theme||"primary",t.type=t.type||"default",t.containerClass=t.containerClass||null,t.fullWidth=t.fullWidth||!1,t.icon=t.icon||null,t.action=t.action||null,t.fitToScreen=t.fitToScreen||null,t.closeOnSwipe=void 0===t.closeOnSwipe||t.closeOnSwipe,t.iconPack=t.iconPack||"material",t.className&&"string"==typeof t.className&&(t.className=t.className.split(" ")),t.className||(t.className=[]),t.theme&&t.className.push(t.theme.trim()),t.type&&t.className.push(t.type),t.containerClass&&"string"==typeof t.containerClass&&(t.containerClass=t.containerClass.split(" ")),t.containerClass||(t.containerClass=[]),t.position&&t.containerClass.push(t.position.trim()),t.fullWidth&&t.containerClass.push("full-width"),t.fitToScreen&&t.containerClass.push("fit-to-screen"),u=t,t},d=function(t,e){var i=document.createElement("div");if(i.classList.add("toasted"),i.hash=l.generate(),e.className&&e.className.forEach(function(t){i.classList.add(t)}),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":s(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?i.appendChild(t):i.innerHTML=t,p(e,i),e.closeOnSwipe){var u=new r.a(i,{prevent_default:!1});u.on("pan",function(t){var e=t.deltaX,n=80;i.classList.contains("panning")||i.classList.add("panning");var r=1-Math.abs(e/n);r<0&&(r=0),a.a.animatePanning(i,e,r)}),u.on("panend",function(t){var n=t.deltaX;Math.abs(n)>80?a.a.animatePanEnd(i,function(){"function"==typeof e.onComplete&&e.onComplete(),i.parentNode&&c.remove(i)}):(i.classList.remove("panning"),a.a.animateReset(i))})}if(Array.isArray(e.action))e.action.forEach(function(t){var e=m(t,n.i(o.a)(i,c));e&&i.appendChild(e)});else if("object"===s(e.action)){var h=m(e.action,n.i(o.a)(i,c));h&&i.appendChild(h)}return i},p=function(t,e){if(t.icon){var n=document.createElement("i");switch(t.iconPack){case"fontawesome":n.classList.add("fa");var i=t.icon.name?t.icon.name:t.icon;i.includes("fa-")?n.classList.add(i.trim()):n.classList.add("fa-"+i.trim());break;default:n.classList.add("material-icons"),n.textContent=t.icon.name?t.icon.name:t.icon}t.icon.after&&n.classList.add("after"),f(t,n,e)}},f=function(t,e,n){t.icon&&(t.icon.after&&t.icon.name?n.appendChild(e):(t.icon.name,n.insertBefore(e,n.firstChild)))},m=function(t,e){if(!t)return null;var n=document.createElement("a");if(n.classList.add("action"),n.classList.add("ripple"),t.text&&(n.text=t.text),t.href&&(n.href=t.href),t.icon){n.classList.add("icon");var i=document.createElement("i");switch(u.iconPack){case"fontawesome":i.classList.add("fa"),t.icon.includes("fa-")?i.classList.add(t.icon.trim()):i.classList.add("fa-"+t.icon.trim());break;default:i.classList.add("material-icons"),i.textContent=t.icon}n.appendChild(i)}return t["class"]&&("string"==typeof t["class"]?t["class"].split(" ").forEach(function(t){n.classList.add(t)}):Array.isArray(t["class"])&&t["class"].forEach(function(t){n.classList.add(t.trim())})),t.push&&n.addEventListener("click",function(n){return n.preventDefault(),u.router?(u.router.push(t.push),void(t.push.dontClose||e.goAway(0))):void console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")}),t.onClick&&"function"==typeof t.onClick&&n.addEventListener("click",function(n){t.onClick&&(n.preventDefault(),t.onClick(n,e))}),n};e.a=function(t,e,i){c=t,i=h(i);var r=document.getElementById(c.id);null===r&&(r=document.createElement("div"),r.id=c.id,document.body.appendChild(r)),i.containerClass.unshift("toasted-container"),r.className!==i.containerClass.join(" ")&&(r.className="",i.containerClass.forEach(function(t){r.classList.add(t)}));var s=d(e,i);e&&r.appendChild(s),s.style.opacity=0,a.a.animateIn(s);var l=i.duration,u=void 0;return null!==l&&(u=setInterval(function(){null===s.parentNode&&window.clearInterval(u),s.classList.contains("panning")||(l-=20),l<=0&&(a.a.animateOut(s,function(){"function"==typeof i.onComplete&&i.onComplete(),s.parentNode&&c.remove(s)}),window.clearInterval(u))},20)),n.i(o.a)(s,c)}},function(t,e,n){e=t.exports=n(10)(),e.push([t.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted.primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.primary.success{background:#4caf50}.toasted.primary.error{background:#f44336}.toasted.primary.info{background:#3f51b5}.toasted.primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .material-icons{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .material-icons.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){#toasted-container{min-width:100%}#toasted-container .toasted:first-child{margin-top:0}#toasted-container.top-right{top:0;right:0}#toasted-container.top-left{top:0;left:0}#toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}#toasted-container.bottom-right{right:0;bottom:0}#toasted-container.bottom-left{left:0;bottom:0}#toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}#toasted-container.bottom-center,#toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}#toasted-container.bottom-left .toasted,#toasted-container.bottom-right .toasted,#toasted-container.top-left .toasted,#toasted-container.top-right .toasted{float:none}#toasted-container .toasted{border-radius:0}}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=r.console&&(r.console.warn||r.console.log);return a&&a.call(r.console,i,n),t.apply(this,arguments)}}function d(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&mt(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==yt?t.apply(e?e[0]||s:s,e):t}function m(t,e){return t===s?e:t}function v(t,e,n){c(w(e),function(e){t.addEventListener(e,n,!1)})}function g(t,e,n){c(w(e),function(e){t.removeEventListener(e,n,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function w(t){return t.trim().split(/\s+/g)}function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]}):i.sort()),i}function C(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=P(e):1===r&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,s=o?o.center:a.center,l=e.center=R(i);e.timeStamp=xt(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=j(s,l),e.distance=I(s,l),O(n,e),e.offsetDirection=B(e.deltaX,e.deltaY);var u=F(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=wt(u.x)>wt(u.y)?u.x:u.y,e.scale=o?$(o.pointers,i):1,e.rotation=o?N(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,D(n,e);var c=t.element;y(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function O(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},a=t.prevInput||{};e.eventType!==Rt&&a.eventType!==Bt||(r=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function D(t,e){var n,i,r,a,o=t.lastInterval||e,l=e.timeStamp-o.timeStamp;if(e.eventType!=It&&(l>Pt||o.velocity===s)){var u=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,h=F(l,u,c);i=h.x,r=h.y,n=wt(h.x)>wt(h.y)?h.x:h.y,a=B(u,c),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,a=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=a}function P(t){for(var e=[],n=0;n=wt(e)?t<0?Nt:$t:e<0?Wt:Ht}function I(t,e,n){n||(n=Vt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function j(t,e,n){n||(n=Vt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function N(t,e){return j(e[1],e[0],qt)+j(t[1],t[0],qt)}function $(t,e){return I(e[0],e[1],qt)/I(t[0],t[1],qt)}function W(){this.evEl=Xt,this.evWin=Kt,this.pressed=!1,T.apply(this,arguments)}function H(){this.evEl=Qt,this.evWin=te,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function U(){this.evTarget=ne,this.evWin=ie,this.started=!1,T.apply(this,arguments)}function z(t,e){var n=_(t.touches),i=_(t.changedTouches);return e&(Bt|It)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function G(){this.evTarget=ae,this.targetIds={},T.apply(this,arguments)}function V(t,e){var n=_(t.touches),i=this.targetIds;if(e&(Rt|Ft)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,a,o=_(t.changedTouches),s=[],l=this.target;if(a=n.filter(function(t){return y(t.target,l)}),e===Rt)for(r=0;r-1&&i.splice(t,1)};setTimeout(r,oe)}}function K(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i=we&&e(n.options.event+et(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Se)},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&ye||!(this.state&ye)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(ot,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ye)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(st,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[he]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(Bt|It)&&!r)this.reset();else if(t.eventType&Rt)this.reset(),this._timer=l(function(){this.state=xe,this.tryEmit()},e.time,this);else if(t.eventType&Bt)return xe;return Se},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===xe&&(t&&t.eventType&Bt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=xt(),this.manager.emit(this.options.event,this._input)))}}),d(lt,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ye)}}),d(ut,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ut|zt,pointers:1},getTouchAction:function(){return at.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ut|zt)?e=t.overallVelocity:n&Ut?e=t.overallVelocityX:n&zt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&wt(e)>this.options.velocity&&t.eventType&Bt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(ct,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[de]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance0&&(e+=o(s.lookup,r)),e+=o(s.lookup,n)}var r,a,o=n(3),s=n(0),l=1459707606518,u=6;t.exports=i},function(t,e,n){"use strict";function i(t){var e=r.shuffled();return{version:15&e.indexOf(t.substr(0,1)),worker:15&e.indexOf(t.substr(1,1))}}var r=n(0);t.exports=i},function(t,e,n){"use strict";function i(e){return s.seed(e),t.exports}function r(e){return h=e,t.exports}function a(t){return void 0!==t&&s.characters(t),s.shuffled()}function o(){return u(h)}var s=n(0),l=(n(3),n(14)),u=n(13),c=n(16),h=n(19)||0;t.exports=o,t.exports.generate=o,t.exports.seed=i,t.exports.worker=r,t.exports.characters=a,t.exports.decode=l,t.exports.isValid=c},function(t,e,n){"use strict";function i(t){if(!t||"string"!=typeof t||t.length<6)return!1;for(var e=r.characters(),n=t.length,i=0;in.parts.length&&(i.parts.length=n.parts.length)}else{for(var o=[],r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}function v(t,e){return Da.call(t,e)}function g(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}function y(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function b(t,e){return t.bind(e)}function w(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function x(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;n-1)if(a&&!v(r,"default"))o=!1;else if(""===o||o===Ia(t)){var l=lt(String,r.type);(l<0||s0&&(s=kt(s,(n||"")+"_"+a),Ct(s[0])&&Ct(u)&&(c[l]=R(u.text+s[0].text),s.shift()),c.push.apply(c,s)):o(s)?Ct(u)?c[l]=R(u.text+s):""!==s&&c.push(R(s)):Ct(s)&&Ct(u)?c[l]=R(u.text+s.text):(r(e._isVList)&&i(s.tag)&&t(s.key)&&i(n)&&(s.key="__vlist"+n+"_"+a+"__"),c.push(s)));return c}function At(t,e){return(t.__esModule||co&&"Module"===t[Symbol.toStringTag])&&(t=t["default"]),s(t)?e.extend(t):t}function Tt(t,e,n,i,r){var a=ko();return a.asyncFactory=t,a.asyncMeta={data:e,context:n,children:i,tag:r},a}function Mt(e,n,a){if(r(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;if(r(e.loading)&&i(e.loadingComp))return e.loadingComp;if(!i(e.contexts)){var o=e.contexts=[a],l=!0,u=function(){for(var t=0,e=o.length;t1?w(i):i;for(var r=w(arguments,1),a=0,o=i.length;ars)){ho("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=os.slice(),i=as.slice();qt(),Zt(n),Xt(i),uo&&za.devtools&&uo.emit("flush")}function Xt(t){for(var e=t.length;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&Vt(i,"updated")}}function Kt(t){t._inactive=!1,os.push(t)}function Zt(t){for(var e=0;ehs&&as[n].id>t.id;)n--;as.splice(n+1,0,t)}else as.push(t);us||(us=!0,ft(Yt))}}function Qt(t,e,n){fs.get=function(){return this[e][n]},fs.set=function(t){this[e][n]=t},Object.defineProperty(t,n,fs)}function te(t){t._watchers=[];var e=t.$options;e.props&&ee(t,e.props),e.methods&&se(t,e.methods),e.data?ne(t):N(t._data={},!0),e.computed&&re(t,e.computed),e.watch&&e.watch!==no&&le(t,e.watch)}function ee(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],a=!t.$parent;a||B(!1);var o=function(a){r.push(a);var o=nt(a,e,n,t),s=Ia(a);(Oa(s)||za.isReservedAttr(s))&&ho('"'+s+'" is a reserved attribute and cannot be used as component prop.',t),$(i,a,o,function(){t.$parent&&!is&&ho("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',t)}),a in t||Qt(t,"_props",a)};for(var s in e)o(s);B(!0)}function ne(t){var e=t.$options.data;e=t._data="function"==typeof e?ie(e,t):e||{},u(e)||(e={},ho("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var n=Object.keys(e),i=t.$options.props,r=t.$options.methods,a=n.length;a--;){var o=n[a];r&&v(r,o)&&ho('Method "'+o+'" has already been defined as a data property.',t),i&&v(i,o)?ho('The data property "'+o+'" is already declared as a prop. Use prop default value instead.',t):M(o)||Qt(t,"_data",o)}N(e,!0)}function ie(t,e){D();try{return t.call(e,e)}catch(n){return ut(n,e,"data()"),{}}finally{P()}}function re(t,e){var n=t._computedWatchers=Object.create(null),i=lo();for(var r in e){var a=e[r],o="function"==typeof a?a:a.get;null==o&&ho('Getter is missing for computed property "'+r+'".',t),i||(n[r]=new ps(t,o||S,S,ms)),r in t?r in t.$data?ho('The computed property "'+r+'" is already defined in data.',t):t.$options.props&&r in t.$options.props&&ho('The computed property "'+r+'" is already defined as a prop.',t):ae(t,r,a)}}function ae(t,e,n){var i=!lo();"function"==typeof n?(fs.get=i?oe(e):n,fs.set=S):(fs.get=n.get?i&&n.cache!==!1?oe(e):n.get:S,fs.set=n.set?n.set:S),fs.set===S&&(fs.set=function(){ho('Computed property "'+e+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,e,fs)}function oe(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),xo.target&&e.depend(),e.value}}function se(t,e){var n=t.$options.props;for(var i in e)null==e[i]&&ho('Method "'+i+'" has an undefined value in the component definition. Did you reference the function correctly?',t),n&&v(n,i)&&ho('Method "'+i+'" has already been defined as a prop.',t),i in t&&M(i)&&ho('Method "'+i+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[i]=null==e[i]?S:ja(e[i],t)}function le(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r=0||n.indexOf(t[r])<0)&&i.push(t[r]);return i}return t}function Ge(t){this instanceof Ge||ho("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function Ve(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=w(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function qe(t){t.mixin=function(t){return this.options=tt(this.options,t),this}}function Ye(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var a=t.name||n.options.name;a&&X(a);var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=tt(n.options,t),o["super"]=n,o.options.props&&Xe(o),o.options.computed&&Ke(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,Ha.forEach(function(t){o[t]=n[t]}),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=x({},o.options),r[i]=o,o}}function Xe(t){var e=t.options.props;for(var n in e)Qt(t.prototype,"_props",n)}function Ke(t){var e=t.options.computed;for(var n in e)ae(t.prototype,n,e[n])}function Ze(t){Ha.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&X(t),"component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Je(t){return t&&(t.Ctor.options.name||t.tag)}function Qe(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function tn(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var a in n){var o=n[a];if(o){var s=Je(o.componentOptions);s&&!e(s)&&en(n,a,i,r)}}}function en(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,m(n,e)}function nn(t){var e={};e.get=function(){return za},e.set=function(){ho("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util={warn:ho,extend:x,mergeOptions:tt,defineReactive:$},t.set=W,t["delete"]=H,t.nextTick=ft,t.options=Object.create(null),Ha.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,Ss),Ve(t),qe(t),Ye(t),Ze(t)}function rn(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=an(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=an(e,n.data));return on(e.staticClass,e["class"])}function an(t,e){return{staticClass:sn(t.staticClass,e.staticClass),"class":i(t["class"])?[t["class"],e["class"]]:e["class"]}}function on(t,e){return i(t)||i(e)?sn(t,ln(e)):""}function sn(t,e){return t?e?t+" "+e:t:e||""}function ln(t){return Array.isArray(t)?un(t):s(t)?cn(t):"string"==typeof t?t:""}function un(t){for(var e,n="",r=0,a=t.length;r-1?qs[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:qs[t]=/HTMLUnknownElement/.test(e.toString())}function pn(t){if("string"==typeof t){var e=document.querySelector(t);return e?e:(ho("Cannot find element: "+t),document.createElement("div"))}return t}function fn(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function mn(t,e){return document.createElementNS(Hs[t],e)}function vn(t){return document.createTextNode(t)}function gn(t){return document.createComment(t)}function yn(t,e,n){t.insertBefore(e,n)}function bn(t,e){t.removeChild(e)}function wn(t,e){t.appendChild(e)}function xn(t){return t.parentNode}function _n(t){return t.nextSibling}function Sn(t){return t.tagName}function Cn(t,e){t.textContent=e}function kn(t,e){t.setAttribute(e,"")}function An(t,e){var n=t.data.ref;if(i(n)){var r=t.context,a=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?m(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}function Tn(e,n){return e.key===n.key&&(e.tag===n.tag&&e.isComment===n.isComment&&i(e.data)===i(n.data)&&Mn(e,n)||r(e.isAsyncPlaceholder)&&e.asyncFactory===n.asyncFactory&&t(n.asyncFactory.error))}function Mn(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,a=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===a||Ys(r)&&Ys(a)}function Ln(t,e,n){var r,a,o={};for(r=e;r<=n;++r)a=t[r].key,i(a)&&(o[a]=r);return o}function En(e){function n(t){return new So(B.tagName(t).toLowerCase(),{},[],(void 0),t)}function a(t,e){function n(){0===--n.listeners&&s(t)}return n.listeners=e,n}function s(t){var e=B.parentNode(t);i(e)&&B.removeChild(e,t)}function l(t,e){return!e&&!t.ns&&!(za.ignoredElements.length&&za.ignoredElements.some(function(e){return c(e)?e.test(t.tag):e===t.tag}))&&za.isUnknownElement(t.tag)}function u(t,e,n,a,o,s,u){if(i(t.elm)&&i(s)&&(t=s[u]=F(t)),t.isRootInsert=!o,!h(t,e,n,a)){var c=t.data,d=t.children,p=t.tag;i(p)?(c&&c.pre&&I++,l(t,I)&&ho("Unknown custom element: <"+p+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?B.createElementNS(t.ns,p):B.createElement(p,t),b(t),v(t,d,e),i(c)&&y(t,e),m(n,t.elm,a),c&&c.pre&&I--):r(t.isComment)?(t.elm=B.createComment(t.text),m(n,t.elm,a)):(t.elm=B.createTextNode(t.text),m(n,t.elm,a))}}function h(t,e,n,a){var o=t.data;if(i(o)){var s=i(t.componentInstance)&&o.keepAlive;if(i(o=o.hook)&&i(o=o.init)&&o(t,!1,n,a),i(t.componentInstance))return d(t,e),r(s)&&p(t,e,n,a),!0}}function d(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(y(t,e),b(t)):(An(t),e.push(t))}function p(t,e,n,r){for(var a,o=t;o.componentInstance;)if(o=o.componentInstance._vnode,i(a=o.data)&&i(a=a.transition)){for(a=0;af?(h=t(r[g+1])?null:r[g+1].elm,w(e,h,r,p,g,a)):p>g&&_(e,n,d,f)}function k(t){for(var e={},n=0;n, or missing . Bailing hydration and performing full client-side render.")}e=n(e)}var f=e.elm,m=B.parentNode(f);if(u(a,d,f._leaveCb?null:m,B.nextSibling(f)),i(a.parent))for(var v=a.parent,y=g(a);v;){for(var b=0;b-1?jn(t,e,n):Is(e)?Ws(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bs(e)?t.setAttribute(e,Ws(n)||"false"===n?"false":"true"):Ns(e)?Ws(n)?t.removeAttributeNS(js,$s(e)):t.setAttributeNS(js,e,n):jn(t,e,n)}function jn(t,e,n){if(Ws(n))t.removeAttribute(e);else{if(Za&&!Ja&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}function Nn(e,n){var r=n.elm,a=n.data,o=e.data;if(!(t(a.staticClass)&&t(a["class"])&&(t(o)||t(o.staticClass)&&t(o["class"])))){var s=rn(n),l=r._transitionClasses;i(l)&&(s=sn(s,ln(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}function $n(t){function e(){(o||(o=[])).push(t.slice(f,r).trim()),f=r+1}var n,i,r,a,o,s=!1,l=!1,u=!1,c=!1,h=0,d=0,p=0,f=0;for(r=0;r=0&&(v=t.charAt(m)," "===v);m--);v&&rl.test(v)||(c=!0)}}else void 0===a?(f=r+1,a=t.slice(0,r).trim()):e();if(void 0===a?a=t.slice(0,r).trim():0!==f&&e(),o)for(r=0;r-1?{exp:t.slice(0,Ts),key:'"'+t.slice(Ts+1)+'"'}:{exp:t,key:null};for(ks=t,Ts=Ms=Ls=0;!ei();)As=ti(),ni(As)?ri(As):91===As&&ii(As);return{exp:t.slice(0,Ms),key:t.slice(Ms+1,Ls)}}function ti(){return ks.charCodeAt(++Ts)}function ei(){return Ts>=Cs}function ni(t){return 34===t||39===t}function ii(t){var e=1;for(Ms=Ts;!ei();)if(t=ti(),ni(t))ri(t);else if(91===t&&e++,93===t&&e--,0===e){Ls=Ts;break}}function ri(t){for(var e=t;!ei()&&(t=ti(),t!==e););}function ai(t,e,n){Es=n;var i=e.value,r=e.modifiers,a=t.tag,o=t.attrsMap.type;if("input"===a&&"file"===o&&Es("<"+t.tag+' v-model="'+i+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'),t.component)return Zn(t,i,r),!1;if("select"===a)li(t,i,r);else if("input"===a&&"checkbox"===o)oi(t,i,r);else if("input"===a&&"radio"===o)si(t,i,r);else if("input"===a||"textarea"===a)ui(t,i,r);else{if(!za.isReservedTag(a))return Zn(t,i,r),!1;Es("<"+t.tag+' v-model="'+i+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function oi(t,e,n){var i=n&&n.number,r=Xn(t,"value")||"null",a=Xn(t,"true-value")||"true",o=Xn(t,"false-value")||"false";zn(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),Yn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Jn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Jn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Jn(e,"$$c")+"}",null,!0)}function si(t,e,n){var i=n&&n.number,r=Xn(t,"value")||"null";r=i?"_n("+r+")":r,zn(t,"checked","_q("+e+","+r+")"),Yn(t,"change",Jn(e,r),null,!0)}function li(t,e,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",o="var $$selectedVal = "+r+";";o=o+" "+Jn(e,a),Yn(t,"change",o,null,!0)}function ui(t,e,n){var i=t.attrsMap.type,r=t.attrsMap["v-bind:value"]||t.attrsMap[":value"],a=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];if(r&&!a){var o=t.attrsMap["v-bind:value"]?"v-bind:value":":value";Es(o+'="'+r+'" conflicts with v-model on the same element because the latter already expands to a value binding internally')}var s=n||{},l=s.lazy,u=s.number,c=s.trim,h=!l&&"range"!==i,d=l?"change":"range"===i?al:"input",p="$event.target.value";c&&(p="$event.target.value.trim()"),u&&(p="_n("+p+")");var f=Jn(e,p);h&&(f="if($event.target.composing)return;"+f),zn(t,"value","("+e+")"),Yn(t,d,f,null,!0),(c||u)&&Yn(t,"blur","$forceUpdate()")}function ci(t){if(i(t[al])){var e=Za?"change":"input";t[e]=[].concat(t[al],t[e]||[]),delete t[al]}i(t[ol])&&(t.change=[].concat(t[ol],t.change||[]),delete t[ol])}function hi(t,e,n){var i=Os;return function r(){var a=t.apply(null,arguments);null!==a&&pi(e,r,n,i)}}function di(t,e,n,i,r){e=pt(e),n&&(e=hi(e,t,i)),Os.addEventListener(t,e,io?{capture:i,passive:r}:i)}function pi(t,e,n,i){(i||Os).removeEventListener(t,e._withTask||e,n)}function fi(e,n){if(!t(e.data.on)||!t(n.data.on)){var i=n.data.on||{},r=e.data.on||{};Os=n.elm,ci(i),yt(i,r,di,pi,n.context),Os=void 0}}function mi(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var r,a,o=n.elm,s=e.data.domProps||{},l=n.data.domProps||{};i(l.__ob__)&&(l=n.data.domProps=x({},l));for(r in s)t(l[r])&&(o[r]="");for(r in l){if(a=l[r],"textContent"===r||"innerHTML"===r){if(n.children&&(n.children.length=0),a===s[r])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===r){o._value=a;var u=t(a)?"":String(a);vi(o,u)&&(o.value=u)}else o[r]=a}}}function vi(t,e){return!t.composing&&("OPTION"===t.tagName||gi(t,e)||yi(t,e))}function gi(t,e){var n=!0;try{n=document.activeElement!==t}catch(i){}return n&&t.value!==e}function yi(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}function bi(t){var e=wi(t.style);return t.staticStyle?x(t.staticStyle,e):e}function wi(t){return Array.isArray(t)?_(t):"string"==typeof t?ul(t):t}function xi(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)r=r.componentInstance._vnode,r&&r.data&&(n=bi(r.data))&&x(i,n);(n=bi(t.data))&&x(i,n);for(var a=t;a=a.parent;)a.data&&(n=bi(a.data))&&x(i,n);return i}function _i(e,n){var r=n.data,a=e.data;if(!(t(r.staticStyle)&&t(r.style)&&t(a.staticStyle)&&t(a.style))){var o,s,l=n.elm,u=a.staticStyle,c=a.normalizedStyle||a.style||{},h=u||c,d=wi(n.data.style)||{};n.data.normalizedStyle=i(d.__ob__)?x({},d):d;var p=xi(n,!0);for(s in h)t(p[s])&&dl(l,s,"");for(s in p)o=p[s],o!==h[s]&&dl(l,s,null==o?"":o)}}function Si(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ci(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ki(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&x(e,vl(t.name||"v")),x(e,t),e}return"string"==typeof t?vl(t):void 0}}function Ai(t){Cl(function(){Cl(t)})}function Ti(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Si(t,e))}function Mi(t,e){t._transitionClasses&&m(t._transitionClasses,e),Ci(t,e)}function Li(t,e,n){var i=Ei(t,e),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===yl?xl:Sl,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=o&&u()};setTimeout(function(){l0&&(n=yl,c=o,h=a.length):e===bl?u>0&&(n=bl,c=u,h=l.length):(c=Math.max(o,u),n=c>0?o>u?yl:bl:null,h=n?n===yl?a.length:l.length:0);var d=n===yl&&kl.test(i[wl+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:d}}function Oi(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&ho(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function Bi(t){return"number"==typeof t&&!isNaN(t)}function Ii(e){if(t(e))return!1;var n=e.fns;return i(n)?Ii(Array.isArray(n)?n[0]:n):(e._length||e.length)>1}function ji(t,e){e.data.show!==!0&&Pi(e)}function Ni(t,e,n){$i(t,e,n),(Za||Qa)&&setTimeout(function(){$i(t,e,n)},0)}function $i(t,e,n){var i=e.value,r=t.multiple;if(r&&!Array.isArray(i))return void ho('