!function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var i={};return e.m=t,e.c=i,e.p="/assets/",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var i=e.slice(1),n=t[e[0]];return function(t,e,a){n.apply(this,[t,e,a].concat(i))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,i){i(1),i(2),i(7),i(6),i(8),i(9),i(10),i(11),i(12),i(13),i(14),i(15),i(16),i(17),i(18),i(19),i(20),i(21),i(22),i(23),i(24),i(25),i(27),i(28),i(48),i(49),i(50),i(52),i(55),i(57),i(58),i(73),i(74),i(75),i(77),i(78),i(79),i(80),i(81),i(82),i(83),i(89),i(91),i(92),i(99),i(100),i(104),i(105),i(107),i(108),i(109),i(110),i(111),i(128),i(129),i(134),i(136),i(137),i(141),i(143),i(157),i(160),i(161),i(162),i(163),i(164),i(166),i(167),i(168),i(169),i(170),i(171),i(172),i(173),i(174),i(175),i(176),i(177)},function(t,e,i){var n,a;!function(r,o){n=o,a="function"==typeof n?n.call(e,i,e,t):n,!(void 0!==a&&(t.exports=a))}(this,function(){function t(t){return t=+t,t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function e(t){var e=typeof t;return null===t||"undefined"===e||"boolean"===e||"number"===e||"string"===e}function i(t){var i,n,a;if(e(t))return t;if(n=t.valueOf,A(n)&&(i=n.call(t),e(i)))return i;if(a=t.toString,A(a)&&(i=a.call(t),e(i)))return i;throw new TypeError}function n(){}var a,r=Array.prototype,o=Object.prototype,s=Function.prototype,l=String.prototype,c=Number.prototype,u=r.slice,d=r.splice,h=(r.push,r.unshift),p=s.call,f=o.toString,A=function(t){return"[object Function]"===o.toString.call(t)},g=function(t){return"[object RegExp]"===o.toString.call(t)},m=function(t){return"[object Array]"===f.call(t)},v=function(t){return"[object String]"===f.call(t)},y=function(t){var e=f.call(t),i="[object Arguments]"===e;return i||(i=!m(t)&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&A(t.callee)),i},b=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();a=b?function(t,e,i,n){!n&&e in t||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(t,e,i,n){!n&&e in t||(t[e]=i)};var w=function(t,e,i){for(var n in e)o.hasOwnProperty.call(e,n)&&a(t,n,e[n],i)},x=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)},k=function(t){return t>>>0};w(s,{bind:function(t){var e=this;if(!A(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var i=u.call(arguments,1),a=function(){if(this instanceof l){var n=e.apply(this,i.concat(u.call(arguments)));return Object(n)===n?n:this}return e.apply(t,i.concat(u.call(arguments)))},r=Math.max(0,e.length-i.length),o=[],s=0;r>s;s++)o.push("$"+s);var l=Function("binder","return function ("+o.join(",")+"){return binder.apply(this,arguments)}")(a);return e.prototype&&(n.prototype=e.prototype,l.prototype=new n,n.prototype=null),l}});var C,E,T,S,D,M=p.bind(o.hasOwnProperty);(D=M(o,"__defineGetter__"))&&(C=p.bind(o.__defineGetter__),E=p.bind(o.__defineSetter__),T=p.bind(o.__lookupGetter__),S=p.bind(o.__lookupSetter__));var I=function(){var t=[1,2],e=t.splice();return 2===t.length&&m(e)&&0===e.length}();w(r,{splice:function(t,e){return 0===arguments.length?[]:d.apply(this,arguments)}},I);var j=function(){var t={};return r.splice.call(t,0,0,1),1===t.length}();w(r,{splice:function(e,i){if(0===arguments.length)return[];var n=arguments;return this.length=Math.max(t(this.length),0),arguments.length>0&&"number"!=typeof i&&(n=u.call(arguments),n.length<2?n.push(this.length-e):n[1]=t(i)),d.apply(this,n)}},!j);var B=1!==[].unshift(0);w(r,{unshift:function(){return h.apply(this,arguments),this.length}},B),w(Array,{isArray:m});var P=Object("a"),R="a"!==P[0]||!(0 in P),L=function(t){var e=!0,i=!0;return t&&(t.call("foo",function(t,i,n){"object"!=typeof n&&(e=!1)}),t.call([1],function(){"use strict";i="string"==typeof this},"x")),!!t&&e&&i};w(r,{forEach:function(t){var e=x(this),i=R&&v(this)?this.split(""):e,n=arguments[1],a=-1,r=i.length>>>0;if(!A(t))throw new TypeError;for(;++a>>0,a=Array(n),r=arguments[1];if(!A(t))throw new TypeError(t+" is not a function");for(var o=0;n>o;o++)o in i&&(a[o]=t.call(r,i[o],o,e));return a}},!L(r.map)),w(r,{filter:function(t){var e,i=x(this),n=R&&v(this)?this.split(""):i,a=n.length>>>0,r=[],o=arguments[1];if(!A(t))throw new TypeError(t+" is not a function");for(var s=0;a>s;s++)s in n&&(e=n[s],t.call(o,e,s,i)&&r.push(e));return r}},!L(r.filter)),w(r,{every:function(t){var e=x(this),i=R&&v(this)?this.split(""):e,n=i.length>>>0,a=arguments[1];if(!A(t))throw new TypeError(t+" is not a function");for(var r=0;n>r;r++)if(r in i&&!t.call(a,i[r],r,e))return!1;return!0}},!L(r.every)),w(r,{some:function(t){var e=x(this),i=R&&v(this)?this.split(""):e,n=i.length>>>0,a=arguments[1];if(!A(t))throw new TypeError(t+" is not a function");for(var r=0;n>r;r++)if(r in i&&t.call(a,i[r],r,e))return!0;return!1}},!L(r.some));var F=!1;r.reduce&&(F="object"==typeof r.reduce.call("es5",function(t,e,i,n){return n})),w(r,{reduce:function(t){var e=x(this),i=R&&v(this)?this.split(""):e,n=i.length>>>0;if(!A(t))throw new TypeError(t+" is not a function");if(!n&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var a,r=0;if(arguments.length>=2)a=arguments[1];else for(;;){if(r in i){a=i[r++];break}if(++r>=n)throw new TypeError("reduce of empty array with no initial value")}for(;n>r;r++)r in i&&(a=t.call(void 0,a,i[r],r,e));return a}},!F);var N=!1;r.reduceRight&&(N="object"==typeof r.reduceRight.call("es5",function(t,e,i,n){return n})),w(r,{reduceRight:function(t){var e=x(this),i=R&&v(this)?this.split(""):e,n=i.length>>>0;if(!A(t))throw new TypeError(t+" is not a function");if(!n&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var a,r=n-1;if(arguments.length>=2)a=arguments[1];else for(;;){if(r in i){a=i[r--];break}if(--r<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>r)return a;do r in i&&(a=t.call(void 0,a,i[r],r,e));while(r--);return a}},!N);var O=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);w(r,{indexOf:function(e){var i=R&&v(this)?this.split(""):x(this),n=i.length>>>0;if(!n)return-1;var a=0;for(arguments.length>1&&(a=t(arguments[1])),a=a>=0?a:Math.max(0,n+a);n>a;a++)if(a in i&&i[a]===e)return a;return-1}},O);var Q=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);w(r,{lastIndexOf:function(e){var i=R&&v(this)?this.split(""):x(this),n=i.length>>>0;if(!n)return-1;var a=n-1;for(arguments.length>1&&(a=Math.min(a,t(arguments[1]))),a=a>=0?a:n-Math.abs(a);a>=0;a--)if(a in i&&e===i[a])return a;return-1}},Q);var Y=!{toString:null}.propertyIsEnumerable("toString"),U=function(){}.propertyIsEnumerable("prototype"),G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],H=G.length;w(Object,{keys:function(t){var e=A(t),i=y(t),n=null!==t&&"object"==typeof t,a=n&&v(t);if(!n&&!e&&!i)throw new TypeError("Object.keys called on a non-object");var r=[],o=U&&e;if(a||i)for(var s=0;sd;d++){var h=G[d];u&&"constructor"===h||!M(t,h)||r.push(h)}return r}});var W=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),z=Object.keys;w(Object,{keys:function(t){return z(y(t)?r.slice.call(t):t)}},!W);var V=-621987552e5,_="-000001",J=Date.prototype.toISOString&&-1===new Date(V).toISOString().indexOf(_);w(Date.prototype,{toISOString:function(){var t,e,i,n,a;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=this.getUTCFullYear(),a=this.getUTCMonth(),n+=Math.floor(a/12),a=(a%12+12)%12,t=[a+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],n=(0>n?"-":n>9999?"+":"")+("00000"+Math.abs(n)).slice(n>=0&&9999>=n?-4:-6),e=t.length;e--;)i=t[e],10>i&&(t[e]="0"+i);return n+"-"+t.slice(0,2).join("-")+"T"+t.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},J);var K=!1;try{K=Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(V).toJSON().indexOf(_)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(X){}K||(Date.prototype.toJSON=function(t){var e,n=Object(this),a=i(n);if("number"==typeof a&&!isFinite(a))return null;if(e=n.toISOString,"function"!=typeof e)throw new TypeError("toISOString property is not callable");return e.call(n)});var Z=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),q=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z")),$=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(!Date.parse||$||q||!Z)&&(Date=function(t){function e(i,n,a,r,o,s,l){var c=arguments.length;if(this instanceof t){var u=1===c&&String(i)===i?new t(e.parse(i)):c>=7?new t(i,n,a,r,o,s,l):c>=6?new t(i,n,a,r,o,s):c>=5?new t(i,n,a,r,o):c>=4?new t(i,n,a,r):c>=3?new t(i,n,a):c>=2?new t(i,n):c>=1?new t(i):new t;return u.constructor=e,u}return t.apply(this,arguments)}function i(t,e){var i=e>1?1:0;return r[e]+Math.floor((t-1969+i)/4)-Math.floor((t-1901+i)/100)+Math.floor((t-1601+i)/400)+365*(t-1970)}function n(e){return Number(new t(1970,0,1,0,0,0,e))}var a=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365];for(var o in t)e[o]=t[o];return e.now=t.now,e.UTC=t.UTC,e.prototype=t.prototype,e.prototype.constructor=e,e.parse=function(e){var r=a.exec(e);if(r){var o,s=Number(r[1]),l=Number(r[2]||1)-1,c=Number(r[3]||1)-1,u=Number(r[4]||0),d=Number(r[5]||0),h=Number(r[6]||0),p=Math.floor(1e3*Number(r[7]||0)),f=Boolean(r[4]&&!r[8]),A="-"===r[9]?1:-1,g=Number(r[10]||0),m=Number(r[11]||0);return(d>0||h>0||p>0?24:25)>u&&60>d&&60>h&&1e3>p&&l>-1&&12>l&&24>g&&60>m&&c>-1&&c=-864e13&&864e13>=o)?o:NaN}return t.parse.apply(this,arguments)},e}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var tt=c.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),et={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){for(var i=-1;++i=0;)i+=et.data[e],et.data[e]=Math.floor(i/t),i=i%t*et.base},numToString:function(){for(var t=et.size,e="";--t>=0;)if(""!==e||0===t||0!==et.data[t]){var i=String(et.data[t]);""===e?e=i:e+="0000000".slice(0,7-i.length)+i}return e},pow:function pt(t,e,i){return 0===e?i:e%2===1?pt(t,e-1,i*t):pt(t*t,e/2,i)},log:function(t){for(var e=0;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e}};w(c,{toFixed:function(t){var e,i,n,a,r,o,s,l;if(e=Number(t),e=e!==e?0:Math.floor(e),0>e||e>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(i=Number(this),i!==i)return"NaN";if(-1e21>=i||i>=1e21)return String(i);if(n="",0>i&&(n="-",i=-i),a="0",i>1e-21)if(r=et.log(i*et.pow(2,69,1))-69,o=0>r?i*et.pow(2,-r,1):i/et.pow(2,r,1),o*=4503599627370496,r=52-r,r>0){for(et.multiply(0,o),s=e;s>=7;)et.multiply(1e7,0),s-=7;for(et.multiply(et.pow(10,s,1),0),s=r-1;s>=23;)et.divide(1<<23),s-=23;et.divide(1<0?(l=a.length,a=e>=l?n+"0.0000000000000000000".slice(0,e-l+2)+a:n+a.slice(0,l-e)+"."+a.slice(l-e)):a=n+a,a}},tt);var it=l.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var t=void 0===/()??/.exec("")[1];l.split=function(e,i){var n=this;if(void 0===e&&0===i)return[];if("[object RegExp]"!==f.call(e))return it.call(this,e,i);var a,o,s,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),d=0;for(e=new RegExp(e.source,u+"g"),n+="",t||(a=new RegExp("^"+e.source+"$(?!\\s)",u)),i=void 0===i?-1>>>0:k(i);(o=e.exec(n))&&(s=o.index+o[0].length,!(s>d&&(c.push(n.slice(d,o.index)),!t&&o.length>1&&o[0].replace(a,function(){for(var t=1;t1&&o.index=i)));)e.lastIndex===o.index&&e.lastIndex++;return d===n.length?(l||!e.test(""))&&c.push(""):c.push(n.slice(d)),c.length>i?c.slice(0,i):c}}():"0".split(void 0,0).length&&(l.split=function(t,e){return void 0===t&&0===e?[]:it.call(this,t,e)});var nt=l.replace,at=function(){var t=[];return"x".replace(/x(.)?/g,function(e,i){t.push(i)}),1===t.length&&"undefined"==typeof t[0]}();at||(l.replace=function(t,e){var i=A(e),n=g(t)&&/\)[*?]/.test(t.source);if(i&&n){var a=function(i){var n=arguments.length,a=t.lastIndex;t.lastIndex=0;var r=t.exec(i);return t.lastIndex=a,r.push(arguments[n-2],arguments[n-1]),e.apply(this,r)};return nt.call(this,t,a)}return nt.call(this,t,e)});var rt=l.substr,ot="".substr&&"b"!=="0b".substr(-1);w(l,{substr:function(t,e){return rt.call(this,0>t&&(t=this.length+t)<0?0:t,e)}},ot);var st=" \n \f\r   ᠎              \u2028\u2029\ufeff",lt="​",ct="["+st+"]",ut=new RegExp("^"+ct+ct+"*"),dt=new RegExp(ct+ct+"*$"),ht=l.trim&&(st.trim()||!lt.trim());w(l,{trim:function(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(ut,"").replace(dt,"")}},ht),(8!==parseInt(st+"08")||22!==parseInt(st+"0x16"))&&(parseInt=function(t){var e=/^0[xX]/;return function(i,n){return i=String(i).trim(),Number(n)||(n=e.test(i)?16:10),t(i,n)}}(parseInt))})},function(t,e,i){(function(e){t.exports=e.moment=i(3)}).call(e,function(){return this}())},function(t,e,i){var n;(function(t,a){//! moment.js //! version : 2.8.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function(r){function o(t,e,i){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:i;default:throw new Error("Implement me")}}function s(t,e){return It.call(t,e)}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function c(t){Ct.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function u(t,e){var i=!0;return m(function(){return i&&(c(t),i=!1),e.apply(this,arguments)},e)}function d(t,e){we[t]||(c(e),we[t]=!0)}function h(t,e){return function(i){return b(t.call(this,i),e)}}function p(t,e){return function(i){return this.localeData().ordinal(t.call(this,i),e)}}function f(){}function A(t,e){e!==!1&&F(t),v(this,t),this._d=new Date(+t._d)}function g(t){var e=M(t),i=e.year||0,n=e.quarter||0,a=e.month||0,r=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*s,this._days=+o+7*r,this._months=+a+3*n+12*i,this._data={},this._locale=Ct.localeData(),this._bubble()}function m(t,e){for(var i in e)s(e,i)&&(t[i]=e[i]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function v(t,e){var i,n,a;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Qt.length>0)for(i in Qt)n=Qt[i],a=e[n],"undefined"!=typeof a&&(t[n]=a);return t}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function b(t,e,i){for(var n=""+Math.abs(t),a=t>=0;n.lengthn;n++)(i&&t[n]!==e[n]||!i&&j(t[n])!==j(e[n]))&&o++;return o+r}function D(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=fe[t]||Ae[e]||e}return t}function M(t){var e,i,n={};for(i in t)s(t,i)&&(e=D(i),e&&(n[e]=t[i]));return n}function I(t){var e,i;if(0===t.indexOf("week"))e=7,i="day";else{if(0!==t.indexOf("month"))return;e=12,i="month"}Ct[t]=function(n,a){var o,s,l=Ct._locale[t],c=[];if("number"==typeof n&&(a=n,n=r),s=function(t){var e=Ct().utc().set(i,t);return l.call(Ct._locale,e,n||"")},null!=a)return s(a);for(o=0;e>o;o++)c.push(s(o));return c}}function j(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=e>=0?Math.floor(e):Math.ceil(e)),i}function B(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function P(t,e,i){return ht(Ct([t,11,31+e-i]),e,i).week}function R(t){return L(t)?366:365}function L(t){return t%4===0&&t%100!==0||t%400===0}function F(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[Bt]<0||t._a[Bt]>11?Bt:t._a[Pt]<1||t._a[Pt]>B(t._a[jt],t._a[Bt])?Pt:t._a[Rt]<0||t._a[Rt]>24||24===t._a[Rt]&&(0!==t._a[Lt]||0!==t._a[Ft]||0!==t._a[Nt])?Rt:t._a[Lt]<0||t._a[Lt]>59?Lt:t._a[Ft]<0||t._a[Ft]>59?Ft:t._a[Nt]<0||t._a[Nt]>999?Nt:-1,t._pf._overflowDayOfYear&&(jt>e||e>Pt)&&(e=Pt),t._pf.overflow=e)}function N(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===r)),t._isValid}function O(t){return t?t.toLowerCase().replace("_","-"):t}function Q(t){for(var e,i,n,a,r=0;r0;){if(n=Y(a.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(a,i,!0)>=e-1)break;e--}r++}return null}function Y(t){var e=null;if(!Ot[t]&&Yt)try{e=Ct.locale(),i(5)("./"+t),Ct.locale(e)}catch(n){}return Ot[t]}function U(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(Ct.isMoment(t)||T(t)?+t:+Ct(t))-+i,i._d.setTime(+i._d+n),Ct.updateOffset(i,!1),i):Ct(t).local()}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,i,n=t.match(Wt);for(e=0,i=n.length;i>e;e++)be[n[e]]?n[e]=be[n[e]]:n[e]=G(n[e]);return function(a){var r="";for(e=0;i>e;e++)r+=n[e]instanceof Function?n[e].call(a,t):n[e];return r}}function W(t,e){return t.isValid()?(e=z(e,t.localeData()),ge[e]||(ge[e]=H(e)),ge[e](t)):t.localeData().invalidDate()}function z(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(zt.lastIndex=0;n>=0&&zt.test(t);)t=t.replace(zt,i),zt.lastIndex=0,n-=1;return t}function V(t,e){var i,n=e._strict;switch(t){case"Q":return ie;case"DDDD":return ae;case"YYYY":case"GGGG":case"gggg":return n?re:Jt;case"Y":case"G":case"g":return se;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?oe:Kt;case"S":if(n)return ie;case"SS":if(n)return ne;case"SSS":if(n)return ae;case"DDD":return _t;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Zt;case"a":case"A":return e._locale._meridiemParse;case"x":return te;case"X":return ee;case"Z":case"ZZ":return qt;case"T":return $t;case"SSSS":return Xt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?ne:Vt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Vt;case"Do":return n?e._locale._ordinalParse:e._locale._ordinalParseLenient;default:return i=new RegExp(et(tt(t.replace("\\","")),"i"))}}function _(t){t=t||"";var e=t.match(qt)||[],i=e[e.length-1]||[],n=(i+"").match(he)||["-",0,0],a=+(60*n[1])+j(n[2]);return"+"===n[0]?-a:a}function J(t,e,i){var n,a=i._a;switch(t){case"Q":null!=e&&(a[Bt]=3*(j(e)-1));break;case"M":case"MM":null!=e&&(a[Bt]=j(e)-1);break;case"MMM":case"MMMM":n=i._locale.monthsParse(e,t,i._strict),null!=n?a[Bt]=n:i._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(a[Pt]=j(e));break;case"Do":null!=e&&(a[Pt]=j(parseInt(e.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=e&&(i._dayOfYear=j(e));break;case"YY":a[jt]=Ct.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":a[jt]=j(e);break;case"a":case"A":i._isPm=i._locale.isPM(e);break;case"h":case"hh":i._pf.bigHour=!0;case"H":case"HH":a[Rt]=j(e);break;case"m":case"mm":a[Lt]=j(e);break;case"s":case"ss":a[Ft]=j(e);break;case"S":case"SS":case"SSS":case"SSSS":a[Nt]=j(1e3*("0."+e));break;case"x":i._d=new Date(j(e));break;case"X":i._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":i._useUTC=!0,i._tzm=_(e);break;case"dd":case"ddd":case"dddd":n=i._locale.weekdaysParse(e),null!=n?(i._w=i._w||{},i._w.d=n):i._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(i._w=i._w||{},i._w[t]=j(e));break;case"gg":case"GG":i._w=i._w||{},i._w[t]=Ct.parseTwoDigitYear(e)}}function K(t){var e,i,n,a,r,s,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(r=1,s=4,i=o(e.GG,t._a[jt],ht(Ct(),1,4).year),n=o(e.W,1),a=o(e.E,1)):(r=t._locale._week.dow,s=t._locale._week.doy,i=o(e.gg,t._a[jt],ht(Ct(),r,s).year),n=o(e.w,1),null!=e.d?(a=e.d,r>a&&++n):a=null!=e.e?e.e+r:r),l=pt(i,n,a,s,r),t._a[jt]=l.year,t._dayOfYear=l.dayOfYear}function X(t){var e,i,n,a,r=[];if(!t._d){for(n=q(t),t._w&&null==t._a[Pt]&&null==t._a[Bt]&&K(t),t._dayOfYear&&(a=o(t._a[jt],n[jt]),t._dayOfYear>R(a)&&(t._pf._overflowDayOfYear=!0),i=lt(a,0,t._dayOfYear),t._a[Bt]=i.getUTCMonth(),t._a[Pt]=i.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=r[e]=n[e];for(;7>e;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Rt]&&0===t._a[Lt]&&0===t._a[Ft]&&0===t._a[Nt]&&(t._nextDay=!0,t._a[Rt]=0),t._d=(t._useUTC?lt:st).apply(null,r),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm),t._nextDay&&(t._a[Rt]=24)}}function Z(t){var e;t._d||(e=M(t._i),t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],X(t))}function q(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function $(t){if(t._f===Ct.ISO_8601)return void nt(t);t._a=[],t._pf.empty=!0;var e,i,n,a,o,s=""+t._i,l=s.length,c=0;for(n=z(t._f,t._locale).match(Wt)||[],e=0;e0&&t._pf.unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),c+=i.length),be[a]?(i?t._pf.empty=!1:t._pf.unusedTokens.push(a),J(a,i,t)):t._strict&&!i&&t._pf.unusedTokens.push(a);t._pf.charsLeftOver=l-c,s.length>0&&t._pf.unusedInput.push(s),t._pf.bigHour===!0&&t._a[Rt]<=12&&(t._pf.bigHour=r),t._isPm&&t._a[Rt]<12&&(t._a[Rt]+=12),t._isPm===!1&&12===t._a[Rt]&&(t._a[Rt]=0),X(t),F(t)}function tt(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,a){return e||i||n||a})}function et(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function it(t){var e,i,n,a,r;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;ar)&&(n=r,i=e));m(t,i||e)}function nt(t){var e,i,n=t._i,a=le.exec(n);if(a){for(t._pf.iso=!0,e=0,i=ue.length;i>e;e++)if(ue[e][1].exec(n)){t._f=ue[e][0]+(a[6]||" ");break}for(e=0,i=de.length;i>e;e++)if(de[e][1].exec(n)){t._f+=de[e][0];break}n.match(qt)&&(t._f+="Z"),$(t)}else t._isValid=!1}function at(t){nt(t),t._isValid===!1&&(delete t._isValid,Ct.createFromInputFallback(t))}function rt(t,e){var i,n=[];for(i=0;it&&s.setFullYear(t),s}function lt(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function ct(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function ut(t,e,i,n,a){return a.relativeTime(e||1,!!i,t,n)}function dt(t,e,i){var n=Ct.duration(t).abs(),a=Mt(n.as("s")),r=Mt(n.as("m")),o=Mt(n.as("h")),s=Mt(n.as("d")),l=Mt(n.as("M")),c=Mt(n.as("y")),u=a0,u[4]=i,ut.apply({},u)}function ht(t,e,i){var n,a=i-e,r=i-t.day();return r>a&&(r-=7),a-7>r&&(r+=7),n=Ct(t).add(r,"d"),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function pt(t,e,i,n,a){var r,o,s=lt(t,0,1).getUTCDay();return s=0===s?7:s,i=null!=i?i:a,r=a-s+(s>n?7:0)-(a>s?7:0),o=7*(e-1)+(i-a)+r+1,{year:o>0?t:t-1,dayOfYear:o>0?o:R(t-1)+o}}function ft(t){var e,i=t._i,n=t._f;return t._locale=t._locale||Ct.localeData(t._l),null===i||n===r&&""===i?Ct.invalid({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),Ct.isMoment(i)?new A(i,!0):(n?E(n)?it(t):$(t):ot(t),e=new A(t),e._nextDay&&(e.add(1,"d"),e._nextDay=r),e))}function At(t,e){var i,n;if(1===e.length&&E(e[0])&&(e=e[0]),!e.length)return Ct();for(i=e[0],n=1;n=0?"+":"-";return e+b(Math.abs(t),6)},gg:function(){return b(this.weekYear()%100,2)},gggg:function(){return b(this.weekYear(),4)},ggggg:function(){return b(this.weekYear(),5)},GG:function(){return b(this.isoWeekYear()%100,2)},GGGG:function(){return b(this.isoWeekYear(),4)},GGGGG:function(){return b(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return j(this.milliseconds()/100)},SS:function(){return b(j(this.milliseconds()/10),2)},SSS:function(){return b(this.milliseconds(),3)},SSSS:function(){return b(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+b(j(t/60),2)+":"+b(j(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+b(j(t/60),2)+b(j(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},we={},xe=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ve.length;)Tt=ve.pop(),be[Tt+"o"]=p(be[Tt],Tt);for(;ye.length;)Tt=ye.pop(),be[Tt+Tt]=h(be[Tt],2);be.DDDD=h(be.DDD,3),m(f.prototype,{set:function(t){var e,i;for(i in t)e=t[i],"function"==typeof e?this[i]=e:this["_"+i]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t,e,i){var n,a,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;12>n;n++){if(a=Ct.utc([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,i,n;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(i=Ct([2e3,1]).day(e),n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[e]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e,i){var n=this._calendar[t];return"function"==typeof n?n.apply(e,[i]):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,i,n){var a=this._relativeTime[i];return"function"==typeof a?a(t,e,i,n):a.replace(/%d/i,t)},pastFuture:function(t,e){var i=this._relativeTime[t>0?"future":"past"];return"function"==typeof i?i(e):i.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(t){return t},postformat:function(t){return t},week:function(t){return ht(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Ct=function(t,e,i,n){var a;return"boolean"==typeof i&&(n=i,i=r),a={},a._isAMomentObject=!0,a._i=t,a._f=e,a._l=i,a._strict=n,a._isUTC=!1,a._pf=l(),ft(a)},Ct.suppressDeprecationWarnings=!1,Ct.createFromInputFallback=u("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),Ct.min=function(){var t=[].slice.call(arguments,0);return At("isBefore",t)},Ct.max=function(){var t=[].slice.call(arguments,0);return At("isAfter",t)},Ct.utc=function(t,e,i,n){var a;return"boolean"==typeof i&&(n=i,i=r),a={},a._isAMomentObject=!0,a._useUTC=!0,a._isUTC=!0,a._l=i,a._i=t,a._f=e,a._strict=n,a._pf=l(),ft(a).utc()},Ct.unix=function(t){return Ct(1e3*t)},Ct.duration=function(t,e){var i,n,a,r,o=t,l=null;return Ct.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(l=Gt.exec(t))?(i="-"===l[1]?-1:1,o={y:0,d:j(l[Pt])*i,h:j(l[Rt])*i,m:j(l[Lt])*i,s:j(l[Ft])*i,ms:j(l[Nt])*i}):(l=Ht.exec(t))?(i="-"===l[1]?-1:1,a=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*i},o={y:a(l[2]),M:a(l[3]),d:a(l[4]),h:a(l[5]),m:a(l[6]),s:a(l[7]),w:a(l[8])}):"object"==typeof o&&("from"in o||"to"in o)&&(r=x(Ct(o.from),Ct(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),n=new g(o),Ct.isDuration(t)&&s(t,"_locale")&&(n._locale=t._locale),n},Ct.version=St,Ct.defaultFormat=ce,Ct.ISO_8601=function(){},Ct.momentProperties=Qt,Ct.updateOffset=function(){},Ct.relativeTimeThreshold=function(t,e){return me[t]===r?!1:e===r?me[t]:(me[t]=e,!0)},Ct.lang=u("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return Ct.locale(t,e)}),Ct.locale=function(t,e){var i;return t&&(i="undefined"!=typeof e?Ct.defineLocale(t,e):Ct.localeData(t),i&&(Ct.duration._locale=Ct._locale=i)),Ct._locale._abbr},Ct.defineLocale=function(t,e){return null!==e?(e.abbr=t,Ot[t]||(Ot[t]=new f),Ot[t].set(e),Ct.locale(t),Ot[t]):(delete Ot[t],null)},Ct.langData=u("moment.langData is deprecated. Use moment.localeData instead.",function(t){return Ct.localeData(t)}),Ct.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ct._locale;if(!E(t)){if(e=Y(t))return e;t=[t]}return Q(t)},Ct.isMoment=function(t){return t instanceof A||null!=t&&s(t,"_isAMomentObject")},Ct.isDuration=function(t){return t instanceof g};for(Tt=xe.length-1;Tt>=0;--Tt)I(xe[Tt]);Ct.normalizeUnits=function(t){return D(t)},Ct.invalid=function(t){var e=Ct.utc(NaN);return null!=t?m(e._pf,t):e._pf.userInvalidated=!0,e},Ct.parseZone=function(){return Ct.apply(null,arguments).parseZone()},Ct.parseTwoDigitYear=function(t){return j(t)+(j(t)>68?1900:2e3)},m(Ct.fn=A.prototype,{clone:function(){return Ct(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=Ct(this).utc();return 00:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._dateTzOffset(),"m")),this},format:function(t){var e=W(this,t||Ct.defaultFormat);return this.localeData().postformat(e)},add:k(1,"add"),subtract:k(-1,"subtract"),diff:function(t,e,i){var n,a,r,o=U(t,this),s=6e4*(this.zone()-o.zone());return e=D(e),"year"===e||"month"===e?(n=432e5*(this.daysInMonth()+o.daysInMonth()),a=12*(this.year()-o.year())+(this.month()-o.month()),r=this-Ct(this).startOf("month")-(o-Ct(o).startOf("month")),r-=6e4*(this.zone()-Ct(this).startOf("month").zone()-(o.zone()-Ct(o).startOf("month").zone())),a+=r/n,"year"===e&&(a/=12)):(n=this-o,a="second"===e?n/1e3:"minute"===e?n/6e4:"hour"===e?n/36e5:"day"===e?(n-s)/864e5:"week"===e?(n-s)/6048e5:n),i?a:y(a)},from:function(t,e){return Ct.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(Ct(),t)},calendar:function(t){var e=t||Ct(),i=U(e,this).startOf("day"),n=this.diff(i,"days",!0),a=-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse";return this.format(this.localeData().calendar(a,this,Ct(e)))},isLeapYear:function(){return L(this.year())},isDST:function(){return this.zone()+t):(i=Ct.isMoment(t)?+t:+Ct(t),i<+this.clone().startOf(e))},isBefore:function(t,e){var i;return e=D("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=Ct.isMoment(t)?t:Ct(t),+t>+this):(i=Ct.isMoment(t)?+t:+Ct(t),+this.clone().endOf(e)t?this:t}),max:u("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=Ct.apply(null,arguments),t>this?this:t}),zone:function(t,e){var i,n=this._offset||0;return null==t?this._isUTC?n:this._dateTzOffset():("string"==typeof t&&(t=_(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(i=this._dateTzOffset()),this._offset=t,this._isUTC=!0,null!=i&&this.subtract(i,"m"),n!==t&&(!e||this._changeInProgress?C(this,Ct.duration(n-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ct.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?Ct(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return B(this.year(),this.month())},dayOfYear:function(t){var e=Mt((Ct(this).startOf("day")-Ct(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=ht(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=ht(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=ht(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return P(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return P(this.year(),t.dow,t.doy)},get:function(t){return t=D(t),this[t]()},set:function(t,e){return t=D(t),"function"==typeof this[t]&&this[t](e),this},locale:function(t){var e;return t===r?this._locale._abbr:(e=Ct.localeData(t),null!=e&&(this._locale=e),this)},lang:u("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===r?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Ct.fn.millisecond=Ct.fn.milliseconds=yt("Milliseconds",!1),Ct.fn.second=Ct.fn.seconds=yt("Seconds",!1),Ct.fn.minute=Ct.fn.minutes=yt("Minutes",!1),Ct.fn.hour=Ct.fn.hours=yt("Hours",!0),Ct.fn.date=yt("Date",!0),Ct.fn.dates=u("dates accessor is deprecated. Use date instead.",yt("Date",!0)),Ct.fn.year=yt("FullYear",!0),Ct.fn.years=u("years accessor is deprecated. Use year instead.",yt("FullYear",!0)),Ct.fn.days=Ct.fn.day,Ct.fn.months=Ct.fn.month,Ct.fn.weeks=Ct.fn.week,Ct.fn.isoWeeks=Ct.fn.isoWeek,Ct.fn.quarters=Ct.fn.quarter,Ct.fn.toJSON=Ct.fn.toISOString,m(Ct.duration.fn=g.prototype,{_bubble:function(){var t,e,i,n=this._milliseconds,a=this._days,r=this._months,o=this._data,s=0;o.milliseconds=n%1e3,t=y(n/1e3),o.seconds=t%60,e=y(t/60),o.minutes=e%60,i=y(e/60),o.hours=i%24,a+=y(i/24),s=y(bt(a)),a-=y(wt(s)),r+=y(a/30),a%=30,s+=y(r/12),r%=12,o.days=a,o.months=r,o.years=s},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*j(this._months/12)},humanize:function(t){var e=dt(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var i=Ct.duration(t,e);return this._milliseconds+=i._milliseconds,this._days+=i._days,this._months+=i._months,this._bubble(),this},subtract:function(t,e){var i=Ct.duration(t,e);return this._milliseconds-=i._milliseconds,this._days-=i._days,this._months-=i._months,this._bubble(),this},get:function(t){return t=D(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,i;if(t=D(t),"month"===t||"year"===t)return e=this._days+this._milliseconds/864e5,i=this._months+12*bt(e),"month"===t?i:i/12;switch(e=this._days+Math.round(wt(this._months/12)),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3; case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:Ct.fn.lang,locale:Ct.fn.locale,toIsoString:u("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),i=Math.abs(this.days()),n=Math.abs(this.hours()),a=Math.abs(this.minutes()),r=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(i?i+"D":"")+(n||a||r?"T":"")+(n?n+"H":"")+(a?a+"M":"")+(r?r+"S":""):"P0D"},localeData:function(){return this._locale}}),Ct.duration.fn.toString=Ct.duration.fn.toISOString;for(Tt in pe)s(pe,Tt)&&xt(Tt.toLowerCase());Ct.duration.fn.asMilliseconds=function(){return this.as("ms")},Ct.duration.fn.asSeconds=function(){return this.as("s")},Ct.duration.fn.asMinutes=function(){return this.as("m")},Ct.duration.fn.asHours=function(){return this.as("h")},Ct.duration.fn.asDays=function(){return this.as("d")},Ct.duration.fn.asWeeks=function(){return this.as("weeks")},Ct.duration.fn.asMonths=function(){return this.as("M")},Ct.duration.fn.asYears=function(){return this.as("y")},Ct.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===j(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),Yt?a.exports=Ct:(n=function(t,e,i){return i.config&&i.config()&&i.config().noGlobal===!0&&(Dt.moment=Et),Ct}.call(e,i,e,a),!(n!==r&&(a.exports=n)),kt(!0))}).call(this)}).call(e,function(){return this}(),i(4)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,i){function n(t){return i(a(t))}function a(t){return r[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var r={"./zh-cn":6,"./zh-cn.js":6,"./zh-tw":7,"./zh-tw.js":7};n.keys=function(){return Object.keys(r)},n.resolve=a,t.exports=n,n.id=5},function(t,e,i){var n,a,r;!function(o){a=[i(3)],n=o,r="function"==typeof n?n.apply(e,a):n,!(void 0!==r&&(t.exports=r))}(function(t){return t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(t,e,i){var n=100*t+e;return 600>n?"凌晨":900>n?"早上":1130>n?"上午":1230>n?"中午":1800>n?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,i;return e=t().startOf("week"),i=this.unix()-e.unix()>=604800?"[下]":"[本]",0===this.minutes()?i+"dddAh点整":i+"dddAh点mm"},lastWeek:function(){var e,i;return e=t().startOf("week"),i=this.unix()n?"早上":1130>n?"上午":1230>n?"中午":1800>n?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})})},function(t,e,i){var n,a;(function(){function i(t){function e(e,i,n,a,r,o){for(;r>=0&&o>r;r+=t){var s=a?a[r]:r;n=i(n,e[s],s,e)}return n}return function(i,n,a,r){n=x(n,r,4);var o=!S(i)&&w.keys(i),s=(o||i).length,l=t>0?0:s-1;return arguments.length<3&&(a=i[o?o[l]:l],l+=t),e(i,n,a,o,l,s)}}function r(t){return function(e,i,n){i=k(i,n);for(var a=null!=e&&e.length,r=t>0?0:a-1;r>=0&&a>r;r+=t)if(i(e[r],r,e))return r;return-1}}function o(t,e){var i=B.length,n=t.constructor,a=w.isFunction(n)&&n.prototype||u,r="constructor";for(w.has(t,r)&&!w.contains(e,r)&&e.push(r);i--;)r=B[i],r in t&&t[r]!==a[r]&&!w.contains(e,r)&&e.push(r)}var s=this,l=s._,c=Array.prototype,u=Object.prototype,d=Function.prototype,h=c.push,p=c.slice,f=u.toString,A=u.hasOwnProperty,g=Array.isArray,m=Object.keys,v=d.bind,y=Object.create,b=function(){},w=function(t){return t instanceof w?t:this instanceof w?void(this._wrapped=t):new w(t)};"undefined"!=typeof t&&t.exports&&(e=t.exports=w),e._=w,w.VERSION="1.8.2";var x=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,a){return t.call(e,i,n,a)};case 4:return function(i,n,a,r){return t.call(e,i,n,a,r)}}return function(){return t.apply(e,arguments)}},k=function(t,e,i){return null==t?w.identity:w.isFunction(t)?x(t,e,i):w.isObject(t)?w.matcher(t):w.property(t)};w.iteratee=function(t,e){return k(t,e,1/0)};var C=function(t,e){return function(i){var n=arguments.length;if(2>n||null==i)return i;for(var a=1;n>a;a++)for(var r=arguments[a],o=t(r),s=o.length,l=0;s>l;l++){var c=o[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}},E=function(t){if(!w.isObject(t))return{};if(y)return y(t);b.prototype=t;var e=new b;return b.prototype=null,e},T=Math.pow(2,53)-1,S=function(t){var e=t&&t.length;return"number"==typeof e&&e>=0&&T>=e};w.each=w.forEach=function(t,e,i){e=x(e,i);var n,a;if(S(t))for(n=0,a=t.length;a>n;n++)e(t[n],n,t);else{var r=w.keys(t);for(n=0,a=r.length;a>n;n++)e(t[r[n]],r[n],t)}return t},w.map=w.collect=function(t,e,i){e=k(e,i);for(var n=!S(t)&&w.keys(t),a=(n||t).length,r=Array(a),o=0;a>o;o++){var s=n?n[o]:o;r[o]=e(t[s],s,t)}return r},w.reduce=w.foldl=w.inject=i(1),w.reduceRight=w.foldr=i(-1),w.find=w.detect=function(t,e,i){var n;return n=S(t)?w.findIndex(t,e,i):w.findKey(t,e,i),void 0!==n&&-1!==n?t[n]:void 0},w.filter=w.select=function(t,e,i){var n=[];return e=k(e,i),w.each(t,function(t,i,a){e(t,i,a)&&n.push(t)}),n},w.reject=function(t,e,i){return w.filter(t,w.negate(k(e)),i)},w.every=w.all=function(t,e,i){e=k(e,i);for(var n=!S(t)&&w.keys(t),a=(n||t).length,r=0;a>r;r++){var o=n?n[r]:r;if(!e(t[o],o,t))return!1}return!0},w.some=w.any=function(t,e,i){e=k(e,i);for(var n=!S(t)&&w.keys(t),a=(n||t).length,r=0;a>r;r++){var o=n?n[r]:r;if(e(t[o],o,t))return!0}return!1},w.contains=w.includes=w.include=function(t,e,i){return S(t)||(t=w.values(t)),w.indexOf(t,e,"number"==typeof i&&i)>=0},w.invoke=function(t,e){var i=p.call(arguments,2),n=w.isFunction(e);return w.map(t,function(t){var a=n?e:t[e];return null==a?a:a.apply(t,i)})},w.pluck=function(t,e){return w.map(t,w.property(e))},w.where=function(t,e){return w.filter(t,w.matcher(e))},w.findWhere=function(t,e){return w.find(t,w.matcher(e))},w.max=function(t,e,i){var n,a,r=-(1/0),o=-(1/0);if(null==e&&null!=t){t=S(t)?t:w.values(t);for(var s=0,l=t.length;l>s;s++)n=t[s],n>r&&(r=n)}else e=k(e,i),w.each(t,function(t,i,n){a=e(t,i,n),(a>o||a===-(1/0)&&r===-(1/0))&&(r=t,o=a)});return r},w.min=function(t,e,i){var n,a,r=1/0,o=1/0;if(null==e&&null!=t){t=S(t)?t:w.values(t);for(var s=0,l=t.length;l>s;s++)n=t[s],r>n&&(r=n)}else e=k(e,i),w.each(t,function(t,i,n){a=e(t,i,n),(o>a||a===1/0&&r===1/0)&&(r=t,o=a)});return r},w.shuffle=function(t){for(var e,i=S(t)?t:w.values(t),n=i.length,a=Array(n),r=0;n>r;r++)e=w.random(0,r),e!==r&&(a[r]=a[e]),a[e]=i[r];return a},w.sample=function(t,e,i){return null==e||i?(S(t)||(t=w.values(t)),t[w.random(t.length-1)]):w.shuffle(t).slice(0,Math.max(0,e))},w.sortBy=function(t,e,i){return e=k(e,i),w.pluck(w.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return t.index-e.index}),"value")};var D=function(t){return function(e,i,n){var a={};return i=k(i,n),w.each(e,function(n,r){var o=i(n,r,e);t(a,n,o)}),a}};w.groupBy=D(function(t,e,i){w.has(t,i)?t[i].push(e):t[i]=[e]}),w.indexBy=D(function(t,e,i){t[i]=e}),w.countBy=D(function(t,e,i){w.has(t,i)?t[i]++:t[i]=1}),w.toArray=function(t){return t?w.isArray(t)?p.call(t):S(t)?w.map(t,w.identity):w.values(t):[]},w.size=function(t){return null==t?0:S(t)?t.length:w.keys(t).length},w.partition=function(t,e,i){e=k(e,i);var n=[],a=[];return w.each(t,function(t,i,r){(e(t,i,r)?n:a).push(t)}),[n,a]},w.first=w.head=w.take=function(t,e,i){return null==t?void 0:null==e||i?t[0]:w.initial(t,t.length-e)},w.initial=function(t,e,i){return p.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},w.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:w.rest(t,Math.max(0,t.length-e))},w.rest=w.tail=w.drop=function(t,e,i){return p.call(t,null==e||i?1:e)},w.compact=function(t){return w.filter(t,w.identity)};var M=function(t,e,i,n){for(var a=[],r=0,o=n||0,s=t&&t.length;s>o;o++){var l=t[o];if(S(l)&&(w.isArray(l)||w.isArguments(l))){e||(l=M(l,e,i));var c=0,u=l.length;for(a.length+=u;u>c;)a[r++]=l[c++]}else i||(a[r++]=l)}return a};w.flatten=function(t,e){return M(t,e,!1)},w.without=function(t){return w.difference(t,p.call(arguments,1))},w.uniq=w.unique=function(t,e,i,n){if(null==t)return[];w.isBoolean(e)||(n=i,i=e,e=!1),null!=i&&(i=k(i,n));for(var a=[],r=[],o=0,s=t.length;s>o;o++){var l=t[o],c=i?i(l,o,t):l;e?(o&&r===c||a.push(l),r=c):i?w.contains(r,c)||(r.push(c),a.push(l)):w.contains(a,l)||a.push(l)}return a},w.union=function(){return w.uniq(M(arguments,!0,!0))},w.intersection=function(t){if(null==t)return[];for(var e=[],i=arguments.length,n=0,a=t.length;a>n;n++){var r=t[n];if(!w.contains(e,r)){for(var o=1;i>o&&w.contains(arguments[o],r);o++);o===i&&e.push(r)}}return e},w.difference=function(t){var e=M(arguments,!0,!0,1);return w.filter(t,function(t){return!w.contains(e,t)})},w.zip=function(){return w.unzip(arguments)},w.unzip=function(t){for(var e=t&&w.max(t,"length").length||0,i=Array(e),n=0;e>n;n++)i[n]=w.pluck(t,n);return i},w.object=function(t,e){for(var i={},n=0,a=t&&t.length;a>n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},w.indexOf=function(t,e,i){var n=0,a=t&&t.length;if("number"==typeof i)n=0>i?Math.max(0,a+i):i;else if(i&&a)return n=w.sortedIndex(t,e),t[n]===e?n:-1;if(e!==e)return w.findIndex(p.call(t,n),w.isNaN);for(;a>n;n++)if(t[n]===e)return n;return-1},w.lastIndexOf=function(t,e,i){var n=t?t.length:0;if("number"==typeof i&&(n=0>i?n+i+1:Math.min(n,i+1)),e!==e)return w.findLastIndex(p.call(t,0,n),w.isNaN);for(;--n>=0;)if(t[n]===e)return n;return-1},w.findIndex=r(1),w.findLastIndex=r(-1),w.sortedIndex=function(t,e,i,n){i=k(i,n,1);for(var a=i(e),r=0,o=t.length;o>r;){var s=Math.floor((r+o)/2);i(t[s])r;r++,t+=i)a[r]=t;return a};var I=function(t,e,i,n,a){if(!(n instanceof e))return t.apply(i,a);var r=E(t.prototype),o=t.apply(r,a);return w.isObject(o)?o:r};w.bind=function(t,e){if(v&&t.bind===v)return v.apply(t,p.call(arguments,1));if(!w.isFunction(t))throw new TypeError("Bind must be called on a function");var i=p.call(arguments,2),n=function(){return I(t,n,e,this,i.concat(p.call(arguments)))};return n},w.partial=function(t){var e=p.call(arguments,1),i=function(){for(var n=0,a=e.length,r=Array(a),o=0;a>o;o++)r[o]=e[o]===w?arguments[n++]:e[o];for(;n=n)throw new Error("bindAll must be passed function names");for(e=1;n>e;e++)i=arguments[e],t[i]=w.bind(t[i],t);return t},w.memoize=function(t,e){var i=function(n){var a=i.cache,r=""+(e?e.apply(this,arguments):n);return w.has(a,r)||(a[r]=t.apply(this,arguments)),a[r]};return i.cache={},i},w.delay=function(t,e){var i=p.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},w.defer=w.partial(w.delay,w,1),w.throttle=function(t,e,i){var n,a,r,o=null,s=0;i||(i={});var l=function(){s=i.leading===!1?0:w.now(),o=null,r=t.apply(n,a),o||(n=a=null)};return function(){var c=w.now();s||i.leading!==!1||(s=c);var u=e-(c-s);return n=this,a=arguments,0>=u||u>e?(o&&(clearTimeout(o),o=null),s=c,r=t.apply(n,a),o||(n=a=null)):o||i.trailing===!1||(o=setTimeout(l,u)),r}},w.debounce=function(t,e,i){var n,a,r,o,s,l=function(){var c=w.now()-o;e>c&&c>=0?n=setTimeout(l,e-c):(n=null,i||(s=t.apply(r,a),n||(r=a=null)))};return function(){r=this,a=arguments,o=w.now();var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(s=t.apply(r,a),r=a=null),s}},w.wrap=function(t,e){return w.partial(e,t)},w.negate=function(t){return function(){return!t.apply(this,arguments)}},w.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},w.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},w.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),1>=t&&(e=null),i}},w.once=w.partial(w.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];w.keys=function(t){if(!w.isObject(t))return[];if(m)return m(t);var e=[];for(var i in t)w.has(t,i)&&e.push(i);return j&&o(t,e),e},w.allKeys=function(t){if(!w.isObject(t))return[];var e=[];for(var i in t)e.push(i);return j&&o(t,e),e},w.values=function(t){for(var e=w.keys(t),i=e.length,n=Array(i),a=0;i>a;a++)n[a]=t[e[a]];return n},w.mapObject=function(t,e,i){e=k(e,i);for(var n,a=w.keys(t),r=a.length,o={},s=0;r>s;s++)n=a[s],o[n]=e(t[n],n,t);return o},w.pairs=function(t){for(var e=w.keys(t),i=e.length,n=Array(i),a=0;i>a;a++)n[a]=[e[a],t[e[a]]];return n},w.invert=function(t){for(var e={},i=w.keys(t),n=0,a=i.length;a>n;n++)e[t[i[n]]]=i[n];return e},w.functions=w.methods=function(t){var e=[];for(var i in t)w.isFunction(t[i])&&e.push(i);return e.sort()},w.extend=C(w.allKeys),w.extendOwn=w.assign=C(w.keys),w.findKey=function(t,e,i){e=k(e,i);for(var n,a=w.keys(t),r=0,o=a.length;o>r;r++)if(n=a[r],e(t[n],n,t))return n},w.pick=function(t,e,i){var n,a,r={},o=t;if(null==o)return r;w.isFunction(e)?(a=w.allKeys(o),n=x(e,i)):(a=M(arguments,!1,!1,1),n=function(t,e,i){return e in i},o=Object(o));for(var s=0,l=a.length;l>s;s++){var c=a[s],u=o[c];n(u,c,o)&&(r[c]=u)}return r},w.omit=function(t,e,i){if(w.isFunction(e))e=w.negate(e);else{var n=w.map(M(arguments,!1,!1,1),String);e=function(t,e){return!w.contains(n,e)}}return w.pick(t,e,i)},w.defaults=C(w.allKeys,!0),w.clone=function(t){return w.isObject(t)?w.isArray(t)?t.slice():w.extend({},t):t},w.tap=function(t,e){return e(t),t},w.isMatch=function(t,e){var i=w.keys(e),n=i.length;if(null==t)return!n;for(var a=Object(t),r=0;n>r;r++){var o=i[r];if(e[o]!==a[o]||!(o in a))return!1}return!0};var P=function(t,e,i,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof w&&(t=t._wrapped),e instanceof w&&(e=e._wrapped);var a=f.call(t);if(a!==f.call(e))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var r="[object Array]"===a;if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,s=e.constructor;if(o!==s&&!(w.isFunction(o)&&o instanceof o&&w.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),r){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!P(t[l],e[l],i,n))return!1}else{var c,u=w.keys(t);if(l=u.length,w.keys(e).length!==l)return!1;for(;l--;)if(c=u[l],!w.has(e,c)||!P(t[c],e[c],i,n))return!1}return i.pop(),n.pop(),!0};w.isEqual=function(t,e){return P(t,e)},w.isEmpty=function(t){return null==t?!0:S(t)&&(w.isArray(t)||w.isString(t)||w.isArguments(t))?0===t.length:0===w.keys(t).length},w.isElement=function(t){return!(!t||1!==t.nodeType)},w.isArray=g||function(t){return"[object Array]"===f.call(t)},w.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},w.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){w["is"+t]=function(e){return f.call(e)==="[object "+t+"]"}}),w.isArguments(arguments)||(w.isArguments=function(t){return w.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(w.isFunction=function(t){return"function"==typeof t||!1}),w.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},w.isNaN=function(t){return w.isNumber(t)&&t!==+t},w.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===f.call(t)},w.isNull=function(t){return null===t},w.isUndefined=function(t){return void 0===t},w.has=function(t,e){return null!=t&&A.call(t,e)},w.noConflict=function(){return s._=l,this},w.identity=function(t){return t},w.constant=function(t){return function(){return t}},w.noop=function(){},w.property=function(t){return function(e){return null==e?void 0:e[t]}},w.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},w.matcher=w.matches=function(t){return t=w.extendOwn({},t),function(e){return w.isMatch(e,t)}},w.times=function(t,e,i){var n=Array(Math.max(0,t));e=x(e,i,1);for(var a=0;t>a;a++)n[a]=e(a);return n},w.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},w.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},L=w.invert(R),F=function(t){var e=function(e){return t[e]},i="(?:"+w.keys(t).join("|")+")",n=RegExp(i),a=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(a,e):t}};w.escape=F(R),w.unescape=F(L),w.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&&(n=i),w.isFunction(n)?n.call(t):n};var N=0;w.uniqueId=function(t){var e=++N+"";return t?t+e:e},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var O=/(.)^/,Q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g,U=function(t){return"\\"+Q[t]};w.template=function(t,e,i){!e&&i&&(e=i),e=w.defaults({},e,w.templateSettings);var n=RegExp([(e.escape||O).source,(e.interpolate||O).source,(e.evaluate||O).source].join("|")+"|$","g"),a=0,r="__p+='";t.replace(n,function(e,i,n,o,s){return r+=t.slice(a,s).replace(Y,U),a=s+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&&(r+="';\n"+o+"\n__p+='"),e}),r+="';\n",e.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{var o=new Function(e.variable||"obj","_",r)}catch(s){throw s.source=r,s}var l=function(t){return o.call(this,t,w)},c=e.variable||"obj";return l.source="function("+c+"){\n"+r+"}",l},w.chain=function(t){var e=w(t);return e._chain=!0,e};var G=function(t,e){return t._chain?w(e).chain():e};w.mixin=function(t){w.each(w.functions(t),function(e){var i=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),G(this,i.apply(w,t))}})},w.mixin(w),w.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=c[t];w.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],G(this,i)}}),w.each(["concat","join","slice"],function(t){var e=c[t];w.prototype[t]=function(){return G(this,e.apply(this._wrapped,arguments))}}),w.prototype.value=function(){return this._wrapped},w.prototype.valueOf=w.prototype.toJSON=w.prototype.value,w.prototype.toString=function(){return""+this._wrapped},n=[],a=function(){return w}.apply(e,n),!(void 0!==a&&(t.exports=a))}).call(this)},function(t,e){!function(t){"use strict";t(function(){t.support.transition=function(){var t=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}();return t&&{end:t}}()})}(window.jQuery)},function(t,e){!function(t){"use strict";var e=function(e,i){this.options=t.extend({},t.fn.affix.defaults,i),this.$window=t(window).on("scroll.affix.data-api",t.proxy(this.checkPosition,this)).on("click.affix.data-api",t.proxy(function(){setTimeout(t.proxy(this.checkPosition,this),1)},this)),this.$element=t(e),this.checkPosition()};e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e,i=t(document).height(),n=this.$window.scrollTop(),a=this.$element.offset(),r=this.options.offset,o=r.bottom,s=r.top,l="affix affix-top affix-bottom";"object"!=typeof r&&(o=s=r),"function"==typeof s&&(s=r.top()),"function"==typeof o&&(o=r.bottom()),e=null!=this.unpin&&n+this.unpin<=a.top?!1:null!=o&&a.top+this.$element.height()>=i-o?"bottom":null!=s&&s>=n?"top":!1,this.affixed!==e&&(this.affixed=e,this.unpin="bottom"==e?a.top-n:null,this.$element.removeClass(l).addClass("affix"+(e?"-"+e:"")))}};var i=t.fn.affix;t.fn.affix=function(i){return this.each(function(){var n=t(this),a=n.data("affix"),r="object"==typeof i&&i;a||n.data("affix",a=new e(this,r)),"string"==typeof i&&a[i]()})},t.fn.affix.Constructor=e,t.fn.affix.defaults={offset:0},t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)})})}(window.jQuery)},function(t,e){!function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){n.trigger("closed").remove()}var n,a=t(this),r=a.attr("data-target");r||(r=a.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),n=t(r),e&&e.preventDefault(),n.length||(n=a.hasClass("alert")?a:a.parent()),n.trigger(e=t.Event("close")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.on(t.support.transition.end,i):i())};var n=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var n=t(this),a=n.data("alert");a||n.data("alert",a=new i(this)),"string"==typeof e&&a[e].call(n)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.alert.data-api",e,i.prototype.close)}(window.jQuery)},function(t,e){!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.button.defaults,i)};e.prototype.setState=function(t){var e="disabled",i=this.$element,n=i.data(),a=i.is("input")?"val":"html";t+="Text",n.resetText||i.data("resetText",i[a]()),i[a](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var n=t(this),a=n.data("button"),r="object"==typeof i&&i;a||n.data("button",a=new e(this,r)),"toggle"==i?a.toggle():i&&a.setState(i)})},t.fn.button.defaults={loadingText:"loading..."},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle")})}(window.jQuery)},function(t,e){!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.prototype={cycle:function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(e){var i=this.getActiveIndex(),n=this;if(!(e>this.$items.length-1||0>e))return this.sliding?this.$element.one("slid",function(){n.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",t(this.$items[e]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(e,i){var n,a=this.$element.find(".item.active"),r=i||a[e](),o=this.interval,s="next"==e?"left":"right",l="next"==e?"first":"last",c=this;if(this.sliding=!0,o&&this.pause(),r=r.length?r:this.$element.find(".item")[l](),n=t.Event("slide",{relatedTarget:r[0],direction:s}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var e=t(c.$indicators.children()[c.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(n),n.isDefaultPrevented())return;r.addClass(e),r[0].offsetWidth,a.addClass(s),r.addClass(s),this.$element.one(t.support.transition.end,function(){r.removeClass([e,s].join(" ")).addClass("active"),a.removeClass(["active",s].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger("slid")},0)})}else{if(this.$element.trigger(n),n.isDefaultPrevented())return;a.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}}};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var n=t(this),a=n.data("carousel"),r=t.extend({},t.fn.carousel.defaults,"object"==typeof i&&i),o="string"==typeof i?i:r.slide;a||n.data("carousel",a=new e(this,r)),"number"==typeof i?a.to(i):o?a[o]():r.interval&&a.pause().cycle()})},t.fn.carousel.defaults={interval:5e3,pause:"hover"},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,n,a=t(this),r=t(a.attr("data-target")||(i=a.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},r.data(),a.data());r.carousel(o),(n=a.attr("data-slide-to"))&&r.data("carousel").pause().to(n).cycle(),e.preventDefault()})}(window.jQuery)},function(t,e){!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.collapse.defaults,i),this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.prototype={constructor:e,dimension:function(){var t=this.$element.hasClass("width");return t?"width":"height"},show:function(){var e,i,n,a;if(!this.transitioning&&!this.$element.hasClass("in")){if(e=this.dimension(),i=t.camelCase(["scroll",e].join("-")),n=this.$parent&&this.$parent.find("> .accordion-group > .in"),n&&n.length){if(a=n.data("collapse"),a&&a.transitioning)return;n.collapse("hide"),a||n.data("collapse",null)}this.$element[e](0),this.transition("addClass",t.Event("show"),"shown"),t.support.transition&&this.$element[e](this.$element[0][i])}},hide:function(){var e;!this.transitioning&&this.$element.hasClass("in")&&(e=this.dimension(),this.reset(this.$element[e]()),this.transition("removeClass",t.Event("hide"),"hidden"),this.$element[e](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(e,i,n){var a=this,r=function(){"show"==i.type&&a.reset(),a.transitioning=0,a.$element.trigger(n)};this.$element.trigger(i),i.isDefaultPrevented()||(this.transitioning=1,this.$element[e]("in"),t.support.transition&&this.$element.hasClass("collapse")?this.$element.one(t.support.transition.end,r):r())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var n=t(this),a=n.data("collapse"),r=t.extend({},t.fn.collapse.defaults,n.data(),"object"==typeof i&&i);a||n.data("collapse",a=new e(this,r)),"string"==typeof i&&a[i]()})},t.fn.collapse.defaults={toggle:!0},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var i,n=t(this),a=n.attr("data-target")||e.preventDefault()||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),r=t(a).data("collapse")?"toggle":n.data();n[t(a).hasClass("in")?"addClass":"removeClass"]("collapsed"),t(a).collapse(r)})}(window.jQuery)},function(t,e){!function(t){"use strict";function e(){t(".dropdown-backdrop").remove(),t(n).each(function(){i(t(this)).removeClass("open")})}function i(e){var i,n=e.attr("data-target");return n||(n=e.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),i=n&&t(n),i&&i.length||(i=e.parent()),i}var n="[data-toggle=dropdown]",a=function(e){var i=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){i.parent().removeClass("open")})};a.prototype={constructor:a,toggle:function(n){var a,r,o=t(this);if(!o.is(".disabled, :disabled"))return a=i(o),r=a.hasClass("open"),e(),r||("ontouchstart"in document.documentElement&&t('"),n.el.addClass("has-"+e+"s").append(i).find("."+e).click(function(){var e=t(this);e.hasClass("dot")?n.stop().to(e.index()):e.hasClass("prev")?n.prev():n.next()})}var n=this;n.o={speed:800,delay:3e3,init:0,pause:!e,loop:!e,keys:e,dots:e,arrows:e,prev:"←",next:"→",fluid:e,starting:e,complete:e,items:">ul",item:">li",easing:"swing",autoplay:!0,albums:[]},n.init=function(e,a){n.o=t.extend(n.o,a),n.el=e,n.ul=e.find(n.o.items),n.max=[0|e.outerWidth(),0|e.outerHeight()],n.li=n.ul.find(n.o.item).each(function(e){var i=t(this),a=i.outerWidth(),r=i.outerHeight();a>n.max[0]&&(n.max[0]=a),r>n.max[1]&&(n.max[1]=r)}),n.albums=n.o.albums;var a=n.o,r=n.ul,o=n.li,s=o.length;return n.i=0,e.css({width:n.max[0],height:o.first().outerHeight(),overflow:"hidden"}),r.css({position:"relative",left:0,width:100*s+"%"}),a.fluid?o.css({"float":"left",width:100/s+"%"}):o.css({"float":"left",width:n.max[0]+"px"}),a.autoplay&&setTimeout(function(){0|a.delay&&(n.play(),a.pause&&e.on("mouseover mouseout",function(t){n.stop(),"mouseout"==t.type&&n.play()}))},0|a.init),a.keys&&t(document).keydown(function(t){var e=t.which;37==e?n.prev():39==e?n.next():27==e&&n.stop()}),a.dots&&i("dot"),a.arrows&&i("arrow"),a.fluid&&t(window).resize(function(){n.r&&clearTimeout(n.r),n.r=setTimeout(function(){var t={height:o.eq(n.i).outerHeight()},i=e.outerWidth();r.css(t),t.width=Math.min(Math.round(i/e.parent().width()*100),100)+"%",e.css(t),o.css({width:i+"px"})},50)}).resize(),(t.event.special.move||t.Event("move"))&&e.on("movestart",function(t){t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY?t.preventDefault():e.data("left",n.ul.offset().left/e.width()*100)}).on("move",function(t){var i=100*t.distX/e.width();n.ul.css("left",e.data("left")+i+"%"),n.ul.data("left",i)}).on("moveend",function(t){var e=n.ul.data("left");if(Math.abs(e)>30){var i=e>0?n.i-1:n.i+1;(0>i||i>=s)&&(i=n.i),n.to(i)}else n.to(n.i)}),n},n.to=function(i,a){n.t&&(n.stop(),n.play());var r=n.o,o=n.el,s=n.ul,l=n.li,c=n.i,u=l.eq(i);if(t.isFunction(r.starting)&&!a&&r.starting(o,l.eq(c)),u.length&&!(0>i)||r.loop!=e){u.length||(i=0),0>i&&(i=l.length-1),u=l.eq(i);var d=a?5:0|r.speed,h=r.easing,p={height:u.outerHeight()};1e3|r.delay;s.queue("fx").length||(o.find(".dot").eq(i).addClass("active").siblings().removeClass("active"),s.css(t.extend({left:"-"+i+"00%",opacity:0},p)),o.animate(t.extend({opacity:1},p),d,h)&&s.animate({opacity:1},d,h,function(e){n.i=i,t.isFunction(r.complete)&&!a&&r.complete(o,u)}))}},n.play=function(){n.t=setInterval(function(){n.to(n.i+1)},0|n.o.delay)},n.stop=function(){return n.t=clearInterval(n.t),n},n.next=function(){return n.stop().to(n.i+1)},n.prev=function(){return n.stop().to(n.i-1)}};t.fn.unslider=function(e){var n=this.length;return this.each(function(a){var r=t(this),o="unslider"+(n>1?"-"+ ++a:""),s=(new i).init(r,e);r.data(o,s).data("key",o)})},i.version="1.0.0"}(jQuery,!1)},function(t,e){!function(t){var e=function(){var e=65,i='
',n={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},a=function(e,i){var n=N(e);t(i).data("colorpicker").fields.eq(1).val(n.r).end().eq(2).val(n.g).end().eq(3).val(n.b).end()},r=function(e,i){t(i).data("colorpicker").fields.eq(4).val(e.h).end().eq(5).val(e.s).end().eq(6).val(e.b).end()},o=function(e,i){t(i).data("colorpicker").fields.eq(0).val(Q(e)).end()},s=function(e,i){t(i).data("colorpicker").selector.css("backgroundColor","#"+Q({h:e.h,s:100,b:100})),t(i).data("colorpicker").selectorIndic.css({left:parseInt(150*e.s/100,10),top:parseInt(150*(100-e.b)/100,10)})},l=function(e,i){t(i).data("colorpicker").hue.css("top",parseInt(150-150*e.h/360,10))},c=function(e,i){t(i).data("colorpicker").currentColor.css("backgroundColor","#"+Q(e))},u=function(e,i){t(i).data("colorpicker").newColor.css("backgroundColor","#"+Q(e))},d=function(i){var n=i.charCode||i.keyCode||-1;if(n>e&&90>=n||32==n)return!1;var a=t(this).parent().parent();a.data("colorpicker").livePreview===!0&&h.apply(this)},h=function(e){var i,n=t(this).parent().parent();this.parentNode.className.indexOf("_hex")>0?n.data("colorpicker").color=i=L(P(this.value)):this.parentNode.className.indexOf("_hsb")>0?n.data("colorpicker").color=i=j({h:parseInt(n.data("colorpicker").fields.eq(4).val(),10),s:parseInt(n.data("colorpicker").fields.eq(5).val(),10),b:parseInt(n.data("colorpicker").fields.eq(6).val(),10)}):n.data("colorpicker").color=i=F(B({r:parseInt(n.data("colorpicker").fields.eq(1).val(),10),g:parseInt(n.data("colorpicker").fields.eq(2).val(),10),b:parseInt(n.data("colorpicker").fields.eq(3).val(),10)})),e&&(a(i,n.get(0)),o(i,n.get(0)),r(i,n.get(0))),s(i,n.get(0)),l(i,n.get(0)),u(i,n.get(0)),n.data("colorpicker").onChange.apply(n,[i,Q(i),N(i)])},p=function(e){var i=t(this).parent().parent();i.data("colorpicker").fields.parent().removeClass("colorpicker_focus")},f=function(){e=this.parentNode.className.indexOf("_hex")>0?70:65,t(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus"),t(this).parent().addClass("colorpicker_focus")},A=function(e){var i=t(this).parent().find("input").focus(),n={el:t(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:e.pageY,field:i,val:parseInt(i.val(),10),preview:t(this).parent().parent().data("colorpicker").livePreview};t(document).bind("mouseup",n,m),t(document).bind("mousemove",n,g)},g=function(t){return t.data.field.val(Math.max(0,Math.min(t.data.max,parseInt(t.data.val+t.pageY-t.data.y,10)))),t.data.preview&&h.apply(t.data.field.get(0),[!0]),!1},m=function(e){return h.apply(e.data.field.get(0),[!0]),e.data.el.removeClass("colorpicker_slider").find("input").focus(),t(document).unbind("mouseup",m),t(document).unbind("mousemove",g),!1},v=function(e){var i={cal:t(this).parent(),y:t(this).offset().top};i.preview=i.cal.data("colorpicker").livePreview,t(document).bind("mouseup",i,b),t(document).bind("mousemove",i,y)},y=function(t){return h.apply(t.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,t.pageY-t.data.y)))/150,10)).get(0),[t.data.preview]),!1},b=function(e){return a(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),o(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),t(document).unbind("mouseup",b),t(document).unbind("mousemove",y),!1},w=function(e){var i={cal:t(this).parent(),pos:t(this).offset()};i.preview=i.cal.data("colorpicker").livePreview,t(document).bind("mouseup",i,k),t(document).bind("mousemove",i,x)},x=function(t){return h.apply(t.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,t.pageY-t.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,t.pageX-t.data.pos.left))/150,10)).get(0),[t.data.preview]),!1},k=function(e){return a(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),o(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),t(document).unbind("mouseup",k),t(document).unbind("mousemove",x),!1},C=function(e){t(this).addClass("colorpicker_focus")},E=function(e){t(this).removeClass("colorpicker_focus")},T=function(e){var i=t(this).parent(),n=i.data("colorpicker").color;i.data("colorpicker").origColor=n,c(n,i.get(0)),i.data("colorpicker").onSubmit(n,Q(n),N(n),i.data("colorpicker").el)},S=function(e){var i=t("#"+t(this).data("colorpickerId"));i.data("colorpicker").onBeforeShow.apply(this,[i.get(0)]);var n=t(this).offset(),a=I(),r=n.top+this.offsetHeight,o=n.left;return r+176>a.t+a.h&&(r-=this.offsetHeight+176),o+356>a.l+a.w&&(o-=356),i.css({left:o+"px",top:r+"px"}),0!=i.data("colorpicker").onShow.apply(this,[i.get(0)])&&i.show(),t(document).bind("mousedown",{cal:i},D),!1},D=function(e){M(e.data.cal.get(0),e.target,e.data.cal.get(0))||(0!=e.data.cal.data("colorpicker").onHide.apply(this,[e.data.cal.get(0)])&&e.data.cal.hide(),t(document).unbind("mousedown",D))},M=function(t,e,i){if(t==e)return!0;if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return!!(16&t.compareDocumentPosition(e));for(var n=e.parentNode;n&&n!=i;){if(n==t)return!0;n=n.parentNode}return!1},I=function(){var t="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(t?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(t?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(t?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(t?document.documentElement.clientHeight:document.body.clientHeight)}},j=function(t){return{h:Math.min(360,Math.max(0,t.h)),s:Math.min(100,Math.max(0,t.s)),b:Math.min(100,Math.max(0,t.b))}},B=function(t){return{r:Math.min(255,Math.max(0,t.r)),g:Math.min(255,Math.max(0,t.g)),b:Math.min(255,Math.max(0,t.b))}},P=function(t){var e=6-t.length;if(e>0){for(var i=[],n=0;e>n;n++)i.push("0");i.push(t),t=i.join("")}return t},R=function(t){var t=parseInt(t.indexOf("#")>-1?t.substring(1):t,16);return{r:t>>16,g:(65280&t)>>8,b:255&t}},L=function(t){return F(R(t))},F=function(t){var e={h:0,s:0,b:0},i=Math.min(t.r,t.g,t.b),n=Math.max(t.r,t.g,t.b),a=n-i;return e.b=n,e.s=0!=n?255*a/n:0,0!=e.s?t.r==n?e.h=(t.g-t.b)/a:t.g==n?e.h=2+(t.b-t.r)/a:e.h=4+(t.r-t.g)/a:e.h=-1,e.h*=60,e.h<0&&(e.h+=360),e.s*=100/255,e.b*=100/255,e},N=function(t){var e={},i=Math.round(t.h),n=Math.round(255*t.s/100),a=Math.round(255*t.b/100);if(0==n)e.r=e.g=e.b=a;else{var r=a,o=(255-n)*a/255,s=(r-o)*(i%60)/60;360==i&&(i=0),60>i?(e.r=r,e.b=o,e.g=o+s):120>i?(e.g=r,e.b=o,e.r=r-s):180>i?(e.g=r,e.r=o,e.b=o+s):240>i?(e.b=r,e.r=o,e.g=r-s):300>i?(e.b=r,e.g=o,e.r=o+s):360>i?(e.r=r,e.g=o,e.b=r-s):(e.r=0,e.g=0,e.b=0)}return{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}},O=function(e){var i=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return t.each(i,function(t,e){1==e.length&&(i[t]="0"+e)}),i.join("")},Q=function(t){return O(N(t))},Y=function(){var e=t(this).parent(),i=e.data("colorpicker").origColor;e.data("colorpicker").color=i,a(i,e.get(0)),o(i,e.get(0)),r(i,e.get(0)),s(i,e.get(0)),l(i,e.get(0)),u(i,e.get(0))};return{init:function(e){if(e=t.extend({},n,e||{}),"string"==typeof e.color)e.color=L(e.color);else if(void 0!=e.color.r&&void 0!=e.color.g&&void 0!=e.color.b)e.color=F(e.color);else{if(void 0==e.color.h||void 0==e.color.s||void 0==e.color.b)return this;e.color=j(e.color)}return this.each(function(){if(!t(this).data("colorpickerId")){var n=t.extend({},e);n.origColor=e.color;var g="collorpicker_"+parseInt(1e3*Math.random());t(this).data("colorpickerId",g);var m=t(i).attr("id",g);n.flat?m.appendTo(this).show():m.appendTo(document.body),n.fields=m.find("input").bind("keyup",d).bind("change",h).bind("blur",p).bind("focus",f),m.find("span").bind("mousedown",A).end().find(">div.colorpicker_current_color").bind("click",Y),n.selector=m.find("div.colorpicker_color").bind("mousedown",w),n.selectorIndic=n.selector.find("div div"),n.el=this,n.hue=m.find("div.colorpicker_hue div"),m.find("div.colorpicker_hue").bind("mousedown",v),n.newColor=m.find("div.colorpicker_new_color"),n.currentColor=m.find("div.colorpicker_current_color"),m.data("colorpicker",n),m.find("div.colorpicker_submit").bind("mouseenter",C).bind("mouseleave",E).bind("click",T),a(n.color,m.get(0)),r(n.color,m.get(0)),o(n.color,m.get(0)),l(n.color,m.get(0)),s(n.color,m.get(0)),c(n.color,m.get(0)),u(n.color,m.get(0)),n.flat?m.css({position:"relative",display:"block"}):t(this).bind(n.eventName,S)}})},showPicker:function(){return this.each(function(){t(this).data("colorpickerId")&&S.apply(this)})},hidePicker:function(){return this.each(function(){t(this).data("colorpickerId")&&t("#"+t(this).data("colorpickerId")).hide()})},setColor:function(e){if("string"==typeof e)e=L(e);else if(void 0!=e.r&&void 0!=e.g&&void 0!=e.b)e=F(e);else{if(void 0==e.h||void 0==e.s||void 0==e.b)return this;e=j(e)}return this.each(function(){if(t(this).data("colorpickerId")){var i=t("#"+t(this).data("colorpickerId"));i.data("colorpicker").color=e,i.data("colorpicker").origColor=e,a(e,i.get(0)),r(e,i.get(0)),o(e,i.get(0)),l(e,i.get(0)),s(e,i.get(0)),c(e,i.get(0)),u(e,i.get(0))}})}}}();t.fn.extend({ColorPicker:e.init,ColorPickerHide:e.hidePicker,ColorPickerShow:e.showPicker,ColorPickerSetColor:e.setColor})}(jQuery)},function(t,e){!function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){(function(e){e.HighchartsAdapter=i(1),t.exports=i(2)}).call(e,function(){return this}())},function(t,e,i){/** * @license @product.name@ JS v@product.version@ (@product.date@) * * Standalone Highcharts Framework * * License: MIT License */ var n=function(){function t(t){function i(t,e,i){t.removeEventListener(e,i,!1)}function a(t,e,i){i=t.HCProxiedMethods[i.toString()],t.detachEvent("on"+e,i)}function r(t,e){var n,r,o,s,l=t.HCEvents;if(t.removeEventListener)n=i;else{if(!t.attachEvent)return;n=a}e?(r={},r[e]=!0):r=l;for(s in r)if(l[s])for(o=l[s].length;o--;)n(t,s,l[s][o])}return t.HCExtended||Highcharts.extend(t,{HCExtended:!0,HCEvents:{},bind:function(t,i){var n,a=this,r=this.HCEvents;a.addEventListener?a.addEventListener(t,i,!1):a.attachEvent&&(n=function(t){t.target=t.srcElement||window,i.call(a,t)},a.HCProxiedMethods||(a.HCProxiedMethods={}),a.HCProxiedMethods[i.toString()]=n,a.attachEvent("on"+t,n)),r[t]===e&&(r[t]=[]),r[t].push(i)},unbind:function(t,e){var o,s;t?(o=this.HCEvents[t]||[],e?(s=n.inArray(e,o),s>-1&&(o.splice(s,1),this.HCEvents[t]=o),this.removeEventListener?i(this,t,e):this.attachEvent&&a(this,t,e)):(r(this,t),this.HCEvents[t]=[])):(r(this),this.HCEvents={})},trigger:function(t,e){var i,n,a,r=this.HCEvents[t]||[],o=this,s=r.length;for(n=function(){e.defaultPrevented=!0},i=0;s>i;i++){if(a=r[i],e.stopped)return;e.preventDefault=n,e.target=o,e.type||(e.type=t),a.call(this,e)===!1&&e.preventDefault()}}}),t}var e,i,a,r=document,o=[],s=[],l={};return Math.easeInOutSine=function(t,e,i,n){return-i/2*(Math.cos(Math.PI*t/n)-1)+e},{init:function(t){r.defaultView||(this._getStyle=function(t,e){var i;return t.style[e]?t.style[e]:("opacity"===e&&(e="filter"),i=t.currentStyle[e.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()})],"filter"===e&&(i=i.replace(/alpha\(opacity=([0-9]+)\)/,function(t,e){return e/100})),""===i?1:i)},this.adapterRun=function(t,e){var i={width:"clientWidth",height:"clientHeight"}[e];return i?(t.style.zoom=1,t[i]-2*parseInt(n._getStyle(t,"padding"),10)):void 0}),Array.prototype.forEach||(this.each=function(t,e){for(var i=0,n=t.length;n>i;i++)if(e.call(t[i],t[i],i,t)===!1)return i}),Array.prototype.indexOf||(this.inArray=function(t,e){var i,n=0;if(e)for(i=e.length;i>n;n++)if(e[n]===t)return n;return-1}),Array.prototype.filter||(this.grep=function(t,e){for(var i=[],n=0,a=t.length;a>n;n++)e(t[n],n)&&i.push(t[n]);return i}),a=function(t,e,i){this.options=e,this.elem=t,this.prop=i},a.prototype={update:function(){var e,i=this.paths,n=this.elem,a=n.element;l[this.prop]?l[this.prop](this):i&&a?n.attr("d",t.step(i[0],i[1],this.now,this.toD)):n.attr?a&&n.attr(this.prop,this.now):(e={},e[this.prop]=this.now+this.unit,Highcharts.css(n,e)),this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(t,e,n){var a,r=this,o=function(t){return r.step(t)};this.startTime=+new Date,this.start=t,this.end=e,this.unit=n,this.now=this.start,this.pos=this.state=0,o.elem=this.elem,o()&&1===s.push(o)&&(i=setInterval(function(){for(a=0;a=r.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0,i=!0;for(n in r.curAnim)r.curAnim[n]!==!0&&(i=!1);i&&r.complete&&r.complete.call(o),e=!1}else{var s=a-this.startTime;this.state=s/r.duration,this.pos=r.easing(s,0,1,r.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0}return e}},this.animate=function(e,i,r){var o,s,l,c,u,d="";e.stopAnimation=!1,("object"!=typeof r||null===r)&&(c=arguments,r={duration:c[2],easing:c[3],complete:c[4]}),"number"!=typeof r.duration&&(r.duration=400),r.easing=Math[r.easing]||Math.easeInOutSine,r.curAnim=Highcharts.extend({},i);for(u in i)l=new a(e,r,u),s=null,"d"===u?(l.paths=t.init(e,e.d,i.d),l.toD=i.d,o=0,s=1):e.attr?o=e.attr(u):(o=parseFloat(n._getStyle(e,u))||0,"opacity"!==u&&(d="px")),s||(s=i[u]),l.custom(o,s,d)}},_getStyle:function(t,e){return window.getComputedStyle(t,void 0).getPropertyValue(e)},addAnimSetter:function(t,e){l[t]=e},getScript:function(t,e){var i=r.getElementsByTagName("head")[0],n=r.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,i.appendChild(n)},inArray:function(t,e){return e.indexOf?e.indexOf(t):o.indexOf.call(e,t)},adapterRun:function(t,e){return parseInt(n._getStyle(t,e),10)},grep:function(t,e){return o.filter.call(t,e)},map:function(t,e){for(var i=[],n=0,a=t.length;a>n;n++)i[n]=e.call(t[n],t[n],n,t);return i},offset:function(t){var e=document.documentElement,i=t.getBoundingClientRect();return{top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},addEvent:function(e,i,n){t(e).bind(i,n)},removeEvent:function(e,i,n){t(e).unbind(i,n)},fireEvent:function(t,e,i,n){var a;r.createEvent&&(t.dispatchEvent||t.fireEvent)?(a=r.createEvent("Events"),a.initEvent(e,!0,!0),a.target=t,Highcharts.extend(a,i),t.dispatchEvent?t.dispatchEvent(a):t.fireEvent(e,a)):t.HCExtended===!0&&(i=i||{},t.trigger(e,i)),i&&i.defaultPrevented&&(n=null),n&&n(i)},washMouseEvent:function(t){return t},stop:function(t){t.stopAnimation=!0},each:function(t,e){return Array.prototype.forEach.call(t,e)}}}();t.exports=n},function(t,e,i){/** * @license Highcharts JS v4.1.1-modified () * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ !function(){function t(){var t,e,i=arguments,n={},a=function(t,e){var i,n;"object"!=typeof t&&(t={});for(n in e)e.hasOwnProperty(n)&&(i=e[n],i&&"object"==typeof i&&"[object Array]"!==Object.prototype.toString.call(i)&&"renderTo"!==n&&"number"!=typeof i.nodeType?t[n]=a(t[n]||{},i):t[n]=e[n]);return t};for(i[0]===!0&&(n=i[1],i=Array.prototype.slice.call(i,2)),e=i.length,t=0;e>t;t++)n=a(n,i[t]);return n}function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function n(t){return t&&"object"==typeof t}function a(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"number"==typeof t}function o(t){return ct.log(t)/ct.LN10}function s(t){return ct.pow(10,t)}function l(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function c(t){return t!==L&&null!==t}function u(t,e,a){var r,o;if(i(e))c(a)?t.setAttribute(e,a):t&&t.getAttribute&&(o=t.getAttribute(e));else if(c(e)&&n(e))for(r in e)t.setAttribute(r,e[r]);return o}function d(t){return a(t)?t:[t]}function h(t,e){xt&&!Dt&&e&&e.opacity!==L&&(e.filter="alpha(opacity="+100*e.opacity+")"),ee(t.style,e)}function p(t,e,i,n,a){var r=st.createElement(t);return e&&ee(r,e),a&&h(r,{padding:0,border:zt,margin:0}),i&&h(r,i),n&&n.appendChild(r),r}function f(t,e){var i=function(){return L};return i.prototype=new t,ee(i.prototype,e),i}function A(t,e){return new Array((e||2)+1-String(t).length).join(0)+t}function g(t){return 6e4*(J&&J(t)||_||0)}function m(t,e){var i,n=/f$/,a=/\.([0-9])/,r=Q.lang;return n.test(t)?(i=t.match(a),i=i?i[1]:-1,null!==e&&(e=ot.numberFormat(e,i,r.decimalPoint,t.indexOf(",")>-1?r.thousandsSep:""))):e=Y(t,e),e}function v(t,e){for(var i,n,a,r,o,s,l,c="{",u=!1,d=[];-1!==(l=t.indexOf(c));){if(i=t.slice(0,l),u){for(n=i.split(":"),a=n.shift().split("."),o=a.length,s=e,r=0;o>r;r++)s=s[a[r]];n.length&&(s=m(n.join(":"),s)),d.push(s)}else d.push(i);t=t.slice(l+1),u=!u,c=u?"}":"{"}return d.push(t),d.join("")}function y(t){return ct.pow(10,dt(ct.log(t)/ct.LN10))}function b(t,e,i,n,a){var r,o,s=t;for(i=ie(i,1),r=t/i,e||(e=[1,2,2.5,5,10],n===!1&&(1===i?e=[1,2,5,10]:.1>=i&&(e=[1/i]))),o=0;o=t||!a&&r<=(e[o]+(e[o+1]||e[o]))/2));o++);return s*=i}function w(t,e){var i,n,a=t.length;for(n=0;a>n;n++)t[n].ss_i=n;for(t.sort(function(t,n){return i=e(t,n),0===i?t.ss_i-n.ss_i:i}),n=0;a>n;n++)delete t[n].ss_i}function x(t){for(var e=t.length,i=t[0];e--;)t[e]i&&(i=t[e]);return i}function C(t,e){var i;for(i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function E(t){O||(O=p(Ot)),t&&O.appendChild(t),O.innerHTML=""}function T(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw i;lt.console&&console.log(i)}function S(t){return parseFloat(t.toPrecision(14))}function D(t,e){U=ie(t,e.animation)}function M(){var t=Q.global,e=t.useUTC,i=e?"getUTC":"get",n=e?"setUTC":"set";z=t.Date||window.Date,_=e&&t.timezoneOffset,J=e&&t.getTimezoneOffset,V=function(t,i,n,a,r,o){var s;return e?(s=z.UTC.apply(0,arguments),s+=g(s)):s=new z(t,i,ie(n,1),ie(a,0),ie(r,0),ie(o,0)).getTime(),s},K=i+"Minutes",X=i+"Hours",Z=i+"Day",q=i+"Date",$=i+"Month",tt=i+"FullYear",et=n+"Minutes",it=n+"Hours",nt=n+"Date",at=n+"Month",rt=n+"FullYear"}function I(e){return Q=t(!0,Q,e),M(),Q}function j(){return Q}function B(){}function P(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,i||n||this.addLabel()}function R(t,e,i,n,a){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=a,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:ie(e.y,r?4:i?14:-6),x:ie(e.x,r?i?-6:6:0)},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}var L,F,N,O,Q,Y,U,G,H,W,z,V,_,J,K,X,Z,q,$,tt,et,it,nt,at,rt,ot,st=document,lt=window,ct=Math,ut=ct.round,dt=ct.floor,ht=ct.ceil,pt=ct.max,ft=ct.min,At=ct.abs,gt=ct.cos,mt=ct.sin,vt=ct.PI,yt=2*vt/360,bt=navigator.userAgent,wt=lt.opera,xt=/(msie|trident)/i.test(bt)&&!wt,kt=8===st.documentMode,Ct=/AppleWebKit/.test(bt),Et=/Firefox/.test(bt),Tt=/(Mobile|Android|Windows Phone)/.test(bt),St="http://www.w3.org/2000/svg",Dt=!!st.createElementNS&&!!st.createElementNS(St,"svg").createSVGRect,Mt=Et&&parseInt(bt.split("Firefox/")[1],10)<4,It=!Dt&&!xt&&!!st.createElement("canvas").getContext,jt={},Bt=0,Pt=function(){return L},Rt=[],Lt=0,Ft="Highcharts",Nt="4.1.1-modified",Ot="div",Qt="absolute",Yt="relative",Ut="hidden",Gt="highcharts-",Ht="visible",Wt="px",zt="none",Vt="M",_t="L",Jt=/^[0-9]+$/,Kt="",Xt="hover",Zt="select",qt=["plotTop","marginRight","marginBottom","plotLeft"],$t="stroke-width",te={};ot=lt.Highcharts=lt.Highcharts?T(16,!0):{},ot.seriesTypes=te;var ee=ot.extend=function(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t},ie=ot.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;n>t;t++)if(e=i[t],e!==L&&null!==e)return e},ne=ot.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(n),i.apply(this,t)}};Y=function(t,e,i){if(!c(e)||isNaN(e))return"Invalid date";t=ie(t,"%Y-%m-%d %H:%M:%S");var n,a=new z(e-g(e)),r=a[X](),o=a[Z](),s=a[q](),l=a[$](),u=a[tt](),d=Q.lang,h=d.weekdays,p=ee({a:h[o].substr(0,3),A:h[o],d:A(s),e:s,w:o,b:d.shortMonths[l],B:d.months[l],m:A(l+1),y:u.toString().substr(2,2),Y:u,H:A(r),I:A(r%12||12),l:r%12||12,M:A(a[K]()),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:A(a.getSeconds()),L:A(ut(e%1e3),3)},ot.dateFormats);for(n in p)for(;-1!==t.indexOf("%"+n);)t=t.replace("%"+n,"function"==typeof p[n]?p[n](e):p[n]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},H={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ot.numberFormat=function(t,i,n,a){var r=Q.lang,o=+t||0,s=-1===i?ft((o.toString().split(".")[1]||"").length,20):isNaN(i=At(i))?2:i,l=void 0===n?r.decimalPoint:n,c=void 0===a?r.thousandsSep:a,u=0>o?"-":"",d=String(e(o=At(o).toFixed(s))),h=d.length>3?d.length%3:0;return u+(h?d.substr(0,h)+c:"")+d.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+c)+(s?l+At(o-d).toFixed(s).slice(2):"")},G={init:function(t,e,i){e=e||"";var n,a,r,o,s,l=t.shift,c=e.indexOf("C")>-1,u=c?7:3,d=e.split(" "),h=[].concat(i),p=function(t){for(r=t.length;r--;)t[r]===Vt&&t.splice(r+1,0,t[r+1],t[r+2],t[r+1],t[r+2])};if(c&&(p(d),p(h)),t.isArea&&(o=d.splice(d.length-6,6),s=h.splice(h.length-6,6)),l<=h.length/u&&d.length===h.length)for(;l--;)h=[].concat(h).splice(0,u).concat(h);if(t.shift=0,d.length)for(n=h.length;d.lengthi)for(;o--;)a=parseFloat(t[o]),r[o]=isNaN(a)?t[o]:i*parseFloat(e[o]-a)+a;else r=e;return r}},function(t){lt.HighchartsAdapter=lt.HighchartsAdapter||t&&{init:function(e){var n=t.fx;t.extend(t.easing,{easeOutQuad:function(t,e,i,n,a){return-n*(e/=a)*(e-2)+i}}),t.each(["cur","_default","width","height","opacity"],function(e,i){var a,r=n.step;"cur"===i?r=n.prototype:"_default"===i&&t.Tween&&(r=t.Tween.propHooks[i],i="set"),a=r[i],a&&(r[i]=function(t){var n;return t=e?t:this,"align"!==t.prop?(n=t.elem,n.attr?n.attr(t.prop,"cur"===i?L:t.now):a.apply(this,arguments)):void 0})}),ne(t.cssHooks.opacity,"get",function(t,e,i){return e.attr?e.opacity||0:t.call(this,e,i)}),this.addAnimSetter("d",function(t){var i,n=t.elem;t.started||(i=e.init(n,n.d,n.toD),t.start=i[0],t.end=i[1],t.started=!0),n.attr("d",e.step(t.start,t.end,t.pos,n.toD))}),this.each=Array.prototype.forEach?function(t,e){return Array.prototype.forEach.call(t,e)}:function(t,e){var i,n=t.length;for(i=0;n>i;i++)if(e.call(t[i],t[i],i,t)===!1)return i},t.fn.highcharts=function(){var t,e,n,a="Chart",r=arguments;return this[0]&&(i(r[0])&&(a=r[0],r=Array.prototype.slice.call(r,1)),t=r[0],t!==L&&(t.chart=t.chart||{},t.chart.renderTo=this[0],n=new ot[a](t,r[1]),e=this),t===L&&(e=Rt[u(this[0],"data-highcharts-chart")])),e}},addAnimSetter:function(e,i){t.Tween?t.Tween.propHooks[e]={set:i}:t.fx.step[e]=i},getScript:t.getScript,inArray:t.inArray,adapterRun:function(e,i){return t(e)[i]()},grep:t.grep,map:function(t,e){for(var i=[],n=0,a=t.length;a>n;n++)i[n]=e.call(t[n],t[n],n,t);return i},offset:function(e){return t(e).offset()},addEvent:function(e,i,n){t(e).bind(i,n)},removeEvent:function(e,i,n){var a=st.removeEventListener?"removeEventListener":"detachEvent";st[a]&&e&&!e[a]&&(e[a]=function(){}),t(e).unbind(i,n)},fireEvent:function(e,i,n,a){var r,o=t.Event(i),s="detached"+i;!xt&&n&&(delete n.layerX,delete n.layerY,delete n.returnValue),ee(o,n),e[i]&&(e[s]=e[i],e[i]=null),t.each(["preventDefault","stopPropagation"],function(t,e){var i=o[e];o[e]=function(){try{i.call(o)}catch(t){"preventDefault"===e&&(r=!0)}}}),t(e).trigger(o),e[s]&&(e[i]=e[s],e[s]=null),!a||o.isDefaultPrevented()||r||a(o)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===L&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(e,i,n){var a=t(e);e.style||(e.style={}),i.d&&(e.toD=i.d,i.d=1),a.stop(),i.opacity!==L&&e.attr&&(i.opacity+="px"),e.hasAnim=1,a.animate(i,n)},stop:function(e){e.hasAnim&&t(e).stop()}}}(lt.jQuery);var ae=lt.HighchartsAdapter,re=ae||{};ae&&ae.init.call(ae,G);var oe=re.adapterRun,se=re.getScript,le=re.inArray,ce=ot.each=re.each,ue=re.grep,de=re.offset,he=re.map,pe=re.addEvent,fe=re.removeEvent,Ae=re.fireEvent,ge=re.washMouseEvent,me=re.animate,ve=re.stop;Q={colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/4.1.1-modified/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.1.1-modified/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":ot.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:Qt,color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:Qt,width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:Yt,top:"45%"},style:{position:Qt,backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:Dt,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,snap:Tt?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!1,text:"Highcharts.com2",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var ye=Q.plotOptions,be=ye.line;M();var we=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,xe=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,ke=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,Ce=function(i){function n(t){t&&t.stops?c=he(t.stops,function(t){return Ce(t[1])}):(l=we.exec(t),l?u=[e(l[1]),e(l[2]),e(l[3]),parseFloat(l[4],10)]:(l=xe.exec(t),l?u=[e(l[1],16),e(l[2],16),e(l[3],16),1]:(l=ke.exec(t),l&&(u=[e(l[1]),e(l[2]),e(l[3]),1]))))}function a(e){var n;return c?(n=t(i),n.stops=[].concat(n.stops),ce(c,function(t,i){n.stops[i]=[n.stops[i][0],t.get(e)]})):n=u&&!isNaN(u[0])?"rgb"===e?"rgb("+u[0]+","+u[1]+","+u[2]+")":"a"===e?u[3]:"rgba("+u.join(",")+")":i,n}function o(t){if(c)ce(c,function(e){e.brighten(t)});else if(r(t)&&0!==t){var i;for(i=0;3>i;i++)u[i]+=e(255*t),u[i]<0&&(u[i]=0),u[i]>255&&(u[i]=255)}return this}function s(t){return u[3]=t,this}var l,c,u=[];return n(i),{get:a,brighten:o,rgba:u,setOpacity:s}};B.prototype={opacity:1,textProps:["fontSize","fontWeight","fontFamily","color","lineHeight","width","textDecoration","textShadow"],init:function(t,e){var i=this;i.element="span"===e?p(e):st.createElementNS(St,e),i.renderer=t},animate:function(e,i,n){var a=ie(i,U,!0);return ve(this),a?(a=t(a,{}),n&&(a.complete=n),me(this,e,a)):(this.attr(e),n&&n()),this},colorGradient:function(e,i,n){var r,o,s,l,u,d,h,p,f,A,g,m=this.renderer,v=[];if(e.linearGradient?o="linearGradient":e.radialGradient&&(o="radialGradient"),o){s=e[o],l=m.gradients,d=e.stops,f=n.radialReference,a(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&f&&!c(s.gradientUnits)&&(s=t(s,{cx:f[0]-f[2]/2+s.cx*f[2],cy:f[1]-f[2]/2+s.cy*f[2],r:s.r*f[2],gradientUnits:"userSpaceOnUse"}));for(A in s)"id"!==A&&v.push(A,s[A]);for(A in d)v.push(d[A]);v=v.join(","),l[v]?g=l[v].attr("id"):(s.id=g=Gt+Bt++,l[v]=u=m.createElement(o).attr(s).add(m.defs),u.stops=[],ce(d,function(t){var e;0===t[1].indexOf("rgba")?(r=Ce(t[1]),h=r.get("rgb"),p=r.get("a")):(h=t[1],p=1),e=m.createElement("stop").attr({offset:t[0],"stop-color":h,"stop-opacity":p}).add(u),u.stops.push(e)})),n.setAttribute(i,"url("+m.url+"#"+g+")")}},applyTextShadow:function(t){var i,n=this.element,a=-1!==t.indexOf("contrast"),r=bt.indexOf("Safari")>0&&-1===bt.indexOf("Chrome"),o=n.style.textShadow!==L&&!xt&&!r;a&&(t=t.replace(/contrast/g,this.renderer.getContrast(n.style.fill))),o?a&&h(n,{textShadow:t}):(this.ySetter=this.xSetter,i=[].slice.call(n.getElementsByTagName("tspan")),ce(t.split(/\s?,\s?/g),function(t){var a,r,o=n.firstChild;t=t.split(" "),a=t[t.length-1],r=t[t.length-2],r&&ce(i,function(t,i){var s;0===i&&(t.setAttribute("x",n.getAttribute("x")),i=n.getAttribute("y"),t.setAttribute("y",i||0),null===i&&n.setAttribute("y",0)),s=t.cloneNode(1),u(s,{stroke:a,"stroke-opacity":1/pt(e(r),3),"stroke-width":r,"stroke-linejoin":"round"}),n.insertBefore(s,o)})}))},attr:function(t,e){var i,n,a,r,o=this.element,s=this;if("string"==typeof t&&e!==L&&(i=t,t={},t[i]=e),"string"==typeof t)s=(this[t+"Getter"]||this._defaultGetter).call(this,t,o);else{for(i in t)n=t[i],r=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(i)&&(a||(this.symbolAttr(t),a=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||(this[i+"Setter"]||this._defaultSetter).call(this,n,i,o),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,n);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return s},updateShadows:function(t,e){for(var i=this.shadows,n=i.length;n--;)i[n].setAttribute(t,"height"===t?pt(e-(i[n].cutHeight||0),0):"d"===t?this.d:e)},addClass:function(t){var e=this.element,i=u(e,"class")||"";return-1===i.indexOf(t)&&u(e,"class",i+" "+t),this},symbolAttr:function(t){var e=this;ce(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(i){e[i]=ie(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":zt)},crisp:function(t){var e,i,n=this,a={},r=t.strokeWidth||n.strokeWidth||0;i=ut(r)%2/2,t.x=dt(t.x||n.x||0)+i,t.y=dt(t.y||n.y||0)+i,t.width=dt((t.width||n.width||0)-2*i),t.height=dt((t.height||n.height||0)-2*i),t.strokeWidth=r;for(e in t)n[e]!==t[e]&&(n[e]=a[e]=t[e]);return a},css:function(t){var i,n,a,r=this,o=r.styles,s={},l=r.element,c="",d=!o;if(t&&t.color&&(t.fill=t.color),o)for(n in t)t[n]!==o[n]&&(s[n]=t[n],d=!0);if(d){if(i=r.textWidth=t&&t.width&&"text"===l.nodeName.toLowerCase()&&e(t.width)||r.textWidth,o&&(t=ee(o,s)),r.styles=t,i&&(It||!Dt&&r.renderer.forExport)&&delete t.width,xt&&!Dt)h(r.element,t);else{a=function(t,e){return"-"+e.toLowerCase()};for(n in t)c+=n.replace(/([A-Z])/g,a)+":"+t[n]+";";u(l,"style",c)}i&&r.added&&r.renderer.buildText(r)}return r},on:function(t,e){var i=this,n=i.element;return N&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=z.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===bt.indexOf("Android")||z.now()-(i.touchEventFired||0)>1100)&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){return this.element.radialReference=t,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){var t=this;return t.inverted=!0,t.updateTransform(),t},updateTransform:function(){var t,e=this,i=e.translateX||0,n=e.translateY||0,a=e.scaleX,r=e.scaleY,o=e.inverted,s=e.rotation,l=e.element;o&&(i+=e.attr("width"),n+=e.attr("height")),t=["translate("+i+","+n+")"],o?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+(l.getAttribute("x")||0)+" "+(l.getAttribute("y")||0)+")"),(c(a)||c(r))&&t.push("scale("+ie(a,1)+" "+ie(r,1)+")"),t.length&&l.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,n){var a,r,o,s,c,u={},d=this.renderer,h=d.alignedObjects;return t?(this.alignOptions=t,this.alignByTranslate=e,(!n||i(n))&&(this.alignTo=c=n||"renderer",l(h,this),h.push(this),n=null)):(t=this.alignOptions,e=this.alignByTranslate,c=this.alignTo),n=ie(n,d[c],d),a=t.align,r=t.verticalAlign,o=(n.x||0)+(t.x||0),s=(n.y||0)+(t.y||0),("right"===a||"center"===a)&&(o+=(n.width-(t.width||0))/{right:1,center:2}[a]),u[e?"translateX":"x"]=ut(o),("bottom"===r||"middle"===r)&&(s+=(n.height-(t.height||0))/({bottom:1,middle:2}[r]||1)),u[e?"translateY":"y"]=ut(s),this[this.placed?"animate":"attr"](u),this.placed=!0,this.alignAttr=u,this},getBBox:function(t){var e,i,n,a,r=this,o=r.renderer,s=r.rotation,l=r.element,c=r.styles,u=s*yt,d=r.textStr;if(d!==L&&(a=["",s||0,c&&c.fontSize,l.style.width].join(","),a=""===d||Jt.test(d)?"num:"+d.toString().length+a:d+a),a&&!t&&(e=o.cache[a]),!e){if(l.namespaceURI===St||o.forExport){try{e=l.getBBox?ee({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight}}catch(h){}(!e||e.width<0)&&(e={width:0,height:0})}else e=r.htmlGetBBox();o.isSVG&&(i=e.width,n=e.height,xt&&c&&"11px"===c.fontSize&&"16.9"===n.toPrecision(3)&&(e.height=n=14),s&&(e.width=At(n*mt(u))+At(i*gt(u)),e.height=At(n*gt(u))+At(i*mt(u)))),o.cache[a]=e}return e},show:function(t){return t&&this.element.namespaceURI===St?this.element.removeAttribute("visibility"):this.attr({visibility:t?"inherit":Ht}),this},hide:function(){return this.attr({visibility:Ut})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,n=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i,n=this,a=n.element||{},r=n.shadows,o=n.renderer.isSVG&&"SPAN"===a.nodeName&&n.parentGroup;if(a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null,ve(n),n.clipPath&&(n.clipPath=n.clipPath.destroy()),n.stops){for(i=0;i=n;n++)a=d.cloneNode(0),r=2*o+1-2*n,u(a,{isShadow:"true",stroke:t.color||"black","stroke-opacity":s*n,"stroke-width":r,transform:"translate"+l,fill:zt}),i&&(u(a,"height",pt(u(a,"height")-r,0)),a.cutHeight=r),e?e.element.appendChild(a):d.parentNode.insertBefore(a,d),c.push(a);this.shadows=c}return this},xGetter:function(t){return"circle"===this.element.nodeName&&(t={x:"cx",y:"cy"}[t]||t),this._defaultGetter(t)},_defaultGetter:function(t){var e=ie(this[t],this.element?this.element.getAttribute(t):null,0);return/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),i.setAttribute(e,t),this[e]=t},dashstyleSetter:function(t){var i;if(t=t&&t.toLowerCase()){for(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),i=t.length;i--;)t[i]=e(t[i])*this["stroke-width"];t=t.join(",").replace("NaN","none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=st.createElementNS(St,"title"),this.element.appendChild(e)),e.textContent=ie(t,"").replace(/<[^>]*>/g,"")},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},zIndexSetter:function(t,i){var n,a,r,o,s,l=this.renderer,d=this.parentGroup,h=d||l,p=h.element||l.box,f=this.element;if(c(t)&&(f.setAttribute(i,t),this[i]=+t),this.added){for(t=this.zIndex,t&&d&&(d.handleZ=!0),n=p.childNodes,s=0;st||!c(t)&&c(r))&&(p.insertBefore(f,a),o=!0);o||p.appendChild(f)}return o},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},B.prototype.yGetter=B.prototype.xGetter,B.prototype.translateXSetter=B.prototype.translateYSetter=B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},B.prototype["stroke-widthSetter"]=B.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],B.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)};var Ee=function(){this.init.apply(this,arguments)};Ee.prototype={Element:B,init:function(t,e,i,n,a){var r,o,s,l=this,c=location;r=l.createElement("svg").attr({version:"1.1"}).css(this.getStyle(n)),o=r.element,t.appendChild(o),-1===t.innerHTML.indexOf("xmlns")&&u(o,"xmlns",St),l.isSVG=!0,l.box=o,l.boxWrapper=r,l.alignedObjects=[],l.url=(Et||Ct)&&st.getElementsByTagName("base").length?c.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",s=this.createElement("desc").add(),s.element.appendChild(st.createTextNode("Created with "+Ft+" "+Nt)),l.defs=this.createElement("defs").add(),l.forExport=a,l.gradients={},l.cache={},l.setSize(e,i,!1);var d,p;Et&&t.getBoundingClientRect&&(l.subPixelFix=d=function(){h(t,{left:0,top:0}),p=t.getBoundingClientRect(),h(t,{left:ht(p.left)-p.left+Wt,top:ht(p.top)-p.top+Wt})},d(),pe(lt,"resize",d))},getStyle:function(t){return this.style=ee({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this,e=t.defs;return t.box=null,t.boxWrapper=t.boxWrapper.destroy(),C(t.gradients||{}),t.gradients=null,e&&(t.defs=e.destroy()),t.subPixelFix&&fe(lt,"resize",t.subPixelFix),t.alignedObjects=null,null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var i,n,a,r=t.element,o=this,s=o.forExport,l=ie(t.textStr,"").toString(),c=-1!==l.indexOf("<"),d=r.childNodes,p=u(r,"x"),f=t.styles,A=t.textWidth,g=f&&f.lineHeight,m=f&&f.textShadow,v=f&&"ellipsis"===f.textOverflow,y=d.length,b=A&&!t.added&&this.box,w=function(t){return g?e(g):o.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:f&&f.fontSize||o.style.fontSize||12,t).h},x=function(t){return t.replace(/</g,"<").replace(/>/g,">")};y--;)r.removeChild(d[y]);return c||m||v||-1!==l.indexOf(" ")?(n=/<.*style="([^"]+)".*>/,a=/<.*href="(http[^"]+)".*>/,b&&b.appendChild(r),i=c?l.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[l],""===i[i.length-1]&&i.pop(),ce(i,function(e,i){var l,c=0;e=e.replace(//g,"|||"),l=e.split("|||"),ce(l,function(e){if(""!==e||1===l.length){var d,g={},m=st.createElementNS(St,"tspan");if(n.test(e)&&(d=e.match(n)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),u(m,"style",d)),a.test(e)&&!s&&(u(m,"onclick",'location.href="'+e.match(a)[1]+'"'),h(m,{cursor:"pointer"})),e=x(e.replace(/<(.|\n)*?>/g,"")||" ")," "!==e){if(m.appendChild(st.createTextNode(e)),c?g.dx=0:i&&null!==p&&(g.x=p),u(m,g),r.appendChild(m),!c&&i&&(!Dt&&s&&h(m,{display:"block"}),u(m,"dy",w(m))),A){for(var y,b,k,C,E=e.replace(/([^\^])-/g,"$1- ").split(" "),T=l.length>1||i||E.length>1&&"nowrap"!==f.whiteSpace,S=[],D=w(m),M=1,I=t.rotation,j=e,B=j.length;(T||v)&&(E.length||S.length);)t.rotation=0,C=t.getBBox(!0),k=C.width,!Dt&&o.forExport&&(k=o.measureSpanWidth(m.firstChild.data,t.styles)),y=k>A,void 0===b&&(b=y),v&&b?(B/=2,""===j||!y&&.5>B?E=[]:(y&&(b=!0),j=e.substring(0,j.length+(y?-1:1)*ht(B)),E=[j+"…"],m.removeChild(m.firstChild))):y&&1!==E.length?(m.removeChild(m.firstChild),S.unshift(E.pop())):(E=S,S=[],E.length&&(M++,m=st.createElementNS(St,"tspan"),u(m,{dy:D,x:p}),d&&u(m,"style",d),r.appendChild(m)),k>A&&(A=k)),E.length&&m.appendChild(st.createTextNode(E.join(" ").replace(/- /g,"-")));b&&t.attr("title",t.textStr),t.rotation=I}c++}}})}),b&&b.removeChild(r),m&&t.applyTextShadow&&t.applyTextShadow(m),void 0):void r.appendChild(st.createTextNode(x(l)))},getContrast:function(t){return t=Ce(t).rgba,t[0]+t[1]+t[2]>384?"#000":"#FFF"},button:function(e,i,n,a,r,o,s,l,c){var u,d,h,p,f,A,g=this.label(e,i,n,c,null,null,null,null,"button"),m=0,v={x1:0,y1:0,x2:0,y2:1};return r=t({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:v,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},r),h=r.style,delete r.style,o=t(r,{stroke:"#68A",fill:{linearGradient:v,stops:[[0,"#FFF"],[1,"#ACF"]]}},o),p=o.style,delete o.style,s=t(r,{stroke:"#68A",fill:{linearGradient:v,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),f=s.style,delete s.style,l=t(r,{style:{color:"#CCC"}},l),A=l.style,delete l.style,pe(g.element,xt?"mouseover":"mouseenter",function(){3!==m&&g.attr(o).css(p)}),pe(g.element,xt?"mouseout":"mouseleave",function(){3!==m&&(u=[r,o,s][m],d=[h,p,f][m],g.attr(u).css(d))}),g.setState=function(t){g.state=m=t,t?2===t?g.attr(s).css(f):3===t&&g.attr(l).css(A):g.attr(r).css(h)},g.on("click",function(){3!==m&&a.call(g)}).attr(r).css(ee({cursor:"default"},h))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ut(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ut(t[2])+e%2/2),t},path:function(t){var e={fill:zt};return a(t)?e.d=t:n(t)&&ee(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){var a=n(t)?t:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=function(t){this.element.setAttribute("cx",t)},r.ySetter=function(t){this.element.setAttribute("cy",t)},r.attr(a)},arc:function(t,e,i,a,r,o){var s;return n(t)&&(e=t.y,i=t.r,a=t.innerR,r=t.start,o=t.end,t=t.x),s=this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:a||0,start:r||0,end:o||0}),s.r=i,s},rect:function(t,e,i,a,r,o){r=n(t)?t.r:r;var s=this.createElement("rect"),l=n(t)?t:t===L?{}:{x:t,y:e,width:pt(i,0),height:pt(a,0)};return o!==L&&(l.strokeWidth=o,l=s.crisp(l)),r&&(l.r=r),s.rSetter=function(t){u(this.element,{rx:t,ry:t})},s.attr(l)},setSize:function(t,e,i){var n=this,a=n.alignedObjects,r=a.length;for(n.width=t,n.height=e,n.boxWrapper[ie(i,!0)?"animate":"attr"]({width:t,height:e});r--;)a[r].align()},g:function(t){var e=this.createElement("g");return c(t)?e.attr({"class":Gt+t}):e},image:function(t,e,i,n,a){var r,o={preserveAspectRatio:zt};return arguments.length>1&&ee(o,{x:e,y:i,width:n,height:a}),r=this.createElement("image").attr(o),r.element.setAttributeNS?r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):r.element.setAttribute("hc-svg-href",t),r},symbol:function(t,e,i,n,a,r){var o,s,l,c,u,d=this.symbols[t],h=d&&d(ut(e),ut(i),n,a,r),f=/^url\((.*?)\)$/;return h?(o=this.path(h),ee(o,{symbolName:t,x:e,y:i,width:n,height:a}),r&&ee(o,r)):f.test(t)&&(u=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(ut((n-e[0])/2),ut((a-e[1])/2)))},l=t.match(f)[1],c=jt[l]||r&&r.width&&r.height&&[r.width,r.height],o=this.image(l).attr({x:e,y:i}),o.isImg=!0,c?u(o,c):(o.attr({width:0,height:0}),s=p("img",{onload:function(){u(o,jt[l]=[this.width,this.height])},src:l}))),o},symbols:{circle:function(t,e,i,n){var a=.166*i;return[Vt,t+i/2,e,"C",t+i+a,e,t+i+a,e+n,t+i/2,e+n,"C",t-a,e+n,t-a,e,t+i/2,e,"Z"]},square:function(t,e,i,n){return[Vt,t,e,_t,t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return[Vt,t+i/2,e,_t,t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return[Vt,t,e,_t,t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return[Vt,t+i/2,e,_t,t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,a){var r=a.start,o=a.r||i||n,s=a.end-.001,l=a.innerR,c=a.open,u=gt(r),d=mt(r),h=gt(s),p=mt(s),f=a.end-ri&&d>e+c&&e+n-c>d?r.splice(13,3,"L",t+i,d-s,t+i+o,d,t+i,d+s,t+i,e+n-l):u&&0>u&&d>e+c&&e+n-c>d?r.splice(33,3,"L",t,d+s,t-o,d,t,d-s,t,e+l):d&&d>n&&u>t+c&&t+i-c>u?r.splice(23,3,"L",u+s,e+n,u,e+n+o,u-s,e+n,t+l,e+n):d&&0>d&&u>t+c&&t+i-c>u&&r.splice(3,3,"L",u-s,e,u,e-o,u+s,e,i-l,e), r}},clipRect:function(t,e,i,n){var a,r=Gt+Bt++,o=this.createElement("clipPath").attr({id:r}).add(this.defs);return a=this.rect(t,e,i,n,0).add(o),a.id=r,a.clipPath=o,a.count=0,a},text:function(t,e,i,n){var a,r=this,o=It||!Dt&&r.forExport,s={};return n&&!r.forExport?r.html(t,e,i):(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),(t||0===t)&&(s.text=t),a=r.createElement("text").attr(s),o&&a.css({position:Qt}),n||(a.xSetter=function(t,e,i){var n,a,r=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(a=0;at?t+3:ut(1.2*t),a=ut(.8*n);return{h:n,b:a,f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=pt(n*gt(e*yt),4)),{x:-t/3*mt(e*yt),y:n}},label:function(e,i,n,a,r,o,s,l,u){function d(){var t,e,i=C.element.style;A=(void 0===g||void 0===m||k.styles.textAlign)&&c(C.textStr)&&C.getBBox(),k.width=(g||A.width||0)+2*T+S,k.height=(m||A.height||0)+2*T,b=T+x.fontMetrics(i&&i.fontSize,C).b,w&&(f||(t=ut(-E*T),e=l?-b:0,k.box=f=a?x.symbol(a,t,e,k.width,k.height,M):x.rect(t,e,k.width,k.height,0,M[$t]),f.attr("fill",zt).add(k)),f.isImg||f.attr(ee({width:ut(k.width),height:ut(k.height)},M)),M=null)}function h(){var t,e=k.styles,i=e&&e.textAlign,n=S+T*(1-E);t=l?0:b,c(g)&&A&&("center"===i||"right"===i)&&(n+={center:.5,right:1}[i]*(g-A.width)),(n!==C.x||t!==C.y)&&(C.attr("x",n),t!==L&&C.attr("y",t)),C.x=n,C.y=t}function p(t,e){f?f.attr(t,e):M[t]=e}var f,A,g,m,v,y,b,w,x=this,k=x.g(u),C=x.text("",0,0,s).attr({zIndex:1}),E=0,T=3,S=0,D=0,M={};k.onAdd=function(){C.add(k),k.attr({text:e||0===e?e:"",x:i,y:n}),f&&c(r)&&k.attr({anchorX:r,anchorY:o})},k.widthSetter=function(t){g=t},k.heightSetter=function(t){m=t},k.paddingSetter=function(t){c(t)&&t!==T&&(T=k.padding=t,h())},k.paddingLeftSetter=function(t){c(t)&&t!==S&&(S=t,h())},k.alignSetter=function(t){E={left:0,center:.5,right:1}[t]},k.textSetter=function(t){t!==L&&C.textSetter(t),d(),h()},k["stroke-widthSetter"]=function(t,e){t&&(w=!0),D=t%2/2,p(e,t)},k.strokeSetter=k.fillSetter=k.rSetter=function(t,e){"fill"===e&&t&&(w=!0),p(e,t)},k.anchorXSetter=function(t,e){r=t,p(e,t+D-v)},k.anchorYSetter=function(t,e){o=t,p(e,t-y)},k.xSetter=function(t){k.x=t,E&&(t-=E*((g||A.width)+T)),v=ut(t),k.attr("translateX",v)},k.ySetter=function(t){y=k.y=ut(t),k.attr("translateY",y)};var I=k.css;return ee(k,{css:function(e){if(e){var i={};e=t(e),ce(k.textProps,function(t){e[t]!==L&&(i[t]=e[t],delete e[t])}),C.css(i)}return I.call(k,e)},getBBox:function(){return{width:A.width+2*T,height:A.height+2*T,x:A.x-T,y:A.y-T}},shadow:function(t){return f&&f.shadow(t),k},destroy:function(){fe(k.element,"mouseenter"),fe(k.element,"mouseleave"),C&&(C=C.destroy()),f&&(f=f.destroy()),B.prototype.destroy.call(k),k=x=d=h=p=null}})}},F=Ee,ee(B.prototype,{htmlCss:function(t){var e=this,i=e.element,n=t&&"SPAN"===i.tagName&&t.width;return n&&(delete t.width,e.textWidth=n,e.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),e.styles=ee(e.styles,t),h(e.element,t),e},htmlGetBBox:function(){var t=this,e=t.element;return"text"===e.nodeName&&(e.style.position=Qt),{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},htmlUpdateTransform:function(){if(!this.added)return void(this.alignOnAdd=!0);var t=this,i=t.renderer,n=t.element,a=t.translateX||0,r=t.translateY||0,o=t.x||0,s=t.y||0,l=t.textAlign||"left",u={left:0,center:.5,right:1}[l],d=t.shadows,p=t.styles;if(h(n,{marginLeft:a,marginTop:r}),d&&ce(d,function(t){h(t,{marginLeft:a+1,marginTop:r+1})}),t.inverted&&ce(n.childNodes,function(t){i.invertChild(t,n)}),"SPAN"===n.tagName){var f,A,g=t.rotation,m=e(t.textWidth),v=[g,l,n.innerHTML,t.textWidth].join(",");v!==t.cTT&&(A=i.fontMetrics(n.style.fontSize).b,c(g)&&t.setSpanRotation(g,u,A),f=ie(t.elemWidth,n.offsetWidth),f>m&&/[ \-]/.test(n.textContent||n.innerText)&&(h(n,{width:m+Wt,display:"block",whiteSpace:p&&p.whiteSpace||"normal"}),f=m),t.getSpanCorrection(f,A,u,g,l)),h(n,{left:o+(t.xCorr||0)+Wt,top:s+(t.yCorr||0)+Wt}),Ct&&(A=n.offsetHeight),t.cTT=v}},setSpanRotation:function(t,e,i){var n={},a=xt?"-ms-transform":Ct?"-webkit-transform":Et?"MozTransform":wt?"-o-transform":"";n[a]=n.transform="rotate("+t+"deg)",n[a+(Et?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",h(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),ee(Ee.prototype,{html:function(t,e,i){var n=this.createElement("span"),a=n.element,r=n.renderer;return n.textSetter=function(t){t!==a.innerHTML&&delete this.bBox,a.innerHTML=this.textStr=t},n.xSetter=n.ySetter=n.alignSetter=n.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),n[e]=t,n.htmlUpdateTransform()},n.attr({text:t,x:ut(e),y:ut(i)}).css({position:Qt,fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),a.style.whiteSpace="nowrap",n.css=n.htmlCss,r.isSVG&&(n.add=function(t){var e,i,o=r.box.parentNode,s=[];if(this.parentGroup=t,t){if(e=t.div,!e){for(i=t;i;)s.push(i),i=i.parentGroup;ce(s.reverse(),function(t){var i;e=t.div=t.div||p(Ot,{className:u(t.element,"class")},{position:Qt,left:(t.translateX||0)+Wt,top:(t.translateY||0)+Wt},e||o),i=e.style,ee(t,{translateXSetter:function(e,n){i.left=e+Wt,t[n]=e,t.doTransform=!0},translateYSetter:function(e,n){i.top=e+Wt,t[n]=e,t.doTransform=!0},visibilitySetter:function(t,e){i[e]=t}})})}}else e=o;return e.appendChild(a),n.added=!0,n.alignOnAdd&&n.htmlUpdateTransform(),n}),n}});var Te,Se;if(!Dt&&!It){Se={init:function(t,e){var i=this,n=["<",e,' filled="f" stroked="f"'],a=["position: ",Qt,";"],r=e===Ot;("shape"===e||r)&&a.push("left:0;top:0;width:1px;height:1px;"),a.push("visibility: ",r?Ut:Ht),n.push(' style="',a.join(""),'"/>'),e&&(n=r||"span"===e||"img"===e?n.join(""):t.prepVML(n),i.element=p(n)),i.renderer=t},add:function(t){var e=this,i=e.renderer,n=e.element,a=i.box,r=t&&t.inverted,o=t?t.element||t:a;return r&&i.invertChild(n,o),o.appendChild(n),e.added=!0,e.alignOnAdd&&!e.deferUpdateTransform&&e.updateTransform(),e.onAdd&&e.onAdd(),e},updateTransform:B.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=gt(t*yt),i=mt(t*yt);h(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):zt})},getSpanCorrection:function(t,e,i,n,a){var r,o=n?gt(n*yt):1,s=n?mt(n*yt):0,l=ie(this.elemHeight,this.element.offsetHeight),c=a&&"left"!==a;this.xCorr=0>o&&-t,this.yCorr=0>s&&-l,r=0>o*s,this.xCorr+=s*e*(r?1-i:i),this.yCorr-=o*e*(n?r?i:1-i:1),c&&(this.xCorr-=t*i*(0>o?-1:1),n&&(this.yCorr-=l*i*(0>s?-1:1)),h(this.element,{textAlign:a}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)r(t[e])?i[e]=ut(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i,n=this;return t?(e=t.members,l(e,n),e.push(n),n.destroyClip=function(){l(e,n)},i=t.getCSS(n)):(n.destroyClip&&n.destroyClip(),i={clip:kt?"inherit":"rect(auto)"}),n.css(i)},css:B.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&E(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),B.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=lt.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,i){var n;return t=t.split(/[ ,]/),n=t.length,(9===n||11===n)&&(t[n-4]=t[n-2]=e(t[n-2])-10*i),t.join(" ")},shadow:function(t,i,n){var a,r,o,s,l,c,u,d=[],h=this.element,f=this.renderer,A=h.style,g=h.path;if(g&&"string"!=typeof g.value&&(g="x"),l=g,t){for(c=ie(t.width,3),u=(t.opacity||.15)/c,a=1;3>=a;a++)s=2*c+1-2*a,n&&(l=this.cutOffPath(g.value,s+.5)),o=[''],r=p(f.prepVML(o),null,{left:e(A.left)+ie(t.offsetX,1),top:e(A.top)+ie(t.offsetY,1)}),n&&(r.cutOff=s+1),o=[''],p(f.prepVML(o),null,null,r),i?i.element.appendChild(r):h.parentNode.insertBefore(r,h),d.push(r);this.shadows=d}return this},updateShadows:Pt,setAttr:function(t,e){kt?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){this.element.className=t},dashstyleSetter:function(t,e,i){var n=i.getElementsByTagName("stroke")[0]||p(this.renderer.prepVML([""]),null,null,i);n[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n,a=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),a)for(n=a.length;n--;)a[n].path=a[n].cutOff?this.cutOffPath(t,a[n].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled=t!==zt,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},opacitySetter:Pt,rotationSetter:function(t,e,i){var n=i.style;this[e]=n[e]=t,n.left=-ut(mt(t*yt)+1)+Wt,n.top=ut(gt(t*yt))+Wt},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,r(t)&&(t+=Wt),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t=Ht),this.shadows&&ce(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t=t===Ut?"-999em":0,kt||(i.style[e]=t?Ht:Ut),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},ot.VMLElement=Se=f(B,Se),Se.prototype.ySetter=Se.prototype.widthSetter=Se.prototype.heightSetter=Se.prototype.xSetter;var De={Element:Se,isIE8:bt.indexOf("MSIE 8.0")>-1,init:function(t,e,i,n){var a,r,o,s=this;if(s.alignedObjects=[],a=s.createElement(Ot).css(ee(this.getStyle(n),{position:Yt})),r=a.element,t.appendChild(a.element),s.isVML=!0,s.box=r,s.boxWrapper=a,s.cache={},s.setSize(e,i,!1),!st.namespaces.hcv){st.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),o="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ";try{st.createStyleSheet().cssText=o}catch(l){st.styleSheets[0].cssText+=o}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,i,a){var r=this.createElement(),o=n(t);return ee(r,{members:[],count:0,left:(o?t.x:t)+1,top:(o?t.y:e)+1,width:(o?t.width:i)-1,height:(o?t.height:a)-1,getCSS:function(t){var e=t.element,i=e.nodeName,n="shape"===i,a=t.inverted,r=this,o=r.top-(n?e.offsetTop:0),s=r.left,l=s+r.width,c=o+r.height,u={clip:"rect("+ut(a?s:o)+"px,"+ut(a?c:l)+"px,"+ut(a?l:c)+"px,"+ut(a?o:s)+"px)"};return!a&&kt&&"DIV"===i&&ee(u,{width:l+Wt,height:c+Wt}),u},updateClipping:function(){ce(r.members,function(t){t.element&&t.css(r.getCSS(t))})}})},color:function(t,e,i,n){var a,r,o,s=this,l=/^rgba/,c=zt;if(t&&t.linearGradient?o="gradient":t&&t.radialGradient&&(o="pattern"),o){var u,d,h,f,A,g,m,v,y,b,w,x,k=t.linearGradient||t.radialGradient,C="",E=t.stops,T=[],S=function(){r=[''],p(s.prepVML(r),null,null,e)};if(w=E[0],x=E[E.length-1],w[0]>0&&E.unshift([0,w[1]]),x[0]<1&&E.push([1,x[1]]),ce(E,function(t,e){l.test(t[1])?(a=Ce(t[1]),u=a.get("rgb"),d=a.get("a")):(u=t[1],d=1),T.push(100*t[0]+"% "+u),e?(v=d,y=u):(m=d,b=u)}),"fill"===i)if("gradient"===o)h=k.x1||k[0]||0,f=k.y1||k[1]||0,A=k.x2||k[2]||0,g=k.y2||k[3]||0,C='angle="'+(90-180*ct.atan((g-f)/(A-h))/vt)+'"',S();else{var D,M=k.r,I=2*M,j=2*M,B=k.cx,P=k.cy,R=e.radialReference,L=function(){R&&(D=n.getBBox(),B+=(R[0]-D.x)/D.width-.5,P+=(R[1]-D.y)/D.height-.5,I*=R[2]/D.width,j*=R[2]/D.height),C='src="'+Q.global.VMLRadialGradientURL+'" size="'+I+","+j+'" origin="0.5,0.5" position="'+B+","+P+'" color2="'+b+'" ',S()};n.added?L():n.onAdd=L,c=y}else c=u}else if(l.test(t)&&"IMG"!==e.tagName)a=Ce(t),r=["<",i,' opacity="',a.get("a"),'"/>'],p(this.prepVML(r),null,null,e),c=a.get("rgb");else{var F=e.getElementsByTagName(i);F.length&&(F[0].opacity=1,F[0].type="solid"),c=t}return c},prepVML:function(t){var e="display:inline-block;behavior:url(#default#VML);",i=this.isIE8;return t=t.join(""),i?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="'+e+'" />'):t.replace('style="','style="'+e)):t=t.replace("<","1&&r.attr({x:e,y:i,width:n,height:a}),r},createElement:function(t){return"rect"===t?this.symbol(t):Ee.prototype.createElement.call(this,t)},invertChild:function(t,i){var n=this,a=i.style,r="IMG"===t.tagName&&t.style;h(t,{flip:"x",left:e(a.width)-(r?e(r.top):1),top:e(a.height)-(r?e(r.left):1),rotation:-90}),ce(t.childNodes,function(e){n.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,a){var r,o=a.start,s=a.end,l=a.r||i||n,c=a.innerR,u=gt(o),d=mt(o),h=gt(s),p=mt(s);return s-o===0?["x"]:(r=["wa",t-l,e-l,t+l,e+l,t+l*u,e+l*d,t+l*h,e+l*p],a.open&&!c&&r.push("e",Vt,t,e),r.push("at",t-c,e-c,t+c,e+c,t+c*h,e+c*p,t+c*u,e+c*d,"x","e"),r.isArc=!0,r)},circle:function(t,e,i,n,a){return a&&(i=n=2*a.r),a&&a.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,a){return Ee.prototype.symbols[c(a)&&a.r?"callout":"square"].call(0,t,e,i,n,a)}}};ot.VMLRenderer=Te=function(){this.init.apply(this,arguments)},Te.prototype=t(Ee.prototype,De),F=Te}Ee.prototype.measureSpanWidth=function(t,e){var i,n=st.createElement("span"),a=st.createTextNode(t);return n.appendChild(a),h(n,e),this.box.appendChild(n),i=n.offsetWidth,E(n),i};var Me,Ie;It&&(ot.CanVGRenderer=Me=function(){St="http://www.w3.org/1999/xhtml"},Me.prototype.symbols={},Ie=function(){function t(){var t,i=e.length;for(t=0;i>t;t++)e[t]();e=[]}var e=[];return{push:function(i,n){0===e.length&&se(n,t),e.push(i)}}}(),F=Me),P.prototype={addLabel:function(){var e,i,n=this,a=n.axis,r=a.options,o=a.chart,l=a.categories,u=a.names,d=n.pos,h=r.labels,p=a.tickPositions,f=d===p[0],A=d===p[p.length-1],g=l?ie(l[d],u[d],d):d,m=n.label,v=p.info;a.isDatetimeAxis&&v&&(i=r.dateTimeLabelFormats[v.higherRanks[d]||v.unitName]),n.isFirst=f,n.isLast=A,e=a.labelFormatter.call({axis:a,chart:o,isFirst:f,isLast:A,dateTimeLabelFormat:i,value:a.isLog?S(s(g)):g}),c(m)?m&&m.attr({text:e}):(n.label=m=c(e)&&h.enabled?o.renderer.text(e,0,0,h.useHTML).css(t(h.style)).add(a.labelGroup):null,n.labelLength=m&&m.getBBox().width,n.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i,n,a=this.axis,r=t.x,o=a.chart.chartWidth,s=a.chart.spacing,l=ie(a.labelLeft,s[3]),c=ie(a.labelRight,o-s[1]),u=this.label,d=this.rotation,h={left:0,center:.5,right:1}[a.labelAlign],p=u.getBBox().width,f=a.slotWidth;d?0>d&&l>r-h*p?n=ut(r/gt(d*yt)-l):d>0&&r+h*p>c&&(n=ut((o-r)/gt(d*yt))):(e=r-h*p,i=r+h*p,l>e?(f-=l-e,t.x=l,u.attr({align:"left"})):i>c&&(f-=i-c,t.x=c,u.attr({align:"right"})),p>f&&(n=f)),n&&u.css({width:n,textOverflow:"ellipsis"})},getPosition:function(t,e,i,n){var a=this.axis,r=a.chart,o=n&&r.oldChartHeight||r.chartHeight;return{x:t?a.translate(e+i,null,null,n)+a.transB:a.left+a.offset+(a.opposite?(n&&r.oldChartWidth||r.chartWidth)-a.right-a.left:0),y:t?o-a.bottom+a.offset-(a.opposite?a.height:0):o-a.translate(e+i,null,null,n)-a.transB}},getLabelPosition:function(t,e,i,n,a,r,o,s){var l,c=this.axis,u=c.transA,d=c.reversed,h=c.staggerLines,p=c.tickRotCorr||{x:0,y:0},f=ie(a.y,p.y+(2===c.side?8:-(i.getBBox().height/2)));return t=t+a.x+p.x-(r&&n?r*u*(d?-1:1):0),e=e+f-(r&&!n?r*u*(d?1:-1):0),h&&(l=o/(s||1)%h,e+=l*(c.labelOffset/h)),{x:t,y:ut(e)}},getMarkPath:function(t,e,i,n,a,r){return r.crispLine([Vt,t,e,_t,t+(a?0:-i),e+(a?i:0)],n)},render:function(t,e,i){var n,a,r,o=this,s=o.axis,l=s.options,c=s.chart,u=c.renderer,d=s.horiz,h=o.type,p=o.label,f=o.pos,A=l.labels,g=o.gridLine,m=h?h+"Grid":"grid",v=h?h+"Tick":"tick",y=l[m+"LineWidth"],b=l[m+"LineColor"],w=l[m+"LineDashStyle"],x=l[v+"Length"],k=l[v+"Width"]||0,C=l[v+"Color"],E=l[v+"Position"],T=o.mark,S=A.step,D=!0,M=s.tickmarkOffset,I=o.getPosition(d,f,M,e),j=I.x,B=I.y,P=d&&j===s.pos+s.len||!d&&B===s.pos?-1:1;i=ie(i,1),this.isActive=!0,y&&(n=s.getPlotLinePath(f+M,y*P,e,!0),g===L&&(r={stroke:b,"stroke-width":y},w&&(r.dashstyle=w),h||(r.zIndex=1),e&&(r.opacity=0),o.gridLine=g=y?u.path(n).attr(r).add(s.gridGroup):null),!e&&g&&n&&g[o.isNew?"attr":"animate"]({d:n,opacity:i})),k&&x&&("inside"===E&&(x=-x),s.opposite&&(x=-x),a=o.getMarkPath(j,B,x,k*P,d,u),T?T.animate({d:a,opacity:i}):o.mark=u.path(a).attr({stroke:C,"stroke-width":k,opacity:i}).add(s.axisGroup)),p&&!isNaN(j)&&(p.xy=I=o.getLabelPosition(j,B,p,d,A,M,t,S),o.isFirst&&!o.isLast&&!ie(l.showFirstLabel,1)||o.isLast&&!o.isFirst&&!ie(l.showLastLabel,1)?D=!1:!d||s.isRadial||A.step||A.rotation||e||0===i||o.handleOverflow(I),S&&t%S&&(D=!1),D&&!isNaN(I.y)?(I.opacity=i,p[o.isNew?"attr":"animate"](I),o.isNew=!1):p.attr("y",-9999))},destroy:function(){C(this,this.axis)}},ot.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},ot.PlotLineOrBand.prototype={render:function(){var e,i,n,a,r,s,l=this,u=l.axis,d=u.horiz,h=l.options,p=h.label,f=l.label,A=h.width,g=h.to,m=h.from,v=c(m)&&c(g),y=h.value,b=h.dashStyle,w=l.svgElem,C=[],E=h.color,T=h.zIndex,S=h.events,D={},M=u.chart.renderer;if(u.isLog&&(m=o(m),g=o(g),y=o(y)),A)C=u.getPlotLinePath(y,A),D={stroke:E,"stroke-width":A},b&&(D.dashstyle=b);else{if(!v)return;C=u.getPlotBandPath(m,g,h),E&&(D.fill=E),h.borderWidth&&(D.stroke=h.borderColor,D["stroke-width"]=h.borderWidth)}if(c(T)&&(D.zIndex=T),w)C?w.animate({d:C},null,w.onGetPath):(w.hide(),w.onGetPath=function(){w.show()},f&&(l.label=f=f.destroy()));else if(C&&C.length&&(l.svgElem=w=M.path(C).attr(D).add(),S)){e=function(t){w.on(t,function(e){S[t].apply(l,[e])})};for(i in S)e(i)}return p&&c(p.text)&&C&&C.length&&u.width>0&&u.height>0?(p=t({align:d&&v&&"center",x:d?!v&&4:10,verticalAlign:!d&&v&&"middle",y:d?v?16:10:v?6:-4,rotation:d&&!v&&90},p),f||(D={align:p.textAlign||p.align,rotation:p.rotation},c(T)&&(D.zIndex=T),l.label=f=M.text(p.text,0,0,p.useHTML).attr(D).css(p.style).add()),n=[C[1],C[4],v?C[6]:C[1]],a=[C[2],C[5],v?C[7]:C[2]],r=x(n),s=x(a),f.align(p,!1,{x:r,y:s,width:k(n)-r,height:k(a)-s}),f.show()):f&&f.hide(),l},destroy:function(){l(this.axis.plotLinesAndBands,this),delete this.axis,C(this)}},W={getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0);return n&&i&&n.toString()!==i.toString()?n.push(i[4],i[5],i[1],i[2]):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var i=new ot.PlotLineOrBand(this,t).render(),n=this.userOptions;return i&&(e&&(n[e]=n[e]||[],n[e].push(t)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,a=e.length;a--;)e[a].id===t&&e[a].destroy();ce([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(a=e.length;a--;)e[a].id===t&&l(e,e[a])})}};var je=ot.Axis=function(){this.init.apply(this,arguments)};je.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,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ot.numberFormat(this.total,-1)},style:ye.line.dataLabels.style}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(t,e){var i=e.isX,n=this;n.horiz=t.inverted?!i:i,n.isXAxis=i,n.coll=i?"xAxis":"yAxis",n.opposite=e.opposite,n.side=e.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(e);var a=this.options,r=a.type,l="datetime"===r;n.labelFormatter=a.labels.formatter||n.defaultLabelFormatter,n.userOptions=e,n.minPixelPadding=0,n.chart=t,n.reversed=a.reversed,n.zoomEnabled=a.zoomEnabled!==!1,n.categories=a.categories||"category"===r,n.names=n.names||[],n.isLog="logarithmic"===r,n.isDatetimeAxis=l,n.isLinked=c(a.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=a.minRange||a.maxZoom,n.range=a.range,n.offset=a.offset||0,n.stacks={},n.oldStacks={},n.max=null,n.min=null,n.crosshair=ie(a.crosshair,d(t.options.tooltip.crosshairs)[i?0:1],!1);var u,h=n.options.events;-1===le(n,t.axes)&&(i&&!this.isColorAxis?t.axes.splice(t.xAxis.length,0,n):t.axes.push(n),t[n.coll].push(n)),n.series=n.series||[],t.inverted&&i&&n.reversed===L&&(n.reversed=!0),n.removePlotBand=n.removePlotBandOrLine,n.removePlotLine=n.removePlotBandOrLine;for(u in h)pe(n,u,h[u]);n.isLog&&(n.val2lin=o,n.lin2val=s)},setOptions:function(e){this.options=t(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],t(Q[this.coll],e))},defaultLabelFormatter:function(){var t,e,i=this.axis,n=this.value,a=i.categories,r=this.dateTimeLabelFormat,o=Q.lang.numericSymbols,s=o&&o.length,l=i.options.labels.format,c=i.isLog?n:i.tickInterval;if(l)e=v(l,this);else if(a)e=n;else if(r)e=Y(r,n);else if(s&&c>=1e3)for(;s--&&e===L;)t=Math.pow(1e3,s+1),c>=t&&null!==o[s]&&(e=ot.numberFormat(n/t,-1)+o[s]);return e===L&&(e=At(n)>=1e4?ot.numberFormat(n,0):ot.numberFormat(n,-1,L,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.ignoreMinPadding=t.ignoreMaxPadding=null,t.buildStacks&&t.buildStacks(),ce(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var n,a,r,o=i.options,s=o.threshold;t.hasVisibleSeries=!0,t.isLog&&0>=s&&(s=null),t.isXAxis?(n=i.xData,n.length&&(t.dataMin=ft(ie(t.dataMin,n[0]),x(n)),t.dataMax=pt(ie(t.dataMax,n[0]),k(n)))):(i.getExtremes(),r=i.dataMax,a=i.dataMin,c(a)&&c(r)&&(t.dataMin=ft(ie(t.dataMin,a),a),t.dataMax=pt(ie(t.dataMax,r),r)),c(s)&&(t.dataMin>=s?(t.dataMin=s,t.ignoreMinPadding=!0):t.dataMaxt||t>i)&&(n?t=ft(pt(e,t),i):c=!0),t};return a=ie(a,u.translate(t,null,null,i)),r=s=ut(a+g),o=l=ut(f-a-g),isNaN(a)?c=!0:u.horiz?(o=p,l=f-u.bottom,r=s=m(r,h,h+u.width)):(r=h,s=A-u.right,o=l=m(o,p,p+u.height)),c&&!n?null:d.renderer.crispLine([Vt,r,o,_t,s,l],e||1)},getLinearTickPositions:function(t,e,i){var n,a,o=S(dt(e/t)*t),s=S(ht(i/t)*t),l=[];if(e===i&&r(e))return[e];for(n=o;s>=n&&(l.push(n),n=S(n+t),n!==a);)a=n;return l},getMinorTickPositions:function(){var t,e,i,n=this,a=n.options,r=n.tickPositions,o=n.minorTickInterval,s=[],l=n.min,c=n.max;if((c-l)/oe;e++)s=s.concat(n.getLogTickPositions(o,r[e-1],r[e],!0));else if(n.isDatetimeAxis&&"auto"===a.minorTickInterval)s=s.concat(n.getTimeTicks(n.normalizeTimeTickInterval(o),l,c,a.startOfWeek));else if(n.isDatetimeAxis&&"auto"===a.minorTickInterval)s=s.concat(n.getTimeTicks(n.normalizeTimeTickInterval(o),n.min,n.max,a.startOfWeek));else for(t=n.min+(r[0]-n.min)%o;t<=n.max;t+=o)s.push(t);return n.trimTicks(s),s},adjustForMinRange:function(){var t,e,i,n,a,r,o,s,l=this,u=l.options,d=l.min,h=l.max,p=l.dataMax-l.dataMin>=l.minRange;if(l.isXAxis&&l.minRange===L&&!l.isLog&&(c(u.min)||c(u.max)?l.minRange=null:(ce(l.series,function(t){for(a=t.xData,r=t.xIncrement?1:a.length-1,i=r;i>0;i--)n=a[i]-a[i-1],(e===L||e>n)&&(e=n)}),l.minRange=ft(5*e,l.dataMax-l.dataMin))),h-dh-d&&(o[0]=h-f,o[1]=ie(u.min,h-f),d=k(o))}l.min=d,l.max=h},setAxisTranslation:function(t){var e,n,a=this,r=a.max-a.min,o=a.axisPointRange||0,s=0,l=0,u=a.linkedParent,d=!!a.categories,h=a.transA;(a.isXAxis||d||o)&&(u?(s=u.minPointOffset,l=u.pointRangePadding):ce(a.series,function(t){var n=d?1:a.isXAxis?t.pointRange:a.axisPointRange||0,u=t.options.pointPlacement,h=t.closestPointRange;n>r&&(n=0),o=pt(o,n),a.single||(s=pt(s,i(u)?0:n/2),l=pt(l,"on"===u?0:n)),!t.noSharedTooltip&&c(h)&&(e=c(e)?ft(e,h):h)}),n=a.ordinalSlope&&e?a.ordinalSlope/e:1,a.minPointOffset=s*=n,a.pointRangePadding=l*=n,a.pointRange=ft(o,r),a.closestPointRange=e),t&&(a.oldTransA=h),a.translationSlope=a.transA=h=a.len/(r+l||1),a.transB=a.horiz?a.left:a.bottom,a.minPixelPadding=h*s},setTickInterval:function(t){var e,i,n,a=this,s=a.chart,l=a.options,u=a.isLog,d=a.isDatetimeAxis,h=a.isXAxis,p=a.isLinked,f=l.maxPadding,A=l.minPadding,g=l.tickInterval,m=l.tickPixelInterval,v=a.categories;d||v||p||this.getTickAmount(),p?(a.linkedParent=s[a.coll][l.linkedTo],i=a.linkedParent.getExtremes(),a.min=ie(i.min,i.dataMin),a.max=ie(i.max,i.dataMax),l.type!==a.linkedParent.options.type&&T(11,1)):(a.min=ie(a.userMin,l.min,a.dataMin),a.max=ie(a.userMax,l.max,a.dataMax)),u&&(!t&&ft(a.min,ie(a.dataMin,a.min))<=0&&T(10,1),a.min=S(o(a.min)),a.max=S(o(a.max))),a.range&&c(a.max)&&(a.userMin=a.min=pt(a.min,a.max-a.range),a.userMax=a.max,a.range=null),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),v||a.axisPointRange||a.usePercentage||p||!c(a.min)||!c(a.max)||(e=a.max-a.min,e&&(c(l.min)||c(a.userMin)||!A||!(a.dataMin<0)&&a.ignoreMinPadding||(a.min-=e*A),c(l.max)||c(a.userMax)||!f||!(a.dataMax>0)&&a.ignoreMaxPadding||(a.max+=e*f))),r(l.floor)&&(a.min=pt(a.min,l.floor)),r(l.ceiling)&&(a.max=ft(a.max,l.ceiling)),a.min===a.max||void 0===a.min||void 0===a.max?a.tickInterval=1:p&&!g&&m===a.linkedParent.options.tickPixelInterval?a.tickInterval=a.linkedParent.tickInterval:a.tickInterval=ie(g,this.tickAmount?(a.max-a.min)/pt(this.tickAmount-1,1):void 0,v?1:(a.max-a.min)*m/pt(a.len,m)),h&&!t&&ce(a.series,function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)}),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&(a.tickInterval=pt(a.pointRange,a.tickInterval)),n=ie(l.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!g&&a.tickInterval.5&&a.tickInterval<5&&a.max>1e3&&a.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e,i=this.options,n=i.tickPositions,a=i.tickPositioner,r=i.startOnTick,o=i.endOnTick;this.tickmarkOffset=this.categories&&"between"===i.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i.minorTickInterval&&this.tickInterval?this.tickInterval/5:i.minorTickInterval,this.tickPositions=t=i.tickPositions&&i.tickPositions.slice(),t||(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickPositions=t,a&&(a=a.apply(this,[this.min,this.max]),a&&(this.tickPositions=t=a))),this.isLinked||(this.trimTicks(t,r,o),this.min===this.max&&c(this.min)&&!this.tickAmount&&(e=!0,this.min-=.5,this.max+=.5),this.single=e,n||a||this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],a=t[t.length-1],r=this.minPointOffset||0;e?this.min=n:this.min-r>n&&t.shift(),i?this.max=a:this.max+rn&&(this.finalTickAmt=n,n=5),this.tickAmount=n},adjustTickAmount:function(){var t,e,i=this.tickInterval,n=this.tickPositions,a=this.tickAmount,r=this.finalTickAmt,o=n&&n.length;if(a>o){for(;n.lengtha&&(this.tickInterval*=2,this.setTickPositions());if(c(r)){for(t=e=n.length;t--;)(3===r&&t%2===1||2>=r&&t>0&&e-1>t)&&n.splice(t,1);this.finalTickAmt=L}},setScale:function(){var t,e,i,n,a=this,r=a.stacks;if(a.oldMin=a.min,a.oldMax=a.max,a.oldAxisLength=a.len,a.setAxisSize(),n=a.len!==a.oldAxisLength,ce(a.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(i=!0)}),n||i||a.isLinked||a.forceRedraw||a.userMin!==a.oldUserMin||a.userMax!==a.oldUserMax){if(!a.isXAxis)for(t in r)for(e in r[t])r[t][e].total=null,r[t][e].cum=0;a.forceRedraw=!1,a.getSeriesExtremes(),a.setTickInterval(),a.oldUserMin=a.userMin,a.oldUserMax=a.userMax,a.isDirty||(a.isDirty=n||a.min!==a.oldMin||a.max!==a.oldMax)}else if(!a.isXAxis){a.oldStacks&&(r=a.stacks=a.oldStacks);for(t in r)for(e in r[t])r[t][e].cum=r[t][e].total}},setExtremes:function(t,e,i,n,a){var r=this,o=r.chart;i=ie(i,!0),ce(r.series,function(t){delete t.kdTree}),a=ee(a,{min:t,max:e}),Ae(r,"setExtremes",a,function(){r.userMin=t,r.userMax=e,r.eventArgs=a,r.isDirtyExtremes=!0,i&&o.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,a=this.options;return this.allowZoomOutside||(c(i)&&t<=ft(i,ie(a.min,i))&&(t=L),c(n)&&e>=pt(n,ie(a.max,n))&&(e=L)),this.displayBtn=t!==L||e!==L,this.setExtremes(t,e,!1,L,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsetLeft||0,n=e.offsetRight||0,a=this.horiz,r=ie(e.width,t.plotWidth-i+n),o=ie(e.height,t.plotHeight),s=ie(e.top,t.plotTop),l=ie(e.left,t.plotLeft+i),c=/%$/;c.test(o)&&(o=parseFloat(o)/100*t.plotHeight), c.test(s)&&(s=parseFloat(s)/100*t.plotHeight+t.plotTop),this.left=l,this.top=s,this.width=r,this.height=o,this.bottom=t.chartHeight-o-s,this.right=t.chartWidth-r-l,this.len=pt(a?r:o,0),this.pos=a?l:s},getExtremes:function(){var t=this,e=t.isLog;return{min:e?S(s(t.min)):t.min,max:e?S(s(t.max)):t.max,dataMin:t.dataMin,dataMax:t.dataMax,userMin:t.userMin,userMax:t.userMax}},getThreshold:function(t){var e=this,i=e.isLog,n=i?s(e.min):e.min,a=i?s(e.max):e.max;return n>t||null===t?t=n:t>a&&(t=a),e.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e,i=(ie(t,0)-90*this.side+720)%360;return e=i>15&&165>i?"right":i>195&&345>i?"left":"center"},unsquish:function(){var t,e,i,n=this.chart,a=this.ticks,r=this.options.labels,o=this.horiz,s=this.tickInterval,l=s,u=this.len/(((this.categories?1:0)+this.max-this.min)/s),d=r.rotation,h=n.renderer.fontMetrics(r.style.fontSize,a[0]&&a[0].label),p=Number.MAX_VALUE,f=function(t){var e=t/(u||1);return e=e>1?ht(e):1,e*s};return o?(i=c(d)?[d]:80>u&&!r.staggerLines&&!r.step&&r.autoRotation,i&&ce(i,function(i){var n;i&&i>=-90&&90>=i&&(e=f(At(h.h/mt(yt*i))),n=e+At(i/360),p>n&&(p=n,t=i,l=e))})):l=f(h.h),this.autoRotation=i,this.labelRotation=t,l},renderUnsquish:function(){var e,n,a,r,o=this.chart,s=o.renderer,l=this.tickPositions,c=this.ticks,u=this.options.labels,d=this.horiz,h=o.margin,p=this.slotWidth=d&&!u.step&&!u.rotation&&(this.staggerLines||1)*o.plotWidth/l.length||!d&&(h[3]&&h[3]-o.spacing[3]||.33*o.chartWidth),f=pt(1,ut(p-2*(u.padding||5))),A={},g=s.fontMetrics(u.style.fontSize,c[0]&&c[0].label),m=0;if(i(u.rotation)||(A.rotation=u.rotation),this.autoRotation)ce(l,function(t){t=c[t],t&&t.labelLength>m&&(m=t.labelLength)}),m>f&&m>g.h?A.rotation=this.labelRotation:this.labelRotation=0;else if(p)for(e={width:f+Wt,textOverflow:"clip"},a=l.length;!d&&a--;)r=l[a],n=c[r].label,n&&this.len/l.length-4.5*o.chartHeight?.33*o.chartHeight:o.chartHeight)+Wt,textOverflow:"ellipsis"}),this.labelAlign=A.align=u.align||this.autoLabelAlign(this.labelRotation),ce(l,function(i){var n=c[i],a=n&&n.label;a&&(e&&a.css(t(e,a.specCss)),delete a.specCss,a.attr(A),n.rotation=A.rotation)}),this.tickRotCorr=s.rotCorr(g.b,this.labelRotation||0,2===this.side)},getOffset:function(){var t,e,i,n,a,r,o=this,s=o.chart,l=s.renderer,u=o.options,d=o.tickPositions,h=o.ticks,p=o.horiz,f=o.side,A=s.inverted?[1,0,3,2][f]:f,g=0,m=0,v=u.title,y=u.labels,b=0,w=s.axisOffset,x=s.clipOffset,k=[-1,1,1,-1][f];if(o.hasData=t=o.hasVisibleSeries||c(o.min)&&c(o.max)&&!!d,o.showAxis=e=t||ie(u.showEmpty,!0),o.staggerLines=o.horiz&&y.staggerLines,o.axisGroup||(o.gridGroup=l.g("grid").attr({zIndex:u.gridZIndex||1}).add(),o.axisGroup=l.g("axis").attr({zIndex:u.zIndex||2}).add(),o.labelGroup=l.g("axis-labels").attr({zIndex:y.zIndex||7}).addClass(Gt+o.coll.toLowerCase()+"-labels").add()),t||o.isLinked)ce(d,function(t){h[t]?h[t].addLabel():h[t]=new P(o,t)}),o.renderUnsquish(),ce(d,function(t){(0===f||2===f||{1:"left",3:"right"}[f]===o.labelAlign)&&(b=pt(h[t].getLabelSize(),b))}),o.staggerLines&&(b*=o.staggerLines,o.labelOffset=b);else for(a in h)h[a].destroy(),delete h[a];v&&v.text&&v.enabled!==!1&&(o.axisTitle||(o.axisTitle=l.text(v.text,0,0,v.useHTML).attr({zIndex:7,rotation:v.rotation||0,align:v.textAlign||{low:"left",middle:"center",high:"right"}[v.align]}).addClass(Gt+this.coll.toLowerCase()+"-title").css(v.style).add(o.axisGroup),o.axisTitle.isNew=!0),e&&(g=o.axisTitle.getBBox()[p?"height":"width"],i=v.offset,m=c(i)?0:ie(v.margin,p?5:10)),o.axisTitle[e?"show":"hide"]()),o.offset=k*ie(u.offset,w[f]),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=2===f?o.tickRotCorr.y:0,n=b+m+(b&&k*(p?ie(y.y,o.tickRotCorr.y+8):y.x)-r),o.axisTitleMargin=ie(i,n),w[f]=pt(w[f],o.axisTitleMargin+g+k*o.offset,n),x[A]=pt(x[A],2*dt(u.lineWidth/2))},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,a=this.horiz,r=this.left+(i?this.width:0)+n,o=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine([Vt,a?this.left:r,a?o:this.top,_t,a?e.chartWidth-this.right:r,a?o:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,i=this.left,n=this.top,a=this.len,r=this.options.title,o=t?i:n,s=this.opposite,l=this.offset,c=e(r.style.fontSize||12),u={low:o+(t?0:a),middle:o+a/2,high:o+(t?a:0)}[r.align],d=(t?n+this.height:i)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?c:0);return{x:t?u:d+(s?this.width:0)+l+(r.x||0),y:t?d-(s?this.height:0)+l:u+(r.y||0)}},render:function(){var t,e,i,n=this,a=n.chart,r=a.renderer,o=n.options,l=n.isLog,u=n.isLinked,d=n.tickPositions,h=n.axisTitle,p=n.ticks,f=n.minorTicks,A=n.alternateBands,g=o.stackLabels,m=o.alternateGridColor,v=n.tickmarkOffset,y=o.lineWidth,b=a.hasRendered,w=b&&c(n.oldMin)&&!isNaN(n.oldMin),x=n.hasData,k=n.showAxis;n.labelEdge.length=0,n.overlap=!1,ce([p,f,A],function(t){var e;for(e in t)t[e].isActive=!1}),(x||u)&&(n.minorTickInterval&&!n.categories&&ce(n.getMinorTickPositions(),function(t){f[t]||(f[t]=new P(n,t,"minor")),w&&f[t].isNew&&f[t].render(null,!0),f[t].render(null,!1,1)}),d.length&&(ce(d,function(t,e){(!u||t>=n.min&&t<=n.max)&&(p[t]||(p[t]=new P(n,t)),w&&p[t].isNew&&p[t].render(e,!0,.1),p[t].render(e))}),v&&(0===n.min||n.single)&&(p[-1]||(p[-1]=new P(n,-1,null,!0)),p[-1].render(-1))),m&&ce(d,function(t,a){a%2===0&&t=H.second?0:h*dt(u.getMilliseconds()/h)),d>=H.second&&u.setSeconds(d>=H.minute?0:h*dt(u.getSeconds()/h)),d>=H.minute&&u[et](d>=H.hour?0:h*dt(u[K]()/h)),d>=H.hour&&u[it](d>=H.day?0:h*dt(u[X]()/h)),d>=H.day&&u[nt](d>=H.month?1:h*dt(u[q]()/h)),d>=H.month&&(u[at](d>=H.year?0:h*dt(u[$]()/h)),r=u[tt]()),d>=H.year&&(r-=r%h,u[rt](r)),d===H.week&&u[nt](u[q]()-u[Z]()+ie(n,1)),a=1,(_||J)&&(u=u.getTime(),u=new z(u+g(u))),r=u[tt]();for(var p=u.getTime(),f=u[$](),A=u[q](),m=(H.day+(l?g(u):60*u.getTimezoneOffset()*1e3))%H.day;i>p;)o.push(p),d===H.year?p=V(r+a*h,0):d===H.month?p=V(r,f+a*h):l||d!==H.day&&d!==H.week?p+=d*h:p=V(r,f,A+a*h*(d===H.day?1:7)),a++;o.push(p),ce(ue(o,function(t){return d<=H.hour&&t%H.day===m}),function(t){s[t]="day"})}return o.info=ee(t,{higherRanks:s,totalRange:d*h}),o},je.prototype.normalizeTimeTickInterval=function(t,e){var i,n,a=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]],r=a[a.length-1],o=H[r[0]],s=r[1];for(n=0;n=t)break}return o===H.year&&5*o>t&&(s=[1,2,5]),i=b(t/o,s,"year"===r[0]?pt(y(t/o),1):1),{unitRange:o,count:i,unitName:r[0]}},je.prototype.getLogTickPositions=function(t,e,i,n){var a=this,r=a.options,l=a.len,c=[];if(n||(a._minorAutoInterval=null),t>=.5)t=ut(t),c=a.getLinearTickPositions(t,e,i);else if(t>=.08){var u,d,h,p,f,A,g,m=dt(e);for(u=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=m;i+1>d&&!g;d++)for(p=u.length,h=0;p>h&&!g;h++)f=o(s(d)*u[h]),f>e&&(!n||i>=A)&&A!==L&&c.push(A),A>i&&(g=!0),A=f}else{var v=s(e),w=s(i),x=r[n?"minorTickInterval":"tickInterval"],k="auto"===x?null:x,C=r.tickPixelInterval/(n?5:1),E=n?l/a.tickPositions.length:l;t=ie(k,a._minorAutoInterval,(w-v)*C/(E||1)),t=b(t,null,y(t)),c=he(a.getLinearTickPositions(t,v,w),o),n||(a._minorAutoInterval=t/5)}return n||(a.tickInterval=t),c};var Be=ot.Tooltip=function(){this.init.apply(this,arguments)};Be.prototype={init:function(t,i){var n=i.borderWidth,a=i.style,r=e(a.padding);this.chart=t,this.options=i,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,i.shape||"callout",null,null,i.useHTML,null,"tooltip").attr({padding:r,fill:i.backgroundColor,"stroke-width":n,r:i.borderRadius,zIndex:8}).css(a).css({padding:0}).add().attr({y:-9999}),It||this.label.shadow(i.shadow),this.shared=i.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var a=this,r=a.now,o=a.options.animation!==!1&&!a.isHidden&&(At(t-r.x)>1||At(e-r.y)>1),s=a.followPointer||a.len>1;ee(r,{x:o?(2*r.x+t)/3:t,y:o?(r.y+e)/2:e,anchorX:s?L:o?(2*r.anchorX+i)/3:i,anchorY:s?L:o?(r.anchorY+n)/2:n}),a.label.attr(r),o&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){a&&a.move(t,e,i,n)},32))},hide:function(t){var e,i=this;clearTimeout(this.hideTimer),this.isHidden||(e=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){i.label.fadeOut(),i.isHidden=!0},ie(t,this.options.hideDelay,500)),e&&ce(e,function(t){t.setState()}),this.chart.hoverPoints=null,this.chart.hoverSeries=null)},getAnchor:function(t,e){var i,n,a,r=this.chart,o=r.inverted,s=r.plotTop,l=r.plotLeft,c=0,u=0;return t=d(t),i=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===L&&(e=r.pointer.normalize(e)),i=[e.chartX-r.plotLeft,e.chartY-s]),i||(ce(t,function(t){n=t.series.yAxis,a=t.series.xAxis,c+=t.plotX+(!o&&a?a.left-l:0),u+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!o&&n?n.top-s:0)}),c/=t.length,u/=t.length,i=[o?r.plotWidth-u:c,this.shared&&!o&&t.length>1&&e?e.chartY-s:o?r.plotHeight-c:u]),he(i,ut)},getPosition:function(t,e,i){var n,a=this.chart,r=this.distance,o={},s=["y",a.chartHeight,e,i.plotY+a.plotTop],l=["x",a.chartWidth,t,i.plotX+a.plotLeft],c=ie(i.ttBelow,a.inverted&&!i.negative||!a.inverted&&i.negative),u=function(t,e,i,n){var a=n-r>i,s=e>n+r+i,l=n-r-i,u=n+r;if(c&&s)o[t]=u;else if(!c&&a)o[t]=l;else if(a)o[t]=l;else{if(!s)return!1;o[t]=u}},d=function(t,e,i,n){return r>n||n>e-r?!1:void(i/2>n?o[t]=1:n>e-i/2?o[t]=e-i-2:o[t]=n-i/2)},h=function(t){var e=s;s=l,l=e,n=t},p=function(){u.apply(0,s)!==!1?d.apply(0,l)!==!1||n||(h(!0),p()):n?o.x=o.y=0:(h(!0),p())};return(a.inverted||this.len>1)&&h(),p(),o},defaultFormatter:function(t){var e,i=this.points||d(this);return e=[t.tooltipFooterHeaderFormatter(i[0])],e=e.concat(t.bodyFormatter(i)),e.push(t.tooltipFooterHeaderFormatter(i[0],!0)),e.join("")},refresh:function(t,e){var i,n,a,r,o,s,l=this,c=l.chart,u=l.label,h=l.options,p={},f=[],A=h.formatter||l.defaultFormatter,g=c.hoverPoints,m=l.shared;clearTimeout(this.hideTimer),l.followPointer=d(t)[0].series.tooltipOptions.followPointer,a=l.getAnchor(t,e),i=a[0],n=a[1],!m||t.series&&t.series.noSharedTooltip?p=t.getLabelConfig():(c.hoverPoints=t,g&&ce(g,function(t){t.setState()}),ce(t,function(t){t.setState(Xt),f.push(t.getLabelConfig())}),p={x:t[0].category,y:t[0].y},p.points=f,this.len=f.length,t=t[0]),r=A.call(p,l),s=t.series,this.distance=ie(s.tooltipOptions.distance,16),r===!1?this.hide():(l.isHidden&&(ve(u),u.attr("opacity",1).show()),u.attr({text:r}),o=h.borderColor||t.color||s.color||"#606060",u.attr({stroke:o}),l.updatePosition({plotX:i,plotY:n,negative:t.negative,ttBelow:t.ttBelow}),this.isHidden=!1),Ae(c,"tooltipRefresh",{text:r,x:i+c.plotLeft,y:n+c.plotTop,borderColor:o})},updatePosition:function(t){var e=this.chart,i=this.label,n=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(ut(n.x),ut(n.y),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getXDateFormat:function(t,e,i){var n,a,r,o,s=e.dateTimeLabelFormats,l=i&&i.closestPointRange,c="01-01 00:00:00.000",u={millisecond:15,second:12,minute:9,hour:6,day:3};if(l){r=Y("%m-%d %H:%M:%S.%L",t.x);for(a in H){if(l===H.week&&+Y("%w",t.x)===i.options.startOfWeek&&r.substr(6)===c.substr(6)){a="week";break}if(H[a]>l){a=o;break}if(u[a]&&r.substr(u[a])!==c.substr(u[a]))break;"week"!==a&&(o=a)}a&&(n=s[a])}else n=s.day;return n||s.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=t.series,a=n.tooltipOptions,o=a.xDateFormat,s=n.xAxis,l=s&&"datetime"===s.options.type&&r(t.key),c=a[i+"Format"];return l&&!o&&(o=this.getXDateFormat(t,a,s)),l&&o&&(c=c.replace("{point.key}","{point.key:"+o+"}")),v(c,{point:t,series:n})},bodyFormatter:function(t){return he(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}};var Pe;N=st.documentElement.ontouchstart!==L;var Re=ot.Pointer=function(t,e){this.init(t,e)};if(Re.prototype={init:function(t,e){var i,n,a=e.chart,r=a.events,o=It?"":a.zoomType,s=t.inverted;this.options=e,this.chart=t,this.zoomX=i=/x/.test(o),this.zoomY=n=/y/.test(o),this.zoomHor=i&&!s||n&&s,this.zoomVert=n&&!s||i&&s,this.hasZoom=i||n,this.runChartClick=r&&!!r.click,this.pinchDown=[],this.lastValidTouch={},ot.Tooltip&&e.tooltip.enabled&&(t.tooltip=new Be(t,e.tooltip),this.followTouchMove=ie(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,e){var i,n,a;return t=t||window.event,t=ge(t),t.target||(t.target=t.srcElement),a=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=de(this.chart.container)),a.pageX===L?(i=pt(t.x,t.clientX-e.left),n=t.y):(i=a.pageX-e.left,n=a.pageY-e.top),ee(t,{chartX:ut(i),chartY:ut(n)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return ce(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},runPointActions:function(t){var e,i,n,a,r,o,s,l,u=this,d=u.chart,h=d.series,p=d.tooltip,f=p?p.shared:!1,A=d.hoverPoint,g=d.hoverSeries,m=d.chartWidth,v=d.chartWidth,y=[];if(!f&&!g)for(i=0;i1)&&t.dist.distRr?r=c:r>c+d&&(r=c+d),u>o?o=u:o>u+h&&(o=u+h),this.hasDragged=Math.sqrt(Math.pow(p-r,2)+Math.pow(f-o,2)),this.hasDragged>10&&(e=n.isInsidePlot(p-c,f-u),n.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!A&&(this.selectionMarker||(this.selectionMarker=n.renderer.rect(c,u,s?1:d,l?1:h,0).attr({fill:a.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add())),this.selectionMarker&&s&&(i=r-p,this.selectionMarker.attr({width:At(i),x:(i>0?0:i)+p})),this.selectionMarker&&l&&(i=o-f,this.selectionMarker.attr({height:At(i),y:(i>0?0:i)+f})),e&&!this.selectionMarker&&a.panning&&n.pan(t,a.panning))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var a,r={xAxis:[],yAxis:[],originalEvent:t.originalEvent||t},o=this.selectionMarker,s=o.attr?o.attr("x"):o.x,l=o.attr?o.attr("y"):o.y,u=o.attr?o.attr("width"):o.width,d=o.attr?o.attr("height"):o.height;(this.hasDragged||n)&&(ce(i.axes,function(i){if(i.zoomEnabled&&c(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var o=i.horiz,h="touchend"===t.type?i.minPixelPadding:0,p=i.toValue((o?s:l)+h),f=i.toValue((o?s+u:l+d)-h);r[i.coll].push({axis:i,min:ft(p,f),max:pt(p,f)}),a=!0}}),a&&Ae(i,"selection",r,function(t){i.zoom(ee(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(h(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){t=this.normalize(t),t.preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(t){Rt[Pe]&&Rt[Pe].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(){var t=Rt[Pe];t&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;Pe=e.index,t=this.normalize(t),t.returnValue=!1,"mousedown"===e.mouseIsDown&&this.drag(t),!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||e.openMenu||this.runPointActions(t)},inClass:function(t,e){for(var i;t;){if(i=u(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf(Gt+"container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,i=t.relatedTarget||t.toElement,n=i&&i.point&&i.point.series;!e||e.options.stickyTracking||this.inClass(i,Gt+"tooltip")||n===e||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,a=e.plotTop;t=this.normalize(t),t.cancelBubble=!0,e.cancelClick||(i&&this.inClass(t.target,Gt+"tracker")?(Ae(i.series,"click",ee(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(ee(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-a)&&Ae(e,"click",t)))},setDOMEvents:function(){var t=this,e=t.chart.container;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},pe(e,"mouseleave",t.onContainerMouseLeave),1===Lt&&pe(st,"mouseup",t.onDocumentMouseUp),N&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===Lt&&pe(st,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;fe(this.chart.container,"mouseleave",this.onContainerMouseLeave),Lt||(fe(st,"mouseup",this.onDocumentMouseUp),fe(st,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(t in this)this[t]=null}},ee(ot.Pointer.prototype,{pinchTranslate:function(t,e,i,n,a,r){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,i,n,a,r),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,i,n,a,r)},pinchTranslateDirection:function(t,e,i,n,a,r,o,s){var l,c,u,d,h,p,f=this.chart,A=t?"x":"y",g=t?"X":"Y",m="chart"+g,v=t?"width":"height",y=f["plot"+(t?"Left":"Top")],b=s||1,w=f.inverted,x=f.bounds[t?"h":"v"],k=1===e.length,C=e[0][m],E=i[0][m],T=!k&&e[1][m],S=!k&&i[1][m],D=function(){!k&&At(C-T)>20&&(b=s||At(E-S)/At(C-T)),u=(y-E)/b+C,l=f["plot"+(t?"Width":"Height")]/b};D(),c=u,cx.max&&(c=x.max-l,d=!0),d?(E-=.8*(E-o[A][0]),k||(S-=.8*(S-o[A][1])),D()):o[A]=[E,S],w||(r[A]=u-y,r[v]=l),p=w?t?"scaleY":"scaleX":"scale"+g,h=w?1/b:b,a[v]=l,a[A]=c,n[p]=b,n["translate"+g]=h*y+(E-h*C)},pinch:function(t){var e=this,i=e.chart,n=e.pinchDown,a=t.touches,r=a.length,o=e.lastValidTouch,s=e.hasZoom,l=e.selectionMarker,c={},u=1===r&&(e.inClass(t.target,Gt+"tracker")&&i.runTrackerClick||e.runChartClick),d={};s&&!u&&t.preventDefault(),he(a,function(t){return e.normalize(t)}),"touchstart"===t.type?(ce(a,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),o.x=[n[0].chartX,n[1]&&n[1].chartX],o.y=[n[0].chartY,n[1]&&n[1].chartY],ce(i.axes,function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,a=t.toPixels(ie(t.options.min,t.dataMin)),r=t.toPixels(ie(t.options.max,t.dataMax)),o=ft(a,r),s=pt(a,r);e.min=ft(t.pos,o-n),e.max=pt(t.pos+t.len,s+n)}}),e.res=!0):n.length&&(l||(e.selectionMarker=l=ee({destroy:Pt},i.plotBox)),e.pinchTranslate(n,a,c,l,d,o),e.hasPinched=s,e.scaleGroups(c,d),!s&&e.followTouchMove&&1===r?this.runPointActions(e.normalize(t)):e.res&&(e.res=!1,this.reset(!1,0)))},onContainerTouchStart:function(t){var e=this.chart;Pe=e.index,1===t.touches.length?(t=this.normalize(t),e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&!e.openMenu?(this.runPointActions(t),this.pinch(t)):this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchMove:function(t){(1===t.touches.length||2===t.touches.length)&&this.pinch(t)},onDocumentTouchEnd:function(t){Rt[Pe]&&Rt[Pe].pointer.drop(t)}}),lt.PointerEvent||lt.MSPointerEvent){var Le={},Fe=!!lt.PointerEvent,Ne=function(){var t,e=[];e.item=function(t){return this[t]};for(t in Le)Le.hasOwnProperty(t)&&e.push({pageX:Le[t].pageX,pageY:Le[t].pageY,target:Le[t].target});return e},Oe=function(t,e,i,n){var a;t=t.originalEvent||t,"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!Rt[Pe]||(n(t),a=Rt[Pe].pointer,a[e]({type:i,target:t.currentTarget,preventDefault:Pt,touches:Ne()}))};ee(Re.prototype,{onContainerPointerDown:function(t){Oe(t,"onContainerTouchStart","touchstart",function(t){Le[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){Oe(t,"onContainerTouchMove","touchmove",function(t){Le[t.pointerId]={pageX:t.pageX,pageY:t.pageY},Le[t.pointerId].target||(Le[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){Oe(t,"onContainerTouchEnd","touchend",function(t){delete Le[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,Fe?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,Fe?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(st,Fe?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),ne(Re.prototype,"init",function(t,e,i){t.call(this,e,i),(this.hasZoom||this.followTouchMove)&&h(e.container,{"-ms-touch-action":zt,"touch-action":zt})}),ne(Re.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(pe)}),ne(Re.prototype,"destroy",function(t){this.batchMSEvents(fe),t.call(this)})}var Qe=ot.Legend=function(t,e){this.init(t,e)};Qe.prototype={init:function(e,i){var n,a=this,r=i.itemStyle,o=i.itemMarginTop||0;this.options=i,i.enabled&&(a.itemStyle=r,a.itemHiddenStyle=t(r,i.itemHiddenStyle),a.itemMarginTop=o,a.padding=n=ie(i.padding,8),a.initialItemX=n,a.initialItemY=n-5,a.maxItemWidth=0,a.chart=e,a.itemHeight=0,a.symbolWidth=ie(i.symbolWidth,16),a.pages=[],a.render(),pe(a.chart,"endResize",function(){a.positionCheckboxes()}))},colorizeItem:function(t,e){var i,n,a=this,r=a.options,o=t.legendItem,s=t.legendLine,l=t.legendSymbol,c=a.itemHiddenStyle.color,u=e?r.itemStyle.color:c,d=e?t.legendColor||t.color||"#CCC":c,h=t.options&&t.options.marker,p={fill:d};if(o&&o.css({fill:u,color:u}),s&&s.attr({stroke:d}),l){if(h&&l.isMarker){p.stroke=d,h=t.convertAttribs(h);for(i in h)n=h[i],n!==L&&(p[i]=n)}l.attr(p)}},positionItem:function(t){var e=this,i=e.options,n=i.symbolPadding,a=!i.rtl,r=t._legendItemPos,o=r[0],s=r[1],l=t.checkbox;t.legendGroup&&t.legendGroup.translate(a?o:e.legendWidth-o-2*n-4,s),l&&(l.x=o,l.y=s)},destroyItem:function(t){var e=t.checkbox;ce(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&E(t.checkbox)},clearItems:function(){var t=this;ce(t.getAllItems(),function(e){t.destroyItem(e)})},destroy:function(){var t=this,e=t.group,i=t.box;i&&(t.box=i.destroy()),e&&(t.group=e.destroy())},positionCheckboxes:function(t){var e,i=this.group.alignAttr,n=this.clipHeight||this.legendHeight;i&&(e=i.translateY,ce(this.allItems,function(a){var r,o=a.checkbox;o&&(r=e+o.y+(t||0)+3,h(o,{left:i.translateX+a.checkboxOffset+o.x-20+Wt,top:r+Wt,display:r>e-6&&e+n-6>r?"":zt}))}))},renderTitle:function(){var t,e=this.options,i=this.padding,n=e.title,a=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,i-3,i-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(n.style).add(this.group)),t=this.title.getBBox(),a=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:a})),this.titleHeight=a},renderItem:function(e){var i,n,a,r=this,o=r.chart,s=o.renderer,l=r.options,c="horizontal"===l.layout,u=r.symbolWidth,d=l.symbolPadding,h=r.itemStyle,p=r.itemHiddenStyle,f=r.padding,A=c?ie(l.itemDistance,20):0,g=!l.rtl,m=l.width,y=l.itemMarginBottom||0,b=r.itemMarginTop,w=r.initialItemX,x=e.legendItem,k=e.series&&e.series.drawLegendSymbol?e.series:e,C=k.options,E=r.createCheckboxForItem&&C&&C.showCheckbox,T=l.useHTML;x||(e.legendGroup=s.g("legend-item").attr({zIndex:1}).add(r.scrollGroup),e.legendItem=x=s.text(l.labelFormat?v(l.labelFormat,e):l.labelFormatter.call(e),g?u+d:-d,r.baseline||0,T).css(t(e.visible?h:p)).attr({align:g?"left":"right",zIndex:2}).add(e.legendGroup),r.baseline||(r.baseline=s.fontMetrics(h.fontSize,x).f+3+b,x.attr("y",r.baseline)),k.drawLegendSymbol(r,e),r.setItemEvents&&r.setItemEvents(e,x,T,h,p),r.colorizeItem(e,e.visible),E&&r.createCheckboxForItem(e)),n=x.getBBox(),a=e.checkboxOffset=l.itemWidth||e.legendItemWidth||u+d+n.width+A+(E?20:0),r.itemHeight=i=ut(e.legendItemHeight||n.height),c&&r.itemX-w+a>(m||o.chartWidth-2*f-w-l.x)&&(r.itemX=w,r.itemY+=b+r.lastLineHeight+y),r.maxItemWidth=pt(r.maxItemWidth,a),r.lastItemY=b+r.itemY+y,r.lastLineHeight=pt(i,r.lastLineHeight),e._legendItemPos=[r.itemX,r.itemY],c?r.itemX+=a:(r.itemY+=b+i+y,r.lastLineHeight=i),r.offsetWidth=m||pt((c?r.itemX-w-A:a)+f,r.offsetWidth)},getAllItems:function(){var t=[];return ce(this.chart.series,function(e){var i=e.options;ie(i.showInLegend,c(i.linkedTo)?!1:L,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,a=n.align[0]+n.verticalAlign[0]+n.layout[0];this.display&&!n.floating&&ce([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(r,o){r.test(a)&&!c(t[o])&&(i[qt[o]]=pt(i[qt[o]],i.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*n[o%2?"x":"y"]+ie(n.margin,12)+e[o]))})},render:function(){var t,e,i,n,a=this,r=a.chart,o=r.renderer,s=a.group,l=a.box,c=a.options,u=a.padding,d=c.borderWidth,h=c.backgroundColor;a.itemX=a.initialItemX,a.itemY=a.initialItemY,a.offsetWidth=0,a.lastItemY=0,s||(a.group=s=o.g("legend").attr({zIndex:7}).add(),a.contentGroup=o.g().attr({zIndex:1}).add(s),a.scrollGroup=o.g().add(a.contentGroup)),a.renderTitle(),t=a.getAllItems(),w(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&t.reverse(),a.allItems=t,a.display=e=!!t.length,a.lastLineHeight=0,ce(t,function(t){a.renderItem(t)}),i=(c.width||a.offsetWidth)+u,n=a.lastItemY+a.lastLineHeight+a.titleHeight,n=a.handleOverflow(n),n+=u,(d||h)&&(l?i>0&&n>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:i,height:n})),l.isNew=!1):(a.box=l=o.rect(0,0,i,n,c.borderRadius,d||0).attr({stroke:c.borderColor,"stroke-width":d||0,fill:h||zt}).add(s).shadow(c.shadow),l.isNew=!0),l[e?"show":"hide"]()),a.legendWidth=i,a.legendHeight=n,ce(t,function(t){a.positionItem(t)}),e&&s.align(ee({width:i,height:n},c),!0,"spacingBox"),r.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,a=this.chart,r=a.renderer,o=this.options,s=o.y,l="top"===o.verticalAlign,c=a.spacingBox.height+(l?-s:s)-this.padding,u=o.maxHeight,d=this.clipRect,h=o.navigation,p=ie(h.animation,!0),f=h.arrowSize||12,A=this.nav,g=this.pages,m=this.allItems;return"horizontal"===o.layout&&(c/=2),u&&(c=ft(c,u)),g.length=0,t>c&&!o.useHTML?(this.clipHeight=e=pt(c-20-this.titleHeight-this.padding,0),this.currentPage=ie(this.currentPage,1),this.fullHeight=t,ce(m,function(t,n){var a=t._legendItemPos[1],r=ut(t.legendItem.getBBox().height),o=g.length;(!o||a-g[o-1]>e&&(i||a)!==g[o-1])&&(g.push(i||a),o++),n===m.length-1&&a+r-g[o-1]>e&&g.push(a),a!==i&&(i=a)}),d||(d=n.clipRect=r.clipRect(0,this.padding,9999,0),n.contentGroup.clip(d)),d.attr({height:e}),A||(this.nav=A=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,f,f).on("click",function(){n.scroll(-1,p)}).add(A),this.pager=r.text("",15,10).css(h.style).add(A),this.down=r.symbol("triangle-down",0,0,f,f).on("click",function(){n.scroll(1,p)}).add(A)),n.scroll(0),t=c):A&&(d.attr({height:a.chartHeight}),A.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i,n=this.pages,a=n.length,r=this.currentPage+t,o=this.clipHeight,s=this.options.navigation,l=s.activeColor,c=s.inactiveColor,u=this.pager,d=this.padding;r>a&&(r=a),r>0&&(e!==L&&D(e,this.chart),this.nav.attr({translateX:d,translateY:o+this.padding+7+this.titleHeight,visibility:Ht}),this.up.attr({fill:1===r?c:l}).css({cursor:1===r?"default":"pointer"}),u.attr({text:r+"/"+a}),this.down.attr({x:18+this.pager.getBBox().width,fill:r===a?c:l}).css({cursor:r===a?"default":"pointer"}),i=-n[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:i}),this.currentPage=r,this.positionCheckboxes(i)); }};var Ye=ot.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.options.symbolHeight||12;e.legendSymbol=this.chart.renderer.rect(0,t.baseline-5-i/2,t.symbolWidth,i,t.options.symbolRadius||0).attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i,n,a=this.options,r=a.marker,o=t.options,s=t.symbolWidth,l=this.chart.renderer,c=this.legendGroup,u=t.baseline-ut(.3*l.fontMetrics(o.itemStyle.fontSize,this.legendItem).b);a.lineWidth&&(n={"stroke-width":a.lineWidth},a.dashStyle&&(n.dashstyle=a.dashStyle),this.legendLine=l.path([Vt,0,u,_t,s,u]).attr(n).add(c)),r&&r.enabled!==!1&&(e=r.radius,this.legendSymbol=i=l.symbol(this.symbol,s/2-e,u-e,2*e,2*e).add(c),i.isMarker=!0)}};(/Trident\/7\.0/.test(bt)||Et)&&ne(Qe.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)});var Ue=ot.Chart=function(){this.init.apply(this,arguments)};Ue.prototype={callbacks:[],init:function(e,i){var n,a=e.series;e.series=null,n=t(Q,e),n.series=e.series=a,this.userOptions=e;var r=n.chart;this.margin=this.splashArray("margin",r),this.spacing=this.splashArray("spacing",r);var o=r.events;this.bounds={h:{},v:{}},this.callback=i,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=r.showAxes;var s,l=this;if(l.index=Rt.length,Rt.push(l),Lt++,r.reflow!==!1&&pe(l,"load",function(){l.initReflow()}),o)for(s in o)pe(l,s,o[s]);l.xAxis=[],l.yAxis=[],l.animation=It?!1:ie(r.animation,!0),l.pointCount=l.colorCounter=l.symbolCounter=0,l.firstRender()},initSeries:function(t){var e,i=this,n=i.options.chart,a=t.type||n.type||n.defaultSeriesType,r=te[a];return r||T(17,!0),e=new r,e.init(this,t),e},isInsidePlot:function(t,e,i){var n=i?e:t,a=i?t:e;return n>=0&&n<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(t){var e,i,n,a=this,r=a.axes,o=a.series,s=a.pointer,l=a.legend,c=a.isDirtyLegend,u=a.hasCartesianSeries,d=a.isDirtyBox,h=o.length,p=h,f=a.renderer,A=f.isHidden(),g=[];for(D(t,a),A&&a.cloneRenderTo(),a.layOutTitles();p--;)if(n=o[p],n.options.stacking&&(e=!0,n.isDirty)){i=!0;break}if(i)for(p=h;p--;)n=o[p],n.options.stacking&&(n.isDirty=!0);ce(o,function(t){t.isDirty&&"point"===t.options.legendType&&(c=!0)}),c&&l.options.enabled&&(l.render(),a.isDirtyLegend=!1),e&&a.getStacks(),u&&(a.isResizing||(a.maxTicks=null,ce(r,function(t){t.setScale()}))),a.getMargins(),u&&(ce(r,function(t){t.isDirty&&(d=!0)}),ce(r,function(t){t.isDirtyExtremes&&(t.isDirtyExtremes=!1,g.push(function(){Ae(t,"afterSetExtremes",ee(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(d||e)&&t.redraw()})),d&&a.drawChartBox(),ce(o,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),s&&s.reset(!0),f.draw(),Ae(a,"redraw"),A&&a.cloneRenderTo(!0),ce(g,function(t){t.call()})},get:function(t){var e,i,n,a=this,r=a.axes,o=a.series;for(e=0;e19?t.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),E(e),delete this.renderToClone):(i&&i.parentNode===this.renderTo&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),h(e,{position:Qt,top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),st.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var t,n,a,r,o,s,l=this,c=l.options.chart,d="data-highcharts-chart";l.renderTo=r=c.renderTo,s=Gt+Bt++,i(r)&&(l.renderTo=r=st.getElementById(r)),r||T(13,!0),o=e(u(r,d)),!isNaN(o)&&Rt[o]&&Rt[o].hasRendered&&Rt[o].destroy(),u(r,d,l.index),r.innerHTML="",c.skipClone||r.offsetWidth||l.cloneRenderTo(),l.getChartSize(),n=l.chartWidth,a=l.chartHeight,l.container=t=p(Ot,{className:Gt+"container"+(c.className?" "+c.className:""),id:s},ee({position:Yt,overflow:Ut,width:n+Wt,height:a+Wt,textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style),l.renderToClone||r),l._cursor=t.style.cursor,l.renderer=c.forExport?new Ee(t,n,a,c.style,!0):new F(t,n,a,c.style),It&&l.renderer.create(l,t,n,a),l.renderer.chartIndex=l.index},getMargins:function(t){var e=this,i=e.spacing,n=e.margin,a=e.titleOffset;e.resetMargins(),a&&!c(n[0])&&(e.plotTop=pt(e.plotTop,a+e.options.title.margin+i[0])),e.legend.adjustMargins(n,i),e.extraBottomMargin&&(e.marginBottom+=e.extraBottomMargin),e.extraTopMargin&&(e.plotTop+=e.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.margin;t.hasCartesianSeries&&ce(t.axes,function(t){t.getOffset()}),ce(qt,function(n,a){c(i[a])||(t[n]+=e[a])}),t.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,a=i.width||oe(n,"width"),r=i.height||oe(n,"height"),o=t?t.target:lt,s=function(){e.container&&(e.setSize(a,r,!1),e.hasUserSize=null)};e.hasUserSize||!a||!r||o!==lt&&o!==st||((a!==e.containerWidth||r!==e.containerHeight)&&(clearTimeout(e.reflowTimeout),t?e.reflowTimeout=setTimeout(s,100):s()),e.containerWidth=a,e.containerHeight=r)},initReflow:function(){var t=this,e=function(e){t.reflow(e)};pe(lt,"resize",e),pe(t,"destroy",function(){fe(lt,"resize",e)})},setSize:function(t,e,i){var n,a,r,o=this;o.isResizing+=1,r=function(){o&&Ae(o,"endResize",null,function(){o.isResizing-=1})},D(i,o),o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,c(t)&&(o.chartWidth=n=pt(0,ut(t)),o.hasUserSize=!!n),c(e)&&(o.chartHeight=a=pt(0,ut(e))),(U?me:h)(o.container,{width:n+Wt,height:a+Wt},U),o.setChartSize(!0),o.renderer.setSize(n,a,i),o.maxTicks=null,ce(o.axes,function(t){t.isDirty=!0,t.setScale()}),ce(o.series,function(t){t.isDirty=!0}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,Ae(o,"resize"),U===!1?r():setTimeout(r,U&&U.duration||500)},setChartSize:function(t){var e,i,n,a,r,o,s,l=this,c=l.inverted,u=l.renderer,d=l.chartWidth,h=l.chartHeight,p=l.options.chart,f=l.spacing,A=l.clipOffset;l.plotLeft=n=ut(l.plotLeft),l.plotTop=a=ut(l.plotTop),l.plotWidth=r=pt(0,ut(d-n-l.marginRight)),l.plotHeight=o=pt(0,ut(h-a-l.marginBottom)),l.plotSizeX=c?o:r,l.plotSizeY=c?r:o,l.plotBorderWidth=p.plotBorderWidth||0,l.spacingBox=u.spacingBox={x:f[3],y:f[0],width:d-f[3]-f[1],height:h-f[0]-f[2]},l.plotBox=u.plotBox={x:n,y:a,width:r,height:o},s=2*dt(l.plotBorderWidth/2),e=ht(pt(s,A[3])/2),i=ht(pt(s,A[0])/2),l.clipBox={x:e,y:i,width:dt(l.plotSizeX-pt(s,A[1])/2-e),height:pt(0,dt(l.plotSizeY-pt(s,A[2])/2-i))},t||ce(l.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this;ce(qt,function(e,i){t[e]=ie(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e,i=this,n=i.options.chart,a=i.renderer,r=i.chartWidth,o=i.chartHeight,s=i.chartBackground,l=i.plotBackground,c=i.plotBorder,u=i.plotBGImage,d=n.borderWidth||0,h=n.backgroundColor,p=n.plotBackgroundColor,f=n.plotBackgroundImage,A=n.plotBorderWidth||0,g=i.plotLeft,m=i.plotTop,v=i.plotWidth,y=i.plotHeight,b=i.plotBox,w=i.clipRect,x=i.clipBox;t=d+(n.shadow?8:0),(d||h)&&(s?s.animate(s.crisp({width:r-t,height:o-t})):(e={fill:h||zt},d&&(e.stroke=n.borderColor,e["stroke-width"]=d),i.chartBackground=a.rect(t/2,t/2,r-t,o-t,n.borderRadius,d).attr(e).addClass(Gt+"background").add().shadow(n.shadow))),p&&(l?l.animate(b):i.plotBackground=a.rect(g,m,v,y,0).attr({fill:p}).add().shadow(n.plotShadow)),f&&(u?u.animate(b):i.plotBGImage=a.image(f,g,m,v,y).add()),w?w.animate({width:x.width,height:x.height}):i.clipRect=a.clipRect(x),A&&(c?c.animate(c.crisp({x:g,y:m,width:v,height:y,strokeWidth:-A})):i.plotBorder=a.rect(g,m,v,y,0,-A).attr({stroke:n.plotBorderColor,"stroke-width":A,fill:zt,zIndex:1}).add()),i.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,a=n.options.chart,r=n.options.series;ce(["inverted","angular","polar"],function(o){for(t=te[a.type||a.defaultSeriesType],i=n[o]||a[o]||t&&t.prototype[o],e=r&&r.length;!i&&e--;)t=te[r[e].type],t&&t.prototype[o]&&(i=!0);n[o]=i})},linkSeries:function(){var t=this,e=t.series;ce(e,function(t){t.linkedSeries.length=0}),ce(e,function(e){var n=e.options.linkedTo;i(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n),n&&(n.linkedSeries.push(e),e.linkedParent=n))})},renderSeries:function(){ce(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,i=t.options.labels;i.items&&ce(i.items,function(n){var a=ee(i.style,n.style),r=e(a.left)+t.plotLeft,o=e(a.top)+t.plotTop+12;delete a.left,delete a.top,t.renderer.text(n.html,r,o).attr({zIndex:2}).css(a).add()})},render:function(){var t,e,i,n,a=this,r=a.axes,o=a.renderer,s=a.options;a.setTitle(),a.legend=new Qe(a,s.legend),a.getStacks(),a.getMargins(!0),a.setChartSize(),t=a.plotWidth,e=a.plotHeight=a.plotHeight-13,ce(r,function(t){t.setScale()}),a.getAxisMargins(),i=t/a.plotWidth>1.2,n=e/a.plotHeight>1.1,(i||n)&&(a.maxTicks=null,ce(r,function(t){(t.horiz&&i||!t.horiz&&n)&&t.setTickInterval(!0)}),a.getMargins()),a.drawChartBox(),a.hasCartesianSeries&&ce(r,function(t){t.render()}),a.seriesGroup||(a.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),a.renderSeries(),a.renderLabels(),a.showCredits(s.credits),a.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var t,e=this,i=e.axes,n=e.series,a=e.container,r=a&&a.parentNode;for(Ae(e,"destroy"),Rt[e.index]=L,Lt--,e.renderTo.removeAttribute("data-highcharts-chart"),fe(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();ce(["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","scroller","rangeSelector","legend","resetZoomButton","tooltip","renderer"],function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),a&&(a.innerHTML="",fe(a),r&&E(a));for(t in e)delete e[t]},isReadyToRender:function(){var t=this;return!Dt&<==lt.top&&"complete"!==st.readyState||It&&!lt.canvg?(It?Ie.push(function(){t.firstRender()},t.options.global.canvasToolsURL):st.attachEvent("onreadystatechange",function(){st.detachEvent("onreadystatechange",t.firstRender),"complete"===st.readyState&&t.firstRender()}),!1):!0},firstRender:function(){var t=this,e=t.options,i=t.callback;t.isReadyToRender()&&(t.getContainer(),Ae(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),ce(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),Ae(t,"beforeRender"),ot.Pointer&&(t.pointer=new Re(t,e)),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),ce(t.callbacks,function(e){t.index!==L&&e.apply(t,[t])}),Ae(t,"load"),t.cloneRenderTo(!0))},splashArray:function(t,e){var i=e[t],a=n(i)?i:[i,i,i,i];return[ie(e[t+"Top"],a[0]),ie(e[t+"Right"],a[1]),ie(e[t+"Bottom"],a[2]),ie(e[t+"Left"],a[3])]}};var Ge=ot.CenteredSeriesMixin={getCenter:function(){var t,i,n,a,r=this.options,o=this.chart,s=2*(r.slicedOffset||0),l=o.plotWidth-2*s,c=o.plotHeight-2*s,u=r.center,d=[ie(u[0],"50%"),ie(u[1],"50%"),r.size||"100%",r.innerSize||0],h=ft(l,c);for(n=0;4>n;++n)a=d[n],i=/%$/.test(a),t=2>n||2===n&&i,d[n]=(i?[l,c,h,d[2]][n]*e(a)/100:e(a))+(t?s:0);return d}},He=function(){};He.prototype={init:function(t,e,i){var n,a=this;return a.series=t,a.color=t.color,a.applyOptions(e,i),a.pointAttr={},t.options.colorByPoint&&(n=t.options.colors||t.chart.options.colors,a.color=a.color||n[t.colorCounter++],t.colorCounter===n.length&&(t.colorCounter=0)),t.chart.pointCount++,a},applyOptions:function(t,e){var i=this,n=i.series,a=n.options.pointValKey||n.pointValKey;return t=He.prototype.optionsToObject.call(this,t),ee(i,t),i.options=i.options?ee(i.options,t):t,a&&(i.y=i[a]),i.x===L&&n&&(i.x=e===L?n.autoIncrement():e),i},optionsToObject:function(t){var e,i={},n=this.series,r=n.pointArrayMap||["y"],o=r.length,s=0,l=0;if("number"==typeof t||null===t)i[r[0]]=t;else if(a(t))for(t.length>o&&(e=typeof t[0],"string"===e?i.name=t[0]:"number"===e&&(i.x=t[0]),s++);o>l;)i[r[l++]]=t[s++];else"object"==typeof t&&(i=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return i},destroy:function(){var t,e=this,i=e.series,n=i.chart,a=n.hoverPoints;n.pointCount--,a&&(e.setState(),l(a,e),a.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(e.graphic||e.dataLabel)&&(fe(e),e.destroyElements()),e.legendItem&&n.legend.destroyItem(e);for(t in e)e[t]=null},destroyElements:function(){for(var t,e=this,i=["graphic","dataLabel","dataLabelUpper","group","connector","shadowGroup"],n=6;n--;)t=i[n],e[t]&&(e[t]=e[t].destroy())},getLabelConfig:function(){var t=this;return{x:t.category,y:t.y,key:t.name||t.category,series:t.series,point:t,percentage:t.percentage,total:t.total||t.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=ie(i.valueDecimals,""),a=i.valuePrefix||"",r=i.valueSuffix||"";return ce(e.pointArrayMap||["y"],function(e){e="{point."+e,(a||r)&&(t=t.replace(e+"}",a+e+"}"+r)),t=t.replace(e+"}",e+":,."+n+"f}")}),v(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,a=this.series,r=a.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Ae(this,t,e,i)}};var We=ot.Series=function(){};We.prototype={isCartesian:!0,type:"line",pointClass:He,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(t,e){var i,n,a=this,r=t.series,o=function(t,e){return ie(t.options.index,t._i)-ie(e.options.index,e._i)};a.chart=t,a.options=e=a.setOptions(e),a.linkedSeries=[],a.bindAxes(),ee(a,{name:e.name,state:Kt,pointAttr:{},visible:e.visible!==!1,selected:e.selected===!0}),It&&(e.animation=!1),n=e.events;for(i in n)pe(a,i,n[i]);(n&&n.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),a.getColor(),a.getSymbol(),ce(a.parallelArrays,function(t){a[t+"Data"]=[]}),a.setData(e.data,!1),a.isCartesian&&(t.hasCartesianSeries=!0),r.push(a),a._i=r.length-1,w(r,o),this.yAxis&&w(this.yAxis.series,o),ce(r,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,e=this,i=e.options,n=e.chart;ce(e.axisTypes||[],function(a){ce(n[a],function(n){t=n.options,(i[a]===t.index||i[a]!==L&&i[a]===t.id||i[a]===L&&0===t.index)&&(n.series.push(e),e[a]=n,n.isDirty=!0)}),e[a]||e.optionalAxis===a||T(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments,a="number"==typeof e?function(n){var a="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=a}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};ce(i.parallelArrays,a)},autoIncrement:function(){var t,e,i=this.options,n=this.xIncrement,a=i.pointIntervalUnit;return n=ie(n,i.pointStart,0),this.pointInterval=e=ie(this.pointInterval,i.pointInterval,1),("month"===a||"year"===a)&&(t=new z(n),t="month"===a?+t[at](t[$]()+e):+t[rt](t[tt]()+e),e=t-n),this.xIncrement=n+e,n},getSegments:function(){var t,e=this,i=-1,n=[],a=e.points,r=a.length;if(r)if(e.options.connectNulls){for(t=r;t--;)null===a[t].y&&a.splice(t,1);a.length&&(n=[a])}else ce(a,function(t,e){null===t.y?(e>i+1&&n.push(a.slice(i+1,e)),i=e):e===r-1&&n.push(a.slice(i+1,e+1))});e.segments=n},setOptions:function(e){var i,n,a=this.chart,r=a.options,o=r.plotOptions,s=a.userOptions||{},l=s.plotOptions||{},u=o[this.type];return this.userOptions=e,i=t(u,o.series,e),this.tooltipOptions=t(Q.tooltip,Q.plotOptions[this.type].tooltip,s.tooltip,l.series&&l.series.tooltip,l[this.type]&&l[this.type].tooltip,e.tooltip),null===u.marker&&delete i.marker,this.zoneAxis=i.zoneAxis,n=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||n.push({value:i[this.zoneAxis+"Threshold"]||i.threshold||0,color:i.negativeColor,fillColor:i.negativeFillColor}),n.length&&c(n[n.length-1].value)&&n.push({color:this.color,fillColor:this.fillColor}),i},getCyclic:function(t,e,i){var n,a=this.userOptions,r="_"+t+"Index",o=t+"Counter";e||(c(a[r])?n=a[r]:(a[r]=n=this.chart[o]%i.length,this.chart[o]+=1),e=i[n]),this[t]=e},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||ye[this.type].color,this.chart.options.colors)},getSymbol:function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(t.radius=0)},drawLegendSymbol:Ye.drawLineMarker,setData:function(t,e,n,o){var s,l,c,u=this,d=u.points,h=d&&d.length||0,p=u.options,f=u.chart,A=null,g=u.xAxis,m=g&&!!g.categories,v=p.turboThreshold,y=this.xData,b=this.yData,w=u.pointArrayMap,x=w&&w.length;if(t=t||[],s=t.length,e=ie(e,!0),o!==!1&&s&&h===s&&!u.cropped&&!u.hasGroupedData&&u.visible)ce(t,function(t,e){d[e].update(t,!1,null,!1)});else{if(u.xIncrement=null,u.pointRange=m?1:p.pointRange,u.colorCounter=0,ce(this.parallelArrays,function(t){u[t+"Data"].length=0}),v&&s>v){for(l=0;null===A&&s>l;)A=t[l],l++;if(r(A)){var k=ie(p.pointStart,0),C=ie(p.pointInterval,1);for(l=0;s>l;l++)y[l]=k,b[l]=t[l],k+=C;u.xIncrement=k}else if(a(A))if(x)for(l=0;s>l;l++)c=t[l],y[l]=c[0],b[l]=c.slice(1,x+1);else for(l=0;s>l;l++)c=t[l],y[l]=c[0],b[l]=c[1];else T(12)}else for(l=0;s>l;l++)t[l]!==L&&(c={series:u},u.pointClass.prototype.applyOptions.apply(c,[t[l]]),u.updateParallelArrays(c,l),m&&c.name&&(g.names[c.x]=c.name));for(i(b[0])&&T(14,!0),u.data=[],u.options.data=t,l=h;l--;)d[l]&&d[l].destroy&&d[l].destroy();g&&(g.minRange=g.userMinRange),u.isDirty=u.isDirtyData=f.isDirtyBox=!0,n=!1}e&&f.redraw(n)},processData:function(t){var e,i,n,a,r,o,s,l,c=this,u=c.xData,d=c.yData,h=u.length,p=0,f=c.xAxis,A=c.options,g=A.cropThreshold,m=c.isCartesian;if(m&&!c.isDirty&&!f.isDirty&&!c.yAxis.isDirty&&!t)return!1;for(f&&(o=f.getExtremes(),s=o.min,l=o.max),m&&c.sorted&&(!g||h>g||c.forceCrop)&&(u[h-1]l?(u=[],d=[]):(u[0]l)&&(e=this.cropData(c.xData,c.yData,s,l),u=e.xData,d=e.yData,p=e.start,i=!0)),r=u.length-1;r>=0;r--)n=u[r]-u[r-1],n>0&&(a===L||a>n)?a=n:0>n&&c.requireSorting&&T(15);c.cropped=i,c.cropStart=p,c.processedXData=u,c.processedYData=d,null===A.pointRange&&(c.pointRange=a||1),c.closestPointRange=a},cropData:function(t,e,i,n){var a,r=t.length,o=0,s=r,l=ie(this.cropShoulder,1);for(a=0;r>a;a++)if(t[a]>=i){o=pt(0,a-l);break}for(;r>a;a++)if(t[a]>n){s=a+l;break}return{xData:t.slice(o,s),yData:e.slice(o,s),start:o,end:s}},generatePoints:function(){var t,e,i,n,a=this,r=a.options,o=r.data,s=a.data,l=a.processedXData,c=a.processedYData,u=a.pointClass,h=l.length,p=a.cropStart||0,f=a.hasGroupedData,A=[];if(!s&&!f){var g=[];g.length=o.length,s=a.data=g}for(n=0;h>n;n++)e=p+n,f?A[n]=(new u).init(a,[l[n]].concat(d(c[n]))):(s[e]?i=s[e]:o[e]!==L&&(s[e]=i=(new u).init(a,o[e],l[n])),A[n]=i),A[n].index=e;if(s&&(h!==(t=s.length)||f))for(n=0;t>n;n++)n!==p||f||(n+=h),s[n]&&(s[n].destroyElements(),s[n].plotX=L);a.data=s,a.points=A},getExtremes:function(t){var e,i,n,a,r,o,s,l,c,u=this.xAxis,d=this.yAxis,h=this.processedXData,p=[],f=0,A=u.getExtremes(),g=A.min,m=A.max;for(t=t||this.stackedYData||this.processedYData,e=t.length,l=0;e>l;l++)if(o=h[l],s=t[l],i=null!==s&&s!==L&&(!d.isLog||s.length||s>0),n=this.getExtremesFromAll||this.cropped||(h[l+1]||o)>=g&&(h[l-1]||o)<=m,i&&n)if(c=s.length)for(;c--;)null!==s[c]&&(p[f++]=s[c]);else p[f++]=s;this.dataMin=ie(a,x(p)),this.dataMax=ie(r,k(p))},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,n,a=this,o=a.options,s=o.stacking,l=a.xAxis,u=l.categories,d=a.yAxis,h=a.points,p=h.length,f=!!a.modifyValue,A=o.pointPlacement,g="between"===A||r(A),m=o.threshold,v=Number.MAX_VALUE;for(t=0;p>t;t++){var y,b,w=h[t],x=w.x,k=w.y,C=w.low,E=s&&d.stacks[(a.negStacks&&m>k?"-":"")+a.stackKey];d.isLog&&null!==k&&0>=k&&(w.y=k=null,T(10)),w.plotX=e=l.translate(x,0,0,0,1,A,"flags"===this.type),s&&a.visible&&E&&E[x]&&(y=E[x],b=y.points[a.index+","+t],C=b[0],k=b[1],0===C&&(C=ie(m,d.min)),d.isLog&&0>=C&&(C=null),w.total=w.stackTotal=y.total,w.percentage=y.total&&w.y/y.total*100,w.stackY=k,y.setOffset(a.pointXOffset||0,a.barW||0)),w.yBottom=c(C)?d.translate(C,0,1,0,1):null,f&&(k=a.modifyValue(k,w)),w.plotY=i="number"==typeof k&&k!==1/0?ft(pt(-1e5,d.translate(k,0,1,0,1)),1e5):L,w.isInside=i!==L&&i>=0&&i<=d.len&&e>=0&&e<=l.len,w.clientX=g?l.translate(x,0,0,0,1):e,w.negative=w.y<(m||0),w.category=u&&u[w.x]!==L?u[w.x]:w.x,t&&(v=ft(v,At(e-n))),n=e}a.closestPointRangePx=v,a.getSegments()},setClip:function(t){var e=this.chart,i=e.renderer,n=e.inverted,a=this.clipBox,r=a||e.clipBox,o=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height].join(","),s=e[o],l=e[o+"m"];s||(t&&(r.width=0,e[o+"m"]=l=i.clipRect(-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[o]=s=i.clipRect(r)),t&&(s.count+=1),this.options.clip!==!1&&(this.group.clip(t||a?s:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=o),t||(s.count-=1,s.count<=0&&o&&e[o]&&(a||(e[o]=e[o].destroy()),e[o+"m"]&&(e[o+"m"]=e[o+"m"].destroy())))},animate:function(t){var e,i,a=this,r=a.chart,o=a.options.animation;o&&!n(o)&&(o=ye[a.type].animation),t?a.setClip(o):(i=this.sharedClipKey,e=r[i],e&&e.animate({width:r.plotSizeX},o),r[i+"m"]&&r[i+"m"].animate({width:r.plotSizeX+99},o),a.animate=null)},afterAnimate:function(){this.setClip(),Ae(this,"afterAnimate")},drawPoints:function(){var t,e,i,n,a,r,o,s,l,c,u,d,h,p=this,f=p.points,A=p.chart,g=p.options,m=g.marker,v=p.pointAttr[""],y=p.markerGroup,b=p.xAxis,w=ie(m.enabled,b.isRadial,p.closestPointRangePx>2*m.radius);if(m.enabled!==!1||p._hasPointMarkers)for(n=f.length;n--;)a=f[n],e=dt(a.plotX),i=a.plotY,l=a.graphic,c=a.marker||{},u=!!a.marker,d=w&&c.enabled===L||c.enabled,h=a.isInside,d&&i!==L&&!isNaN(i)&&null!==a.y?(t=a.pointAttr[a.selected?Zt:Kt]||v,r=t.r,o=ie(c.symbol,p.symbol),s=0===o.indexOf("url"),l?l[h?"show":"hide"](!0).animate(ee({x:e-r,y:i-r},l.symbolName?{width:2*r,height:2*r}:{})):h&&(r>0||s)&&(a.graphic=l=A.renderer.symbol(o,e-r,i-r,2*r,2*r,u?c:m).attr(t).add(y))):l&&(a.graphic=l.destroy())},convertAttribs:function(t,e,i,n){var a,r,o=this.pointAttrToOptions,s={};t=t||{},e=e||{},i=i||{},n=n||{};for(a in o)r=o[a],s[a]=ie(t[r],e[a],i[a],n[a]);return s},getAttribs:function(){var t,e,i,n,a,r,o=this,s=o.options,l=ye[o.type].marker?s.marker:s,u=l.states,d=u[Xt],h=o.color,p=o.options.negativeColor,f={stroke:h,fill:h},A=o.points||[],g=[],m=o.pointAttrToOptions,v=o.hasPointSpecificOptions,y=l.lineColor,b=l.fillColor,w=s.turboThreshold,x=o.zones,k=o.zoneAxis||"y";if(s.marker?(d.radius=d.radius||l.radius+d.radiusPlus,d.lineWidth=d.lineWidth||l.lineWidth+d.lineWidthPlus):(d.color=d.color||Ce(d.color||h).brighten(d.brightness).get(),d.negativeColor=d.negativeColor||Ce(d.negativeColor||p).brighten(d.brightness).get()),g[Kt]=o.convertAttribs(l,f),ce([Xt,Zt],function(t){g[t]=o.convertAttribs(u[t],g[Kt])}),o.pointAttr=g,e=A.length,!w||w>e||v)for(;e--;){if(i=A[e],l=i.options&&i.options.marker||i.options,l&&l.enabled===!1&&(l.radius=0),x.length){for(var C=0,E=x[C];i[k]>=E.value;)E=x[++C];i.color=i.fillColor=E.color}if(v=s.colorByPoint||i.color,i.options)for(r in m)c(l[m[r]])&&(v=!0);v?(l=l||{},n=[],u=l.states||{},t=u[Xt]=u[Xt]||{},s.marker||(t.color=t.color||!i.options.color&&d[i.negative&&p?"negativeColor":"color"]||Ce(i.color).brighten(t.brightness||d.brightness).get()),a={color:i.color},b||(a.fillColor=i.color),y||(a.lineColor=i.color),n[Kt]=o.convertAttribs(ee(a,l),g[Kt]),n[Xt]=o.convertAttribs(u[Xt],g[Xt],n[Kt]),n[Zt]=o.convertAttribs(u[Zt],g[Zt],n[Kt])):n=g,i.pointAttr=n}},destroy:function(){var t,e,i,n,a,r=this,o=r.chart,s=/AppleWebKit\/533/.test(bt),c=r.data||[];for(Ae(r,"destroy"),fe(r),ce(r.axisTypes||[],function(t){a=r[t],a&&(l(a.series,r),a.isDirty=a.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),e=c.length;e--;)i=c[e],i&&i.destroy&&i.destroy();r.points=null,clearTimeout(r.animationTimeout),ce(["area","graph","dataLabelsGroup","group","markerGroup","tracker","graphNeg","areaNeg","posClip","negClip"],function(e){r[e]&&(t=s&&"group"===e?"hide":"destroy",r[e][t]())}),o.hoverSeries===r&&(o.hoverSeries=null),l(o.series,r);for(n in r)delete r[n]},getSegmentPath:function(t){var e=this,i=[],n=e.options.step;return ce(t,function(a,r){var o,s=a.plotX,l=a.plotY;e.getPointSpline?i.push.apply(i,e.getPointSpline(t,a,r)):(i.push(r?_t:Vt),n&&r&&(o=t[r-1],"right"===n?i.push(o.plotX,l):"center"===n?i.push((o.plotX+s)/2,o.plotY,(o.plotX+s)/2,l):i.push(s,o.plotY)),i.push(a.plotX,a.plotY))}),i},getGraphPath:function(){var t,e=this,i=[],n=[];return ce(e.segments,function(a){t=e.getSegmentPath(a),a.length>1?i=i.concat(t):n.push(a[0])}),e.singlePoints=n,e.graphPath=i,i},drawGraph:function(){var t=this,e=this.options,i=[["graph",e.lineColor||this.color,e.dashStyle]],n=e.lineWidth,a="square"!==e.linecap,r=this.getGraphPath(),o=this.fillGraph&&this.color||zt,s=this.zones;ce(s,function(n,a){i.push(["colorGraph"+a,n.color||t.color,n.dashStyle||e.dashStyle])}),ce(i,function(i,s){var l,c=i[0],u=t[c];u?(ve(u),u.animate({d:r})):(n||o)&&r.length&&(l={stroke:i[1],"stroke-width":n,fill:o,zIndex:1},i[2]?l.dashstyle=i[2]:a&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),t[c]=t.chart.renderer.path(r).attr(l).add(t.group).shadow(!s&&e.shadow))})},applyZones:function(){var t,e,i,n=this,a=this.chart,r=a.renderer,o=this.zones,s=this.clips||[],l=this.graph,c=this.area,u=pt(a.chartWidth,a.chartHeight),d=this.zoneAxis||"y",h=this[d+"Axis"],p=h.reversed,f=h.horiz;o.length&&(l||c)&&(l.hide(),c&&c.hide(),ce(o,function(o,l){t=ie(e,p?f?a.plotWidth:0:f?0:h.toPixels(h.min)),e=ut(h.toPixels(ie(o.value,h.max),!0)),h.isXAxis?(i={x:p?e:t,y:0,width:Math.abs(t-e),height:u},f||(i.x=a.plotHeight-i.x)):(i={x:0,y:p?t:e,width:u,height:Math.abs(t-e)},f&&(i.y=a.plotWidth-i.y)),a.inverted&&r.isVML&&(i=h.isXAxis?{x:0,y:p?t:e,height:i.width,width:a.chartWidth}:{x:i.y-a.plotLeft-a.spacingBox.x,y:0,width:i.height,height:a.chartHeight}),s[l]?s[l].animate(i):(s[l]=r.clipRect(i),n["colorGraph"+l].clip(s[l]),c&&n["colorArea"+l].clip(s[l]))}),this.clips=s)},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};ce(["group","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;e.xAxis&&(pe(i,"resize",t),pe(e,"destroy",function(){fe(i,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,i,n,a){var r=this[t],o=!r;return o&&(this[t]=r=this.chart.renderer.g(e).attr({visibility:i,zIndex:n||.1}).add(a)),r[o?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,n=e.options,a=n.animation,r=a&&!!e.animate&&i.renderer.isSVG&&ie(a.duration,500)||0,o=e.visible?Ht:Ut,s=n.zIndex,l=e.hasRendered,c=i.seriesGroup;t=e.plotGroup("group","series",o,s,c),e.markerGroup=e.plotGroup("markerGroup","markers",o,s,c),r&&e.animate(!0),e.getAttribs(),t.inverted=e.isCartesian?i.inverted:!1,e.drawGraph&&(e.drawGraph(),e.applyZones()),ce(e.points,function(t){t.redraw&&t.redraw()}),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&e.options.enableMouseTracking!==!1&&e.drawTracker(),i.inverted&&e.invertGroups(),n.clip===!1||e.sharedClipKey||l||t.clip(i.clipRect),r&&e.animate(),l||(r?e.animationTimeout=setTimeout(function(){e.afterAnimate()},r):e.afterAnimate()),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this,e=t.chart,i=t.isDirtyData,n=t.group,a=t.xAxis,r=t.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:ie(a&&a.left,e.plotLeft),translateY:ie(r&&r.top,e.plotTop)})),t.translate(),t.render(),i&&Ae(t,"updatedData")},kdDimensions:1,kdTree:null,kdAxisArray:["plotX","plotY"],kdComparer:"distX",searchPoint:function(t){var e=this,i=e.xAxis,n=e.yAxis,a=e.chart.inverted;return t.plotX=a?i.len-t.chartY+i.pos:t.chartX-i.pos,t.plotY=a?n.len-t.chartX+n.pos:t.chartY-n.pos,this.searchKDTree(t)},buildKDTree:function(){function t(e,n,a){var r,o,s=e&&e.length;return s?(r=i.kdAxisArray[n%a],e.sort(function(t,e){return t[r]-e[r]}),o=Math.floor(s/2),{point:e[o],left:t(e.slice(0,o),n+1,a),right:t(e.slice(o+1),n+1,a)}):void 0}function e(){i.kdTree=t(i.points,n,n)}var i=this,n=i.kdDimensions;delete i.kdTree,i.options.kdSync?e():setTimeout(e)},searchKDTree:function(t){function e(t,e){var i=c(t[r])&&c(e[r])?Math.pow(t[r]-e[r],2):null,n=c(t[o])&&c(e[o])?Math.pow(t[o]-e[o],2):null,a=(i||0)+(n||0);return{distX:c(i)?Math.sqrt(i):Number.MAX_VALUE,distY:c(n)?Math.sqrt(n):Number.MAX_VALUE,distR:c(a)?Math.sqrt(a):Number.MAX_VALUE}}function i(t,r,o,s){var l,c,u,d,h,p=r.point,f=n.kdAxisArray[o%s],A=p;return p.dist=e(t,p),l=t[f]-p[f],c=0>l?"left":"right",r[c]&&(d=i(t,r[c],o+1,s),A=d.dist[a]l?"right":"left",r[u]&&Math.sqrt(l*l)r;r++)o=c[r],s=u[r],a=l.index+","+r,t=y&&f>s,n=t?v:m,w[n]||(w[n]={}),w[n][o]||(x[n]&&x[n][o]?(w[n][o]=x[n][o],w[n][o].total=null):w[n][o]=new R(b,b.options.stackLabels,t,o,A)),e=w[n][o],e.points[a]=[e.cum||0],"percent"===g?(i=t?m:v,y&&w[i]&&w[i][o]?(i=w[i][o],e.total=i.total=pt(i.total,e.total)+At(s)||0):e.total=S(e.total+(At(s)||0))):e.total=S(e.total+(s||0)),e.cum=(e.cum||0)+(s||0),e.points[a].push(e.cum),d[r]=e.cum;"percent"===g&&(b.usePercentage=!0),this.stackedYData=d,b.oldStacks={}}},We.prototype.setPercentStacks=function(){var t=this,e=t.stackKey,i=t.yAxis.stacks,n=t.processedXData;ce([e,"-"+e],function(e){for(var a,r,o,s,l=n.length;l--;)a=n[l],r=i[e]&&i[e][a],o=r&&r.points[t.index+","+l],o&&(s=r.total?100/r.total:0,o[0]=S(o[0]*s),o[1]=S(o[1]*s),t.stackedYData[l]=o[1])})},ee(Ue.prototype,{addSeries:function(t,e,i){var n,a=this;return t&&(e=ie(e,!0),Ae(a,"addSeries",{options:t},function(){n=a.initSeries(t),a.isDirtyLegend=!0,a.linkSeries(),e&&a.redraw(i)})),n},addAxis:function(e,i,n,a){var r,o=i?"xAxis":"yAxis",s=this.options;r=new je(this,t(e,{index:this[o].length,isX:i})),s[o]=d(s[o]||{}),s[o].push(e),ie(n,!0)&&this.redraw(a)},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,a=i.loading,r=function(){n&&h(n,{left:e.plotLeft+Wt,top:e.plotTop+Wt,width:e.plotWidth+Wt,height:e.plotHeight+Wt})};n||(e.loadingDiv=n=p(Ot,{className:Gt+"loading"},ee(a.style,{zIndex:10,display:zt}),e.container),e.loadingSpan=p("span",null,a.labelStyle,n),pe(e,"redraw",r)),e.loadingSpan.innerHTML=t||i.lang.loading,e.loadingShown||(h(n,{opacity:0,display:""}),me(n,{opacity:a.style.opacity},{duration:a.showDuration||0}),e.loadingShown=!0),r()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&me(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){h(e,{display:zt})}}),this.loadingShown=!1}}),ee(He.prototype,{update:function(t,e,i,r){function o(){l.applyOptions(t),n(t)&&!a(t)&&(l.redraw=function(){u&&(t&&t.marker&&t.marker.symbol?l.graphic=u.destroy():u.attr(l.pointAttr[l.state||""])),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),s=l.index,c.updateParallelArrays(l,s),p&&l.name&&(p[l.x]=l.name),h.data[s]=l.options,c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===h.legendType&&(c.updateTotals(),d.legend.clearItems()),e&&d.redraw(i)}var s,l=this,c=l.series,u=l.graphic,d=c.chart,h=c.options,p=c.xAxis&&c.xAxis.names;e=ie(e,!0),r===!1?o():l.firePointEvent("update",{options:t},o)},remove:function(t,e){this.series.removePoint(le(this,this.series.data),t,e)}}),ee(We.prototype,{addPoint:function(t,e,i,n){var a,r,o,s,l=this,c=l.options,u=l.data,d=l.graph,h=l.area,p=l.chart,f=l.xAxis&&l.xAxis.names,A=d&&d.shift||0,g=c.data,m=l.xData;if(D(n,p),i&&ce([d,h,l.graphNeg,l.areaNeg],function(t){t&&(t.shift=A+1)}),h&&(h.isArea=!0),e=ie(e,!0),a={series:l},l.pointClass.prototype.applyOptions.apply(a,[t]),o=a.x,s=m.length,l.requireSorting&&oo;)s--;l.updateParallelArrays(a,"splice",s,0,0),l.updateParallelArrays(a,s),f&&a.name&&(f[o]=a.name),g.splice(s,0,t),r&&(l.data.splice(s,0,null),l.processData()),"point"===c.legendType&&l.generatePoints(),i&&(u[0]&&u[0].remove?u[0].remove(!1):(u.shift(),l.updateParallelArrays(a,"shift"),g.shift())),delete l.kdTree,l.isDirty=!0,l.isDirtyData=!0,e&&(l.getAttribs(),p.redraw())},removePoint:function(t,e,i){var n=this,a=n.data,r=a[t],o=n.points,s=n.chart,l=function(){a.length===o.length&&o.splice(t,1),a.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(r||{series:n},"splice",t,1),r&&r.destroy(),delete n.kdTree,n.isDirty=!0,n.isDirtyData=!0,e&&s.redraw()};D(i,s),e=ie(e,!0),r?r.firePointEvent("remove",null,l):l()},remove:function(t,e){var i=this,n=i.chart;t=ie(t,!0),i.isRemoving||(i.isRemoving=!0,Ae(i,"remove",null,function(){i.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),t&&n.redraw(e)})),i.isRemoving=!1},update:function(e,i){var n,a=this,r=this.chart,o=this.userOptions,s=this.type,l=te[s].prototype,c=["group","markerGroup","dataLabelsGroup"];(e.type&&e.type!==s||void 0!==e.zIndex)&&(c.length=0),ce(c,function(t){c[t]=a[t],delete a[t]}),e=t(o,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},e),this.remove(!1);for(n in l)this[n]=L;ee(this,te[e.type||s].prototype),ce(c,function(t){a[t]=c[t]}),this.init(r,e),r.linkSeries(),ie(i,!0)&&r.redraw(!1)}}),ee(je.prototype,{update:function(e,i){var n=this.chart;e=n.options[this.coll][this.options.index]=t(this.userOptions,e),this.destroy(!0),this._addedPlotLB=L,this.init(n,ee(e,{events:L})),n.isDirtyBox=!0,ie(i,!0)&&n.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,a=n.length;a--;)n[a]&&n[a].remove(!1);l(e.axes,this),l(e[i],this),e.options[i].splice(this.options.index,1),ce(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,ie(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}});var ze=f(We);te.line=ze,ye.area=t(be,{threshold:0});var Ve=f(We,{type:"area",getSegments:function(){var t,e,i,n,a=this,r=[],o=[],s=[],l=this.xAxis,c=this.yAxis,u=c.stacks[this.stackKey],d={},h=this.points,p=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(i=0;i=0;e--)i=ie(t[e].yBottom,s),eg&&a>d?(a=pt(g,d),o=2*d-a):g>a&&d>a&&(a=ft(g,d),o=2*d-a),o>v&&o>d?(o=pt(v,d),a=2*d-o):v>o&&d>o&&(o=ft(v,d),a=2*d-o),e.rightContX=r,e.rightContY=o}return i?(s=["C",h.rightContX||h.plotX,h.rightContY||h.plotY,n||u,a||d,u,d],h.rightContX=h.rightContY=null):s=[Vt,u,d],s}});te.spline=_e,ye.areaspline=t(ye.area);var Je=Ve.prototype,Ke=f(_e,{type:"areaspline",closedStacks:!0,getSegmentPath:Je.getSegmentPath,closeSegment:Je.closeSegment,drawGraph:Je.drawGraph,drawLegendSymbol:Ye.drawRectangle});te.areaspline=Ke,ye.column=t(be,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:!1,tooltip:{distance:6},threshold:0});var Xe=f(We,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){We.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&ce(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e,i=this,n=i.options,a=i.xAxis,r=i.yAxis,o=a.reversed,s={},l=0;n.grouping===!1?l=1:ce(i.chart.series,function(n){var a=n.options,o=n.yAxis;n.type===i.type&&n.visible&&r.len===o.len&&r.pos===o.pos&&(a.stacking?(t=n.stackKey,s[t]===L&&(s[t]=l++),e=s[t]):a.grouping!==!1&&(e=l++),n.columnIndex=e)});var u=ft(At(a.transA)*(a.ordinalSlope||n.pointRange||a.closestPointRange||a.tickInterval||1),a.len),d=u*n.groupPadding,h=u-2*d,p=h/l,f=n.pointWidth,A=c(f)?(p-f)/2:p*n.pointPadding,g=ie(f,p-2*A),m=(o?l-(i.columnIndex||0):i.columnIndex)||0,v=A+(d+m*p-u/2)*(o?-1:1);return i.columnMetrics={width:g,offset:v}},translate:function(){var t=this,e=t.chart,i=t.options,n=t.borderWidth=ie(i.borderWidth,t.closestPointRange*t.xAxis.transA<2?0:1),a=t.yAxis,r=i.threshold,o=t.translatedThreshold=a.getThreshold(r),s=ie(i.minPointLength,5),l=t.getColumnMetrics(),c=l.width,u=t.barW=pt(c,1+2*n),d=t.pointXOffset=l.offset,h=-(n%2?.5:0),p=n%2?.5:1;e.renderer.isVML&&e.inverted&&(p+=1),i.pointPadding&&(u=ht(u)),We.prototype.translate.apply(t),ce(t.points,function(i){var n,r,l,f=ie(i.yBottom,o),A=ft(pt(-999-f,i.plotY),a.len+999+f),g=i.plotX+d,m=u,v=ft(A,f),y=pt(A,f)-v;At(y)s?f-s:o-(a.translate(i.y,0,1,0,1)<=o?s:0))),i.barX=g,i.pointWidth=c,i.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-A,t.xAxis.len-g-m/2]:[g+m/2,A+a.pos-e.plotTop],n=ut(g+m)+h,g=ut(g)+h,m=n-g,l=At(v)<.5,r=ft(ut(v+y)+p,9e4),v=ut(v)+p,y=r-v,l&&(v-=1,y+=1),i.shapeType="rect",i.shapeArgs={x:g,y:v,width:m,height:y}})},getSymbol:Pt,drawLegendSymbol:Ye.drawRectangle,drawGraph:Pt,drawPoints:function(){var e,i,n=this,a=this.chart,r=n.options,o=a.renderer,s=r.animationLimit||250;ce(n.points,function(l){var u,d=l.plotY,h=l.graphic;d===L||isNaN(d)||null===l.y?h&&(l.graphic=h.destroy()):(e=l.shapeArgs,u=c(n.borderWidth)?{"stroke-width":n.borderWidth}:{},i=l.pointAttr[l.selected?Zt:Kt]||n.pointAttr[Kt],h?(ve(h),h.attr(u)[a.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});var qe=f(We,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,kdComparer:"distR",drawGraph:function(){this.options.lineWidth&&We.prototype.drawGraph.call(this)}});te.scatter=qe,ye.pie=t(be,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});var $e=f(He,{init:function(){He.prototype.init.apply(this,arguments);var t,e=this;return ee(e,{visible:e.visible!==!1,name:ie(e.name,"Slice")}),t=function(t){e.slice("select"===t.type)},pe(e,"select",t),pe(e,"unselect",t),e},setVisible:function(t){var e=this,i=e.series,n=i.chart,a=!i.isDirty&&i.options.ignoreHiddenPoint;e.visible=e.options.visible=t=t===L?!e.visible:t,i.options.data[le(e,i.data)]=e.options,ce(["graphic","dataLabel","connector","shadowGroup"],function(i){e[i]&&e[i][t?"show":"hide"](!0)}),e.legendItem&&(n.hasRendered&&(i.updateTotals(),n.legend.clearItems(),a||n.legend.render()),n.legend.colorizeItem(e,t)),a&&(i.isDirty=!0,n.redraw())},slice:function(t,e,i){var n,a=this,r=a.series,o=r.chart;D(i,o),e=ie(e,!0),a.sliced=a.options.sliced=t=c(t)?t:!a.sliced,r.options.data[le(a,r.data)]=a.options,n=t?a.slicedTranslation:{translateX:0,translateY:0},a.graphic.animate(n),a.shadowGroup&&a.shadowGroup.animate(n)},haloPath:function(t){var e=this.shapeArgs,i=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(i.plotLeft+e.x,i.plotTop+e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),ti={type:"pie",isCartesian:!1,pointClass:$e,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:Pt,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(ce(i,function(t){var i=t.graphic,a=t.shapeArgs;i&&(i.attr({r:e.center[3]/2,start:n,end:n}),i.animate({r:a.r,start:a.start,end:a.end},e.options.animation))}),e.animate=null)},setData:function(t,e,i,n){We.prototype.setData.call(this,t,!1,i,n),this.processData(),this.generatePoints(),ie(e,!0)&&this.chart.redraw(i)},updateTotals:function(){var t,e,i,n,a=0,r=this.options.ignoreHiddenPoint;for(e=this.points,i=e.length,t=0;i>t;t++)n=e[t],n.y<0&&(n.y=null),a+=r&&!n.visible?0:n.y;for(this.total=a,t=0;i>t;t++)n=e[t],n.percentage=a>0&&(n.visible||!r)?n.y/a*100:0,n.total=a},generatePoints:function(){We.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,a,r,o,s,l=this,c=0,u=1e3,d=l.options,h=d.slicedOffset,p=h+d.borderWidth,f=d.startAngle||0,A=l.startAngleRad=vt/180*(f-90),g=l.endAngleRad=vt/180*(ie(d.endAngle,f+360)-90),m=g-A,v=l.points,y=d.dataLabels.distance,b=d.ignoreHiddenPoint,w=v.length;for(t||(l.center=t=l.getCenter()),l.getX=function(e,i){return n=ct.asin(ft((e-t[1])/(t[2]/2+y),1)),t[0]+(i?-1:1)*(gt(n)*(t[2]/2+y))},o=0;w>o;o++)s=v[o],e=A+c*m,(!b||s.visible)&&(c+=s.percentage/100),i=A+c*m,s.shapeType="arc",s.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:ut(e*u)/u,end:ut(i*u)/u},n=(i+e)/2,n>1.5*vt?n-=2*vt:-vt/2>n&&(n+=2*vt),s.slicedTranslation={translateX:ut(gt(n)*h),translateY:ut(mt(n)*h)},a=gt(n)*t[2]/2,r=mt(n)*t[2]/2,s.tooltipPos=[t[0]+.7*a,t[1]+.7*r],s.half=-vt/2>n||n>vt/2?1:0,s.angle=n,p=ft(p,y/2),s.labelPos=[t[0]+a+gt(n)*y,t[1]+r+mt(n)*y,t[0]+a+gt(n)*p,t[1]+r+mt(n)*p,t[0]+a,t[1]+r,0>y?"center":s.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,n,a=this,r=a.chart,o=r.renderer,s=a.options.shadow;s&&!a.shadowGroup&&(a.shadowGroup=o.g("shadow").add(a.group)),ce(a.points,function(r){e=r.graphic,n=r.shapeArgs,i=r.shadowGroup,s&&!i&&(i=r.shadowGroup=o.g("shadow").add(a.shadowGroup)),t=r.sliced?r.slicedTranslation:{translateX:0,translateY:0},i&&i.attr(t),e?e.animate(ee(n,t)):r.graphic=e=o[r.shapeType](n).setRadialReference(a.center).attr(r.pointAttr[r.selected?Zt:Kt]).attr({"stroke-linejoin":"round"}).attr(t).add(a.group).shadow(s,i),void 0!==r.visible&&r.setVisible(r.visible)})},searchPoint:Pt,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:Ye.drawRectangle,getCenter:Ge.getCenter,getSymbol:Pt};ti=f(We,ti),te.pie=ti,We.prototype.drawDataLabels=function(){var e,i,n,a,r=this,o=r.options,s=o.cursor,l=o.dataLabels,u=r.points,d=r.hasRendered||0,h=r.chart.renderer;(l.enabled||r._hasPointLabels)&&(r.dlProcessOptions&&r.dlProcessOptions(l),a=r.plotGroup("dataLabelsGroup","data-labels",l.defer?Ut:Ht,l.zIndex||6),ie(l.defer,!0)&&(a.attr({opacity:+d}),d||pe(r,"afterAnimate",function(){r.visible&&a.show(),a[o.animation?"animate":"attr"]({opacity:1},{duration:200})})),i=l,ce(u,function(u){var d,p,f,A,g,m,y=u.dataLabel,b=u.connector,w=!0,x={};if(e=u.dlOptions||u.options&&u.options.dataLabels,d=ie(e&&e.enabled,i.enabled),y&&!d)u.dataLabel=y.destroy();else if(d){if(l=t(i,e),m=l.style,g=l.rotation,p=u.getLabelConfig(),n=l.format?v(l.format,p):l.formatter.call(p,l),m.color=ie(l.color,m.color,r.color,"black"),y)c(n)?(y.attr({text:n}),w=!1):(u.dataLabel=y=y.destroy(),b&&(u.connector=b.destroy()));else if(c(n)){f={fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth,r:l.borderRadius||0,rotation:g,padding:l.padding,zIndex:1},"contrast"===m.color&&(x.color=l.inside||l.distance<0||o.stacking?h.getContrast(u.color||r.color):"#000000"),s&&(x.cursor=s);for(A in f)f[A]===L&&delete f[A];y=u.dataLabel=h[g?"text":"label"](n,0,-999,l.shape,null,null,l.useHTML).attr(f).css(ee(m,x)).add(a).shadow(l.shadow)}y&&r.alignDataLabel(u,y,l,null,w)}}))},We.prototype.alignDataLabel=function(t,e,i,n,a){var r,o,s=this.chart,l=s.inverted,c=ie(t.plotX,-999),u=ie(t.plotY,-999),d=e.getBBox(),h=s.renderer.fontMetrics(i.style.fontSize).b,p=this.visible&&(t.series.forceDL||s.isInsidePlot(c,ut(u),l)||n&&s.isInsidePlot(c,l?n.x+1:n.y+n.height-1,l));p&&(n=ee({x:l?s.plotWidth-u:c,y:ut(l?s.plotHeight-c:u),width:0,height:0},n),ee(i,{width:d.width,height:d.height}),i.rotation?(r=s.renderer.rotCorr(h,i.rotation),e[a?"attr":"animate"]({x:n.x+i.x+n.width/2+r.x,y:n.y+i.y+n.height/2}).attr({align:i.align})):(e.align(i,null,n),o=e.alignAttr,"justify"===ie(i.overflow,"justify")?this.justifyDataLabel(e,i,o,d,n,a):ie(i.crop,!0)&&(p=s.isInsidePlot(o.x,o.y)&&s.isInsidePlot(o.x+d.width,o.y+d.height)),i.shape&&e.attr({anchorX:t.plotX,anchorY:t.plotY}))),p||(e.attr({y:-999}),e.placed=!1)},We.prototype.justifyDataLabel=function(t,e,i,n,a,r){var o,s,l=this.chart,c=e.align,u=e.verticalAlign,d=t.box?0:t.padding||0;o=i.x+d,0>o&&("right"===c?e.align="left":e.x=-o,s=!0),o=i.x+n.width-d,o>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-o,s=!0),o=i.y+d,0>o&&("bottom"===u?e.verticalAlign="top":e.y=-o,s=!0),o=i.y+n.height-d,o>l.plotHeight&&("top"===u?e.verticalAlign="bottom":e.y=l.plotHeight-o,s=!0),s&&(t.placed=!r,t.align(e,null,a))},te.pie&&(te.pie.prototype.drawDataLabels=function(){var t,e,i,n,a,r,o,s,l,c,u,d,h,p=this,f=p.data,A=p.chart,g=p.options.dataLabels,m=ie(g.connectorPadding,10),v=ie(g.connectorWidth,1),y=A.plotWidth,b=A.plotHeight,w=ie(g.softConnector,!0),x=g.distance,C=p.center,E=C[2]/2,T=C[1],S=x>0,D=[[],[]],M=[0,0,0,0],I=function(t,e){return e.y-t.y};if(p.visible&&(g.enabled||p._hasPointLabels)){for(We.prototype.drawDataLabels.apply(p),ce(f,function(t){t.dataLabel&&t.visible&&D[t.half].push(t)}),d=2;d--;){var j,B,P,R,L=[],F=[],N=D[d],O=N.length;if(O){for(p.sortByAngle(N,d-.5),h=o=0;!o&&N[h];)o=N[h]&&N[h].dataLabel&&(N[h].dataLabel.getBBox().height||21),h++;if(x>0){for(P=ft(T+E+x,A.plotHeight),B=pt(0,T-E-x);P>=B;B+=o)L.push(B);if(j=L.length,O>j){for(u=[].concat(N),u.sort(I),h=O;h--;)u[h].rank=h;for(h=O;h--;)N[h].rank>=j&&N.splice(h,1);O=N.length}for(h=0;O>h;h++){t=N[h],r=t.labelPos;var Q,Y,U=9999;for(Y=0;j>Y;Y++)Q=At(L[Y]-r[1]),U>Q&&(U=Q,R=Y);if(h>R&&null!==L[h])R=h;else if(O-h+R>j&&null!==L[h])for(R=j-O+h;null===L[R];)R++;else for(;null===L[R];)R++;F.push({i:R,y:L[R]}),L[R]=null}F.sort(I)}for(h=0;O>h;h++){var G,H;t=N[h],r=t.labelPos,n=t.dataLabel,c=t.visible===!1?Ut:Ht,H=r[1],x>0?(G=F.pop(),R=G.i,l=G.y,(H>l&&null!==L[R+1]||l>H&&null!==L[R-1])&&(l=ft(pt(0,H),A.plotHeight))):l=H,s=g.justify?C[0]+(d?-1:1)*(E+x):p.getX(l===T-E-x||l===T+E+x?H:l,d),n._attr={visibility:c,align:r[6]},n._pos={x:s+g.x+({left:m,right:-m}[r[6]]||0),y:l+g.y-10},n.connX=s,n.connY=l,null===this.options.size&&(a=n.width,m>s-a?M[3]=pt(ut(a-s+m),M[3]):s+a>y-m&&(M[1]=pt(ut(s+a-y+m),M[1])),0>l-o/2?M[0]=pt(ut(-l+o/2),M[0]):l+o/2>b&&(M[2]=pt(ut(l+o/2-b),M[2])))}}}(0===k(M)||this.verifyDataLabelOverflow(M))&&(this.placeDataLabels(),S&&v&&ce(this.points,function(t){e=t.connector,r=t.labelPos,n=t.dataLabel,n&&n._pos?(c=n._attr.visibility,s=n.connX,l=n.connY,i=w?[Vt,s+("left"===r[6]?5:-5),l,"C",s,l,2*r[2]-r[4],2*r[3]-r[5],r[2],r[3],_t,r[4],r[5]]:[Vt,s+("left"===r[6]?5:-5),l,_t,r[2],r[3],_t,r[4],r[5]],e?(e.animate({d:i}),e.attr("visibility",c)):t.connector=e=p.chart.renderer.path(i).attr({"stroke-width":v,stroke:g.connectorColor||t.color||"#606060",visibility:c}).add(p.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},te.pie.prototype.placeDataLabels=function(){ce(this.points,function(t){var e,i=t.dataLabel;i&&(e=i._pos,e?(i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-999}))})},te.pie.prototype.alignDataLabel=Pt,te.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,a=n.center,r=n.minSize||80,o=r;return null!==a[0]?o=pt(i[2]-pt(t[1],t[3]),r):(o=pt(i[2]-t[1]-t[3],r),i[0]+=(t[3]-t[1])/2),null!==a[1]?o=pt(ft(o,i[2]-pt(t[0],t[2])),r):(o=pt(ft(o,i[2]-t[0]-t[2]),r),i[1]+=(t[0]-t[2])/2),oie(this.translatedThreshold,s.yAxis.len),u=ie(n.inside,!!this.options.stacking);l&&(a=t(l),o&&(a={x:s.yAxis.len-a.y-a.height,y:s.xAxis.len-a.x-a.width,width:a.height,height:a.width}),u||(o?(a.x+=c?0:a.width,a.width=0):(a.y+=c?a.height:0,a.height=0))),n.align=ie(n.align,!o||u?"center":c?"right":"left"),n.verticalAlign=ie(n.verticalAlign,o||u?"middle":c?"top":"bottom"),We.prototype.alignDataLabel.call(this,e,i,n,a,r)}),function(t){var e=t.Chart,i=t.each,n=HighchartsAdapter.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.series,function(t){var n=t.options.dataLabels;!n.enabled&&!t._hasPointLabels||n.allowOverlap||i(t.points,function(t){t.dataLabel&&(t.dataLabel.labelrank=t.labelrank,e.push(t.dataLabel))})}),t.hideOverlappingLabels(e)}e(),n(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,i,n,a,r,o=t.length,s=function(t,e,i,n){return!(e.x>t.x+i.width||e.x+n.widtht.y+i.height||e.y+n.heighti;i++)e=t[i],e&&(e.oldOpacity=e.opacity,e.newOpacity=1);for(i=0;o>i;i++)for(a=t[i],n=i+1;o>n;++n)r=t[n],a&&r&&a.placed&&r.placed&&0!==a.newOpacity&&0!==r.newOpacity&&s(a.alignAttr,r.alignAttr,a,r)&&((a.labelranki;i++)e=t[i],e&&(e.oldOpacity!==e.newOpacity&&e.placed&&(e.alignAttr.opacity=e.newOpacity,e[e.isOld&&e.newOpacity?"animate":"attr"](e.alignAttr)),e.isOld=!0)}}(ot);var ei=ot.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart,i=e.pointer,n=t.options.cursor,a=n&&{cursor:n},r=function(i){var n,a=i.target;for(e.hoverSeries!==t&&t.onMouseOver();a&&!n;)n=a.point,a=a.parentNode;n!==L&&n!==e.hoverPoint&&n.onMouseOver(i)};ce(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.element.point=t)}),t._hasTracking||(ce(t.trackerGroups,function(e){t[e]&&(t[e].addClass(Gt+"tracker").on("mouseover",r).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(a),N&&t[e].on("touchstart",r))}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e,i=this,n=i.options,a=n.trackByArea,r=[].concat(a?i.areaPath:i.graphPath),o=r.length,s=i.chart,l=s.pointer,c=s.renderer,u=s.options.tooltip.snap,d=i.tracker,h=n.cursor,p=h&&{cursor:h},f=i.singlePoints,A=function(){s.hoverSeries!==i&&i.onMouseOver()},g="rgba(192,192,192,"+(Dt?1e-4:.002)+")";if(o&&!a)for(e=o+1;e--;)r[e]===Vt&&r.splice(e+1,0,r[e+1]-u,r[e+2],_t),(e&&r[e]===Vt||e===o)&&r.splice(e,0,_t,r[e-2]+u,r[e-1]);for(e=0;ea;r.series.length&&(d||c>ft(l.dataMin,l.min))&&(!d||u is released under the MIT License */ !function(e,i){t.exports=i()}(this,function(){function t(){if(!z&&document.getElementsByTagName("body")[0]){try{var t,e=m("span");e.style.display="none",t=O.getElementsByTagName("body")[0].appendChild(e),t.parentNode.removeChild(t),t=null,e=null}catch(i){return}z=!0;for(var n=U.length,a=0;n>a;a++)U[a]()}}function e(t){z?t():U[U.length]=t}function i(t){if(typeof N.addEventListener!=I)N.addEventListener("load",t,!1);else if(typeof O.addEventListener!=I)O.addEventListener("load",t,!1);else if(typeof N.attachEvent!=I)y(N,"onload",t);else if("function"==typeof N.onload){var e=N.onload;N.onload=function(){e(),t()}}else N.onload=t}function n(){var t=O.getElementsByTagName("body")[0],e=m(j);e.setAttribute("style","visibility: hidden;"),e.setAttribute("type",R);var i=t.appendChild(e);if(i){var n=0;!function r(){if(typeof i.GetVariable!=I)try{var o=i.GetVariable("$version");o&&(o=o.split(" ")[1].split(","),K.pv=[v(o[0]),v(o[1]),v(o[2])])}catch(s){K.pv=[8,0,0]}else if(10>n)return n++,void setTimeout(r,10);t.removeChild(e),i=null,a()}()}else a()}function a(){var t=G.length;if(t>0)for(var e=0;t>e;e++){var i=G[e].id,n=G[e].callbackFn,a={success:!1,id:i};if(K.pv[0]>0){var c=g(i);if(c)if(!b(G[e].swfVersion)||K.wk&&K.wk<312)if(G[e].expressInstall&&o()){var u={};u.data=G[e].expressInstall,u.width=c.getAttribute("width")||"0",u.height=c.getAttribute("height")||"0",c.getAttribute("class")&&(u.styleclass=c.getAttribute("class")),c.getAttribute("align")&&(u.align=c.getAttribute("align"));for(var d={},h=c.getElementsByTagName("param"),p=h.length,f=0;p>f;f++)"movie"!=h[f].getAttribute("name").toLowerCase()&&(d[h[f].getAttribute("name")]=h[f].getAttribute("value"));s(u,d,i,n)}else l(c),n&&n(a);else x(i,!0),n&&(a.success=!0,a.ref=r(i),a.id=i,n(a))}else if(x(i,!0),n){var A=r(i);A&&typeof A.SetVariable!=I&&(a.success=!0,a.ref=A,a.id=A.id),n(a)}}}function r(t){var e=null,i=g(t);return i&&"OBJECT"===i.nodeName.toUpperCase()&&(e=typeof i.SetVariable!==I?i:i.getElementsByTagName(j)[0]||i),e}function o(){return!V&&b("6.0.65")&&(K.win||K.mac)&&!(K.wk&&K.wk<312)}function s(t,e,i,n){var a=g(i);if(i=A(i),V=!0,T=n||null,S={success:!1,id:i},a){"OBJECT"==a.nodeName.toUpperCase()?(C=c(a),E=null):(C=a,E=i),t.id=L,(typeof t.width==I||!/%$/.test(t.width)&&v(t.width)<310)&&(t.width="310"),(typeof t.height==I||!/%$/.test(t.height)&&v(t.height)<137)&&(t.height="137"),O.title=O.title.slice(0,47)+" - Flash Player Installation";var r=K.ie?"ActiveX":"PlugIn",o="MMredirectURL="+encodeURIComponent(N.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+r+"&MMdoctitle="+O.title;if(typeof e.flashvars!=I?e.flashvars+="&"+o:e.flashvars=o,K.ie&&4!=a.readyState){var s=m("div");i+="SWFObjectNew",s.setAttribute("id",i),a.parentNode.insertBefore(s,a),a.style.display="none",p(a)}d(t,e,i)}}function l(t){if(K.ie&&4!=t.readyState){t.style.display="none";var e=m("div");t.parentNode.insertBefore(e,t),e.parentNode.replaceChild(c(t),e),p(t)}else t.parentNode.replaceChild(c(t),t)}function c(t){var e=m("div");if(K.win&&K.ie)e.innerHTML=t.innerHTML;else{var i=t.getElementsByTagName(j)[0];if(i){var n=i.childNodes;if(n)for(var a=n.length,r=0;a>r;r++)1==n[r].nodeType&&"PARAM"==n[r].nodeName||8==n[r].nodeType||e.appendChild(n[r].cloneNode(!0))}}return e}function u(t,e){var i=m("div");return i.innerHTML=""+e+"",i.firstChild}function d(t,e,i){var n,a=g(i);if(i=A(i),K.wk&&K.wk<312)return n;if(a){var r,o,s,l=m(K.ie?"div":j);typeof t.id==I&&(t.id=i);for(s in e)e.hasOwnProperty(s)&&"movie"!==s.toLowerCase()&&h(l,s,e[s]);K.ie&&(l=u(t.data,l.innerHTML));for(r in t)t.hasOwnProperty(r)&&(o=r.toLowerCase(),"styleclass"===o?l.setAttribute("class",t[r]):"classid"!==o&&"data"!==o&&l.setAttribute(r,t[r]));K.ie?H[H.length]=t.id:(l.setAttribute("type",R),l.setAttribute("data",t.data)),a.parentNode.replaceChild(l,a),n=l}return n}function h(t,e,i){var n=m("param");n.setAttribute("name",e),n.setAttribute("value",i),t.appendChild(n)}function p(t){var e=g(t);e&&"OBJECT"==e.nodeName.toUpperCase()&&(K.ie?(e.style.display="none",function i(){if(4==e.readyState){for(var t in e)"function"==typeof e[t]&&(e[t]=null);e.parentNode.removeChild(e)}else setTimeout(i,10)}()):e.parentNode.removeChild(e))}function f(t){return t&&t.nodeType&&1===t.nodeType}function A(t){return f(t)?t.id:t}function g(t){if(f(t))return t;var e=null;try{e=O.getElementById(t)}catch(i){}return e}function m(t){return O.createElement(t)}function v(t){return parseInt(t,10)}function y(t,e,i){t.attachEvent(e,i),W[W.length]=[t,e,i]}function b(t){t+="";var e=K.pv,i=t.split(".");return i[0]=v(i[0]),i[1]=v(i[1])||0,i[2]=v(i[2])||0,e[0]>i[0]||e[0]==i[0]&&e[1]>i[1]||e[0]==i[0]&&e[1]==i[1]&&e[2]>=i[2]?!0:!1}function w(t,e,i,n){var a=O.getElementsByTagName("head")[0];if(a){var r="string"==typeof i?i:"screen";if(n&&(D=null,M=null),!D||M!=r){var o=m("style");o.setAttribute("type","text/css"),o.setAttribute("media",r),D=a.appendChild(o),K.ie&&typeof O.styleSheets!=I&&O.styleSheets.length>0&&(D=O.styleSheets[O.styleSheets.length-1]),M=r}D&&(typeof D.addRule!=I?D.addRule(t,e):typeof O.createTextNode!=I&&D.appendChild(O.createTextNode(t+" {"+e+"}")))}}function x(t,e){if(_){var i=e?"visible":"hidden",n=g(t);z&&n?n.style.visibility=i:"string"==typeof t&&w("#"+t,"visibility:"+i)}}function k(t){var e=/[\\\"<>\.;]/,i=null!=e.exec(t);return i&&typeof encodeURIComponent!=I?encodeURIComponent(t):t}var C,E,T,S,D,M,I="undefined",j="object",B="Shockwave Flash",P="ShockwaveFlash.ShockwaveFlash",R="application/x-shockwave-flash",L="SWFObjectExprInst",F="onreadystatechange",N=window,O=document,Q=navigator,Y=!1,U=[],G=[],H=[],W=[],z=!1,V=!1,_=!0,J=!1,K=function(){var t=typeof O.getElementById!=I&&typeof O.getElementsByTagName!=I&&typeof O.createElement!=I,e=Q.userAgent.toLowerCase(),i=Q.platform.toLowerCase(),n=i?/win/.test(i):/win/.test(e),a=i?/mac/.test(i):/mac/.test(e),r=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,o="Microsoft Internet Explorer"===Q.appName,s=[0,0,0],l=null;if(typeof Q.plugins!=I&&typeof Q.plugins[B]==j)l=Q.plugins[B].description,l&&typeof Q.mimeTypes!=I&&Q.mimeTypes[R]&&Q.mimeTypes[R].enabledPlugin&&(Y=!0,o=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=v(l.replace(/^(.*)\..*$/,"$1")),s[1]=v(l.replace(/^.*\.(.*)\s.*$/,"$1")),s[2]=/[a-zA-Z]/.test(l)?v(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof N.ActiveXObject!=I)try{var c=new ActiveXObject(P);c&&(l=c.GetVariable("$version"),l&&(o=!0,l=l.split(" ")[1].split(","),s=[v(l[0]),v(l[1]),v(l[2])]))}catch(u){}return{w3:t,pv:s,wk:r,ie:o,win:n,mac:a}}();(function(){K.w3&&((typeof O.readyState!=I&&("complete"===O.readyState||"interactive"===O.readyState)||typeof O.readyState==I&&(O.getElementsByTagName("body")[0]||O.body))&&t(),z||(typeof O.addEventListener!=I&&O.addEventListener("DOMContentLoaded",t,!1),K.ie&&(O.attachEvent(F,function e(){"complete"==O.readyState&&(O.detachEvent(F,e),t())}),N==top&&!function i(){if(!z){try{O.documentElement.doScroll("left")}catch(e){return void setTimeout(i,0)}t()}}()),K.wk&&!function n(){return z?void 0:/loaded|complete/.test(O.readyState)?void t():void setTimeout(n,0)}()))})();U[0]=function(){Y?n():a()};(function(){K.ie&&window.attachEvent("onunload",function(){for(var t=W.length,e=0;t>e;e++)W[e][0].detachEvent(W[e][1],W[e][2]);for(var i=H.length,n=0;i>n;n++)p(H[n]);for(var a in K)K[a]=null;K=null;for(var r in swfobject)swfobject[r]=null;swfobject=null})})();return{registerObject:function(t,e,i,n){if(K.w3&&t&&e){var a={};a.id=t,a.swfVersion=e,a.expressInstall=i,a.callbackFn=n,G[G.length]=a,x(t,!1)}else n&&n({success:!1,id:t})},getObjectById:function(t){return K.w3?r(t):void 0},embedSWF:function(t,i,n,a,r,l,c,u,h,p){var f=A(i),g={success:!1,id:f};K.w3&&!(K.wk&&K.wk<312)&&t&&i&&n&&a&&r?(x(f,!1),e(function(){n+="",a+="";var e={};if(h&&typeof h===j)for(var A in h)e[A]=h[A];e.data=t,e.width=n,e.height=a;var m={};if(u&&typeof u===j)for(var v in u)m[v]=u[v];if(c&&typeof c===j)for(var y in c)if(c.hasOwnProperty(y)){var w=J?encodeURIComponent(y):y,k=J?encodeURIComponent(c[y]):c[y];typeof m.flashvars!=I?m.flashvars+="&"+w+"="+k:m.flashvars=w+"="+k}if(b(r)){var C=d(e,m,i);e.id==f&&x(f,!0),g.success=!0,g.ref=C,g.id=C.id}else{if(l&&o())return e.data=l,void s(e,m,i,p);x(f,!0)}p&&p(g)})):p&&p(g)},switchOffAutoHideShow:function(){_=!1},enableUriEncoding:function(t){J=typeof t===I?!0:t},ua:K,getFlashPlayerVersion:function(){return{major:K.pv[0],minor:K.pv[1],release:K.pv[2]}},hasFlashPlayerVersion:b,createSWF:function(t,e,i){return K.w3?d(t,e,i):void 0},showExpressInstall:function(t,e,i,n){K.w3&&o()&&s(t,e,i,n)},removeSWF:function(t){K.w3&&p(t)},createCSS:function(t,e,i,n){K.w3&&w(t,e,i,n)},addDomLoadEvent:e,addLoadEvent:i,getQueryParamValue:function(t){var e=O.location.search||O.location.hash;if(e){if(/\?/.test(e)&&(e=e.split("?")[1]),null==t)return k(e);for(var i=e.split("&"),n=0;n':' data="'+e+'" type="application/x-shockwave-flash">';var r={width:"100%",height:"100%",allowscriptaccess:"always",wmode:"transparent",quality:"high",flashvars:"",movie:e+(t.browser.msie?"?"+n:""),name:n};return t.each(i,function(t,e){r.flashvars+=t+"="+e+"&"}),t.each(r,function(t,e){a+=''}),a+="",t(a)}function i(t,e){return e=e||100,Math.round(t*e)/e}function n(t){return/mpegurl/i.test(t)?"application/x-mpegurl":"video/"+t}function a(t){return/^(video|application)/.test(t)||(t=n(t)),!!m.canPlayType(t).replace("no","")}function r(e,i){var n=t.grep(e,function(t){return t.type===i});return n.length?n[0]:null}function o(t){var e=t.attr("src"),i=t.attr("type")||"",n=e.split(b)[1];return i=/mpegurl/.test(i)?"mpegurl":i.replace("video/",""),{src:e,suffix:n||i,type:i||n}}function s(e){var i=this,n=[];t("source",e).each(function(){n.push(o(t(this)))}),n.length||n.push(o(e)),i.initialSources=n,i.resolve=function(e){return e?(t.isArray(e)?e={sources:t.map(e,function(e){var i,n=t.extend({},e);return t.each(e,function(t,e){i=t}),n.type=i,n.src=e[i],delete n[i],n})}:"string"==typeof e&&(e={src:e,sources:[]},t.each(n,function(t,i){"flash"!=i.type&&e.sources.push({type:i.type,src:e.src.replace(b,"."+i.suffix+"$2")})})),e):{sources:n}}}function l(t){return t=parseInt(t,10),t>=10?t:"0"+t}function c(t){t=t||0;var e=Math.floor(t/3600),i=Math.floor(t/60);return t-=60*i,e>=1?(i-=60*e,e+":"+l(i)+":"+l(t)):l(i)+":"+l(t)}!function(t){if(!t.browser){var e=t.browser={},i=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(i)||/(safari)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[];n[1]&&(e[n[1]]=!0,e.version=n[2]||"0")}}(jQuery),t(function(){"function"==typeof t.fn.flowplayer&&t("video").parent(".flowplayer").flowplayer()});var u=[],d=[],h=window.navigator.userAgent;window.flowplayer=function(e){return t.isFunction(e)?d.push(e):"number"==typeof e||void 0===e?u[e||0]:t(e).data("flowplayer")},t(window).on("beforeunload",function(){t.each(u,function(e,i){i.conf.splash?i.unload():i.bind("error",function(){t(".flowplayer.is-error .fp-message").remove()})})});var p=!1;try{"object"==typeof window.localStorage&&(window.localStorage.flowplayerTestStorage="test",p=!0)}catch(f){}t.extend(flowplayer,{version:"5.4.6",engine:{},conf:{},support:{},defaults:{debug:!1,disabled:!1,engine:"html5",fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,flashfit:!1,rtmp:0,splash:!1,live:!1,swf:"//releases.flowplayer.org/5.4.6/flowplayer.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,volume:p?"true"==localStorage.muted?0:isNaN(localStorage.volume)?1:localStorage.volume||1:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[]}});var A=1;t.fn.flowplayer=function(e,i){return"string"==typeof e&&(e={swf:e}),t.isFunction(e)&&(i=e,e={}),!e&&this.data("flowplayer")||this.each(function(){var n,a,r=t(this).addClass("is-loading"),o=t.extend({},flowplayer.defaults,flowplayer.conf,e,r.data()),l=t("video",r).addClass("fp-engine").removeAttr("controls"),c=l.length?new s(l):null,h={};if(o.playlist.length){var p,f=l.attr("preload");l.length&&l.replaceWith(p=t("

")),l=t("

")[0],n=0;n0&&flowplayer.support.video&&u[0].pause()}catch(h){}var p=function(){u.remove()},f=function(e){return t.grep(e,function(t){return!!u[0].canPlayType("video/"+t.type)}).length>0};if(flowplayer.support.video&&u.prop("autoplay")&&f(l.sources)?u.one("timeupdate",p):p(),is_absolute||s.rtmp||(d=t("").attr("src",d)[0].src),o)o.__play(d);else{a="fp"+(""+Math.random()).slice(3,15);var A={hostname:s.embedded?s.hostname:location.hostname,url:d,callback:"jQuery."+a};n.data("origin")&&(A.origin=n.data("origin")),is_absolute&&delete s.rtmp,t.each(["key","autoplay","preload","rtmp","loop","debug","preload","splash","bufferTime"],function(t,e){s[e]&&(A[e]=s[e])}),A.rtmp&&(A.rtmp=c(A.rtmp)),r=e(s.swf,A),r.prependTo(n),o=r[0],setTimeout(function(){try{if(!o.PercentLoaded())return n.trigger("error",[i,{code:7,url:s.swf}])}catch(t){}},5e3),setTimeout(function(){"undefined"==typeof o.PercentLoaded&&n.trigger("flashdisabled",[i])},1e3),t[a]=function(e,n){s.debug&&"status"!=e&&console.log("--",e,n);var a=t.Event(e);switch(e){case"ready":n=t.extend(l,n);break;case"click":a.flash=!0;break;case"keydown":a.which=n;break;case"seek":l.time=n;break;case"status":i.trigger("progress",n.time),n.bufferp?g*s:m,m=Math.min(Math.round(m),p),g=g>h?m*o:g,g=Math.min(Math.round(g),h),A=Math.max(Math.round((p+A-m)/2),0),f=Math.max(Math.round((h+f-g)/2),0)),t("object",n).css({width:g,height:m,marginTop:A,marginLeft:f})}}),l};var g,m=t("

00:00 00:00

'.replace(/class="/g,'class="fp-'));var u=n("progress"),d=n("buffer"),h=n("elapsed"),p=n("remaining"),f=n("waiting"),A=n("ratio"),g=n("speed"),m=n("duration"),v=A.css("paddingTop"),y=n("timeline").slider2(e.rtl),b=y.data("api"),w=(n("volume"),n("fullscreen")),x=n("volumeslider").slider2(e.rtl),k=x.data("api"),C=i.is(".fixed-controls, .no-toggle");b.disableAnimation(i.hasClass("is-touch")),l.animation||f.html("

loading …

"),a(s.ratio);try{s.fullscreen||w.remove()}catch(E){w.remove()}e.bind("ready",function(){var t=e.video.duration;b.disable(e.disabled||!t),s.adaptiveRatio&&a(e.video.height/e.video.width),m.add(p).html(c(t)),t>=3600&&i.addClass("is-long")||i.removeClass("is-long"),k.slide(e.volumeLevel)}).bind("unload",function(){v||A.css("paddingTop","")}).bind("buffer",function(){var t=e.video,i=t.buffer/t.duration;!t.seekable&&l.seekable&&b.max(i),1>i?d.css("width",100*i+"%"):d.css({width:"100%"})}).bind("speed",function(t,e,i){g.text(i+"x").addClass("fp-hilite"),setTimeout(function(){g.removeClass("fp-hilite")},1e3)}).bind("buffered",function(){d.css({width:"100%"}),b.max(1)}).bind("progress",function(){var t=e.video.time,i=e.video.duration;b.dragging||b.slide(t/i,e.seeking?0:250),h.html(c(t)),p.html("-"+c(i-t))}).bind("finish resume seek",function(t){i.toggleClass("is-finished","finish"==t.type)}).bind("stop",function(){h.html(c(0)),b.slide(0,100)}).bind("finish",function(){h.html(c(e.video.duration)),b.slide(1,100),i.removeClass("is-seeking")}).bind("beforeseek",function(){u.stop()}).bind("volume",function(){k.slide(e.volumeLevel)}).bind("disable",function(){var t=e.disabled;b.disable(t),k.disable(t),i.toggleClass("is-disabled",e.disabled)}).bind("mute",function(t,e,n){i.toggleClass("is-muted",n)}).bind("error",function(e,n,a){if(i.removeClass("is-loading").addClass("is-error"),a){a.message=s.errors[a.code],n.error=!0;var r=t(".fp-message",i);t("h2",r).text((n.engine||"html5")+": "+a.message),t("p",r).text(a.url||n.video.url||n.video.src||s.errorUrls[a.code]),i.unbind("mouseenter click").removeClass("is-mouseover")}}).bind("mouseenter mouseleave",function(t){if(!C){var e,n="mouseenter"==t.type;r(n),n?(i.bind("pause.x mousemove.x volume.x",function(){r(!0),e=new Date}),o=setInterval(function(){new Date-e>5e3&&(r(!1),e=new Date)},100)):(i.unbind(".x"),clearInterval(o))}}).bind("mouseleave",function(){(b.dragging||k.dragging)&&i.addClass("is-mouseover").removeClass("is-mouseout")}).bind("click.player",function(i){return t(i.target).is(".fp-ui, .fp-engine")||i.flash?(i.preventDefault(),e.toggle()):void 0}).bind("contextmenu",function(e){e.preventDefault();var n=i.offset(),a=t(window),r=e.clientX-n.left,o=e.clientY-n.top+a.scrollTop(),s=i.find(".fp-context-menu").css({left:r+"px",top:o+"px",display:"block"}).on("click",function(t){t.stopPropagation()});t("html").on("click.outsidemenu",function(e){s.hide(),t("html").off("click.outsidemenu")})}).bind("flashdisabled",function(){i.addClass("is-flash-disabled").one("ready",function(){i.removeClass("is-flash-disabled").find(".fp-flash-disabled").remove()}).append('
Adobe Flash is disabled for this page, click player area to enable.
')}),s.poster&&i.css("backgroundImage","url("+s.poster+")");var T=i.css("backgroundColor"),S="none"!=i.css("backgroundImage")||T&&"rgba(0, 0, 0, 0)"!=T&&"transparent"!=T;!S||s.splash||s.autoplay||e.bind("ready stop",function(){i.addClass("is-poster").one("progress",function(){i.removeClass("is-poster")})}),!S&&e.forcedSplash&&i.css("backgroundColor","#555"),t(".fp-toggle, .fp-play",i).click(e.toggle),t.each(["mute","fullscreen","unload"],function(t,i){n(i).click(function(){e[i]()})}),y.bind("slide",function(t,i){e.seeking=!0,e.seek(i*e.video.duration)}),x.bind("slide",function(t,i){e.volume(i)}),n("time").click(function(e){t(this).toggleClass("is-inverted")}),r(C)});var w,x,k="is-help";t(document).bind("keydown.fp",function(e){var i=w,n=e.ctrlKey||e.metaKey||e.altKey,a=e.which,r=i&&i.conf;if(i&&r.keyboard&&!i.disabled){if(-1!=t.inArray(a,[63,187,191]))return x.toggleClass(k),!1;if(27==a&&x.hasClass(k))return x.toggleClass(k),!1;if(!n&&i.ready){if(e.preventDefault(),e.shiftKey)return void(39==a?i.speed(!0):37==a&&i.speed(!1));if(58>a&&a>47)return i.seekTo(a-48);switch(a){case 38:case 75:i.volume(i.volumeLevel+.15);break;case 40:case 74:i.volume(i.volumeLevel-.15);break;case 39:case 76:i.seeking=!0,i.seek(!0);break;case 37:case 72:i.seeking=!0,i.seek(!1);break;case 190:i.seekTo();break;case 32:i.toggle();break;case 70:r.fullscreen&&i.fullscreen();break;case 77:i.mute();break;case 81:i.unload()}}}}),flowplayer(function(e,i){e.conf.keyboard&&(i.bind("mouseenter mouseleave",function(t){w=e.disabled||"mouseenter"!=t.type?0:e,w&&(x=i)}),i.append('

spaceplay / pause

qunload | stop

ffullscreen

shift + slower / faster (latest Chrome and Safari)

volume

mmute

seek

 . seek to previous

126 seek to 10%, 20%, …60%

'),e.conf.tooltip&&t(".fp-ui",i).attr("title","Hit ? for help").on("mouseout.tip",function(){t(this).removeAttr("title").off("mouseout.tip")}),t(".fp-close",i).click(function(){i.toggleClass(k)}))});var C,E=t.browser.mozilla?"moz":"webkit",T="fullscreen",S="fullscreen-exit",D=flowplayer.support.fullscreen,M="function"==typeof document.exitFullscreen,I=navigator.userAgent.toLowerCase(),j=/(safari)[ \/]([\w.]+)/.exec(I)&&!/(chrome)[ \/]([\w.]+)/.exec(I);t(document).bind(M?"fullscreenchange":E+"fullscreenchange",function(e){var i=t(document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||e.target);i.length&&!C?C=i.trigger(T,[i]):(C.trigger(S,[C]),C=null)}),flowplayer(function(e,i){if(e.conf.fullscreen){var n,a=t(window),r={index:0,pos:0,play:!1};e.isFullscreen=!1,e.fullscreen=function(o){return e.disabled?void 0:(void 0===o&&(o=!e.isFullscreen),o&&(n=a.scrollTop()),"webkit"!=E&&!j||"flash"!=e.engine||(r.index=e.video.index,e.conf.rtmp&&t.extend(r,{pos:e.video.time,play:e.playing})),D?o?M?i[0].requestFullscreen():(i[0][E+"RequestFullScreen"](Element.ALLOW_KEYBOARD_INPUT),!j||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||i[0][E+"RequestFullScreen"]()):M?document.exitFullscreen():document[E+"CancelFullScreen"]():e.trigger(o?T:S,[e]),e)};var o;i.bind("mousedown.fs",function(){+new Date-o<150&&e.ready&&e.fullscreen(),o=+new Date}),e.bind(T,function(t){i.addClass("is-fullscreen"),e.isFullscreen=!0}).bind(S,function(t){var r;D||"html5"!==e.engine||(r=i.css("opacity")||"",i.css("opacity",0)),i.removeClass("is-fullscreen"),D||"html5"!==e.engine||setTimeout(function(){i.css("opacity",r)}),e.isFullscreen=!1,a.scrollTop(n)}).bind("ready",function(){if(r.index>0)e.play(r.index),r.index=0;else if(r.pos&&!isNaN(r.pos)){var i=function(){r.play||e.pause(),t.extend(r,{pos:0,play:!1})};e.conf.live?(e.resume(),i()):e.resume().seek(r.pos,i)}})}}),flowplayer(function(e,i){function n(){return t(r.query,i)}function a(){return t(r.query+"."+o,i)}var r=t.extend({active:"is-active",advance:!0,query:".fp-playlist a"},e.conf),o=r.active;e.play=function(i){return void 0===i?e.resume():"number"!=typeof i||e.conf.playlist[i]?("number"!=typeof i&&e.load.apply(null,arguments),e.unbind("resume.fromfirst"),e.video.index=i,e.load("string"==typeof e.conf.playlist[i]?e.conf.playlist[i].toString():t.map(e.conf.playlist[i],function(e){return t.extend({},e)})),e):e},e.next=function(t){t&&t.preventDefault();var i=e.video.index;return-1!=i&&(i=i===e.conf.playlist.length-1?0:i+1,e.play(i)),e},e.prev=function(t){t&&t.preventDefault();var i=e.video.index;return-1!=i&&(i=0===i?e.conf.playlist.length-1:i-1,e.play(i)),e},t(".fp-next",i).click(e.next),t(".fp-prev",i).click(e.prev),r.advance&&i.unbind("finish.pl").bind("finish.pl",function(t,e){var n=e.video.index+1;n1&&e.one("resume.fromfirst",function(){return e.play(0),!1}))});var s=!1;if(e.conf.playlist.length){s=!0;var l=i.find(".fp-playlist");if(!l.length){l=t('
');var c=t(".fp-next,.fp-prev",i);c.length?c.eq(0).before(l):t("video",i).after(l)}l.empty(),t.each(e.conf.playlist,function(e,i){var n;if("string"==typeof i)n=i;else for(var a in i[0])if(i[0].hasOwnProperty(a)){n=i[0][a];break}l.append(t("").attr({href:n,"data-index":e}))})}if(n().length){s||(e.conf.playlist=[],n().each(function(){var i=t(this).attr("href");t(this).attr("data-index",e.conf.playlist.length),e.conf.playlist.push(i)})),i.on("click",r.query,function(i){i.preventDefault();var n=t(i.target).closest(r.query),a=Number(n.attr("data-index"));-1!=a&&e.play(a)});var u=n().filter("[data-cuepoints]").length;e.bind("load",function(n,r,s){var l=a().removeClass(o),c=l.attr("data-index"),d=s.index=e.video.index||0,h=t('a[data-index="'+d+'"]',i).addClass(o),p=d==e.conf.playlist.length-1;i.removeClass("video"+c).addClass("video"+d).toggleClass("last-video",p),s.index=r.video.index=d,s.is_last=r.video.is_last=p,u&&(e.cuepoints=h.data("cuepoints"))}).bind("unload.pl",function(){a().toggleClass(o)})}e.conf.playlist.length&&(e.conf.loop=!1)});var B=/ ?cue\d+ ?/;flowplayer(function(e,i){function n(t){i[0].className=i[0].className.replace(B," "),t>=0&&i.addClass("cue"+t)}var a=0;e.cuepoints=e.conf.cuepoints||[],e.bind("progress",function(t,r,o){if(a&&.015>o-a)return a=o;a=o;for(var s,l=e.cuepoints||[],c=0;co&&(o=a+n);var s=t("").addClass("fp-cuepoint fp-cuepoint"+i).css("left",o/a*100+"%");s.appendTo(r).mousedown(function(){return e.seek(o),!1})})})}),flowplayer(function(e,i,n){function a(t){var e=t.split(":");return 2==e.length&&e.unshift(0),60*e[0]*60+60*e[1]+parseFloat(e[2].replace(",","."))}var r=t("track",i),o=e.conf;if(!flowplayer.support.subtitles||(e.subtitles=r.length&&r[0].track,!o.nativesubtitles||"html5"!=o.engine)){r.remove();var s=/^(([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3}) --\> (([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3})(.*)/;e.subtitles=[];var l=r.attr("src");if(l){setTimeout(function(){t.get(l,function(i){for(var n,r,o,l,c=0,u=i.split("\n"),d=u.length,h={};d>c;c++)if(r=s.exec(u[c])){for(n=u[c-1],o="

"+u[++c]+"


";t.trim(u[++c])&&c"+u[c]+"


";h={title:n,startTime:a(r[1]),endTime:a(r[2]||r[3]),text:o},l={time:h.startTime,subtitle:h},e.subtitles.push(h),e.cuepoints.push(l),e.cuepoints.push({time:h.endTime,subtitleEnd:n}),0===h.startTime&&e.trigger("cuepoint",l)}}).fail(function(){return e.trigger("error",{code:8,url:l}),!1})});var c,u=t("
").appendTo(i);e.bind("cuepoint",function(t,e,i){i.subtitle?(c=i.index,u.html(i.subtitle.text).addClass("fp-active")):i.subtitleEnd&&(u.removeClass("fp-active"),c=i.index)}).bind("seek",function(i,n,a){c&&e.cuepoints[c]&&e.cuepoints[c].time>a&&(u.removeClass("fp-active"),c=null),t.each(e.cuepoints||[],function(t,i){var n=i.subtitle;n&&c!=i.index?a>=i.time&&(!n.endTime||a<=n.endTime)&&e.trigger("cuepoint",i):i.subtitleEnd&&a>=i.time&&i.index==c+1&&e.trigger("cuepoint",i)})})}}}),flowplayer(function(e,i){function n(t){if(r&&"undefined"!=typeof _gat){var n=_gat._getTracker(a),o=e.video;n._setAllowLinker(!0),n._trackEvent("Video / Seconds played",e.engine+"/"+o.type,i.attr("title")||o.src.split("/").slice(-1)[0].replace(b,""),Math.round(r/1e3)),r=0}}var a=e.conf.analytics,r=0,o=0;a&&("undefined"==typeof _gat&&t.getScript("//google-analytics.com/ga.js"),e.bind("load unload",n).bind("progress",function(){e.seeking||(r+=o?+new Date-o:0,o=+new Date)}).bind("pause",function(){o=0}),t(window).unload(n))});var P=/IEMobile/.test(h);(flowplayer.support.touch||P)&&flowplayer(function(e,i){ var n=/Android/.test(h)&&!/Firefox/.test(h)&&!/Opera/.test(h),a=/Silk/.test(h),r=n?parseFloat(/Android\ (\d\.\d)/.exec(h)[1],10):0;if(n&&(e.conf.videoTypePreference="mp4",!/Chrome/.test(h)&&4>r)){var o=e.load;e.load=function(t,i){var n=o.apply(e,arguments);return e.trigger("ready",[e,e.video]),n}}flowplayer.support.volume||i.addClass("no-volume no-mute"),i.addClass("is-touch"),i.find(".fp-timeline").data("api").disableAnimation();var s=!1;i.bind("touchmove",function(){s=!0}).bind("touchend click",function(n){return s?void(s=!1):e.playing&&!i.hasClass("is-mouseover")?(i.addClass("is-mouseover").removeClass("is-mouseout"),!1):(e.paused&&i.hasClass("is-mouseout")&&!e.splash&&e.toggle(),void(e.paused&&P&&t("video.fp-engine",i)[0].play()))}),e.conf.native_fullscreen&&"function"==typeof t("",{"class":"fp-embed",title:"Copy to your site"}).appendTo(a),o=t("
",{"class":"fp-embed-code"}).append("